Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002355/0.002355, allocations: 99.53 kB / 20.97 MB, free: 3.449 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002087/0.002087, allocations: 160.8 kB / 24.27 MB, free: 152 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.542/1.542, allocations: 177 MB / 204.5 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.874e-06/1.874e-06, allocations: 0 / 272.2 MB, free: 1.816 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.772e-05/2.96e-05, allocations: 2.312 kB / 272.2 MB, free: 1.812 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.007414/0.007443, allocations: 4.38 MB / 276.6 MB, free: 13.41 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003732/0.01118, allocations: 1.539 MB / 278.1 MB, free: 11.87 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007684/0.01194, allocations: 19.88 kB / 278.1 MB, free: 11.85 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006467/0.01259, allocations: 142.6 kB / 278.3 MB, free: 11.71 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001085/0.01368, allocations: 285.5 kB / 278.5 MB, free: 11.43 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001248/0.01492, allocations: 447 kB / 279 MB, free: 10.99 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001861/0.01678, allocations: 1.201 MB / 280.2 MB, free: 9.785 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000424/0.01721, allocations: 178.2 kB / 280.4 MB, free: 9.598 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001483/0.01869, allocations: 0.6978 MB / 281.1 MB, free: 8.898 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008981/0.01959, allocations: 446.9 kB / 281.5 MB, free: 8.461 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003129/0.0199, allocations: 96 kB / 281.6 MB, free: 8.367 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005458/0.02045, allocations: 167.8 kB / 281.7 MB, free: 8.203 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004049/0.02085, allocations: 243.2 kB / 282 MB, free: 7.965 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005752/0.02143, allocations: 339.2 kB / 282.3 MB, free: 7.633 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001792/0.02322, allocations: 1.215 MB / 283.5 MB, free: 6.414 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.02322, allocations: 0 / 283.5 MB, free: 6.414 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.02323, allocations: 0 / 283.5 MB, free: 6.414 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.167e-05/0.02327, allocations: 0 / 283.5 MB, free: 6.414 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.00381/0.02708, allocations: 1.516 MB / 285 MB, free: 4.848 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/0.02712, allocations: 19.98 kB / 285.1 MB, free: 4.828 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000714/0.02783, allocations: 172.3 kB / 285.2 MB, free: 4.66 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008479/0.02868, allocations: 414.1 kB / 285.6 MB, free: 4.227 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.799e-05/0.02875, allocations: 54.38 kB / 285.7 MB, free: 4.176 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001596/0.02891, allocations: 80.3 kB / 285.8 MB, free: 4.098 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001725/0.03063, allocations: 0.773 MB / 286.5 MB, free: 3.316 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.64e-05/0.03067, allocations: 11.89 kB / 286.6 MB, free: 3.305 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.841e-05/0.03076, allocations: 27.98 kB / 286.6 MB, free: 3.277 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.94e-05/0.03078, allocations: 16 kB / 286.6 MB, free: 3.262 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002026/0.0328, allocations: 0.8003 MB / 287.4 MB, free: 2.461 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004528/0.03733, allocations: 2.013 MB / 289.4 MB, free: 396 kB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1103/0.1476, allocations: 0.6632 MB / 290.1 MB, free: 27.8 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009134/0.1486, allocations: 397.4 kB / 290.5 MB, free: 27.78 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.898e-05/0.1487, allocations: 15.84 kB / 290.5 MB, free: 27.78 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00105/0.1497, allocations: 0.5435 MB / 291 MB, free: 27.71 MB / 266.7 MB Notification: Performance of pre-optimization done (n=90): time 2.795e-06/0.1497, allocations: 0 / 291 MB, free: 27.71 MB / 266.7 MB Notification: Performance of matching and sorting (n=110): time 0.0092/0.1589, allocations: 3.553 MB / 294.6 MB, free: 26.64 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.015e-05/0.1589, allocations: 65.84 kB / 294.6 MB, free: 26.58 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004901/0.1594, allocations: 0.4885 MB / 295.1 MB, free: 26.3 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.053e-05/0.1595, allocations: 57.3 kB / 295.2 MB, free: 26.25 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001614/0.1597, allocations: 341.8 kB / 295.5 MB, free: 25.99 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002444/0.1599, allocations: 417.3 kB / 295.9 MB, free: 25.73 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003309/0.1603, allocations: 216.8 kB / 296.1 MB, free: 25.62 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001495/0.1604, allocations: 0.5794 MB / 296.7 MB, free: 25.08 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008334/0.1612, allocations: 401.6 kB / 297.1 MB, free: 24.97 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009454/0.1622, allocations: 0.5281 MB / 297.6 MB, free: 24.75 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001452/0.1636, allocations: 0.8053 MB / 298.4 MB, free: 24.4 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.037e-06/0.1636, allocations: 1.75 kB / 298.4 MB, free: 24.4 MB / 266.7 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.002811/0.1664, allocations: 1.319 MB / 299.8 MB, free: 23.92 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/0.1665, allocations: 6.344 kB / 299.8 MB, free: 23.92 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.746e-06/0.1665, allocations: 1.25 kB / 299.8 MB, free: 23.92 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001176/0.1676, allocations: 0.5466 MB / 300.3 MB, free: 23.74 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007207/0.1684, allocations: 188 kB / 300.5 MB, free: 23.73 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003183/0.1716, allocations: 4.338 MB / 304.8 MB, free: 19.81 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008508/0.1724, allocations: 117 kB / 305 MB, free: 19.79 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.5e-05/0.1725, allocations: 39.89 kB / 305 MB, free: 19.78 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.0003079/0.1728, allocations: 272.2 kB / 305.3 MB, free: 19.54 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001847/0.173, allocations: 116.7 kB / 305.4 MB, free: 19.49 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002383/0.1732, allocations: 103.6 kB / 305.5 MB, free: 19.4 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.823e-06/0.1732, allocations: 14.53 kB / 305.5 MB, free: 19.4 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.249e-05/0.1732, allocations: 0 / 305.5 MB, free: 19.4 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.304e-05/0.1733, allocations: 5.531 kB / 305.5 MB, free: 19.4 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003929/0.1772, allocations: 2.302 MB / 307.8 MB, free: 18.12 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.711e-06/0.1772, allocations: 4.625 kB / 307.8 MB, free: 18.11 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006781/0.1779, allocations: 173.4 kB / 308 MB, free: 17.96 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000801/0.1787, allocations: 0.5101 MB / 308.5 MB, free: 17.53 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.374e-05/0.1787, allocations: 31.59 kB / 308.5 MB, free: 17.51 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002663/0.1814, allocations: 4.063 MB / 312.6 MB, free: 13.39 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.1814, allocations: 4 kB / 312.6 MB, free: 13.38 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002936/0.1843, allocations: 1.81 MB / 314.4 MB, free: 11.57 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003439/0.1847, allocations: 163.9 kB / 314.5 MB, free: 11.41 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001305/0.1848, allocations: 35.94 kB / 314.6 MB, free: 11.38 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009083/0.1857, allocations: 135.8 kB / 314.7 MB, free: 11.24 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006712/0.1864, allocations: 400.2 kB / 315.1 MB, free: 10.85 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.318e-05/0.1865, allocations: 39.97 kB / 315.1 MB, free: 10.81 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002304/0.1867, allocations: 327 kB / 315.5 MB, free: 10.49 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1867, allocations: 4 kB / 315.5 MB, free: 10.49 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007178/0.1874, allocations: 239.9 kB / 315.7 MB, free: 10.25 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.002497/0.1899, allocations: 435 kB / 316.1 MB, free: 10.01 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.002027/0.1919, allocations: 1.193 MB / 317.3 MB, free: 8.805 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.1919, allocations: 0 / 317.3 MB, free: 8.805 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001024/0.193, allocations: 0.7313 MB / 318.1 MB, free: 8.051 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008631/0.1938, allocations: 200.6 kB / 318.2 MB, free: 7.859 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002988/0.1968, allocations: 1.824 MB / 320.1 MB, free: 5.988 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002164/0.197, allocations: 357.5 kB / 320.4 MB, free: 5.605 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003137/0.1973, allocations: 81.64 kB / 320.5 MB, free: 5.523 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001978/0.1975, allocations: 72.48 kB / 320.6 MB, free: 5.453 MB / 266.7 MB Notification: Performance of SimCode: time 8.92e-07/0.1975, allocations: 0 / 320.6 MB, free: 5.453 MB / 266.7 MB Notification: Performance of Templates: time 0.02626/0.2238, allocations: 16.03 MB / 336.6 MB, free: 5.555 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & ./Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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_trunk_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.297454408020712]