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.00118/0.00118, allocations: 114 kB / 17.33 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001553/0.001553, allocations: 205.8 kB / 18.27 MB, free: 5.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.398/1.398, allocations: 227.4 MB / 246.4 MB, free: 10.78 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2444/0.2444, allocations: 46.1 MB / 343.8 MB, free: 11.75 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001362/0.001362, allocations: 79.75 kB / 417 MB, free: 20.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1367/0.1381, allocations: 62.44 MB / 479.5 MB, free: 5.617 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Damper2): time 0.3699/0.508, allocations: 75.1 MB / 0.5416 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04106/0.5491, allocations: 14.45 MB / 0.5557 GB, free: 6.504 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02114/0.5703, allocations: 322 kB / 0.556 GB, free: 6.457 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01061/0.5809, allocations: 4.978 MB / 0.5609 GB, free: 3.211 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009014/0.59, allocations: 2.297 MB / 0.5631 GB, free: 1.59 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004008/0.594, allocations: 1.104 MB / 0.5642 GB, free: 496 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01136/0.6054, allocations: 6.744 MB / 0.5708 GB, free: 9.73 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01096/0.6164, allocations: 6.719 MB / 0.5773 GB, free: 2.961 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005666/0.6221, allocations: 2.633 MB / 0.5799 GB, free: 328 kB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007215/0.6294, allocations: 4.055 MB / 0.5839 GB, free: 12.25 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002663/0.6321, allocations: 0.5742 MB / 0.5844 GB, free: 11.68 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004409/0.6365, allocations: 1.288 MB / 0.5857 GB, free: 10.39 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005087/0.6416, allocations: 3.265 MB / 0.5889 GB, free: 7.117 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007203/0.6488, allocations: 3.705 MB / 0.5925 GB, free: 3.391 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01675/0.6656, allocations: 10.8 MB / 0.603 GB, free: 8.559 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.644e-06/0.6657, allocations: 0 / 0.603 GB, free: 8.559 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.6657, allocations: 0 / 0.603 GB, free: 8.559 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005123/0.6662, allocations: 0 / 0.603 GB, free: 8.559 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.02314/0.6893, allocations: 7.66 MB / 0.6105 GB, free: 0.8125 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.726e-05/0.6894, allocations: 16.02 kB / 0.6105 GB, free: 0.7969 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01156/0.701, allocations: 2.585 MB / 0.6131 GB, free: 14.2 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00805/0.7091, allocations: 3.537 MB / 0.6165 GB, free: 10.6 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000469/0.7096, allocations: 431.5 kB / 0.6169 GB, free: 10.18 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002131/0.7117, allocations: 0.5581 MB / 0.6175 GB, free: 9.617 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04437/0.7561, allocations: 19.78 MB / 0.6368 GB, free: 4.707 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003536/0.7565, allocations: 75.33 kB / 0.6368 GB, free: 4.633 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002102/0.7587, allocations: 267.8 kB / 0.6371 GB, free: 4.371 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005249/0.7639, allocations: 3.146 MB / 0.6402 GB, free: 1.223 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03931/0.8033, allocations: 15.92 MB / 0.6557 GB, free: 1.277 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5612/1.365, allocations: 64.07 MB / 0.7183 GB, free: 181.5 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01833/1.383, allocations: 6.398 MB / 0.7245 GB, free: 180.8 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003377/1.386, allocations: 2.081 MB / 0.7266 GB, free: 180.8 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01455/1.401, allocations: 9.227 MB / 0.7356 GB, free: 177.8 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01402/1.415, allocations: 4.193 MB / 0.7397 GB, free: 177.1 MB / 0.545 GB Notification: Performance of pre-optimization done (n=260): time 5.591e-06/1.415, allocations: 2.469 kB / 0.7397 GB, free: 177.1 MB / 0.545 GB Notification: Performance of matching and sorting (n=294): time 0.0512/1.466, allocations: 21.58 MB / 0.7608 GB, free: 168.4 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.679e-05/1.466, allocations: 160.1 kB / 0.7609 GB, free: 168.2 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005786/1.472, allocations: 5.77 MB / 0.7665 GB, free: 165.3 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0003965/1.473, allocations: 77.55 kB / 0.7666 GB, free: 165.2 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002534/1.475, allocations: 4.919 MB / 0.7714 GB, free: 161 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008575/1.476, allocations: 1.135 MB / 0.7725 GB, free: 160.1 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001612/1.478, allocations: 1.818 MB / 0.7743 GB, free: 158.3 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.332e-05/1.478, allocations: 303.1 kB / 0.7746 GB, free: 158 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003494/1.481, allocations: 2.679 MB / 0.7772 GB, free: 155.3 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005249/1.486, allocations: 8.248 MB / 0.7853 GB, free: 144.5 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009723/1.496, allocations: 11.85 MB / 0.7968 GB, free: 130.1 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.635e-05/1.496, allocations: 56 kB / 0.7969 GB, free: 130.1 MB / 0.545 GB Notification: Performance of matching and sorting (n=1212) (initialization): time 0.01544/1.512, allocations: 10.65 MB / 0.8073 GB, free: 119.4 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.000113/1.512, allocations: 122.1 kB / 0.8074 GB, free: 119.3 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000162/1.512, allocations: 196 kB / 0.8076 GB, free: 119.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000186/1.512, allocations: 260 kB / 0.8078 GB, free: 118.8 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005828/1.518, allocations: 2.227 MB / 0.81 GB, free: 116.6 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001972/1.518, allocations: 386.5 kB / 0.8104 GB, free: 116.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005679/1.524, allocations: 475.4 kB / 0.8108 GB, free: 115.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008119/1.525, allocations: 0.5466 MB / 0.8114 GB, free: 115.2 MB / 0.545 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.004076/1.529, allocations: 3.152 MB / 0.8145 GB, free: 112 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007006/1.53, allocations: 0.5206 MB / 0.815 GB, free: 111.5 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004523/1.534, allocations: 3.054 MB / 0.8179 GB, free: 108.4 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.668e-05/1.534, allocations: 32 kB / 0.818 GB, free: 108.4 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.067e-05/1.534, allocations: 4 kB / 0.818 GB, free: 108.4 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.186e-05/1.534, allocations: 15.94 kB / 0.818 GB, free: 108.4 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01549/1.55, allocations: 12.27 MB / 0.83 GB, free: 95.64 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.854e-05/1.55, allocations: 32 kB / 0.83 GB, free: 95.61 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002046/1.552, allocations: 0.5936 MB / 0.8306 GB, free: 95.02 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.893e-05/1.552, allocations: 44 kB / 0.8306 GB, free: 94.97 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001322/1.552, allocations: 95.58 kB / 0.8307 GB, free: 94.88 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.838e-05/1.552, allocations: 67.72 kB / 0.8308 GB, free: 94.82 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.67e-05/1.552, allocations: 47.81 kB / 0.8308 GB, free: 94.77 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005676/1.558, allocations: 5.5 MB / 0.8362 GB, free: 88.72 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009493/1.559, allocations: 0.5841 MB / 0.8368 GB, free: 88.11 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004925/1.559, allocations: 91.97 kB / 0.8369 GB, free: 88.02 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001771/1.561, allocations: 151.9 kB / 0.837 GB, free: 87.88 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000277/1.561, allocations: 283.9 kB / 0.8373 GB, free: 87.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001376/1.561, allocations: 124 kB / 0.8374 GB, free: 87.48 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004195/1.566, allocations: 3.585 MB / 0.8409 GB, free: 83.92 MB / 0.545 GB Notification: Performance of sort global known variables: time 2e-07/1.566, allocations: 0 / 0.8409 GB, free: 83.92 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00646/1.572, allocations: 1.417 MB / 0.8423 GB, free: 82.51 MB / 0.545 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.0006002/1.573, allocations: 268.5 kB / 0.8425 GB, free: 82.25 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0103/1.583, allocations: 6.711 MB / 0.8491 GB, free: 75.59 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.982e-05/1.583, allocations: 8 kB / 0.8491 GB, free: 75.58 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00261/1.586, allocations: 1.638 MB / 0.8507 GB, free: 73.95 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004216/1.59, allocations: 0.767 MB / 0.8514 GB, free: 73.22 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02205/1.612, allocations: 17.72 MB / 0.8687 GB, free: 55.06 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005347/1.617, allocations: 4.768 MB / 0.8734 GB, free: 50.26 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006355/1.624, allocations: 2.575 MB / 0.8759 GB, free: 47.68 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001141/1.625, allocations: 383.4 kB / 0.8763 GB, free: 47.3 MB / 0.545 GB Notification: Performance of SimCode: time 1.172e-06/1.625, allocations: 0 / 0.8763 GB, free: 47.3 MB / 0.545 GB Notification: Performance of Templates: time 0.3654/1.99, allocations: 47.21 MB / 0.9224 GB, free: 173.8 MB / 0.545 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