Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.MultiBody.Forces.Damper2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009715/0.0009715, allocations: 96.28 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001243/0.001243, allocations: 206.9 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.484/1.484, allocations: 227.7 MB / 246.8 MB, free: 9.777 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2443/0.2443, allocations: 46.18 MB / 345.2 MB, free: 11.18 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002898/0.0002899, allocations: 8 kB / 419.5 MB, free: 19.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1409/0.1412, allocations: 63.55 MB / 483.1 MB, free: 4.129 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Damper2): time 0.3944/0.5356, allocations: 73.27 MB / 0.5433 GB, free: 1.262 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04327/0.579, allocations: 14.49 MB / 0.5575 GB, free: 7.648 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02115/0.6002, allocations: 320.3 kB / 0.5578 GB, free: 7.602 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002975/0.6032, allocations: 0.6389 MB / 0.5584 GB, free: 7.098 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009313/0.6125, allocations: 2.328 MB / 0.5607 GB, free: 5.449 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003404/0.6159, allocations: 1.089 MB / 0.5617 GB, free: 4.723 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01408/0.63, allocations: 9.676 MB / 0.5712 GB, free: 12.46 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01453/0.6446, allocations: 9.287 MB / 0.5802 GB, free: 3.074 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003987/0.6486, allocations: 1.852 MB / 0.5821 GB, free: 1.215 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005412/0.6541, allocations: 3.317 MB / 0.5853 GB, free: 13.88 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001373/0.6555, allocations: 248 kB / 0.5855 GB, free: 13.64 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002926/0.6584, allocations: 0.9984 MB / 0.5865 GB, free: 12.64 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003409/0.6618, allocations: 2.828 MB / 0.5893 GB, free: 9.809 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00464/0.6665, allocations: 3.215 MB / 0.5924 GB, free: 6.566 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01184/0.6783, allocations: 10.27 MB / 0.6024 GB, free: 12.26 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.301e-06/0.6784, allocations: 0 / 0.6024 GB, free: 12.26 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.415e-06/0.6784, allocations: 0 / 0.6024 GB, free: 12.26 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004072/0.6788, allocations: 0 / 0.6024 GB, free: 12.26 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: 2522 * Number of variables: 2522 Notification: Performance of Generate backend data structure: time 0.01617/0.695, allocations: 6.208 MB / 0.6085 GB, free: 5.969 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.241e-05/0.6951, allocations: 12.88 kB / 0.6085 GB, free: 5.957 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01131/0.7064, allocations: 2.636 MB / 0.6111 GB, free: 3.309 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008342/0.7147, allocations: 3.533 MB / 0.6145 GB, free: 15.71 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004921/0.7153, allocations: 435.4 kB / 0.615 GB, free: 15.29 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0025/0.7178, allocations: 0.5542 MB / 0.6155 GB, free: 14.73 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04668/0.7645, allocations: 19.87 MB / 0.6349 GB, free: 9.73 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003017/0.7648, allocations: 71.38 kB / 0.635 GB, free: 9.66 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001253/0.7661, allocations: 271.8 kB / 0.6352 GB, free: 9.395 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005293/0.7714, allocations: 3.153 MB / 0.6383 GB, free: 6.238 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04178/0.8132, allocations: 16.01 MB / 0.6539 GB, free: 6.207 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6309/1.444, allocations: 64.08 MB / 0.7165 GB, free: 138.7 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02024/1.464, allocations: 6.471 MB / 0.7228 GB, free: 138 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004046/1.468, allocations: 2.096 MB / 0.7249 GB, free: 138 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01919/1.488, allocations: 9.219 MB / 0.7339 GB, free: 134.6 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01387/1.502, allocations: 4.252 MB / 0.738 GB, free: 134 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=260): time 5.31e-06/1.502, allocations: 3.906 kB / 0.738 GB, free: 134 MB / 0.5294 GB Notification: Performance of matching and sorting (n=294): time 0.05454/1.556, allocations: 21.84 MB / 0.7594 GB, free: 121.6 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.601e-05/1.556, allocations: 156.3 kB / 0.7595 GB, free: 121.4 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007512/1.564, allocations: 5.778 MB / 0.7652 GB, free: 115.7 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0005812/1.564, allocations: 69.7 kB / 0.7652 GB, free: 115.6 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.004348/1.569, allocations: 4.929 MB / 0.77 GB, free: 110.7 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001084/1.57, allocations: 1.132 MB / 0.7711 GB, free: 109.6 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007432/1.571, allocations: 0.7804 MB / 0.7719 GB, free: 108.8 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.424e-05/1.571, allocations: 301.1 kB / 0.7722 GB, free: 108.5 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003894/1.575, allocations: 2.698 MB / 0.7748 GB, free: 105.8 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0061/1.581, allocations: 8.265 MB / 0.7829 GB, free: 94.93 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01255/1.593, allocations: 11.91 MB / 0.7945 GB, free: 80.56 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002209/1.594, allocations: 56 kB / 0.7946 GB, free: 80.51 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1212) (initialization): time 0.0181/1.612, allocations: 10.7 MB / 0.805 GB, free: 69.8 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.000122/1.612, allocations: 121.7 kB / 0.8051 GB, free: 69.67 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001804/1.612, allocations: 196.6 kB / 0.8053 GB, free: 69.48 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001896/1.612, allocations: 260 kB / 0.8056 GB, free: 69.23 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006505/1.619, allocations: 2.234 MB / 0.8078 GB, free: 66.99 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002198/1.619, allocations: 386.5 kB / 0.8081 GB, free: 66.61 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006269/1.625, allocations: 483.4 kB / 0.8086 GB, free: 66.14 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001044/1.626, allocations: 0.5544 MB / 0.8091 GB, free: 65.59 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 895 * Number of states: 0 () * Number of discrete variables: 83 (trapezoid.count,$PRE.trapezoid.count,trapezoid.T_start,$PRE.trapezoid.T_start,$whenCondition1,force2.forceArrow.twoHeadedArrow,force2.forceArrow.headAtOrigin,force1.forceArrow.twoHeadedArrow,force1.forceArrow.headAtOrigin,force.forceArrow.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 (1187): * Single equations (assignments): 1183 * 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.005138/1.631, allocations: 3.149 MB / 0.8122 GB, free: 62.43 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008608/1.632, allocations: 0.509 MB / 0.8127 GB, free: 61.91 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005552/1.638, allocations: 3.116 MB / 0.8157 GB, free: 58.78 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-05/1.638, allocations: 36 kB / 0.8158 GB, free: 58.74 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.476e-05/1.638, allocations: 0 / 0.8158 GB, free: 58.74 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.455e-05/1.638, allocations: 11.95 kB / 0.8158 GB, free: 58.73 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02371/1.662, allocations: 12.36 MB / 0.8279 GB, free: 45.89 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.939e-05/1.662, allocations: 32 kB / 0.8279 GB, free: 45.86 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002341/1.664, allocations: 0.6163 MB / 0.8285 GB, free: 45.24 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.468e-05/1.664, allocations: 44 kB / 0.8285 GB, free: 45.2 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002827/1.665, allocations: 89.62 kB / 0.8286 GB, free: 45.11 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.897e-05/1.665, allocations: 71.78 kB / 0.8287 GB, free: 45.04 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.289e-05/1.665, allocations: 51.69 kB / 0.8287 GB, free: 44.99 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006993/1.672, allocations: 5.58 MB / 0.8342 GB, free: 38.87 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001589/1.673, allocations: 0.5888 MB / 0.8348 GB, free: 38.25 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005079/1.674, allocations: 93.61 kB / 0.8349 GB, free: 38.16 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001794/1.676, allocations: 175.9 kB / 0.835 GB, free: 37.99 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003143/1.676, allocations: 283.9 kB / 0.8353 GB, free: 37.71 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001391/1.676, allocations: 125.2 kB / 0.8354 GB, free: 37.59 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004657/1.681, allocations: 3.585 MB / 0.8389 GB, free: 34.04 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.1e-07/1.681, allocations: 0 / 0.8389 GB, free: 34.04 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006658/1.687, allocations: 1.417 MB / 0.8403 GB, free: 32.62 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.0005313/1.688, allocations: 271.9 kB / 0.8406 GB, free: 32.36 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.009291/1.697, allocations: 6.156 MB / 0.8466 GB, free: 26.22 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.443e-05/1.697, allocations: 7.938 kB / 0.8466 GB, free: 26.21 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002855/1.7, allocations: 1.658 MB / 0.8482 GB, free: 24.57 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02819/1.728, allocations: 0.7449 MB / 0.8489 GB, free: 23.83 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02969/1.758, allocations: 17.89 MB / 0.8664 GB, free: 5.477 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007067/1.765, allocations: 4.761 MB / 0.871 GB, free: 0.6875 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.007349/1.773, allocations: 2.579 MB / 0.8736 GB, free: 14.1 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001267/1.774, allocations: 375.4 kB / 0.8739 GB, free: 13.73 MB / 0.545 GB Notification: Performance of SimCode: time 9.22e-07/1.774, allocations: 0 / 0.8739 GB, free: 13.73 MB / 0.545 GB Notification: Performance of Templates: time 0.09676/1.871, allocations: 45.08 MB / 0.918 GB, free: 0.8633 MB / 0.5763 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches