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: translateModel(ModelicaTest.MultiBody.Joints.FreeMotion2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion.r_rel_a.1.|freeMotion.v_rel_a.1.|prismatic1.s|prismatic1.v|universal.phi_a|universal.phi_b|universal.w_a|universal.w_b|universal1.phi_a|universal1.phi_b|universal1.w_a|universal1.w_b",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2") translateModel(ModelicaTest.MultiBody.Joints.FreeMotion2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion.r_rel_a.1.|freeMotion.v_rel_a.1.|prismatic1.s|prismatic1.v|universal.phi_a|universal.phi_b|universal.w_a|universal.w_b|universal1.phi_a|universal1.phi_b|universal1.w_a|universal1.w_b",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001069/0.001069, allocations: 118.4 kB / 17.78 MB, free: 5.258 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.001031/0.001031, allocations: 183.8 kB / 18.72 MB, free: 4.332 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.374/1.374, 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.216/0.216, allocations: 44.18 MB / 336.8 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 63.91 kB / 470.5 MB, free: 13.17 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3635/0.3648, allocations: 60.82 MB / 0.5189 GB, free: 3.605 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.01594/0.3808, allocations: 14.8 MB / 0.5334 GB, free: 8.875 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01034/0.3912, allocations: 4.996 MB / 0.5382 GB, free: 4.918 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003304/0.3945, allocations: 101.6 kB / 0.5383 GB, free: 4.898 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008276/0.4029, allocations: 4.166 MB / 0.5424 GB, free: 2.102 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00701/0.4099, allocations: 2.364 MB / 0.5447 GB, free: 384 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00299/0.4129, allocations: 1.079 MB / 0.5458 GB, free: 15.61 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01538/0.4283, allocations: 7.052 MB / 0.5527 GB, free: 9.422 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009264/0.4377, allocations: 5.163 MB / 0.5577 GB, free: 4.199 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004767/0.4425, allocations: 2.247 MB / 0.5599 GB, free: 1.945 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004307/0.4468, allocations: 3.069 MB / 0.5629 GB, free: 14.87 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009658/0.4478, allocations: 0.4961 MB / 0.5634 GB, free: 14.37 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002525/0.4504, allocations: 1.381 MB / 0.5647 GB, free: 12.99 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002132/0.4525, allocations: 2.79 MB / 0.5674 GB, free: 10.19 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002978/0.4555, allocations: 3.174 MB / 0.5705 GB, free: 7 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01068/0.4662, allocations: 9.969 MB / 0.5803 GB, free: 12.99 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.902e-06/0.4662, allocations: 0 / 0.5803 GB, free: 12.99 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.4662, allocations: 0 / 0.5803 GB, free: 12.99 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002207/0.4665, allocations: 0 / 0.5803 GB, free: 12.99 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.01494/0.4814, allocations: 7.091 MB / 0.5872 GB, free: 5.809 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.957e-05/0.4815, allocations: 8.031 kB / 0.5872 GB, free: 5.801 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02568/0.5072, allocations: 3.379 MB / 0.5905 GB, free: 2.414 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01103/0.5182, allocations: 4.542 MB / 0.5949 GB, free: 13.79 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003231/0.5186, allocations: 328.8 kB / 0.5953 GB, free: 13.46 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001631/0.5202, allocations: 463.5 kB / 0.5957 GB, free: 13.01 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0247/0.5449, allocations: 13.27 MB / 0.6087 GB, free: 14.87 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002392/0.5452, allocations: 67.45 kB / 0.6087 GB, free: 14.8 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007015/0.5459, allocations: 207.8 kB / 0.6089 GB, free: 14.6 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004501/0.5504, allocations: 2.593 MB / 0.6115 GB, free: 12 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02471/0.5752, allocations: 11.54 MB / 0.6227 GB, free: 460 kB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06988/0.6451, allocations: 53.27 MB / 0.6747 GB, free: 9.652 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01349/0.6586, allocations: 5.664 MB / 0.6803 GB, free: 3.84 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00491/0.6636, allocations: 3.5 MB / 0.6837 GB, free: 336 kB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008549/0.6645, allocations: 0.6838 MB / 0.6844 GB, free: 15.54 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.129e-05/0.6646, allocations: 68.48 kB / 0.6844 GB, free: 15.46 MB / 0.545 GB Notification: Performance of pre-optimization done (n=245): time 8.466e-06/0.6646, allocations: 4 kB / 0.6844 GB, free: 15.45 MB / 0.545 GB Notification: Performance of matching and sorting (n=315): time 0.4736/1.138, allocations: 36.85 MB / 0.7204 GB, free: 166.8 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000131/1.138, allocations: 266.8 kB / 0.7207 GB, free: 166.6 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01047/1.149, allocations: 5.234 MB / 0.7258 GB, free: 164.9 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001057/1.15, allocations: 72.73 kB / 0.7259 GB, free: 164.8 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.003195/1.153, allocations: 4.059 MB / 0.7298 GB, free: 162.3 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001817/1.155, allocations: 1.228 MB / 0.731 GB, free: 161.6 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003137/1.158, allocations: 1.611 MB / 0.7326 GB, free: 160.8 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 7.849e-05/1.158, allocations: 306.1 kB / 0.7329 GB, free: 160.5 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00579/1.164, allocations: 3.634 MB / 0.7364 GB, free: 159.2 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007585/1.172, allocations: 7.833 MB / 0.7441 GB, free: 152.3 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01367/1.185, allocations: 12.27 MB / 0.7561 GB, free: 143.1 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001154/1.186, allocations: 41.97 kB / 0.7561 GB, free: 143.1 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1027) (initialization): time 0.02594/1.211, allocations: 13.78 MB / 0.7696 GB, free: 131.5 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.69e-05/1.212, allocations: 68 kB / 0.7696 GB, free: 131.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001416/1.212, allocations: 147 kB / 0.7698 GB, free: 131.3 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006452/1.218, allocations: 2.758 MB / 0.7725 GB, free: 128.6 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006462/1.225, allocations: 1.79 MB / 0.7742 GB, free: 126.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02053/1.245, allocations: 17.82 MB / 0.7916 GB, free: 108.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007439/1.253, allocations: 478.2 kB / 0.7921 GB, free: 108.2 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001628/1.254, allocations: 459.5 kB / 0.7925 GB, free: 107.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 (951): * Single equations (assignments): 946 * 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.005445/1.26, allocations: 2.763 MB / 0.7952 GB, free: 105.1 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001504/1.261, allocations: 0.5006 MB / 0.7957 GB, free: 104.6 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01321/1.275, allocations: 8.048 MB / 0.8036 GB, free: 96.47 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.802e-05/1.275, allocations: 39.33 kB / 0.8036 GB, free: 96.44 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.506e-05/1.275, allocations: 11.88 kB / 0.8036 GB, free: 96.43 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.648e-05/1.275, allocations: 23.94 kB / 0.8036 GB, free: 96.41 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02995/1.305, allocations: 16.89 MB / 0.8201 GB, free: 79.44 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.689e-05/1.305, allocations: 11.94 kB / 0.8201 GB, free: 79.43 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002356/1.307, allocations: 0.496 MB / 0.8206 GB, free: 78.93 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005628/1.313, allocations: 2.487 MB / 0.823 GB, free: 76.43 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005047/1.313, allocations: 68 kB / 0.8231 GB, free: 76.37 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01582/1.329, allocations: 15.97 MB / 0.8387 GB, free: 60.13 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.971e-06/1.329, allocations: 11.94 kB / 0.8387 GB, free: 60.12 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01749/1.347, allocations: 12.62 MB / 0.851 GB, free: 47.31 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002149/1.349, allocations: 0.5561 MB / 0.8516 GB, free: 46.73 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001836/1.351, allocations: 67.92 kB / 0.8516 GB, free: 46.66 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003688/1.355, allocations: 223.7 kB / 0.8519 GB, free: 46.45 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007476/1.355, allocations: 205.6 kB / 0.8521 GB, free: 46.24 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004742/1.356, allocations: 83.91 kB / 0.8521 GB, free: 46.16 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.006797/1.363, allocations: 3.304 MB / 0.8554 GB, free: 42.88 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.11e-07/1.363, allocations: 0 / 0.8554 GB, free: 42.88 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.009963/1.373, allocations: 1.551 MB / 0.8569 GB, free: 41.32 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 {(3,21,100.0%), (3,21,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001158/1.374, allocations: 219.3 kB / 0.8571 GB, free: 41.1 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01487/1.389, allocations: 8.922 MB / 0.8658 GB, free: 32.18 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.463e-05/1.389, allocations: 4 kB / 0.8658 GB, free: 32.17 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.005482/1.394, allocations: 3.572 MB / 0.8693 GB, free: 28.57 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008285/1.403, allocations: 0.6767 MB / 0.87 GB, free: 27.91 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02764/1.43, allocations: 14.86 MB / 0.8845 GB, free: 12.93 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005985/1.436, allocations: 4.327 MB / 0.8887 GB, free: 8.562 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.005807/1.442, allocations: 2.46 MB / 0.8911 GB, free: 6.094 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001599/1.444, allocations: 347.5 kB / 0.8914 GB, free: 5.754 MB / 0.5606 GB Notification: Performance of SimCode: time 1.432e-06/1.444, allocations: 3.938 kB / 0.8914 GB, free: 5.75 MB / 0.5606 GB Notification: Performance of Templates: time 0.4468/1.891, allocations: 65.48 MB / 0.9554 GB, free: 195.8 MB / 0.6075 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.makefile (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 & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/FreeMotion2/FreeMotion2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches