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.0014/0.0014, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.001582/0.001582, allocations: 161 kB / 24.55 MB, free: 16 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 0.9518/0.9518, allocations: 177.1 MB / 205 MB, free: 5.625 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 2.796e-06/2.796e-06, allocations: 4 kB / 273 MB, free: 1.547 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.361e-05/2.641e-05, allocations: 2.312 kB / 273 MB, free: 1.543 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.01166/0.01168, allocations: 4.411 MB / 277.4 MB, free: 13.11 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00581/0.01749, allocations: 1.562 MB / 278.9 MB, free: 11.54 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004451/0.01794, allocations: 19.88 kB / 279 MB, free: 11.52 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004415/0.01838, allocations: 138.6 kB / 279.1 MB, free: 11.39 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006723/0.01905, allocations: 289.5 kB / 279.4 MB, free: 11.1 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003983/0.02303, allocations: 447 kB / 279.8 MB, free: 10.66 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001206/0.02424, allocations: 1.201 MB / 281 MB, free: 9.461 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003304/0.02457, allocations: 170.3 kB / 281.2 MB, free: 9.281 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001089/0.02566, allocations: 0.7057 MB / 281.9 MB, free: 8.574 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003239/0.0289, allocations: 442.9 kB / 282.3 MB, free: 8.141 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001869/0.02908, allocations: 96 kB / 282.4 MB, free: 8.047 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003404/0.02943, allocations: 159.8 kB / 282.6 MB, free: 7.891 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002378/0.02966, allocations: 259.1 kB / 282.8 MB, free: 7.637 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003851/0.03005, allocations: 335.2 kB / 283.2 MB, free: 7.309 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001467/0.03152, allocations: 0.8604 MB / 284 MB, free: 6.445 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/0.03152, allocations: 0 / 284 MB, free: 6.445 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.03152, allocations: 4 kB / 284 MB, free: 6.441 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.17e-05/0.03154, allocations: 0 / 284 MB, free: 6.441 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.002174/0.03372, allocations: 1.411 MB / 285.4 MB, free: 4.98 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.497e-05/0.03376, allocations: 8.031 kB / 285.4 MB, free: 4.973 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004385/0.0342, allocations: 172.3 kB / 285.6 MB, free: 4.805 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005836/0.03479, allocations: 434.8 kB / 286 MB, free: 4.348 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.679e-05/0.03483, allocations: 50.38 kB / 286.1 MB, free: 4.301 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001095/0.03494, allocations: 80.27 kB / 286.2 MB, free: 4.223 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009297/0.03587, allocations: 0.6246 MB / 286.8 MB, free: 3.59 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.215e-05/0.03589, allocations: 11.88 kB / 286.8 MB, free: 3.578 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.599e-05/0.03595, allocations: 28 kB / 286.8 MB, free: 3.551 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.545e-05/0.03597, allocations: 16 kB / 286.8 MB, free: 3.535 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007644/0.03673, allocations: 499.5 kB / 287.3 MB, free: 3.047 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002532/0.03926, allocations: 1.76 MB / 289.1 MB, free: 1.23 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008075/0.04007, allocations: 0.4956 MB / 289.6 MB, free: 0.7227 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003583/0.04043, allocations: 263.1 kB / 289.8 MB, free: 472 kB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.716e-05/0.0405, allocations: 21 kB / 289.9 MB, free: 452 kB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005328/0.04103, allocations: 406.6 kB / 290.3 MB, free: 28 kB / 266.7 MB Notification: Performance of pre-optimization done (n=90): time 2.705e-06/0.04103, allocations: 0 / 290.3 MB, free: 28 kB / 266.7 MB Notification: Performance of matching and sorting (n=110): time 0.1214/0.1625, allocations: 2.819 MB / 293.1 MB, free: 24.35 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.189e-05/0.1625, allocations: 63.84 kB / 293.1 MB, free: 24.29 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003859/0.1629, allocations: 427.7 kB / 293.6 MB, free: 24.11 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.541e-05/0.163, allocations: 55.97 kB / 293.6 MB, free: 24.08 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001393/0.1631, allocations: 328.4 kB / 293.9 MB, free: 23.89 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002163/0.1633, allocations: 392.5 kB / 294.3 MB, free: 23.69 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002721/0.1636, allocations: 192.9 kB / 294.5 MB, free: 23.66 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001066/0.1637, allocations: 0.5491 MB / 295.1 MB, free: 23.17 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005693/0.1643, allocations: 245.1 kB / 295.3 MB, free: 23.16 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005495/0.1648, allocations: 360.9 kB / 295.6 MB, free: 23.08 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007745/0.1656, allocations: 0.4999 MB / 296.1 MB, free: 22.99 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.1656, allocations: 1.031 kB / 296.1 MB, free: 22.99 MB / 266.7 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.001828/0.1674, allocations: 0.9754 MB / 297.1 MB, free: 22.85 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.216e-05/0.1674, allocations: 13.56 kB / 297.1 MB, free: 22.84 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.063e-05/0.1674, allocations: 2.406 kB / 297.1 MB, free: 22.84 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007841/0.1682, allocations: 441.5 kB / 297.6 MB, free: 22.81 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005519/0.1688, allocations: 189.2 kB / 297.7 MB, free: 22.81 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002261/0.171, allocations: 3.954 MB / 301.7 MB, free: 19.26 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005432/0.1716, allocations: 129.5 kB / 301.8 MB, free: 19.25 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.589e-05/0.1717, allocations: 37.52 kB / 301.9 MB, free: 19.25 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.0002087/0.1719, allocations: 223.4 kB / 302.1 MB, free: 19.09 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001485/0.172, allocations: 108 kB / 302.2 MB, free: 19.05 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001065/0.1721, allocations: 110.5 kB / 302.3 MB, free: 19 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.454e-06/0.1721, allocations: 11.53 kB / 302.3 MB, free: 19 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.797e-06/0.1721, allocations: 4 kB / 302.3 MB, free: 19 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.087e-05/0.1721, allocations: 5.297 kB / 302.3 MB, free: 19 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002799/0.1749, allocations: 1.853 MB / 304.2 MB, free: 18.1 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.312e-06/0.1749, allocations: 6.812 kB / 304.2 MB, free: 18.1 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005027/0.1755, allocations: 165.7 kB / 304.3 MB, free: 18.09 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006401/0.1761, allocations: 434 kB / 304.8 MB, free: 17.95 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.456e-05/0.1762, allocations: 37.16 kB / 304.8 MB, free: 17.94 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001879/0.178, allocations: 3.737 MB / 308.5 MB, free: 14.45 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.178, allocations: 5.156 kB / 308.5 MB, free: 14.45 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00189/0.1799, allocations: 1.313 MB / 309.9 MB, free: 13.86 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002791/0.1802, allocations: 158.3 kB / 310 MB, free: 13.78 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.309e-05/0.1803, allocations: 34.22 kB / 310 MB, free: 13.76 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005352/0.1808, allocations: 134.8 kB / 310.2 MB, free: 13.74 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005741/0.1814, allocations: 369.4 kB / 310.5 MB, free: 13.65 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.721e-05/0.1815, allocations: 44.19 kB / 310.6 MB, free: 13.64 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001971/0.1817, allocations: 286.7 kB / 310.9 MB, free: 13.48 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1817, allocations: 0 / 310.9 MB, free: 13.48 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006456/0.1823, allocations: 241.2 kB / 311.1 MB, free: 13.45 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.0008891/0.1832, allocations: 397.4 kB / 311.5 MB, free: 13.28 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001271/0.1845, allocations: 0.8768 MB / 312.4 MB, free: 12.96 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.1845, allocations: 3.906 kB / 312.4 MB, free: 12.96 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006448/0.1851, allocations: 0.5804 MB / 312.9 MB, free: 12.54 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006533/0.1858, allocations: 185.9 kB / 313.1 MB, free: 12.4 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002658/0.1884, allocations: 1.751 MB / 314.9 MB, free: 10.65 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000109/0.1886, allocations: 173.2 kB / 315 MB, free: 10.46 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002437/0.1888, allocations: 85.64 kB / 315.1 MB, free: 10.37 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001712/0.189, allocations: 72.48 kB / 315.2 MB, free: 10.3 MB / 266.7 MB Notification: Performance of SimCode: time 5.41e-07/0.189, allocations: 0 / 315.2 MB, free: 10.3 MB / 266.7 MB Notification: Performance of Templates: time 0.01819/0.2072, allocations: 16.06 MB / 331.3 MB, free: 10.42 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.6074806610122323]