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.001033/0.001038, allocations: 97.39 kB / 17 MB, free: 6.043 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.001375/0.001375, allocations: 181.8 kB / 17.89 MB, free: 5.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.55/1.55, allocations: 223.3 MB / 241.9 MB, free: 292 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2591/0.2591, allocations: 44.25 MB / 337.3 MB, free: 2.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004697/0.0004699, allocations: 8 kB / 409.7 MB, free: 27.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1596/0.1601, allocations: 61.93 MB / 471.6 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.4103/0.5704, allocations: 67.34 MB / 0.5263 GB, free: 9.652 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03805/0.6086, allocations: 14.25 MB / 0.5402 GB, free: 6.773 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02049/0.6291, allocations: 330.9 kB / 0.5405 GB, free: 6.719 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01287/0.642, allocations: 3.525 MB / 0.544 GB, free: 4.672 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03719/0.6792, allocations: 10.31 MB / 0.5541 GB, free: 14.23 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006596/0.6858, allocations: 0.9056 MB / 0.5549 GB, free: 13.64 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.08489/0.7707, allocations: 62.9 MB / 0.6164 GB, free: 400 kB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01293/0.7837, allocations: 6.279 MB / 0.6225 GB, free: 10.05 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00485/0.7886, allocations: 1.786 MB / 0.6242 GB, free: 8.258 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005634/0.7943, allocations: 2.835 MB / 0.627 GB, free: 5.414 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001573/0.7959, allocations: 211.9 kB / 0.6272 GB, free: 5.207 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003609/0.7995, allocations: 0.9948 MB / 0.6282 GB, free: 4.211 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004394/0.8039, allocations: 2.423 MB / 0.6306 GB, free: 1.781 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003522/0.8075, allocations: 1.158 MB / 0.6317 GB, free: 0.6133 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01386/0.8214, allocations: 7.676 MB / 0.6392 GB, free: 8.918 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.198e-05/0.8214, allocations: 0 / 0.6392 GB, free: 8.918 MB / 478.1 MB Notification: Performance of FrontEnd: time 5.2e-06/0.8215, allocations: 4 kB / 0.6392 GB, free: 8.914 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.000647/0.8221, allocations: 0 / 0.6392 GB, free: 8.914 MB / 478.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.01807/0.8402, allocations: 5.76 MB / 0.6448 GB, free: 3.074 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.857e-05/0.8403, allocations: 8.031 kB / 0.6448 GB, free: 3.066 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02291/0.8632, allocations: 3.428 MB / 0.6482 GB, free: 15.62 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01258/0.8758, allocations: 4.353 MB / 0.6524 GB, free: 11.19 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004738/0.8764, allocations: 328.5 kB / 0.6527 GB, free: 10.86 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002382/0.8788, allocations: 447.5 kB / 0.6532 GB, free: 10.43 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03303/0.9118, allocations: 13.26 MB / 0.6661 GB, free: 12.29 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002924/0.9122, allocations: 67.38 kB / 0.6662 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008566/0.913, allocations: 207.8 kB / 0.6664 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00473/0.9178, allocations: 2.582 MB / 0.6689 GB, free: 9.441 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02637/0.9442, allocations: 11.51 MB / 0.6801 GB, free: 13.91 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4531/1.397, allocations: 53.45 MB / 0.7323 GB, free: 160.7 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01443/1.412, allocations: 5.651 MB / 0.7378 GB, free: 159.7 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005337/1.417, allocations: 3.498 MB / 0.7413 GB, free: 158.2 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007496/1.418, allocations: 0.6823 MB / 0.7419 GB, free: 157.6 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.494e-05/1.418, allocations: 68.08 kB / 0.742 GB, free: 157.6 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=245): time 5.56e-06/1.418, allocations: 0 / 0.742 GB, free: 157.6 MB / 0.5294 GB Notification: Performance of matching and sorting (n=315): time 0.08587/1.504, allocations: 36.58 MB / 0.7777 GB, free: 133.5 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000122/1.504, allocations: 265.3 kB / 0.778 GB, free: 133.2 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006674/1.511, allocations: 5.193 MB / 0.783 GB, free: 128 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001141/1.512, allocations: 77.7 kB / 0.7831 GB, free: 127.9 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002755/1.515, allocations: 3.91 MB / 0.7869 GB, free: 124 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001533/1.516, allocations: 1.174 MB / 0.7881 GB, free: 122.9 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003835/1.517, allocations: 163.9 kB / 0.7882 GB, free: 122.7 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.000338/1.517, allocations: 0.6329 MB / 0.7889 GB, free: 122.1 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004175/1.521, allocations: 3.599 MB / 0.7924 GB, free: 118.5 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005815/1.527, allocations: 7.801 MB / 0.8 GB, free: 108.8 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005708/1.533, allocations: 5.213 MB / 0.8051 GB, free: 103.6 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.209e-05/1.533, allocations: 40 kB / 0.8051 GB, free: 103.5 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1027) (initialization): time 0.02358/1.556, allocations: 13.69 MB / 0.8185 GB, free: 89.79 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001858/1.557, allocations: 65.91 kB / 0.8185 GB, free: 89.73 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002755/1.557, allocations: 148 kB / 0.8187 GB, free: 89.58 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006304/1.563, allocations: 2.781 MB / 0.8214 GB, free: 86.79 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006883/1.57, allocations: 1.782 MB / 0.8231 GB, free: 85.01 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01883/1.589, allocations: 16.63 MB / 0.8394 GB, free: 68.12 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007399/1.596, allocations: 483 kB / 0.8398 GB, free: 67.65 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001745/1.598, allocations: 457.1 kB / 0.8403 GB, free: 67.2 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,100.0%) 24,(3,100.0%) 24} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006125/1.604, allocations: 2.773 MB / 0.843 GB, free: 64.42 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001544/1.606, allocations: 481.8 kB / 0.8435 GB, free: 63.94 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01419/1.62, allocations: 8.036 MB / 0.8513 GB, free: 55.84 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.033e-05/1.62, allocations: 32 kB / 0.8513 GB, free: 55.8 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.877e-05/1.62, allocations: 8 kB / 0.8513 GB, free: 55.8 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.118e-05/1.62, allocations: 15.95 kB / 0.8514 GB, free: 55.78 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03849/1.659, allocations: 17.12 MB / 0.8681 GB, free: 38.57 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.674e-05/1.659, allocations: 4 kB / 0.8681 GB, free: 38.57 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00252/1.661, allocations: 0.4953 MB / 0.8686 GB, free: 38.07 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005903/1.667, allocations: 2.49 MB / 0.871 GB, free: 35.57 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008652/1.668, allocations: 56.7 kB / 0.871 GB, free: 35.52 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01704/1.685, allocations: 14.79 MB / 0.8855 GB, free: 20.46 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.029e-05/1.685, allocations: 11.94 kB / 0.8855 GB, free: 20.45 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0202/1.706, allocations: 12.55 MB / 0.8978 GB, free: 7.711 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002566/1.708, allocations: 0.5417 MB / 0.8983 GB, free: 7.145 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001952/1.71, allocations: 60.86 kB / 0.8983 GB, free: 7.086 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003987/1.714, allocations: 235.7 kB / 0.8986 GB, free: 6.855 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008463/1.715, allocations: 210.8 kB / 0.8988 GB, free: 6.652 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000439/1.716, allocations: 87.98 kB / 0.8989 GB, free: 6.566 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.008083/1.724, allocations: 3.269 MB / 0.902 GB, free: 3.312 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.022e-06/1.724, allocations: 0 / 0.902 GB, free: 3.312 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01415/1.738, allocations: 1.551 MB / 0.9036 GB, free: 1.766 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,100.0%) 21,(3,100.0%) 21} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001497/1.739, allocations: 206.2 kB / 0.9038 GB, free: 1.562 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.02314/1.763, allocations: 8.805 MB / 0.9124 GB, free: 8.75 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.732e-05/1.763, allocations: 0 / 0.9124 GB, free: 8.75 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.008801/1.771, allocations: 3.564 MB / 0.9158 GB, free: 5.164 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01022/1.782, allocations: 0.6307 MB / 0.9165 GB, free: 4.535 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.331/2.113, allocations: 17.09 MB / 0.9331 GB, free: 187.1 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006767/2.12, allocations: 4.33 MB / 0.9374 GB, free: 186.2 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.007298/2.127, allocations: 2.466 MB / 0.9398 GB, free: 186 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001214/2.128, allocations: 348.7 kB / 0.9401 GB, free: 186 MB / 0.545 GB Notification: Performance of SimCode: time 1.353e-06/2.128, allocations: 0 / 0.9401 GB, free: 186 MB / 0.545 GB Notification: Performance of Templates: time 0.1457/2.274, allocations: 63.92 MB / 1.003 GB, free: 135.5 MB / 0.545 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