Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001415/0.001415, allocations: 107.6 kB / 21.2 MB, free: 0.6641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001613/0.001613, allocations: 204.8 kB / 24.49 MB, free: 3.961 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.651/1.651, allocations: 230.6 MB / 258.3 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2651/0.2651, allocations: 46.96 MB / 361.6 MB, free: 4.043 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") [Timeout 660] "Notification: Performance of FrontEnd - Absyn->SCode: time 2.988e-05/2.988e-05, allocations: 2.281 kB / 0.4973 GB, free: 7.301 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003631/0.003661, allocations: 1.866 MB / 0.4991 GB, free: 5.426 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001115/0.004776, allocations: 0.5376 MB / 0.4996 GB, free: 4.883 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001026/0.004878, allocations: 4 kB / 0.4996 GB, free: 4.879 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001398/0.005018, allocations: 19.73 kB / 0.4996 GB, free: 4.859 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001059/0.005124, allocations: 39.62 kB / 0.4997 GB, free: 4.82 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002693/0.005394, allocations: 43.94 kB / 0.4997 GB, free: 4.777 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002569/0.00565, allocations: 187.3 kB / 0.4999 GB, free: 4.594 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001952/0.005846, allocations: 33.86 kB / 0.4999 GB, free: 4.559 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002093/0.006055, allocations: 87.69 kB / 0.5 GB, free: 4.473 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001091/0.006164, allocations: 55.72 kB / 0.5001 GB, free: 4.418 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.814e-05/0.006192, allocations: 12 kB / 0.5001 GB, free: 4.406 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.728e-05/0.00626, allocations: 19.98 kB / 0.5001 GB, free: 4.387 MB / 366.1 MB Notification: Performance of combineBinaries: time 0.0002784/0.006538, allocations: 277.2 kB / 0.5004 GB, free: 4.113 MB / 366.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001296/0.006668, allocations: 169.7 kB / 0.5005 GB, free: 3.945 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.686e-05/0.006694, allocations: 12 kB / 0.5005 GB, free: 3.934 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.947e-05/0.006724, allocations: 4 kB / 0.5005 GB, free: 3.93 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 (32) * Number of variables: 32 (32) Notification: Performance of [SIM] Bindings: time 0.001013/0.007736, allocations: 0.7288 MB / 0.5012 GB, free: 3.074 MB / 366.1 MB Notification: Performance of [SIM] FunctionAlias: time 0.0001196/0.007856, allocations: 87.97 kB / 0.5013 GB, free: 2.977 MB / 366.1 MB Notification: Performance of [SIM] Early Inline: time 0.0004582/0.008314, allocations: 392.1 kB / 0.5017 GB, free: 2.566 MB / 366.1 MB Notification: Performance of [SIM] Simplify 1: time 0.0001742/0.008488, allocations: 121.9 kB / 0.5018 GB, free: 2.402 MB / 366.1 MB Notification: Performance of [SIM] Alias: time 0.001191/0.00968, allocations: 0.6533 MB / 0.5025 GB, free: 1.645 MB / 366.1 MB Notification: Performance of [SIM] Simplify 2: time 0.0001305/0.00981, allocations: 85.56 kB / 0.5025 GB, free: 1.516 MB / 366.1 MB Notification: Performance of [SIM] Remove Stream: time 6.085e-05/0.009871, allocations: 48.42 kB / 0.5026 GB, free: 1.441 MB / 366.1 MB Notification: Performance of [SIM] Detect States: time 0.0002436/0.01011, allocations: 146.5 kB / 0.5027 GB, free: 1.246 MB / 366.1 MB Notification: Performance of [SIM] Events: time 6.148e-05/0.01018, allocations: 15.84 kB / 0.5027 GB, free: 1.23 MB / 366.1 MB Notification: Performance of [SIM] Partitioning: time 0.0001713/0.01035, allocations: 104 kB / 0.5028 GB, free: 1.121 MB / 366.1 MB Error: Internal error NBSorting.tarjan failed to sort system: System Variables (22/22) ************************** (1|1) [ALGB] (1) Real sine.y (2|2) [ALGB] (1) Real J2.a (3|3) [ALGB] (1) Real J1.a (4|4) [ALGB] (1) flow Real gear.support.tau = -(gear.flange_b.tau + (-J1.flange_b.tau)) (5|5) [STAT] (1) Real gear.phi_b (6|6) [ALGB] (1) flow Real J1.flange_b.tau (7|7) [DDER] (1) Real $DER.J1.w (8|8) [ALGB] (1) flow Real fixed.flange.tau (9|9) [DDER] (1) Real $DER.J1.phi (10|10) [DDER] (1) Real $DER.J2.w (11|11) [DISC] (1) Boolean $TEV_0 (12|12) [ALGB] (1) flow Real gear.flange_b.tau (13|13) [DSTA] (1) Real gear.phi_a (14|14) [DDER] (1) Real $DER.J2.phi (15|15) [DSTA] (1) Real $DER.gear.phi_b (16|16) [STAT] (1) Real $DER.gear.phi_a (17|17) [DSTA] (1) Real J2.phi (StateSelect = default) (18|18) [DSTA] (1) Real J1.phi (fixed = true, start = 0.0, StateSelect = default) (19|19) [DDER] (1) Real $DER.$DER.gear.phi_b (20|20) [DER-] (1) Real $DER.$DER.gear.phi_a (21|21) [DSTA] (1) Real J2.w (StateSelect = default) (22|22) [DSTA] (1) Real J1.w (fixed = true, start = 0.0, StateSelect = default) System Equations (20/20) ************************** (1|1) [SCAL] (1) J1.w = $DER.J1.phi ($RES_SIM_11) (2|2) [SCAL] (1) $TEV_0 = time < sine.startTime ($RES_EVT_32) (3|3) [SCAL] (1) J2.w = $DER.J2.phi ($RES_SIM_2) (4|4) [SCAL] (1) J2.a = $DER.J2.w ($RES_SIM_1) (5|5) [SCAL] (1) J2.J * J2.a = -gear.flange_b.tau ($RES_SIM_0) (6|6) [SCAL] (1) sine.y = sine.offset + (if $TEV_0 then 0.0 else sine.amplitude * sin(sine.phase + 6.283185307179586 * (time - sine.startTime) * sine.f)) ($RES_SIM_16) (7|7) [SCAL] (1) fixed.flange.tau + gear.support.tau + sine.y = 0.0 ($RES_SIM_20) (8|8) [SCAL] (1) J1.J * J1.a = sine.y + J1.flange_b.tau ($RES_SIM_9) (9|9) [SCAL] (1) gear.phi_a = J1.phi - fixed.phi0 ($RES_SIM_8) (10|10) [SCAL] (1) gear.support.tau = -(gear.flange_b.tau - J1.flange_b.tau) ($RES_BND_31) (11|11) [SCAL] (1) gear.phi_b = J2.phi - fixed.phi0 ($RES_SIM_7) (12|12) [SCAL] (1) gear.phi_a = gear.ratio * gear.phi_b ($RES_SIM_6) (13|13) [SCAL] (1) J1.a = $DER.J1.w ($RES_SIM_10) (14|14) [SCAL] (1) 0.0 = gear.flange_b.tau - gear.ratio * J1.flange_b.tau ($RES_SIM_5) (15|15) [SCAL] (1) $DER.gear.phi_a = J1.w ($RES_SIM_33) (16|16) [SCAL] (1) $DER.gear.phi_b = J2.w ($RES_SIM_34) (17|17) [SCAL] (1) $DER.gear.phi_a = gear.ratio * $DER.gear.phi_b ($RES_SIM_35) (18|18) [SCAL] (1) $DER.$DER.gear.phi_a = J1.a ($RES_SIM_36) (19|19) [SCAL] (1) $DER.$DER.gear.phi_b = J2.a ($RES_SIM_37) (20|20) [SCAL] (1) $DER.$DER.gear.phi_a = gear.ratio * $DER.$DER.gear.phi_b ($RES_SIM_38) =================== Scalar Matching =================== variable to equation ********************** var 1 --> eqn 6 var 2 --> eqn 19 var 3 --> eqn 8 var 4 --> eqn 10 var 5 --> eqn -1 var 6 --> eqn 14 var 7 --> eqn 13 var 8 --> eqn 7 var 9 --> eqn 1 var 10 --> eqn 4 var 11 --> eqn 2 var 12 --> eqn 5 var 13 --> eqn 12 var 14 --> eqn 3 var 15 --> eqn 16 var 16 --> eqn 17 var 17 --> eqn 11 var 18 --> eqn 9 var 19 --> eqn 20 var 20 --> eqn 18 var 21 --> eqn -1 var 22 --> eqn 15 equation to variable ********************** eqn 1 --> var 9 eqn 2 --> var 11 eqn 3 --> var 14 eqn 4 --> var 10 eqn 5 --> var 12 eqn 6 --> var 1 eqn 7 --> var 8 eqn 8 --> var 3 eqn 9 --> var 18 eqn 10 --> var 4 eqn 11 --> var 17 eqn 12 --> var 13 eqn 13 --> var 7 eqn 14 --> var 6 eqn 15 --> var 22 eqn 16 --> var 15 eqn 17 --> var 16 eqn 18 --> var 20 eqn 19 --> var 2 eqn 20 --> var 19 " [Timeout remaining time 660] [Calling sys.exit(0), Time elapsed: 3.1193982688710093] Failed to read output from testmodel.py, exit status != 0: ['time', 'J2.phi', 'J2.w'] 0.020968439057469368 0.036288474 0.026253862000000003 Calling exit ...