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.001452/0.001452, allocations: 88.33 kB / 20.96 MB, free: 3.449 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.001496/0.001496, allocations: 157.7 kB / 24.27 MB, free: 148 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 1.498/1.498, allocations: 177.1 MB / 204.6 MB, free: 5.59 MB / 186.7 MB " [Timeout remaining time 178] 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.224e-06/2.224e-06, allocations: 0 / 272.3 MB, free: 1.824 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.221e-05/3.444e-05, allocations: 2.312 kB / 272.3 MB, free: 1.82 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.01079/0.01082, allocations: 4.07 MB / 276.4 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004479/0.0153, allocations: 1.527 MB / 277.9 MB, free: 12.2 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005475/0.01585, allocations: 19.88 kB / 277.9 MB, free: 12.18 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005016/0.01635, allocations: 142.7 kB / 278.1 MB, free: 12.04 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001043/0.01739, allocations: 289.5 kB / 278.4 MB, free: 11.75 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001641/0.01903, allocations: 435 kB / 278.8 MB, free: 11.33 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001973/0.02101, allocations: 1.197 MB / 280 MB, free: 10.13 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005031/0.02151, allocations: 182.2 kB / 280.2 MB, free: 9.938 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001574/0.02308, allocations: 0.7017 MB / 280.9 MB, free: 9.234 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007456/0.02383, allocations: 438.8 kB / 281.3 MB, free: 8.805 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001732/0.024, allocations: 92 kB / 281.4 MB, free: 8.715 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004172/0.02442, allocations: 171.8 kB / 281.5 MB, free: 8.547 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000321/0.02474, allocations: 239.2 kB / 281.8 MB, free: 8.312 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004533/0.02519, allocations: 343.2 kB / 282.1 MB, free: 7.977 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001708/0.0269, allocations: 1.203 MB / 283.3 MB, free: 6.77 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.02691, allocations: 4 kB / 283.3 MB, free: 6.766 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.02691, allocations: 0 / 283.3 MB, free: 6.766 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.786e-05/0.02693, allocations: 4 kB / 283.3 MB, free: 6.762 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.003935/0.03086, allocations: 1.391 MB / 284.7 MB, free: 5.328 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.034e-05/0.0309, allocations: 8.031 kB / 284.7 MB, free: 5.32 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007153/0.03162, allocations: 180.3 kB / 284.9 MB, free: 5.145 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009288/0.03255, allocations: 415.2 kB / 285.3 MB, free: 4.711 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.339e-05/0.03262, allocations: 54.38 kB / 285.4 MB, free: 4.66 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001728/0.03279, allocations: 72.38 kB / 285.4 MB, free: 4.59 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001888/0.03468, allocations: 0.8003 MB / 286.2 MB, free: 3.781 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.117e-05/0.03471, allocations: 7.891 kB / 286.2 MB, free: 3.773 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.747e-05/0.03481, allocations: 32 kB / 286.3 MB, free: 3.742 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.966e-05/0.03483, allocations: 16 kB / 286.3 MB, free: 3.727 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002181/0.03701, allocations: 0.8392 MB / 287.1 MB, free: 2.887 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004679/0.04169, allocations: 1.878 MB / 289 MB, free: 0.9531 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001746/0.04343, allocations: 0.6864 MB / 289.7 MB, free: 264 kB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.11/0.1534, allocations: 426.2 kB / 290.1 MB, free: 28.45 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001101/0.1535, allocations: 15.66 kB / 290.1 MB, free: 28.45 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001179/0.1547, allocations: 0.5348 MB / 290.7 MB, free: 28.39 MB / 266.7 MB Notification: Performance of pre-optimization done (n=90): time 2.795e-06/0.1547, allocations: 0 / 290.7 MB, free: 28.39 MB / 266.7 MB Notification: Performance of matching and sorting (n=110): time 0.01082/0.1655, allocations: 3.805 MB / 294.5 MB, free: 27.18 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.894e-05/0.1655, allocations: 71.72 kB / 294.5 MB, free: 27.11 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004437/0.166, allocations: 406.2 kB / 294.9 MB, free: 26.91 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.271e-05/0.1661, allocations: 61.97 kB / 295 MB, free: 26.86 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001477/0.1662, allocations: 279.4 kB / 295.3 MB, free: 26.66 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002218/0.1665, allocations: 391.7 kB / 295.6 MB, free: 26.41 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003013/0.1668, allocations: 185.5 kB / 295.8 MB, free: 26.31 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.655e-05/0.1668, allocations: 375.1 kB / 296.2 MB, free: 25.97 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009035/0.1677, allocations: 416 kB / 296.6 MB, free: 25.82 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009574/0.1687, allocations: 0.5023 MB / 297.1 MB, free: 25.6 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001565/0.1703, allocations: 0.7453 MB / 297.8 MB, free: 25.26 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.1703, allocations: 1.188 kB / 297.8 MB, free: 25.26 MB / 266.7 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.003025/0.1733, allocations: 1.345 MB / 299.2 MB, free: 24.7 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.844e-05/0.1733, allocations: 5.312 kB / 299.2 MB, free: 24.7 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.058e-05/0.1733, allocations: 3.016 kB / 299.2 MB, free: 24.7 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00101/0.1743, allocations: 0.5291 MB / 299.7 MB, free: 24.52 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007936/0.1751, allocations: 196.5 kB / 299.9 MB, free: 24.5 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003488/0.1786, allocations: 3.269 MB / 303.2 MB, free: 21.73 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001353/0.18, allocations: 174.9 kB / 303.4 MB, free: 21.7 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.725e-05/0.1801, allocations: 35.64 kB / 303.4 MB, free: 21.7 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.0003765/0.1804, allocations: 231.9 kB / 303.6 MB, free: 21.51 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002128/0.1806, allocations: 113.6 kB / 303.7 MB, free: 21.45 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002096/0.1809, allocations: 105.7 kB / 303.8 MB, free: 21.36 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.397e-06/0.1809, allocations: 13.53 kB / 303.8 MB, free: 21.36 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.714e-05/0.1809, allocations: 5.375 kB / 303.8 MB, free: 21.36 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.099e-05/0.1809, allocations: 4.922 kB / 303.9 MB, free: 21.36 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003944/0.1848, allocations: 2.145 MB / 306 MB, free: 20.32 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.863e-06/0.1848, allocations: 3.812 kB / 306 MB, free: 20.32 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007227/0.1856, allocations: 181.4 kB / 306.2 MB, free: 20.3 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008458/0.1864, allocations: 0.494 MB / 306.7 MB, free: 20.1 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.407e-05/0.1865, allocations: 35.95 kB / 306.7 MB, free: 20.06 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002846/0.1893, allocations: 3.056 MB / 309.8 MB, free: 16.85 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.648e-06/0.1893, allocations: 7.969 kB / 309.8 MB, free: 16.84 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00326/0.1926, allocations: 1.783 MB / 311.6 MB, free: 15.02 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003551/0.193, allocations: 171.7 kB / 311.7 MB, free: 14.86 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001326/0.1931, allocations: 39.94 kB / 311.8 MB, free: 14.82 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001251/0.1943, allocations: 199.7 kB / 312 MB, free: 14.62 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008165/0.1952, allocations: 388.2 kB / 312.3 MB, free: 14.24 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.468e-05/0.1952, allocations: 43.95 kB / 312.4 MB, free: 14.2 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002254/0.1955, allocations: 279.1 kB / 312.7 MB, free: 13.92 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1955, allocations: 0 / 312.7 MB, free: 13.92 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007667/0.1962, allocations: 244 kB / 312.9 MB, free: 13.68 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.001709/0.1979, allocations: 440.7 kB / 313.3 MB, free: 13.44 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.00224/0.2002, allocations: 1.08 MB / 314.4 MB, free: 12.35 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.2002, allocations: 0 / 314.4 MB, free: 12.35 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001329/0.2015, allocations: 0.7311 MB / 315.1 MB, free: 11.61 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009016/0.2024, allocations: 201.8 kB / 315.3 MB, free: 11.42 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003319/0.2057, allocations: 1.847 MB / 317.2 MB, free: 9.535 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002668/0.206, allocations: 345.6 kB / 317.5 MB, free: 9.168 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0004008/0.2064, allocations: 81.66 kB / 317.6 MB, free: 9.086 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002224/0.2066, allocations: 76.47 kB / 317.7 MB, free: 9.012 MB / 266.7 MB Notification: Performance of SimCode: time 1.072e-06/0.2066, allocations: 0 / 317.7 MB, free: 9.012 MB / 266.7 MB Notification: Performance of Templates: time 0.02419/0.2308, allocations: 15.92 MB / 333.6 MB, free: 9.234 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.258832939085551]