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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009844/0.0009844, allocations: 82.59 kB / 21.43 MB, free: 3.07 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001042/0.001042, allocations: 171.8 kB / 24.82 MB, free: 9.254 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9745/0.9745, allocations: 177 MB / 205.1 MB, free: 5.465 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2808/0.2808, allocations: 34.86 MB / 296.6 MB, free: 0.5078 MB / 266.7 MB " [Timeout remaining time 180] 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=5097,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=5097,variableFilter="time|heatCapacitor.T|prismatic.s|prismatic.v|prismatic1.s|prismatic1.v|prismatic2.s|prismatic2.v",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.984e-06/1.984e-06, allocations: 0 / 379.2 MB, free: 1.809 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.721e-05/2.92e-05, allocations: 3.297 kB / 379.2 MB, free: 1.805 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Damper2): time 0.01241/0.01244, allocations: 15.16 MB / 394.4 MB, free: 2.578 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.01058/0.02303, allocations: 4.927 MB / 399.3 MB, free: 13.64 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00259/0.02562, allocations: 111.5 kB / 399.4 MB, free: 13.53 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006372/0.03199, allocations: 5.467 MB / 404.9 MB, free: 8.043 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006044/0.03803, allocations: 2.655 MB / 407.6 MB, free: 5.375 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002339/0.04037, allocations: 1.326 MB / 408.9 MB, free: 4.047 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.008325/0.0487, allocations: 7.76 MB / 416.6 MB, free: 12.27 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007329/0.05603, allocations: 5.973 MB / 422.6 MB, free: 6.227 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007949/0.06397, allocations: 4.144 MB / 426.8 MB, free: 2.074 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005877/0.06985, allocations: 4.002 MB / 430.8 MB, free: 14.06 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001805/0.07166, allocations: 0.5742 MB / 431.3 MB, free: 13.49 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003265/0.07492, allocations: 1.237 MB / 432.6 MB, free: 12.25 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003569/0.07849, allocations: 3.452 MB / 436 MB, free: 8.789 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003971/0.08246, allocations: 2.193 MB / 438.2 MB, free: 6.59 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1995/0.282, allocations: 7.178 MB / 445.4 MB, free: 68.07 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.672e-06/0.282, allocations: 0 / 445.4 MB, free: 68.07 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.282, allocations: 0 / 445.4 MB, free: 68.07 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004161/0.2824, allocations: 0 / 445.4 MB, free: 68.07 MB / 410.7 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.01073/0.2931, allocations: 7.992 MB / 453.4 MB, free: 65.09 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.33e-05/0.2932, allocations: 8.75 kB / 453.4 MB, free: 65.09 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00524/0.2984, allocations: 2.4 MB / 455.8 MB, free: 64.59 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00433/0.3027, allocations: 2.921 MB / 458.7 MB, free: 63.88 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002341/0.303, allocations: 430.6 kB / 459.1 MB, free: 63.87 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000702/0.3037, allocations: 0.5503 MB / 459.7 MB, free: 63.86 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01849/0.3222, allocations: 9.955 MB / 469.6 MB, free: 59.18 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000242/0.3224, allocations: 78.83 kB / 469.7 MB, free: 59.17 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005632/0.323, allocations: 267.2 kB / 470 MB, free: 59.17 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002451/0.3254, allocations: 2.791 MB / 472.8 MB, free: 59.16 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01369/0.3391, allocations: 4.633 MB / 477.4 MB, free: 58.96 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06676/0.4059, allocations: 69.84 MB / 0.5344 GB, free: 18.35 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008163/0.414, allocations: 3.655 MB / 0.538 GB, free: 17.77 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001205/0.4152, allocations: 0.7913 MB / 0.5388 GB, free: 17.63 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007452/0.4227, allocations: 5.435 MB / 0.5441 GB, free: 14.9 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005943/0.4286, allocations: 3.136 MB / 0.5471 GB, free: 13.18 MB / 426.7 MB Notification: Performance of pre-optimization done (n=260): time 5.731e-06/0.4286, allocations: 0 / 0.5471 GB, free: 13.18 MB / 426.7 MB Notification: Performance of matching and sorting (n=294): time 0.02498/0.4536, allocations: 11.74 MB / 0.5586 GB, free: 2.914 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.28e-05/0.4537, allocations: 158.5 kB / 0.5588 GB, free: 2.73 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004196/0.4579, allocations: 4.933 MB / 0.5636 GB, free: 14.63 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00025/0.4581, allocations: 67.12 kB / 0.5636 GB, free: 14.56 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003553/0.4617, allocations: 5.315 MB / 0.5688 GB, free: 9.492 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001325/0.463, allocations: 1.209 MB / 0.57 GB, free: 8.344 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002239/0.4653, allocations: 2.002 MB / 0.572 GB, free: 6.531 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001265/0.4654, allocations: 480.7 kB / 0.5724 GB, free: 6.059 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001434/0.4668, allocations: 0.8781 MB / 0.5733 GB, free: 5.172 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007071/0.4739, allocations: 9.288 MB / 0.5823 GB, free: 8.383 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009611/0.4835, allocations: 11.12 MB / 0.5932 GB, free: 9.773 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002192/0.4837, allocations: 64 kB / 0.5933 GB, free: 9.711 MB / 474.7 MB Notification: Performance of matching and sorting (n=1230) (initialization): time 0.01274/0.4965, allocations: 7.321 MB / 0.6004 GB, free: 2.383 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001313/0.4966, allocations: 121.7 kB / 0.6005 GB, free: 2.258 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001658/0.4968, allocations: 204.1 kB / 0.6007 GB, free: 2.059 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001831/0.497, allocations: 264 kB / 0.601 GB, free: 1.801 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004449/0.5014, allocations: 2.195 MB / 0.6031 GB, free: 15.6 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003628/0.5018, allocations: 399.9 kB / 0.6035 GB, free: 15.21 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004513/0.5063, allocations: 432.9 kB / 0.6039 GB, free: 14.79 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007073/0.507, allocations: 492 kB / 0.6044 GB, free: 14.31 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 913 * 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 (1205): * Single equations (assignments): 1201 * 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.002333/0.5093, allocations: 0.9484 MB / 0.6053 GB, free: 13.35 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000919/0.5102, allocations: 0.5632 MB / 0.6059 GB, free: 12.78 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001965/0.5122, allocations: 1.588 MB / 0.6074 GB, free: 11.18 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.288e-05/0.5122, allocations: 28 kB / 0.6074 GB, free: 11.15 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.686e-06/0.5122, allocations: 4 kB / 0.6074 GB, free: 11.15 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.878e-05/0.5123, allocations: 11.95 kB / 0.6075 GB, free: 11.14 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01308/0.5253, allocations: 8.958 MB / 0.6162 GB, free: 1.863 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.045e-05/0.5254, allocations: 40.23 kB / 0.6162 GB, free: 1.824 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001123/0.5265, allocations: 0.5421 MB / 0.6168 GB, free: 1.281 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.101e-05/0.5265, allocations: 48 kB / 0.6168 GB, free: 1.234 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001259/0.5266, allocations: 95.92 kB / 0.6169 GB, free: 1.141 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.351e-05/0.5267, allocations: 63.73 kB / 0.617 GB, free: 1.078 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.196e-05/0.5267, allocations: 47.81 kB / 0.617 GB, free: 1.031 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1919/0.7186, allocations: 3.681 MB / 0.6206 GB, free: 145.6 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001389/0.72, allocations: 497.8 kB / 0.6211 GB, free: 145.6 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003973/0.7204, allocations: 97.41 kB / 0.6212 GB, free: 145.6 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00106/0.7214, allocations: 108.4 kB / 0.6213 GB, free: 145.6 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000239/0.7217, allocations: 288.8 kB / 0.6216 GB, free: 145.6 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000116/0.7218, allocations: 100.2 kB / 0.6217 GB, free: 145.6 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002492/0.7243, allocations: 1.943 MB / 0.6236 GB, free: 145.3 MB / 490.7 MB Notification: Performance of sort global known variables: time 8e-08/0.7243, allocations: 0 / 0.6236 GB, free: 145.3 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.006801/0.7311, allocations: 1.556 MB / 0.6251 GB, free: 145.3 MB / 490.7 MB 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.0007189/0.7318, allocations: 276 kB / 0.6253 GB, free: 145.2 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.006158/0.738, allocations: 3.959 MB / 0.6292 GB, free: 144.8 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.85e-05/0.738, allocations: 6.25 kB / 0.6292 GB, free: 144.8 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001098/0.7391, allocations: 0.7837 MB / 0.63 GB, free: 144.6 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003558/0.7426, allocations: 0.6809 MB / 0.6306 GB, free: 144.6 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01718/0.7598, allocations: 12.73 MB / 0.6431 GB, free: 138.3 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002548/0.7624, allocations: 1.957 MB / 0.645 GB, free: 138 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.00304/0.7654, allocations: 0.762 MB / 0.6457 GB, free: 137.8 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001531/0.7669, allocations: 0.8942 MB / 0.6466 GB, free: 137.8 MB / 490.7 MB Notification: Performance of SimCode: time 1.704e-06/0.7669, allocations: 0 / 0.6466 GB, free: 137.8 MB / 490.7 MB Notification: Performance of Templates: time 0.06796/0.8349, allocations: 40.41 MB / 0.6861 GB, free: 117 MB / 490.7 MB " [Timeout remaining time 659] make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Forces/Damper2/Damper2.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.1900148475542665]