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.0006591/0.0006591, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009545/0.001614, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 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.0006829/0.0006829, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00108/0.001763, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 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.9629/0.9629, allocations: 177.5 MB / 190 MB, free: 4.793 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08747/1.05, allocations: 53.87 MB / 243.9 MB, free: 14.86 MB / 250.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 3.206e-06/3.206e-06, allocations: 4 kB / 245.2 MB, free: 13.58 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.215e-05/2.536e-05, allocations: 2.312 kB / 245.2 MB, free: 13.57 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.006142/0.006168, allocations: 4.406 MB / 249.6 MB, free: 9.145 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004424/0.01059, allocations: 1.612 MB / 251.2 MB, free: 7.527 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007628/0.01135, allocations: 19.88 kB / 251.2 MB, free: 7.508 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003415/0.0117, allocations: 142.6 kB / 251.4 MB, free: 7.367 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004864/0.01218, allocations: 293.4 kB / 251.7 MB, free: 7.078 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007252/0.01291, allocations: 431.1 kB / 252.1 MB, free: 6.656 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008132/0.01372, allocations: 1.193 MB / 253.3 MB, free: 5.461 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002212/0.01394, allocations: 196.1 kB / 253.5 MB, free: 5.254 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007176/0.01466, allocations: 0.7439 MB / 254.2 MB, free: 4.504 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004094/0.01507, allocations: 438.9 kB / 254.6 MB, free: 4.074 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001173/0.01519, allocations: 92 kB / 254.7 MB, free: 3.984 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002384/0.01542, allocations: 167.8 kB / 254.9 MB, free: 3.82 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002255/0.01565, allocations: 167.5 kB / 255.1 MB, free: 3.656 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002101/0.01586, allocations: 263.5 kB / 255.3 MB, free: 3.398 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006116/0.01647, allocations: 0.7397 MB / 256.1 MB, free: 2.656 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.105e-06/0.01648, allocations: 0 / 256.1 MB, free: 2.656 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.01648, allocations: 4 kB / 256.1 MB, free: 2.652 MB / 250.7 MB Notification: Performance of Transformations before backend: time 9.128e-06/0.01649, allocations: 4 kB / 256.1 MB, free: 2.648 MB / 250.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.001317/0.01781, allocations: 1.333 MB / 257.4 MB, free: 1.289 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.421e-05/0.01783, allocations: 8.625 kB / 257.4 MB, free: 1.281 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003137/0.01814, allocations: 217.9 kB / 257.6 MB, free: 1.051 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003843/0.01853, allocations: 356.1 kB / 258 MB, free: 0.6719 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.682e-05/0.01857, allocations: 50.38 kB / 258 MB, free: 0.6211 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.421e-05/0.01865, allocations: 76.33 kB / 258.1 MB, free: 0.5469 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005971/0.01925, allocations: 0.562 MB / 258.7 MB, free: 15.98 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.91e-05/0.01927, allocations: 15.8 kB / 258.7 MB, free: 15.96 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.779e-05/0.01931, allocations: 32 kB / 258.7 MB, free: 15.93 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.018e-05/0.01932, allocations: 16 kB / 258.7 MB, free: 15.91 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004498/0.01977, allocations: 353.7 kB / 259.1 MB, free: 15.57 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001793/0.02157, allocations: 1.36 MB / 260.4 MB, free: 14.17 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004916/0.02206, allocations: 431.2 kB / 260.8 MB, free: 13.74 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002221/0.02228, allocations: 192.4 kB / 261 MB, free: 13.55 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.29e-05/0.02234, allocations: 17 kB / 261 MB, free: 13.53 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003759/0.02272, allocations: 360.8 kB / 261.4 MB, free: 13.16 MB / 266.7 MB Notification: Performance of pre-optimization done (n=90): time 2.775e-06/0.02272, allocations: 4 kB / 261.4 MB, free: 13.16 MB / 266.7 MB Notification: Performance of matching and sorting (n=110): time 0.00365/0.02637, allocations: 2.559 MB / 264 MB, free: 10.57 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.591e-05/0.02647, allocations: 64.41 kB / 264 MB, free: 10.49 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002143/0.02668, allocations: 372.8 kB / 264.4 MB, free: 10.11 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.511e-05/0.02674, allocations: 49.7 kB / 264.4 MB, free: 10.06 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.701e-05/0.02684, allocations: 250.5 kB / 264.7 MB, free: 9.809 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001827/0.02702, allocations: 392.7 kB / 265.1 MB, free: 9.422 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001775/0.0272, allocations: 194.8 kB / 265.3 MB, free: 9.223 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.209e-05/0.02729, allocations: 386.5 kB / 265.6 MB, free: 8.836 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002292/0.02752, allocations: 166.5 kB / 265.8 MB, free: 8.676 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002303/0.02775, allocations: 255.4 kB / 266 MB, free: 8.406 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003873/0.02813, allocations: 444.5 kB / 266.5 MB, free: 7.953 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.02814, allocations: 0 / 266.5 MB, free: 7.953 MB / 266.7 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.0008146/0.02895, allocations: 0.675 MB / 267.2 MB, free: 7.262 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.213e-05/0.02896, allocations: 15.92 kB / 267.2 MB, free: 7.246 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.483e-06/0.02897, allocations: 3.938 kB / 267.2 MB, free: 7.242 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004992/0.02947, allocations: 402.2 kB / 267.6 MB, free: 6.84 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004145/0.02988, allocations: 235.7 kB / 267.8 MB, free: 6.609 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001616/0.0315, allocations: 2.689 MB / 270.5 MB, free: 3.777 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003265/0.03183, allocations: 115.9 kB / 270.6 MB, free: 3.664 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.773e-05/0.03186, allocations: 24 kB / 270.6 MB, free: 3.641 MB / 266.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.0001687/0.03203, allocations: 180.4 kB / 270.8 MB, free: 3.457 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.315e-05/0.03213, allocations: 87.92 kB / 270.9 MB, free: 3.371 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.41e-05/0.03222, allocations: 103.1 kB / 271 MB, free: 3.27 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/0.03222, allocations: 12 kB / 271 MB, free: 3.258 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.685e-06/0.03223, allocations: 0 / 271 MB, free: 3.258 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.224e-05/0.03224, allocations: 11.97 kB / 271 MB, free: 3.246 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001541/0.03378, allocations: 1.308 MB / 272.3 MB, free: 1.871 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.03378, allocations: 4 kB / 272.3 MB, free: 1.867 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004096/0.03419, allocations: 200 kB / 272.5 MB, free: 1.672 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001797/0.03437, allocations: 99.47 kB / 272.6 MB, free: 1.574 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00044/0.03481, allocations: 402.1 kB / 273 MB, free: 1.172 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.447e-05/0.03486, allocations: 35.95 kB / 273 MB, free: 1.137 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001451/0.03631, allocations: 2.54 MB / 275.6 MB, free: 14.46 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.03631, allocations: 0 / 275.6 MB, free: 14.46 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001005/0.03732, allocations: 0.956 MB / 276.5 MB, free: 13.45 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.764e-05/0.03739, allocations: 32 kB / 276.6 MB, free: 13.42 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003844/0.03778, allocations: 127.8 kB / 276.7 MB, free: 13.3 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000451/0.03823, allocations: 368.2 kB / 277.1 MB, free: 12.94 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.376e-05/0.03827, allocations: 31.95 kB / 277.1 MB, free: 12.91 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001079/0.03838, allocations: 152.7 kB / 277.2 MB, free: 12.75 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03838, allocations: 0 / 277.2 MB, free: 12.75 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003946/0.03877, allocations: 243.9 kB / 277.5 MB, free: 12.52 MB / 282.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.001008/0.03978, allocations: 0.5198 MB / 278 MB, free: 12.18 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007212/0.0405, allocations: 0.6852 MB / 278.7 MB, free: 11.48 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.72e-05/0.04052, allocations: 15.98 kB / 278.7 MB, free: 11.46 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004621/0.04098, allocations: 0.5085 MB / 279.2 MB, free: 10.94 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007912/0.04178, allocations: 1.21 MB / 280.4 MB, free: 9.504 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003588/0.04536, allocations: 1.581 MB / 282 MB, free: 7.863 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.917e-05/0.04546, allocations: 169.3 kB / 282.2 MB, free: 7.68 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001937/0.04566, allocations: 89.64 kB / 282.2 MB, free: 7.59 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002875/0.04594, allocations: 201.3 kB / 282.4 MB, free: 7.391 MB / 282.7 MB Notification: Performance of SimCode: time 4.21e-07/0.04594, allocations: 0 / 282.4 MB, free: 7.391 MB / 282.7 MB Notification: Performance of Templates: time 0.1282/0.1742, allocations: 17.62 MB / 300.1 MB, free: 30.68 MB / 282.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1584419049322605]