Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") translateModel(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001191/0.001191, allocations: 108 kB / 16.42 MB, free: 6.465 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001134/0.001134, allocations: 190 kB / 17.36 MB, free: 5.707 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.211/1.211, allocations: 205.1 MB / 223.2 MB, free: 12.21 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.596e-05/2.596e-05, allocations: 2.281 kB / 327.2 MB, free: 3.344 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.006157/0.006191, allocations: 5.408 MB / 332.6 MB, free: 13.91 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003669/0.009875, allocations: 2.115 MB / 334.7 MB, free: 11.78 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004054/0.01029, allocations: 35.81 kB / 334.7 MB, free: 11.74 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004435/0.01074, allocations: 206.2 kB / 334.9 MB, free: 11.54 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003075/0.01109, allocations: 162.5 kB / 335.1 MB, free: 11.38 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008393/0.01193, allocations: 399.1 kB / 335.5 MB, free: 10.99 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00105/0.01299, allocations: 1.165 MB / 336.6 MB, free: 9.82 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007695/0.01377, allocations: 0.5956 MB / 337.2 MB, free: 9.203 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003888/0.01417, allocations: 326.9 kB / 337.6 MB, free: 8.883 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003167/0.0145, allocations: 358.2 kB / 337.9 MB, free: 8.531 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001498/0.01465, allocations: 88 kB / 338 MB, free: 8.445 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002065/0.01487, allocations: 159.9 kB / 338.1 MB, free: 8.289 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0008458/0.01572, allocations: 1.236 MB / 339.4 MB, free: 7.039 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0004062/0.01613, allocations: 0.7773 MB / 340.2 MB, free: 6.25 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001352/0.01628, allocations: 159.5 kB / 340.3 MB, free: 6.094 MB / 286.1 MB Notification: Performance of FrontEnd: time 0.0001082/0.01639, allocations: 55.69 kB / 340.4 MB, free: 6.039 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 214 (206) * Number of variables: 214 (206) Notification: Performance of Bindings: time 0.003066/0.01946, allocations: 3.761 MB / 344.1 MB, free: 2.117 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.000211/0.01968, allocations: 187.7 kB / 344.3 MB, free: 1.934 MB / 286.1 MB Notification: Performance of Early Inline: time 0.001967/0.02165, allocations: 2.241 MB / 346.6 MB, free: 15.65 MB / 302.1 MB Notification: Performance of simplify1: time 0.0001395/0.0218, allocations: 155.8 kB / 346.7 MB, free: 15.5 MB / 302.1 MB Notification: Performance of Alias: time 0.004837/0.02664, allocations: 4.701 MB / 351.4 MB, free: 10.49 MB / 302.1 MB Notification: Performance of simplify2: time 6.267e-05/0.02672, allocations: 59.86 kB / 351.5 MB, free: 10.43 MB / 302.1 MB Notification: Performance of Events: time 0.0001004/0.02683, allocations: 57.17 kB / 351.5 MB, free: 10.38 MB / 302.1 MB Notification: Performance of Detect States: time 0.0003817/0.02722, allocations: 363.5 kB / 351.9 MB, free: 10.01 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0003711/0.0276, allocations: 333.1 kB / 352.2 MB, free: 9.676 MB / 302.1 MB Error: Internal error NBSlice.fillDependencyArray failed because number of flattened indices 1 for dependency springDamper.angleToTorque1.multiplex2.y[2] could not be divided by the body size 2 without rest. Error: Internal error NBAdjacency.Matrix.createPseudo failed for: [ARRY] (2) {{springDamper.angleToTorque1.multiplex2.y[1]}, {springDamper.angleToTorque1.multiplex2.y[2]}} = {{springDamper.angleToTorque1.multiplex2.u1[1]}, {springDamper.angleToTorque1.multiplex2.u2[1]}} ($RES_SIM_72) Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (54/62) ************************** (1) [ALGB] (1) Real inertia2b.a (2) [ALGB] (1) Real springDamper.springDamper.w_rel (start = 0.0) (3) [ALGB] (1) Real directInertia.tauDrive (4) [ALGB] (1) Real $FUN_1 (5) [ALGB] (1) Real spring.spring.flange_a.phi (6) [DER-] (1) Real $DER.inertia2b.w (7) [ALGB] (1) Real inertia3b.a (8) [DER-] (1) Real $DER.inertia3a.phi (9) [ALGB] (1) Real inertia2a.a (10) [ALGB] (1) Real torqueToAngle2b.w (11) [ALGB] (1) protected Real springDamper.angleToTorque2.move_w.phi (12) [ALGB] (1) Real torqueToAngle3b.tau (13) [ALGB] (2) protected Real[2] springDamper.angleToTorque1.move_w.u (14) [DER-] (1) Real $DER.inertia3b.w (15) [DER-] (1) Real $DER.inertia2a.w (16) [ALGB] (1) Real inertia3a.a (17) [ALGB] (1) protected Real inverseInertia.angleToTorque.move.phi (18) [ALGB] (2) protected Real[2] springDamper.angleToTorque2.multiplex2.y (19) [DER-] (1) Real $DER.inertia2a.phi (20) [ALGB] (1) protected Real[1] springDamper.angleToTorque1.multiplex2.u2 (21) [ALGB] (1) protected Real[1] springDamper.angleToTorque1.multiplex2.u1 (22) [ALGB] (1) Real directInertia.torqueToAngle.tau (23) [ALGB] (1) Real torqueToAngle2b.tau (24) [ALGB] (1) Real spring.spring.phi_rel (start = 0.0) (25) [DER-] (1) Real $DER.inverseInertia.inertia.w (26) [ALGB] (1) protected Real[1] springDamper.angleToTorque2.multiplex2.u1 (27) [ALGB] (2) protected Real[2] springDamper.angleToTorque1.multiplex2.y (28) [DER-] (1) Real $DER.inertia3a.w (29) [ALGB] (1) protected Real[1] springDamper.angleToTorque2.multiplex2.u2 (30) [ALGB] (1) protected Real springDamper.springDamper.tau_c (31) [DER-] (1) Real $DER.directInertia.inertia.phi (32) [DER-] (1) Real $DER.inertia3b.phi (33) [ALGB] (1) Real springDamper.springDamper.flange_a.phi (34) [ALGB] (1) protected Real springDamper.springDamper.tau_d (35) [ALGB] (1) Real directInertia.inertia.a (36) [ALGB] (3) protected Real[3] inverseInertia.angleToTorque.multiplex3.y (37) [ALGB] (2) protected Real[2] springDamper.angleToTorque2.move_w.u (38) [DER-] (1) Real $DER.springDamper.springDamper.phi_rel (39) [DER-] (1) Real $DER.inertia2b.phi (40) [DER-] (1) Real $DER.inverseInertia.w (41) [ALGB] (1) Real springDamper.w1 (42) [ALGB] (1) protected Real springDamper.angleToTorque1.move_w.phi (43) [DISC] (1) Boolean $TEV_0 (44) [DER-] (1) Real $DER.inverseInertia.inertia.flange_b.phi (45) [ALGB] (1) Real springDamper.springDamper.lossPower (46) [ALGB] (1) Real spring.spring.flange_b.phi (47) [DER-] (1) Real $DER.directInertia.inertia.w (48) [ALGB] (1) Real springDamper.springDamper.flange_b.phi (49) [ALGB] (1) protected Real[1] inverseInertia.angleToTorque.multiplex3.u3 (50) [ALGB] (1) protected Real[1] inverseInertia.angleToTorque.multiplex3.u2 (51) [ALGB] (1) protected Real[1] inverseInertia.angleToTorque.multiplex3.u1 (52) [ALGB] (1) Real inverseInertia.inertia.a (53) [ALGB] (3) protected Real[3] inverseInertia.angleToTorque.move.u (54) [ALGB] (1) Real inverseInertia.a System Equations (54/62) ************************** (1) [SCAL] (1) torqueToAngle2b.w = springDamper.angleToTorque2.multiplex2.u2[1] ($RES_SIM_171) (2) [SCAL] (1) inertia2b.phi = springDamper.angleToTorque2.multiplex2.u1[1] ($RES_SIM_172) (3) [ARRY] (2) springDamper.angleToTorque2.multiplex2.y = springDamper.angleToTorque2.move_w.u ($RES_SIM_173) (4) [SCAL] (1) inertia3a.phi = spring.spring.flange_a.phi ($RES_SIM_30) (5) [SCAL] (1) inertia3a.J * inertia3a.a = directInertia.tauDrive + torqueToAngle3b.tau ($RES_SIM_15) (6) [SCAL] (1) inertia3a.a = $DER.inertia3a.w ($RES_SIM_16) (7) [SCAL] (1) inertia3a.w = $DER.inertia3a.phi ($RES_SIM_17) (8) [SCAL] (1) inverseInertia.a = inverseInertia.angleToTorque.multiplex3.u3[1] ($RES_SIM_193) (9) [SCAL] (1) springDamper.w1 = springDamper.angleToTorque1.multiplex2.u2[1] ($RES_SIM_178) (10) [SCAL] (1) inverseInertia.w = inverseInertia.angleToTorque.multiplex3.u2[1] ($RES_SIM_194) (11) [SCAL] (1) inertia2a.phi = springDamper.angleToTorque1.multiplex2.u1[1] ($RES_SIM_179) (12) [SCAL] (1) directInertia.inertia.phi = inverseInertia.angleToTorque.multiplex3.u1[1] ($RES_SIM_195) (13) [SCAL] (1) inertia2a.a = $DER.inertia2a.w ($RES_SIM_50) (14) [ARRY] (3) inverseInertia.angleToTorque.multiplex3.y = inverseInertia.angleToTorque.move.u ($RES_SIM_196) (15) [SCAL] (1) inertia2a.w = $DER.inertia2a.phi ($RES_SIM_51) (16) [SCAL] (1) torqueToAngle2b.w = $DER.inertia2b.phi ($RES_SIM_36) (17) [SCAL] (1) inertia2b.J * inertia2b.a = -torqueToAngle2b.tau ($RES_SIM_38) (18) [SCAL] (1) inertia2b.a = $DER.inertia2b.w ($RES_SIM_39) (19) [SCAL] (1) springDamper.angleToTorque1.move_w.phi = Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.springDamper.angleToTorque1.move_w.position(springDamper.angleToTorque1.move_w.u, time) ($RES_SIM_70) (20) [SCAL] (1) springDamper.angleToTorque2.move_w.phi = Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.springDamper.angleToTorque2.move_w.position(springDamper.angleToTorque2.move_w.u, time) ($RES_SIM_55) (21) [SCAL] (1) springDamper.angleToTorque1.move_w.phi = springDamper.springDamper.flange_a.phi ($RES_SIM_71) (22) [SCAL] (1) springDamper.angleToTorque2.move_w.phi = springDamper.springDamper.flange_b.phi ($RES_SIM_56) (23) [ARRY] (2) {{springDamper.angleToTorque1.multiplex2.y[1]}, {springDamper.angleToTorque1.multiplex2.y[2]}} = {{springDamper.angleToTorque1.multiplex2.u1[1]}, {springDamper.angleToTorque1.multiplex2.u2[1]}} ($RES_SIM_72) (24) [ARRY] (2) {{springDamper.angleToTorque2.multiplex2.y[1]}, {springDamper.angleToTorque2.multiplex2.y[2]}} = {{springDamper.angleToTorque2.multiplex2.u1[1]}, {springDamper.angleToTorque2.multiplex2.u2[1]}} ($RES_SIM_57) (25) [SCAL] (1) inverseInertia.w = $DER.directInertia.inertia.phi ($RES_SIM_90) (26) [SCAL] (1) $FUN_1 = sin(6.283185307179586 * sine1.freqHz * (time - sine1.startTime) + sine1.phase) ($RES_$AUX_206) (27) [SCAL] (1) directInertia.inertia.J * directInertia.inertia.a = directInertia.tauDrive - directInertia.torqueToAngle.tau ($RES_SIM_94) (28) [ARRY] (3) {{inverseInertia.angleToTorque.multiplex3.y[1]}, {inverseInertia.angleToTorque.multiplex3.y[2]}, {inverseInertia.angleToTorque.multiplex3.y[3]}} = {{inverseInertia.angleToTorque.multiplex3.u1[1]}, {inverseInertia.angleToTorque.multiplex3.u2[1]}, {inverseInertia.angleToTorque.multiplex3.u3[1]}} ($RES_SIM_79) (29) [SCAL] (1) directInertia.inertia.a = $DER.directInertia.inertia.w ($RES_SIM_95) (30) [SCAL] (1) directInertia.inertia.w = $DER.directInertia.inertia.phi ($RES_SIM_96) (31) [SCAL] (1) $TEV_0 = time < sine1.startTime ($RES_EVT_207) (32) [SCAL] (1) directInertia.tauDrive = sine1.offset + (if $TEV_0 then 0.0 else sine1.amplitude * $FUN_1) ($RES_SIM_99) (33) [ARRY] (2) springDamper.angleToTorque1.multiplex2.y = springDamper.angleToTorque1.move_w.u ($RES_SIM_180) (34) [SCAL] (1) inertia3b.phi = spring.spring.flange_b.phi ($RES_SIM_21) (35) [SCAL] (1) inertia2b.w = $DER.inertia2b.phi ($RES_SIM_40) (36) [SCAL] (1) spring.spring.phi_rel = spring.spring.flange_b.phi - spring.spring.flange_a.phi ($RES_SIM_27) (37) [SCAL] (1) torqueToAngle3b.tau = spring.spring.c * (spring.spring.phi_rel - spring.spring.phi_rel0) ($RES_SIM_28) (38) [SCAL] (1) springDamper.w1 = $DER.inertia2a.phi ($RES_SIM_45) (39) [SCAL] (1) springDamper.springDamper.phi_rel = springDamper.springDamper.flange_b.phi - springDamper.springDamper.flange_a.phi ($RES_SIM_63) (40) [SCAL] (1) springDamper.springDamper.lossPower = springDamper.springDamper.tau_d * springDamper.springDamper.w_rel ($RES_SIM_64) (41) [SCAL] (1) inertia2a.J * inertia2a.a = directInertia.tauDrive + torqueToAngle2b.tau ($RES_SIM_49) (42) [SCAL] (1) torqueToAngle2b.tau = springDamper.springDamper.tau_c + springDamper.springDamper.tau_d ($RES_SIM_65) (43) [SCAL] (1) inverseInertia.angleToTorque.move.phi = Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.inverseInertia.angleToTorque.move.position(inverseInertia.angleToTorque.move.u, time) ($RES_SIM_81) (44) [SCAL] (1) springDamper.springDamper.tau_d = springDamper.springDamper.d * springDamper.springDamper.w_rel ($RES_SIM_66) (45) [SCAL] (1) inverseInertia.angleToTorque.move.phi = inverseInertia.inertia.flange_b.phi ($RES_SIM_82) (46) [SCAL] (1) springDamper.springDamper.tau_c = springDamper.springDamper.c * (springDamper.springDamper.phi_rel - springDamper.springDamper.phi_rel0) ($RES_SIM_67) (47) [SCAL] (1) inertia3b.w = $DER.inertia3b.phi ($RES_SIM_6) (48) [SCAL] (1) inverseInertia.inertia.J * inverseInertia.inertia.a = directInertia.torqueToAngle.tau ($RES_SIM_83) (49) [SCAL] (1) springDamper.springDamper.w_rel = $DER.springDamper.springDamper.phi_rel ($RES_SIM_68) (50) [SCAL] (1) inertia3b.a = $DER.inertia3b.w ($RES_SIM_5) (51) [SCAL] (1) inverseInertia.inertia.a = $DER.inverseInertia.inertia.w ($RES_SIM_84) (52) [SCAL] (1) inertia3b.J * inertia3b.a = -torqueToAngle3b.tau ($RES_SIM_4) (53) [SCAL] (1) inverseInertia.inertia.w = $DER.inverseInertia.inertia.flange_b.phi ($RES_SIM_85) (54) [SCAL] (1) inverseInertia.a = $DER.inverseInertia.w ($RES_SIM_89)