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.001043/0.001043, allocations: 81.97 kB / 22.21 MB, free: 2.289 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.001035/0.001035, allocations: 163.9 kB / 25.61 MB, free: 8.582 MB / 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 0.9965/0.9965, allocations: 177.2 MB / 206.1 MB, free: 4.469 MB / 186.7 MB " [Timeout remaining time 179] 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.715e-06/2.715e-06, allocations: 0 / 274.2 MB, free: 4.422 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.803e-05/4.075e-05, allocations: 8.188 kB / 274.2 MB, free: 4.414 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.005673/0.005713, allocations: 4.337 MB / 278.5 MB, free: 72 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003228/0.008941, allocations: 1.543 MB / 280.1 MB, free: 14.53 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003678/0.009309, allocations: 15.88 kB / 280.1 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004331/0.009742, allocations: 142.6 kB / 280.2 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007213/0.01046, allocations: 297.5 kB / 280.5 MB, free: 14.08 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001234/0.0117, allocations: 435.1 kB / 280.9 MB, free: 13.65 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001225/0.01292, allocations: 1.201 MB / 282.1 MB, free: 12.45 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003488/0.01327, allocations: 178.2 kB / 282.3 MB, free: 12.26 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001104/0.01438, allocations: 0.6978 MB / 283 MB, free: 11.56 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006288/0.015, allocations: 446.9 kB / 283.4 MB, free: 11.12 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001993/0.0152, allocations: 96 kB / 283.5 MB, free: 11.03 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002988/0.0155, allocations: 167.8 kB / 283.7 MB, free: 10.86 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002192/0.01572, allocations: 251.2 kB / 284 MB, free: 10.62 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003304/0.01605, allocations: 339.2 kB / 284.3 MB, free: 10.29 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009996/0.01705, allocations: 0.8604 MB / 285.1 MB, free: 9.422 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.01706, allocations: 0 / 285.1 MB, free: 9.422 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.72e-07/0.01706, allocations: 0 / 285.1 MB, free: 9.422 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.209e-05/0.01708, allocations: 0 / 285.1 MB, free: 9.422 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.001939/0.01902, allocations: 1.43 MB / 286.6 MB, free: 7.941 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.684e-05/0.01906, allocations: 12.03 kB / 286.6 MB, free: 7.93 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004144/0.01947, allocations: 180.3 kB / 286.8 MB, free: 7.754 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005238/0.01999, allocations: 426.7 kB / 287.2 MB, free: 7.305 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.297e-05/0.02004, allocations: 54.38 kB / 287.2 MB, free: 7.254 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.78e-05/0.02013, allocations: 76.36 kB / 287.3 MB, free: 7.18 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007445/0.02088, allocations: 0.5504 MB / 287.9 MB, free: 6.621 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.706e-05/0.02091, allocations: 11.89 kB / 287.9 MB, free: 6.609 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.36e-05/0.02097, allocations: 31.98 kB / 287.9 MB, free: 6.578 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.855e-05/0.02099, allocations: 20 kB / 287.9 MB, free: 6.559 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005848/0.02157, allocations: 417.5 kB / 288.3 MB, free: 6.148 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002366/0.02394, allocations: 1.679 MB / 290 MB, free: 4.418 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006634/0.0246, allocations: 463.4 kB / 290.5 MB, free: 3.953 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002742/0.02488, allocations: 223.1 kB / 290.7 MB, free: 3.73 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.308e-05/0.02494, allocations: 17 kB / 290.7 MB, free: 3.715 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004295/0.02537, allocations: 358.5 kB / 291 MB, free: 3.348 MB / 266.7 MB Notification: Performance of pre-optimization done (n=90): time 2.675e-06/0.02537, allocations: 0 / 291 MB, free: 3.348 MB / 266.7 MB Notification: Performance of matching and sorting (n=110): time 0.004423/0.0298, allocations: 2.509 MB / 293.6 MB, free: 0.7969 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.907e-05/0.02983, allocations: 64.34 kB / 293.6 MB, free: 0.7188 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00032/0.03015, allocations: 422.4 kB / 294 MB, free: 300 kB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.118e-05/0.03023, allocations: 57.69 kB / 294.1 MB, free: 236 kB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001945/0.03042, allocations: 336.2 kB / 294.4 MB, free: 15.89 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002372/0.03066, allocations: 392.7 kB / 294.8 MB, free: 15.51 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002327/0.03089, allocations: 188.5 kB / 295 MB, free: 15.31 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001838/0.03107, allocations: 0.5584 MB / 295.5 MB, free: 14.74 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003165/0.03139, allocations: 198.5 kB / 295.7 MB, free: 14.55 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003233/0.03171, allocations: 308.3 kB / 296 MB, free: 14.22 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005025/0.03222, allocations: 438.9 kB / 296.5 MB, free: 13.77 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.898e-06/0.03222, allocations: 4 kB / 296.5 MB, free: 13.77 MB / 282.7 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.001243/0.03346, allocations: 0.8703 MB / 297.3 MB, free: 12.88 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.992e-05/0.03348, allocations: 7.938 kB / 297.3 MB, free: 12.87 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.05e-05/0.03349, allocations: 4 kB / 297.3 MB, free: 12.86 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000587/0.03408, allocations: 422.6 kB / 297.8 MB, free: 12.44 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004137/0.03449, allocations: 195.7 kB / 297.9 MB, free: 12.25 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00269/0.03718, allocations: 3.918 MB / 301.9 MB, free: 8.148 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004961/0.03768, allocations: 111.9 kB / 302 MB, free: 8.039 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.797e-05/0.03773, allocations: 31.98 kB / 302 MB, free: 8.008 MB / 282.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.0003087/0.03804, allocations: 224.3 kB / 302.2 MB, free: 7.781 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001514/0.03819, allocations: 111.5 kB / 302.3 MB, free: 7.672 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001188/0.03831, allocations: 107.1 kB / 302.4 MB, free: 7.562 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.562e-06/0.03831, allocations: 8 kB / 302.4 MB, free: 7.555 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.077e-05/0.03832, allocations: 4 kB / 302.5 MB, free: 7.551 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.688e-06/0.03833, allocations: 7.984 kB / 302.5 MB, free: 7.543 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002231/0.04056, allocations: 1.7 MB / 304.2 MB, free: 5.758 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.988e-06/0.04057, allocations: 0 / 304.2 MB, free: 5.758 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004162/0.04099, allocations: 176 kB / 304.3 MB, free: 5.586 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005483/0.04153, allocations: 426.6 kB / 304.7 MB, free: 5.156 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.032e-05/0.04159, allocations: 35.97 kB / 304.8 MB, free: 5.121 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002293/0.04389, allocations: 3.681 MB / 308.5 MB, free: 1.266 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.04389, allocations: 4 kB / 308.5 MB, free: 1.262 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001557/0.04545, allocations: 1.171 MB / 309.6 MB, free: 28 kB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003056/0.04575, allocations: 171.3 kB / 309.8 MB, free: 15.86 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.252e-05/0.04584, allocations: 36 kB / 309.8 MB, free: 15.82 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004635/0.04631, allocations: 131.8 kB / 310 MB, free: 15.7 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005392/0.04685, allocations: 368.2 kB / 310.3 MB, free: 15.34 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.61e-05/0.0469, allocations: 35.97 kB / 310.4 MB, free: 15.3 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001782/0.04708, allocations: 267 kB / 310.6 MB, free: 15.04 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.04708, allocations: 4 kB / 310.6 MB, free: 15.04 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006586/0.04774, allocations: 240 kB / 310.9 MB, free: 14.8 MB / 298.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.001051/0.04879, allocations: 402.7 kB / 311.3 MB, free: 14.52 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00109/0.04988, allocations: 0.7795 MB / 312 MB, free: 13.72 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.549e-06/0.04989, allocations: 4 kB / 312 MB, free: 13.71 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000564/0.05045, allocations: 0.5406 MB / 312.6 MB, free: 13.15 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000631/0.05108, allocations: 194.6 kB / 312.8 MB, free: 12.97 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002864/0.05394, allocations: 1.713 MB / 314.5 MB, free: 11.19 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001365/0.05408, allocations: 173.1 kB / 314.7 MB, free: 11 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002549/0.05434, allocations: 85.64 kB / 314.7 MB, free: 10.92 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003634/0.0547, allocations: 234.1 kB / 315 MB, free: 10.69 MB / 298.7 MB Notification: Performance of SimCode: time 1.573e-06/0.0547, allocations: 7.938 kB / 315 MB, free: 10.68 MB / 298.7 MB Notification: Performance of Templates: time 0.02255/0.07725, allocations: 17.75 MB / 332.7 MB, free: 9.074 MB / 314.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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) [Timeout 240] 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","",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.556011071894318]