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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001004/0.001004, allocations: 80.8 kB / 21.5 MB, free: 2.992 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009425/0.0009425, allocations: 174.3 kB / 24.91 MB, free: 8.77 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9708/0.9708, allocations: 177.1 MB / 205.3 MB, free: 5.125 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2433/0.2433, allocations: 32.81 MB / 294.6 MB, free: 1.207 MB / 266.7 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Forces.Damper2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.294e-06/2.294e-06, allocations: 4 kB / 323.2 MB, free: 9.742 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.566e-05/1.795e-05, allocations: 5.578 kB / 323.2 MB, free: 9.738 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Damper2): time 0.01096/0.01098, allocations: 15.17 MB / 338.4 MB, free: 10.5 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.008656/0.01964, allocations: 5.141 MB / 343.5 MB, free: 5.34 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009197/0.02056, allocations: 111.5 kB / 343.7 MB, free: 5.23 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004804/0.02536, allocations: 5.541 MB / 349.2 MB, free: 15.67 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003984/0.02935, allocations: 2.67 MB / 351.9 MB, free: 12.99 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00184/0.03119, allocations: 1.322 MB / 353.2 MB, free: 11.66 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.006005/0.03719, allocations: 7.757 MB / 360.9 MB, free: 3.898 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003991/0.04118, allocations: 6.129 MB / 367.1 MB, free: 13.66 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003182/0.04436, allocations: 4.124 MB / 371.2 MB, free: 9.523 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002782/0.04714, allocations: 3.835 MB / 375 MB, free: 5.68 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004947/0.04764, allocations: 0.5742 MB / 375.6 MB, free: 5.105 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001372/0.04901, allocations: 1.233 MB / 376.8 MB, free: 3.871 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001944/0.05095, allocations: 3.452 MB / 380.3 MB, free: 420 kB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001454/0.05241, allocations: 2.193 MB / 382.5 MB, free: 14.21 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004557/0.05697, allocations: 7.173 MB / 389.7 MB, free: 7.012 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.05697, allocations: 0 / 389.7 MB, free: 7.012 MB / 362.7 MB Notification: Performance of FrontEnd: time 6.52e-07/0.05697, allocations: 0 / 389.7 MB, free: 7.012 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.304e-05/0.05702, allocations: 4 kB / 389.7 MB, free: 7.008 MB / 362.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.006064/0.06309, allocations: 7.19 MB / 396.9 MB, free: 15.74 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.269e-05/0.06312, allocations: 8.031 kB / 396.9 MB, free: 15.73 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003735/0.06686, allocations: 1.753 MB / 398.6 MB, free: 13.98 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00271/0.06957, allocations: 2.753 MB / 401.4 MB, free: 11.17 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001932/0.06976, allocations: 423.3 kB / 401.8 MB, free: 10.75 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005402/0.0703, allocations: 0.5586 MB / 402.3 MB, free: 10.2 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01358/0.08388, allocations: 8.851 MB / 411.2 MB, free: 188 kB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001618/0.08404, allocations: 71.39 kB / 411.3 MB, free: 116 kB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006487/0.08469, allocations: 263.8 kB / 411.5 MB, free: 15.85 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002364/0.08705, allocations: 2.791 MB / 414.3 MB, free: 13.06 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00987/0.09692, allocations: 4.507 MB / 418.8 MB, free: 8.508 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3172/0.4142, allocations: 49.95 MB / 468.8 MB, free: 71.99 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00686/0.421, allocations: 3.319 MB / 472.1 MB, free: 71.75 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001086/0.4221, allocations: 0.6618 MB / 472.7 MB, free: 71.71 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007872/0.43, allocations: 5.066 MB / 477.8 MB, free: 70.78 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005632/0.4356, allocations: 2.779 MB / 480.6 MB, free: 70.5 MB / 410.8 MB Notification: Performance of pre-optimization done (n=260): time 5.28e-06/0.4356, allocations: 0 / 480.6 MB, free: 70.5 MB / 410.8 MB Notification: Performance of matching and sorting (n=294): time 0.02278/0.4584, allocations: 10.36 MB / 491 MB, free: 62.96 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.173e-05/0.4585, allocations: 158.5 kB / 491.1 MB, free: 62.78 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003707/0.4622, allocations: 4.476 MB / 495.6 MB, free: 59.29 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0003568/0.4625, allocations: 69.7 kB / 495.7 MB, free: 59.22 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002232/0.4648, allocations: 4.81 MB / 0.4887 GB, free: 54.39 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008588/0.4656, allocations: 1.159 MB / 0.4899 GB, free: 53.22 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001326/0.4669, allocations: 1.764 MB / 0.4916 GB, free: 51.45 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 2.931e-05/0.467, allocations: 308.1 kB / 0.4919 GB, free: 51.14 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00162/0.4686, allocations: 1.115 MB / 0.493 GB, free: 50.02 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00304/0.4716, allocations: 6.611 MB / 0.4994 GB, free: 40.7 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005902/0.4775, allocations: 8.592 MB / 0.5078 GB, free: 29.78 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001785/0.4777, allocations: 56 kB / 0.5079 GB, free: 29.72 MB / 410.8 MB Notification: Performance of matching and sorting (n=1230) (initialization): time 0.009588/0.4873, allocations: 6.197 MB / 0.5139 GB, free: 23.5 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001111/0.4874, allocations: 117.7 kB / 0.514 GB, free: 23.38 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001723/0.4876, allocations: 203.9 kB / 0.5142 GB, free: 23.18 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000136/0.4877, allocations: 271.9 kB / 0.5145 GB, free: 22.91 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003986/0.4917, allocations: 2.2 MB / 0.5166 GB, free: 20.71 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001397/0.4918, allocations: 398.5 kB / 0.517 GB, free: 20.32 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004726/0.4966, allocations: 431.6 kB / 0.5174 GB, free: 19.89 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007319/0.4973, allocations: 484 kB / 0.5179 GB, free: 19.42 MB / 410.8 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.002156/0.4995, allocations: 0.9047 MB / 0.5188 GB, free: 18.51 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006476/0.5001, allocations: 339.6 kB / 0.5191 GB, free: 18.18 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00144/0.5016, allocations: 1.334 MB / 0.5204 GB, free: 16.83 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.383e-05/0.5016, allocations: 31.94 kB / 0.5204 GB, free: 16.8 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.5016, allocations: 4 kB / 0.5204 GB, free: 16.79 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.489e-05/0.5016, allocations: 19.94 kB / 0.5205 GB, free: 16.77 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009388/0.511, allocations: 7.679 MB / 0.5279 GB, free: 8.5 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-05/0.511, allocations: 32 kB / 0.528 GB, free: 8.469 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001073/0.5121, allocations: 0.5389 MB / 0.5285 GB, free: 7.93 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-05/0.5121, allocations: 44 kB / 0.5285 GB, free: 7.887 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001033/0.5122, allocations: 91.98 kB / 0.5286 GB, free: 7.797 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.428e-05/0.5122, allocations: 69.56 kB / 0.5287 GB, free: 7.734 MB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.58e-05/0.5122, allocations: 51.75 kB / 0.5288 GB, free: 7.684 MB / 410.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002474/0.5147, allocations: 3.101 MB / 0.5318 GB, free: 3.93 MB / 410.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001104/0.5158, allocations: 484.5 kB / 0.5322 GB, free: 3.453 MB / 410.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005405/0.5164, allocations: 95.97 kB / 0.5323 GB, free: 3.359 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001165/0.5175, allocations: 108 kB / 0.5324 GB, free: 3.254 MB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000308/0.5178, allocations: 287.8 kB / 0.5327 GB, free: 2.973 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001451/0.518, allocations: 104 kB / 0.5328 GB, free: 2.871 MB / 410.8 MB Notification: Performance of sorting global known variables: time 0.002282/0.5203, allocations: 1.848 MB / 0.5346 GB, free: 1.031 MB / 410.8 MB Notification: Performance of sort global known variables: time 2e-07/0.5203, allocations: 0 / 0.5346 GB, free: 1.031 MB / 410.8 MB Notification: Performance of remove unused functions: time 0.007323/0.5276, allocations: 1.555 MB / 0.5361 GB, free: 15.47 MB / 426.8 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.0006802/0.5283, allocations: 263.3 kB / 0.5364 GB, free: 15.21 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.005981/0.5343, allocations: 3.708 MB / 0.54 GB, free: 11.5 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 0.0004287/0.5347, allocations: 124.2 kB / 0.5401 GB, free: 11.37 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001151/0.5358, allocations: 0.7132 MB / 0.5408 GB, free: 10.66 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004201/0.54, allocations: 0.6921 MB / 0.5415 GB, free: 10.01 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02037/0.5604, allocations: 12.62 MB / 0.5538 GB, free: 12.85 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002598/0.563, allocations: 1.943 MB / 0.5557 GB, free: 10.88 MB / 442.8 MB Notification: Performance of simCode: alias equations: time 0.00271/0.5657, allocations: 0.7667 MB / 0.5565 GB, free: 10.11 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001618/0.5673, allocations: 0.8331 MB / 0.5573 GB, free: 9.281 MB / 442.8 MB Notification: Performance of SimCode: time 1.743e-06/0.5673, allocations: 0 / 0.5573 GB, free: 9.281 MB / 442.8 MB Notification: Performance of Templates: time 0.07357/0.6409, allocations: 40.2 MB / 0.5965 GB, free: 1.574 MB / 474.8 MB " [Timeout remaining time 659] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Damper2.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Damper2.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.6568410960026085]