Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Damper2.conf.json 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.MultiBody.Forces.Damper2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heatCapacitor.T|prismatic.s|prismatic.v|prismatic1.s|prismatic1.v|prismatic2.s|prismatic2.v",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Damper2") translateModel(ModelicaTest.MultiBody.Forces.Damper2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heatCapacitor.T|prismatic.s|prismatic.v|prismatic1.s|prismatic1.v|prismatic2.s|prismatic2.v",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Damper2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001068/0.001069, allocations: 177 kB / 17.06 MB, free: 5.094 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.315/1.315, allocations: 223.2 MB / 241 MB, free: 11.87 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008472/0.000847, allocations: 97.64 kB / 292.1 MB, free: 10.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3389/0.3389, allocations: 44.22 MB / 387.5 MB, free: 38.8 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003782/0.0003782, allocations: 8 kB / 459.9 MB, free: 1.555 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3398/0.3402, allocations: 61.9 MB / 0.5096 GB, free: 37.9 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1238/0.464, allocations: 109.9 MB / 0.6169 GB, free: 1.156 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002087/0.4643, allocations: 79.95 kB / 0.617 GB, free: 1.078 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5416/1.006, allocations: 141.1 MB / 0.7548 GB, free: 85.95 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.104e-06/1.006, allocations: 0 / 0.7548 GB, free: 85.95 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002852/1.006, allocations: 142.5 kB / 0.7549 GB, free: 85.95 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2609 * Number of variables: 2609 Notification: Performance of Generate backend data structure: time 0.01881/1.025, allocations: 6.762 MB / 0.7615 GB, free: 81.45 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.431e-05/1.025, allocations: 11.08 kB / 0.7615 GB, free: 81.44 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01535/1.04, allocations: 3.548 MB / 0.765 GB, free: 79.77 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01566/1.056, allocations: 7.115 MB / 0.772 GB, free: 73.81 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004239/1.057, allocations: 0.5696 MB / 0.7725 GB, free: 73.24 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002776/1.059, allocations: 0.7496 MB / 0.7732 GB, free: 72.49 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04163/1.101, allocations: 20.96 MB / 0.7937 GB, free: 49.92 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002949/1.101, allocations: 99.14 kB / 0.7938 GB, free: 49.82 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001821/1.103, allocations: 367.8 kB / 0.7942 GB, free: 49.46 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002472/1.106, allocations: 1.819 MB / 0.7959 GB, free: 47.64 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03328/1.139, allocations: 16.86 MB / 0.8124 GB, free: 30.75 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4459/1.585, allocations: 77.16 MB / 0.8878 GB, free: 57.62 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01517/1.6, allocations: 6.27 MB / 0.8939 GB, free: 56.95 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01529/1.615, allocations: 9.246 MB / 0.9029 GB, free: 54.77 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01359/1.629, allocations: 4.16 MB / 0.907 GB, free: 54.64 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=264): time 5.54e-06/1.629, allocations: 0 / 0.907 GB, free: 54.64 MB / 0.5105 GB Notification: Performance of matching and sorting (n=298): time 0.05781/1.687, allocations: 21.27 MB / 0.9277 GB, free: 49.68 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.372e-05/1.687, allocations: 157.1 kB / 0.9279 GB, free: 49.53 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008319/1.695, allocations: 5.273 MB / 0.933 GB, free: 48.92 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0005276/1.696, allocations: 69.64 kB / 0.9331 GB, free: 48.89 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003437/1.699, allocations: 5.056 MB / 0.938 GB, free: 46.05 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.00104/1.7, allocations: 1.144 MB / 0.9392 GB, free: 45.41 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003513/1.701, allocations: 183.7 kB / 0.9393 GB, free: 45.41 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0003514/1.701, allocations: 0.6977 MB / 0.94 GB, free: 45.08 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003794/1.705, allocations: 2.665 MB / 0.9426 GB, free: 45.06 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005548/1.711, allocations: 8.21 MB / 0.9506 GB, free: 36.98 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005795/1.716, allocations: 4.564 MB / 0.9551 GB, free: 35.53 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001044/1.716, allocations: 58 kB / 0.9551 GB, free: 35.53 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1207) (initialization): time 0.0164/1.733, allocations: 10.65 MB / 0.9656 GB, free: 32.46 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001276/1.733, allocations: 120.3 kB / 0.9657 GB, free: 32.42 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001902/1.733, allocations: 195.6 kB / 0.9659 GB, free: 32.42 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002009/1.733, allocations: 292.6 kB / 0.9661 GB, free: 32.42 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006306/1.74, allocations: 2.257 MB / 0.9683 GB, free: 32.15 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002126/1.74, allocations: 387.3 kB / 0.9687 GB, free: 32.07 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006581/1.747, allocations: 0.5898 MB / 0.9693 GB, free: 31.89 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001211/1.748, allocations: 0.5388 MB / 0.9698 GB, free: 31.82 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 898 * Number of states: 0 () * Number of discrete variables: 83 ($whenCondition1,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count,fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],force2.connectionLineColor[3],force2.connectionLineColor[2],force2.connectionLineColor[1],force2.forceArrow.arrowLine.twoHeadedArrow,force2.forceArrow.headAtOrigin,force2.forceColor[3],force2.forceColor[2],force2.forceColor[1],prismatic2.boxColor[3],prismatic2.boxColor[2],prismatic2.boxColor[1],damper2.color_b[3],damper2.color_b[2],damper2.color_b[1],damper2.color_a[3],damper2.color_a[2],damper2.color_a[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],force1.connectionLineColor[3],force1.connectionLineColor[2],force1.connectionLineColor[1],force1.forceArrow.arrowLine.twoHeadedArrow,force1.forceArrow.headAtOrigin,force1.forceColor[3],force1.forceColor[2],force1.forceColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],force.connectionLineColor[3],force.connectionLineColor[2],force.connectionLineColor[1],force.forceArrow.arrowLine.twoHeadedArrow,force.forceArrow.headAtOrigin,force.forceColor[3],force.forceColor[2],force.forceColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],damper.color_b[3],damper.color_b[2],damper.color_b[1],damper.color_a[3],damper.color_a[2],damper.color_a[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 (1182): * Single equations (assignments): 1178 * Array equations: 3 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005432/1.753, allocations: 3.243 MB / 0.973 GB, free: 30.31 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008131/1.754, allocations: 0.519 MB / 0.9735 GB, free: 30.02 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004517/1.759, allocations: 2.992 MB / 0.9764 GB, free: 28.84 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-05/1.759, allocations: 29 kB / 0.9764 GB, free: 28.84 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.284e-05/1.759, allocations: 7.219 kB / 0.9764 GB, free: 28.84 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.098e-05/1.759, allocations: 15.09 kB / 0.9765 GB, free: 28.84 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01728/1.776, allocations: 12.55 MB / 0.9887 GB, free: 18.16 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.35e-05/1.776, allocations: 35.61 kB / 0.9887 GB, free: 18.12 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00175/1.778, allocations: 0.5529 MB / 0.9893 GB, free: 17.65 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.207e-05/1.778, allocations: 48 kB / 0.9893 GB, free: 17.61 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001443/1.778, allocations: 94.84 kB / 0.9894 GB, free: 17.52 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.978e-05/1.778, allocations: 62.8 kB / 0.9895 GB, free: 17.46 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.906e-05/1.778, allocations: 51.75 kB / 0.9895 GB, free: 17.41 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006649/1.785, allocations: 11.26 MB / 1.001 GB, free: 4.777 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001534/1.786, allocations: 0.6049 MB / 1.001 GB, free: 4.18 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006148/1.787, allocations: 89.62 kB / 1.001 GB, free: 4.098 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002151/1.789, allocations: 211 kB / 1.001 GB, free: 3.938 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002985/1.789, allocations: 280.5 kB / 1.002 GB, free: 3.727 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001488/1.79, allocations: 119.5 kB / 1.002 GB, free: 3.613 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.006053/1.796, allocations: 3.683 MB / 1.005 GB, free: 0.6016 MB / 0.5105 GB Notification: Performance of sort global known variables: time 3.2e-07/1.796, allocations: 0 / 1.005 GB, free: 0.6016 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01006/1.806, allocations: 1.581 MB / 1.007 GB, free: 15.32 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 146 * Number of states: 7 (prismatic.s,prismatic.v,prismatic1.s,prismatic1.v,heatCapacitor.T,prismatic2.s,prismatic2.v) * Number of discrete variables: 3 ($whenCondition1,trapezoid.T_start,trapezoid.count) * Number of discrete states: 1 (trapezoid.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (276): * Single equations (assignments): 271 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008135/1.807, allocations: 286.7 kB / 1.007 GB, free: 15.05 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01067/1.817, allocations: 6.07 MB / 1.013 GB, free: 9.711 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.088e-05/1.817, allocations: 4 kB / 1.013 GB, free: 9.707 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002977/1.82, allocations: 1.659 MB / 1.015 GB, free: 8.234 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003408/1.824, allocations: 0.7156 MB / 1.015 GB, free: 7.629 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02761/1.851, allocations: 17.45 MB / 1.032 GB, free: 7.078 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007758/1.859, allocations: 5.028 MB / 1.037 GB, free: 3.395 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.007284/1.866, allocations: 2.624 MB / 1.04 GB, free: 1.75 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001134/1.868, allocations: 375.2 kB / 1.04 GB, free: 1.391 MB / 0.5417 GB Notification: Performance of SimCode: time 5.51e-07/1.868, allocations: 4 kB / 1.04 GB, free: 1.387 MB / 0.5417 GB Notification: Performance of Templates: time 0.08847/1.956, allocations: 44.98 MB / 1.084 GB, free: 5.363 MB / 0.5886 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Damper2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Damper2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Damper2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Damper2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Damper2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Damper2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Damper2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Damper2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Damper2/Damper2.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Damper2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches