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.0008517/0.0008517, allocations: 80.06 kB / 21.18 MB, free: 3.383 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.001131/0.001131, allocations: 145.1 kB / 24.54 MB, free: 28 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.9833/0.9833, allocations: 173.3 MB / 201.1 MB, free: 9.336 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.262e-06/1.262e-06, allocations: 0 / 268 MB, free: 6.453 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.15e-05/2.276e-05, allocations: 6.25 kB / 268 MB, free: 6.445 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.004147/0.00417, allocations: 4.249 MB / 272.2 MB, free: 2.164 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002315/0.006485, allocations: 1.372 MB / 273.6 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002997/0.006784, allocations: 19.88 kB / 273.6 MB, free: 0.7695 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003024/0.007087, allocations: 110.9 kB / 273.7 MB, free: 0.6602 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003636/0.00745, allocations: 241.8 kB / 274 MB, free: 432 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009308/0.008381, allocations: 451 kB / 274.4 MB, free: 15.98 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008077/0.009189, allocations: 1.166 MB / 275.6 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002667/0.009455, allocations: 166.2 kB / 275.7 MB, free: 14.63 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006387/0.01009, allocations: 0.6784 MB / 276.4 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004009/0.01049, allocations: 423 kB / 276.8 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001111/0.01061, allocations: 95.98 kB / 276.9 MB, free: 13.44 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002085/0.01081, allocations: 151.9 kB / 277.1 MB, free: 13.29 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000166/0.01098, allocations: 231.2 kB / 277.3 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004246/0.01141, allocations: 331.2 kB / 277.6 MB, free: 12.74 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007433/0.01215, allocations: 0.8137 MB / 278.4 MB, free: 11.93 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.415e-06/0.01215, allocations: 0 / 278.4 MB, free: 11.93 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.263e-06/0.01215, allocations: 0 / 278.4 MB, free: 11.93 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.103e-05/0.01216, allocations: 0 / 278.4 MB, free: 11.93 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.001627/0.01379, allocations: 1.364 MB / 279.8 MB, free: 10.51 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.624e-05/0.01383, allocations: 12.92 kB / 279.8 MB, free: 10.5 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002336/0.01406, allocations: 144.4 kB / 280 MB, free: 10.36 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004554/0.01452, allocations: 398.1 kB / 280.3 MB, free: 9.941 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.059e-05/0.01456, allocations: 54.38 kB / 280.4 MB, free: 9.891 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.435e-05/0.01465, allocations: 76.31 kB / 280.5 MB, free: 9.816 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008806/0.01553, allocations: 0.6448 MB / 281.1 MB, free: 9.164 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.106e-05/0.01555, allocations: 8.141 kB / 281.1 MB, free: 9.156 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.217e-05/0.0156, allocations: 32.12 kB / 281.2 MB, free: 9.125 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.474e-05/0.01562, allocations: 16 kB / 281.2 MB, free: 9.109 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007815/0.0164, allocations: 0.519 MB / 281.7 MB, free: 8.586 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002286/0.01869, allocations: 1.741 MB / 283.4 MB, free: 6.785 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006938/0.01938, allocations: 0.5059 MB / 283.9 MB, free: 6.266 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003682/0.01975, allocations: 271.1 kB / 284.2 MB, free: 5.996 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.241e-05/0.01981, allocations: 21 kB / 284.2 MB, free: 5.977 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007542/0.02056, allocations: 414.6 kB / 284.6 MB, free: 5.555 MB / 266.7 MB Notification: Performance of pre-optimization done (n=86): time 2.435e-06/0.02057, allocations: 0 / 284.6 MB, free: 5.555 MB / 266.7 MB Notification: Performance of matching and sorting (n=106): time 0.004482/0.02505, allocations: 2.871 MB / 287.5 MB, free: 2.641 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.61e-05/0.02509, allocations: 72.34 kB / 287.6 MB, free: 2.555 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002844/0.02537, allocations: 410.6 kB / 288 MB, free: 2.141 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.75e-05/0.02543, allocations: 53.69 kB / 288 MB, free: 2.082 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001425/0.02557, allocations: 328.2 kB / 288.3 MB, free: 1.754 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002009/0.02577, allocations: 372.9 kB / 288.7 MB, free: 1.387 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001989/0.02597, allocations: 192.6 kB / 288.9 MB, free: 1.191 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000138/0.02611, allocations: 0.5352 MB / 289.4 MB, free: 0.6445 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004044/0.02651, allocations: 270.4 kB / 289.7 MB, free: 388 kB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1175/0.144, allocations: 381.5 kB / 290.1 MB, free: 26.23 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008617/0.1448, allocations: 0.5298 MB / 290.6 MB, free: 26.15 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.1448, allocations: 1.641 kB / 290.6 MB, free: 26.15 MB / 266.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.001717/0.1466, allocations: 1.036 MB / 291.6 MB, free: 26.05 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.874e-05/0.1466, allocations: 7.656 kB / 291.6 MB, free: 26.05 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.792e-06/0.1466, allocations: 1.062 kB / 291.6 MB, free: 26.05 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000774/0.1474, allocations: 0.5529 MB / 292.2 MB, free: 26.02 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004405/0.1478, allocations: 197.7 kB / 292.4 MB, free: 26.02 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002005/0.1498, allocations: 4.025 MB / 296.4 MB, free: 22.48 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004527/0.1503, allocations: 120.2 kB / 296.5 MB, free: 22.48 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.289e-05/0.1503, allocations: 34.47 kB / 296.6 MB, free: 22.48 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.0002118/0.1505, allocations: 222.4 kB / 296.8 MB, free: 22.31 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001205/0.1506, allocations: 105.4 kB / 296.9 MB, free: 22.31 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.092e-05/0.1507, allocations: 98.22 kB / 297 MB, free: 22.3 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.125e-06/0.1507, allocations: 15.16 kB / 297 MB, free: 22.3 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/0.1507, allocations: 3.188 kB / 297 MB, free: 22.3 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.967e-06/0.1507, allocations: 5.438 kB / 297 MB, free: 22.3 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002388/0.1531, allocations: 1.899 MB / 298.9 MB, free: 21.83 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.1531, allocations: 2.844 kB / 298.9 MB, free: 21.83 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003971/0.1535, allocations: 173.2 kB / 299.1 MB, free: 21.83 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006361/0.1542, allocations: 0.5435 MB / 299.6 MB, free: 21.75 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.349e-05/0.1542, allocations: 35.66 kB / 299.6 MB, free: 21.75 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001629/0.1559, allocations: 3.806 MB / 303.5 MB, free: 18.43 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.1559, allocations: 2.438 kB / 303.5 MB, free: 18.43 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001719/0.1576, allocations: 1.392 MB / 304.8 MB, free: 17.96 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002436/0.1578, allocations: 157.4 kB / 305 MB, free: 17.89 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.449e-05/0.1579, allocations: 37.44 kB / 305 MB, free: 17.87 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004281/0.1583, allocations: 134.9 kB / 305.2 MB, free: 17.85 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005011/0.1588, allocations: 363.4 kB / 305.5 MB, free: 17.77 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.916e-05/0.1589, allocations: 41.98 kB / 305.6 MB, free: 17.76 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001638/0.1591, allocations: 267.7 kB / 305.8 MB, free: 17.61 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1591, allocations: 0 / 305.8 MB, free: 17.61 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005114/0.1596, allocations: 249.2 kB / 306.1 MB, free: 17.57 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.0001989/0.1598, allocations: 183.3 kB / 306.3 MB, free: 17.45 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001115/0.1609, allocations: 0.9124 MB / 307.2 MB, free: 17.15 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.337e-06/0.1609, allocations: 2.312 kB / 307.2 MB, free: 17.15 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005448/0.1614, allocations: 0.5973 MB / 307.8 MB, free: 16.89 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004606/0.1619, allocations: 175 kB / 307.9 MB, free: 16.82 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002059/0.164, allocations: 1.694 MB / 309.6 MB, free: 15.86 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.858e-05/0.164, allocations: 166.9 kB / 309.8 MB, free: 15.79 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000189/0.1642, allocations: 73.8 kB / 309.9 MB, free: 15.77 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001382/0.1644, allocations: 74.2 kB / 309.9 MB, free: 15.75 MB / 266.7 MB Notification: Performance of SimCode: time 6.41e-07/0.1644, allocations: 0.9844 kB / 309.9 MB, free: 15.75 MB / 266.7 MB Notification: Performance of Templates: time 0.01391/0.1783, allocations: 15.85 MB / 325.8 MB, free: 1.562 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.466190230101347]