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.001794/0.001794, allocations: 80.67 kB / 20.68 MB, free: 1.035 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.001397/0.001397, allocations: 154.9 kB / 23.94 MB, free: 4.176 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.514/1.514, allocations: 173.4 MB / 200.4 MB, free: 12.86 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 1.443e-06/1.443e-06, allocations: 0 / 318.9 MB, free: 3.555 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.502e-05/2.646e-05, allocations: 7.594 kB / 318.9 MB, free: 3.547 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.004245/0.004271, allocations: 3.902 MB / 322.8 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002314/0.006585, allocations: 1.344 MB / 324.2 MB, free: 4 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003233/0.006908, allocations: 17.95 kB / 324.2 MB, free: 15.99 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000343/0.007251, allocations: 116.5 kB / 324.3 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004999/0.007751, allocations: 241.4 kB / 324.5 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001173/0.008924, allocations: 444.9 kB / 325 MB, free: 15.52 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001306/0.01023, allocations: 1.162 MB / 326.1 MB, free: 14.95 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003543/0.01058, allocations: 176.1 kB / 326.3 MB, free: 14.84 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001046/0.01163, allocations: 0.6717 MB / 327 MB, free: 14.56 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006728/0.0123, allocations: 426.9 kB / 327.4 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001607/0.01246, allocations: 91.25 kB / 327.5 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003219/0.01279, allocations: 143.3 kB / 327.6 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003009/0.01309, allocations: 236.5 kB / 327.9 MB, free: 14.26 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004278/0.01351, allocations: 326.8 kB / 328.2 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001425/0.01494, allocations: 1.155 MB / 329.3 MB, free: 13.64 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.01494, allocations: 1.156 kB / 329.3 MB, free: 13.64 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.01495, allocations: 0 / 329.3 MB, free: 13.64 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.264e-05/0.01496, allocations: 0 / 329.3 MB, free: 13.64 MB / 302.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.003633/0.01859, allocations: 1.347 MB / 330.7 MB, free: 12.69 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.468e-05/0.01863, allocations: 13.83 kB / 330.7 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002561/0.01888, allocations: 92.97 kB / 330.8 MB, free: 12.64 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007583/0.01964, allocations: 387.9 kB / 331.2 MB, free: 12.3 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.08e-05/0.0197, allocations: 50.28 kB / 331.2 MB, free: 12.28 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001445/0.01985, allocations: 72.77 kB / 331.3 MB, free: 12.25 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00182/0.02167, allocations: 0.806 MB / 332.1 MB, free: 11.77 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.284e-05/0.0217, allocations: 6.422 kB / 332.1 MB, free: 11.77 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001064/0.02181, allocations: 41.66 kB / 332.1 MB, free: 11.73 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.547e-05/0.02182, allocations: 16.03 kB / 332.1 MB, free: 11.73 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002208/0.02403, allocations: 0.8628 MB / 333 MB, free: 11.32 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004369/0.0284, allocations: 1.838 MB / 334.8 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001557/0.02995, allocations: 0.6863 MB / 335.5 MB, free: 9.684 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009887/0.03094, allocations: 423.3 kB / 335.9 MB, free: 9.48 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.28e-05/0.03102, allocations: 14.06 kB / 336 MB, free: 9.477 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00127/0.03229, allocations: 0.5488 MB / 336.5 MB, free: 9.133 MB / 302.1 MB Notification: Performance of pre-optimization done (n=86): time 2.755e-06/0.03229, allocations: 0.9688 kB / 336.5 MB, free: 9.133 MB / 302.1 MB Notification: Performance of matching and sorting (n=106): time 0.01176/0.04404, allocations: 3.841 MB / 340.4 MB, free: 6.035 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.123e-05/0.04412, allocations: 68.34 kB / 340.4 MB, free: 5.953 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000451/0.04457, allocations: 381.5 kB / 340.8 MB, free: 5.574 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001093/0.04468, allocations: 57.7 kB / 340.8 MB, free: 5.512 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002365/0.04491, allocations: 277.5 kB / 341.1 MB, free: 5.234 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003426/0.04526, allocations: 380.8 kB / 341.5 MB, free: 4.859 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003632/0.04562, allocations: 186.9 kB / 341.7 MB, free: 4.672 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000205/0.04582, allocations: 366.8 kB / 342 MB, free: 4.305 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001113/0.04694, allocations: 438.4 kB / 342.5 MB, free: 3.875 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001194/0.04813, allocations: 0.5306 MB / 343 MB, free: 3.328 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001893/0.05002, allocations: 0.7792 MB / 343.8 MB, free: 2.531 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.05003, allocations: 0 / 343.8 MB, free: 2.531 MB / 302.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003448/0.05348, allocations: 1.346 MB / 345.1 MB, free: 1.168 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.45e-05/0.0535, allocations: 8 kB / 345.1 MB, free: 1.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.957e-06/0.05351, allocations: 0 / 345.1 MB, free: 1.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001342/0.05485, allocations: 0.6504 MB / 345.8 MB, free: 0.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009142/0.05576, allocations: 207.6 kB / 346 MB, free: 304 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004752/0.06052, allocations: 3.293 MB / 349.3 MB, free: 12.85 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001443/0.06196, allocations: 171.9 kB / 349.4 MB, free: 12.68 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.727e-05/0.06206, allocations: 39.98 kB / 349.5 MB, free: 12.64 MB / 318.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.0004704/0.06253, allocations: 221.6 kB / 349.7 MB, free: 12.41 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001555/0.06268, allocations: 75.56 kB / 349.8 MB, free: 12.34 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002555/0.06294, allocations: 102.9 kB / 349.9 MB, free: 12.24 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.227e-06/0.06295, allocations: 12 kB / 349.9 MB, free: 12.23 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.06295, allocations: 0 / 349.9 MB, free: 12.23 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.308e-05/0.06297, allocations: 7.969 kB / 349.9 MB, free: 12.22 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004918/0.06789, allocations: 2.175 MB / 352.1 MB, free: 9.973 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.849e-05/0.06792, allocations: 8.062 kB / 352.1 MB, free: 9.965 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008567/0.06878, allocations: 180 kB / 352.2 MB, free: 9.789 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001208/0.06999, allocations: 0.6192 MB / 352.9 MB, free: 9.16 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001023/0.07009, allocations: 35.97 kB / 352.9 MB, free: 9.125 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004239/0.07433, allocations: 3.077 MB / 356 MB, free: 5.891 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.299e-06/0.07434, allocations: 4.031 kB / 356 MB, free: 5.887 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004502/0.07884, allocations: 1.837 MB / 357.8 MB, free: 4 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005004/0.07934, allocations: 167.4 kB / 358 MB, free: 3.836 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001806/0.07952, allocations: 31.98 kB / 358 MB, free: 3.805 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001553/0.08107, allocations: 199.7 kB / 358.2 MB, free: 3.609 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001051/0.08212, allocations: 388.3 kB / 358.6 MB, free: 3.23 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001152/0.08224, allocations: 47.91 kB / 358.6 MB, free: 3.184 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003284/0.08257, allocations: 255.2 kB / 358.9 MB, free: 2.934 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.08257, allocations: 4 kB / 358.9 MB, free: 2.93 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009477/0.08351, allocations: 244 kB / 359.1 MB, free: 2.691 MB / 318.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.0003753/0.08389, allocations: 173 kB / 359.3 MB, free: 2.516 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002804/0.08669, allocations: 1.13 MB / 360.4 MB, free: 1.375 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.0867, allocations: 3.938 kB / 360.4 MB, free: 1.371 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001815/0.08851, allocations: 0.743 MB / 361.2 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009062/0.08942, allocations: 129.6 kB / 361.3 MB, free: 500 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004118/0.09354, allocations: 1.764 MB / 363.1 MB, free: 14.67 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003698/0.09391, allocations: 340.8 kB / 363.4 MB, free: 14.32 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003294/0.09424, allocations: 73.36 kB / 363.5 MB, free: 14.24 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002305/0.09447, allocations: 64.47 kB / 363.5 MB, free: 14.18 MB / 334.1 MB Notification: Performance of SimCode: time 4.91e-07/0.09447, allocations: 4 kB / 363.5 MB, free: 14.18 MB / 334.1 MB Notification: Performance of Templates: time 0.02843/0.1229, allocations: 15.64 MB / 379.2 MB, free: 14.66 MB / 350.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/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.154652010649443]