Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.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.00136/0.00136, allocations: 103.6 kB / 21.2 MB, free: 0.6328 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.001507/0.001507, allocations: 221.3 kB / 24.5 MB, free: 3.926 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.489/1.489, allocations: 230.6 MB / 258.2 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] 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(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|directMass.mass.s|directMass.mass.v|mass2a.s|mass2a.v|mass2b.s|mass2b.v|mass3a.s|mass3a.v|mass3b.s|mass3b.v",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs") translateModel(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|directMass.mass.s|directMass.mass.v|mass2a.s|mass2a.v|mass2b.s|mass2b.v|mass3a.s|mass3a.v|mass3b.s|mass3b.v",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs") [Timeout 660] "Notification: Performance of FrontEnd - Absyn->SCode: time 5.131e-05/5.131e-05, allocations: 6.219 kB / 378.9 MB, free: 2.598 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.2025/0.2025, allocations: 4.11 MB / 383 MB, free: 12.68 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002636/0.2052, allocations: 1.364 MB / 384.4 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003778/0.2055, allocations: 33.97 kB / 384.4 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003703/0.2059, allocations: 181.7 kB / 384.6 MB, free: 12.06 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004048/0.2063, allocations: 167.3 kB / 384.8 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000882/0.2072, allocations: 382.5 kB / 385.1 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001331/0.2085, allocations: 1.223 MB / 386.4 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005444/0.2091, allocations: 278 kB / 386.6 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006281/0.2097, allocations: 411.2 kB / 387 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003262/0.21, allocations: 343.7 kB / 387.4 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.563e-05/0.2101, allocations: 71.47 kB / 387.5 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002402/0.2104, allocations: 118.8 kB / 387.6 MB, free: 10.8 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0008855/0.2113, allocations: 1.717 MB / 389.3 MB, free: 9.574 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0005121/0.2118, allocations: 1.179 MB / 390.5 MB, free: 8.742 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001214/0.2119, allocations: 80.44 kB / 390.5 MB, free: 8.73 MB / 302.1 MB Notification: Performance of FrontEnd: time 0.0001831/0.2121, allocations: 117.3 kB / 390.7 MB, free: 8.68 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 201 (201) * Number of variables: 201 (201) Notification: Performance of [SIM] Bindings: time 0.002746/0.2148, allocations: 3.648 MB / 394.3 MB, free: 6.09 MB / 302.1 MB Notification: Performance of [SIM] FunctionAlias: time 0.0003555/0.2152, allocations: 386.9 kB / 394.7 MB, free: 5.848 MB / 302.1 MB Notification: Performance of [SIM] Early Inline: time 0.00169/0.2169, allocations: 1.878 MB / 396.6 MB, free: 4.645 MB / 302.1 MB Notification: Performance of [SIM] Simplify 1: time 0.0005847/0.2174, allocations: 378.9 kB / 396.9 MB, free: 4.398 MB / 302.1 MB Notification: Performance of [SIM] Alias: time 0.006803/0.2243, allocations: 4.805 MB / 401.7 MB, free: 2.008 MB / 302.1 MB Notification: Performance of [SIM] Simplify 2: time 0.0002728/0.2245, allocations: 179.4 kB / 401.9 MB, free: 1.871 MB / 302.1 MB Notification: Performance of [SIM] Remove Stream: time 8.064e-05/0.2246, allocations: 88.42 kB / 402 MB, free: 1.785 MB / 302.1 MB Notification: Performance of [SIM] Detect States: time 0.0003623/0.225, allocations: 288.6 kB / 402.3 MB, free: 1.566 MB / 302.1 MB Notification: Performance of [SIM] Events: time 9.404e-05/0.2251, allocations: 54.53 kB / 402.3 MB, free: 1.531 MB / 302.1 MB Notification: Performance of [SIM] Partitioning: time 0.0003347/0.2254, allocations: 247 kB / 402.6 MB, free: 1.414 MB / 302.1 MB Error: Internal error NBSorting.tarjan failed to sort system: System Variables (49/49) ************************** (1|1) [ALGB] (1) Real inverseMass.mass.a (start = 0.0) (2|2) [DSTA] (1) Real $DER.inverseMass.s (3|3) [DER-] (1) Real $DER.inverseMass.positionToForce.u (4|4) [ALGB] (1) Real forceToPosition2b.f (5|5) [DSTA] (1) protected Real springDamper.positionToForce1.u (6|6) [ALGB] (1) Real directMass.forceSource.s (7|7) [DER-] (1) Real $DER.forceToPosition3a.p (8|8) [ALGB] (1) Real mass2b.a (start = 0.0) (9|9) [ALGB] (1) Real mass2a.a (start = 0.0) (10|10) [ALGB] (1) Real directMass.f (11|11) [DSTA] (1) protected Real springDamper.positionToForce2.u (12|12) [DER-] (1) Real $DER.mass3a.v (13|13) [ALGB] (1) Real springDamper.springDamper.v_rel (start = 0.0) (14|14) [DSTA] (1) Real $DER.forceToPosition2a.p (15|15) [ALGB] (1) protected Real springDamper.springDamper.f_c (16|16) [ALGB] (1) Real force3.s (17|17) [ALGB] (1) Real force2.s (18|18) [DDER] (1) Real $DER.mass2a.v (19|19) [DER-] (1) Real $DER.forceToPosition3b.p (20|20) [ALGB] (1) Real spring.spring.s_rel (start = 0.0) (21|21) [ALGB] (1) Real forceToPosition3b.f (22|22) [STAT] (1) Real springDamper.v2 (23|23) [ALGB] (1) Real directMass.fDrive (24|24) [DDER] (1) Real $DER.inverseMass.v (25|25) [DER-] (1) Real $DER.mass3b.v (26|26) [ALGB] (1) Real mass3b.a (start = 0.0) (27|27) [ALGB] (1) protected Real springDamper.springDamper.f_d (28|28) [ALGB] (1) Real mass3a.a (start = 0.0) (29|29) [DSTA] (1) Real $DER.forceToPosition2b.p (30|30) [STAT] (1) Real springDamper.v1 (31|31) [DISC] (1) Boolean $TEV_0 (32|32) [DDER] (1) Real $DER.springDamper.springDamper.s_rel (33|33) [ALGB] (1) Real inverseMass.a (34|34) [DDER] (1) Real $DER.mass2b.v (35|35) [DER-] (1) Real $DER.directMass.mass.v (36|36) [ALGB] (1) Real directMass.mass.a (start = 0.0) (37|37) [DER-] (1) Real $DER.inverseMass.mass.v (38|38) [ALGB] (1) Real springDamper.springDamper.lossPower (39|39) [DDER] (1) Real $DER.$DER.forceToPosition2b.p (40|40) [DER-] (1) Real $DER.springDamper.v2 (41|41) [DDER] (1) Real $DER.$DER.forceToPosition2a.p (42|42) [DER-] (1) Real $DER.springDamper.v1 (43|43) [DDER] (1) Real $DER.$DER.inverseMass.s (44|44) [DDER] (1) Real $DER.springDamper.positionToForce1.u (45|45) [DDER] (1) Real $DER.springDamper.positionToForce2.u (46|46) [DSTA] (1) Real springDamper.springDamper.s_rel (start = 0.0) (47|47) [DSTA] (1) Real mass2a.v (fixed = true, start = 0.0, StateSelect = default) (48|48) [DSTA] (1) Real inverseMass.v (49|49) [DSTA] (1) Real mass2b.v (fixed = true, start = 0.0, StateSelect = default) System Equations (47/47) ************************** (1|1) [SCAL] (1) mass3b.m * mass3b.a = -forceToPosition3b.f ($RES_SIM_10) (2|2) [SCAL] (1) mass3b.a = $DER.mass3b.v ($RES_SIM_11) (3|3) [SCAL] (1) mass3b.v = $DER.forceToPosition3b.p ($RES_SIM_12) (4|4) [SCAL] (1) inverseMass.positionToForce.u = Modelica.Blocks.Interfaces.Adaptors.Functions.state2({inverseMass.s, inverseMass.v, inverseMass.a}, time) ($RES_SIM_100) (5|5) [SCAL] (1) springDamper.v2 = $DER.forceToPosition2b.p ($RES_SIM_53) (6|6) [SCAL] (1) spring.spring.s_rel = forceToPosition3b.p - forceToPosition3a.p ($RES_SIM_39) (7|7) [SCAL] (1) force2.s = -(0.5 * mass2a.L + (0.5 * mass2a.L - forceToPosition2a.p)) ($RES_SIM_71) (8|8) [SCAL] (1) directMass.forceSource.s = -(0.5 * directMass.mass.L + (0.5 * directMass.mass.L - inverseMass.s)) ($RES_SIM_120) (9|9) [SCAL] (1) mass2b.m * mass2b.a = -forceToPosition2b.f ($RES_SIM_59) (10|10) [SCAL] (1) springDamper.springDamper.f_d = springDamper.springDamper.d * springDamper.springDamper.v_rel ($RES_SIM_90) (11|11) [SCAL] (1) mass2a.m * mass2a.a = directMass.fDrive + forceToPosition2b.f ($RES_SIM_75) (12|12) [SCAL] (1) springDamper.springDamper.f_c = springDamper.springDamper.c * (springDamper.springDamper.s_rel - springDamper.springDamper.s_rel0) ($RES_SIM_91) (13|13) [SCAL] (1) mass2a.a = $DER.mass2a.v ($RES_SIM_76) (14|14) [SCAL] (1) inverseMass.mass.m * inverseMass.mass.a = directMass.f ($RES_SIM_108) (15|15) [SCAL] (1) springDamper.springDamper.v_rel = $DER.springDamper.springDamper.s_rel ($RES_SIM_92) (16|16) [SCAL] (1) directMass.mass.m * directMass.mass.a = directMass.fDrive - directMass.f ($RES_SIM_124) (17|17) [SCAL] (1) mass2a.v = $DER.forceToPosition2a.p ($RES_SIM_77) (18|18) [SCAL] (1) inverseMass.mass.a = $DER.inverseMass.mass.v ($RES_SIM_109) (19|19) [SCAL] (1) springDamper.positionToForce1.u = Modelica.Blocks.Interfaces.Adaptors.Functions.state1({forceToPosition2a.p, springDamper.v1}, time) ($RES_SIM_93) (20|20) [SCAL] (1) directMass.mass.a = $DER.directMass.mass.v ($RES_SIM_125) (21|21) [SCAL] (1) springDamper.positionToForce2.u = Modelica.Blocks.Interfaces.Adaptors.Functions.state1({forceToPosition2b.p, springDamper.v2}, time) ($RES_SIM_78) (22|22) [SCAL] (1) directMass.mass.v = $DER.inverseMass.s ($RES_SIM_126) (23|23) [SCAL] (1) directMass.fDrive = sine1.offset + (if $TEV_0 then 0.0 else sine1.amplitude * sin(sine1.phase + 6.283185307179586 * (time - sine1.startTime) * sine1.f)) ($RES_SIM_127) (24|24) [SCAL] (1) force3.s = -(0.5 * mass3a.L + (0.5 * mass3a.L - forceToPosition3a.p)) ($RES_SIM_22) (25|25) [SCAL] (1) forceToPosition3b.f = spring.spring.c * (spring.spring.s_rel - spring.spring.s_rel0) ($RES_SIM_40) (26|26) [SCAL] (1) mass3a.m * mass3a.a = directMass.fDrive + forceToPosition3b.f ($RES_SIM_26) (27|27) [SCAL] (1) mass3a.a = $DER.mass3a.v ($RES_SIM_27) (28|28) [SCAL] (1) mass3a.v = $DER.forceToPosition3a.p ($RES_SIM_28) (29|29) [SCAL] (1) mass2b.a = $DER.mass2b.v ($RES_SIM_60) (30|30) [SCAL] (1) mass2b.v = $DER.forceToPosition2b.p ($RES_SIM_61) (31|31) [SCAL] (1) inverseMass.mass.v = $DER.inverseMass.positionToForce.u ($RES_SIM_110) (32|32) [SCAL] (1) springDamper.v1 = $DER.forceToPosition2a.p ($RES_SIM_66) (33|33) [SCAL] (1) inverseMass.a = $DER.inverseMass.v ($RES_SIM_114) (34|34) [SCAL] (1) inverseMass.v = $DER.inverseMass.s ($RES_SIM_115) (35|35) [SCAL] (1) springDamper.springDamper.s_rel = springDamper.positionToForce2.u - springDamper.positionToForce1.u ($RES_SIM_87) (36|36) [SCAL] (1) springDamper.springDamper.lossPower = springDamper.springDamper.f_d * springDamper.springDamper.v_rel ($RES_SIM_88) (37|37) [SCAL] (1) forceToPosition2b.f = springDamper.springDamper.f_c + springDamper.springDamper.f_d ($RES_SIM_89) (38|38) [SCAL] (1) $TEV_0 = time < sine1.startTime ($RES_EVT_216) (39|39) [SCAL] (1) mass2a.a = $DER.$DER.forceToPosition2a.p ($RES_SIM_217) (40|40) [SCAL] (1) mass2b.a = $DER.$DER.forceToPosition2b.p ($RES_SIM_218) (41|41) [SCAL] (1) $DER.springDamper.v2 = $DER.$DER.forceToPosition2b.p ($RES_SIM_219) (42|42) [SCAL] (1) $DER.springDamper.positionToForce1.u = Modelica.Blocks.Interfaces.Adaptors.Functions.state1der1({forceToPosition2a.p, springDamper.v1}, time, 1.0) ($RES_SIM_220) (43|43) [SCAL] (1) $DER.springDamper.v1 = $DER.$DER.forceToPosition2a.p ($RES_SIM_221) (44|44) [SCAL] (1) inverseMass.a = $DER.$DER.inverseMass.s ($RES_SIM_222) (45|45) [SCAL] (1) $DER.springDamper.positionToForce2.u = Modelica.Blocks.Interfaces.Adaptors.Functions.state1der1({forceToPosition2b.p, springDamper.v2}, time, 1.0) ($RES_SIM_223) (46|46) [SCAL] (1) directMass.mass.a = $DER.$DER.inverseMass.s ($RES_SIM_224) (47|47) [SCAL] (1) springDamper.springDamper.v_rel = $DER.springDamper.positionToForce2.u - $DER.springDamper.positionToForce1.u ($RES_SIM_225) =================== Scalar Matching =================== variable to equation ********************** var 1 --> eqn 14 var 2 --> eqn 22 var 3 --> eqn 31 var 4 --> eqn 9 var 5 --> eqn 19 var 6 --> eqn 8 var 7 --> eqn 28 var 8 --> eqn -1 var 9 --> eqn 11 var 10 --> eqn 16 var 11 --> eqn 21 var 12 --> eqn 27 var 13 --> eqn 10 var 14 --> eqn 17 var 15 --> eqn 12 var 16 --> eqn 24 var 17 --> eqn 7 var 18 --> eqn 13 var 19 --> eqn 3 var 20 --> eqn 6 var 21 --> eqn 25 var 22 --> eqn 45 var 23 --> eqn 23 var 24 --> eqn 33 var 25 --> eqn 2 var 26 --> eqn 1 var 27 --> eqn 37 var 28 --> eqn 26 var 29 --> eqn 5 var 30 --> eqn 32 var 31 --> eqn 38 var 32 --> eqn 15 var 33 --> eqn 4 var 34 --> eqn 29 var 35 --> eqn 20 var 36 --> eqn 46 var 37 --> eqn 18 var 38 --> eqn 36 var 39 --> eqn 40 var 40 --> eqn 41 var 41 --> eqn 39 var 42 --> eqn 43 var 43 --> eqn 44 var 44 --> eqn 42 var 45 --> eqn 47 var 46 --> eqn 35 var 47 --> eqn -1 var 48 --> eqn 34 var 49 --> eqn 30 equation to variable ********************** eqn 1 --> var 26 eqn 2 --> var 25 eqn 3 --> var 19 eqn 4 --> var 33 eqn 5 --> var 29 eqn 6 --> var 20 eqn 7 --> var 17 eqn 8 --> var 6 eqn 9 --> var 4 eqn 10 --> var 13 eqn 11 --> var 9 eqn 12 --> var 15 eqn 13 --> var 18 eqn 14 --> var 1 eqn 15 --> var 32 eqn 16 --> var 10 eqn 17 --> var 14 eqn 18 --> var 37 eqn 19 --> var 5 eqn 20 --> var 35 eqn 21 --> var 11 eqn 22 --> var 2 eqn 23 --> var 23 eqn 24 --> var 16 eqn 25 --> var 21 eqn 26 --> var 28 eqn 27 --> var 12 eqn 28 --> var 7 eqn 29 --> var 34 eqn 30 --> var 49 eqn 31 --> var 3 eqn 32 --> var 30 eqn 33 --> var 24 eqn 34 --> var 48 eqn 35 --> var 46 eqn 36 --> var 38 eqn 37 --> var 27 eqn 38 --> var 31 eqn 39 --> var 41 eqn 40 --> var 39 eqn 41 --> var 40 eqn 42 --> var 44 eqn 43 --> var 42 eqn 44 --> var 43 eqn 45 --> var 22 eqn 46 --> var 36 eqn 47 --> var 45 " [Timeout remaining time 660] [Calling sys.exit(0), Time elapsed: 2.516133085824549] Failed to read output from testmodel.py, exit status != 0: ['time', 'directMass.mass.s', 'directMass.mass.v', 'mass2a.s', 'mass2a.v', 'mass2b.s', 'mass2b.v', 'mass3a.s', 'mass3a.v', 'mass3b.s', 'mass3b.v'] 0.2373117720708251 0.25404643 0.038601242 Calling exit ...