Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_FreeMotion2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_FreeMotion2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001401/0.001401, allocations: 104.8 kB / 16.4 MB, free: 6.457 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.00156/0.001561, allocations: 192.2 kB / 17.34 MB, free: 5.715 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.365/1.365, allocations: 205.1 MB / 223.2 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.205/0.205, allocations: 43.53 MB / 314.1 MB, free: 448 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00145/0.00145, allocations: 77.61 kB / 441.3 MB, free: 6.133 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1125, allocations: 57.79 MB / 499.1 MB, free: 12.27 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.01604/0.1286, allocations: 15.22 MB / 0.5023 GB, free: 12.97 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01035/0.139, allocations: 5.078 MB / 0.5072 GB, free: 7.879 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002481/0.1415, allocations: 99.69 kB / 0.5073 GB, free: 7.781 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007689/0.1492, allocations: 4.182 MB / 0.5114 GB, free: 3.586 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006437/0.1557, allocations: 2.486 MB / 0.5139 GB, free: 1.09 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002713/0.1584, allocations: 1.096 MB / 0.5149 GB, free: 15.99 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.009363/0.1678, allocations: 6.872 MB / 0.5216 GB, free: 9.105 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008317/0.1761, allocations: 5.217 MB / 0.5267 GB, free: 3.824 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006176/0.1824, allocations: 2.329 MB / 0.529 GB, free: 1.488 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2412/0.4236, allocations: 3.157 MB / 0.5321 GB, free: 10.86 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001678/0.4254, allocations: 0.5031 MB / 0.5326 GB, free: 10.86 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003425/0.4288, allocations: 1.383 MB / 0.5339 GB, free: 10.86 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003958/0.4328, allocations: 2.848 MB / 0.5367 GB, free: 10.86 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005976/0.4388, allocations: 3.4 MB / 0.54 GB, free: 9.957 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01836/0.4571, allocations: 10.58 MB / 0.5504 GB, free: 8.398 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.107e-06/0.4572, allocations: 2.531 kB / 0.5504 GB, free: 8.398 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.4572, allocations: 0 / 0.5504 GB, free: 8.398 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004969/0.4577, allocations: 0 / 0.5504 GB, free: 8.398 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2030 * Number of variables: 2030 Notification: Performance of Generate backend data structure: time 0.02757/0.4853, allocations: 7.518 MB / 0.5577 GB, free: 4.723 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.453e-05/0.4854, allocations: 13.48 kB / 0.5577 GB, free: 4.719 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003004/0.4884, allocations: 0.9615 MB / 0.5587 GB, free: 4.285 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1635/0.6519, allocations: 12.61 MB / 0.571 GB, free: 15.6 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01482/0.6667, allocations: 5.779 MB / 0.5766 GB, free: 11.84 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003628/0.6671, allocations: 336.5 kB / 0.5769 GB, free: 11.55 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003671/0.6708, allocations: 464.7 kB / 0.5774 GB, free: 11.14 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03371/0.7046, allocations: 13.45 MB / 0.5905 GB, free: 13.06 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003973/0.705, allocations: 72.12 kB / 0.5906 GB, free: 13.02 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001971/0.707, allocations: 207.6 kB / 0.5908 GB, free: 12.86 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005136/0.7121, allocations: 2.656 MB / 0.5934 GB, free: 10.23 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02667/0.7388, allocations: 11.58 MB / 0.6047 GB, free: 14.89 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08327/0.8222, allocations: 53.52 MB / 0.6569 GB, free: 8.605 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01464/0.8368, allocations: 5.661 MB / 0.6625 GB, free: 2.812 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004739/0.8416, allocations: 3.421 MB / 0.6658 GB, free: 15.39 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008363/0.8425, allocations: 0.697 MB / 0.6665 GB, free: 14.6 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.729e-05/0.8426, allocations: 60.56 kB / 0.6665 GB, free: 14.53 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=254): time 6.743e-06/0.8426, allocations: 0 / 0.6665 GB, free: 14.53 MB / 0.5137 GB Notification: Performance of matching and sorting (n=324): time 0.1087/0.9513, allocations: 35.94 MB / 0.7016 GB, free: 10.57 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001658/0.9515, allocations: 273 kB / 0.7019 GB, free: 10.25 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01187/0.9634, allocations: 5.365 MB / 0.7071 GB, free: 4.898 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001133/0.9645, allocations: 73.7 kB / 0.7072 GB, free: 4.82 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.004241/0.9688, allocations: 4.203 MB / 0.7113 GB, free: 0.6328 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002244/0.9711, allocations: 1.261 MB / 0.7126 GB, free: 15.39 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002914/0.974, allocations: 1.564 MB / 0.7141 GB, free: 13.82 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 8.659e-05/0.9741, allocations: 301.1 kB / 0.7144 GB, free: 13.52 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004872/0.979, allocations: 3.47 MB / 0.7178 GB, free: 10.05 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007837/0.9868, allocations: 7.727 MB / 0.7253 GB, free: 324 kB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0147/1.002, allocations: 12.11 MB / 0.7371 GB, free: 2.707 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001176/1.002, allocations: 44 kB / 0.7372 GB, free: 2.664 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1007) (initialization): time 0.02695/1.029, allocations: 12.98 MB / 0.7498 GB, free: 5.898 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 0.000168/1.029, allocations: 73 kB / 0.7499 GB, free: 5.828 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002288/1.029, allocations: 152.1 kB / 0.7501 GB, free: 5.68 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00606/1.035, allocations: 2.254 MB / 0.7523 GB, free: 3.418 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006669/1.042, allocations: 1.762 MB / 0.754 GB, free: 1.652 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2517/1.294, allocations: 16.41 MB / 0.77 GB, free: 195.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006261/1.3, allocations: 466.9 kB / 0.7705 GB, free: 195.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001036/1.301, allocations: 456.8 kB / 0.7709 GB, free: 195.7 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 672 * Number of states: 0 () * Number of discrete variables: 42 (universal1.cylinderColor[3],universal1.cylinderColor[2],universal1.cylinderColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],fixed.color[3],fixed.color[2],fixed.color[1],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (931): * Single equations (assignments): 926 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,24,100.0%), (3,24,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005225/1.306, allocations: 2.825 MB / 0.7737 GB, free: 194.7 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001164/1.307, allocations: 0.5222 MB / 0.7742 GB, free: 194.7 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01165/1.319, allocations: 7.428 MB / 0.7814 GB, free: 191.8 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.3e-05/1.319, allocations: 37.27 kB / 0.7815 GB, free: 191.8 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.757e-05/1.319, allocations: 10.5 kB / 0.7815 GB, free: 191.8 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.144e-05/1.319, allocations: 18.86 kB / 0.7815 GB, free: 191.8 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02754/1.347, allocations: 16.44 MB / 0.7975 GB, free: 185.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.142e-05/1.347, allocations: 7.625 kB / 0.7975 GB, free: 185.6 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002442/1.349, allocations: 0.5175 MB / 0.798 GB, free: 185.6 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004729/1.354, allocations: 2.011 MB / 0.8 GB, free: 185.1 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004938/1.354, allocations: 70.89 kB / 0.8001 GB, free: 185 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0163/1.371, allocations: 14.88 MB / 0.8146 GB, free: 172.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.663e-06/1.371, allocations: 8 kB / 0.8146 GB, free: 172.2 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01585/1.387, allocations: 11.9 MB / 0.8262 GB, free: 160.4 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00359/1.39, allocations: 1.105 MB / 0.8273 GB, free: 159.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001242/1.392, allocations: 63.98 kB / 0.8274 GB, free: 159.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002874/1.394, allocations: 219.6 kB / 0.8276 GB, free: 159.1 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005488/1.395, allocations: 203.6 kB / 0.8278 GB, free: 158.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002313/1.395, allocations: 87.94 kB / 0.8279 GB, free: 158.8 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.004506/1.4, allocations: 3.41 MB / 0.8312 GB, free: 155.5 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.61e-07/1.4, allocations: 3.391 kB / 0.8312 GB, free: 155.5 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.006323/1.406, allocations: 1.515 MB / 0.8327 GB, free: 154 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 12 (freeMotion.r_rel_a[1],freeMotion.v_rel_a[1],universal.phi_a,universal.phi_b,universal.w_a,universal.w_b,prismatic1.s,prismatic1.v,universal1.phi_a,universal1.phi_b,universal1.w_a,universal1.w_b) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (263): * Single equations (assignments): 258 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(7,17,46.9%), (7,17,46.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01457/1.421, allocations: 12.57 MB / 0.8449 GB, free: 141.2 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01148/1.432, allocations: 8.637 MB / 0.8534 GB, free: 132.6 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.84e-05/1.432, allocations: 0 / 0.8534 GB, free: 132.6 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.006786/1.439, allocations: 4.159 MB / 0.8574 GB, free: 128.5 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004675/1.444, allocations: 0.7061 MB / 0.8581 GB, free: 127.8 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09616/1.54, allocations: 70.06 MB / 0.9266 GB, free: 50.85 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00475/1.545, allocations: 4.413 MB / 0.9309 GB, free: 46.39 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.005148/1.55, allocations: 2.512 MB / 0.9333 GB, free: 43.88 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003455/1.553, allocations: 2.827 MB / 0.9361 GB, free: 41.05 MB / 0.5919 GB Notification: Performance of SimCode: time 2.374e-06/1.553, allocations: 0 / 0.9361 GB, free: 41.05 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4174/1.971, allocations: 114.2 MB / 1.048 GB, free: 180.6 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.59/22.56, allocations: 2.406 kB / 1.048 GB, free: 180.6 MB / 0.6075 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_FreeMotion2.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe 2>&1)