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.001007/0.001007, allocations: 83.89 kB / 21.19 MB, free: 3.387 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.001057/0.001057, allocations: 145.5 kB / 24.55 MB, free: 32 kB / 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.9115/0.9115, allocations: 173.3 MB / 201.1 MB, free: 8.945 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.102e-06/1.102e-06, allocations: 3.938 kB / 268 MB, free: 6.289 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.085e-05/1.195e-05, allocations: 2.312 kB / 268 MB, free: 6.285 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.003711/0.003723, allocations: 4.251 MB / 272.2 MB, free: 2.004 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001636/0.005359, allocations: 1.375 MB / 273.6 MB, free: 0.625 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001576/0.005516, allocations: 11.94 kB / 273.6 MB, free: 0.6133 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002261/0.005743, allocations: 114.8 kB / 273.7 MB, free: 0.5 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002452/0.005988, allocations: 241.8 kB / 274 MB, free: 268 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006223/0.00661, allocations: 435.1 kB / 274.4 MB, free: 15.84 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006657/0.007276, allocations: 1.17 MB / 275.6 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002176/0.007493, allocations: 174.2 kB / 275.7 MB, free: 14.47 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004926/0.007986, allocations: 0.6744 MB / 276.4 MB, free: 13.8 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003288/0.008315, allocations: 427 kB / 276.8 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.265e-05/0.008407, allocations: 92 kB / 276.9 MB, free: 13.29 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001812/0.008589, allocations: 151.9 kB / 277.1 MB, free: 13.14 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000143/0.008732, allocations: 227.2 kB / 277.3 MB, free: 12.92 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002095/0.008941, allocations: 331.2 kB / 277.6 MB, free: 12.59 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006014/0.009543, allocations: 0.8177 MB / 278.4 MB, free: 11.77 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.895e-06/0.009545, allocations: 4 kB / 278.4 MB, free: 11.77 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.92e-07/0.009546, allocations: 0 / 278.4 MB, free: 11.77 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.082e-06/0.009552, allocations: 0 / 278.4 MB, free: 11.77 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.001477/0.01103, allocations: 1.357 MB / 279.8 MB, free: 10.36 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.25e-05/0.01106, allocations: 8.922 kB / 279.8 MB, free: 10.36 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002176/0.01128, allocations: 144.4 kB / 279.9 MB, free: 10.21 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005398/0.01182, allocations: 414 kB / 280.3 MB, free: 9.781 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.608e-05/0.01188, allocations: 54.38 kB / 280.4 MB, free: 9.73 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001138/0.01199, allocations: 64.38 kB / 280.5 MB, free: 9.668 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00101/0.013, allocations: 0.6525 MB / 281.1 MB, free: 9.008 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.342e-05/0.01302, allocations: 8.141 kB / 281.1 MB, free: 9 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.793e-05/0.01308, allocations: 32.12 kB / 281.1 MB, free: 8.969 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.362e-05/0.01309, allocations: 16 kB / 281.2 MB, free: 8.953 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007787/0.01387, allocations: 0.519 MB / 281.7 MB, free: 8.43 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002336/0.01621, allocations: 1.741 MB / 283.4 MB, free: 6.629 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007387/0.01695, allocations: 0.5074 MB / 283.9 MB, free: 6.109 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003601/0.01731, allocations: 275.1 kB / 284.2 MB, free: 5.836 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.682e-05/0.01736, allocations: 13 kB / 284.2 MB, free: 5.824 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005223/0.01789, allocations: 418.6 kB / 284.6 MB, free: 5.398 MB / 266.7 MB Notification: Performance of pre-optimization done (n=86): time 2.725e-06/0.01789, allocations: 0 / 284.6 MB, free: 5.398 MB / 266.7 MB Notification: Performance of matching and sorting (n=106): time 0.0047/0.02259, allocations: 2.875 MB / 287.5 MB, free: 2.48 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.812e-05/0.02263, allocations: 68.34 kB / 287.6 MB, free: 2.398 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003237/0.02295, allocations: 418.6 kB / 288 MB, free: 1.977 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.341e-05/0.02302, allocations: 53.69 kB / 288 MB, free: 1.918 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001868/0.02321, allocations: 328.2 kB / 288.3 MB, free: 1.59 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002597/0.02347, allocations: 372.9 kB / 288.7 MB, free: 1.223 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002289/0.0237, allocations: 184.5 kB / 288.9 MB, free: 1.035 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001799/0.02388, allocations: 0.543 MB / 289.4 MB, free: 492 kB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000445/0.02433, allocations: 270.5 kB / 289.7 MB, free: 220 kB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1066/0.1309, allocations: 375.5 kB / 290.1 MB, free: 29.22 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007982/0.1317, allocations: 0.5296 MB / 290.6 MB, free: 29.13 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.668e-06/0.1317, allocations: 1.156 kB / 290.6 MB, free: 29.13 MB / 266.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.001655/0.1334, allocations: 1.038 MB / 291.6 MB, free: 29.03 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.289e-05/0.1334, allocations: 4.875 kB / 291.6 MB, free: 29.03 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.228e-05/0.1334, allocations: 2.219 kB / 291.6 MB, free: 29.03 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000766/0.1342, allocations: 0.5529 MB / 292.2 MB, free: 28.99 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004605/0.1346, allocations: 193 kB / 292.4 MB, free: 28.99 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002077/0.1367, allocations: 4.034 MB / 296.4 MB, free: 25.45 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004518/0.1372, allocations: 114.8 kB / 296.5 MB, free: 25.45 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.372e-05/0.1372, allocations: 35.19 kB / 296.6 MB, free: 25.45 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.0002361/0.1375, allocations: 220 kB / 296.8 MB, free: 25.29 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001307/0.1376, allocations: 105 kB / 296.9 MB, free: 25.29 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.497e-05/0.1377, allocations: 104.8 kB / 297 MB, free: 25.27 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.889e-06/0.1377, allocations: 14.41 kB / 297 MB, free: 25.27 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.035e-06/0.1377, allocations: 0 / 297 MB, free: 25.27 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.052e-05/0.1377, allocations: 7.234 kB / 297 MB, free: 25.27 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002442/0.1401, allocations: 1.899 MB / 298.9 MB, free: 24.8 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.041e-06/0.1402, allocations: 4.141 kB / 298.9 MB, free: 24.8 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000408/0.1406, allocations: 169.2 kB / 299.1 MB, free: 24.8 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006296/0.1412, allocations: 0.5468 MB / 299.6 MB, free: 24.72 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.288e-05/0.1413, allocations: 39.56 kB / 299.6 MB, free: 24.71 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001595/0.1429, allocations: 3.798 MB / 303.4 MB, free: 21.24 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.1429, allocations: 2.016 kB / 303.4 MB, free: 21.24 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001747/0.1446, allocations: 1.395 MB / 304.8 MB, free: 20.68 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002282/0.1448, allocations: 162.2 kB / 305 MB, free: 20.6 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.589e-05/0.1449, allocations: 35.28 kB / 305 MB, free: 20.57 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004262/0.1453, allocations: 135.6 kB / 305.2 MB, free: 20.55 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005012/0.1458, allocations: 355.9 kB / 305.5 MB, free: 20.48 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.901e-05/0.1459, allocations: 41.45 kB / 305.6 MB, free: 20.47 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001402/0.146, allocations: 277.7 kB / 305.8 MB, free: 20.31 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.146, allocations: 0 / 305.8 MB, free: 20.31 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004962/0.1465, allocations: 243.8 kB / 306.1 MB, free: 20.28 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.0002107/0.1467, allocations: 172.1 kB / 306.2 MB, free: 20.16 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001072/0.1478, allocations: 0.916 MB / 307.2 MB, free: 19.85 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.918e-06/0.1478, allocations: 1.375 kB / 307.2 MB, free: 19.85 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004969/0.1483, allocations: 0.5945 MB / 307.7 MB, free: 19.57 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004629/0.1488, allocations: 176 kB / 307.9 MB, free: 19.51 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002028/0.1508, allocations: 1.7 MB / 309.6 MB, free: 18.53 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.916e-05/0.1509, allocations: 161.2 kB / 309.8 MB, free: 18.46 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001933/0.1511, allocations: 84.19 kB / 309.9 MB, free: 18.43 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001372/0.1512, allocations: 70.42 kB / 309.9 MB, free: 18.41 MB / 266.7 MB Notification: Performance of SimCode: time 4.11e-07/0.1512, allocations: 0 / 309.9 MB, free: 18.41 MB / 266.7 MB Notification: Performance of Templates: time 0.01533/0.1666, allocations: 16.91 MB / 326.8 MB, free: 2.516 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.266770616173744]