Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001332/0.001332, allocations: 72.08 kB / 21.69 MB, free: 2.859 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001498/0.001498, allocations: 142.3 kB / 24.97 MB, free: 8.324 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9338/0.9338, allocations: 173.4 MB / 201.5 MB, free: 9.32 MB / 186.7 MB " [Timeout remaining time 179] 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(Modelica.Mechanics.Translational.Examples.HeatLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper.s_rel|damper.v_rel|massWithStopAndFriction.s|massWithStopAndFriction.v|springDamper.s_rel|springDamper.v_rel|springDamper1.s_rel|springDamper1.v_rel|brake.mode|brake.startBackward|brake.startForward|massWithStopAndFriction.mode|massWithStopAndFriction.startBackward|massWithStopAndFriction.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses") translateModel(Modelica.Mechanics.Translational.Examples.HeatLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper.s_rel|damper.v_rel|massWithStopAndFriction.s|massWithStopAndFriction.v|springDamper.s_rel|springDamper.v_rel|springDamper1.s_rel|springDamper1.v_rel|brake.mode|brake.startBackward|brake.startForward|massWithStopAndFriction.mode|massWithStopAndFriction.startBackward|massWithStopAndFriction.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.523e-06/1.523e-06, allocations: 0 / 268.1 MB, free: 6.738 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.719e-05/1.871e-05, allocations: 2.312 kB / 268.1 MB, free: 6.734 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.003731/0.00375, allocations: 4.241 MB / 272.3 MB, free: 2.461 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001857/0.005607, allocations: 1.368 MB / 273.7 MB, free: 1.09 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001777/0.005784, allocations: 19.88 kB / 273.7 MB, free: 1.07 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002537/0.006038, allocations: 114.8 kB / 273.8 MB, free: 0.957 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003022/0.00634, allocations: 241.8 kB / 274 MB, free: 0.7188 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006616/0.007002, allocations: 439.1 kB / 274.5 MB, free: 296 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007345/0.007737, allocations: 1.166 MB / 275.6 MB, free: 15.11 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002293/0.007966, allocations: 170.2 kB / 275.8 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005909/0.008557, allocations: 0.6745 MB / 276.5 MB, free: 14.26 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003465/0.008903, allocations: 431 kB / 276.9 MB, free: 13.84 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.372e-05/0.008997, allocations: 92 kB / 277 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002099/0.009207, allocations: 155.8 kB / 277.1 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001478/0.009355, allocations: 227.3 kB / 277.4 MB, free: 13.37 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002157/0.00957, allocations: 323.2 kB / 277.7 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006384/0.01021, allocations: 0.8176 MB / 278.5 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.274e-06/0.01021, allocations: 0 / 278.5 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.31e-07/0.01021, allocations: 0 / 278.5 MB, free: 12.23 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.816e-06/0.01022, allocations: 0 / 278.5 MB, free: 12.23 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 169 * Number of variables: 169 Notification: Performance of Generate backend data structure: time 0.001538/0.01176, allocations: 1.361 MB / 279.8 MB, free: 10.82 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.292e-05/0.01179, allocations: 12.92 kB / 279.9 MB, free: 10.81 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002376/0.01203, allocations: 152.4 kB / 280 MB, free: 10.66 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004094/0.01244, allocations: 398.1 kB / 280.4 MB, free: 10.25 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.459e-05/0.01247, allocations: 50.38 kB / 280.4 MB, free: 10.2 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.67e-05/0.01256, allocations: 72.36 kB / 280.5 MB, free: 10.13 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008628/0.01342, allocations: 0.6487 MB / 281.2 MB, free: 9.473 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.128e-05/0.01344, allocations: 8.078 kB / 281.2 MB, free: 9.465 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.61e-05/0.0135, allocations: 36.11 kB / 281.2 MB, free: 9.43 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.22e-05/0.01351, allocations: 16 kB / 281.2 MB, free: 9.414 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007652/0.01428, allocations: 0.5191 MB / 281.7 MB, free: 8.891 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002156/0.01643, allocations: 1.741 MB / 283.5 MB, free: 7.09 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006761/0.01711, allocations: 0.498 MB / 284 MB, free: 6.578 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003576/0.01747, allocations: 283.1 kB / 284.3 MB, free: 6.297 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.055e-05/0.01752, allocations: 24.98 kB / 284.3 MB, free: 6.273 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000472/0.01799, allocations: 410.6 kB / 284.7 MB, free: 5.855 MB / 266.7 MB Notification: Performance of pre-optimization done (n=86): time 1.994e-06/0.01799, allocations: 0 / 284.7 MB, free: 5.855 MB / 266.7 MB Notification: Performance of matching and sorting (n=106): time 0.004875/0.02287, allocations: 2.883 MB / 287.6 MB, free: 2.934 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.759e-05/0.0229, allocations: 64.34 kB / 287.6 MB, free: 2.855 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003402/0.02324, allocations: 414.6 kB / 288 MB, free: 2.438 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.339e-05/0.02332, allocations: 53.7 kB / 288.1 MB, free: 2.379 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001645/0.02348, allocations: 332.1 kB / 288.4 MB, free: 2.047 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002495/0.02373, allocations: 372.9 kB / 288.8 MB, free: 1.68 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000267/0.024, allocations: 188.5 kB / 289 MB, free: 1.488 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001657/0.02416, allocations: 0.543 MB / 289.5 MB, free: 0.9336 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005377/0.0247, allocations: 266.5 kB / 289.8 MB, free: 0.6719 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005679/0.02527, allocations: 384.3 kB / 290.1 MB, free: 280 kB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.107/0.1323, allocations: 0.5269 MB / 290.7 MB, free: 32.09 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.1323, allocations: 0.6562 kB / 290.7 MB, free: 32.09 MB / 266.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.001643/0.134, allocations: 1.037 MB / 291.7 MB, free: 31.99 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.117e-05/0.134, allocations: 6.312 kB / 291.7 MB, free: 31.99 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.857e-06/0.134, allocations: 2.094 kB / 291.7 MB, free: 31.99 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007188/0.1347, allocations: 0.5468 MB / 292.3 MB, free: 31.96 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004473/0.1352, allocations: 194.5 kB / 292.5 MB, free: 31.96 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00204/0.1372, allocations: 4.034 MB / 296.5 MB, free: 28.42 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004759/0.1377, allocations: 113.4 kB / 296.6 MB, free: 28.41 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.367e-05/0.1377, allocations: 35.73 kB / 296.6 MB, free: 28.41 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 27 (supportFriction.free,massWithStopAndFriction.stopped,massWithStopAndFriction.mode,$PRE.massWithStopAndFriction.mode,massWithStopAndFriction.locked,massWithStopAndFriction.startBackward,$PRE.massWithStopAndFriction.startBackward,massWithStopAndFriction.startForward,$PRE.massWithStopAndFriction.startForward,massWithStopAndFriction.free,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,supportFriction.mode,$PRE.supportFriction.mode,supportFriction.locked,supportFriction.startBackward,$PRE.supportFriction.startBackward,supportFriction.startForward,$PRE.supportFriction.startForward,elastoGap.contact,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (115): * Single equations (assignments): 112 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,7), (1,5), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002239/0.1379, allocations: 225.8 kB / 296.9 MB, free: 28.2 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000129/0.1381, allocations: 102.6 kB / 297 MB, free: 28.19 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.493e-05/0.1382, allocations: 103.6 kB / 297.1 MB, free: 28.1 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.014e-06/0.1382, allocations: 10.44 kB / 297.1 MB, free: 28.1 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/0.1382, allocations: 4.453 kB / 297.1 MB, free: 28.09 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.208e-06/0.1382, allocations: 6.125 kB / 297.1 MB, free: 28.09 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002407/0.1406, allocations: 1.902 MB / 299 MB, free: 27.23 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.1406, allocations: 2.688 kB / 299 MB, free: 27.23 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000416/0.141, allocations: 164.6 kB / 299.1 MB, free: 27.22 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006366/0.1417, allocations: 0.5494 MB / 299.7 MB, free: 27.05 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.619e-05/0.1417, allocations: 34.58 kB / 299.7 MB, free: 27.04 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001635/0.1434, allocations: 3.797 MB / 303.5 MB, free: 23.56 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.035e-06/0.1434, allocations: 6.844 kB / 303.5 MB, free: 23.55 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001808/0.1452, allocations: 1.405 MB / 304.9 MB, free: 22.97 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002552/0.1454, allocations: 153.6 kB / 305.1 MB, free: 22.9 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.391e-05/0.1455, allocations: 33.36 kB / 305.1 MB, free: 22.88 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004404/0.146, allocations: 138 kB / 305.2 MB, free: 22.86 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005292/0.1465, allocations: 359.5 kB / 305.6 MB, free: 22.78 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.213e-05/0.1465, allocations: 42.05 kB / 305.6 MB, free: 22.77 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001548/0.1467, allocations: 272.1 kB / 305.9 MB, free: 22.61 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1467, allocations: 0 / 305.9 MB, free: 22.61 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005669/0.1473, allocations: 243.2 kB / 306.1 MB, free: 22.58 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (springDamper.s_rel,springDamper.v_rel,elastoGap.s_rel,elastoGap.v_rel,massWithStopAndFriction.s,massWithStopAndFriction.v,springDamper1.s_rel,springDamper1.v_rel) * Number of discrete variables: 17 ($whenCondition1,elastoGap.contact,supportFriction.startForward,supportFriction.startBackward,supportFriction.locked,supportFriction.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,massWithStopAndFriction.free,massWithStopAndFriction.startForward,massWithStopAndFriction.startBackward,massWithStopAndFriction.locked,massWithStopAndFriction.mode,massWithStopAndFriction.stopped) * Number of discrete states: 9 (massWithStopAndFriction.mode,massWithStopAndFriction.startBackward,massWithStopAndFriction.startForward,brake.mode,brake.startForward,brake.startBackward,supportFriction.mode,supportFriction.startForward,supportFriction.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (89): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,6), (1,6), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002304/0.1475, allocations: 177.9 kB / 306.3 MB, free: 22.45 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001158/0.1487, allocations: 0.9147 MB / 307.2 MB, free: 22.12 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.1487, allocations: 1.906 kB / 307.2 MB, free: 22.12 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005869/0.1492, allocations: 0.5932 MB / 307.8 MB, free: 21.85 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005197/0.1498, allocations: 170.3 kB / 308 MB, free: 21.79 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002257/0.152, allocations: 1.698 MB / 309.7 MB, free: 20.81 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.166e-05/0.1521, allocations: 165.7 kB / 309.9 MB, free: 20.73 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002184/0.1523, allocations: 71.05 kB / 309.9 MB, free: 20.71 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001435/0.1525, allocations: 70.34 kB / 310 MB, free: 20.7 MB / 266.7 MB Notification: Performance of SimCode: time 1.713e-06/0.1525, allocations: 0 / 310 MB, free: 20.7 MB / 266.7 MB Notification: Performance of Templates: time 0.01479/0.1673, allocations: 15.86 MB / 325.9 MB, free: 5.199 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/HeatLosses/HeatLosses.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: 3.2800597338937223]