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.0009272/0.0009272, allocations: 95.5 kB / 21.2 MB, free: 3.371 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.0009526/0.0009526, allocations: 160.5 kB / 24.55 MB, free: 16 kB / 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.9162/0.9162, allocations: 177 MB / 204.8 MB, free: 5.574 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.713e-06/1.713e-06, allocations: 0 / 272.9 MB, free: 1.453 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.124e-05/2.295e-05, allocations: 2.312 kB / 272.9 MB, free: 1.449 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.004288/0.004311, allocations: 4.418 MB / 277.3 MB, free: 13.01 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002629/0.00694, allocations: 1.555 MB / 278.9 MB, free: 11.45 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004067/0.007346, allocations: 15.88 kB / 278.9 MB, free: 11.43 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004454/0.007792, allocations: 138.6 kB / 279 MB, free: 11.29 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000673/0.008465, allocations: 293.5 kB / 279.3 MB, free: 11 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001033/0.009498, allocations: 447 kB / 279.7 MB, free: 10.57 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001248/0.01075, allocations: 1.201 MB / 280.9 MB, free: 9.363 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003321/0.01108, allocations: 174.3 kB / 281.1 MB, free: 9.18 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001276/0.01235, allocations: 0.7018 MB / 281.8 MB, free: 8.477 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006452/0.013, allocations: 442.9 kB / 282.3 MB, free: 8.043 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001751/0.01317, allocations: 96 kB / 282.3 MB, free: 7.949 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003289/0.0135, allocations: 167.8 kB / 282.5 MB, free: 7.785 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002245/0.01373, allocations: 251.1 kB / 282.8 MB, free: 7.539 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003254/0.01405, allocations: 343.2 kB / 283.1 MB, free: 7.203 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009999/0.01505, allocations: 0.8565 MB / 283.9 MB, free: 6.344 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.01506, allocations: 3.938 kB / 284 MB, free: 6.34 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.01506, allocations: 0 / 284 MB, free: 6.34 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.48e-05/0.01507, allocations: 0 / 284 MB, free: 6.34 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.002196/0.01727, allocations: 1.407 MB / 285.4 MB, free: 4.883 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.146e-05/0.01731, allocations: 15.98 kB / 285.4 MB, free: 4.867 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005141/0.01782, allocations: 172.3 kB / 285.5 MB, free: 4.699 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006039/0.01843, allocations: 430.7 kB / 286 MB, free: 4.246 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.307e-05/0.01848, allocations: 58.38 kB / 286 MB, free: 4.191 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001227/0.0186, allocations: 76.33 kB / 286.1 MB, free: 4.117 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001155/0.01976, allocations: 0.6207 MB / 286.7 MB, free: 3.492 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.674e-05/0.01979, allocations: 7.938 kB / 286.7 MB, free: 3.484 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.12e-05/0.01986, allocations: 28 kB / 286.7 MB, free: 3.457 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.899e-05/0.01988, allocations: 16 kB / 286.8 MB, free: 3.441 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009971/0.02087, allocations: 499.5 kB / 287.3 MB, free: 2.949 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003223/0.0241, allocations: 1.752 MB / 289 MB, free: 1.141 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009195/0.02502, allocations: 0.5098 MB / 289.5 MB, free: 0.6211 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004494/0.02547, allocations: 263.1 kB / 289.8 MB, free: 364 kB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.315e-05/0.02553, allocations: 17 kB / 289.8 MB, free: 348 kB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.1129/0.1384, allocations: 397.8 kB / 290.2 MB, free: 25.09 MB / 266.7 MB Notification: Performance of pre-optimization done (n=90): time 4.288e-06/0.1384, allocations: 0.9844 kB / 290.2 MB, free: 25.09 MB / 266.7 MB Notification: Performance of matching and sorting (n=110): time 0.006106/0.1446, allocations: 2.832 MB / 293 MB, free: 24.63 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.385e-05/0.1446, allocations: 67.94 kB / 293.1 MB, free: 24.56 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003618/0.1449, allocations: 427.2 kB / 293.5 MB, free: 24.38 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.027e-05/0.145, allocations: 56.03 kB / 293.5 MB, free: 24.35 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001331/0.1451, allocations: 331.7 kB / 293.9 MB, free: 24.16 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002227/0.1454, allocations: 391 kB / 294.3 MB, free: 23.96 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002718/0.1456, allocations: 191 kB / 294.4 MB, free: 23.94 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.464e-05/0.1457, allocations: 0.5422 MB / 295 MB, free: 23.45 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005265/0.1463, allocations: 250.8 kB / 295.2 MB, free: 23.44 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005331/0.1468, allocations: 357.3 kB / 295.6 MB, free: 23.36 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007867/0.1476, allocations: 0.5084 MB / 296.1 MB, free: 23.26 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.27e-06/0.1476, allocations: 1 kB / 296.1 MB, free: 23.26 MB / 266.7 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.001822/0.1494, allocations: 0.9739 MB / 297.1 MB, free: 23.12 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.696e-05/0.1494, allocations: 6.594 kB / 297.1 MB, free: 23.12 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.233e-06/0.1494, allocations: 5.594 kB / 297.1 MB, free: 23.12 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007584/0.1502, allocations: 441 kB / 297.5 MB, free: 23.01 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005516/0.1507, allocations: 192.2 kB / 297.7 MB, free: 23 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00215/0.1529, allocations: 3.963 MB / 301.7 MB, free: 19.31 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005397/0.1534, allocations: 122.1 kB / 301.8 MB, free: 19.29 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.492e-05/0.1535, allocations: 34.77 kB / 301.8 MB, free: 19.29 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.0002077/0.1537, allocations: 224.1 kB / 302 MB, free: 19.09 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001572/0.1539, allocations: 113.3 kB / 302.1 MB, free: 19.03 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001047/0.154, allocations: 103.8 kB / 302.2 MB, free: 18.95 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.955e-06/0.154, allocations: 12.22 kB / 302.2 MB, free: 18.95 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.248e-06/0.154, allocations: 3.938 kB / 302.3 MB, free: 18.94 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.918e-06/0.154, allocations: 5.203 kB / 302.3 MB, free: 18.94 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002813/0.1568, allocations: 1.859 MB / 304.1 MB, free: 18.04 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.409e-06/0.1568, allocations: 1.375 kB / 304.1 MB, free: 18.04 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005158/0.1573, allocations: 164.9 kB / 304.3 MB, free: 18.04 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006502/0.158, allocations: 436 kB / 304.7 MB, free: 17.9 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.14e-05/0.1581, allocations: 34.36 kB / 304.7 MB, free: 17.88 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001942/0.16, allocations: 3.738 MB / 308.5 MB, free: 14.39 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.16, allocations: 3.047 kB / 308.5 MB, free: 14.39 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001693/0.1617, allocations: 1.312 MB / 309.8 MB, free: 13.81 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002139/0.1619, allocations: 162.9 kB / 310 MB, free: 13.73 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.844e-05/0.162, allocations: 37.75 kB / 310 MB, free: 13.7 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004032/0.1624, allocations: 130.6 kB / 310.1 MB, free: 13.68 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000457/0.1628, allocations: 361.2 kB / 310.5 MB, free: 13.6 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.301e-05/0.1629, allocations: 43.2 kB / 310.5 MB, free: 13.59 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001556/0.1631, allocations: 284 kB / 310.8 MB, free: 13.44 MB / 266.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1631, allocations: 0 / 310.8 MB, free: 13.44 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005668/0.1636, allocations: 246.3 kB / 311 MB, free: 13.41 MB / 266.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.000767/0.1644, allocations: 387.7 kB / 311.4 MB, free: 13.25 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.00108/0.1655, allocations: 0.8782 MB / 312.3 MB, free: 12.94 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.1655, allocations: 0 / 312.3 MB, free: 12.94 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005265/0.166, allocations: 0.5869 MB / 312.9 MB, free: 12.4 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005244/0.1665, allocations: 196.1 kB / 313.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002313/0.1688, allocations: 1.749 MB / 314.8 MB, free: 10.45 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.709e-05/0.1689, allocations: 173.2 kB / 315 MB, free: 10.25 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002163/0.1691, allocations: 85.66 kB / 315.1 MB, free: 10.17 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001788/0.1693, allocations: 72.47 kB / 315.1 MB, free: 10.1 MB / 266.7 MB Notification: Performance of SimCode: time 9.21e-07/0.1693, allocations: 0 / 315.1 MB, free: 10.1 MB / 266.7 MB Notification: Performance of Templates: time 0.02186/0.1912, allocations: 17.09 MB / 332.2 MB, free: 9.172 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 -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.2836575331166387]