Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotion2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion2,fileNamePrefix="ModelicaTest_4_0_0_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.001683/0.001683, allocations: 113.8 kB / 17.78 MB, free: 5.277 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.001995/0.001995, allocations: 179.1 kB / 18.71 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.329/1.329, allocations: 222.9 MB / 242.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2127/0.2127, allocations: 44.18 MB / 336.8 MB, free: 2.652 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00145/0.00145, allocations: 67.91 kB / 470.1 MB, free: 13.64 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3573/0.3587, allocations: 60.82 MB / 0.5184 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.01664/0.3754, allocations: 14.78 MB / 0.5329 GB, free: 8.703 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01322/0.3887, allocations: 4.999 MB / 0.5378 GB, free: 4.746 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004102/0.3928, allocations: 102.8 kB / 0.5379 GB, free: 4.723 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008833/0.4017, allocations: 4.162 MB / 0.5419 GB, free: 1.93 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008383/0.4102, allocations: 2.448 MB / 0.5443 GB, free: 148 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00338/0.4136, allocations: 1.071 MB / 0.5454 GB, free: 15.39 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01138/0.425, allocations: 7.068 MB / 0.5523 GB, free: 9.367 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008271/0.4333, allocations: 5.153 MB / 0.5573 GB, free: 4.152 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004934/0.4383, allocations: 2.27 MB / 0.5595 GB, free: 1.875 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005725/0.444, allocations: 3.073 MB / 0.5625 GB, free: 14.79 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001972/0.446, allocations: 0.4922 MB / 0.563 GB, free: 14.3 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003803/0.4499, allocations: 1.381 MB / 0.5643 GB, free: 12.92 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004275/0.4542, allocations: 2.794 MB / 0.5671 GB, free: 10.12 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006708/0.4609, allocations: 3.318 MB / 0.5703 GB, free: 6.781 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01658/0.4775, allocations: 10.31 MB / 0.5804 GB, free: 12.43 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.887e-06/0.4776, allocations: 0 / 0.5804 GB, free: 12.43 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.4776, allocations: 0 / 0.5804 GB, free: 12.43 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004523/0.478, allocations: 0 / 0.5804 GB, free: 12.43 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1982 * Number of variables: 1982 Notification: Performance of Generate backend data structure: time 0.02236/0.5004, allocations: 7.356 MB / 0.5876 GB, free: 4.98 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/0.5005, allocations: 8.031 kB / 0.5876 GB, free: 4.973 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002287/0.5028, allocations: 0.9424 MB / 0.5885 GB, free: 4.02 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1722/0.675, allocations: 12.59 MB / 0.6008 GB, free: 7.41 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01485/0.6899, allocations: 5.425 MB / 0.6061 GB, free: 1.902 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003048/0.6903, allocations: 332.6 kB / 0.6064 GB, free: 1.574 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001445/0.6917, allocations: 451.7 kB / 0.6068 GB, free: 1.133 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02324/0.715, allocations: 13.15 MB / 0.6197 GB, free: 3.117 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002058/0.7152, allocations: 71.47 kB / 0.6197 GB, free: 3.047 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005911/0.7158, allocations: 203.8 kB / 0.6199 GB, free: 2.848 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004642/0.7205, allocations: 2.59 MB / 0.6225 GB, free: 260 kB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02437/0.7449, allocations: 11.29 MB / 0.6335 GB, free: 4.953 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07763/0.8226, allocations: 52.62 MB / 0.6849 GB, free: 14.8 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01451/0.8371, allocations: 5.531 MB / 0.6903 GB, free: 9.129 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004544/0.8417, allocations: 3.383 MB / 0.6936 GB, free: 5.734 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008341/0.8426, allocations: 0.6838 MB / 0.6942 GB, free: 4.941 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.838e-05/0.8427, allocations: 64.5 kB / 0.6943 GB, free: 4.867 MB / 0.545 GB Notification: Performance of pre-optimization done (n=245): time 6.432e-06/0.8427, allocations: 3.938 kB / 0.6943 GB, free: 4.863 MB / 0.545 GB Notification: Performance of matching and sorting (n=315): time 0.344/1.187, allocations: 35.36 MB / 0.7288 GB, free: 162 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001144/1.187, allocations: 273.1 kB / 0.7291 GB, free: 161.7 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008472/1.195, allocations: 5.262 MB / 0.7342 GB, free: 159.9 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0007864/1.196, allocations: 72.23 kB / 0.7343 GB, free: 159.8 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002501/1.199, allocations: 4.105 MB / 0.7383 GB, free: 157.1 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001536/1.2, allocations: 1.229 MB / 0.7395 GB, free: 156.2 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002024/1.202, allocations: 1.533 MB / 0.741 GB, free: 155.5 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.439e-05/1.202, allocations: 301.1 kB / 0.7413 GB, free: 155.2 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004122/1.206, allocations: 3.407 MB / 0.7446 GB, free: 154 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006369/1.213, allocations: 7.586 MB / 0.752 GB, free: 147.2 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0117/1.225, allocations: 11.89 MB / 0.7636 GB, free: 137.4 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001288/1.225, allocations: 40 kB / 0.7637 GB, free: 137.4 MB / 0.5606 GB Notification: Performance of matching and sorting (n=985) (initialization): time 0.02268/1.247, allocations: 12.78 MB / 0.7762 GB, free: 124.5 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 7.651e-05/1.248, allocations: 68 kB / 0.7762 GB, free: 124.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001137/1.248, allocations: 144.9 kB / 0.7764 GB, free: 124.3 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00479/1.252, allocations: 2.243 MB / 0.7786 GB, free: 122.1 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005173/1.258, allocations: 1.727 MB / 0.7802 GB, free: 120.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01551/1.273, allocations: 16.4 MB / 0.7963 GB, free: 103.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006363/1.28, allocations: 451.5 kB / 0.7967 GB, free: 103.3 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001429/1.281, allocations: 447.9 kB / 0.7971 GB, free: 102.8 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 659 * Number of states: 0 () * Number of discrete variables: 44 (freeMotion.arrow.arrowLine.twoHeadedArrow,freeMotion.arrow.headAtOrigin,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 (909): * Single equations (assignments): 904 * 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.00633/1.287, allocations: 2.771 MB / 0.7998 GB, free: 100 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001676/1.289, allocations: 0.5161 MB / 0.8003 GB, free: 99.52 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01309/1.302, allocations: 7.292 MB / 0.8074 GB, free: 92.16 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.121e-05/1.302, allocations: 32 kB / 0.8075 GB, free: 92.13 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.586e-05/1.302, allocations: 12 kB / 0.8075 GB, free: 92.12 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.841e-05/1.302, allocations: 11.95 kB / 0.8075 GB, free: 92.11 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03109/1.333, allocations: 16.17 MB / 0.8233 GB, free: 75.86 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.649e-05/1.334, allocations: 4 kB / 0.8233 GB, free: 75.86 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002328/1.336, allocations: 0.4962 MB / 0.8238 GB, free: 75.36 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00455/1.34, allocations: 2.015 MB / 0.8257 GB, free: 73.34 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004708/1.341, allocations: 59.98 kB / 0.8258 GB, free: 73.28 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01684/1.358, allocations: 14.89 MB / 0.8403 GB, free: 58.12 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.666e-06/1.358, allocations: 11.94 kB / 0.8404 GB, free: 58.11 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01781/1.376, allocations: 11.7 MB / 0.8518 GB, free: 46.22 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002145/1.378, allocations: 0.56 MB / 0.8523 GB, free: 45.64 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002149/1.38, allocations: 52 kB / 0.8524 GB, free: 45.59 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003857/1.384, allocations: 215.7 kB / 0.8526 GB, free: 45.38 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008481/1.385, allocations: 209.4 kB / 0.8528 GB, free: 45.18 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004051/1.385, allocations: 87.98 kB / 0.8529 GB, free: 45.09 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.006344/1.392, allocations: 3.324 MB / 0.8561 GB, free: 41.79 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.61e-07/1.392, allocations: 0 / 0.8561 GB, free: 41.79 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.008667/1.4, allocations: 1.484 MB / 0.8576 GB, free: 40.3 MB / 0.5606 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 (253): * Single equations (assignments): 248 * 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.01736/1.418, allocations: 12.41 MB / 0.8697 GB, free: 27.69 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01222/1.43, allocations: 8.469 MB / 0.878 GB, free: 19.21 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.099e-05/1.43, allocations: 0 / 0.878 GB, free: 19.21 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.007487/1.437, allocations: 4.106 MB / 0.882 GB, free: 15.08 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008254/1.446, allocations: 0.7092 MB / 0.8827 GB, free: 14.38 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3814/1.827, allocations: 68.59 MB / 0.9496 GB, free: 214.1 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006681/1.834, allocations: 4.326 MB / 0.9539 GB, free: 213.3 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.006085/1.84, allocations: 2.466 MB / 0.9563 GB, free: 213.2 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004587/1.845, allocations: 2.741 MB / 0.9589 GB, free: 213.1 MB / 0.6231 GB Notification: Performance of SimCode: time 2.815e-06/1.845, allocations: 3.969 kB / 0.9589 GB, free: 213.1 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1545/1.999, allocations: 112.6 MB / 1.069 GB, free: 117.4 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.83/22.83, allocations: 10.56 kB / 1.069 GB, free: 117.4 MB / 0.6231 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_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_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotion2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe 2>&1)