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.001226/0.001226, allocations: 91.12 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001845/0.001845, allocations: 202.8 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.447/1.447, allocations: 227.7 MB / 246.8 MB, free: 9.656 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2571/0.2571, allocations: 46.19 MB / 345.2 MB, free: 11.17 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002858/0.0002862, allocations: 11.98 kB / 419.5 MB, free: 19.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1544/0.1547, allocations: 63.56 MB / 483.1 MB, free: 4.133 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Damper2): time 0.3748/0.5296, allocations: 73.26 MB / 0.5433 GB, free: 1.23 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04465/0.5743, allocations: 14.48 MB / 0.5574 GB, free: 7.691 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0238/0.5982, allocations: 319 kB / 0.5578 GB, free: 7.645 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003072/0.6013, allocations: 0.6433 MB / 0.5584 GB, free: 7.137 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008597/0.6099, allocations: 2.343 MB / 0.5607 GB, free: 5.477 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003196/0.6131, allocations: 1.091 MB / 0.5617 GB, free: 4.75 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01398/0.6271, allocations: 9.664 MB / 0.5712 GB, free: 12.5 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01772/0.6449, allocations: 9.293 MB / 0.5802 GB, free: 3.117 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00535/0.6502, allocations: 1.848 MB / 0.5821 GB, free: 1.262 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006618/0.6569, allocations: 3.321 MB / 0.5853 GB, free: 13.93 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001863/0.6588, allocations: 248 kB / 0.5855 GB, free: 13.69 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00394/0.6628, allocations: 0.9946 MB / 0.5865 GB, free: 12.69 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004526/0.6673, allocations: 2.836 MB / 0.5893 GB, free: 9.848 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00675/0.6741, allocations: 3.207 MB / 0.5924 GB, free: 6.613 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01651/0.6906, allocations: 10.28 MB / 0.6024 GB, free: 12.3 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.013e-06/0.6907, allocations: 0 / 0.6024 GB, free: 12.3 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.647e-06/0.6907, allocations: 0 / 0.6024 GB, free: 12.3 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005631/0.6912, allocations: 0 / 0.6024 GB, free: 12.3 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.01726/0.7085, allocations: 6.205 MB / 0.6085 GB, free: 6.012 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.396e-05/0.7086, allocations: 12.88 kB / 0.6085 GB, free: 6 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01137/0.7199, allocations: 2.636 MB / 0.6111 GB, free: 3.352 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008438/0.7284, allocations: 3.537 MB / 0.6145 GB, free: 15.75 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005144/0.7289, allocations: 435.5 kB / 0.615 GB, free: 15.33 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002363/0.7313, allocations: 0.5542 MB / 0.6155 GB, free: 14.77 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04904/0.7804, allocations: 19.86 MB / 0.6349 GB, free: 9.777 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004231/0.7808, allocations: 79.33 kB / 0.635 GB, free: 9.699 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002527/0.7834, allocations: 271.8 kB / 0.6352 GB, free: 9.434 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005641/0.7891, allocations: 3.146 MB / 0.6383 GB, free: 6.285 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04207/0.8312, allocations: 16.01 MB / 0.6539 GB, free: 6.25 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6612/1.492, allocations: 64.08 MB / 0.7165 GB, free: 138.7 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02137/1.514, allocations: 6.464 MB / 0.7228 GB, free: 138 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003597/1.517, allocations: 2.096 MB / 0.7249 GB, free: 137.9 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01447/1.532, allocations: 9.22 MB / 0.7339 GB, free: 134.6 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01347/1.545, allocations: 4.26 MB / 0.738 GB, free: 133.9 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=260): time 5.38e-06/1.546, allocations: 3.469 kB / 0.738 GB, free: 133.9 MB / 0.5294 GB Notification: Performance of matching and sorting (n=294): time 0.05839/1.604, allocations: 21.84 MB / 0.7594 GB, free: 121.7 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.366e-05/1.604, allocations: 158.5 kB / 0.7595 GB, free: 121.5 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00661/1.611, allocations: 5.772 MB / 0.7651 GB, free: 115.7 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0003953/1.611, allocations: 68.83 kB / 0.7652 GB, free: 115.7 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003033/1.614, allocations: 4.934 MB / 0.77 GB, free: 110.7 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009536/1.615, allocations: 1.126 MB / 0.7711 GB, free: 109.6 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007363/1.616, allocations: 0.7843 MB / 0.7719 GB, free: 108.8 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.834e-05/1.616, allocations: 301.1 kB / 0.7722 GB, free: 108.5 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003831/1.62, allocations: 2.705 MB / 0.7748 GB, free: 105.8 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006244/1.626, allocations: 8.255 MB / 0.7829 GB, free: 94.98 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01077/1.637, allocations: 11.92 MB / 0.7945 GB, free: 80.61 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001309/1.637, allocations: 56 kB / 0.7946 GB, free: 80.55 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1212) (initialization): time 0.01687/1.654, allocations: 10.69 MB / 0.805 GB, free: 69.84 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001255/1.654, allocations: 115.8 kB / 0.8051 GB, free: 69.73 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001782/1.654, allocations: 200 kB / 0.8053 GB, free: 69.53 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001854/1.654, allocations: 264 kB / 0.8056 GB, free: 69.27 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006729/1.661, allocations: 2.238 MB / 0.8078 GB, free: 67.03 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002602/1.661, allocations: 386.5 kB / 0.8081 GB, free: 66.65 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005963/1.667, allocations: 484.4 kB / 0.8086 GB, free: 66.18 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009432/1.668, allocations: 0.5438 MB / 0.8091 GB, free: 65.64 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.004786/1.673, allocations: 3.16 MB / 0.8122 GB, free: 62.46 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007746/1.674, allocations: 0.509 MB / 0.8127 GB, free: 61.95 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004997/1.679, allocations: 3.105 MB / 0.8157 GB, free: 58.83 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.872e-05/1.679, allocations: 32 kB / 0.8158 GB, free: 58.8 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.013e-05/1.679, allocations: 3.984 kB / 0.8158 GB, free: 58.79 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.355e-05/1.679, allocations: 23.94 kB / 0.8158 GB, free: 58.77 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01866/1.698, allocations: 12.35 MB / 0.8279 GB, free: 45.94 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.415e-05/1.698, allocations: 33.06 kB / 0.8279 GB, free: 45.91 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002161/1.7, allocations: 0.624 MB / 0.8285 GB, free: 45.29 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.488e-05/1.7, allocations: 44 kB / 0.8285 GB, free: 45.24 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001438/1.7, allocations: 91.98 kB / 0.8286 GB, free: 45.15 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.464e-05/1.7, allocations: 63.73 kB / 0.8287 GB, free: 45.09 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.347e-05/1.7, allocations: 51.75 kB / 0.8287 GB, free: 45.04 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006293/1.706, allocations: 5.591 MB / 0.8342 GB, free: 38.91 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001331/1.708, allocations: 0.584 MB / 0.8348 GB, free: 38.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005427/1.708, allocations: 96.83 kB / 0.8349 GB, free: 38.21 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001967/1.71, allocations: 179.9 kB / 0.835 GB, free: 38.03 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003673/1.711, allocations: 281 kB / 0.8353 GB, free: 37.76 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001646/1.711, allocations: 123.9 kB / 0.8354 GB, free: 37.64 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005911/1.717, allocations: 3.582 MB / 0.8389 GB, free: 34.09 MB / 0.5294 GB Notification: Performance of sort global known variables: time 6.31e-07/1.717, allocations: 0 / 0.8389 GB, free: 34.09 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007803/1.725, allocations: 1.419 MB / 0.8403 GB, free: 32.67 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.0006931/1.725, allocations: 269.8 kB / 0.8406 GB, free: 32.41 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01048/1.736, allocations: 6.155 MB / 0.8466 GB, free: 26.27 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.611e-05/1.736, allocations: 8 kB / 0.8466 GB, free: 26.26 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002856/1.739, allocations: 1.65 MB / 0.8482 GB, free: 24.62 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02656/1.765, allocations: 0.7442 MB / 0.8489 GB, free: 23.88 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02487/1.79, allocations: 17.9 MB / 0.8664 GB, free: 5.52 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006673/1.797, allocations: 4.761 MB / 0.871 GB, free: 0.7305 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.007376/1.804, allocations: 2.577 MB / 0.8736 GB, free: 14.14 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001116/1.805, allocations: 379.3 kB / 0.8739 GB, free: 13.78 MB / 0.545 GB Notification: Performance of SimCode: time 1.373e-06/1.805, allocations: 4 kB / 0.8739 GB, free: 13.77 MB / 0.545 GB Notification: Performance of Templates: time 0.1115/1.917, allocations: 45.08 MB / 0.918 GB, free: 0.918 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