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.001204/0.001204, allocations: 108.3 kB / 18.41 MB, free: 4.566 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.001114/0.001114, allocations: 187 kB / 19.34 MB, free: 3.641 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.346/1.346, allocations: 222.9 MB / 243 MB, free: 15.09 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.2077/0.2077, allocations: 44.18 MB / 337.4 MB, free: 2.695 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001448/0.001448, allocations: 64.34 kB / 409.9 MB, free: 26.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1219/0.1233, allocations: 60.83 MB / 470.7 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.0152/0.1386, allocations: 14.78 MB / 485.5 MB, free: 14.8 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01033/0.1489, allocations: 5.007 MB / 490.5 MB, free: 9.777 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002827/0.1518, allocations: 107.6 kB / 490.6 MB, free: 9.672 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007257/0.1591, allocations: 4.166 MB / 494.8 MB, free: 5.492 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006995/0.1661, allocations: 2.361 MB / 497.1 MB, free: 3.121 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002496/0.1686, allocations: 1.08 MB / 498.2 MB, free: 2.039 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009568/0.1782, allocations: 7.055 MB / 0.4934 GB, free: 10.97 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006605/0.1849, allocations: 5.163 MB / 0.4985 GB, free: 5.742 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003609/0.1885, allocations: 2.247 MB / 0.5007 GB, free: 3.488 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004264/0.1928, allocations: 3.08 MB / 0.5037 GB, free: 408 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.2561/0.449, allocations: 497.9 kB / 0.5041 GB, free: 21.19 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005235/0.4543, allocations: 1.376 MB / 0.5055 GB, free: 21.19 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005342/0.4596, allocations: 2.781 MB / 0.5082 GB, free: 21.19 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00819/0.4679, allocations: 3.176 MB / 0.5113 GB, free: 20.2 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01821/0.4861, allocations: 9.933 MB / 0.521 GB, free: 18.8 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.06e-05/0.4862, allocations: 2.969 kB / 0.521 GB, free: 18.8 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.4862, allocations: 0 / 0.521 GB, free: 18.8 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005378/0.4867, allocations: 1.406 kB / 0.521 GB, free: 18.8 MB / 382.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.026/0.5127, allocations: 6.912 MB / 0.5278 GB, free: 15.64 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.828e-05/0.5128, allocations: 9.031 kB / 0.5278 GB, free: 15.64 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02559/0.5384, allocations: 3.336 MB / 0.531 GB, free: 14.5 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01243/0.5509, allocations: 4.524 MB / 0.5354 GB, free: 11.91 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003029/0.5512, allocations: 323.8 kB / 0.5358 GB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002302/0.5535, allocations: 453.4 kB / 0.5362 GB, free: 11.68 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0254/0.579, allocations: 13.28 MB / 0.5492 GB, free: 1.891 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002625/0.5793, allocations: 69.39 kB / 0.5492 GB, free: 1.848 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009838/0.5803, allocations: 212.4 kB / 0.5494 GB, free: 1.684 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004192/0.5845, allocations: 2.585 MB / 0.5519 GB, free: 15.14 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0267/0.6112, allocations: 11.54 MB / 0.5632 GB, free: 3.812 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07861/0.6898, allocations: 53.16 MB / 0.6151 GB, free: 13.85 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0137/0.7036, allocations: 5.658 MB / 0.6207 GB, free: 8.066 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004603/0.7082, allocations: 3.501 MB / 0.6241 GB, free: 4.559 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007188/0.709, allocations: 0.6895 MB / 0.6247 GB, free: 3.773 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.369e-05/0.709, allocations: 61.69 kB / 0.6248 GB, free: 3.707 MB / 462.1 MB Notification: Performance of pre-optimization done (n=245): time 5.35e-06/0.7091, allocations: 0 / 0.6248 GB, free: 3.707 MB / 462.1 MB Notification: Performance of matching and sorting (n=315): time 0.1003/0.8093, allocations: 36.54 MB / 0.6605 GB, free: 15.1 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001448/0.8095, allocations: 268.2 kB / 0.6607 GB, free: 14.78 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007837/0.8173, allocations: 5.221 MB / 0.6658 GB, free: 9.566 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0008984/0.8183, allocations: 69.7 kB / 0.6659 GB, free: 9.492 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002906/0.8212, allocations: 3.914 MB / 0.6697 GB, free: 5.578 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001813/0.823, allocations: 1.179 MB / 0.6709 GB, free: 4.41 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00248/0.8255, allocations: 1.595 MB / 0.6724 GB, free: 2.805 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001071/0.8256, allocations: 301.1 kB / 0.6727 GB, free: 2.508 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005064/0.8307, allocations: 3.637 MB / 0.6763 GB, free: 14.87 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008196/0.8389, allocations: 7.829 MB / 0.6839 GB, free: 5.059 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01542/0.8543, allocations: 12.28 MB / 0.6959 GB, free: 7.32 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.257e-05/0.8545, allocations: 44 kB / 0.696 GB, free: 7.277 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1027) (initialization): time 0.3121/1.167, allocations: 13.76 MB / 0.7094 GB, free: 177.8 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001451/1.167, allocations: 66.78 kB / 0.7095 GB, free: 177.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003188/1.167, allocations: 145.3 kB / 0.7096 GB, free: 177.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008206/1.175, allocations: 2.755 MB / 0.7123 GB, free: 177.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007168/1.183, allocations: 1.785 MB / 0.714 GB, free: 177.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0206/1.203, allocations: 17.81 MB / 0.7314 GB, free: 169.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008362/1.212, allocations: 470.5 kB / 0.7319 GB, free: 169.7 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002405/1.214, allocations: 459 kB / 0.7323 GB, free: 169.6 MB / 0.5294 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.008106/1.222, allocations: 2.775 MB / 0.735 GB, free: 168.5 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001674/1.224, allocations: 486.1 kB / 0.7355 GB, free: 168.5 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0133/1.237, allocations: 8.049 MB / 0.7433 GB, free: 164.3 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.752e-05/1.237, allocations: 35.88 kB / 0.7434 GB, free: 164.3 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.402e-05/1.237, allocations: 12.94 kB / 0.7434 GB, free: 164.3 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.62e-05/1.237, allocations: 16.73 kB / 0.7434 GB, free: 164.3 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03223/1.27, allocations: 17.06 MB / 0.7601 GB, free: 148.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.358e-05/1.27, allocations: 8 kB / 0.7601 GB, free: 148.1 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002712/1.272, allocations: 0.4992 MB / 0.7606 GB, free: 147.6 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005964/1.278, allocations: 2.485 MB / 0.763 GB, free: 145.2 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007207/1.279, allocations: 63.55 kB / 0.763 GB, free: 145.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01662/1.296, allocations: 15.87 MB / 0.7785 GB, free: 129.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.626e-06/1.296, allocations: 11.94 kB / 0.7786 GB, free: 129.1 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01894/1.315, allocations: 12.58 MB / 0.7908 GB, free: 116.6 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001977/1.317, allocations: 0.541 MB / 0.7914 GB, free: 116.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002336/1.319, allocations: 56 kB / 0.7914 GB, free: 116 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004221/1.323, allocations: 227.7 kB / 0.7916 GB, free: 115.8 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001219/1.325, allocations: 205.5 kB / 0.7918 GB, free: 115.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007342/1.325, allocations: 90.64 kB / 0.7919 GB, free: 115.5 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.008491/1.334, allocations: 3.297 MB / 0.7951 GB, free: 112.2 MB / 0.5294 GB Notification: Performance of sort global known variables: time 7.42e-07/1.334, allocations: 0 / 0.7951 GB, free: 112.2 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01194/1.346, allocations: 1.561 MB / 0.7967 GB, free: 110.7 MB / 0.5294 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.001316/1.347, allocations: 203.3 kB / 0.7969 GB, free: 110.5 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0168/1.364, allocations: 8.912 MB / 0.8056 GB, free: 101.6 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.409e-05/1.364, allocations: 4 kB / 0.8056 GB, free: 101.6 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005823/1.37, allocations: 3.567 MB / 0.8091 GB, free: 97.97 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008627/1.379, allocations: 0.6729 MB / 0.8097 GB, free: 97.32 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03489/1.413, allocations: 14.66 MB / 0.824 GB, free: 82.57 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009996/1.424, allocations: 4.328 MB / 0.8282 GB, free: 78.2 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.007648/1.431, allocations: 2.453 MB / 0.8306 GB, free: 75.74 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002218/1.433, allocations: 351.3 kB / 0.831 GB, free: 75.39 MB / 0.5294 GB Notification: Performance of SimCode: time 1.282e-06/1.433, allocations: 0 / 0.831 GB, free: 75.39 MB / 0.5294 GB Notification: Performance of Templates: time 0.1093/1.543, allocations: 62.75 MB / 0.8923 GB, free: 13.04 MB / 0.5294 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 -s gbode -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