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.001062/0.001062, allocations: 103.1 kB / 16.27 MB, free: 5.988 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.001047/0.001047, allocations: 194 kB / 17.2 MB, free: 5.605 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.434/1.434, allocations: 205.1 MB / 223.1 MB, free: 12.32 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.2144/0.2144, allocations: 43.52 MB / 313.9 MB, free: 0.543 MB / 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.001429/0.001429, allocations: 67.03 kB / 382.8 MB, free: 56.7 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1043, allocations: 57.78 MB / 440.6 MB, free: 6.824 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.01331/0.1176, allocations: 15.22 MB / 455.8 MB, free: 7.523 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01114/0.1288, allocations: 5.093 MB / 460.9 MB, free: 2.418 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003744/0.1326, allocations: 103.7 kB / 461 MB, free: 2.316 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008641/0.1413, allocations: 4.178 MB / 465.2 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007568/0.1489, allocations: 2.419 MB / 467.6 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002816/0.1518, allocations: 1.096 MB / 468.7 MB, free: 10.6 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009848/0.1616, allocations: 6.837 MB / 475.6 MB, free: 3.746 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006018/0.1677, allocations: 5.233 MB / 480.8 MB, free: 14.45 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003666/0.1714, allocations: 2.301 MB / 483.1 MB, free: 12.14 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004361/0.1758, allocations: 3.166 MB / 486.3 MB, free: 8.965 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001283/0.1771, allocations: 0.5039 MB / 486.8 MB, free: 8.461 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002588/0.1797, allocations: 1.373 MB / 488.1 MB, free: 7.086 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002496/0.1822, allocations: 2.844 MB / 491 MB, free: 4.234 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003883/0.1861, allocations: 3.399 MB / 494.4 MB, free: 0.8164 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01055/0.1966, allocations: 10.24 MB / 0.4928 GB, free: 6.543 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.1967, allocations: 0 / 0.4928 GB, free: 6.543 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.1967, allocations: 0 / 0.4928 GB, free: 6.543 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002802/0.197, allocations: 0 / 0.4928 GB, free: 6.543 MB / 382.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.02022/0.2172, allocations: 7.336 MB / 0.5 GB, free: 15.12 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.262e-05/0.2173, allocations: 11.89 kB / 0.5 GB, free: 15.11 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002099/0.2194, allocations: 0.9593 MB / 0.5009 GB, free: 14.14 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1837/0.4031, allocations: 12.57 MB / 0.5132 GB, free: 1.551 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01346/0.4166, allocations: 5.669 MB / 0.5187 GB, free: 11.8 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003277/0.417, allocations: 340.7 kB / 0.5191 GB, free: 11.46 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00177/0.4188, allocations: 451.6 kB / 0.5195 GB, free: 11.02 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2565/0.6753, allocations: 13.44 MB / 0.5326 GB, free: 79.55 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002406/0.6756, allocations: 69.28 kB / 0.5327 GB, free: 79.53 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008067/0.6764, allocations: 214.6 kB / 0.5329 GB, free: 79.53 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006858/0.6833, allocations: 2.651 MB / 0.5355 GB, free: 79.48 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03313/0.7164, allocations: 11.58 MB / 0.5468 GB, free: 76.55 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06706/0.7835, allocations: 53.7 MB / 0.5992 GB, free: 27.53 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01202/0.7956, allocations: 5.659 MB / 0.6047 GB, free: 21.73 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003155/0.7988, allocations: 3.426 MB / 0.6081 GB, free: 18.3 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004935/0.7993, allocations: 0.6842 MB / 0.6088 GB, free: 17.52 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.102e-05/0.7994, allocations: 68.56 kB / 0.6088 GB, free: 17.45 MB / 414.1 MB Notification: Performance of pre-optimization done (n=254): time 4.689e-06/0.7994, allocations: 3.938 kB / 0.6088 GB, free: 17.44 MB / 414.1 MB Notification: Performance of matching and sorting (n=324): time 0.09164/0.891, allocations: 35.61 MB / 0.6436 GB, free: 13.68 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001624/0.8912, allocations: 269.3 kB / 0.6439 GB, free: 13.36 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00761/0.8988, allocations: 5.356 MB / 0.6491 GB, free: 8.023 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007294/0.8996, allocations: 73.7 kB / 0.6492 GB, free: 7.945 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003388/0.903, allocations: 4.046 MB / 0.6531 GB, free: 3.848 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001834/0.9049, allocations: 1.203 MB / 0.6543 GB, free: 2.629 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002294/0.9072, allocations: 1.555 MB / 0.6558 GB, free: 1.066 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.839e-05/0.9073, allocations: 309.1 kB / 0.6561 GB, free: 0.7617 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004967/0.9122, allocations: 3.466 MB / 0.6595 GB, free: 13.29 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008224/0.9205, allocations: 7.73 MB / 0.667 GB, free: 3.484 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01667/0.9372, allocations: 12.1 MB / 0.6789 GB, free: 5.273 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001364/0.9374, allocations: 46.62 kB / 0.6789 GB, free: 5.23 MB / 478.1 MB Notification: Performance of matching and sorting (n=1007) (initialization): time 0.02452/0.9619, allocations: 12.96 MB / 0.6916 GB, free: 8.211 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001044/0.962, allocations: 68 kB / 0.6916 GB, free: 8.145 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002045/0.9622, allocations: 155.9 kB / 0.6918 GB, free: 7.992 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0058/0.968, allocations: 2.26 MB / 0.694 GB, free: 5.727 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006091/0.9742, allocations: 1.766 MB / 0.6957 GB, free: 3.953 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0209/0.9951, allocations: 16.42 MB / 0.7117 GB, free: 3.246 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007573/1.003, allocations: 463.2 kB / 0.7122 GB, free: 2.793 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001813/1.005, allocations: 455.9 kB / 0.7126 GB, free: 2.348 MB / 0.4981 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.007078/1.012, allocations: 2.833 MB / 0.7154 GB, free: 15.5 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001756/1.013, allocations: 0.4898 MB / 0.7159 GB, free: 15 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01464/1.028, allocations: 7.432 MB / 0.7231 GB, free: 7.504 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.944e-05/1.028, allocations: 32 kB / 0.7231 GB, free: 7.473 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.22e-05/1.028, allocations: 12 kB / 0.7232 GB, free: 7.461 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.685e-05/1.028, allocations: 19.94 kB / 0.7232 GB, free: 7.441 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2484/1.277, allocations: 16.67 MB / 0.7395 GB, free: 171.5 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.287e-05/1.277, allocations: 7.891 kB / 0.7395 GB, free: 171.5 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002929/1.28, allocations: 0.5147 MB / 0.74 GB, free: 171.5 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005429/1.285, allocations: 2.018 MB / 0.7419 GB, free: 171.4 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007688/1.286, allocations: 65.39 kB / 0.742 GB, free: 171.3 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01818/1.304, allocations: 14.79 MB / 0.7564 GB, free: 164 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.292e-06/1.304, allocations: 12.42 kB / 0.7565 GB, free: 164 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.016/1.32, allocations: 11.84 MB / 0.768 GB, free: 159.2 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002722/1.323, allocations: 1.078 MB / 0.7691 GB, free: 158.9 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009397/1.324, allocations: 67.09 kB / 0.7691 GB, free: 158.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002544/1.326, allocations: 221 kB / 0.7693 GB, free: 158.8 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005725/1.327, allocations: 212.8 kB / 0.7695 GB, free: 158.8 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002074/1.327, allocations: 89.72 kB / 0.7696 GB, free: 158.7 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.005253/1.332, allocations: 3.4 MB / 0.773 GB, free: 157.6 MB / 0.5137 GB Notification: Performance of sort global known variables: time 3.81e-07/1.333, allocations: 0 / 0.773 GB, free: 157.6 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.008635/1.341, allocations: 1.514 MB / 0.7744 GB, free: 156.3 MB / 0.5137 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.01618/1.357, allocations: 12.54 MB / 0.7867 GB, free: 144.8 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0184/1.376, allocations: 12.36 MB / 0.7987 GB, free: 132.5 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.41e-05/1.376, allocations: 0 / 0.7987 GB, free: 132.5 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.007091/1.383, allocations: 4.151 MB / 0.8028 GB, free: 128.4 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004463/1.387, allocations: 0.7038 MB / 0.8035 GB, free: 127.7 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1129/1.5, allocations: 82.29 MB / 0.8838 GB, free: 35.33 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006842/1.507, allocations: 4.417 MB / 0.8882 GB, free: 30.87 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.007505/1.515, allocations: 2.516 MB / 0.8906 GB, free: 28.35 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005211/1.52, allocations: 2.831 MB / 0.8934 GB, free: 25.52 MB / 0.5137 GB Notification: Performance of SimCode: time 9.02e-07/1.52, allocations: 0 / 0.8934 GB, free: 25.52 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4577/1.978, allocations: 118.7 MB / 1.009 GB, free: 132.3 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.57/14.54, allocations: 14 kB / 1.009 GB, free: 132.3 MB / 0.5294 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)