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.001109/0.001109, allocations: 78.97 kB / 21.42 MB, free: 3.078 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.001176/0.001176, allocations: 148.9 kB / 24.81 MB, free: 9.27 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.9844/0.9844, allocations: 173.3 MB / 201.4 MB, free: 9.23 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.403e-06/1.403e-06, allocations: 0 / 268.4 MB, free: 6.227 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.999e-05/2.139e-05, allocations: 2.312 kB / 268.4 MB, free: 6.223 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.004196/0.004217, allocations: 4.175 MB / 272.6 MB, free: 2.016 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002299/0.006516, allocations: 1.375 MB / 273.9 MB, free: 0.6367 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004813/0.006997, allocations: 15.88 kB / 274 MB, free: 0.6211 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003361/0.007334, allocations: 114.8 kB / 274.1 MB, free: 0.5078 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004323/0.007766, allocations: 241.8 kB / 274.3 MB, free: 276 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001049/0.008814, allocations: 443 kB / 274.7 MB, free: 15.84 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00109/0.009905, allocations: 1.162 MB / 275.9 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002864/0.01019, allocations: 170.2 kB / 276.1 MB, free: 14.48 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009665/0.01116, allocations: 0.6745 MB / 276.7 MB, free: 13.81 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000399/0.01156, allocations: 427 kB / 277.2 MB, free: 13.39 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001114/0.01167, allocations: 92 kB / 277.3 MB, free: 13.3 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002411/0.01191, allocations: 155.8 kB / 277.4 MB, free: 13.15 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001667/0.01208, allocations: 227.3 kB / 277.6 MB, free: 12.93 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002478/0.01232, allocations: 331.2 kB / 278 MB, free: 12.6 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007592/0.01308, allocations: 0.8137 MB / 278.8 MB, free: 11.79 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.571e-06/0.01309, allocations: 4 kB / 278.8 MB, free: 11.78 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.253e-06/0.01309, allocations: 0 / 278.8 MB, free: 11.78 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.271e-05/0.0131, allocations: 0 / 278.8 MB, free: 11.78 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.00172/0.01482, allocations: 1.376 MB / 280.1 MB, free: 10.36 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/0.01486, allocations: 8.922 kB / 280.2 MB, free: 10.35 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002473/0.01511, allocations: 144.4 kB / 280.3 MB, free: 10.21 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004276/0.01554, allocations: 410.1 kB / 280.7 MB, free: 9.777 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.931e-05/0.01558, allocations: 50.38 kB / 280.7 MB, free: 9.73 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.219e-05/0.01567, allocations: 72.36 kB / 280.8 MB, free: 9.66 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007242/0.01639, allocations: 0.5667 MB / 281.4 MB, free: 9.086 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.354e-05/0.01642, allocations: 12.12 kB / 281.4 MB, free: 9.074 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.079e-05/0.01647, allocations: 28.12 kB / 281.4 MB, free: 9.047 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.254e-05/0.01648, allocations: 16 kB / 281.4 MB, free: 9.031 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000541/0.01702, allocations: 417.5 kB / 281.8 MB, free: 8.621 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002205/0.01923, allocations: 1.675 MB / 283.5 MB, free: 6.895 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005617/0.01979, allocations: 454 kB / 284 MB, free: 6.438 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002563/0.02004, allocations: 223.1 kB / 284.2 MB, free: 6.215 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.225e-05/0.0201, allocations: 17 kB / 284.2 MB, free: 6.199 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003805/0.02048, allocations: 362.5 kB / 284.6 MB, free: 5.828 MB / 266.7 MB Notification: Performance of pre-optimization done (n=86): time 2.124e-06/0.02048, allocations: 4 kB / 284.6 MB, free: 5.824 MB / 266.7 MB Notification: Performance of matching and sorting (n=106): time 0.003774/0.02425, allocations: 2.497 MB / 287.1 MB, free: 3.285 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.005e-05/0.02428, allocations: 64.41 kB / 287.1 MB, free: 3.207 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000238/0.02452, allocations: 410.3 kB / 287.5 MB, free: 2.793 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.029e-05/0.02458, allocations: 53.69 kB / 287.6 MB, free: 2.734 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001481/0.02473, allocations: 324.1 kB / 287.9 MB, free: 2.41 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002095/0.02494, allocations: 380.8 kB / 288.3 MB, free: 2.035 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001968/0.02514, allocations: 188.5 kB / 288.4 MB, free: 1.844 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001464/0.02528, allocations: 0.5507 MB / 289 MB, free: 1.281 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002823/0.02557, allocations: 202.5 kB / 289.2 MB, free: 1.082 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000291/0.02586, allocations: 320.2 kB / 289.5 MB, free: 0.7461 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004534/0.02631, allocations: 458.8 kB / 289.9 MB, free: 284 kB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.02631, allocations: 0 / 289.9 MB, free: 284 kB / 266.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.1193/0.1456, allocations: 0.8881 MB / 290.8 MB, free: 29.23 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.344e-05/0.1456, allocations: 5.844 kB / 290.8 MB, free: 29.23 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.013e-05/0.1456, allocations: 1.031 kB / 290.8 MB, free: 29.23 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008178/0.1464, allocations: 0.5351 MB / 291.4 MB, free: 29.2 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005659/0.147, allocations: 194.5 kB / 291.6 MB, free: 29.2 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002142/0.1491, allocations: 3.948 MB / 295.5 MB, free: 25.68 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005366/0.1497, allocations: 115.6 kB / 295.6 MB, free: 25.68 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.873e-05/0.1497, allocations: 27.8 kB / 295.7 MB, free: 25.68 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.0002299/0.15, allocations: 218.9 kB / 295.9 MB, free: 25.52 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001432/0.1501, allocations: 105.5 kB / 296 MB, free: 25.52 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001052/0.1502, allocations: 105.5 kB / 296.1 MB, free: 25.51 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.127e-06/0.1502, allocations: 10.03 kB / 296.1 MB, free: 25.51 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.1502, allocations: 0 / 296.1 MB, free: 25.51 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.337e-06/0.1502, allocations: 9.703 kB / 296.1 MB, free: 25.5 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002513/0.1527, allocations: 1.724 MB / 297.8 MB, free: 25.06 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/0.1527, allocations: 1.984 kB / 297.8 MB, free: 25.06 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003812/0.1531, allocations: 169 kB / 298 MB, free: 25.06 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005723/0.1537, allocations: 0.5235 MB / 298.5 MB, free: 24.99 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.953e-05/0.1538, allocations: 41.45 kB / 298.6 MB, free: 24.99 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001449/0.1552, allocations: 3.713 MB / 302.3 MB, free: 21.7 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.065e-06/0.1552, allocations: 3.344 kB / 302.3 MB, free: 21.7 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001419/0.1566, allocations: 1.237 MB / 303.5 MB, free: 21.31 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002512/0.1569, allocations: 157.7 kB / 303.7 MB, free: 21.27 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.702e-05/0.157, allocations: 31.23 kB / 303.7 MB, free: 21.27 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004244/0.1574, allocations: 133.5 kB / 303.8 MB, free: 21.27 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005394/0.1579, allocations: 362.7 kB / 304.2 MB, free: 21.19 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.402e-05/0.158, allocations: 35.42 kB / 304.2 MB, free: 21.18 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000139/0.1581, allocations: 257.9 kB / 304.5 MB, free: 21.04 MB / 266.7 MB Notification: Performance of sort global known variables: time 4.1e-08/0.1581, allocations: 0 / 304.5 MB, free: 21.04 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005856/0.1587, allocations: 247.8 kB / 304.7 MB, free: 21.01 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.0002141/0.1589, allocations: 173.1 kB / 304.9 MB, free: 20.89 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009436/0.1599, allocations: 0.8029 MB / 305.7 MB, free: 20.65 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.1599, allocations: 1.062 kB / 305.7 MB, free: 20.65 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004906/0.1604, allocations: 0.5445 MB / 306.2 MB, free: 20.4 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004966/0.1609, allocations: 171.8 kB / 306.4 MB, free: 20.34 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002241/0.1631, allocations: 1.666 MB / 308.1 MB, free: 19.39 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000114/0.1632, allocations: 164.4 kB / 308.2 MB, free: 19.32 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002175/0.1634, allocations: 84.17 kB / 308.3 MB, free: 19.29 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002743/0.1637, allocations: 215.9 kB / 308.5 MB, free: 19.22 MB / 266.7 MB Notification: Performance of SimCode: time 7.61e-07/0.1637, allocations: 7.328 kB / 308.5 MB, free: 19.21 MB / 266.7 MB Notification: Performance of Templates: time 0.01784/0.1816, allocations: 17.24 MB / 325.7 MB, free: 3.984 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.2713098912499845]