Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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="mat",numberOfIntervals=2000,variableFilter="time|directInertia.inertia.phi|directInertia.inertia.w|inertia2a.phi|inertia2a.w|inertia2b.phi|inertia2b.w|inertia3a.phi|inertia3a.w|inertia3b.phi|inertia3b.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") translateModel(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|directInertia.inertia.phi|directInertia.inertia.w|inertia2a.phi|inertia2a.w|inertia2b.phi|inertia2b.w|inertia3a.phi|inertia3a.w|inertia3b.phi|inertia3b.w",fileNamePrefix="Modelica_3.2.3_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.001225/0.001225, allocations: 110.3 kB / 18.37 MB, free: 4.75 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.001146/0.001146, allocations: 195.5 kB / 19.3 MB, free: 3.824 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.301/1.301, allocations: 205.1 MB / 225.2 MB, free: 12.3 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.279e-05/2.281e-05, allocations: 2.281 kB / 282 MB, free: 2.527 MB / 222.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.006476/0.006517, allocations: 5.422 MB / 287.5 MB, free: 13.07 MB / 238.1 MB Notification: Performance of NFInst.instExpressions: time 0.003153/0.009689, allocations: 2.111 MB / 289.6 MB, free: 10.95 MB / 238.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003447/0.01005, allocations: 39.75 kB / 289.6 MB, free: 10.91 MB / 238.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003943/0.01045, allocations: 206.3 kB / 289.8 MB, free: 10.7 MB / 238.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002702/0.01074, allocations: 170.4 kB / 290 MB, free: 10.54 MB / 238.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006925/0.01144, allocations: 387.1 kB / 290.4 MB, free: 10.16 MB / 238.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009527/0.0124, allocations: 1.165 MB / 291.5 MB, free: 8.984 MB / 238.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007094/0.01312, allocations: 0.5917 MB / 292.1 MB, free: 8.371 MB / 238.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002954/0.01342, allocations: 326.9 kB / 292.4 MB, free: 8.051 MB / 238.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003021/0.01373, allocations: 354.4 kB / 292.8 MB, free: 7.703 MB / 238.1 MB Notification: Performance of NFPackage.collectConstants: time 8.888e-05/0.01383, allocations: 91.94 kB / 292.9 MB, free: 7.613 MB / 238.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001998/0.01403, allocations: 151.9 kB / 293 MB, free: 7.465 MB / 238.1 MB Notification: Performance of combineBinaries: time 0.0007514/0.01479, allocations: 1.236 MB / 294.3 MB, free: 6.215 MB / 238.1 MB Notification: Performance of replaceArrayConstructors: time 0.0003308/0.01513, allocations: 0.7695 MB / 295 MB, free: 5.434 MB / 238.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001183/0.01525, allocations: 159.5 kB / 295.2 MB, free: 5.277 MB / 238.1 MB Notification: Performance of FrontEnd: time 9.011e-05/0.01535, allocations: 55.67 kB / 295.2 MB, free: 5.223 MB / 238.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.002833/0.01819, allocations: 3.769 MB / 299 MB, free: 1.289 MB / 238.1 MB Notification: Performance of FunctionAlias: time 0.0001867/0.01838, allocations: 183.8 kB / 299.2 MB, free: 1.109 MB / 238.1 MB Notification: Performance of Early Inline: time 0.001913/0.0203, allocations: 2.245 MB / 301.4 MB, free: 14.82 MB / 254.1 MB Notification: Performance of simplify1: time 0.0001328/0.02044, allocations: 147.8 kB / 301.6 MB, free: 14.68 MB / 254.1 MB Notification: Performance of Alias: time 0.004858/0.02531, allocations: 4.726 MB / 306.3 MB, free: 9.66 MB / 254.1 MB Notification: Performance of simplify2: time 5.4e-05/0.02538, allocations: 47.94 kB / 306.3 MB, free: 9.613 MB / 254.1 MB Notification: Performance of Events: time 0.0001027/0.02549, allocations: 63.91 kB / 306.4 MB, free: 9.551 MB / 254.1 MB Notification: Performance of Detect States: time 0.0004655/0.02596, allocations: 363 kB / 306.8 MB, free: 9.18 MB / 254.1 MB Notification: Performance of Partitioning: time 0.0003968/0.02637, allocations: 321.2 kB / 307.1 MB, free: 8.855 MB / 254.1 MB Error: Internal error NBSlice.fillDependencyArray failed because number of flattened indices 1 for dependency springDamper.angleToTorque1.multiplex2.y[2] could not be devided 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)