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.001639/0.001639, allocations: 104.8 kB / 16.4 MB, free: 5.961 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.001786/0.001786, allocations: 195.7 kB / 17.34 MB, free: 5.566 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.537/1.537, 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.2359/0.2359, allocations: 43.52 MB / 314.1 MB, free: 444 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.002069/0.002069, allocations: 67.91 kB / 441.3 MB, free: 6.129 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1314/0.1335, allocations: 57.8 MB / 499.1 MB, free: 12.26 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.01875/0.1523, allocations: 15.23 MB / 0.5023 GB, free: 12.96 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01222/0.1646, allocations: 5.078 MB / 0.5073 GB, free: 7.867 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003529/0.1681, allocations: 103.7 kB / 0.5074 GB, free: 7.766 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008832/0.177, allocations: 4.174 MB / 0.5114 GB, free: 3.578 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007851/0.185, allocations: 2.419 MB / 0.5138 GB, free: 1.148 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003388/0.1884, allocations: 1.096 MB / 0.5149 GB, free: 52 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01293/0.2013, allocations: 6.86 MB / 0.5216 GB, free: 9.176 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008014/0.2094, allocations: 5.225 MB / 0.5267 GB, free: 3.887 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005061/0.2145, allocations: 2.309 MB / 0.5289 GB, free: 1.57 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2964/0.5109, allocations: 3.152 MB / 0.532 GB, free: 10.95 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00278/0.5138, allocations: 0.5059 MB / 0.5325 GB, free: 10.95 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005398/0.5192, allocations: 1.381 MB / 0.5338 GB, free: 10.95 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005627/0.5249, allocations: 2.824 MB / 0.5366 GB, free: 10.95 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01006/0.535, allocations: 3.407 MB / 0.5399 GB, free: 10.06 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01895/0.554, allocations: 10.57 MB / 0.5502 GB, free: 8.508 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.692e-06/0.554, allocations: 0 / 0.5502 GB, free: 8.508 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.554, allocations: 1.125 kB / 0.5502 GB, free: 8.508 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004844/0.5545, allocations: 0.5938 kB / 0.5502 GB, free: 8.508 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.03031/0.5848, allocations: 7.521 MB / 0.5576 GB, free: 4.855 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.946e-05/0.5849, allocations: 13.48 kB / 0.5576 GB, free: 4.852 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00387/0.5888, allocations: 0.9614 MB / 0.5585 GB, free: 4.418 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1752/0.7639, allocations: 12.6 MB / 0.5709 GB, free: 15.73 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01523/0.7792, allocations: 5.792 MB / 0.5765 GB, free: 11.94 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00052/0.7798, allocations: 333.3 kB / 0.5768 GB, free: 11.65 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002861/0.7827, allocations: 466 kB / 0.5773 GB, free: 11.24 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03794/0.8206, allocations: 13.44 MB / 0.5904 GB, free: 13.16 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004982/0.8212, allocations: 71.75 kB / 0.5905 GB, free: 13.11 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002748/0.8239, allocations: 210.8 kB / 0.5907 GB, free: 12.95 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005707/0.8297, allocations: 2.656 MB / 0.5933 GB, free: 10.33 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0287/0.8584, allocations: 11.57 MB / 0.6046 GB, free: 14.98 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08687/0.9453, allocations: 53.52 MB / 0.6568 GB, free: 8.707 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01483/0.9602, allocations: 5.65 MB / 0.6624 GB, free: 2.922 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005226/0.9654, allocations: 3.425 MB / 0.6657 GB, free: 15.49 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009466/0.9664, allocations: 0.6809 MB / 0.6664 GB, free: 14.72 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.953e-05/0.9665, allocations: 64.55 kB / 0.6664 GB, free: 14.64 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=254): time 5.671e-06/0.9665, allocations: 4 kB / 0.6664 GB, free: 14.64 MB / 0.5137 GB Notification: Performance of matching and sorting (n=324): time 0.1171/1.084, allocations: 35.95 MB / 0.7015 GB, free: 10.66 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002167/1.084, allocations: 272.9 kB / 0.7018 GB, free: 10.34 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0136/1.097, allocations: 5.361 MB / 0.707 GB, free: 5 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0009955/1.098, allocations: 77.7 kB / 0.7071 GB, free: 4.918 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.004585/1.103, allocations: 4.204 MB / 0.7112 GB, free: 0.7305 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002318/1.105, allocations: 1.255 MB / 0.7124 GB, free: 15.49 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004901/1.11, allocations: 1.564 MB / 0.714 GB, free: 13.92 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001479/1.111, allocations: 305.1 kB / 0.7143 GB, free: 13.62 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006357/1.117, allocations: 3.466 MB / 0.7176 GB, free: 10.15 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01089/1.128, allocations: 7.733 MB / 0.7252 GB, free: 424 kB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0183/1.146, allocations: 12.11 MB / 0.737 GB, free: 2.801 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000154/1.146, allocations: 44 kB / 0.7371 GB, free: 2.758 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1007) (initialization): time 0.02944/1.176, allocations: 12.98 MB / 0.7497 GB, free: 5.973 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001386/1.176, allocations: 68 kB / 0.7498 GB, free: 5.906 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002012/1.176, allocations: 152.1 kB / 0.7499 GB, free: 5.758 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006105/1.182, allocations: 2.254 MB / 0.7521 GB, free: 3.496 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007189/1.19, allocations: 1.766 MB / 0.7539 GB, free: 1.727 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2587/1.448, allocations: 16.41 MB / 0.7699 GB, free: 196 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006738/1.455, allocations: 461.4 kB / 0.7703 GB, free: 195.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001576/1.457, allocations: 458 kB / 0.7708 GB, free: 195.8 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.006005/1.463, allocations: 2.829 MB / 0.7735 GB, free: 194.7 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001289/1.464, allocations: 0.5219 MB / 0.774 GB, free: 194.7 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01326/1.477, allocations: 7.434 MB / 0.7813 GB, free: 191.9 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.028e-05/1.477, allocations: 33.69 kB / 0.7813 GB, free: 191.9 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.11e-05/1.477, allocations: 11.25 kB / 0.7814 GB, free: 191.9 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.156e-05/1.477, allocations: 13.64 kB / 0.7814 GB, free: 191.9 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03112/1.509, allocations: 16.44 MB / 0.7974 GB, free: 185.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-05/1.509, allocations: 7.344 kB / 0.7974 GB, free: 185.6 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00246/1.511, allocations: 0.5189 MB / 0.7979 GB, free: 185.6 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004719/1.516, allocations: 2.01 MB / 0.7999 GB, free: 185.1 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005503/1.516, allocations: 62.22 kB / 0.8 GB, free: 185.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01661/1.533, allocations: 14.89 MB / 0.8145 GB, free: 172.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.493e-06/1.533, allocations: 13.25 kB / 0.8145 GB, free: 172.2 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01614/1.549, allocations: 11.89 MB / 0.8261 GB, free: 160.4 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003183/1.552, allocations: 1.109 MB / 0.8272 GB, free: 159.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0013/1.554, allocations: 61.33 kB / 0.8273 GB, free: 159.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003139/1.557, allocations: 212.5 kB / 0.8275 GB, free: 159.1 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006113/1.558, allocations: 213.4 kB / 0.8277 GB, free: 158.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002412/1.558, allocations: 92.69 kB / 0.8278 GB, free: 158.8 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.005388/1.563, allocations: 3.395 MB / 0.8311 GB, free: 155.5 MB / 0.5919 GB Notification: Performance of sort global known variables: time 6.21e-07/1.563, allocations: 3.938 kB / 0.8311 GB, free: 155.5 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.008477/1.572, allocations: 1.518 MB / 0.8326 GB, free: 153.9 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.01683/1.589, allocations: 12.58 MB / 0.8448 GB, free: 141.2 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01207/1.601, allocations: 8.646 MB / 0.8533 GB, free: 132.6 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.212e-05/1.601, allocations: 0 / 0.8533 GB, free: 132.6 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.007293/1.608, allocations: 4.159 MB / 0.8573 GB, free: 128.4 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005797/1.614, allocations: 0.7175 MB / 0.858 GB, free: 127.8 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1079/1.722, allocations: 70.04 MB / 0.9264 GB, free: 50.84 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006299/1.728, allocations: 4.409 MB / 0.9307 GB, free: 46.38 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.005623/1.734, allocations: 2.524 MB / 0.9332 GB, free: 43.86 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004198/1.738, allocations: 2.819 MB / 0.936 GB, free: 41.04 MB / 0.5919 GB Notification: Performance of SimCode: time 9.22e-07/1.738, allocations: 0 / 0.936 GB, free: 41.04 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4571/2.195, allocations: 114.2 MB / 1.047 GB, free: 180.5 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.67/24.87, allocations: 1.312 kB / 1.047 GB, free: 180.5 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)