Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") translateModel(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.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.001388/0.001388, 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.001243/0.001243, allocations: 189.5 kB / 17.36 MB, free: 5.73 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.466/1.466, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.394e-05/3.394e-05, allocations: 2.281 kB / 327.2 MB, free: 3.363 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.006283/0.006327, allocations: 5.423 MB / 332.6 MB, free: 13.91 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003266/0.009609, allocations: 2.111 MB / 334.7 MB, free: 11.79 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004606/0.01008, allocations: 35.81 kB / 334.7 MB, free: 11.75 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004394/0.01053, allocations: 210.2 kB / 334.9 MB, free: 11.54 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003132/0.01087, allocations: 162.5 kB / 335.1 MB, free: 11.38 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008267/0.01171, allocations: 399 kB / 335.5 MB, free: 10.99 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001048/0.01276, allocations: 1.165 MB / 336.6 MB, free: 9.824 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007349/0.01351, allocations: 0.5917 MB / 337.2 MB, free: 9.211 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003303/0.01385, allocations: 326.9 kB / 337.6 MB, free: 8.891 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003522/0.01421, allocations: 354.3 kB / 337.9 MB, free: 8.543 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001055/0.01433, allocations: 88 kB / 338 MB, free: 8.457 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002693/0.0146, allocations: 152 kB / 338.1 MB, free: 8.309 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0009473/0.01556, allocations: 1.251 MB / 339.4 MB, free: 7.043 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0004457/0.01601, allocations: 0.7695 MB / 340.2 MB, free: 6.262 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001643/0.0162, allocations: 159.5 kB / 340.3 MB, free: 6.105 MB / 286.1 MB Notification: Performance of FrontEnd: time 0.0001386/0.01634, allocations: 55.69 kB / 340.4 MB, free: 6.051 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.003278/0.01963, allocations: 3.761 MB / 344.1 MB, free: 2.129 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.0002068/0.01984, allocations: 187.7 kB / 344.3 MB, free: 1.945 MB / 286.1 MB Notification: Performance of Early Inline: time 0.002075/0.02192, allocations: 2.241 MB / 346.6 MB, free: 15.66 MB / 302.1 MB Notification: Performance of simplify1: time 0.0001483/0.02208, allocations: 147.8 kB / 346.7 MB, free: 15.52 MB / 302.1 MB Notification: Performance of Alias: time 0.005049/0.02714, allocations: 4.716 MB / 351.4 MB, free: 10.5 MB / 302.1 MB Notification: Performance of simplify2: time 5.575e-05/0.02721, allocations: 51.92 kB / 351.5 MB, free: 10.45 MB / 302.1 MB Notification: Performance of Events: time 8.421e-05/0.0273, allocations: 59.95 kB / 351.5 MB, free: 10.39 MB / 302.1 MB Notification: Performance of Detect States: time 0.0003704/0.02768, allocations: 359.6 kB / 351.9 MB, free: 10.02 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0003505/0.02804, allocations: 329.2 kB / 352.2 MB, free: 9.691 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)