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.0008962/0.0008963, allocations: 95.86 kB / 16.99 MB, free: 5.941 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.0008722/0.0008722, allocations: 182.1 kB / 17.87 MB, free: 5.609 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.444/1.444, allocations: 223.2 MB / 241.8 MB, free: 384 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.2262/0.2262, allocations: 44.22 MB / 337.1 MB, free: 2.934 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000327/0.0003271, allocations: 12.78 kB / 409.5 MB, free: 27.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1188/0.1192, allocations: 61.92 MB / 471.5 MB, free: 13.8 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Damper2): time 0.3362/0.4554, allocations: 74 MB / 0.5327 GB, free: 9.207 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04292/0.4984, allocations: 16.63 MB / 0.5489 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02344/0.5219, allocations: 366.1 kB / 0.5493 GB, free: 468 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0172/0.5391, allocations: 3.716 MB / 0.5529 GB, free: 13.7 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0419/0.581, allocations: 10.44 MB / 0.5631 GB, free: 5.969 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007534/0.5886, allocations: 1.065 MB / 0.5641 GB, free: 4.902 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01013/0.5988, allocations: 3.747 MB / 0.5678 GB, free: 1.156 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01353/0.6123, allocations: 8.353 MB / 0.5759 GB, free: 8.742 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004515/0.6169, allocations: 1.67 MB / 0.5776 GB, free: 7.066 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004612/0.6215, allocations: 2.368 MB / 0.5799 GB, free: 4.691 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00141/0.623, allocations: 256 kB / 0.5801 GB, free: 4.441 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002668/0.6256, allocations: 0.8583 MB / 0.581 GB, free: 3.582 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002836/0.6285, allocations: 2.685 MB / 0.5836 GB, free: 0.8906 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002135/0.6306, allocations: 1.349 MB / 0.5849 GB, free: 15.53 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01037/0.641, allocations: 8.818 MB / 0.5935 GB, free: 6.691 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.848e-06/0.641, allocations: 0 / 0.5935 GB, free: 6.691 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.6411, allocations: 0 / 0.5935 GB, free: 6.691 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004538/0.6415, allocations: 0 / 0.5935 GB, free: 6.691 MB / 430.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.01456/0.6561, allocations: 6.515 MB / 0.5999 GB, free: 88 kB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.119e-05/0.6561, allocations: 12.03 kB / 0.5999 GB, free: 76 kB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01279/0.6689, allocations: 3.212 MB / 0.603 GB, free: 12.85 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01013/0.6791, allocations: 3.831 MB / 0.6068 GB, free: 8.957 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004685/0.6796, allocations: 443.1 kB / 0.6072 GB, free: 8.523 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002523/0.6821, allocations: 0.5583 MB / 0.6077 GB, free: 7.965 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04493/0.7271, allocations: 20.55 MB / 0.6278 GB, free: 2.258 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003082/0.7274, allocations: 75.25 kB / 0.6279 GB, free: 2.184 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001273/0.7287, allocations: 279.7 kB / 0.6281 GB, free: 1.91 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005403/0.7341, allocations: 3.333 MB / 0.6314 GB, free: 14.57 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03922/0.7734, allocations: 16.62 MB / 0.6476 GB, free: 13.93 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6276/1.401, allocations: 67.93 MB / 0.714 GB, free: 146.1 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0424/1.443, allocations: 14.18 MB / 0.7278 GB, free: 145.4 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01966/1.463, allocations: 13.87 MB / 0.7414 GB, free: 140.3 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.03523/1.498, allocations: 12.22 MB / 0.7533 GB, free: 133 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=264): time 5.26e-06/1.498, allocations: 3.375 kB / 0.7533 GB, free: 133 MB / 0.5294 GB Notification: Performance of matching and sorting (n=298): time 0.1043/1.603, allocations: 40.42 MB / 0.7928 GB, free: 92.66 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.18e-05/1.603, allocations: 161.1 kB / 0.7929 GB, free: 92.48 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009541/1.612, allocations: 6.18 MB / 0.7989 GB, free: 86.28 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0008682/1.613, allocations: 75.11 kB / 0.799 GB, free: 86.2 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.004148/1.618, allocations: 5.061 MB / 0.804 GB, free: 81.14 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001646/1.619, allocations: 1.149 MB / 0.8051 GB, free: 80 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004953/1.62, allocations: 184 kB / 0.8053 GB, free: 79.82 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0003742/1.62, allocations: 0.6947 MB / 0.8059 GB, free: 79.12 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004331/1.624, allocations: 3.016 MB / 0.8089 GB, free: 76.09 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006925/1.631, allocations: 8.598 MB / 0.8173 GB, free: 64.8 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008062/1.639, allocations: 4.918 MB / 0.8221 GB, free: 60.05 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001601/1.64, allocations: 60 kB / 0.8221 GB, free: 59.99 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1213) (initialization): time 0.01996/1.66, allocations: 11.54 MB / 0.8334 GB, free: 48.61 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001267/1.66, allocations: 116.2 kB / 0.8335 GB, free: 48.49 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001898/1.66, allocations: 200 kB / 0.8337 GB, free: 48.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007443/1.661, allocations: 0.5245 MB / 0.8342 GB, free: 47.77 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007797/1.669, allocations: 2.273 MB / 0.8364 GB, free: 45.49 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002444/1.671, allocations: 2.712 MB / 0.8391 GB, free: 42.65 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007531/1.679, allocations: 0.535 MB / 0.8396 GB, free: 42.11 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001464/1.68, allocations: 0.5482 MB / 0.8401 GB, free: 41.57 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 ($whenCondition1,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count,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 (1185): * Single equations (assignments): 1180 * Array equations: 3 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006077/1.686, allocations: 3.235 MB / 0.8433 GB, free: 38.32 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00135/1.687, allocations: 0.5206 MB / 0.8438 GB, free: 37.79 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005895/1.693, allocations: 3.95 MB / 0.8477 GB, free: 33.82 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.028e-05/1.693, allocations: 32 kB / 0.8477 GB, free: 33.79 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.989e-06/1.693, allocations: 4.422 kB / 0.8477 GB, free: 33.79 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.697e-05/1.694, allocations: 11.95 kB / 0.8477 GB, free: 33.78 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02286/1.716, allocations: 12.42 MB / 0.8599 GB, free: 20.93 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-05/1.716, allocations: 28.97 kB / 0.8599 GB, free: 20.91 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002261/1.719, allocations: 0.6201 MB / 0.8605 GB, free: 20.29 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.345e-05/1.719, allocations: 47.94 kB / 0.8605 GB, free: 20.24 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001484/1.719, allocations: 89.7 kB / 0.8606 GB, free: 20.15 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.966e-05/1.719, allocations: 55.8 kB / 0.8607 GB, free: 20.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.956e-05/1.719, allocations: 43.8 kB / 0.8607 GB, free: 20.05 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007198/1.726, allocations: 10.68 MB / 0.8711 GB, free: 7.773 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001659/1.728, allocations: 0.5995 MB / 0.8717 GB, free: 7.148 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005602/1.728, allocations: 89.45 kB / 0.8718 GB, free: 7.062 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0019/1.73, allocations: 171.9 kB / 0.872 GB, free: 6.895 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003074/1.731, allocations: 264.5 kB / 0.8722 GB, free: 6.637 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001516/1.731, allocations: 118.7 kB / 0.8723 GB, free: 6.523 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005396/1.736, allocations: 3.873 MB / 0.8761 GB, free: 2.648 MB / 0.5294 GB Notification: Performance of sort global known variables: time 6.51e-07/1.736, allocations: 4 kB / 0.8761 GB, free: 2.645 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007882/1.744, allocations: 1.521 MB / 0.8776 GB, free: 1.129 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 122 * 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 (280): * Single equations (assignments): 275 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005986/1.745, allocations: 276.1 kB / 0.8779 GB, free: 0.8633 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01235/1.757, allocations: 6.783 MB / 0.8845 GB, free: 10.09 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.417e-05/1.757, allocations: 4 kB / 0.8845 GB, free: 10.09 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003471/1.761, allocations: 1.741 MB / 0.8862 GB, free: 8.352 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00521/1.766, allocations: 0.7131 MB / 0.8869 GB, free: 7.637 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02911/1.795, allocations: 17.58 MB / 0.9041 GB, free: 5.652 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006083/1.801, allocations: 5.031 MB / 0.909 GB, free: 0.5938 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.007355/1.809, allocations: 2.654 MB / 0.9116 GB, free: 13.93 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001353/1.81, allocations: 391.3 kB / 0.9119 GB, free: 13.55 MB / 0.5763 GB Notification: Performance of SimCode: time 1.182e-06/1.81, allocations: 0 / 0.9119 GB, free: 13.55 MB / 0.5763 GB Notification: Performance of Templates: time 0.3588/2.169, allocations: 49.11 MB / 0.9599 GB, free: 203.8 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","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Damper2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches