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.001104/0.001104, allocations: 109.5 kB / 18.45 MB, free: 4.613 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.001168/0.001168, allocations: 184.3 kB / 19.39 MB, free: 3.688 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.384/1.384, allocations: 222.9 MB / 243.1 MB, free: 15.17 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.2105/0.2105, allocations: 44.19 MB / 337.4 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001806/0.001806, allocations: 68.12 kB / 471.2 MB, free: 13.14 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3817/0.3835, allocations: 60.82 MB / 0.5196 GB, free: 3.617 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.01837/0.402, allocations: 14.79 MB / 0.534 GB, free: 8.891 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01247/0.4145, allocations: 4.997 MB / 0.5389 GB, free: 4.934 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003589/0.4181, allocations: 100.8 kB / 0.539 GB, free: 4.914 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00826/0.4264, allocations: 4.161 MB / 0.5431 GB, free: 2.121 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00769/0.4341, allocations: 2.436 MB / 0.5454 GB, free: 356 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00388/0.438, allocations: 1.087 MB / 0.5465 GB, free: 15.58 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01351/0.4516, allocations: 7.056 MB / 0.5534 GB, free: 9.324 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0098/0.4614, allocations: 5.154 MB / 0.5584 GB, free: 4.109 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006159/0.4677, allocations: 2.27 MB / 0.5607 GB, free: 1.832 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006635/0.4743, allocations: 3.077 MB / 0.5637 GB, free: 14.75 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0025/0.4769, allocations: 500 kB / 0.5641 GB, free: 14.26 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004738/0.4816, allocations: 1.381 MB / 0.5655 GB, free: 12.88 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004574/0.4862, allocations: 2.802 MB / 0.5682 GB, free: 10.07 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006354/0.4926, allocations: 3.177 MB / 0.5713 GB, free: 6.871 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01458/0.5072, allocations: 9.978 MB / 0.5811 GB, free: 12.85 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.057e-06/0.5073, allocations: 0 / 0.5811 GB, free: 12.85 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.5073, allocations: 4 kB / 0.5811 GB, free: 12.85 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003959/0.5077, allocations: 0 / 0.5811 GB, free: 12.85 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.0208/0.5285, allocations: 7.083 MB / 0.588 GB, free: 5.676 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.028e-05/0.5286, allocations: 12.02 kB / 0.588 GB, free: 5.664 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02509/0.5537, allocations: 3.383 MB / 0.5913 GB, free: 2.273 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0124/0.5661, allocations: 4.531 MB / 0.5957 GB, free: 13.65 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004045/0.5666, allocations: 335.8 kB / 0.596 GB, free: 13.32 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002247/0.5689, allocations: 439.7 kB / 0.5965 GB, free: 12.89 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02799/0.5969, allocations: 13.29 MB / 0.6094 GB, free: 14.74 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00034/0.5972, allocations: 71.47 kB / 0.6095 GB, free: 14.67 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001959/0.5992, allocations: 203.8 kB / 0.6097 GB, free: 14.47 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005138/0.6044, allocations: 2.59 MB / 0.6122 GB, free: 11.88 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02518/0.6296, allocations: 11.55 MB / 0.6235 GB, free: 320 kB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07765/0.7073, allocations: 53.27 MB / 0.6755 GB, free: 9.52 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01368/0.721, allocations: 5.667 MB / 0.6811 GB, free: 3.707 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004884/0.7259, allocations: 3.502 MB / 0.6845 GB, free: 200 kB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001175/0.7271, allocations: 0.6838 MB / 0.6852 GB, free: 15.4 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001058/0.7273, allocations: 64.5 kB / 0.6852 GB, free: 15.33 MB / 0.545 GB Notification: Performance of pre-optimization done (n=245): time 8.997e-06/0.7273, allocations: 0 / 0.6852 GB, free: 15.33 MB / 0.545 GB Notification: Performance of matching and sorting (n=315): time 0.4336/1.161, allocations: 36.86 MB / 0.7212 GB, free: 166.9 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001017/1.161, allocations: 266.5 kB / 0.7215 GB, free: 166.6 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01232/1.173, allocations: 5.232 MB / 0.7266 GB, free: 164.9 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001415/1.175, allocations: 72.2 kB / 0.7266 GB, free: 164.9 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.004544/1.179, allocations: 4.063 MB / 0.7306 GB, free: 162.2 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.002496/1.182, allocations: 1.226 MB / 0.7318 GB, free: 161.5 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00503/1.187, allocations: 1.611 MB / 0.7334 GB, free: 160.7 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.846e-05/1.187, allocations: 308.8 kB / 0.7337 GB, free: 160.4 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006177/1.193, allocations: 3.626 MB / 0.7372 GB, free: 159.1 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006932/1.2, allocations: 7.831 MB / 0.7449 GB, free: 152.2 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0124/1.213, allocations: 12.28 MB / 0.7569 GB, free: 143 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001492/1.213, allocations: 41.88 kB / 0.7569 GB, free: 143 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1027) (initialization): time 0.02471/1.238, allocations: 13.79 MB / 0.7704 GB, free: 131.4 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001721/1.238, allocations: 66.95 kB / 0.7704 GB, free: 131.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002314/1.238, allocations: 144 kB / 0.7706 GB, free: 131.2 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006238/1.244, allocations: 2.762 MB / 0.7733 GB, free: 128.4 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006097/1.25, allocations: 1.782 MB / 0.775 GB, free: 126.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01926/1.27, allocations: 17.82 MB / 0.7924 GB, free: 108.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007146/1.277, allocations: 472.6 kB / 0.7929 GB, free: 108.1 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001459/1.278, allocations: 459.2 kB / 0.7933 GB, free: 107.6 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.005884/1.284, allocations: 2.773 MB / 0.796 GB, free: 104.9 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001748/1.286, allocations: 0.5006 MB / 0.7965 GB, free: 104.4 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01359/1.3, allocations: 8.048 MB / 0.8044 GB, free: 96.32 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.652e-05/1.3, allocations: 11.95 kB / 0.8044 GB, free: 96.31 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.227e-06/1.3, allocations: 0 / 0.8044 GB, free: 96.31 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002071/1.302, allocations: 0.5523 MB / 0.8049 GB, free: 95.73 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002012/1.304, allocations: 55.98 kB / 0.805 GB, free: 95.68 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003543/1.307, allocations: 219.7 kB / 0.8052 GB, free: 95.46 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007219/1.308, allocations: 217.7 kB / 0.8054 GB, free: 95.25 MB / 0.5606 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01419/1.322, allocations: 8.415 MB / 0.8136 GB, free: 86.84 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01256/1.335, allocations: 10.3 MB / 0.8237 GB, free: 76.47 MB / 0.5606 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.003041/1.338, allocations: 2.874 MB / 0.8265 GB, free: 73.58 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.005753/1.344, allocations: 3.3 MB / 0.8297 GB, free: 70.3 MB / 0.5606 GB Notification: Performance of Backend: time 7.71e-07/1.344, allocations: 0 / 0.8297 GB, free: 70.3 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01442/1.358, allocations: 6.653 MB / 0.8362 GB, free: 63.65 MB / 0.5606 GB Notification: Performance of SimCode: time 0.02572/1.384, allocations: 13.42 MB / 0.8493 GB, free: 50.19 MB / 0.5606 GB Notification: Performance of Templates: time 0.1275/1.512, allocations: 78.74 MB / 0.9262 GB, free: 3.75 MB / 0.5919 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/FreeMotion2/FreeMotion2.csv","/var/lib/jenkins1/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