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.001117/0.001117, allocations: 107.6 kB / 17.21 MB, free: 6.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.001307/0.001307, allocations: 194 kB / 18.12 MB, free: 5.383 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.46/1.46, allocations: 222.9 MB / 241.8 MB, free: 13.65 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.2569/0.2569, allocations: 44.18 MB / 336.1 MB, free: 2.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001297/0.001297, allocations: 68.39 kB / 407.7 MB, free: 27.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.133/0.1343, allocations: 60.84 MB / 468.5 MB, free: 14.81 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Damper2): time 0.4066/0.541, allocations: 86.38 MB / 0.5419 GB, free: 3.25 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04629/0.5873, allocations: 16.59 MB / 0.5581 GB, free: 7.375 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02063/0.608, allocations: 370.3 kB / 0.5585 GB, free: 7.32 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01049/0.6185, allocations: 5.214 MB / 0.5635 GB, free: 3.539 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007884/0.6265, allocations: 2.409 MB / 0.5659 GB, free: 1.121 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002866/0.6293, allocations: 1.1 MB / 0.567 GB, free: 20 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01127/0.6406, allocations: 9.762 MB / 0.5765 GB, free: 6.246 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008933/0.6496, allocations: 6.413 MB / 0.5828 GB, free: 15.78 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004698/0.6543, allocations: 2.379 MB / 0.5851 GB, free: 13.39 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00611/0.6605, allocations: 4.015 MB / 0.589 GB, free: 9.363 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002063/0.6625, allocations: 460 kB / 0.5895 GB, free: 8.914 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003553/0.6661, allocations: 1.225 MB / 0.5906 GB, free: 7.688 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003813/0.6699, allocations: 3.238 MB / 0.5938 GB, free: 4.441 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005393/0.6754, allocations: 3.681 MB / 0.5974 GB, free: 0.7383 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01133/0.6867, allocations: 11 MB / 0.6081 GB, free: 5.703 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.6867, allocations: 0 / 0.6081 GB, free: 5.703 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.6867, allocations: 0 / 0.6081 GB, free: 5.703 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003602/0.6871, allocations: 0 / 0.6081 GB, free: 5.703 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.0162/0.7033, allocations: 7.891 MB / 0.6159 GB, free: 13.71 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.93e-05/0.7034, allocations: 8.031 kB / 0.6159 GB, free: 13.71 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01038/0.7138, allocations: 2.663 MB / 0.6185 GB, free: 11.03 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007451/0.7212, allocations: 3.685 MB / 0.6221 GB, free: 7.285 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003187/0.7216, allocations: 439.7 kB / 0.6225 GB, free: 6.855 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001289/0.7229, allocations: 0.5621 MB / 0.623 GB, free: 6.293 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04028/0.7632, allocations: 20.31 MB / 0.6429 GB, free: 0.832 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002198/0.7634, allocations: 79.23 kB / 0.6429 GB, free: 0.7539 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009732/0.7644, allocations: 275.8 kB / 0.6432 GB, free: 496 kB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005802/0.7702, allocations: 3.33 MB / 0.6464 GB, free: 13.15 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04404/0.8143, allocations: 16.35 MB / 0.6624 GB, free: 12.78 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5594/1.374, allocations: 65.39 MB / 0.7263 GB, free: 147.8 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01845/1.392, allocations: 6.365 MB / 0.7325 GB, free: 147.1 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003767/1.396, allocations: 2.074 MB / 0.7345 GB, free: 146.6 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01455/1.411, allocations: 9.175 MB / 0.7435 GB, free: 141.9 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01307/1.424, allocations: 4.16 MB / 0.7475 GB, free: 141.1 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=260): time 6.733e-06/1.424, allocations: 0 / 0.7475 GB, free: 141.1 MB / 0.5294 GB Notification: Performance of matching and sorting (n=294): time 0.05039/1.474, allocations: 21.51 MB / 0.7685 GB, free: 126.9 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.899e-05/1.474, allocations: 161 kB / 0.7687 GB, free: 126.7 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006472/1.481, allocations: 5.854 MB / 0.7744 GB, free: 120.8 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0004631/1.481, allocations: 73.7 kB / 0.7745 GB, free: 120.7 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002903/1.484, allocations: 5.067 MB / 0.7794 GB, free: 115.7 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009176/1.485, allocations: 1.132 MB / 0.7805 GB, free: 114.6 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001681/1.487, allocations: 1.837 MB / 0.7823 GB, free: 112.7 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.886e-05/1.487, allocations: 301.1 kB / 0.7826 GB, free: 112.4 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003556/1.49, allocations: 2.667 MB / 0.7852 GB, free: 109.7 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005208/1.496, allocations: 8.282 MB / 0.7933 GB, free: 98.84 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01083/1.506, allocations: 11.9 MB / 0.8049 GB, free: 84.33 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001259/1.507, allocations: 60 kB / 0.805 GB, free: 84.27 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1221) (initialization): time 0.01586/1.523, allocations: 10.68 MB / 0.8154 GB, free: 73.58 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001558/1.523, allocations: 121.6 kB / 0.8155 GB, free: 73.45 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002735/1.523, allocations: 200 kB / 0.8157 GB, free: 73.26 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002519/1.523, allocations: 264 kB / 0.816 GB, free: 73 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006109/1.529, allocations: 2.227 MB / 0.8182 GB, free: 70.77 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003038/1.53, allocations: 390.5 kB / 0.8185 GB, free: 70.39 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006654/1.536, allocations: 467.4 kB / 0.819 GB, free: 69.93 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001146/1.538, allocations: 0.5469 MB / 0.8195 GB, free: 69.38 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.005669/1.543, allocations: 3.241 MB / 0.8227 GB, free: 66.13 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001293/1.545, allocations: 0.5206 MB / 0.8232 GB, free: 65.6 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005388/1.55, allocations: 3.036 MB / 0.8261 GB, free: 62.55 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.427e-05/1.55, allocations: 32 kB / 0.8262 GB, free: 62.52 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.561e-05/1.55, allocations: 0 / 0.8262 GB, free: 62.52 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.406e-05/1.55, allocations: 19.89 kB / 0.8262 GB, free: 62.5 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02266/1.573, allocations: 12.43 MB / 0.8383 GB, free: 49.59 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.132e-05/1.573, allocations: 28.47 kB / 0.8384 GB, free: 49.57 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002032/1.575, allocations: 0.5771 MB / 0.8389 GB, free: 48.99 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.504e-05/1.575, allocations: 48 kB / 0.839 GB, free: 48.94 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000219/1.575, allocations: 92.19 kB / 0.8391 GB, free: 48.85 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.724e-05/1.575, allocations: 63.78 kB / 0.8391 GB, free: 48.79 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.063e-05/1.575, allocations: 59.62 kB / 0.8392 GB, free: 48.73 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006238/1.581, allocations: 5.44 MB / 0.8445 GB, free: 42.74 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001558/1.583, allocations: 0.5879 MB / 0.8451 GB, free: 42.12 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00118/1.584, allocations: 87.98 kB / 0.8451 GB, free: 42.04 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002929/1.587, allocations: 151.1 kB / 0.8453 GB, free: 41.89 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003894/1.588, allocations: 279.9 kB / 0.8456 GB, free: 41.62 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000189/1.588, allocations: 124 kB / 0.8457 GB, free: 41.5 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.006172/1.594, allocations: 3.646 MB / 0.8492 GB, free: 37.85 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.5e-07/1.594, allocations: 0 / 0.8492 GB, free: 37.85 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007828/1.602, allocations: 1.466 MB / 0.8507 GB, free: 36.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.0006405/1.602, allocations: 275.5 kB / 0.8509 GB, free: 36.12 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.00906/1.612, allocations: 6.082 MB / 0.8569 GB, free: 30.05 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-05/1.612, allocations: 4 kB / 0.8569 GB, free: 30.05 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002743/1.614, allocations: 1.648 MB / 0.8585 GB, free: 28.41 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005624/1.62, allocations: 0.7616 MB / 0.8592 GB, free: 27.66 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02629/1.646, allocations: 18.16 MB / 0.877 GB, free: 9.055 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007529/1.654, allocations: 4.887 MB / 0.8817 GB, free: 4.145 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.006683/1.661, allocations: 2.611 MB / 0.8843 GB, free: 1.523 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00112/1.662, allocations: 383.4 kB / 0.8846 GB, free: 1.148 MB / 0.5294 GB Notification: Performance of SimCode: time 1.332e-06/1.662, allocations: 3.938 kB / 0.8847 GB, free: 1.145 MB / 0.5294 GB Notification: Performance of Templates: time 0.3336/1.995, allocations: 46.53 MB / 0.9301 GB, free: 189.7 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/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