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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001208/0.001208, allocations: 110 kB / 17.86 MB, free: 5.504 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.001144/0.001144, allocations: 201.9 kB / 18.78 MB, free: 4.586 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.413/1.413, allocations: 222.9 MB / 242.4 MB, free: 15.47 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.2252/0.2252, allocations: 44.18 MB / 336.8 MB, free: 2.984 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001401/0.001401, allocations: 61.31 kB / 408.4 MB, free: 27.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1369/0.1383, allocations: 60.82 MB / 469.2 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Damper2): time 0.3376/0.476, allocations: 86.38 MB / 0.5425 GB, free: 2.727 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04806/0.5241, allocations: 16.6 MB / 0.5587 GB, free: 7.184 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02425/0.5484, allocations: 364.2 kB / 0.5591 GB, free: 7.133 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0105/0.5589, allocations: 5.198 MB / 0.5642 GB, free: 3.434 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009438/0.5684, allocations: 2.417 MB / 0.5665 GB, free: 1.008 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003683/0.5721, allocations: 1.088 MB / 0.5676 GB, free: 15.92 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01443/0.5866, allocations: 9.768 MB / 0.5771 GB, free: 6.137 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01111/0.5978, allocations: 6.423 MB / 0.5834 GB, free: 15.66 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005556/0.6034, allocations: 2.383 MB / 0.5857 GB, free: 13.27 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007013/0.6104, allocations: 4.011 MB / 0.5897 GB, free: 9.246 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003565/0.614, allocations: 460 kB / 0.5901 GB, free: 8.797 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005516/0.6196, allocations: 1.217 MB / 0.5913 GB, free: 7.578 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00684/0.6265, allocations: 3.245 MB / 0.5944 GB, free: 4.324 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007808/0.6343, allocations: 3.674 MB / 0.598 GB, free: 0.6289 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01138/0.6457, allocations: 9.024 MB / 0.6068 GB, free: 7.582 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.287e-06/0.6458, allocations: 0 / 0.6068 GB, free: 7.582 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.6458, allocations: 0 / 0.6068 GB, free: 7.582 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004694/0.6463, allocations: 0 / 0.6068 GB, free: 7.582 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: 2609 * Number of variables: 2609 Notification: Performance of Generate backend data structure: time 0.02486/0.6712, allocations: 7.895 MB / 0.6146 GB, free: 15.59 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.058e-05/0.6712, allocations: 12.03 kB / 0.6146 GB, free: 15.58 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01183/0.6831, allocations: 2.663 MB / 0.6172 GB, free: 12.91 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008812/0.6919, allocations: 3.681 MB / 0.6208 GB, free: 9.164 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005499/0.6925, allocations: 443.7 kB / 0.6212 GB, free: 8.73 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002667/0.6952, allocations: 0.5621 MB / 0.6217 GB, free: 8.168 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04797/0.7432, allocations: 20.31 MB / 0.6416 GB, free: 2.707 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000407/0.7437, allocations: 75.23 kB / 0.6416 GB, free: 2.633 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002467/0.7462, allocations: 279.8 kB / 0.6419 GB, free: 2.359 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005865/0.752, allocations: 3.33 MB / 0.6452 GB, free: 15.02 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03854/0.7906, allocations: 16.34 MB / 0.6611 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.555/1.346, allocations: 65.39 MB / 0.725 GB, free: 147.1 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02827/1.374, allocations: 6.369 MB / 0.7312 GB, free: 146.4 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005815/1.38, allocations: 2.08 MB / 0.7332 GB, free: 146.3 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02446/1.404, allocations: 9.174 MB / 0.7422 GB, free: 141.8 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.02103/1.425, allocations: 4.153 MB / 0.7462 GB, free: 141.1 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=260): time 1.355e-05/1.425, allocations: 0 / 0.7462 GB, free: 141.1 MB / 0.5294 GB Notification: Performance of matching and sorting (n=294): time 0.09039/1.516, allocations: 21.51 MB / 0.7672 GB, free: 127.2 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.871e-05/1.516, allocations: 158.1 kB / 0.7674 GB, free: 127 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01456/1.531, allocations: 5.865 MB / 0.7731 GB, free: 121.1 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0006349/1.531, allocations: 69.7 kB / 0.7732 GB, free: 121 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.005163/1.536, allocations: 5.057 MB / 0.7781 GB, free: 116 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001754/1.538, allocations: 1.134 MB / 0.7792 GB, free: 114.9 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005455/1.544, allocations: 1.837 MB / 0.781 GB, free: 113 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.383e-05/1.544, allocations: 309.1 kB / 0.7813 GB, free: 112.7 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00659/1.55, allocations: 2.659 MB / 0.7839 GB, free: 110 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01008/1.561, allocations: 8.285 MB / 0.792 GB, free: 99.14 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01758/1.578, allocations: 11.9 MB / 0.8036 GB, free: 84.66 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003229/1.579, allocations: 56 kB / 0.8037 GB, free: 84.61 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1221) (initialization): time 0.03026/1.609, allocations: 10.68 MB / 0.8141 GB, free: 73.92 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005182/1.609, allocations: 116 kB / 0.8142 GB, free: 73.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004596/1.61, allocations: 200 kB / 0.8144 GB, free: 73.61 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004495/1.61, allocations: 264 kB / 0.8147 GB, free: 73.35 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01154/1.622, allocations: 2.231 MB / 0.8169 GB, free: 71.11 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006494/1.623, allocations: 398.3 kB / 0.8172 GB, free: 70.72 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01136/1.634, allocations: 468.2 kB / 0.8177 GB, free: 70.27 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002086/1.636, allocations: 0.5469 MB / 0.8182 GB, free: 69.72 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 904 * Number of states: 0 () * Number of discrete variables: 83 (trapezoid.count,$PRE.trapezoid.count,trapezoid.T_start,$PRE.trapezoid.T_start,$whenCondition1,force2.forceArrow.arrowLine.twoHeadedArrow,force2.forceArrow.headAtOrigin,force1.forceArrow.arrowLine.twoHeadedArrow,force1.forceArrow.headAtOrigin,force.forceArrow.arrowLine.twoHeadedArrow,force.forceArrow.headAtOrigin,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.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.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.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 (1196): * Single equations (assignments): 1192 * Array equations: 3 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01009/1.646, allocations: 3.237 MB / 0.8214 GB, free: 66.46 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001763/1.648, allocations: 0.5206 MB / 0.8219 GB, free: 65.94 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0101/1.658, allocations: 3.035 MB / 0.8248 GB, free: 62.89 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.022e-05/1.658, allocations: 35.83 kB / 0.8249 GB, free: 62.86 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.941e-05/1.658, allocations: 4.625 kB / 0.8249 GB, free: 62.85 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.282e-05/1.658, allocations: 15.95 kB / 0.8249 GB, free: 62.84 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03243/1.691, allocations: 12.42 MB / 0.837 GB, free: 49.94 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001296/1.691, allocations: 44.38 kB / 0.8371 GB, free: 49.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003579/1.695, allocations: 0.5771 MB / 0.8376 GB, free: 49.32 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.937e-05/1.695, allocations: 44 kB / 0.8377 GB, free: 49.28 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000425/1.695, allocations: 91.98 kB / 0.8378 GB, free: 49.19 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.828e-05/1.695, allocations: 63.73 kB / 0.8378 GB, free: 49.13 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.37e-05/1.695, allocations: 55.75 kB / 0.8379 GB, free: 49.07 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01103/1.706, allocations: 5.436 MB / 0.8432 GB, free: 43.09 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002613/1.709, allocations: 0.5918 MB / 0.8438 GB, free: 42.47 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002028/1.711, allocations: 91.97 kB / 0.8439 GB, free: 42.38 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004451/1.716, allocations: 151.2 kB / 0.844 GB, free: 42.23 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007262/1.716, allocations: 279.9 kB / 0.8443 GB, free: 41.96 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004307/1.717, allocations: 120 kB / 0.8444 GB, free: 41.84 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.01005/1.727, allocations: 3.646 MB / 0.8479 GB, free: 38.2 MB / 0.5294 GB Notification: Performance of sort global known variables: time 6.11e-07/1.727, allocations: 0 / 0.8479 GB, free: 38.2 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01258/1.74, allocations: 1.465 MB / 0.8494 GB, free: 36.73 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 142 * 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 (278): * Single equations (assignments): 273 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001218/1.741, allocations: 274.5 kB / 0.8496 GB, free: 36.47 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01442/1.755, allocations: 6.086 MB / 0.8556 GB, free: 30.4 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.335e-05/1.755, allocations: 4 kB / 0.8556 GB, free: 30.39 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003967/1.759, allocations: 1.527 MB / 0.8571 GB, free: 28.88 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00869/1.768, allocations: 0.7725 MB / 0.8578 GB, free: 28.11 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04329/1.811, allocations: 18.86 MB / 0.8762 GB, free: 8.793 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01104/1.823, allocations: 4.887 MB / 0.881 GB, free: 3.883 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002201/1.825, allocations: 451.4 kB / 0.8814 GB, free: 3.441 MB / 0.5294 GB Notification: Performance of SimCode: time 1.483e-06/1.825, allocations: 0 / 0.8814 GB, free: 3.441 MB / 0.5294 GB Notification: Performance of Templates: time 0.3509/2.176, allocations: 85.47 MB / 0.9649 GB, free: 174.4 MB / 0.5607 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Damper2/Damper2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Damper2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches