Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotion2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_FreeMotion2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_FreeMotion2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001725/0.001725, allocations: 121.5 kB / 17.78 MB, free: 5.242 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001736/0.001736, allocations: 199.9 kB / 18.73 MB, free: 4.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.437/1.437, allocations: 227.4 MB / 247 MB, free: 10.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2276/0.2276, allocations: 46.11 MB / 344.3 MB, free: 11.46 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00228/0.00228, allocations: 87.86 kB / 480.9 MB, free: 4.512 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4028/0.4051, allocations: 62.44 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.01875/0.4239, allocations: 14.67 MB / 0.5449 GB, free: 1.836 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01334/0.4373, allocations: 4.993 MB / 0.5498 GB, free: 13.88 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003358/0.4407, allocations: 100.5 kB / 0.5499 GB, free: 13.86 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008305/0.4491, allocations: 4.152 MB / 0.554 GB, free: 9.734 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00745/0.4566, allocations: 2.311 MB / 0.5562 GB, free: 7.414 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002957/0.4596, allocations: 1.076 MB / 0.5573 GB, free: 6.336 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01195/0.4715, allocations: 7.148 MB / 0.5643 GB, free: 15.18 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008015/0.4796, allocations: 5.134 MB / 0.5693 GB, free: 9.98 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004311/0.4839, allocations: 2.22 MB / 0.5714 GB, free: 7.754 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005118/0.4891, allocations: 3.065 MB / 0.5744 GB, free: 4.68 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001688/0.4908, allocations: 496 kB / 0.5749 GB, free: 4.195 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003744/0.4946, allocations: 1.354 MB / 0.5762 GB, free: 2.84 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004026/0.4986, allocations: 2.716 MB / 0.5789 GB, free: 120 kB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005997/0.5046, allocations: 3.267 MB / 0.5821 GB, free: 12.83 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01502/0.5197, allocations: 10.15 MB / 0.592 GB, free: 2.641 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.424e-06/0.5198, allocations: 0 / 0.592 GB, free: 2.641 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.5198, allocations: 3.938 kB / 0.592 GB, free: 2.637 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003543/0.5201, allocations: 4 kB / 0.592 GB, free: 2.633 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: 1953 * Number of variables: 1953 Notification: Performance of Generate backend data structure: time 0.02193/0.5421, allocations: 7.31 MB / 0.5991 GB, free: 11.22 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.93e-05/0.5422, allocations: 12.03 kB / 0.5991 GB, free: 11.21 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002882/0.545, allocations: 0.9261 MB / 0.6 GB, free: 10.27 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1738/0.7188, allocations: 12.56 MB / 0.6123 GB, free: 13.7 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01239/0.7313, allocations: 5.081 MB / 0.6173 GB, free: 8.535 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003649/0.7317, allocations: 328.5 kB / 0.6176 GB, free: 8.211 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001539/0.7332, allocations: 447.7 kB / 0.618 GB, free: 7.773 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02478/0.758, allocations: 12.96 MB / 0.6307 GB, free: 9.941 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002106/0.7583, allocations: 67.48 kB / 0.6307 GB, free: 9.875 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006865/0.759, allocations: 215.8 kB / 0.6309 GB, free: 9.664 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004708/0.7637, allocations: 2.527 MB / 0.6334 GB, free: 7.137 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02363/0.7873, allocations: 11.12 MB / 0.6443 GB, free: 12 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07918/0.8666, allocations: 52.19 MB / 0.6952 GB, free: 6.301 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01534/0.8819, allocations: 5.532 MB / 0.7006 GB, free: 0.6172 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007566/0.8895, allocations: 3.387 MB / 0.7039 GB, free: 13.23 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001426/0.891, allocations: 0.676 MB / 0.7046 GB, free: 12.44 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.89e-05/0.8911, allocations: 64.5 kB / 0.7047 GB, free: 12.36 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=245): time 8.697e-06/0.8912, allocations: 0 / 0.7047 GB, free: 12.36 MB / 0.5606 GB Notification: Performance of matching and sorting (n=315): time 0.405/1.296, allocations: 35.3 MB / 0.7391 GB, free: 155.9 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.764e-05/1.296, allocations: 269.1 kB / 0.7394 GB, free: 155.6 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0062/1.303, allocations: 5.203 MB / 0.7445 GB, free: 153.1 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0007164/1.303, allocations: 73.52 kB / 0.7445 GB, free: 153.1 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001846/1.305, allocations: 4.062 MB / 0.7485 GB, free: 149.6 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001207/1.306, allocations: 1.225 MB / 0.7497 GB, free: 148.4 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001744/1.308, allocations: 1.532 MB / 0.7512 GB, free: 146.9 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.146e-05/1.308, allocations: 301.1 kB / 0.7515 GB, free: 146.6 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003611/1.312, allocations: 3.4 MB / 0.7548 GB, free: 143.2 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004914/1.317, allocations: 7.567 MB / 0.7622 GB, free: 133.7 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01005/1.327, allocations: 11.86 MB / 0.7738 GB, free: 119.8 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.425e-05/1.327, allocations: 45.19 kB / 0.7738 GB, free: 119.8 MB / 0.5606 GB Notification: Performance of matching and sorting (n=982) (initialization): time 0.02004/1.347, allocations: 12.75 MB / 0.7863 GB, free: 106.9 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 7.589e-05/1.347, allocations: 71.75 kB / 0.7863 GB, free: 106.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001188/1.347, allocations: 144 kB / 0.7865 GB, free: 106.7 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00479/1.352, allocations: 2.247 MB / 0.7887 GB, free: 104.5 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005422/1.357, allocations: 1.716 MB / 0.7903 GB, free: 102.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01632/1.374, allocations: 16.39 MB / 0.8064 GB, free: 86.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006002/1.38, allocations: 459.4 kB / 0.8068 GB, free: 85.65 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001033/1.381, allocations: 447.4 kB / 0.8072 GB, free: 85.22 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 656 * Number of states: 0 () * Number of discrete variables: 44 (freeMotion.arrow.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 (906): * Single equations (assignments): 901 * 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.003721/1.385, allocations: 2.736 MB / 0.8099 GB, free: 82.47 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001042/1.386, allocations: 0.5084 MB / 0.8104 GB, free: 81.96 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01053/1.396, allocations: 7.288 MB / 0.8175 GB, free: 74.6 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.548e-05/1.396, allocations: 32 kB / 0.8175 GB, free: 74.57 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.079e-05/1.396, allocations: 15.98 kB / 0.8175 GB, free: 74.55 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.28e-05/1.396, allocations: 12.23 kB / 0.8176 GB, free: 74.54 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02302/1.419, allocations: 16.11 MB / 0.8333 GB, free: 58.35 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.168e-05/1.419, allocations: 14.53 kB / 0.8333 GB, free: 58.34 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002223/1.422, allocations: 0.4953 MB / 0.8338 GB, free: 57.84 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004456/1.426, allocations: 2.007 MB / 0.8357 GB, free: 55.83 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000419/1.427, allocations: 67.45 kB / 0.8358 GB, free: 55.77 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01576/1.442, allocations: 14.89 MB / 0.8504 GB, free: 40.59 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.741e-06/1.442, allocations: 8 kB / 0.8504 GB, free: 40.59 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0148/1.457, allocations: 11.69 MB / 0.8618 GB, free: 28.7 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001321/1.459, allocations: 0.5522 MB / 0.8623 GB, free: 28.13 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006991/1.459, allocations: 59.98 kB / 0.8624 GB, free: 28.07 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002356/1.462, allocations: 207.7 kB / 0.8626 GB, free: 27.87 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005517/1.462, allocations: 209.5 kB / 0.8628 GB, free: 27.66 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002125/1.462, allocations: 84 kB / 0.8629 GB, free: 27.58 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004182/1.467, allocations: 3.294 MB / 0.8661 GB, free: 24.3 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.71e-07/1.467, allocations: 0 / 0.8661 GB, free: 24.3 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.00576/1.472, allocations: 1.461 MB / 0.8675 GB, free: 22.84 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.01416/1.487, allocations: 12.4 MB / 0.8796 GB, free: 10.24 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01062/1.497, allocations: 8.463 MB / 0.8879 GB, free: 1.773 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.148e-05/1.497, allocations: 4 kB / 0.8879 GB, free: 1.77 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.00763/1.505, allocations: 4.098 MB / 0.8919 GB, free: 13.65 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004847/1.51, allocations: 0.6985 MB / 0.8926 GB, free: 12.96 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4192/1.929, allocations: 68.2 MB / 0.9592 GB, free: 221.6 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005293/1.934, allocations: 4.28 MB / 0.9633 GB, free: 220.7 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.0057/1.94, allocations: 2.461 MB / 0.9657 GB, free: 220.7 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003345/1.943, allocations: 2.707 MB / 0.9684 GB, free: 220.6 MB / 0.6387 GB Notification: Performance of SimCode: time 1.032e-06/1.943, allocations: 0 / 0.9684 GB, free: 220.6 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1622/2.106, allocations: 112 MB / 1.078 GB, free: 123.8 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.57/24.67, allocations: 24.61 kB / 1.078 GB, free: 123.8 MB / 0.6387 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotion2.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_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_1_0-beta_om_ModelicaTest_MultiBody_Joints_FreeMotion2.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe 2>&1)