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.001424/0.001423, allocations: 109.9 kB / 18.3 MB, free: 4.883 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.001364/0.001364, allocations: 195.5 kB / 19.23 MB, free: 3.961 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.426/1.426, allocations: 222.9 MB / 242.9 MB, free: 15.2 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.2232/0.2232, allocations: 44.19 MB / 337.3 MB, free: 2.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001449/0.001449, allocations: 57.94 kB / 409.1 MB, free: 27.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1261/0.1276, allocations: 60.83 MB / 469.9 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Damper2): time 0.01832/0.1459, allocations: 16.46 MB / 486.4 MB, free: 13.85 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01266/0.1586, allocations: 5.071 MB / 491.5 MB, free: 8.762 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003567/0.1622, allocations: 99.75 kB / 491.6 MB, free: 8.664 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01008/0.1723, allocations: 5.198 MB / 496.8 MB, free: 3.449 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008027/0.1805, allocations: 2.575 MB / 499.3 MB, free: 0.8633 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002992/0.1835, allocations: 1.193 MB / 0.4888 GB, free: 15.66 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01162/0.1951, allocations: 6.711 MB / 0.4953 GB, free: 8.945 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01062/0.2058, allocations: 6.418 MB / 0.5016 GB, free: 2.449 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2413/0.4471, allocations: 2.648 MB / 0.5042 GB, free: 17.29 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006868/0.454, allocations: 3.758 MB / 0.5079 GB, free: 17.26 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003337/0.4574, allocations: 0.5875 MB / 0.5084 GB, free: 17.26 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005474/0.4629, allocations: 1.306 MB / 0.5097 GB, free: 17.26 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00687/0.4698, allocations: 3.322 MB / 0.513 GB, free: 16.93 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01145/0.4812, allocations: 3.799 MB / 0.5167 GB, free: 15.62 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01806/0.4993, allocations: 11.13 MB / 0.5275 GB, free: 12.68 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.035e-06/0.4994, allocations: 0.5312 kB / 0.5275 GB, free: 12.68 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.4994, allocations: 0.5 kB / 0.5275 GB, free: 12.68 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005384/0.4999, allocations: 0.9688 kB / 0.5275 GB, free: 12.68 MB / 382.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.02725/0.5272, allocations: 7.881 MB / 0.5352 GB, free: 7.531 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.106e-05/0.5273, allocations: 13.27 kB / 0.5353 GB, free: 7.527 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01132/0.5386, allocations: 2.661 MB / 0.5379 GB, free: 6.129 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0092/0.5479, allocations: 3.681 MB / 0.5414 GB, free: 4.098 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003544/0.5483, allocations: 443.9 kB / 0.5419 GB, free: 3.953 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002485/0.5507, allocations: 0.5573 MB / 0.5424 GB, free: 3.816 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04568/0.5964, allocations: 20.32 MB / 0.5623 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002861/0.5968, allocations: 76.45 kB / 0.5623 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001303/0.5981, allocations: 271.5 kB / 0.5626 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005439/0.6035, allocations: 3.335 MB / 0.5658 GB, free: 13.3 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04055/0.6441, allocations: 16.34 MB / 0.5818 GB, free: 13.26 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1461/0.7902, allocations: 65.39 MB / 0.6457 GB, free: 11.09 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03642/0.8267, allocations: 6.372 MB / 0.6519 GB, free: 4.59 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007227/0.834, allocations: 2.076 MB / 0.6539 GB, free: 2.504 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03251/0.8666, allocations: 9.168 MB / 0.6629 GB, free: 9.094 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0301/0.8967, allocations: 4.16 MB / 0.6669 GB, free: 4.898 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=260): time 1.299e-05/0.8968, allocations: 4 kB / 0.6669 GB, free: 4.895 MB / 0.4981 GB Notification: Performance of matching and sorting (n=294): time 0.1206/1.017, allocations: 21.51 MB / 0.6879 GB, free: 15.34 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001472/1.018, allocations: 162.5 kB / 0.6881 GB, free: 15.16 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01672/1.034, allocations: 5.858 MB / 0.6938 GB, free: 9.273 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0007881/1.035, allocations: 69.3 kB / 0.6939 GB, free: 9.203 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.009233/1.044, allocations: 5.063 MB / 0.6988 GB, free: 4.141 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002506/1.047, allocations: 1.132 MB / 0.6999 GB, free: 3.016 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005299/1.052, allocations: 1.84 MB / 0.7017 GB, free: 1.164 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001469/1.053, allocations: 301.1 kB / 0.702 GB, free: 0.8672 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2193/1.272, allocations: 2.659 MB / 0.7046 GB, free: 184.3 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008852/1.281, allocations: 8.28 MB / 0.7127 GB, free: 176.8 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01365/1.294, allocations: 11.91 MB / 0.7243 GB, free: 166.2 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000335/1.295, allocations: 56.59 kB / 0.7244 GB, free: 166.2 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1221) (initialization): time 0.02067/1.315, allocations: 10.69 MB / 0.7348 GB, free: 162.4 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003071/1.316, allocations: 119.3 kB / 0.7349 GB, free: 162.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003916/1.316, allocations: 195.2 kB / 0.7351 GB, free: 162.4 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003081/1.317, allocations: 265.2 kB / 0.7354 GB, free: 162.4 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007136/1.324, allocations: 2.231 MB / 0.7375 GB, free: 162.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003779/1.324, allocations: 389.1 kB / 0.7379 GB, free: 162 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006801/1.331, allocations: 468 kB / 0.7384 GB, free: 161.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001648/1.333, allocations: 0.5478 MB / 0.7389 GB, free: 161.8 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.006643/1.339, allocations: 3.244 MB / 0.7421 GB, free: 160.4 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001054/1.34, allocations: 0.5187 MB / 0.7426 GB, free: 160.4 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004915/1.345, allocations: 3.043 MB / 0.7455 GB, free: 158 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.191e-05/1.345, allocations: 28 kB / 0.7456 GB, free: 157.9 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.144e-05/1.345, allocations: 8 kB / 0.7456 GB, free: 157.9 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.348e-05/1.345, allocations: 12.98 kB / 0.7456 GB, free: 157.9 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01861/1.364, allocations: 12.42 MB / 0.7577 GB, free: 147.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.214e-05/1.364, allocations: 32 kB / 0.7578 GB, free: 147.2 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002066/1.366, allocations: 0.5767 MB / 0.7583 GB, free: 146.7 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.027e-05/1.366, allocations: 48 kB / 0.7584 GB, free: 146.7 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001557/1.366, allocations: 97.25 kB / 0.7585 GB, free: 146.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.131e-05/1.366, allocations: 63.27 kB / 0.7585 GB, free: 146.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.895e-05/1.366, allocations: 51.75 kB / 0.7586 GB, free: 146.5 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005648/1.372, allocations: 5.43 MB / 0.7639 GB, free: 141.3 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001347/1.373, allocations: 0.5982 MB / 0.7645 GB, free: 140.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007143/1.374, allocations: 96.75 kB / 0.7645 GB, free: 140.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001987/1.376, allocations: 138.7 kB / 0.7647 GB, free: 140.5 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003189/1.376, allocations: 284.2 kB / 0.7649 GB, free: 140.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001463/1.377, allocations: 121.4 kB / 0.7651 GB, free: 140.2 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005246/1.382, allocations: 3.641 MB / 0.7686 GB, free: 137.1 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.1e-07/1.382, allocations: 0 / 0.7686 GB, free: 137.1 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007903/1.39, allocations: 1.47 MB / 0.7701 GB, free: 135.7 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.00061/1.39, allocations: 275.5 kB / 0.7703 GB, free: 135.4 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0103/1.401, allocations: 6.691 MB / 0.7769 GB, free: 129.5 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.036e-05/1.401, allocations: 4 kB / 0.7769 GB, free: 129.5 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002355/1.403, allocations: 1.52 MB / 0.7783 GB, free: 128.1 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004309/1.407, allocations: 0.8096 MB / 0.7791 GB, free: 127.4 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02266/1.43, allocations: 15.49 MB / 0.7943 GB, free: 111.5 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006182/1.436, allocations: 4.887 MB / 0.799 GB, free: 106.6 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001348/1.438, allocations: 451.4 kB / 0.7995 GB, free: 106.2 MB / 0.5294 GB Notification: Performance of SimCode: time 9.51e-07/1.438, allocations: 0 / 0.7995 GB, free: 106.2 MB / 0.5294 GB Notification: Performance of Templates: time 0.1033/1.541, allocations: 85.47 MB / 0.8829 GB, free: 20.81 MB / 0.5294 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