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.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.001568/0.001568, allocations: 87.56 kB / 21.19 MB, free: 3.402 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.001719/0.001719, allocations: 161 kB / 24.56 MB, free: 40 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.039/1.039, allocations: 177.1 MB / 205 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3/0.3, allocations: 32.81 MB / 294.3 MB, free: 1.289 MB / 266.7 MB " [Timeout remaining time 180] 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.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.0.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.0.0_ModelicaTest.MultiBody.Forces.Damper2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.964e-06/1.964e-06, allocations: 0 / 376 MB, free: 4.656 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.309e-05/2.506e-05, allocations: 13.34 kB / 376 MB, free: 4.645 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Damper2): time 0.01198/0.01201, allocations: 15.56 MB / 391.6 MB, free: 5.02 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.009026/0.02103, allocations: 4.962 MB / 396.6 MB, free: 40 kB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001282/0.02232, allocations: 111.6 kB / 396.7 MB, free: 15.93 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005173/0.02749, allocations: 5.564 MB / 402.2 MB, free: 10.35 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003896/0.03138, allocations: 2.647 MB / 404.9 MB, free: 7.688 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002055/0.03344, allocations: 1.333 MB / 406.2 MB, free: 6.352 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.005523/0.03896, allocations: 7.763 MB / 414 MB, free: 14.57 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004277/0.04324, allocations: 5.977 MB / 420 MB, free: 8.523 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003234/0.04647, allocations: 4.136 MB / 424.1 MB, free: 4.379 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003367/0.04984, allocations: 3.998 MB / 428.1 MB, free: 380 kB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006137/0.05045, allocations: 0.5743 MB / 428.7 MB, free: 15.79 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001423/0.05188, allocations: 1.248 MB / 429.9 MB, free: 14.55 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001825/0.0537, allocations: 3.448 MB / 433.4 MB, free: 11.09 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001845/0.05555, allocations: 2.2 MB / 435.6 MB, free: 8.883 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005498/0.06104, allocations: 7.173 MB / 442.7 MB, free: 1.684 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.06105, allocations: 0 / 442.7 MB, free: 1.684 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.06105, allocations: 0 / 442.7 MB, free: 1.684 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001447/0.06119, allocations: 0 / 442.7 MB, free: 1.684 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.1719/0.2331, allocations: 8.292 MB / 451 MB, free: 97.11 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.759e-05/0.2331, allocations: 9.438 kB / 451 MB, free: 97.11 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005678/0.2388, allocations: 3.502 MB / 454.5 MB, free: 96.36 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003405/0.2422, allocations: 3.225 MB / 457.8 MB, free: 94.99 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000178/0.2424, allocations: 424.7 kB / 458.2 MB, free: 94.85 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005215/0.2429, allocations: 0.5525 MB / 458.7 MB, free: 94.71 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01565/0.2586, allocations: 13.5 MB / 472.2 MB, free: 88.65 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001376/0.2587, allocations: 68.62 kB / 472.3 MB, free: 88.61 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004367/0.2591, allocations: 266.3 kB / 472.5 MB, free: 88.48 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002633/0.2618, allocations: 3.156 MB / 475.7 MB, free: 87.93 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01806/0.2798, allocations: 8.261 MB / 484 MB, free: 86.95 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04048/0.3203, allocations: 70.97 MB / 0.5419 GB, free: 17.19 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007838/0.3282, allocations: 4.527 MB / 0.5463 GB, free: 12.62 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001085/0.3292, allocations: 0.9047 MB / 0.5472 GB, free: 11.7 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00645/0.3357, allocations: 5.725 MB / 0.5528 GB, free: 6.031 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006349/0.342, allocations: 3.823 MB / 0.5566 GB, free: 2.133 MB / 410.7 MB Notification: Performance of pre-optimization done (n=260): time 3.898e-06/0.342, allocations: 0 / 0.5566 GB, free: 2.133 MB / 410.7 MB Notification: Performance of matching and sorting (n=294): time 0.03109/0.3731, allocations: 18.2 MB / 0.5743 GB, free: 15.94 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.494e-05/0.3732, allocations: 158.5 kB / 0.5745 GB, free: 15.75 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005241/0.3785, allocations: 4.968 MB / 0.5793 GB, free: 10.8 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001426/0.3786, allocations: 69.7 kB / 0.5794 GB, free: 10.73 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003586/0.3822, allocations: 5.269 MB / 0.5845 GB, free: 5.484 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000938/0.3831, allocations: 1.195 MB / 0.5857 GB, free: 4.305 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002339/0.3855, allocations: 1.964 MB / 0.5876 GB, free: 2.324 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001162/0.3856, allocations: 480.7 kB / 0.5881 GB, free: 1.852 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001974/0.3875, allocations: 0.9805 MB / 0.589 GB, free: 0.8594 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006904/0.3945, allocations: 9.342 MB / 0.5982 GB, free: 3.672 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2827/0.6772, allocations: 11.37 MB / 0.6093 GB, free: 107.8 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001239/0.6773, allocations: 57.38 kB / 0.6093 GB, free: 107.8 MB / 458.8 MB Notification: Performance of matching and sorting (n=1230) (initialization): time 0.008441/0.6857, allocations: 7.847 MB / 0.617 GB, free: 106.2 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 9.963e-05/0.6858, allocations: 119.2 kB / 0.6171 GB, free: 106.2 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001102/0.686, allocations: 199.7 kB / 0.6173 GB, free: 106.2 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001458/0.6861, allocations: 268 kB / 0.6175 GB, free: 106.2 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003362/0.6895, allocations: 2.257 MB / 0.6197 GB, free: 106 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001683/0.6896, allocations: 396.7 kB / 0.6201 GB, free: 105.9 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00311/0.6927, allocations: 0.5739 MB / 0.6207 GB, free: 105.9 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000367/0.6931, allocations: 0.5471 MB / 0.6212 GB, free: 105.9 MB / 458.8 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.001589/0.6947, allocations: 0.9501 MB / 0.6221 GB, free: 105.5 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003968/0.6951, allocations: 0.5707 MB / 0.6227 GB, free: 105.5 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001829/0.6969, allocations: 1.736 MB / 0.6244 GB, free: 105.4 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.141e-05/0.6969, allocations: 35.34 kB / 0.6244 GB, free: 105.4 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.456e-06/0.697, allocations: 4 kB / 0.6244 GB, free: 105.4 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.574e-05/0.697, allocations: 15.08 kB / 0.6245 GB, free: 105.4 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008735/0.7057, allocations: 9.073 MB / 0.6333 GB, free: 102.7 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.102e-05/0.7057, allocations: 30.59 kB / 0.6333 GB, free: 102.7 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001109/0.7068, allocations: 0.557 MB / 0.6339 GB, free: 102.7 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.905e-05/0.7069, allocations: 48.81 kB / 0.6339 GB, free: 102.7 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001329/0.707, allocations: 92.34 kB / 0.634 GB, free: 102.6 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.393e-05/0.7071, allocations: 62.58 kB / 0.6341 GB, free: 102.6 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.479e-05/0.7071, allocations: 55.02 kB / 0.6341 GB, free: 102.6 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003422/0.7106, allocations: 3.873 MB / 0.6379 GB, free: 99.87 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005667/0.7111, allocations: 0.5008 MB / 0.6384 GB, free: 99.75 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003136/0.7114, allocations: 92.89 kB / 0.6385 GB, free: 99.71 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00098/0.7124, allocations: 186.4 kB / 0.6387 GB, free: 99.68 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002491/0.7127, allocations: 289.8 kB / 0.6389 GB, free: 99.58 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001415/0.7128, allocations: 120.1 kB / 0.6391 GB, free: 99.57 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.002397/0.7152, allocations: 2.084 MB / 0.6411 GB, free: 98.91 MB / 458.8 MB Notification: Performance of sort global known variables: time 8e-08/0.7152, allocations: 0.6562 kB / 0.6411 GB, free: 98.91 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.005202/0.7204, allocations: 1.561 MB / 0.6426 GB, free: 98.72 MB / 458.8 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.0003981/0.7208, allocations: 274.7 kB / 0.6429 GB, free: 98.55 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.004697/0.7255, allocations: 4.21 MB / 0.647 GB, free: 97.14 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 1.154e-05/0.7255, allocations: 3.938 kB / 0.647 GB, free: 97.14 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0007637/0.7263, allocations: 0.8433 MB / 0.6478 GB, free: 96.88 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00189/0.7282, allocations: 0.6845 MB / 0.6485 GB, free: 96.59 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01168/0.7398, allocations: 12.77 MB / 0.661 GB, free: 86.93 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001381/0.7412, allocations: 1.951 MB / 0.6629 GB, free: 85.54 MB / 458.8 MB Notification: Performance of simCode: alias equations: time 0.003186/0.7444, allocations: 2.227 MB / 0.665 GB, free: 84.25 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000512/0.7449, allocations: 376.5 kB / 0.6654 GB, free: 83.9 MB / 458.8 MB Notification: Performance of SimCode: time 2.294e-06/0.7449, allocations: 0 / 0.6654 GB, free: 83.9 MB / 458.8 MB Notification: Performance of Templates: time 0.05243/0.7974, allocations: 37.61 MB / 0.7021 GB, free: 52.27 MB / 458.8 MB " [Timeout remaining time 659] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Damper2.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Damper2.pipe 2>&1) [Timeout 240] 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","",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.5510377530008554]