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.0008469/0.0008469, allocations: 75.69 kB / 21.7 MB, free: 2.844 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.001352/0.001352, allocations: 163.8 kB / 24.99 MB, free: 9.285 MB / 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 0.9414/0.9414, allocations: 177 MB / 205.2 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 179] 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.273e-06/1.273e-06, allocations: 0 / 273 MB, free: 1.781 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.981e-05/2.108e-05, allocations: 6.312 kB / 273 MB, free: 1.773 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.004445/0.004466, allocations: 4.404 MB / 277.4 MB, free: 13.34 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002592/0.007058, allocations: 1.551 MB / 278.9 MB, free: 11.79 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003704/0.007428, allocations: 19.88 kB / 279 MB, free: 11.77 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003769/0.007805, allocations: 134.7 kB / 279.1 MB, free: 11.63 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004653/0.008271, allocations: 293.5 kB / 279.4 MB, free: 11.34 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000728/0.008999, allocations: 439 kB / 279.8 MB, free: 10.91 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001139/0.01014, allocations: 1.201 MB / 281 MB, free: 9.711 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002709/0.01041, allocations: 178.2 kB / 281.2 MB, free: 9.523 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007486/0.01116, allocations: 0.7056 MB / 281.9 MB, free: 8.816 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004347/0.01159, allocations: 438.9 kB / 282.3 MB, free: 8.387 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001179/0.01171, allocations: 96 kB / 282.4 MB, free: 8.293 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002451/0.01195, allocations: 167.8 kB / 282.6 MB, free: 8.129 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001972/0.01215, allocations: 247.2 kB / 282.8 MB, free: 7.887 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002546/0.01241, allocations: 343.2 kB / 283.2 MB, free: 7.551 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008404/0.01325, allocations: 0.8565 MB / 284 MB, free: 6.691 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.01325, allocations: 0 / 284 MB, free: 6.691 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.482e-06/0.01325, allocations: 0 / 284 MB, free: 6.691 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.083e-05/0.01326, allocations: 4 kB / 284 MB, free: 6.688 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.001774/0.01504, allocations: 1.407 MB / 285.4 MB, free: 5.23 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.114e-05/0.01508, allocations: 15.98 kB / 285.4 MB, free: 5.215 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004126/0.01549, allocations: 176.3 kB / 285.6 MB, free: 5.043 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005082/0.016, allocations: 430.8 kB / 286 MB, free: 4.59 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.295e-05/0.01604, allocations: 54.38 kB / 286.1 MB, free: 4.539 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001011/0.01614, allocations: 80.31 kB / 286.2 MB, free: 4.461 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009047/0.01705, allocations: 0.6207 MB / 286.8 MB, free: 3.836 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.22e-05/0.01707, allocations: 3.938 kB / 286.8 MB, free: 3.832 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.938e-05/0.01713, allocations: 32 kB / 286.8 MB, free: 3.801 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.362e-05/0.01714, allocations: 16 kB / 286.8 MB, free: 3.785 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009106/0.01805, allocations: 0.5033 MB / 287.3 MB, free: 3.277 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003051/0.02111, allocations: 1.741 MB / 289.1 MB, free: 1.48 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008002/0.02191, allocations: 0.5111 MB / 289.6 MB, free: 0.957 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003755/0.02228, allocations: 267.1 kB / 289.9 MB, free: 0.6875 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.739e-05/0.02234, allocations: 20.98 kB / 289.9 MB, free: 0.668 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005147/0.02285, allocations: 398.6 kB / 290.3 MB, free: 268 kB / 266.7 MB Notification: Performance of pre-optimization done (n=90): time 2.705e-06/0.02286, allocations: 0 / 290.3 MB, free: 268 kB / 266.7 MB Notification: Performance of matching and sorting (n=110): time 0.1061/0.129, allocations: 2.82 MB / 293.1 MB, free: 27.85 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.656e-05/0.129, allocations: 63.25 kB / 293.1 MB, free: 27.79 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002974/0.1293, allocations: 429.5 kB / 293.6 MB, free: 27.54 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.642e-05/0.1294, allocations: 57.14 kB / 293.6 MB, free: 27.49 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001193/0.1295, allocations: 327.6 kB / 293.9 MB, free: 27.24 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001785/0.1297, allocations: 389.5 kB / 294.3 MB, free: 26.99 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002076/0.1299, allocations: 191 kB / 294.5 MB, free: 26.89 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.123e-05/0.13, allocations: 0.5487 MB / 295.1 MB, free: 26.37 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004477/0.1304, allocations: 252.7 kB / 295.3 MB, free: 26.33 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004422/0.1309, allocations: 356 kB / 295.7 MB, free: 26.2 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006529/0.1315, allocations: 0.5078 MB / 296.2 MB, free: 25.98 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.1315, allocations: 1.391 kB / 296.2 MB, free: 25.98 MB / 266.7 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.001563/0.1331, allocations: 0.9713 MB / 297.1 MB, free: 25.67 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.9e-05/0.1331, allocations: 5.75 kB / 297.1 MB, free: 25.67 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.267e-06/0.1331, allocations: 5.609 kB / 297.1 MB, free: 25.67 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006604/0.1338, allocations: 446 kB / 297.6 MB, free: 25.54 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004166/0.1342, allocations: 184.2 kB / 297.8 MB, free: 25.53 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001927/0.1361, allocations: 3.958 MB / 301.7 MB, free: 21.82 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004242/0.1365, allocations: 117.6 kB / 301.8 MB, free: 21.8 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.09e-05/0.1366, allocations: 36.31 kB / 301.9 MB, free: 21.79 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.0001745/0.1368, allocations: 236.8 kB / 302.1 MB, free: 21.57 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001173/0.1369, allocations: 108 kB / 302.2 MB, free: 21.52 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.033e-05/0.137, allocations: 105.6 kB / 302.3 MB, free: 21.44 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-06/0.137, allocations: 10.41 kB / 302.3 MB, free: 21.44 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.137, allocations: 1.812 kB / 302.3 MB, free: 21.44 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.027e-06/0.137, allocations: 5.531 kB / 302.3 MB, free: 21.44 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002235/0.1392, allocations: 1.862 MB / 304.2 MB, free: 20.51 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.229e-06/0.1392, allocations: 1.375 kB / 304.2 MB, free: 20.51 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003968/0.1396, allocations: 166.8 kB / 304.3 MB, free: 20.5 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005091/0.1401, allocations: 444.8 kB / 304.8 MB, free: 20.34 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.63e-05/0.1402, allocations: 34.08 kB / 304.8 MB, free: 20.33 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002037/0.1422, allocations: 3.727 MB / 308.5 MB, free: 16.84 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.1422, allocations: 3 kB / 308.5 MB, free: 16.84 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002073/0.1443, allocations: 1.307 MB / 309.9 MB, free: 16.24 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002936/0.1446, allocations: 164 kB / 310 MB, free: 16.16 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001125/0.1447, allocations: 34.31 kB / 310 MB, free: 16.13 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000611/0.1453, allocations: 139 kB / 310.2 MB, free: 16.11 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006358/0.146, allocations: 362.4 kB / 310.5 MB, free: 16.03 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.086e-05/0.146, allocations: 48.67 kB / 310.6 MB, free: 16.02 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002/0.1462, allocations: 278.7 kB / 310.9 MB, free: 15.82 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1462, allocations: 0 / 310.9 MB, free: 15.82 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006623/0.1469, allocations: 246.6 kB / 311.1 MB, free: 15.79 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.0009103/0.1478, allocations: 384.2 kB / 311.5 MB, free: 15.63 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001339/0.1491, allocations: 0.8829 MB / 312.4 MB, free: 14.99 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.1492, allocations: 0 / 312.4 MB, free: 14.99 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006856/0.1498, allocations: 0.5816 MB / 312.9 MB, free: 14.39 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007477/0.1506, allocations: 194.8 kB / 313.1 MB, free: 14.2 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002804/0.1534, allocations: 1.754 MB / 314.9 MB, free: 12.4 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001089/0.1535, allocations: 169.2 kB / 315 MB, free: 12.21 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002637/0.1538, allocations: 81.66 kB / 315.1 MB, free: 12.13 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001799/0.1539, allocations: 76.47 kB / 315.2 MB, free: 12.05 MB / 266.7 MB Notification: Performance of SimCode: time 7.51e-07/0.1539, allocations: 0 / 315.2 MB, free: 12.05 MB / 266.7 MB Notification: Performance of Templates: time 0.01595/0.1699, allocations: 16.06 MB / 331.3 MB, free: 12.15 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","",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.2603659068699926]