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.0009468/0.0009468, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.001079/0.001079, allocations: 161 kB / 24.56 MB, free: 16 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 1.005/1.005, allocations: 177.1 MB / 205 MB, free: 5.582 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.2865/0.2865, allocations: 34.26 MB / 295.7 MB, free: 0.7578 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.563e-06/1.563e-06, allocations: 0 / 378.1 MB, free: 2.641 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.23e-05/2.387e-05, allocations: 2.312 kB / 378.1 MB, free: 2.637 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Damper2): time 0.01291/0.01293, allocations: 15.56 MB / 393.6 MB, free: 3.004 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.009588/0.02252, allocations: 4.946 MB / 398.6 MB, free: 14.04 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00254/0.02506, allocations: 111.5 kB / 398.7 MB, free: 13.93 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006995/0.03206, allocations: 5.568 MB / 404.2 MB, free: 8.344 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007203/0.03926, allocations: 2.639 MB / 406.9 MB, free: 5.691 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002802/0.04206, allocations: 1.322 MB / 408.2 MB, free: 4.367 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.008769/0.05083, allocations: 7.771 MB / 416 MB, free: 12.58 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007643/0.05847, allocations: 5.977 MB / 422 MB, free: 6.527 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008061/0.06653, allocations: 4.042 MB / 426 MB, free: 2.477 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005868/0.0724, allocations: 4.115 MB / 430.1 MB, free: 14.35 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002099/0.0745, allocations: 0.5859 MB / 430.7 MB, free: 13.77 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002941/0.07744, allocations: 1.249 MB / 431.9 MB, free: 12.52 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003773/0.08121, allocations: 3.471 MB / 435.4 MB, free: 9.035 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00463/0.08585, allocations: 2.224 MB / 437.6 MB, free: 6.805 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1714/0.2573, allocations: 7.231 MB / 444.9 MB, free: 67.94 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.725e-06/0.2573, allocations: 3.844 kB / 444.9 MB, free: 67.94 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.2573, allocations: 0 / 444.9 MB, free: 67.94 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003878/0.2577, allocations: 2.188 kB / 444.9 MB, free: 67.94 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.01327/0.2709, allocations: 8.384 MB / 453.3 MB, free: 64.95 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.053e-05/0.271, allocations: 11.28 kB / 453.3 MB, free: 64.95 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00702/0.278, allocations: 3.502 MB / 456.8 MB, free: 64.45 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005487/0.2835, allocations: 3.265 MB / 460 MB, free: 63.72 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002577/0.2837, allocations: 423.9 kB / 460.5 MB, free: 63.71 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001046/0.2848, allocations: 0.5506 MB / 461 MB, free: 63.71 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02283/0.3076, allocations: 13.49 MB / 474.5 MB, free: 59.03 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002614/0.3079, allocations: 69 kB / 474.6 MB, free: 59.02 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006835/0.3086, allocations: 269.6 kB / 474.8 MB, free: 58.99 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003098/0.3117, allocations: 3.156 MB / 478 MB, free: 58.48 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02164/0.3333, allocations: 8.265 MB / 486.2 MB, free: 57.8 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05605/0.3893, allocations: 70.97 MB / 0.5441 GB, free: 15.38 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008994/0.3983, allocations: 4.532 MB / 0.5486 GB, free: 10.82 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001519/0.3999, allocations: 0.9147 MB / 0.5495 GB, free: 9.898 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008669/0.4085, allocations: 5.702 MB / 0.555 GB, free: 4.254 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008042/0.4166, allocations: 3.821 MB / 0.5588 GB, free: 368 kB / 426.7 MB Notification: Performance of pre-optimization done (n=260): time 6.392e-06/0.4166, allocations: 0 / 0.5588 GB, free: 368 kB / 426.7 MB Notification: Performance of matching and sorting (n=294): time 0.03496/0.4515, allocations: 18.19 MB / 0.5765 GB, free: 14.2 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.404e-05/0.4516, allocations: 158.5 kB / 0.5767 GB, free: 14.02 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00601/0.4576, allocations: 4.905 MB / 0.5815 GB, free: 9.121 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000464/0.4581, allocations: 73.61 kB / 0.5815 GB, free: 9.047 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004431/0.4625, allocations: 5.231 MB / 0.5867 GB, free: 3.855 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001432/0.464, allocations: 1.188 MB / 0.5878 GB, free: 2.68 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002342/0.4663, allocations: 1.943 MB / 0.5897 GB, free: 0.7227 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.4664, allocations: 486.4 kB / 0.5902 GB, free: 256 kB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002172/0.4686, allocations: 0.9685 MB / 0.5911 GB, free: 15.27 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006529/0.4751, allocations: 9.169 MB / 0.6001 GB, free: 2.414 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01086/0.486, allocations: 11.17 MB / 0.611 GB, free: 3.559 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002124/0.4862, allocations: 56 kB / 0.611 GB, free: 3.504 MB / 490.7 MB Notification: Performance of matching and sorting (n=1212) (initialization): time 0.1819/0.6681, allocations: 7.728 MB / 0.6186 GB, free: 143.6 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001313/0.6682, allocations: 121.2 kB / 0.6187 GB, free: 143.6 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002379/0.6684, allocations: 196.7 kB / 0.6189 GB, free: 143.6 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000218/0.6687, allocations: 259.9 kB / 0.6191 GB, free: 143.6 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004815/0.6735, allocations: 2.225 MB / 0.6213 GB, free: 143.6 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002896/0.6738, allocations: 386.9 kB / 0.6217 GB, free: 143.6 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004679/0.6784, allocations: 0.5581 MB / 0.6222 GB, free: 143.6 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009372/0.6794, allocations: 0.5449 MB / 0.6228 GB, free: 143.6 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 895 * 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 (1187): * Single equations (assignments): 1183 * 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.002435/0.6818, allocations: 0.9404 MB / 0.6237 GB, free: 143.4 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007514/0.6826, allocations: 0.5574 MB / 0.6242 GB, free: 143.4 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002188/0.6848, allocations: 1.742 MB / 0.6259 GB, free: 143.2 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.343e-05/0.6848, allocations: 34.41 kB / 0.626 GB, free: 143.2 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.217e-05/0.6848, allocations: 3.156 kB / 0.626 GB, free: 143.2 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.038e-05/0.6848, allocations: 17.08 kB / 0.626 GB, free: 143.2 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01267/0.6975, allocations: 9.089 MB / 0.6349 GB, free: 140.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.888e-05/0.6975, allocations: 30.5 kB / 0.6349 GB, free: 140.8 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001273/0.6988, allocations: 0.5631 MB / 0.6354 GB, free: 140.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.028e-05/0.6988, allocations: 44.72 kB / 0.6355 GB, free: 140.8 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001403/0.699, allocations: 91.55 kB / 0.6356 GB, free: 140.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.437e-05/0.699, allocations: 66.09 kB / 0.6356 GB, free: 140.8 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.04e-05/0.699, allocations: 48.84 kB / 0.6357 GB, free: 140.8 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004402/0.7034, allocations: 3.873 MB / 0.6395 GB, free: 138.4 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001822/0.7053, allocations: 0.4909 MB / 0.6399 GB, free: 138.4 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005458/0.7058, allocations: 98.92 kB / 0.64 GB, free: 138.4 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001239/0.707, allocations: 185.6 kB / 0.6402 GB, free: 138.4 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003369/0.7074, allocations: 290 kB / 0.6405 GB, free: 138.4 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001955/0.7076, allocations: 120.7 kB / 0.6406 GB, free: 138.4 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003288/0.7109, allocations: 2.062 MB / 0.6426 GB, free: 138.2 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.7109, allocations: 0 / 0.6426 GB, free: 138.2 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.007807/0.7187, allocations: 1.551 MB / 0.6441 GB, free: 138.2 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.0008479/0.7195, allocations: 275.1 kB / 0.6444 GB, free: 138 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.008113/0.7276, allocations: 4.157 MB / 0.6484 GB, free: 136.8 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.868e-05/0.7277, allocations: 3.656 kB / 0.6484 GB, free: 136.8 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00144/0.7291, allocations: 0.8401 MB / 0.6493 GB, free: 136.6 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003115/0.7322, allocations: 0.6826 MB / 0.6499 GB, free: 136.3 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01744/0.7497, allocations: 12.77 MB / 0.6624 GB, free: 129 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002381/0.7521, allocations: 1.959 MB / 0.6643 GB, free: 128.4 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.004328/0.7564, allocations: 2.208 MB / 0.6665 GB, free: 128.2 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008383/0.7572, allocations: 372.1 kB / 0.6668 GB, free: 128.2 MB / 490.7 MB Notification: Performance of SimCode: time 1.874e-06/0.7572, allocations: 0 / 0.6668 GB, free: 128.2 MB / 490.7 MB Notification: Performance of Templates: time 0.06789/0.8251, allocations: 35.85 MB / 0.7018 GB, free: 99.75 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: 5.255321498028934]