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.0008968/0.0008967, allocations: 97.41 kB / 16.02 MB, free: 84 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001173/0.001173, allocations: 175.4 kB / 16.91 MB, free: 6.688 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.756/1.756, allocations: 205.4 MB / 223.1 MB, free: 5.516 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4459/0.4459, allocations: 43.57 MB / 315 MB, free: 8.812 MB / 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.0006179/0.0006182, allocations: 23.98 kB / 384.6 MB, free: 7.648 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1665/0.1672, allocations: 58.86 MB / 443.4 MB, free: 12.68 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.419/0.5862, allocations: 72.86 MB / 0.5042 GB, free: 1.934 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0567/0.643, allocations: 14.92 MB / 0.5188 GB, free: 7.934 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02301/0.666, allocations: 333.4 kB / 0.5191 GB, free: 7.875 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003424/0.6695, allocations: 0.5724 MB / 0.5197 GB, free: 7.641 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01302/0.6825, allocations: 2.28 MB / 0.5219 GB, free: 6.586 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004747/0.6873, allocations: 1.009 MB / 0.5229 GB, free: 6.113 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02287/0.7102, allocations: 9.547 MB / 0.5322 GB, free: 3.312 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01639/0.7267, allocations: 7.116 MB / 0.5391 GB, free: 13.74 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005802/0.7325, allocations: 1.712 MB / 0.5408 GB, free: 12.02 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006151/0.7387, allocations: 2.947 MB / 0.5437 GB, free: 9.066 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001553/0.7403, allocations: 212 kB / 0.5439 GB, free: 8.859 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003717/0.744, allocations: 1.154 MB / 0.545 GB, free: 7.703 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004098/0.7482, allocations: 2.52 MB / 0.5475 GB, free: 5.176 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006168/0.7544, allocations: 2.878 MB / 0.5503 GB, free: 2.273 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01493/0.7693, allocations: 9.471 MB / 0.5595 GB, free: 8.77 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.972e-06/0.7694, allocations: 0 / 0.5595 GB, free: 8.77 MB / 430.1 MB Notification: Performance of FrontEnd: time 4.097e-06/0.7694, allocations: 0 / 0.5595 GB, free: 8.77 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005197/0.7699, allocations: 0 / 0.5595 GB, free: 8.77 MB / 430.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.01915/0.7891, allocations: 5.797 MB / 0.5652 GB, free: 2.895 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.008e-05/0.7892, allocations: 12.03 kB / 0.5652 GB, free: 2.883 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03092/0.8201, allocations: 3.441 MB / 0.5686 GB, free: 15.43 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01206/0.8322, allocations: 4.568 MB / 0.573 GB, free: 10.78 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000334/0.8326, allocations: 337 kB / 0.5734 GB, free: 10.45 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001835/0.8344, allocations: 467.5 kB / 0.5738 GB, free: 9.988 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03017/0.8646, allocations: 13.59 MB / 0.5871 GB, free: 11.52 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003173/0.865, allocations: 63.44 kB / 0.5871 GB, free: 11.46 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000762/0.8658, allocations: 211.8 kB / 0.5873 GB, free: 11.25 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005204/0.871, allocations: 2.656 MB / 0.5899 GB, free: 8.594 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02558/0.8966, allocations: 11.85 MB / 0.6015 GB, free: 12.73 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4169/1.314, allocations: 54.36 MB / 0.6546 GB, free: 106.1 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01403/1.328, allocations: 5.785 MB / 0.6602 GB, free: 105.4 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005299/1.333, allocations: 3.552 MB / 0.6637 GB, free: 104.9 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007223/1.334, allocations: 0.6883 MB / 0.6644 GB, free: 104.3 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.799e-05/1.334, allocations: 68.78 kB / 0.6644 GB, free: 104.2 MB / 494.1 MB Notification: Performance of pre-optimization done (n=254): time 7.114e-06/1.334, allocations: 0 / 0.6644 GB, free: 104.2 MB / 494.1 MB Notification: Performance of matching and sorting (n=324): time 0.1189/1.453, allocations: 37.26 MB / 0.7008 GB, free: 91.54 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001577/1.453, allocations: 263.8 kB / 0.7011 GB, free: 91.25 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008166/1.461, allocations: 5.319 MB / 0.7063 GB, free: 89.37 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001019/1.462, allocations: 75.77 kB / 0.7063 GB, free: 89.3 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002674/1.465, allocations: 3.996 MB / 0.7103 GB, free: 86.11 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002416/1.467, allocations: 1.205 MB / 0.7114 GB, free: 85.09 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009722/1.468, allocations: 0.6945 MB / 0.7121 GB, free: 84.68 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 6.644e-05/1.468, allocations: 301.1 kB / 0.7124 GB, free: 84.38 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004912/1.473, allocations: 3.695 MB / 0.716 GB, free: 81.96 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006772/1.48, allocations: 7.976 MB / 0.7238 GB, free: 71.93 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01235/1.492, allocations: 12.49 MB / 0.736 GB, free: 57.34 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001307/1.493, allocations: 40 kB / 0.736 GB, free: 57.3 MB / 494.1 MB Notification: Performance of matching and sorting (n=1049) (initialization): time 0.02622/1.519, allocations: 13.98 MB / 0.7497 GB, free: 43.27 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.927e-05/1.519, allocations: 71.94 kB / 0.7497 GB, free: 43.2 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001331/1.519, allocations: 148.9 kB / 0.7499 GB, free: 43.05 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006835/1.526, allocations: 2.758 MB / 0.7526 GB, free: 40.29 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006365/1.532, allocations: 1.833 MB / 0.7544 GB, free: 38.45 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01837/1.551, allocations: 16.62 MB / 0.7706 GB, free: 21.58 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007821/1.559, allocations: 487.2 kB / 0.7711 GB, free: 21.11 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001821/1.56, allocations: 467.9 kB / 0.7715 GB, free: 20.65 MB / 494.1 MB 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.006275/1.567, allocations: 2.828 MB / 0.7743 GB, free: 17.81 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001387/1.568, allocations: 493.6 kB / 0.7747 GB, free: 17.32 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01413/1.582, allocations: 8.181 MB / 0.7827 GB, free: 9.074 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.825e-05/1.582, allocations: 32 kB / 0.7828 GB, free: 9.043 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.851e-05/1.582, allocations: 15.98 kB / 0.7828 GB, free: 9.027 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.127e-05/1.582, allocations: 15.95 kB / 0.7828 GB, free: 9.012 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03693/1.619, allocations: 17.4 MB / 0.7998 GB, free: 7.547 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.927e-05/1.619, allocations: 8.75 kB / 0.7998 GB, free: 7.539 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002815/1.622, allocations: 0.5187 MB / 0.8003 GB, free: 7.02 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00675/1.629, allocations: 2.487 MB / 0.8027 GB, free: 4.523 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000661/1.63, allocations: 59.98 kB / 0.8028 GB, free: 4.465 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01976/1.649, allocations: 14.76 MB / 0.8172 GB, free: 5.441 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.586e-06/1.65, allocations: 11.94 kB / 0.8172 GB, free: 5.43 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3512/2.001, allocations: 12.76 MB / 0.8297 GB, free: 154.1 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004176/2.005, allocations: 1.116 MB / 0.8308 GB, free: 154 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001684/2.007, allocations: 63.66 kB / 0.8308 GB, free: 154 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00378/2.01, allocations: 241.9 kB / 0.8311 GB, free: 154 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007428/2.011, allocations: 206.9 kB / 0.8313 GB, free: 154 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002505/2.011, allocations: 87.27 kB / 0.8313 GB, free: 154 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.006024/2.018, allocations: 3.367 MB / 0.8346 GB, free: 153.8 MB / 0.5137 GB Notification: Performance of sort global known variables: time 7.72e-07/2.018, allocations: 0.6562 kB / 0.8346 GB, free: 153.8 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.009796/2.027, allocations: 1.583 MB / 0.8362 GB, free: 153.8 MB / 0.5137 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.0009306/2.028, allocations: 213.3 kB / 0.8364 GB, free: 153.7 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01624/2.045, allocations: 9.104 MB / 0.8453 GB, free: 150.3 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.338e-05/2.045, allocations: 4.938 kB / 0.8453 GB, free: 150.3 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.006476/2.051, allocations: 3.554 MB / 0.8487 GB, free: 148.8 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01002/2.061, allocations: 0.6441 MB / 0.8494 GB, free: 148.5 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03756/2.099, allocations: 18.15 MB / 0.8671 GB, free: 139.1 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009929/2.109, allocations: 4.415 MB / 0.8714 GB, free: 137.5 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.008751/2.118, allocations: 2.51 MB / 0.8739 GB, free: 137.3 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001935/2.119, allocations: 363 kB / 0.8742 GB, free: 137.3 MB / 0.5137 GB Notification: Performance of SimCode: time 1.944e-06/2.12, allocations: 0 / 0.8742 GB, free: 137.3 MB / 0.5137 GB Notification: Performance of Templates: time 0.1151/2.235, allocations: 66.13 MB / 0.9388 GB, free: 83.01 MB / 0.5137 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","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches