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.001796/0.001797, allocations: 123.5 kB / 18.41 MB, free: 4.684 MB / 14.72 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.002174/0.002174, allocations: 192.3 kB / 21.35 MB, free: 1.75 MB / 14.72 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.471/1.471, allocations: 222.9 MB / 247 MB, free: 4.336 MB / 190.1 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 0.001562/0.001562, allocations: 47.92 kB / 358.7 MB, free: 8.477 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.111, allocations: 49.44 MB / 408.1 MB, free: 6.988 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.006014/0.117, allocations: 4.288 MB / 412.4 MB, free: 2.672 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003095/0.1202, allocations: 1.383 MB / 413.8 MB, free: 1.285 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004107/0.1206, allocations: 15.94 kB / 413.8 MB, free: 1.27 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003702/0.121, allocations: 114.8 kB / 413.9 MB, free: 1.156 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005207/0.1215, allocations: 226 kB / 414.1 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00119/0.1227, allocations: 427 kB / 414.5 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001269/0.124, allocations: 1.131 MB / 415.7 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004447/0.1245, allocations: 265.6 kB / 415.9 MB, free: 15.11 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007939/0.1253, allocations: 474.5 kB / 416.4 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006972/0.126, allocations: 0.5254 MB / 416.9 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001786/0.1262, allocations: 88 kB / 417 MB, free: 14.03 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003144/0.1265, allocations: 148 kB / 417.2 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002613/0.1268, allocations: 219.3 kB / 417.4 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005359/0.1273, allocations: 453.8 kB / 417.8 MB, free: 13.22 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001329/0.1286, allocations: 1.062 MB / 418.9 MB, free: 12.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1287, allocations: 0 / 418.9 MB, free: 12.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.1287, allocations: 0 / 418.9 MB, free: 12.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.367e-05/0.1287, allocations: 0 / 418.9 MB, free: 12.16 MB / 350.1 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.003518/0.1322, allocations: 1.309 MB / 420.2 MB, free: 10.79 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.556e-05/0.1323, allocations: 12.03 kB / 420.2 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000268/0.1325, allocations: 96.36 kB / 420.3 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007551/0.1333, allocations: 449.9 kB / 420.7 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.789e-05/0.1334, allocations: 54.38 kB / 420.8 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001352/0.1335, allocations: 68.33 kB / 420.8 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001764/0.1353, allocations: 0.8116 MB / 421.7 MB, free: 9.277 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.193e-05/0.1354, allocations: 7.891 kB / 421.7 MB, free: 9.27 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.582e-05/0.1355, allocations: 32 kB / 421.7 MB, free: 9.238 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.915e-05/0.1355, allocations: 16 kB / 421.7 MB, free: 9.223 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002091/0.1376, allocations: 0.8666 MB / 422.6 MB, free: 8.352 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004637/0.1422, allocations: 2.381 MB / 425 MB, free: 5.844 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001604/0.1439, allocations: 0.7142 MB / 425.7 MB, free: 5.117 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001033/0.1449, allocations: 476.2 kB / 426.1 MB, free: 4.652 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.642e-05/0.145, allocations: 9 kB / 426.1 MB, free: 4.641 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00122/0.1462, allocations: 0.5478 MB / 426.7 MB, free: 4.082 MB / 350.1 MB Notification: Performance of pre-optimization done (n=86): time 2.795e-06/0.1463, allocations: 0 / 426.7 MB, free: 4.082 MB / 350.1 MB Notification: Performance of matching and sorting (n=106): time 0.2358/0.3821, allocations: 4.222 MB / 430.9 MB, free: 22.69 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.836e-05/0.3822, allocations: 66.31 kB / 431 MB, free: 22.62 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004279/0.3826, allocations: 397.5 kB / 431.4 MB, free: 22.52 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001741/0.3828, allocations: 59.44 kB / 431.4 MB, free: 22.49 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001451/0.3829, allocations: 269.8 kB / 431.7 MB, free: 22.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000226/0.3832, allocations: 379.4 kB / 432.1 MB, free: 22.26 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002947/0.3835, allocations: 188.8 kB / 432.2 MB, free: 22.24 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001112/0.3836, allocations: 377.6 kB / 432.6 MB, free: 21.93 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009603/0.3846, allocations: 435.7 kB / 433 MB, free: 21.92 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001002/0.3856, allocations: 0.5278 MB / 433.6 MB, free: 21.86 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001638/0.3872, allocations: 0.7835 MB / 434.4 MB, free: 21.79 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.3872, allocations: 0 / 434.4 MB, free: 21.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003068/0.3903, allocations: 1.353 MB / 435.7 MB, free: 21.66 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.186e-05/0.3903, allocations: 8.125 kB / 435.7 MB, free: 21.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/0.3903, allocations: 2.438 kB / 435.7 MB, free: 21.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001297/0.3917, allocations: 0.6519 MB / 436.4 MB, free: 21.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008153/0.3925, allocations: 209.5 kB / 436.6 MB, free: 21.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003553/0.396, allocations: 3.44 MB / 440 MB, free: 19.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001217/0.3973, allocations: 178.1 kB / 440.2 MB, free: 19.08 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.599e-05/0.3974, allocations: 35.91 kB / 440.2 MB, free: 19.08 MB / 350.1 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.0003444/0.3977, allocations: 218.4 kB / 440.4 MB, free: 18.97 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001251/0.3979, allocations: 78.77 kB / 440.5 MB, free: 18.93 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001922/0.3981, allocations: 103.2 kB / 440.6 MB, free: 18.91 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.101e-05/0.3981, allocations: 11.12 kB / 440.6 MB, free: 18.91 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.159e-05/0.3981, allocations: 6.625 kB / 440.6 MB, free: 18.91 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.209e-05/0.3981, allocations: 6.375 kB / 440.6 MB, free: 18.91 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004624/0.4027, allocations: 2.505 MB / 443.1 MB, free: 18.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.236e-06/0.4028, allocations: 1.219 kB / 443.1 MB, free: 18.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007767/0.4035, allocations: 183.3 kB / 443.3 MB, free: 18.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001139/0.4047, allocations: 0.6132 MB / 443.9 MB, free: 18.31 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.545e-05/0.4048, allocations: 34.11 kB / 444 MB, free: 18.31 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003126/0.4079, allocations: 3.219 MB / 447.2 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.995e-06/0.408, allocations: 4.781 kB / 447.2 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003855/0.4118, allocations: 1.851 MB / 449 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003937/0.4122, allocations: 241.6 kB / 449.3 MB, free: 15.17 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001205/0.4124, allocations: 32.17 kB / 449.3 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001329/0.4137, allocations: 200.6 kB / 449.5 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009725/0.4147, allocations: 378.6 kB / 449.9 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.225e-05/0.4148, allocations: 49.77 kB / 449.9 MB, free: 15.02 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003196/0.4151, allocations: 266.2 kB / 450.2 MB, free: 14.89 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.4151, allocations: 1.656 kB / 450.2 MB, free: 14.89 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008693/0.416, allocations: 246.3 kB / 450.4 MB, free: 14.86 MB / 350.1 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.0002901/0.4163, allocations: 168.5 kB / 450.6 MB, free: 14.73 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002738/0.419, allocations: 1.195 MB / 451.8 MB, free: 14.26 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.419, allocations: 0 / 451.8 MB, free: 14.26 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001541/0.4206, allocations: 0.7356 MB / 452.5 MB, free: 13.93 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008726/0.4215, allocations: 146.9 kB / 452.7 MB, free: 13.87 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004245/0.4257, allocations: 2.003 MB / 454.7 MB, free: 12.72 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005102/0.4263, allocations: 0.9341 MB / 455.6 MB, free: 12.01 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003353/0.4266, allocations: 72.58 kB / 455.7 MB, free: 12 MB / 350.1 MB Notification: Performance of SimCode: time 1.102e-06/0.4266, allocations: 0 / 455.7 MB, free: 12 MB / 350.1 MB Notification: Performance of Templates: time 0.02098/0.4476, allocations: 17.55 MB / 473.2 MB, free: 15.04 MB / 366.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/HeatLosses/HeatLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 9.920818692073226]