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: 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_3.2.3_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_3.2.3_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.001706/0.001706, allocations: 102.5 kB / 16.4 MB, free: 6.43 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.00181/0.001811, allocations: 192.2 kB / 17.34 MB, free: 5.707 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.768/1.768, allocations: 205.1 MB / 223.2 MB, free: 12.24 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.2603/0.2603, allocations: 43.52 MB / 314.1 MB, free: 460 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.001477/0.001477, allocations: 73.45 kB / 441.8 MB, free: 5.637 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1226/0.1241, allocations: 57.78 MB / 499.6 MB, free: 11.78 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.01815/0.1423, allocations: 15.23 MB / 0.5028 GB, free: 12.48 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01224/0.1546, allocations: 5.082 MB / 0.5077 GB, free: 7.387 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003678/0.1583, allocations: 99.69 kB / 0.5078 GB, free: 7.289 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008713/0.167, allocations: 4.174 MB / 0.5119 GB, free: 3.102 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008441/0.1756, allocations: 2.498 MB / 0.5143 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003651/0.1792, allocations: 1.092 MB / 0.5154 GB, free: 15.5 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01205/0.1913, allocations: 6.861 MB / 0.5221 GB, free: 8.621 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008956/0.2003, allocations: 5.225 MB / 0.5272 GB, free: 3.332 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005633/0.206, allocations: 2.325 MB / 0.5295 GB, free: 1 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.3408/0.5468, allocations: 3.156 MB / 0.5326 GB, free: 11.41 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002196/0.549, allocations: 0.5033 MB / 0.5331 GB, free: 11.41 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003779/0.5528, allocations: 1.386 MB / 0.5344 GB, free: 11.41 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003542/0.5564, allocations: 2.859 MB / 0.5372 GB, free: 11.41 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005796/0.5622, allocations: 3.253 MB / 0.5404 GB, free: 10.36 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02233/0.5845, allocations: 10.19 MB / 0.5503 GB, free: 8.922 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.051e-05/0.5846, allocations: 0 / 0.5503 GB, free: 8.922 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.5846, allocations: 2.812 kB / 0.5503 GB, free: 8.922 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0005808/0.5852, allocations: 0 / 0.5503 GB, free: 8.922 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.02697/0.6122, allocations: 7.055 MB / 0.5572 GB, free: 5.605 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.439e-05/0.6122, allocations: 12.11 kB / 0.5572 GB, free: 5.602 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02443/0.6367, allocations: 3.361 MB / 0.5605 GB, free: 4.559 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01421/0.6509, allocations: 4.659 MB / 0.5651 GB, free: 1.883 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003961/0.6514, allocations: 334.1 kB / 0.5654 GB, free: 1.77 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002148/0.6535, allocations: 458.2 kB / 0.5658 GB, free: 1.648 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02928/0.6828, allocations: 13.57 MB / 0.5791 GB, free: 9.082 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000221/0.6831, allocations: 73.02 kB / 0.5791 GB, free: 9.035 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006309/0.6837, allocations: 210.5 kB / 0.5793 GB, free: 8.875 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004778/0.6885, allocations: 2.651 MB / 0.5819 GB, free: 6.258 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02746/0.716, allocations: 11.83 MB / 0.5935 GB, free: 10.66 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09033/0.8064, allocations: 54.05 MB / 0.6463 GB, free: 3.816 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0152/0.8216, allocations: 5.777 MB / 0.6519 GB, free: 13.9 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006013/0.8277, allocations: 3.55 MB / 0.6554 GB, free: 10.34 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001125/0.8288, allocations: 0.6858 MB / 0.656 GB, free: 9.566 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.656e-05/0.829, allocations: 59.94 kB / 0.6561 GB, free: 9.5 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=254): time 7.374e-06/0.829, allocations: 0 / 0.6561 GB, free: 9.5 MB / 0.4981 GB Notification: Performance of matching and sorting (n=324): time 0.1263/0.9553, allocations: 37.24 MB / 0.6925 GB, free: 4.211 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002486/0.9556, allocations: 269.2 kB / 0.6927 GB, free: 3.895 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01413/0.9698, allocations: 5.324 MB / 0.6979 GB, free: 14.58 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001239/0.9711, allocations: 73.7 kB / 0.698 GB, free: 14.5 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.004244/0.9753, allocations: 3.993 MB / 0.7019 GB, free: 10.51 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002436/0.9778, allocations: 1.213 MB / 0.7031 GB, free: 9.309 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005185/0.983, allocations: 1.626 MB / 0.7047 GB, free: 7.668 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001741/0.9832, allocations: 301.1 kB / 0.705 GB, free: 7.371 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007137/0.9904, allocations: 3.697 MB / 0.7086 GB, free: 3.664 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01236/1.003, allocations: 7.975 MB / 0.7164 GB, free: 9.66 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01984/1.023, allocations: 12.49 MB / 0.7286 GB, free: 11.67 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001743/1.023, allocations: 44 kB / 0.7286 GB, free: 11.62 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1049) (initialization): time 0.03922/1.062, allocations: 13.97 MB / 0.7422 GB, free: 13.83 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003248/1.062, allocations: 68 kB / 0.7423 GB, free: 13.77 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004502/1.063, allocations: 148 kB / 0.7425 GB, free: 13.62 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009067/1.072, allocations: 2.766 MB / 0.7452 GB, free: 10.85 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00863/1.081, allocations: 1.825 MB / 0.7469 GB, free: 9.02 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3736/1.454, allocations: 17.8 MB / 0.7643 GB, free: 196.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008361/1.463, allocations: 491.4 kB / 0.7648 GB, free: 196.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002038/1.465, allocations: 465.4 kB / 0.7652 GB, free: 196.9 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 (973): * Single equations (assignments): 968 * 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%), (4,23,87.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007445/1.472, allocations: 2.826 MB / 0.768 GB, free: 196 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001848/1.474, allocations: 498.1 kB / 0.7685 GB, free: 196 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01477/1.489, allocations: 8.168 MB / 0.7764 GB, free: 193.1 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.099e-05/1.489, allocations: 36.62 kB / 0.7765 GB, free: 193.1 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-05/1.489, allocations: 10.28 kB / 0.7765 GB, free: 193.1 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.699e-05/1.489, allocations: 16.77 kB / 0.7765 GB, free: 193.1 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03317/1.522, allocations: 17.16 MB / 0.7933 GB, free: 186.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.278e-05/1.522, allocations: 8 kB / 0.7933 GB, free: 186.7 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00235/1.525, allocations: 0.5119 MB / 0.7938 GB, free: 186.7 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005663/1.53, allocations: 2.49 MB / 0.7962 GB, free: 186.2 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003732/1.531, allocations: 64.78 kB / 0.7963 GB, free: 186.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0173/1.548, allocations: 15.94 MB / 0.8118 GB, free: 173.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.145e-06/1.548, allocations: 8 kB / 0.8118 GB, free: 173.9 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01942/1.568, allocations: 12.78 MB / 0.8243 GB, free: 161.3 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005248/1.573, allocations: 1.106 MB / 0.8254 GB, free: 160.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002138/1.575, allocations: 65.55 kB / 0.8255 GB, free: 160.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00378/1.579, allocations: 243.3 kB / 0.8257 GB, free: 160 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000903/1.58, allocations: 209.5 kB / 0.8259 GB, free: 159.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004089/1.58, allocations: 85.05 kB / 0.826 GB, free: 159.7 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.006883/1.587, allocations: 3.369 MB / 0.8293 GB, free: 156.3 MB / 0.5919 GB Notification: Performance of sort global known variables: time 3.61e-07/1.587, allocations: 0 / 0.8293 GB, free: 156.3 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.009581/1.597, allocations: 1.577 MB / 0.8308 GB, free: 154.8 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 {(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.0009704/1.598, allocations: 212.3 kB / 0.831 GB, free: 154.5 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01532/1.613, allocations: 9.143 MB / 0.8399 GB, free: 145.4 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.507e-05/1.613, allocations: 0 / 0.8399 GB, free: 145.4 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.00541/1.619, allocations: 3.58 MB / 0.8434 GB, free: 141.9 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006862/1.625, allocations: 0.6883 MB / 0.8441 GB, free: 141.2 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02779/1.653, allocations: 14.95 MB / 0.8587 GB, free: 126.2 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005761/1.659, allocations: 4.417 MB / 0.863 GB, free: 121.7 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.005518/1.665, allocations: 2.504 MB / 0.8655 GB, free: 119.2 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0014/1.666, allocations: 363.3 kB / 0.8658 GB, free: 118.9 MB / 0.5919 GB Notification: Performance of SimCode: time 2.024e-06/1.666, allocations: 0 / 0.8658 GB, free: 118.9 MB / 0.5919 GB Notification: Performance of Templates: time 0.1133/1.779, allocations: 66.29 MB / 0.9305 GB, free: 52.66 MB / 0.5919 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2.makefile (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 & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/FreeMotion2/FreeMotion2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches