Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.Damper2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001056/0.001056, allocations: 83.59 kB / 21.18 MB, free: 3.383 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001047/0.001047, allocations: 165 kB / 24.56 MB, free: 12 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9534/0.9534, allocations: 177.1 MB / 205 MB, free: 5.629 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2327/0.2327, allocations: 34.26 MB / 295.7 MB, free: 0.7617 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.Damper2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5097,variableFilter="time|heatCapacitor.T|prismatic.s|prismatic.v|prismatic1.s|prismatic1.v|prismatic2.s|prismatic2.v",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.Damper2") translateModel(ModelicaTest.MultiBody.Forces.Damper2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5097,variableFilter="time|heatCapacitor.T|prismatic.s|prismatic.v|prismatic1.s|prismatic1.v|prismatic2.s|prismatic2.v",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.Damper2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.252e-06/1.252e-06, allocations: 3.938 kB / 378.1 MB, free: 2.633 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.367e-05/1.492e-05, allocations: 2.312 kB / 378.1 MB, free: 2.629 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Damper2): time 0.01136/0.01138, allocations: 15.56 MB / 393.6 MB, free: 3 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.008306/0.01968, allocations: 4.942 MB / 398.6 MB, free: 14.04 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001542/0.02122, allocations: 119.4 kB / 398.7 MB, free: 13.92 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005071/0.0263, allocations: 5.561 MB / 404.2 MB, free: 8.344 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004144/0.03044, allocations: 2.647 MB / 406.9 MB, free: 5.684 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001764/0.0322, allocations: 1.326 MB / 408.2 MB, free: 4.355 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.006111/0.03831, allocations: 7.775 MB / 416 MB, free: 12.56 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005249/0.04356, allocations: 5.981 MB / 422 MB, free: 6.508 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004607/0.04817, allocations: 4.144 MB / 426.1 MB, free: 2.355 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004272/0.05244, allocations: 3.998 MB / 430.1 MB, free: 14.35 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009981/0.05344, allocations: 0.5781 MB / 430.7 MB, free: 13.77 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001662/0.0551, allocations: 1.237 MB / 431.9 MB, free: 12.53 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001997/0.0571, allocations: 3.452 MB / 435.4 MB, free: 9.07 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002361/0.05946, allocations: 2.193 MB / 437.6 MB, free: 6.871 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1574/0.2168, allocations: 7.18 MB / 444.8 MB, free: 68.07 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.217e-06/0.2168, allocations: 0 / 444.8 MB, free: 68.07 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.335e-06/0.2168, allocations: 0 / 444.8 MB, free: 68.07 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004385/0.2173, allocations: 2.844 kB / 444.8 MB, free: 68.07 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2522 * Number of variables: 2522 Notification: Performance of Generate backend data structure: time 0.009304/0.2266, allocations: 8.29 MB / 453 MB, free: 65.09 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.109e-05/0.2266, allocations: 11.38 kB / 453.1 MB, free: 65.09 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005901/0.2325, allocations: 3.503 MB / 456.6 MB, free: 64.59 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003484/0.236, allocations: 3.219 MB / 459.8 MB, free: 63.88 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002273/0.2362, allocations: 427.8 kB / 460.2 MB, free: 63.87 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005838/0.2368, allocations: 0.5552 MB / 460.8 MB, free: 63.87 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01613/0.2529, allocations: 13.48 MB / 474.2 MB, free: 59.19 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001539/0.2531, allocations: 78.12 kB / 474.3 MB, free: 59.18 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004448/0.2535, allocations: 270.2 kB / 474.6 MB, free: 59.12 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002745/0.2563, allocations: 3.152 MB / 477.7 MB, free: 58.61 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01725/0.2735, allocations: 8.255 MB / 486 MB, free: 57.93 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04115/0.3147, allocations: 70.96 MB / 0.5439 GB, free: 15.59 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007929/0.3226, allocations: 4.534 MB / 0.5483 GB, free: 11.02 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001074/0.3237, allocations: 0.9192 MB / 0.5492 GB, free: 10.1 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006319/0.33, allocations: 5.711 MB / 0.5548 GB, free: 4.449 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007122/0.3371, allocations: 3.819 MB / 0.5585 GB, free: 0.5547 MB / 426.7 MB Notification: Performance of pre-optimization done (n=260): time 4.899e-06/0.3371, allocations: 0 / 0.5585 GB, free: 0.5547 MB / 426.7 MB Notification: Performance of matching and sorting (n=294): time 0.03689/0.374, allocations: 18.21 MB / 0.5763 GB, free: 14.38 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.234e-05/0.3741, allocations: 158.5 kB / 0.5765 GB, free: 14.2 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005772/0.3799, allocations: 4.955 MB / 0.5813 GB, free: 9.254 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001408/0.38, allocations: 69.7 kB / 0.5814 GB, free: 9.18 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003582/0.3836, allocations: 5.272 MB / 0.5865 GB, free: 3.953 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00092/0.3845, allocations: 1.19 MB / 0.5877 GB, free: 2.777 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002102/0.3866, allocations: 1.972 MB / 0.5896 GB, free: 0.7891 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001072/0.3867, allocations: 480.5 kB / 0.5901 GB, free: 328 kB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001983/0.3887, allocations: 0.9765 MB / 0.591 GB, free: 15.33 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006086/0.3948, allocations: 9.339 MB / 0.6001 GB, free: 2.234 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009579/0.4044, allocations: 11.38 MB / 0.6112 GB, free: 3.113 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001143/0.4045, allocations: 56 kB / 0.6113 GB, free: 3.059 MB / 490.7 MB Notification: Performance of matching and sorting (n=1230) (initialization): time 0.1573/0.5618, allocations: 7.847 MB / 0.619 GB, free: 145.1 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.039e-05/0.5618, allocations: 118.4 kB / 0.6191 GB, free: 145 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001045/0.562, allocations: 210.4 kB / 0.6193 GB, free: 145 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001295/0.5621, allocations: 266.2 kB / 0.6195 GB, free: 145 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003282/0.5654, allocations: 2.248 MB / 0.6217 GB, free: 145 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001525/0.5655, allocations: 396.6 kB / 0.6221 GB, free: 145 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002712/0.5682, allocations: 0.5654 MB / 0.6227 GB, free: 145 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003526/0.5686, allocations: 0.558 MB / 0.6232 GB, free: 145 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 913 * Number of states: 0 () * Number of discrete variables: 83 (trapezoid.count,$PRE.trapezoid.count,trapezoid.T_start,$PRE.trapezoid.T_start,$whenCondition1,force2.forceArrow.twoHeadedArrow,force2.forceArrow.headAtOrigin,force1.forceArrow.twoHeadedArrow,force1.forceArrow.headAtOrigin,force.forceArrow.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 (1205): * Single equations (assignments): 1201 * 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.001371/0.57, allocations: 0.9527 MB / 0.6241 GB, free: 144.6 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003681/0.5703, allocations: 0.5639 MB / 0.6247 GB, free: 144.6 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001764/0.5721, allocations: 1.744 MB / 0.6264 GB, free: 144.4 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.097e-05/0.5721, allocations: 31.81 kB / 0.6264 GB, free: 144.4 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.625e-06/0.5721, allocations: 3.125 kB / 0.6264 GB, free: 144.4 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.483e-05/0.5721, allocations: 12.23 kB / 0.6264 GB, free: 144.4 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008085/0.5802, allocations: 9.079 MB / 0.6353 GB, free: 142.1 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.975e-05/0.5802, allocations: 34.34 kB / 0.6353 GB, free: 142.1 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001003/0.5812, allocations: 0.5519 MB / 0.6359 GB, free: 142 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.504e-05/0.5813, allocations: 50.25 kB / 0.6359 GB, free: 142 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.762e-05/0.5813, allocations: 95.75 kB / 0.636 GB, free: 142 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-05/0.5814, allocations: 62.8 kB / 0.6361 GB, free: 142 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.624e-05/0.5814, allocations: 49.38 kB / 0.6361 GB, free: 142 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002782/0.5842, allocations: 3.867 MB / 0.6399 GB, free: 139.6 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004328/0.5846, allocations: 0.4946 MB / 0.6404 GB, free: 139.6 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002985/0.5849, allocations: 98.62 kB / 0.6405 GB, free: 139.6 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009553/0.5859, allocations: 186.5 kB / 0.6406 GB, free: 139.6 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002201/0.5861, allocations: 288.3 kB / 0.6409 GB, free: 139.5 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001245/0.5862, allocations: 123.7 kB / 0.641 GB, free: 139.5 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.00205/0.5883, allocations: 2.087 MB / 0.6431 GB, free: 139.3 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.5883, allocations: 0 / 0.6431 GB, free: 139.3 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.004244/0.5925, allocations: 1.56 MB / 0.6446 GB, free: 139.3 MB / 490.7 MB 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.0003495/0.5928, allocations: 280.4 kB / 0.6449 GB, free: 139.2 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.004021/0.5969, allocations: 4.203 MB / 0.649 GB, free: 137.8 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.02e-05/0.5969, allocations: 7.469 kB / 0.649 GB, free: 137.8 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006854/0.5976, allocations: 0.8435 MB / 0.6498 GB, free: 137.6 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001777/0.5993, allocations: 0.678 MB / 0.6505 GB, free: 137.3 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01127/0.6106, allocations: 12.77 MB / 0.6629 GB, free: 130 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001533/0.6121, allocations: 1.954 MB / 0.6648 GB, free: 129.4 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.002807/0.6149, allocations: 2.228 MB / 0.667 GB, free: 128.6 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000501/0.6154, allocations: 369.8 kB / 0.6674 GB, free: 128.3 MB / 490.7 MB Notification: Performance of SimCode: time 1.493e-06/0.6154, allocations: 0 / 0.6674 GB, free: 128.3 MB / 490.7 MB Notification: Performance of Templates: time 0.05067/0.6661, allocations: 37.61 MB / 0.7041 GB, free: 97.38 MB / 490.7 MB " [Timeout remaining time 659] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.Damper2.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.Damper2.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.Damper2.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.Damper2.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.Damper2.sim & ./ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.Damper2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.Damper2.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.Damper2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Forces/Damper2/Damper2.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.929061389062554]