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.00157/0.001569, allocations: 109.5 kB / 17.78 MB, free: 5.289 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.001821/0.001821, allocations: 188.8 kB / 18.71 MB, free: 4.371 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.561/1.561, allocations: 222.9 MB / 242.4 MB, free: 15.16 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.2311/0.2311, allocations: 44.19 MB / 336.7 MB, free: 2.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 63.91 kB / 470.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4479/0.4492, allocations: 60.83 MB / 0.5189 GB, free: 3.613 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Damper2): time 0.02131/0.4705, allocations: 16.45 MB / 0.535 GB, free: 7.602 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01711/0.4877, allocations: 5.064 MB / 0.5399 GB, free: 3.605 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006101/0.4939, allocations: 100.5 kB / 0.54 GB, free: 3.59 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01192/0.5058, allocations: 5.206 MB / 0.5451 GB, free: 104 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01111/0.5171, allocations: 2.573 MB / 0.5476 GB, free: 14.22 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00408/0.5212, allocations: 1.189 MB / 0.5488 GB, free: 13.41 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01381/0.5351, allocations: 6.733 MB / 0.5554 GB, free: 6.672 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009722/0.5449, allocations: 6.404 MB / 0.5616 GB, free: 192 kB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006342/0.5513, allocations: 2.66 MB / 0.5642 GB, free: 13.52 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008064/0.5594, allocations: 3.754 MB / 0.5679 GB, free: 9.75 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003685/0.5631, allocations: 0.5859 MB / 0.5685 GB, free: 9.164 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005412/0.5686, allocations: 1.303 MB / 0.5697 GB, free: 7.863 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005717/0.5743, allocations: 3.351 MB / 0.573 GB, free: 4.504 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009488/0.5839, allocations: 3.795 MB / 0.5767 GB, free: 0.6875 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0181/0.602, allocations: 11.53 MB / 0.588 GB, free: 5.121 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.584e-06/0.6021, allocations: 7.938 kB / 0.588 GB, free: 5.113 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.6021, allocations: 0 / 0.588 GB, free: 5.113 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.000532/0.6026, allocations: 0 / 0.588 GB, free: 5.113 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.0229/0.6255, allocations: 7.883 MB / 0.5957 GB, free: 13.13 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.841e-05/0.6256, allocations: 8.031 kB / 0.5957 GB, free: 13.12 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01181/0.6374, allocations: 2.662 MB / 0.5983 GB, free: 10.45 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0103/0.6477, allocations: 3.752 MB / 0.6019 GB, free: 6.637 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006349/0.6484, allocations: 439.5 kB / 0.6024 GB, free: 6.207 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003231/0.6517, allocations: 0.5698 MB / 0.6029 GB, free: 5.637 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04821/0.6999, allocations: 20.3 MB / 0.6227 GB, free: 184 kB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000406/0.7004, allocations: 71.34 kB / 0.6228 GB, free: 112 kB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002344/0.7027, allocations: 275.8 kB / 0.6231 GB, free: 15.84 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005706/0.7085, allocations: 3.333 MB / 0.6263 GB, free: 12.5 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04104/0.7495, allocations: 16.35 MB / 0.6423 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1089/0.8585, allocations: 65.07 MB / 0.7058 GB, free: 9.34 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01798/0.8765, allocations: 6.373 MB / 0.7121 GB, free: 2.812 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003978/0.8805, allocations: 2.113 MB / 0.7141 GB, free: 0.6914 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5955/1.476, allocations: 9.162 MB / 0.7231 GB, free: 165.3 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01394/1.49, allocations: 4.158 MB / 0.7271 GB, free: 164.7 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=260): time 9.057e-06/1.49, allocations: 1.531 kB / 0.7271 GB, free: 164.7 MB / 0.5607 GB Notification: Performance of matching and sorting (n=294): time 0.06093/1.551, allocations: 21.52 MB / 0.7482 GB, free: 155.7 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001173/1.551, allocations: 166.4 kB / 0.7483 GB, free: 155.5 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009538/1.561, allocations: 5.862 MB / 0.754 GB, free: 149.6 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.0007696/1.562, allocations: 69.7 kB / 0.7541 GB, free: 149.5 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.00396/1.566, allocations: 5.059 MB / 0.759 GB, free: 144.5 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.001354/1.567, allocations: 1.131 MB / 0.7601 GB, free: 143.4 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002459/1.569, allocations: 1.84 MB / 0.7619 GB, free: 141.5 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 4.694e-05/1.569, allocations: 309.1 kB / 0.7622 GB, free: 141.2 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00349/1.573, allocations: 2.657 MB / 0.7648 GB, free: 138.5 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006017/1.579, allocations: 8.279 MB / 0.7729 GB, free: 127.5 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01132/1.59, allocations: 11.91 MB / 0.7845 GB, free: 112.9 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000217/1.591, allocations: 56 kB / 0.7846 GB, free: 112.8 MB / 0.5607 GB Notification: Performance of matching and sorting (n=1221) (initialization): time 0.01561/1.606, allocations: 10.68 MB / 0.795 GB, free: 102.1 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001174/1.606, allocations: 113.7 kB / 0.7951 GB, free: 102 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001604/1.607, allocations: 200 kB / 0.7953 GB, free: 101.8 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001801/1.607, allocations: 267.9 kB / 0.7956 GB, free: 101.5 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005884/1.613, allocations: 2.223 MB / 0.7978 GB, free: 99.31 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000227/1.613, allocations: 394.5 kB / 0.7981 GB, free: 98.92 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005691/1.619, allocations: 459.4 kB / 0.7986 GB, free: 98.47 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007749/1.619, allocations: 0.5547 MB / 0.7991 GB, free: 97.92 MB / 0.5607 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.004076/1.623, allocations: 3.236 MB / 0.8023 GB, free: 94.67 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006935/1.624, allocations: 0.5168 MB / 0.8028 GB, free: 94.15 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004396/1.629, allocations: 3.032 MB / 0.8057 GB, free: 91.1 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.027e-05/1.629, allocations: 32 kB / 0.8058 GB, free: 91.07 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.351e-05/1.629, allocations: 3 kB / 0.8058 GB, free: 91.07 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.076e-05/1.629, allocations: 15.89 kB / 0.8058 GB, free: 91.05 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01826/1.647, allocations: 12.42 MB / 0.8179 GB, free: 78.16 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.96e-05/1.647, allocations: 32 kB / 0.8179 GB, free: 78.13 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001978/1.649, allocations: 0.5762 MB / 0.8185 GB, free: 77.55 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.08e-05/1.649, allocations: 48 kB / 0.8186 GB, free: 77.51 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001484/1.649, allocations: 87.98 kB / 0.8186 GB, free: 77.42 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.31e-05/1.649, allocations: 67.84 kB / 0.8187 GB, free: 77.36 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.231e-05/1.649, allocations: 51.75 kB / 0.8188 GB, free: 77.3 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0056/1.655, allocations: 5.434 MB / 0.8241 GB, free: 71.32 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001479/1.656, allocations: 0.5878 MB / 0.8246 GB, free: 70.71 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005851/1.657, allocations: 95.97 kB / 0.8247 GB, free: 70.62 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001877/1.659, allocations: 147.2 kB / 0.8249 GB, free: 70.48 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003197/1.659, allocations: 279.9 kB / 0.8251 GB, free: 70.2 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001457/1.659, allocations: 124 kB / 0.8253 GB, free: 70.08 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.005378/1.665, allocations: 3.642 MB / 0.8288 GB, free: 66.44 MB / 0.5607 GB Notification: Performance of sort global known variables: time 4.91e-07/1.665, allocations: 0 / 0.8288 GB, free: 66.44 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.007713/1.672, allocations: 1.474 MB / 0.8302 GB, free: 64.97 MB / 0.5607 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.0006082/1.673, allocations: 267 kB / 0.8305 GB, free: 64.71 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.009034/1.682, allocations: 6.178 MB / 0.8365 GB, free: 58.57 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 3.111e-05/1.682, allocations: 8 kB / 0.8365 GB, free: 58.56 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.002818/1.685, allocations: 1.641 MB / 0.8381 GB, free: 56.93 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004998/1.69, allocations: 0.8074 MB / 0.8389 GB, free: 56.13 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02553/1.716, allocations: 14.59 MB / 0.8532 GB, free: 41.09 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005796/1.721, allocations: 4.894 MB / 0.858 GB, free: 36.17 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.0069/1.728, allocations: 2.603 MB / 0.8605 GB, free: 33.56 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009861/1.729, allocations: 391.4 kB / 0.8609 GB, free: 33.18 MB / 0.5607 GB Notification: Performance of SimCode: time 1.262e-06/1.729, allocations: 0 / 0.8609 GB, free: 33.18 MB / 0.5607 GB Notification: Performance of Templates: time 0.08063/1.81, allocations: 42.7 MB / 0.9026 GB, free: 6.836 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