From aca908c6ca5494ec61ec21d650031e1ea192e1f2 Mon Sep 17 00:00:00 2001 From: Fredrik Bagge Carlson Date: Tue, 1 Oct 2024 13:19:50 +0200 Subject: [PATCH 1/4] try running on windows --- .github/workflows/CI.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 8840deba..72007041 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -13,7 +13,7 @@ env: jobs: test: name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: @@ -21,6 +21,7 @@ jobs: - '1' os: - ubuntu-latest + - windows-latest arch: - x64 steps: From a44062eaa51f7d2a8862f2d3e734d323d539b825 Mon Sep 17 00:00:00 2001 From: Fredrik Bagge Carlson Date: Tue, 1 Oct 2024 13:21:41 +0200 Subject: [PATCH 2/4] Update CI.yml Update CI.yml --- .github/workflows/CI.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 72007041..7ffa861c 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -25,8 +25,6 @@ jobs: arch: - x64 steps: - - name: Set debug env - run: export JULIA_DEBUG="loading" - uses: actions/checkout@v3.3.0 - uses: julia-actions/cache@v1 - uses: julia-actions/setup-julia@v1 From 34d4b0e1b0557b20a81dab1ddbfb038fc981a216 Mon Sep 17 00:00:00 2001 From: Fredrik Bagge Carlson Date: Tue, 1 Oct 2024 17:18:26 +0200 Subject: [PATCH 3/4] add windows crash test --- test/runtests.jl | 2 ++ test/windows_crash.jl | 31 +++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 test/windows_crash.jl diff --git a/test/runtests.jl b/test/runtests.jl index 846f072e..8ebaba55 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,3 +1,5 @@ +include("windows_crash.jl") + using ModelingToolkit using Multibody using Test diff --git a/test/windows_crash.jl b/test/windows_crash.jl new file mode 100644 index 00000000..c533b1d9 --- /dev/null +++ b/test/windows_crash.jl @@ -0,0 +1,31 @@ +using ModelingToolkit +using Multibody +using Test +using JuliaSimCompiler +using OrdinaryDiffEq +t = Multibody.t +D = Differential(t) + +@named robot = Multibody.Robot6DOF() +robot = complete(robot) +println("complete") + +ssys = structural_simplify(IRSystem(robot)) +println("structural_simplify") + + +prob = ODEProblem(ssys, [ + robot.mechanics.r1.phi => deg2rad(-60) + robot.mechanics.r2.phi => deg2rad(20) + robot.mechanics.r3.phi => deg2rad(90) + robot.mechanics.r4.phi => deg2rad(0) + robot.mechanics.r5.phi => deg2rad(-110) + robot.mechanics.r6.phi => deg2rad(0) + + robot.axis1.motor.Jmotor.phi => deg2rad(-60) * (-105) # Multiply by gear ratio + robot.axis2.motor.Jmotor.phi => deg2rad(20) * (210) + robot.axis3.motor.Jmotor.phi => deg2rad(90) * (60) +], (0.0, 2.0)) +println("ODEProblem done, calling solve") + +sol = solve(prob, Rodas5P(autodiff=false)); \ No newline at end of file From 0a5e6507d3987dcf9dbfc88e1722a9dad4491d1c Mon Sep 17 00:00:00 2001 From: Fredrik Bagge Carlson Date: Wed, 16 Oct 2024 05:28:25 +0200 Subject: [PATCH 4/4] Update CI.yml --- .github/workflows/CI.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 7ffa861c..bbb05dde 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -18,9 +18,8 @@ jobs: fail-fast: false matrix: version: - - '1' + - '1.10' os: - - ubuntu-latest - windows-latest arch: - x64