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.001825/0.001825, allocations: 95.86 kB / 20.96 MB, free: 3.465 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.001903/0.001903, allocations: 153.1 kB / 24.27 MB, free: 168 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 1.591/1.591, allocations: 173.4 MB / 200.8 MB, free: 9.316 MB / 186.7 MB " [Timeout remaining time 178] 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 2.234e-06/2.234e-06, allocations: 0 / 267.3 MB, free: 6.75 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.59e-05/3.813e-05, allocations: 2.312 kB / 267.3 MB, free: 6.746 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.006305/0.006343, allocations: 4.206 MB / 271.5 MB, free: 2.508 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002811/0.009154, allocations: 1.375 MB / 272.9 MB, free: 1.129 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002662/0.00942, allocations: 15.88 kB / 272.9 MB, free: 1.113 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003542/0.009775, allocations: 118.8 kB / 273 MB, free: 0.9961 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004406/0.01022, allocations: 237.8 kB / 273.3 MB, free: 0.7617 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00108/0.0113, allocations: 443 kB / 273.7 MB, free: 336 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.00142/0.01271, allocations: 1.158 MB / 274.8 MB, free: 15.16 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003414/0.01306, allocations: 178.2 kB / 275 MB, free: 14.97 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009489/0.01401, allocations: 0.6706 MB / 275.7 MB, free: 14.3 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006393/0.01464, allocations: 430.9 kB / 276.1 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001726/0.01482, allocations: 92 kB / 276.2 MB, free: 13.79 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000312/0.01513, allocations: 143.9 kB / 276.3 MB, free: 13.64 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002905/0.01542, allocations: 235.2 kB / 276.6 MB, free: 13.41 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004316/0.01585, allocations: 327.3 kB / 276.9 MB, free: 13.09 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001517/0.01737, allocations: 1.153 MB / 278 MB, free: 11.94 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.01737, allocations: 0 / 278 MB, free: 11.94 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.01738, allocations: 3.938 kB / 278.1 MB, free: 11.93 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.277e-05/0.01739, allocations: 0 / 278.1 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.00332/0.02071, allocations: 1.466 MB / 279.5 MB, free: 10.42 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.066e-05/0.02075, allocations: 8.922 kB / 279.5 MB, free: 10.41 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003744/0.02112, allocations: 152.4 kB / 279.7 MB, free: 10.26 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007555/0.02188, allocations: 398.1 kB / 280.1 MB, free: 9.844 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.424e-05/0.02194, allocations: 50.38 kB / 280.1 MB, free: 9.797 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001491/0.02209, allocations: 72.36 kB / 280.2 MB, free: 9.727 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001717/0.02381, allocations: 0.7847 MB / 281 MB, free: 8.938 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.369e-05/0.02384, allocations: 4.141 kB / 281 MB, free: 8.934 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.424e-05/0.02394, allocations: 36.12 kB / 281 MB, free: 8.898 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.781e-05/0.02395, allocations: 16 kB / 281 MB, free: 8.883 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002141/0.0261, allocations: 0.8197 MB / 281.8 MB, free: 8.059 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004406/0.0305, allocations: 1.984 MB / 283.8 MB, free: 6.016 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001531/0.03203, allocations: 0.666 MB / 284.5 MB, free: 5.336 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009249/0.03296, allocations: 411.1 kB / 284.9 MB, free: 4.93 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.644e-05/0.03305, allocations: 21 kB / 284.9 MB, free: 4.91 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001211/0.03427, allocations: 0.5493 MB / 285.5 MB, free: 4.344 MB / 266.7 MB Notification: Performance of pre-optimization done (n=86): time 2.815e-06/0.03427, allocations: 4 kB / 285.5 MB, free: 4.34 MB / 266.7 MB Notification: Performance of matching and sorting (n=106): time 0.01022/0.04449, allocations: 3.586 MB / 289.1 MB, free: 0.7148 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.581e-05/0.04455, allocations: 68.33 kB / 289.1 MB, free: 0.6328 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005996/0.04515, allocations: 482.6 kB / 289.6 MB, free: 152 kB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001032/0.04526, allocations: 57.69 kB / 289.6 MB, free: 88 kB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.1248/0.1701, allocations: 332.5 kB / 290 MB, free: 32.68 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005881/0.1707, allocations: 399.6 kB / 290.4 MB, free: 32.52 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006778/0.1713, allocations: 215.1 kB / 290.6 MB, free: 32.49 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001882/0.1715, allocations: 0.5712 MB / 291.1 MB, free: 32 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001273/0.1728, allocations: 420.2 kB / 291.6 MB, free: 32 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001363/0.1742, allocations: 0.5553 MB / 292.1 MB, free: 31.91 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00206/0.1762, allocations: 0.8269 MB / 292.9 MB, free: 31.62 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.071e-06/0.1762, allocations: 1.469 kB / 292.9 MB, free: 31.62 MB / 266.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.004321/0.1806, allocations: 1.378 MB / 294.3 MB, free: 31.16 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.783e-05/0.1806, allocations: 6.969 kB / 294.3 MB, free: 31.16 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.326e-05/0.1806, allocations: 1.094 kB / 294.3 MB, free: 31.16 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001563/0.1822, allocations: 0.6486 MB / 295 MB, free: 30.98 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001123/0.1833, allocations: 196.9 kB / 295.2 MB, free: 30.97 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004584/0.1879, allocations: 4.385 MB / 299.6 MB, free: 27.06 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001386/0.1893, allocations: 118.9 kB / 299.7 MB, free: 27.04 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001501/0.1894, allocations: 35.31 kB / 299.7 MB, free: 27.04 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.0004974/0.1899, allocations: 272.5 kB / 300 MB, free: 26.8 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003141/0.1902, allocations: 106.9 kB / 300.1 MB, free: 26.75 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002988/0.1905, allocations: 102.6 kB / 300.2 MB, free: 26.66 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.467e-05/0.1905, allocations: 11.16 kB / 300.2 MB, free: 26.66 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.046e-05/0.1905, allocations: 4.859 kB / 300.2 MB, free: 26.66 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.844e-05/0.1906, allocations: 5.156 kB / 300.2 MB, free: 26.66 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006418/0.197, allocations: 2.354 MB / 302.5 MB, free: 25.54 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-05/0.197, allocations: 2.188 kB / 302.5 MB, free: 25.54 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001062/0.1981, allocations: 164.1 kB / 302.7 MB, free: 25.52 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00152/0.1996, allocations: 0.6251 MB / 303.3 MB, free: 25.32 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001435/0.1997, allocations: 35.75 kB / 303.4 MB, free: 25.3 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00432/0.204, allocations: 4.101 MB / 307.5 MB, free: 21.64 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.204, allocations: 1.281 kB / 307.5 MB, free: 21.64 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005026/0.2091, allocations: 1.899 MB / 309.4 MB, free: 20.79 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000534/0.2096, allocations: 161.1 kB / 309.5 MB, free: 20.71 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001752/0.2098, allocations: 31.94 kB / 309.6 MB, free: 20.68 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001277/0.2111, allocations: 137.1 kB / 309.7 MB, free: 20.59 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001124/0.2122, allocations: 395.5 kB / 310.1 MB, free: 20.38 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001349/0.2123, allocations: 43.59 kB / 310.1 MB, free: 20.34 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0005088/0.2128, allocations: 313.2 kB / 310.4 MB, free: 20.07 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2128, allocations: 0 / 310.4 MB, free: 20.07 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.00135/0.2142, allocations: 246.2 kB / 310.7 MB, free: 19.83 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.0003535/0.2145, allocations: 174.4 kB / 310.8 MB, free: 19.65 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.002933/0.2175, allocations: 1.23 MB / 312.1 MB, free: 18.47 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.563e-06/0.2175, allocations: 320 / 312.1 MB, free: 18.47 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001512/0.219, allocations: 0.7468 MB / 312.8 MB, free: 17.71 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001207/0.2202, allocations: 178.1 kB / 313 MB, free: 17.54 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004204/0.2244, allocations: 1.782 MB / 314.8 MB, free: 15.73 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002934/0.2247, allocations: 344.8 kB / 315.1 MB, free: 15.38 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0004824/0.2252, allocations: 73.34 kB / 315.2 MB, free: 15.3 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002899/0.2255, allocations: 68.47 kB / 315.2 MB, free: 15.23 MB / 266.7 MB Notification: Performance of SimCode: time 1.573e-06/0.2255, allocations: 0 / 315.2 MB, free: 15.23 MB / 266.7 MB Notification: Performance of Templates: time 0.02657/0.252, allocations: 15.78 MB / 331 MB, free: 15.6 MB / 282.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.395056330016814]