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.001265/0.001265, allocations: 91.05 kB / 17.35 MB, free: 6.375 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.001603/0.001603, allocations: 178.1 kB / 18.25 MB, free: 5.52 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.442/1.442, allocations: 223.3 MB / 242.3 MB, free: 224 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.2327/0.2327, allocations: 44.25 MB / 337.7 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003206/0.0003207, allocations: 8 kB / 410.3 MB, free: 27.33 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1265/0.1268, allocations: 61.93 MB / 472.3 MB, free: 13.37 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Damper2): time 0.3762/0.5031, allocations: 84.34 MB / 0.5436 GB, free: 3.922 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.05302/0.5562, allocations: 16.53 MB / 0.5597 GB, free: 8.82 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02447/0.5807, allocations: 363.9 kB / 0.56 GB, free: 8.77 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00304/0.5838, allocations: 0.6519 MB / 0.5607 GB, free: 8.254 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007472/0.5913, allocations: 2.431 MB / 0.5631 GB, free: 6.52 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002908/0.5942, allocations: 1.09 MB / 0.5641 GB, free: 5.793 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01454/0.6088, allocations: 9.763 MB / 0.5737 GB, free: 12.62 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01606/0.6249, allocations: 9.36 MB / 0.5828 GB, free: 3.176 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005392/0.6303, allocations: 1.891 MB / 0.5846 GB, free: 1.277 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006974/0.6373, allocations: 3.399 MB / 0.588 GB, free: 13.87 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002032/0.6394, allocations: 256 kB / 0.5882 GB, free: 13.62 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004049/0.6435, allocations: 1.022 MB / 0.5892 GB, free: 12.59 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00432/0.6478, allocations: 2.941 MB / 0.5921 GB, free: 9.645 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00456/0.6524, allocations: 3.339 MB / 0.5953 GB, free: 6.277 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01306/0.6655, allocations: 10.64 MB / 0.6057 GB, free: 11.6 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.013e-06/0.6655, allocations: 0 / 0.6057 GB, free: 11.6 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.454e-06/0.6656, allocations: 3.938 kB / 0.6057 GB, free: 11.59 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.000376/0.6659, allocations: 0 / 0.6057 GB, free: 11.59 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.01484/0.6808, allocations: 6.404 MB / 0.612 GB, free: 5.105 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.008e-05/0.6809, allocations: 12.03 kB / 0.612 GB, free: 5.094 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01133/0.6922, allocations: 2.713 MB / 0.6146 GB, free: 2.367 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008119/0.7003, allocations: 3.682 MB / 0.6182 GB, free: 14.62 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003916/0.7008, allocations: 447.5 kB / 0.6187 GB, free: 14.19 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001654/0.7024, allocations: 0.5621 MB / 0.6192 GB, free: 13.62 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04185/0.7443, allocations: 20.37 MB / 0.6391 GB, free: 8.098 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001843/0.7445, allocations: 71.25 kB / 0.6392 GB, free: 8.027 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007313/0.7453, allocations: 275.8 kB / 0.6394 GB, free: 7.758 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005328/0.7506, allocations: 3.333 MB / 0.6427 GB, free: 4.418 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04069/0.7913, allocations: 16.43 MB / 0.6587 GB, free: 3.969 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4235/1.215, allocations: 65.4 MB / 0.7226 GB, free: 147.2 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01868/1.234, allocations: 6.403 MB / 0.7289 GB, free: 146.5 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003946/1.238, allocations: 2.098 MB / 0.7309 GB, free: 146.5 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01599/1.254, allocations: 9.177 MB / 0.7399 GB, free: 142.8 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01379/1.267, allocations: 4.189 MB / 0.744 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=260): time 5.15e-06/1.268, allocations: 0 / 0.744 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of matching and sorting (n=294): time 0.056/1.324, allocations: 21.65 MB / 0.7651 GB, free: 129 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.598e-05/1.324, allocations: 165.4 kB / 0.7653 GB, free: 128.8 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007817/1.331, allocations: 5.854 MB / 0.771 GB, free: 122.9 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0006066/1.332, allocations: 77.69 kB / 0.7711 GB, free: 122.8 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003955/1.336, allocations: 5.053 MB / 0.776 GB, free: 117.8 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001323/1.337, allocations: 1.138 MB / 0.7771 GB, free: 116.6 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00077/1.338, allocations: 0.7961 MB / 0.7779 GB, free: 115.8 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.573e-05/1.338, allocations: 301.1 kB / 0.7782 GB, free: 115.5 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003881/1.342, allocations: 2.672 MB / 0.7808 GB, free: 112.9 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006168/1.348, allocations: 8.296 MB / 0.7889 GB, free: 102 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0114/1.36, allocations: 11.92 MB / 0.8005 GB, free: 87.54 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002127/1.36, allocations: 60 kB / 0.8006 GB, free: 87.48 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1221) (initialization): time 0.01864/1.379, allocations: 10.71 MB / 0.811 GB, free: 76.76 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001222/1.379, allocations: 125.6 kB / 0.8111 GB, free: 76.63 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001725/1.379, allocations: 196 kB / 0.8113 GB, free: 76.44 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001803/1.379, allocations: 264 kB / 0.8116 GB, free: 76.18 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006679/1.386, allocations: 2.236 MB / 0.8138 GB, free: 73.95 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002359/1.386, allocations: 387.2 kB / 0.8141 GB, free: 73.57 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007375/1.394, allocations: 475.3 kB / 0.8146 GB, free: 73.1 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001285/1.395, allocations: 0.5508 MB / 0.8151 GB, free: 72.55 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.006635/1.401, allocations: 3.237 MB / 0.8183 GB, free: 69.3 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001389/1.403, allocations: 0.5167 MB / 0.8188 GB, free: 68.77 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005436/1.408, allocations: 3.066 MB / 0.8218 GB, free: 65.69 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.733e-05/1.408, allocations: 32 kB / 0.8218 GB, free: 65.66 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.578e-05/1.408, allocations: 4 kB / 0.8218 GB, free: 65.65 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.813e-05/1.408, allocations: 11.95 kB / 0.8218 GB, free: 65.64 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01916/1.428, allocations: 12.5 MB / 0.834 GB, free: 52.67 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.403e-05/1.428, allocations: 32 kB / 0.8341 GB, free: 52.64 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002052/1.43, allocations: 0.6089 MB / 0.8347 GB, free: 52.03 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.372e-05/1.43, allocations: 44 kB / 0.8347 GB, free: 51.99 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000132/1.43, allocations: 87.98 kB / 0.8348 GB, free: 51.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.338e-05/1.43, allocations: 67.73 kB / 0.8349 GB, free: 51.84 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.17e-05/1.43, allocations: 43.81 kB / 0.8349 GB, free: 51.79 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00599/1.436, allocations: 5.481 MB / 0.8403 GB, free: 45.76 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001507/1.438, allocations: 0.5956 MB / 0.8408 GB, free: 45.14 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005155/1.438, allocations: 91.97 kB / 0.8409 GB, free: 45.05 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001794/1.44, allocations: 159.9 kB / 0.8411 GB, free: 44.89 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003285/1.44, allocations: 279.9 kB / 0.8413 GB, free: 44.62 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000142/1.44, allocations: 126.3 kB / 0.8415 GB, free: 44.5 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004692/1.445, allocations: 3.642 MB / 0.845 GB, free: 40.86 MB / 0.5294 GB Notification: Performance of sort global known variables: time 5.31e-07/1.445, allocations: 0 / 0.845 GB, free: 40.86 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008591/1.454, allocations: 1.47 MB / 0.8465 GB, free: 39.39 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.0005813/1.454, allocations: 278.3 kB / 0.8467 GB, free: 39.12 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.009582/1.464, allocations: 6.11 MB / 0.8527 GB, free: 33.03 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.211e-05/1.464, allocations: 4 kB / 0.8527 GB, free: 33.02 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002991/1.467, allocations: 1.66 MB / 0.8543 GB, free: 31.37 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02743/1.494, allocations: 0.775 MB / 0.8551 GB, free: 30.6 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0253/1.52, allocations: 18.31 MB / 0.873 GB, free: 11.82 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005098/1.525, allocations: 4.891 MB / 0.8777 GB, free: 6.91 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.006407/1.531, allocations: 2.603 MB / 0.8803 GB, free: 4.297 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001013/1.532, allocations: 395.4 kB / 0.8806 GB, free: 3.91 MB / 0.5294 GB Notification: Performance of SimCode: time 6.61e-07/1.532, allocations: 0 / 0.8806 GB, free: 3.91 MB / 0.5294 GB Notification: Performance of Templates: time 0.09197/1.624, allocations: 46.18 MB / 0.9258 GB, free: 5.973 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/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