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.001819/0.001819, allocations: 77.88 kB / 21.42 MB, free: 3.074 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.001659/0.001659, allocations: 168.6 kB / 24.82 MB, free: 9.262 MB / 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.153/1.153, allocations: 177.1 MB / 205.3 MB, free: 5.5 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.3451/0.3451, allocations: 34.26 MB / 296.1 MB, free: 0.7109 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.873e-06/1.873e-06, allocations: 0 / 378.5 MB, free: 2.391 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.026e-05/3.213e-05, allocations: 2.312 kB / 378.5 MB, free: 2.387 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Damper2): time 0.01711/0.01714, allocations: 15.17 MB / 393.7 MB, free: 3.148 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.01341/0.03055, allocations: 4.903 MB / 398.6 MB, free: 14.23 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004031/0.03458, allocations: 115.4 kB / 398.7 MB, free: 14.11 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007675/0.04226, allocations: 5.479 MB / 404.2 MB, free: 8.617 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008019/0.05027, allocations: 2.658 MB / 406.8 MB, free: 5.945 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00308/0.05335, allocations: 1.314 MB / 408.1 MB, free: 4.629 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0106/0.06396, allocations: 7.778 MB / 415.9 MB, free: 12.84 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008037/0.07199, allocations: 5.973 MB / 421.9 MB, free: 6.789 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009983/0.08198, allocations: 4.136 MB / 426 MB, free: 2.645 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007601/0.08958, allocations: 3.995 MB / 430 MB, free: 14.64 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002474/0.09205, allocations: 0.5742 MB / 430.6 MB, free: 14.07 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004071/0.09612, allocations: 1.248 MB / 431.9 MB, free: 12.82 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004222/0.1003, allocations: 3.452 MB / 435.3 MB, free: 9.355 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004205/0.1045, allocations: 2.197 MB / 437.5 MB, free: 7.152 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.2038/0.3083, allocations: 7.172 MB / 444.7 MB, free: 68 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/0.3083, allocations: 3.594 kB / 444.7 MB, free: 68 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3083, allocations: 0 / 444.7 MB, free: 68 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004696/0.3088, allocations: 0 / 444.7 MB, free: 68 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.0111/0.3199, allocations: 7.986 MB / 452.7 MB, free: 65.02 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.024e-05/0.3199, allocations: 8.406 kB / 452.7 MB, free: 65.02 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0054/0.3253, allocations: 2.397 MB / 455.1 MB, free: 64.52 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005109/0.3304, allocations: 2.921 MB / 458 MB, free: 63.82 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002673/0.3307, allocations: 429.2 kB / 458.4 MB, free: 63.8 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008722/0.3316, allocations: 0.5507 MB / 459 MB, free: 63.8 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01597/0.3475, allocations: 9.96 MB / 468.9 MB, free: 59.12 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002512/0.3478, allocations: 75 kB / 469 MB, free: 59.11 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007072/0.3485, allocations: 269.3 kB / 469.3 MB, free: 59.11 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002507/0.351, allocations: 2.785 MB / 472 MB, free: 59.1 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01376/0.3648, allocations: 4.637 MB / 476.7 MB, free: 58.9 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05358/0.4183, allocations: 69.84 MB / 0.5337 GB, free: 18.52 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007874/0.4262, allocations: 3.66 MB / 0.5373 GB, free: 17.92 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001075/0.4273, allocations: 0.7898 MB / 0.5381 GB, free: 17.8 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007074/0.4344, allocations: 5.436 MB / 0.5434 GB, free: 15.07 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005849/0.4402, allocations: 3.134 MB / 0.5464 GB, free: 13.55 MB / 426.7 MB Notification: Performance of pre-optimization done (n=260): time 5.711e-06/0.4402, allocations: 4 kB / 0.5464 GB, free: 13.55 MB / 426.7 MB Notification: Performance of matching and sorting (n=294): time 0.0268/0.467, allocations: 11.74 MB / 0.5579 GB, free: 3.453 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.306e-05/0.4671, allocations: 158.5 kB / 0.558 GB, free: 3.27 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005078/0.4722, allocations: 4.937 MB / 0.5629 GB, free: 15.17 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002944/0.4725, allocations: 69.7 kB / 0.5629 GB, free: 15.09 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004309/0.4768, allocations: 5.308 MB / 0.5681 GB, free: 10.03 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001399/0.4782, allocations: 1.205 MB / 0.5693 GB, free: 8.887 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002118/0.4803, allocations: 2.009 MB / 0.5712 GB, free: 7.066 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001354/0.4804, allocations: 480.7 kB / 0.5717 GB, free: 6.594 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00175/0.4822, allocations: 0.8779 MB / 0.5726 GB, free: 5.707 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006872/0.4891, allocations: 9.289 MB / 0.5816 GB, free: 8.918 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009334/0.4984, allocations: 11.13 MB / 0.5925 GB, free: 10.3 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002717/0.4987, allocations: 57.75 kB / 0.5926 GB, free: 10.24 MB / 474.7 MB Notification: Performance of matching and sorting (n=1230) (initialization): time 0.01275/0.5114, allocations: 7.311 MB / 0.5997 GB, free: 2.914 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001559/0.5116, allocations: 127.8 kB / 0.5998 GB, free: 2.785 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002277/0.5118, allocations: 200 kB / 0.6 GB, free: 2.59 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002081/0.512, allocations: 264 kB / 0.6003 GB, free: 2.332 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004907/0.5169, allocations: 2.204 MB / 0.6024 GB, free: 128 kB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003937/0.5173, allocations: 394.5 kB / 0.6028 GB, free: 15.73 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004968/0.5223, allocations: 431.5 kB / 0.6032 GB, free: 15.32 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006812/0.523, allocations: 488 kB / 0.6037 GB, free: 14.84 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.002404/0.5254, allocations: 0.9481 MB / 0.6046 GB, free: 13.88 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001149/0.5265, allocations: 0.5632 MB / 0.6051 GB, free: 13.32 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001804/0.5283, allocations: 1.588 MB / 0.6067 GB, free: 11.71 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-05/0.5283, allocations: 32 kB / 0.6067 GB, free: 11.68 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.5283, allocations: 0 / 0.6067 GB, free: 11.68 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.941e-05/0.5284, allocations: 19.95 kB / 0.6068 GB, free: 11.66 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01314/0.5415, allocations: 8.961 MB / 0.6155 GB, free: 2.395 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.781e-05/0.5415, allocations: 33.31 kB / 0.6155 GB, free: 2.363 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001159/0.5427, allocations: 0.5467 MB / 0.6161 GB, free: 1.816 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.053e-05/0.5427, allocations: 44 kB / 0.6161 GB, free: 1.773 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001171/0.5428, allocations: 95.92 kB / 0.6162 GB, free: 1.68 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.038e-05/0.5429, allocations: 67.78 kB / 0.6163 GB, free: 1.613 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.22e-05/0.5429, allocations: 51.75 kB / 0.6163 GB, free: 1.562 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1896/0.7325, allocations: 3.666 MB / 0.6199 GB, free: 145.6 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000952/0.7334, allocations: 0.489 MB / 0.6204 GB, free: 145.6 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003957/0.7338, allocations: 99.64 kB / 0.6205 GB, free: 145.6 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001077/0.7349, allocations: 109.8 kB / 0.6206 GB, free: 145.6 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002596/0.7351, allocations: 287.4 kB / 0.6208 GB, free: 145.6 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001249/0.7353, allocations: 106.6 kB / 0.6209 GB, free: 145.6 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002279/0.7376, allocations: 1.933 MB / 0.6228 GB, free: 145.4 MB / 490.7 MB Notification: Performance of sort global known variables: time 3.01e-07/0.7376, allocations: 0 / 0.6228 GB, free: 145.4 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005031/0.7426, allocations: 1.561 MB / 0.6244 GB, free: 145.4 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.0005069/0.7431, allocations: 278.8 kB / 0.6246 GB, free: 145.3 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.004776/0.7479, allocations: 3.957 MB / 0.6285 GB, free: 144.8 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.183e-05/0.7479, allocations: 6.438 kB / 0.6285 GB, free: 144.8 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008502/0.7487, allocations: 0.785 MB / 0.6293 GB, free: 144.7 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002847/0.7516, allocations: 0.6739 MB / 0.6299 GB, free: 144.6 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01768/0.7693, allocations: 12.74 MB / 0.6424 GB, free: 138.3 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003109/0.7724, allocations: 1.955 MB / 0.6443 GB, free: 138.1 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.002666/0.775, allocations: 0.7658 MB / 0.645 GB, free: 137.9 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001684/0.7767, allocations: 0.8887 MB / 0.6459 GB, free: 137.8 MB / 490.7 MB Notification: Performance of SimCode: time 2.345e-06/0.7767, allocations: 1.094 kB / 0.6459 GB, free: 137.8 MB / 490.7 MB Notification: Performance of Templates: time 0.06922/0.8459, allocations: 40.42 MB / 0.6854 GB, free: 117.5 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.416555707342923]