Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001219/0.001219, allocations: 80.92 kB / 21.49 MB, free: 2.996 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.004454/0.004454, allocations: 169.9 kB / 24.91 MB, free: 8.723 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9813/0.9813, allocations: 177.1 MB / 205.3 MB, free: 5.098 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.683e-06/1.683e-06, allocations: 0 / 273.4 MB, free: 1.195 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.042e-05/2.21e-05, allocations: 2.312 kB / 273.4 MB, free: 1.191 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.004071/0.004093, allocations: 4.354 MB / 277.8 MB, free: 12.82 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002477/0.00657, allocations: 1.597 MB / 279.4 MB, free: 11.21 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002485/0.006819, allocations: 15.88 kB / 279.4 MB, free: 11.2 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003463/0.007165, allocations: 142.6 kB / 279.5 MB, free: 11.05 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004722/0.007637, allocations: 301.5 kB / 279.8 MB, free: 10.76 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006865/0.008324, allocations: 431 kB / 280.3 MB, free: 10.34 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009919/0.009315, allocations: 1.201 MB / 281.5 MB, free: 9.133 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002678/0.009583, allocations: 188.2 kB / 281.6 MB, free: 8.934 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008048/0.01039, allocations: 0.694 MB / 282.3 MB, free: 8.238 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004166/0.0108, allocations: 442.9 kB / 282.8 MB, free: 7.805 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001045/0.01091, allocations: 96 kB / 282.9 MB, free: 7.711 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002213/0.01113, allocations: 167.8 kB / 283 MB, free: 7.547 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001753/0.01131, allocations: 247.2 kB / 283.3 MB, free: 7.305 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002393/0.01155, allocations: 343.2 kB / 283.6 MB, free: 6.969 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007044/0.01225, allocations: 0.8682 MB / 284.5 MB, free: 6.098 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.575e-06/0.01225, allocations: 0 / 284.5 MB, free: 6.098 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.62e-07/0.01225, allocations: 0 / 284.5 MB, free: 6.098 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.863e-06/0.01226, allocations: 0 / 284.5 MB, free: 6.098 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.001531/0.01379, allocations: 1.15 MB / 285.6 MB, free: 4.918 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.828e-05/0.01383, allocations: 8.031 kB / 285.6 MB, free: 4.91 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003764/0.01421, allocations: 144.8 kB / 285.8 MB, free: 4.77 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004588/0.01466, allocations: 348 kB / 286.1 MB, free: 4.398 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.27e-05/0.01471, allocations: 54.38 kB / 286.2 MB, free: 4.348 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001008/0.01481, allocations: 80.31 kB / 286.2 MB, free: 4.27 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006897/0.0155, allocations: 0.562 MB / 286.8 MB, free: 3.699 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.577e-05/0.01552, allocations: 11.92 kB / 286.8 MB, free: 3.688 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.895e-05/0.01557, allocations: 24 kB / 286.8 MB, free: 3.664 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.549e-05/0.01559, allocations: 16 kB / 286.9 MB, free: 3.648 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004885/0.01608, allocations: 353.7 kB / 287.2 MB, free: 3.301 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001927/0.018, allocations: 1.372 MB / 288.6 MB, free: 1.887 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004925/0.0185, allocations: 419.4 kB / 289 MB, free: 1.465 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002145/0.01871, allocations: 192.4 kB / 289.2 MB, free: 1.273 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.922e-05/0.01877, allocations: 24.98 kB / 289.2 MB, free: 1.25 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003326/0.0191, allocations: 356.8 kB / 289.5 MB, free: 0.8867 MB / 266.7 MB Notification: Performance of pre-optimization done (n=90): time 2.104e-06/0.0191, allocations: 0 / 289.5 MB, free: 0.8867 MB / 266.7 MB Notification: Performance of matching and sorting (n=110): time 0.1153/0.1344, allocations: 2.473 MB / 292 MB, free: 25.02 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.596e-05/0.1344, allocations: 62.62 kB / 292.1 MB, free: 24.96 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002899/0.1347, allocations: 369.4 kB / 292.4 MB, free: 24.83 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.367e-05/0.1348, allocations: 60.09 kB / 292.5 MB, free: 24.8 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001089/0.1349, allocations: 249.3 kB / 292.7 MB, free: 24.68 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001897/0.1351, allocations: 389.8 kB / 293.1 MB, free: 24.48 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001967/0.1353, allocations: 194.4 kB / 293.3 MB, free: 24.46 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.945e-05/0.1353, allocations: 384.1 kB / 293.7 MB, free: 24.15 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000283/0.1356, allocations: 164.4 kB / 293.8 MB, free: 24.14 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002807/0.1359, allocations: 257 kB / 294.1 MB, free: 24.08 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004989/0.1364, allocations: 436.4 kB / 294.5 MB, free: 24.01 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.1364, allocations: 0.75 kB / 294.5 MB, free: 24.01 MB / 266.7 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.001086/0.1375, allocations: 0.6815 MB / 295.2 MB, free: 23.93 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.919e-05/0.1375, allocations: 6.922 kB / 295.2 MB, free: 23.93 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.1375, allocations: 1.516 kB / 295.2 MB, free: 23.93 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005853/0.1381, allocations: 408.9 kB / 295.6 MB, free: 23.9 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004305/0.1385, allocations: 193.2 kB / 295.8 MB, free: 23.9 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001449/0.14, allocations: 2.687 MB / 298.5 MB, free: 21.58 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003717/0.1403, allocations: 111.5 kB / 298.6 MB, free: 21.58 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.306e-05/0.1404, allocations: 33.73 kB / 298.6 MB, free: 21.57 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.0001596/0.1405, allocations: 187.1 kB / 298.8 MB, free: 21.45 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001121/0.1407, allocations: 89.83 kB / 298.9 MB, free: 21.45 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.82e-05/0.1407, allocations: 104.6 kB / 299 MB, free: 21.44 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.673e-06/0.1407, allocations: 10.78 kB / 299 MB, free: 21.44 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.1408, allocations: 0.6562 kB / 299 MB, free: 21.44 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.088e-05/0.1408, allocations: 6.5 kB / 299 MB, free: 21.44 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001745/0.1425, allocations: 1.304 MB / 300.3 MB, free: 21.08 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.77e-06/0.1425, allocations: 6.953 kB / 300.3 MB, free: 21.07 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003794/0.1429, allocations: 166.8 kB / 300.5 MB, free: 21.07 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004457/0.1433, allocations: 402.2 kB / 300.9 MB, free: 21.02 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.661e-05/0.1434, allocations: 33.56 kB / 300.9 MB, free: 21.02 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001228/0.1446, allocations: 2.542 MB / 303.5 MB, free: 18.82 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/0.1446, allocations: 6.719 kB / 303.5 MB, free: 18.82 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001174/0.1458, allocations: 0.9445 MB / 304.4 MB, free: 18.55 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001955/0.146, allocations: 93.23 kB / 304.5 MB, free: 18.52 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.985e-05/0.1461, allocations: 31.38 kB / 304.5 MB, free: 18.52 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003951/0.1465, allocations: 137.4 kB / 304.7 MB, free: 18.51 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004247/0.1469, allocations: 367.2 kB / 305 MB, free: 18.5 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.053e-05/0.1469, allocations: 32.41 kB / 305.1 MB, free: 18.5 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001287/0.1471, allocations: 151.7 kB / 305.2 MB, free: 18.48 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1471, allocations: 0 / 305.2 MB, free: 18.48 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005219/0.1476, allocations: 241.3 kB / 305.4 MB, free: 18.48 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.00102/0.1486, allocations: 0.4922 MB / 305.9 MB, free: 18.34 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007954/0.1494, allocations: 0.6793 MB / 306.6 MB, free: 18.18 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 7.153e-06/0.1494, allocations: 3.562 kB / 306.6 MB, free: 18.18 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003991/0.1498, allocations: 472.5 kB / 307.1 MB, free: 18 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004372/0.1503, allocations: 185.8 kB / 307.3 MB, free: 17.93 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001889/0.1521, allocations: 1.568 MB / 308.8 MB, free: 17.11 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.982e-05/0.1522, allocations: 168.2 kB / 309 MB, free: 17.04 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000208/0.1524, allocations: 88.69 kB / 309.1 MB, free: 17.01 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002835/0.1527, allocations: 196.7 kB / 309.3 MB, free: 16.95 MB / 266.7 MB Notification: Performance of SimCode: time 7.62e-07/0.1527, allocations: 0 / 309.3 MB, free: 16.95 MB / 266.7 MB Notification: Performance of Templates: time 0.01591/0.1686, allocations: 17.24 MB / 326.5 MB, free: 108 kB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & ./Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.326121395919472]