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.001004/0.001004, allocations: 179 kB / 18.09 MB, free: 3.75 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.396/1.396, allocations: 223.3 MB / 242.1 MB, free: 11.62 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.0009143/0.0009143, allocations: 104.6 kB / 293.3 MB, free: 10.75 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.3493/0.3493, allocations: 44.15 MB / 388.5 MB, free: 38.65 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000396/0.0003961, allocations: 12 kB / 461.1 MB, free: 1.316 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3674/0.3678, allocations: 61.87 MB / 0.5107 GB, free: 38.11 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1341/0.5019, allocations: 110 MB / 0.6182 GB, free: 0.9883 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002139/0.5022, allocations: 87.94 kB / 0.6183 GB, free: 0.9062 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5629/1.065, allocations: 139 MB / 0.7541 GB, free: 86.7 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.154e-06/1.065, allocations: 0 / 0.7541 GB, free: 86.7 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002992/1.065, allocations: 136.5 kB / 0.7542 GB, free: 86.7 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.01631/1.082, allocations: 6.66 MB / 0.7607 GB, free: 82.2 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.347e-05/1.082, allocations: 7.844 kB / 0.7607 GB, free: 82.2 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01308/1.095, allocations: 3.295 MB / 0.7639 GB, free: 80.64 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01073/1.106, allocations: 5.828 MB / 0.7696 GB, free: 77.23 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004011/1.106, allocations: 0.5775 MB / 0.7702 GB, free: 76.66 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002731/1.109, allocations: 0.7579 MB / 0.7709 GB, free: 75.91 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03749/1.146, allocations: 20.79 MB / 0.7912 GB, free: 53.51 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002419/1.147, allocations: 87.34 kB / 0.7913 GB, free: 53.43 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001178/1.148, allocations: 371.8 kB / 0.7917 GB, free: 53.06 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002087/1.15, allocations: 1.831 MB / 0.7934 GB, free: 51.23 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03087/1.181, allocations: 16.62 MB / 0.8097 GB, free: 34.58 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3208/1.502, allocations: 77.07 MB / 0.8849 GB, free: 58.59 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01467/1.516, allocations: 6.265 MB / 0.8911 GB, free: 57.93 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002824/1.519, allocations: 2.016 MB / 0.893 GB, free: 57.89 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01413/1.533, allocations: 9.167 MB / 0.902 GB, free: 55.73 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01283/1.546, allocations: 4.142 MB / 0.906 GB, free: 55.61 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=260): time 5.18e-06/1.546, allocations: 3.844 kB / 0.906 GB, free: 55.61 MB / 0.5105 GB Notification: Performance of matching and sorting (n=294): time 0.06548/1.612, allocations: 21.48 MB / 0.927 GB, free: 51.01 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.17e-05/1.612, allocations: 157 kB / 0.9272 GB, free: 50.85 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01179/1.624, allocations: 5.902 MB / 0.9329 GB, free: 50.21 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0006103/1.624, allocations: 70.52 kB / 0.933 GB, free: 50.18 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.004898/1.629, allocations: 5.065 MB / 0.9379 GB, free: 47.33 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001611/1.631, allocations: 1.135 MB / 0.939 GB, free: 46.69 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005199/1.631, allocations: 186.3 kB / 0.9392 GB, free: 46.69 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0005161/1.632, allocations: 0.6938 MB / 0.9399 GB, free: 46.36 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006701/1.639, allocations: 2.65 MB / 0.9425 GB, free: 46.03 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009293/1.648, allocations: 8.22 MB / 0.9505 GB, free: 37.79 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01815/1.666, allocations: 11.8 MB / 0.962 GB, free: 28.41 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002452/1.666, allocations: 57.5 kB / 0.9621 GB, free: 28.41 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1203) (initialization): time 0.03175/1.698, allocations: 10.61 MB / 0.9725 GB, free: 24.64 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002839/1.699, allocations: 117.3 kB / 0.9726 GB, free: 24.61 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003718/1.699, allocations: 199.3 kB / 0.9728 GB, free: 24.61 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004166/1.699, allocations: 259.6 kB / 0.973 GB, free: 24.61 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0127/1.712, allocations: 2.261 MB / 0.9752 GB, free: 24.32 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004877/1.713, allocations: 383.9 kB / 0.9756 GB, free: 24.24 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0117/1.724, allocations: 0.5929 MB / 0.9762 GB, free: 24.06 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001821/1.726, allocations: 0.5381 MB / 0.9767 GB, free: 23.99 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 (1178): * Single equations (assignments): 1174 * 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.009174/1.735, allocations: 3.227 MB / 0.9798 GB, free: 22.03 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001228/1.737, allocations: 0.5207 MB / 0.9803 GB, free: 21.5 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008108/1.745, allocations: 2.953 MB / 0.9832 GB, free: 18.98 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.458e-05/1.745, allocations: 30.53 kB / 0.9833 GB, free: 18.95 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.596e-05/1.745, allocations: 4 kB / 0.9833 GB, free: 18.95 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.504e-05/1.745, allocations: 20.83 kB / 0.9833 GB, free: 18.94 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03049/1.775, allocations: 12.39 MB / 0.9954 GB, free: 8.18 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.563e-05/1.776, allocations: 32 kB / 0.9954 GB, free: 8.148 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00216/1.778, allocations: 0.5324 MB / 0.9959 GB, free: 7.691 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.879e-05/1.778, allocations: 48.16 kB / 0.996 GB, free: 7.645 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002021/1.778, allocations: 95 kB / 0.9961 GB, free: 7.555 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.66e-05/1.778, allocations: 65.09 kB / 0.9961 GB, free: 7.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.1e-05/1.778, allocations: 51.75 kB / 0.9962 GB, free: 7.449 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006317/1.784, allocations: 5.388 MB / 1.001 GB, free: 2.008 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001492/1.786, allocations: 0.6052 MB / 1.002 GB, free: 1.41 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009665/1.787, allocations: 86.56 kB / 1.002 GB, free: 1.332 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002643/1.79, allocations: 213.2 kB / 1.002 GB, free: 1.172 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003344/1.79, allocations: 274.8 kB / 1.003 GB, free: 0.9648 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001781/1.79, allocations: 127 kB / 1.003 GB, free: 0.8438 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01355/1.804, allocations: 4.264 MB / 1.007 GB, free: 15.25 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.7e-07/1.804, allocations: 4 kB / 1.007 GB, free: 15.25 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.007858/1.812, allocations: 1.484 MB / 1.008 GB, free: 13.77 MB / 0.5261 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 (272): * Single equations (assignments): 267 * 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.0005108/1.812, allocations: 281.1 kB / 1.009 GB, free: 13.5 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.009963/1.822, allocations: 6.039 MB / 1.014 GB, free: 8.191 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.768e-05/1.822, allocations: 7.938 kB / 1.014 GB, free: 8.184 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002937/1.825, allocations: 1.632 MB / 1.016 GB, free: 6.727 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02746/1.853, allocations: 0.7624 MB / 1.017 GB, free: 6.074 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02854/1.881, allocations: 17.47 MB / 1.034 GB, free: 5.516 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00655/1.888, allocations: 4.889 MB / 1.039 GB, free: 0.6836 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.00674/1.894, allocations: 2.616 MB / 1.041 GB, free: 14.08 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009287/1.895, allocations: 383.4 kB / 1.042 GB, free: 13.71 MB / 0.5573 GB Notification: Performance of SimCode: time 7.01e-07/1.895, allocations: 0 / 1.042 GB, free: 13.71 MB / 0.5573 GB Notification: Performance of Templates: time 0.08792/1.983, allocations: 44.99 MB / 1.086 GB, free: 1.48 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/jenkins1/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