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.001361/0.001361, allocations: 88.25 kB / 22.22 MB, free: 2.281 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.001132/0.001132, allocations: 169.2 kB / 25.61 MB, free: 8.91 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.9614/0.9614, allocations: 177 MB / 205.9 MB, free: 4.434 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.223e-06/1.223e-06, allocations: 0 / 274.1 MB, free: 4.277 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.228e-05/1.351e-05, allocations: 5.359 kB / 274.1 MB, free: 4.273 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.00553/0.005544, allocations: 4.347 MB / 278.5 MB, free: 15.92 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002184/0.007727, allocations: 1.546 MB / 280 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001739/0.007901, allocations: 19.88 kB / 280 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002763/0.008178, allocations: 138.7 kB / 280.2 MB, free: 14.22 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003706/0.008548, allocations: 293.4 kB / 280.4 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005451/0.009094, allocations: 439.1 kB / 280.9 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009144/0.01001, allocations: 1.209 MB / 282.1 MB, free: 12.29 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00022/0.01023, allocations: 182.2 kB / 282.3 MB, free: 12.09 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006159/0.01084, allocations: 0.694 MB / 282.9 MB, free: 11.4 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004317/0.01128, allocations: 442.9 kB / 283.4 MB, free: 10.96 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.979e-05/0.01138, allocations: 96 kB / 283.5 MB, free: 10.87 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001975/0.01157, allocations: 163.8 kB / 283.6 MB, free: 10.71 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001963/0.01177, allocations: 251.2 kB / 283.9 MB, free: 10.46 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002607/0.01203, allocations: 343.2 kB / 284.2 MB, free: 10.13 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006638/0.01269, allocations: 0.8604 MB / 285.1 MB, free: 9.266 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.914e-06/0.0127, allocations: 0 / 285.1 MB, free: 9.266 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.01e-07/0.0127, allocations: 0 / 285.1 MB, free: 9.266 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.843e-06/0.0127, allocations: 0 / 285.1 MB, free: 9.266 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.001583/0.01429, allocations: 1.434 MB / 286.5 MB, free: 7.781 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.648e-05/0.01431, allocations: 8.031 kB / 286.5 MB, free: 7.773 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003279/0.01464, allocations: 180.3 kB / 286.7 MB, free: 7.598 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004436/0.01508, allocations: 422.8 kB / 287.1 MB, free: 7.152 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.696e-05/0.01512, allocations: 50.38 kB / 287.2 MB, free: 7.105 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.845e-05/0.01521, allocations: 72.38 kB / 287.2 MB, free: 7.035 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006881/0.0159, allocations: 0.5659 MB / 287.8 MB, free: 6.465 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.348e-05/0.01592, allocations: 11.88 kB / 287.8 MB, free: 6.453 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.331e-05/0.01597, allocations: 28 kB / 287.8 MB, free: 6.426 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.189e-05/0.01599, allocations: 16 kB / 287.8 MB, free: 6.41 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005384/0.01652, allocations: 413.5 kB / 288.2 MB, free: 6.004 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001957/0.01848, allocations: 1.686 MB / 289.9 MB, free: 4.266 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005385/0.01902, allocations: 455.4 kB / 290.4 MB, free: 3.809 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002434/0.01926, allocations: 223.1 kB / 290.6 MB, free: 3.582 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.655e-05/0.01931, allocations: 13 kB / 290.6 MB, free: 3.57 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003637/0.01967, allocations: 366.5 kB / 291 MB, free: 3.195 MB / 266.7 MB Notification: Performance of pre-optimization done (n=90): time 2.505e-06/0.01968, allocations: 0 / 291 MB, free: 3.195 MB / 266.7 MB Notification: Performance of matching and sorting (n=110): time 0.003761/0.02344, allocations: 2.512 MB / 293.5 MB, free: 0.6484 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.678e-05/0.02346, allocations: 68.41 kB / 293.5 MB, free: 0.5664 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002349/0.0237, allocations: 418.4 kB / 294 MB, free: 148 kB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.026e-05/0.02376, allocations: 61.69 kB / 294 MB, free: 80 kB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001402/0.0239, allocations: 328.2 kB / 294.3 MB, free: 15.75 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001864/0.02409, allocations: 392.7 kB / 294.7 MB, free: 15.36 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002047/0.02429, allocations: 196.5 kB / 294.9 MB, free: 15.16 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001476/0.02444, allocations: 0.5545 MB / 295.5 MB, free: 14.59 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002899/0.02473, allocations: 190.5 kB / 295.7 MB, free: 14.41 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002855/0.02501, allocations: 312.2 kB / 296 MB, free: 14.08 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004752/0.02549, allocations: 442.9 kB / 296.4 MB, free: 13.62 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.02549, allocations: 0 / 296.4 MB, free: 13.62 MB / 282.7 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.001263/0.02675, allocations: 0.8703 MB / 297.3 MB, free: 12.73 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.399e-05/0.02677, allocations: 11.94 kB / 297.3 MB, free: 12.72 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.551e-06/0.02677, allocations: 0 / 297.3 MB, free: 12.72 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005245/0.0273, allocations: 426.6 kB / 297.7 MB, free: 12.29 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004275/0.02773, allocations: 191.7 kB / 297.9 MB, free: 12.11 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002552/0.03028, allocations: 3.908 MB / 301.8 MB, free: 8.02 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006162/0.03089, allocations: 115.9 kB / 301.9 MB, free: 7.906 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.715e-05/0.03095, allocations: 27.98 kB / 301.9 MB, free: 7.879 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.0002688/0.03122, allocations: 228.3 kB / 302.1 MB, free: 7.645 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001488/0.03137, allocations: 107.5 kB / 302.3 MB, free: 7.539 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001211/0.03149, allocations: 107.1 kB / 302.4 MB, free: 7.43 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.524e-06/0.0315, allocations: 12 kB / 302.4 MB, free: 7.418 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.0315, allocations: 0 / 302.4 MB, free: 7.418 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.344e-06/0.03151, allocations: 7.984 kB / 302.4 MB, free: 7.41 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002206/0.03372, allocations: 1.707 MB / 304.1 MB, free: 5.621 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.619e-06/0.03372, allocations: 8 kB / 304.1 MB, free: 5.613 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003967/0.03412, allocations: 172 kB / 304.3 MB, free: 5.445 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005246/0.03464, allocations: 430.7 kB / 304.7 MB, free: 5.012 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.189e-05/0.0347, allocations: 35.97 kB / 304.7 MB, free: 4.977 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001964/0.03667, allocations: 3.673 MB / 308.4 MB, free: 1.129 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.038e-06/0.03667, allocations: 7.938 kB / 308.4 MB, free: 1.121 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001619/0.03829, allocations: 1.175 MB / 309.6 MB, free: 15.88 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002618/0.03855, allocations: 163.4 kB / 309.7 MB, free: 15.72 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.121e-05/0.03864, allocations: 36 kB / 309.8 MB, free: 15.69 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004418/0.03909, allocations: 131.8 kB / 309.9 MB, free: 15.56 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000487/0.03957, allocations: 364.2 kB / 310.3 MB, free: 15.2 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.355e-05/0.03963, allocations: 35.97 kB / 310.3 MB, free: 15.17 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001466/0.03977, allocations: 271 kB / 310.6 MB, free: 14.9 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.03977, allocations: 4 kB / 310.6 MB, free: 14.9 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000518/0.04029, allocations: 240 kB / 310.8 MB, free: 14.66 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.0007811/0.04107, allocations: 387.6 kB / 311.2 MB, free: 14.38 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0009665/0.04204, allocations: 0.7834 MB / 312 MB, free: 13.57 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.04204, allocations: 0 / 312 MB, free: 13.57 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005679/0.04261, allocations: 0.5445 MB / 312.5 MB, free: 13 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005519/0.04316, allocations: 201.3 kB / 312.7 MB, free: 12.82 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002499/0.04566, allocations: 1.724 MB / 314.4 MB, free: 11.03 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001311/0.04579, allocations: 173.1 kB / 314.6 MB, free: 10.84 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002759/0.04607, allocations: 81.66 kB / 314.7 MB, free: 10.76 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003282/0.0464, allocations: 234.1 kB / 314.9 MB, free: 10.53 MB / 298.7 MB Notification: Performance of SimCode: time 1.803e-06/0.0464, allocations: 0 / 314.9 MB, free: 10.53 MB / 298.7 MB Notification: Performance of Templates: time 0.0212/0.0676, allocations: 17.76 MB / 332.6 MB, free: 8.91 MB / 314.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.444669159129262]