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.001091/0.001091, allocations: 97.03 kB / 18 MB, free: 5.734 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.001049/0.001049, allocations: 178.3 kB / 18.91 MB, free: 4.871 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.357/1.357, allocations: 223.3 MB / 243 MB, free: 216 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2184/0.2184, allocations: 44.25 MB / 338.3 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004831/0.000483, allocations: 9.219 kB / 411 MB, free: 27.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.128/0.1285, allocations: 61.93 MB / 472.9 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Damper2): time 0.3203/0.4488, allocations: 84.34 MB / 0.5442 GB, free: 3.902 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04194/0.4908, allocations: 16.53 MB / 0.5603 GB, free: 8.816 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02074/0.5116, allocations: 368.3 kB / 0.5607 GB, free: 8.762 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002817/0.5144, allocations: 0.6508 MB / 0.5613 GB, free: 8.246 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007776/0.5222, allocations: 2.43 MB / 0.5637 GB, free: 6.516 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003205/0.5254, allocations: 1.093 MB / 0.5648 GB, free: 5.785 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01356/0.539, allocations: 9.767 MB / 0.5743 GB, free: 12.59 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01497/0.554, allocations: 9.35 MB / 0.5834 GB, free: 3.152 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004139/0.5582, allocations: 1.895 MB / 0.5853 GB, free: 1.25 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005569/0.5638, allocations: 3.387 MB / 0.5886 GB, free: 13.85 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001766/0.5656, allocations: 263.9 kB / 0.5888 GB, free: 13.59 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003421/0.5691, allocations: 1.022 MB / 0.5898 GB, free: 12.57 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004196/0.5733, allocations: 2.941 MB / 0.5927 GB, free: 9.621 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006086/0.5794, allocations: 3.339 MB / 0.596 GB, free: 6.254 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01075/0.5902, allocations: 8.803 MB / 0.6046 GB, free: 13.43 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.463e-06/0.5902, allocations: 4 kB / 0.6046 GB, free: 13.43 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.5902, allocations: 0 / 0.6046 GB, free: 13.43 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004353/0.5907, allocations: 0 / 0.6046 GB, free: 13.43 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.01461/0.6053, allocations: 6.398 MB / 0.6108 GB, free: 6.938 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.863e-05/0.6054, allocations: 12.03 kB / 0.6108 GB, free: 6.926 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01157/0.617, allocations: 2.717 MB / 0.6135 GB, free: 4.195 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007901/0.6249, allocations: 3.685 MB / 0.6171 GB, free: 460 kB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005135/0.6255, allocations: 443.7 kB / 0.6175 GB, free: 16 kB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002122/0.6276, allocations: 0.5621 MB / 0.6181 GB, free: 15.45 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0467/0.6743, allocations: 20.37 MB / 0.638 GB, free: 9.926 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003816/0.6747, allocations: 75.31 kB / 0.638 GB, free: 9.852 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00203/0.6768, allocations: 279.7 kB / 0.6383 GB, free: 9.578 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005863/0.6827, allocations: 3.341 MB / 0.6416 GB, free: 6.23 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0423/0.725, allocations: 16.42 MB / 0.6576 GB, free: 5.789 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5921/1.317, allocations: 65.4 MB / 0.7215 GB, free: 145.6 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01864/1.336, allocations: 6.405 MB / 0.7277 GB, free: 144.9 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003326/1.339, allocations: 2.101 MB / 0.7298 GB, free: 144.9 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01361/1.353, allocations: 9.173 MB / 0.7387 GB, free: 141.4 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01294/1.366, allocations: 4.189 MB / 0.7428 GB, free: 140.8 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=260): time 7.213e-06/1.366, allocations: 0 / 0.7428 GB, free: 140.8 MB / 0.5294 GB Notification: Performance of matching and sorting (n=294): time 0.05687/1.423, allocations: 21.65 MB / 0.764 GB, free: 127.8 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.931e-05/1.423, allocations: 164 kB / 0.7641 GB, free: 127.6 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008788/1.432, allocations: 5.858 MB / 0.7698 GB, free: 121.8 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0004989/1.432, allocations: 72.88 kB / 0.7699 GB, free: 121.7 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003489/1.436, allocations: 5.06 MB / 0.7748 GB, free: 116.6 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001233/1.437, allocations: 1.131 MB / 0.7759 GB, free: 115.5 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001454/1.438, allocations: 0.797 MB / 0.7767 GB, free: 114.7 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.779e-05/1.438, allocations: 302.1 kB / 0.777 GB, free: 114.4 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004341/1.443, allocations: 2.672 MB / 0.7796 GB, free: 111.7 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006604/1.449, allocations: 8.293 MB / 0.7877 GB, free: 100.8 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01188/1.461, allocations: 11.92 MB / 0.7994 GB, free: 86.42 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002269/1.462, allocations: 56 kB / 0.7994 GB, free: 86.36 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1221) (initialization): time 0.01882/1.48, allocations: 10.71 MB / 0.8099 GB, free: 75.64 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002755/1.481, allocations: 117.7 kB / 0.81 GB, free: 75.52 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003265/1.481, allocations: 203.9 kB / 0.8102 GB, free: 75.32 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002664/1.481, allocations: 268.8 kB / 0.8104 GB, free: 75.06 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006987/1.488, allocations: 2.234 MB / 0.8126 GB, free: 72.82 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000346/1.489, allocations: 386.5 kB / 0.813 GB, free: 72.45 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006515/1.495, allocations: 463.5 kB / 0.8134 GB, free: 71.99 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00139/1.497, allocations: 0.5514 MB / 0.814 GB, free: 71.44 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.006018/1.503, allocations: 3.246 MB / 0.8171 GB, free: 68.18 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001072/1.504, allocations: 0.5206 MB / 0.8177 GB, free: 67.66 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005687/1.51, allocations: 3.049 MB / 0.8206 GB, free: 64.59 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-05/1.51, allocations: 43.92 kB / 0.8207 GB, free: 64.55 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.566e-05/1.51, allocations: 0 / 0.8207 GB, free: 64.55 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-05/1.51, allocations: 15.95 kB / 0.8207 GB, free: 64.53 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02157/1.531, allocations: 12.5 MB / 0.8329 GB, free: 51.56 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.367e-05/1.531, allocations: 36.03 kB / 0.8329 GB, free: 51.53 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002206/1.534, allocations: 0.6045 MB / 0.8335 GB, free: 50.92 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.918e-05/1.534, allocations: 44 kB / 0.8336 GB, free: 50.88 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002451/1.534, allocations: 87.98 kB / 0.8336 GB, free: 50.79 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.785e-05/1.534, allocations: 59.8 kB / 0.8337 GB, free: 50.73 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.137e-05/1.534, allocations: 51.75 kB / 0.8337 GB, free: 50.68 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006492/1.541, allocations: 5.477 MB / 0.8391 GB, free: 44.66 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00143/1.542, allocations: 0.5879 MB / 0.8397 GB, free: 44.04 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001035/1.543, allocations: 96.44 kB / 0.8398 GB, free: 43.95 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002517/1.546, allocations: 167.8 kB / 0.8399 GB, free: 43.79 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003283/1.546, allocations: 279.9 kB / 0.8402 GB, free: 43.51 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001804/1.546, allocations: 127.4 kB / 0.8403 GB, free: 43.39 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0058/1.552, allocations: 3.638 MB / 0.8439 GB, free: 39.75 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.5e-07/1.552, allocations: 3.938 kB / 0.8439 GB, free: 39.75 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007375/1.559, allocations: 1.472 MB / 0.8453 GB, free: 38.28 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.0007218/1.56, allocations: 264.5 kB / 0.8456 GB, free: 38.02 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.009764/1.57, allocations: 6.11 MB / 0.8515 GB, free: 31.93 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.286e-05/1.57, allocations: 12 kB / 0.8515 GB, free: 31.91 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002699/1.573, allocations: 1.535 MB / 0.853 GB, free: 30.39 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02836/1.601, allocations: 0.7817 MB / 0.8538 GB, free: 29.61 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02725/1.628, allocations: 19.03 MB / 0.8724 GB, free: 10.12 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007304/1.636, allocations: 4.879 MB / 0.8771 GB, free: 5.219 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001404/1.637, allocations: 455.4 kB / 0.8776 GB, free: 4.773 MB / 0.5294 GB Notification: Performance of SimCode: time 1.102e-06/1.637, allocations: 0 / 0.8776 GB, free: 4.773 MB / 0.5294 GB Notification: Performance of Templates: time 0.3623/1.999, allocations: 84.12 MB / 0.9597 GB, free: 187.1 MB / 0.5763 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Damper2/Damper2.csv","/var/lib/jenkins1/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