Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses.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.001437/0.001437, allocations: 78.66 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.001656/0.001656, allocations: 170.9 kB / 24.82 MB, free: 9.312 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 0.9511/0.9511, allocations: 177.1 MB / 205.3 MB, free: 5.504 MB / 186.7 MB " [Timeout remaining time 179] 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(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.1.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.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.703e-06/1.703e-06, allocations: 0 / 273.4 MB, free: 1.305 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.196e-05/1.367e-05, allocations: 10.25 kB / 273.4 MB, free: 1.293 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.004296/0.004309, allocations: 4.329 MB / 277.7 MB, free: 12.95 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002361/0.00667, allocations: 1.558 MB / 279.3 MB, free: 11.38 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003532/0.007024, allocations: 11.94 kB / 279.3 MB, free: 11.37 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004124/0.007436, allocations: 130.6 kB / 279.4 MB, free: 11.24 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005805/0.008017, allocations: 297.5 kB / 279.7 MB, free: 10.95 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007867/0.008803, allocations: 443.1 kB / 280.2 MB, free: 10.51 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009588/0.009762, allocations: 1.205 MB / 281.4 MB, free: 9.305 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002735/0.01004, allocations: 174.3 kB / 281.5 MB, free: 9.121 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009521/0.01099, allocations: 0.6979 MB / 282.2 MB, free: 8.422 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004245/0.01141, allocations: 446.9 kB / 282.7 MB, free: 7.984 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001076/0.01152, allocations: 96 kB / 282.8 MB, free: 7.891 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002286/0.01175, allocations: 167.8 kB / 282.9 MB, free: 7.727 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001722/0.01192, allocations: 251.2 kB / 283.2 MB, free: 7.48 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002391/0.01216, allocations: 339.2 kB / 283.5 MB, free: 7.148 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007212/0.01288, allocations: 0.8565 MB / 284.4 MB, free: 6.289 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.866e-06/0.01288, allocations: 4 kB / 284.4 MB, free: 6.285 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.41e-07/0.01288, allocations: 0 / 284.4 MB, free: 6.285 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.444e-06/0.01289, allocations: 0 / 284.4 MB, free: 6.285 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: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.001834/0.01473, allocations: 1.43 MB / 285.8 MB, free: 4.805 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.431e-05/0.01476, allocations: 11.97 kB / 285.8 MB, free: 4.793 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004122/0.01517, allocations: 168.4 kB / 286 MB, free: 4.629 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004152/0.01559, allocations: 434.8 kB / 286.4 MB, free: 4.172 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.813e-05/0.01563, allocations: 58.38 kB / 286.4 MB, free: 4.117 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.922e-05/0.01572, allocations: 72.33 kB / 286.5 MB, free: 4.047 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006692/0.01638, allocations: 0.5543 MB / 287.1 MB, free: 3.484 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.212e-05/0.01641, allocations: 11.92 kB / 287.1 MB, free: 3.473 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.067e-05/0.01646, allocations: 28 kB / 287.1 MB, free: 3.445 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.122e-05/0.01647, allocations: 16 kB / 287.1 MB, free: 3.43 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005125/0.01698, allocations: 409.5 kB / 287.5 MB, free: 3.027 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002132/0.01911, allocations: 1.682 MB / 289.2 MB, free: 1.297 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005354/0.01965, allocations: 463.3 kB / 289.7 MB, free: 0.832 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002459/0.01989, allocations: 227.1 kB / 289.9 MB, free: 0.6055 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.038e-05/0.01994, allocations: 21 kB / 289.9 MB, free: 0.5859 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003664/0.02031, allocations: 358.5 kB / 290.2 MB, free: 224 kB / 266.7 MB Notification: Performance of pre-optimization done (n=90): time 1.873e-06/0.02031, allocations: 0 / 290.2 MB, free: 224 kB / 266.7 MB Notification: Performance of matching and sorting (n=110): time 0.1115/0.1318, allocations: 2.5 MB / 292.7 MB, free: 24.86 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.34e-05/0.1318, allocations: 66.91 kB / 292.8 MB, free: 24.8 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003336/0.1322, allocations: 426.2 kB / 293.2 MB, free: 24.62 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.8e-05/0.1322, allocations: 56.44 kB / 293.3 MB, free: 24.59 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001603/0.1324, allocations: 333.4 kB / 293.6 MB, free: 24.39 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002616/0.1327, allocations: 391.5 kB / 294 MB, free: 24.2 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002506/0.1329, allocations: 198.1 kB / 294.2 MB, free: 24.17 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001555/0.1331, allocations: 0.5488 MB / 294.7 MB, free: 23.68 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004431/0.1335, allocations: 192.8 kB / 294.9 MB, free: 23.68 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004458/0.134, allocations: 310.3 kB / 295.2 MB, free: 23.59 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006288/0.1346, allocations: 440.4 kB / 295.7 MB, free: 23.5 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.511e-06/0.1346, allocations: 0 / 295.7 MB, free: 23.5 MB / 266.7 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.001376/0.136, allocations: 0.8785 MB / 296.5 MB, free: 23.36 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.136, allocations: 5.281 kB / 296.5 MB, free: 23.36 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.728e-06/0.136, allocations: 6.281 kB / 296.5 MB, free: 23.36 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005975/0.1366, allocations: 426.9 kB / 297 MB, free: 23.32 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004353/0.137, allocations: 191.4 kB / 297.2 MB, free: 23.32 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001836/0.1389, allocations: 3.908 MB / 301.1 MB, free: 19.79 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004428/0.1393, allocations: 124.1 kB / 301.2 MB, free: 19.78 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.796e-05/0.1394, allocations: 25.98 kB / 301.2 MB, free: 19.78 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,9), (1,5), (1,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0001766/0.1395, allocations: 221.9 kB / 301.4 MB, free: 19.62 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001326/0.1397, allocations: 114.2 kB / 301.5 MB, free: 19.58 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.765e-05/0.1398, allocations: 106.7 kB / 301.6 MB, free: 19.57 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.848e-06/0.1398, allocations: 14.94 kB / 301.7 MB, free: 19.56 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.01e-05/0.1398, allocations: 1.25 kB / 301.7 MB, free: 19.56 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.03e-05/0.1398, allocations: 5.438 kB / 301.7 MB, free: 19.56 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002213/0.142, allocations: 1.696 MB / 303.4 MB, free: 18.92 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.39e-06/0.142, allocations: 2.188 kB / 303.4 MB, free: 18.92 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004/0.1424, allocations: 176.5 kB / 303.5 MB, free: 18.9 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005196/0.1429, allocations: 420.2 kB / 303.9 MB, free: 18.77 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.881e-05/0.143, allocations: 35.33 kB / 304 MB, free: 18.76 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001491/0.1445, allocations: 3.689 MB / 307.7 MB, free: 15.33 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.1445, allocations: 1.375 kB / 307.7 MB, free: 15.33 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001399/0.1459, allocations: 1.18 MB / 308.8 MB, free: 14.82 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002141/0.1461, allocations: 166.9 kB / 309 MB, free: 14.73 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.651e-05/0.1462, allocations: 31.69 kB / 309 MB, free: 14.71 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004213/0.1466, allocations: 135.6 kB / 309.2 MB, free: 14.69 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004508/0.1471, allocations: 360.8 kB / 309.5 MB, free: 14.61 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.466e-05/0.1471, allocations: 38.23 kB / 309.6 MB, free: 14.6 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001329/0.1472, allocations: 267 kB / 309.8 MB, free: 14.46 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1472, allocations: 0 / 309.8 MB, free: 14.46 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005146/0.1478, allocations: 251.9 kB / 310.1 MB, free: 14.43 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 (90): * Single equations (assignments): 87 * 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,8), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007114/0.1485, allocations: 391.4 kB / 310.4 MB, free: 14.26 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007726/0.1492, allocations: 0.789 MB / 311.2 MB, free: 14 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.1492, allocations: 0 / 311.2 MB, free: 14 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004411/0.1497, allocations: 0.5407 MB / 311.8 MB, free: 13.75 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005064/0.1502, allocations: 192.2 kB / 312 MB, free: 13.68 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00209/0.1523, allocations: 1.726 MB / 313.7 MB, free: 12.45 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.497e-05/0.1524, allocations: 177.2 kB / 313.9 MB, free: 12.25 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002049/0.1526, allocations: 85.64 kB / 313.9 MB, free: 12.16 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002806/0.1529, allocations: 234.1 kB / 314.2 MB, free: 11.93 MB / 266.7 MB Notification: Performance of SimCode: time 6.61e-07/0.1529, allocations: 4 kB / 314.2 MB, free: 11.93 MB / 266.7 MB Notification: Performance of Templates: time 0.01789/0.1707, allocations: 17.35 MB / 331.5 MB, free: 10.78 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & ./Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.1850213878788054]