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.001305/0.001305, allocations: 110.3 kB / 17.98 MB, free: 5.238 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.001271/0.001271, allocations: 193.3 kB / 18.9 MB, free: 4.32 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.343/1.343, allocations: 222.9 MB / 242.6 MB, free: 15.42 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.2113/0.2113, allocations: 44.17 MB / 336.9 MB, free: 2.938 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001286, allocations: 72.19 kB / 408.6 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1151/0.1164, allocations: 60.82 MB / 469.4 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Damper2): time 0.2918/0.4082, allocations: 86.38 MB / 0.5427 GB, free: 2.672 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04213/0.4504, allocations: 16.5 MB / 0.5588 GB, free: 7.145 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01979/0.4703, allocations: 367.6 kB / 0.5592 GB, free: 7.09 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009435/0.4797, allocations: 5.016 MB / 0.5641 GB, free: 3.57 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007929/0.4878, allocations: 2.382 MB / 0.5664 GB, free: 1.18 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003144/0.4909, allocations: 1.112 MB / 0.5675 GB, free: 68 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.009922/0.5009, allocations: 6.74 MB / 0.5741 GB, free: 9.316 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01099/0.5119, allocations: 6.777 MB / 0.5807 GB, free: 2.484 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005349/0.5173, allocations: 2.687 MB / 0.5833 GB, free: 15.79 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006667/0.524, allocations: 4.121 MB / 0.5874 GB, free: 11.66 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002543/0.5266, allocations: 0.5898 MB / 0.5879 GB, free: 11.07 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004227/0.5309, allocations: 1.319 MB / 0.5892 GB, free: 9.746 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005348/0.5362, allocations: 3.371 MB / 0.5925 GB, free: 6.367 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007532/0.5438, allocations: 3.838 MB / 0.5963 GB, free: 2.508 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01157/0.5554, allocations: 9.118 MB / 0.6052 GB, free: 9.371 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.683e-06/0.5555, allocations: 0 / 0.6052 GB, free: 9.371 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.765e-06/0.5555, allocations: 0 / 0.6052 GB, free: 9.371 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004779/0.556, allocations: 0 / 0.6052 GB, free: 9.371 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.01946/0.5754, allocations: 7.887 MB / 0.6129 GB, free: 1.391 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.941e-05/0.5755, allocations: 8.031 kB / 0.6129 GB, free: 1.383 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01095/0.5865, allocations: 2.659 MB / 0.6155 GB, free: 14.71 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008166/0.5947, allocations: 3.689 MB / 0.6191 GB, free: 10.96 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005158/0.5952, allocations: 439.7 kB / 0.6195 GB, free: 10.53 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002233/0.5975, allocations: 0.5659 MB / 0.62 GB, free: 9.961 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04368/0.6412, allocations: 20.32 MB / 0.6399 GB, free: 4.492 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002934/0.6415, allocations: 71.31 kB / 0.6399 GB, free: 4.422 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001697/0.6432, allocations: 275.8 kB / 0.6402 GB, free: 4.152 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005631/0.6489, allocations: 3.341 MB / 0.6435 GB, free: 0.8086 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03838/0.6873, allocations: 16.34 MB / 0.6594 GB, free: 456 kB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4892/1.177, allocations: 65.39 MB / 0.7233 GB, free: 146.8 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01764/1.194, allocations: 6.364 MB / 0.7295 GB, free: 146.2 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003469/1.198, allocations: 2.075 MB / 0.7315 GB, free: 146.1 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01383/1.212, allocations: 9.178 MB / 0.7405 GB, free: 141.8 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01255/1.224, allocations: 4.153 MB / 0.7445 GB, free: 141.2 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=260): time 7.534e-06/1.224, allocations: 0 / 0.7445 GB, free: 141.2 MB / 0.5294 GB Notification: Performance of matching and sorting (n=294): time 0.05303/1.277, allocations: 21.52 MB / 0.7656 GB, free: 127.6 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.319e-05/1.277, allocations: 162 kB / 0.7657 GB, free: 127.4 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007248/1.285, allocations: 5.853 MB / 0.7714 GB, free: 121.5 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0003744/1.285, allocations: 81.62 kB / 0.7715 GB, free: 121.4 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002845/1.288, allocations: 5.057 MB / 0.7764 GB, free: 116.4 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009485/1.289, allocations: 1.135 MB / 0.7776 GB, free: 115.2 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002355/1.291, allocations: 1.841 MB / 0.7794 GB, free: 113.4 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.033e-05/1.291, allocations: 305.1 kB / 0.7796 GB, free: 113.1 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003595/1.295, allocations: 2.657 MB / 0.7822 GB, free: 110.4 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005523/1.3, allocations: 8.284 MB / 0.7903 GB, free: 99.55 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01022/1.311, allocations: 11.9 MB / 0.8019 GB, free: 85.09 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001603/1.311, allocations: 63.92 kB / 0.802 GB, free: 85.03 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1221) (initialization): time 0.01644/1.327, allocations: 10.68 MB / 0.8124 GB, free: 74.34 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002353/1.328, allocations: 117.7 kB / 0.8125 GB, free: 74.22 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002608/1.328, allocations: 196 kB / 0.8127 GB, free: 74.03 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002462/1.328, allocations: 267.9 kB / 0.813 GB, free: 73.77 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006366/1.335, allocations: 2.231 MB / 0.8152 GB, free: 71.53 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002751/1.335, allocations: 394.5 kB / 0.8155 GB, free: 71.14 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00603/1.341, allocations: 463.5 kB / 0.816 GB, free: 70.69 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001185/1.342, allocations: 0.543 MB / 0.8165 GB, free: 70.15 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.005627/1.348, allocations: 3.245 MB / 0.8197 GB, free: 66.89 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009779/1.349, allocations: 0.5245 MB / 0.8202 GB, free: 66.36 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005189/1.354, allocations: 3.029 MB / 0.8232 GB, free: 63.31 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.922e-05/1.354, allocations: 35.94 kB / 0.8232 GB, free: 63.28 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.624e-05/1.354, allocations: 0 / 0.8232 GB, free: 63.28 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-05/1.354, allocations: 11.95 kB / 0.8232 GB, free: 63.27 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01988/1.374, allocations: 12.44 MB / 0.8353 GB, free: 50.36 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.797e-05/1.374, allocations: 40 kB / 0.8354 GB, free: 50.32 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002051/1.376, allocations: 0.5771 MB / 0.8359 GB, free: 49.74 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.799e-05/1.376, allocations: 44 kB / 0.836 GB, free: 49.7 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002158/1.376, allocations: 96.86 kB / 0.8361 GB, free: 49.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.21e-05/1.376, allocations: 63.73 kB / 0.8361 GB, free: 49.54 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-05/1.377, allocations: 51.81 kB / 0.8362 GB, free: 49.49 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00599/1.383, allocations: 5.443 MB / 0.8415 GB, free: 43.5 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00133/1.384, allocations: 0.5879 MB / 0.8421 GB, free: 42.88 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009557/1.385, allocations: 95.64 kB / 0.8422 GB, free: 42.79 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002371/1.387, allocations: 139.9 kB / 0.8423 GB, free: 42.66 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003779/1.388, allocations: 280.4 kB / 0.8426 GB, free: 42.38 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002006/1.388, allocations: 120 kB / 0.8427 GB, free: 42.27 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00573/1.394, allocations: 3.642 MB / 0.8462 GB, free: 38.62 MB / 0.5294 GB Notification: Performance of sort global known variables: time 5.91e-07/1.394, allocations: 7.938 kB / 0.8462 GB, free: 38.61 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007485/1.401, allocations: 1.47 MB / 0.8477 GB, free: 37.15 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.0006949/1.402, allocations: 272.1 kB / 0.8479 GB, free: 36.88 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01052/1.412, allocations: 6.694 MB / 0.8545 GB, free: 30.24 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.182e-05/1.412, allocations: 4 kB / 0.8545 GB, free: 30.23 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002464/1.415, allocations: 1.527 MB / 0.856 GB, free: 28.72 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005431/1.42, allocations: 0.7951 MB / 0.8568 GB, free: 27.94 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02745/1.448, allocations: 18.86 MB / 0.8752 GB, free: 8.625 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007477/1.455, allocations: 4.89 MB / 0.8799 GB, free: 3.711 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001364/1.457, allocations: 451.4 kB / 0.8804 GB, free: 3.27 MB / 0.5294 GB Notification: Performance of SimCode: time 9.32e-07/1.457, allocations: 0 / 0.8804 GB, free: 3.27 MB / 0.5294 GB Notification: Performance of Templates: time 0.3092/1.766, allocations: 85.48 MB / 0.9639 GB, free: 174.6 MB / 0.5607 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