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.000797/0.000797, allocations: 84 kB / 21.43 MB, free: 3.129 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.003063/0.003063, allocations: 144.4 kB / 24.68 MB, free: 9.426 MB / 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 0.8336/0.8336, allocations: 173.4 MB / 201.2 MB, free: 9.438 MB / 186.7 MB " [Timeout remaining time 179] 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 1.262e-06/1.262e-06, allocations: 3.938 kB / 319.7 MB, free: 5.859 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.631e-05/1.757e-05, allocations: 9.453 kB / 319.7 MB, free: 5.852 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.00353/0.003548, allocations: 3.895 MB / 323.6 MB, free: 1.922 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001547/0.005095, allocations: 1.348 MB / 324.9 MB, free: 0.5703 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001685/0.005263, allocations: 15.88 kB / 324.9 MB, free: 0.5547 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000231/0.005494, allocations: 118.8 kB / 325.1 MB, free: 448 kB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002482/0.005743, allocations: 245.8 kB / 325.3 MB, free: 200 kB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006649/0.006408, allocations: 439 kB / 325.7 MB, free: 15.77 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006593/0.007067, allocations: 1.17 MB / 326.9 MB, free: 14.59 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000221/0.007288, allocations: 170.2 kB / 327.1 MB, free: 14.41 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004948/0.007783, allocations: 0.6745 MB / 327.7 MB, free: 13.73 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003339/0.008117, allocations: 426.9 kB / 328.2 MB, free: 13.32 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.26e-05/0.008199, allocations: 92 kB / 328.2 MB, free: 13.23 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001664/0.008365, allocations: 147.9 kB / 328.4 MB, free: 13.08 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001419/0.008507, allocations: 223.2 kB / 328.6 MB, free: 12.86 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001996/0.008707, allocations: 327.3 kB / 328.9 MB, free: 12.54 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001023/0.00973, allocations: 1.153 MB / 330.1 MB, free: 11.39 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.573e-06/0.009732, allocations: 3.938 kB / 330.1 MB, free: 11.38 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.42e-07/0.009732, allocations: 0 / 330.1 MB, free: 11.38 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.757e-06/0.009741, allocations: 0 / 330.1 MB, free: 11.38 MB / 298.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.001733/0.01147, allocations: 1.348 MB / 331.4 MB, free: 10 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.546e-05/0.01151, allocations: 8.922 kB / 331.4 MB, free: 9.992 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001733/0.01168, allocations: 96.38 kB / 331.5 MB, free: 9.898 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004353/0.01212, allocations: 391.3 kB / 331.9 MB, free: 9.488 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.3e-05/0.01216, allocations: 54.38 kB / 332 MB, free: 9.434 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.367e-05/0.01225, allocations: 68.31 kB / 332 MB, free: 9.367 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009566/0.0132, allocations: 0.8082 MB / 332.8 MB, free: 8.555 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.113e-05/0.01322, allocations: 4.141 kB / 332.8 MB, free: 8.551 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.517e-05/0.01328, allocations: 36.12 kB / 332.9 MB, free: 8.516 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.939e-06/0.01329, allocations: 16 kB / 332.9 MB, free: 8.5 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001136/0.01442, allocations: 0.8627 MB / 333.8 MB, free: 7.637 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002321/0.01675, allocations: 1.843 MB / 335.6 MB, free: 5.73 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008693/0.01761, allocations: 0.6696 MB / 336.3 MB, free: 5.055 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005252/0.01814, allocations: 428.3 kB / 336.7 MB, free: 4.633 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.561e-05/0.0182, allocations: 13 kB / 336.7 MB, free: 4.621 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009277/0.01912, allocations: 0.5516 MB / 337.3 MB, free: 4.055 MB / 298.7 MB Notification: Performance of pre-optimization done (n=86): time 3.387e-06/0.01913, allocations: 3.984 kB / 337.3 MB, free: 4.051 MB / 298.7 MB Notification: Performance of matching and sorting (n=106): time 0.005748/0.02487, allocations: 3.841 MB / 341.1 MB, free: 184 kB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.713e-05/0.02491, allocations: 76.33 kB / 341.2 MB, free: 92 kB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002547/0.02517, allocations: 377.5 kB / 341.5 MB, free: 15.71 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.724e-05/0.02522, allocations: 57.69 kB / 341.6 MB, free: 15.65 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001217/0.02535, allocations: 281.5 kB / 341.9 MB, free: 15.37 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001876/0.02553, allocations: 372.9 kB / 342.2 MB, free: 15 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001854/0.02572, allocations: 186.8 kB / 342.4 MB, free: 14.82 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.998e-05/0.02582, allocations: 374.7 kB / 342.8 MB, free: 14.44 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005586/0.02638, allocations: 434.4 kB / 343.2 MB, free: 14.02 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006044/0.02698, allocations: 0.5306 MB / 343.7 MB, free: 13.47 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001215/0.0282, allocations: 0.7792 MB / 344.5 MB, free: 12.68 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.0282, allocations: 0 / 344.5 MB, free: 12.68 MB / 314.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.001708/0.02991, allocations: 1.354 MB / 345.9 MB, free: 11.3 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.808e-05/0.02993, allocations: 4 kB / 345.9 MB, free: 11.3 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.02993, allocations: 0 / 345.9 MB, free: 11.3 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007147/0.03065, allocations: 0.6465 MB / 346.5 MB, free: 10.64 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003837/0.03103, allocations: 203.7 kB / 346.7 MB, free: 10.45 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002548/0.03358, allocations: 3.293 MB / 350 MB, free: 6.996 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004868/0.03406, allocations: 179.9 kB / 350.2 MB, free: 6.82 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.669e-05/0.03411, allocations: 35.98 kB / 350.2 MB, free: 6.785 MB / 314.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.0002244/0.03434, allocations: 217.8 kB / 350.4 MB, free: 6.562 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.332e-05/0.03441, allocations: 83.45 kB / 350.5 MB, free: 6.48 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001004/0.03451, allocations: 102.9 kB / 350.6 MB, free: 6.379 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.03451, allocations: 8 kB / 350.6 MB, free: 6.371 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.03452, allocations: 4 kB / 350.6 MB, free: 6.367 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.03453, allocations: 7.922 kB / 350.6 MB, free: 6.359 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002796/0.03732, allocations: 2.179 MB / 352.8 MB, free: 4.109 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.03733, allocations: 3.938 kB / 352.8 MB, free: 4.105 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003795/0.03771, allocations: 176 kB / 353 MB, free: 3.934 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006168/0.03832, allocations: 0.6153 MB / 353.6 MB, free: 3.309 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.868e-05/0.03837, allocations: 35.97 kB / 353.6 MB, free: 3.273 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002047/0.04042, allocations: 3.081 MB / 356.7 MB, free: 36 kB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.04042, allocations: 4.188 kB / 356.7 MB, free: 32 kB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002232/0.04265, allocations: 1.841 MB / 358.6 MB, free: 14.14 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004925/0.04314, allocations: 155.4 kB / 358.7 MB, free: 13.99 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.536e-05/0.04322, allocations: 32 kB / 358.8 MB, free: 13.96 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005591/0.04378, allocations: 207.7 kB / 359 MB, free: 13.75 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005369/0.04432, allocations: 380.3 kB / 359.3 MB, free: 13.38 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.397e-05/0.04437, allocations: 47.95 kB / 359.4 MB, free: 13.34 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001627/0.04453, allocations: 255.2 kB / 359.6 MB, free: 13.09 MB / 330.7 MB Notification: Performance of sort global known variables: time 4e-08/0.04453, allocations: 15.81 kB / 359.6 MB, free: 13.07 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004902/0.04502, allocations: 244 kB / 359.9 MB, free: 12.83 MB / 330.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.000241/0.04526, allocations: 176 kB / 360.1 MB, free: 12.66 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001429/0.04669, allocations: 1.126 MB / 361.2 MB, free: 11.52 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/0.0467, allocations: 4 kB / 361.2 MB, free: 11.52 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007981/0.04749, allocations: 0.6883 MB / 361.9 MB, free: 10.82 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004753/0.04797, allocations: 132.7 kB / 362 MB, free: 10.69 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002176/0.05015, allocations: 1.818 MB / 363.8 MB, free: 8.812 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002105/0.05036, allocations: 340.8 kB / 364.2 MB, free: 8.457 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001505/0.05051, allocations: 72.48 kB / 364.2 MB, free: 8.387 MB / 330.7 MB Notification: Performance of SimCode: time 9.82e-07/0.05051, allocations: 0 / 364.2 MB, free: 8.387 MB / 330.7 MB Notification: Performance of Templates: time 0.01303/0.06353, allocations: 17.83 MB / 382 MB, free: 6.535 MB / 346.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=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/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.648860765621066]