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.0.0+maint.om/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001337/0.001337, allocations: 107 kB / 17.33 MB, free: 6.023 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001322/0.001322, allocations: 193.3 kB / 18.25 MB, free: 5.117 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.427/1.427, allocations: 222.9 MB / 241.9 MB, free: 15.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2434/0.2434, allocations: 44.18 MB / 336.2 MB, free: 2.93 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 59.56 kB / 407.9 MB, free: 27.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.1111, allocations: 60.82 MB / 468.7 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Damper2): time 0.2707/0.3819, allocations: 86.39 MB / 0.5421 GB, free: 2.66 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03495/0.4169, allocations: 16.5 MB / 0.5582 GB, free: 7.133 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01502/0.432, allocations: 367 kB / 0.5586 GB, free: 7.078 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009439/0.4415, allocations: 5.018 MB / 0.5635 GB, free: 3.594 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007674/0.4492, allocations: 2.39 MB / 0.5658 GB, free: 1.195 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002638/0.4519, allocations: 1.104 MB / 0.5669 GB, free: 92 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.009205/0.4611, allocations: 6.727 MB / 0.5734 GB, free: 9.352 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007633/0.4687, allocations: 6.781 MB / 0.5801 GB, free: 2.516 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004788/0.4736, allocations: 2.691 MB / 0.5827 GB, free: 15.82 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005601/0.4792, allocations: 4.125 MB / 0.5867 GB, free: 11.68 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001729/0.4809, allocations: 0.5898 MB / 0.5873 GB, free: 11.09 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003443/0.4844, allocations: 1.315 MB / 0.5886 GB, free: 9.773 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003777/0.4882, allocations: 3.374 MB / 0.5919 GB, free: 6.391 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004865/0.4931, allocations: 3.83 MB / 0.5956 GB, free: 2.539 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01144/0.5045, allocations: 11.19 MB / 0.6065 GB, free: 7.312 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.625e-06/0.5046, allocations: 7.938 kB / 0.6065 GB, free: 7.305 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.5046, allocations: 4 kB / 0.6065 GB, free: 7.301 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003529/0.5049, allocations: 0 / 0.6065 GB, free: 7.301 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: 2609 * Number of variables: 2609 Notification: Performance of Generate backend data structure: time 0.01587/0.5208, allocations: 7.88 MB / 0.6142 GB, free: 15.32 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.365e-05/0.5209, allocations: 11.97 kB / 0.6143 GB, free: 15.31 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01046/0.5314, allocations: 2.666 MB / 0.6169 GB, free: 12.63 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007417/0.5388, allocations: 3.685 MB / 0.6205 GB, free: 8.887 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003812/0.5392, allocations: 435.7 kB / 0.6209 GB, free: 8.461 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002102/0.5413, allocations: 0.566 MB / 0.6214 GB, free: 7.895 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04027/0.5816, allocations: 20.31 MB / 0.6413 GB, free: 2.43 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001833/0.5818, allocations: 75.3 kB / 0.6413 GB, free: 2.355 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007496/0.5826, allocations: 275.8 kB / 0.6416 GB, free: 2.086 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004747/0.5874, allocations: 3.333 MB / 0.6448 GB, free: 14.75 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03678/0.6241, allocations: 16.35 MB / 0.6608 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4819/1.106, allocations: 65.39 MB / 0.7247 GB, free: 147.1 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01702/1.123, allocations: 6.357 MB / 0.7309 GB, free: 146.5 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003108/1.126, allocations: 2.083 MB / 0.7329 GB, free: 146.4 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01312/1.139, allocations: 9.171 MB / 0.7419 GB, free: 141.9 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01282/1.152, allocations: 4.151 MB / 0.7459 GB, free: 141.1 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=260): time 5.971e-06/1.152, allocations: 0 / 0.7459 GB, free: 141.1 MB / 0.5294 GB Notification: Performance of matching and sorting (n=294): time 0.05187/1.204, allocations: 21.53 MB / 0.7669 GB, free: 127.2 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.519e-05/1.204, allocations: 158.5 kB / 0.7671 GB, free: 127 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005999/1.21, allocations: 5.854 MB / 0.7728 GB, free: 121.1 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0003195/1.211, allocations: 72.2 kB / 0.7729 GB, free: 121 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002579/1.213, allocations: 5.058 MB / 0.7778 GB, free: 116 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007655/1.214, allocations: 1.135 MB / 0.7789 GB, free: 114.9 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001667/1.216, allocations: 1.837 MB / 0.7807 GB, free: 113 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 3.729e-05/1.216, allocations: 301.1 kB / 0.781 GB, free: 112.7 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003378/1.219, allocations: 2.664 MB / 0.7836 GB, free: 110 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005034/1.224, allocations: 8.283 MB / 0.7917 GB, free: 99.14 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009434/1.234, allocations: 11.9 MB / 0.8033 GB, free: 84.67 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000121/1.234, allocations: 56 kB / 0.8034 GB, free: 84.62 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1221) (initialization): time 0.01724/1.251, allocations: 10.69 MB / 0.8138 GB, free: 73.92 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001195/1.251, allocations: 121.7 kB / 0.8139 GB, free: 73.79 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001821/1.251, allocations: 196 kB / 0.8141 GB, free: 73.6 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001681/1.252, allocations: 264 kB / 0.8144 GB, free: 73.34 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006208/1.258, allocations: 2.231 MB / 0.8165 GB, free: 71.11 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002012/1.258, allocations: 390.5 kB / 0.8169 GB, free: 70.73 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005632/1.264, allocations: 459.5 kB / 0.8174 GB, free: 70.28 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008287/1.264, allocations: 0.5469 MB / 0.8179 GB, free: 69.73 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 904 * Number of states: 0 () * Number of discrete variables: 83 (trapezoid.count,$PRE.trapezoid.count,trapezoid.T_start,$PRE.trapezoid.T_start,$whenCondition1,force2.forceArrow.arrowLine.twoHeadedArrow,force2.forceArrow.headAtOrigin,force1.forceArrow.arrowLine.twoHeadedArrow,force1.forceArrow.headAtOrigin,force.forceArrow.arrowLine.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 (1196): * Single equations (assignments): 1192 * 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.003927/1.268, allocations: 3.252 MB / 0.8211 GB, free: 66.46 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006037/1.269, allocations: 0.5207 MB / 0.8216 GB, free: 65.94 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00416/1.273, allocations: 3.031 MB / 0.8245 GB, free: 62.89 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.86e-05/1.273, allocations: 31.2 kB / 0.8246 GB, free: 62.86 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.688e-06/1.273, allocations: 11.94 kB / 0.8246 GB, free: 62.85 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.135e-05/1.273, allocations: 11.95 kB / 0.8246 GB, free: 62.84 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01645/1.29, allocations: 12.43 MB / 0.8367 GB, free: 49.93 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.278e-05/1.29, allocations: 32 kB / 0.8368 GB, free: 49.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00203/1.292, allocations: 0.5771 MB / 0.8373 GB, free: 49.32 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.046e-05/1.292, allocations: 44.25 kB / 0.8374 GB, free: 49.28 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001461/1.292, allocations: 92.88 kB / 0.8375 GB, free: 49.19 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.988e-05/1.292, allocations: 71.72 kB / 0.8375 GB, free: 49.12 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.805e-05/1.292, allocations: 47.81 kB / 0.8376 GB, free: 49.07 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005483/1.298, allocations: 5.439 MB / 0.8429 GB, free: 43.08 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001208/1.299, allocations: 0.5878 MB / 0.8435 GB, free: 42.47 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005603/1.299, allocations: 91.98 kB / 0.8435 GB, free: 42.38 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00183/1.301, allocations: 147.8 kB / 0.8437 GB, free: 42.24 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002954/1.301, allocations: 283.9 kB / 0.844 GB, free: 41.96 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001434/1.302, allocations: 124 kB / 0.8441 GB, free: 41.84 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00458/1.306, allocations: 3.642 MB / 0.8476 GB, free: 38.2 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.4e-07/1.306, allocations: 0 / 0.8476 GB, free: 38.2 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007249/1.314, allocations: 1.475 MB / 0.8491 GB, free: 36.73 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.0005284/1.314, allocations: 266.9 kB / 0.8493 GB, free: 36.47 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.00954/1.324, allocations: 6.698 MB / 0.8559 GB, free: 29.82 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.929e-05/1.324, allocations: 8 kB / 0.8559 GB, free: 29.81 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002601/1.326, allocations: 1.638 MB / 0.8575 GB, free: 28.18 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004206/1.33, allocations: 0.8031 MB / 0.8583 GB, free: 27.39 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0192/1.35, allocations: 18.15 MB / 0.876 GB, free: 8.797 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004437/1.354, allocations: 4.89 MB / 0.8808 GB, free: 3.883 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005865/1.36, allocations: 2.611 MB / 0.8833 GB, free: 1.262 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008554/1.361, allocations: 387.4 kB / 0.8837 GB, free: 0.8828 MB / 0.5294 GB Notification: Performance of SimCode: time 7.71e-07/1.361, allocations: 0 / 0.8837 GB, free: 0.8828 MB / 0.5294 GB Notification: Performance of Templates: time 0.2916/1.653, allocations: 48.36 MB / 0.9309 GB, free: 191.2 MB / 0.5607 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/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_4.0.0_ModelicaTest.MultiBody.Forces.Damper2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches