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.001058/0.001058, allocations: 83.59 kB / 21.18 MB, free: 3.383 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.001044/0.001044, allocations: 165 kB / 24.56 MB, free: 12 kB / 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.9855/0.9855, allocations: 177.1 MB / 205 MB, free: 5.625 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.303e-06/1.303e-06, allocations: 0 / 273 MB, free: 1.543 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.285e-05/1.416e-05, allocations: 2.312 kB / 273 MB, free: 1.539 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.003865/0.00388, allocations: 4.408 MB / 277.4 MB, free: 13.11 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002237/0.006117, allocations: 1.562 MB / 278.9 MB, free: 11.54 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002567/0.006374, allocations: 19.88 kB / 279 MB, free: 11.52 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003325/0.006706, allocations: 130.7 kB / 279.1 MB, free: 11.39 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005434/0.00725, allocations: 293.5 kB / 279.4 MB, free: 11.1 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006772/0.007927, allocations: 447 kB / 279.8 MB, free: 10.66 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008015/0.008728, allocations: 1.201 MB / 281 MB, free: 9.457 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002481/0.008977, allocations: 174.2 kB / 281.2 MB, free: 9.273 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007493/0.009726, allocations: 0.7057 MB / 281.9 MB, free: 8.566 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004196/0.01015, allocations: 442.9 kB / 282.3 MB, free: 8.133 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001074/0.01025, allocations: 95.94 kB / 282.4 MB, free: 8.039 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002165/0.01047, allocations: 163.8 kB / 282.6 MB, free: 7.879 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001758/0.01065, allocations: 251.2 kB / 282.8 MB, free: 7.633 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000235/0.01088, allocations: 335.2 kB / 283.1 MB, free: 7.305 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006947/0.01157, allocations: 0.8682 MB / 284 MB, free: 6.434 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.165e-06/0.01158, allocations: 0 / 284 MB, free: 6.434 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.11e-07/0.01158, allocations: 0 / 284 MB, free: 6.434 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.959e-06/0.01159, allocations: 4 kB / 284 MB, free: 6.43 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.00165/0.01324, allocations: 1.407 MB / 285.4 MB, free: 4.973 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.145e-05/0.01327, allocations: 12.03 kB / 285.4 MB, free: 4.961 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003563/0.01363, allocations: 168.3 kB / 285.6 MB, free: 4.797 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004519/0.01408, allocations: 438.7 kB / 286 MB, free: 4.336 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.781e-05/0.01412, allocations: 50.38 kB / 286.1 MB, free: 4.289 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.089e-05/0.01421, allocations: 76.33 kB / 286.2 MB, free: 4.215 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009547/0.01516, allocations: 0.6285 MB / 286.8 MB, free: 3.578 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.194e-05/0.01518, allocations: 11.88 kB / 286.8 MB, free: 3.566 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.694e-05/0.01524, allocations: 28 kB / 286.8 MB, free: 3.539 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.283e-05/0.01525, allocations: 16 kB / 286.8 MB, free: 3.523 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007461/0.016, allocations: 499.5 kB / 287.3 MB, free: 3.035 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002183/0.01818, allocations: 1.752 MB / 289.1 MB, free: 1.23 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007077/0.01889, allocations: 0.5059 MB / 289.6 MB, free: 0.7148 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003413/0.01923, allocations: 267.1 kB / 289.8 MB, free: 460 kB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.199e-05/0.01928, allocations: 17 kB / 289.9 MB, free: 444 kB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004838/0.01977, allocations: 402.6 kB / 290.3 MB, free: 24 kB / 266.7 MB Notification: Performance of pre-optimization done (n=90): time 1.873e-06/0.01977, allocations: 0 / 290.3 MB, free: 24 kB / 266.7 MB Notification: Performance of matching and sorting (n=110): time 0.1119/0.1317, allocations: 2.82 MB / 293.1 MB, free: 24.36 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.274e-05/0.1317, allocations: 64.47 kB / 293.1 MB, free: 24.29 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003358/0.132, allocations: 423.6 kB / 293.6 MB, free: 24.11 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.101e-05/0.1321, allocations: 59.34 kB / 293.6 MB, free: 24.08 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001286/0.1322, allocations: 330.8 kB / 293.9 MB, free: 23.89 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001844/0.1324, allocations: 387.6 kB / 294.3 MB, free: 23.7 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002201/0.1326, allocations: 193.3 kB / 294.5 MB, free: 23.67 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.143e-05/0.1327, allocations: 0.5483 MB / 295 MB, free: 23.17 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004472/0.1332, allocations: 246.9 kB / 295.3 MB, free: 23.17 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004643/0.1336, allocations: 360.8 kB / 295.6 MB, free: 23.08 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006752/0.1343, allocations: 0.5033 MB / 296.1 MB, free: 22.99 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.1343, allocations: 3.938 kB / 296.1 MB, free: 22.99 MB / 266.7 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.001618/0.1359, allocations: 0.9773 MB / 297.1 MB, free: 22.85 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.324e-05/0.1359, allocations: 10.12 kB / 297.1 MB, free: 22.85 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.213e-05/0.1359, allocations: 2.062 kB / 297.1 MB, free: 22.85 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007524/0.1367, allocations: 438.9 kB / 297.6 MB, free: 22.81 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005672/0.1373, allocations: 188.5 kB / 297.8 MB, free: 22.81 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002412/0.1397, allocations: 3.955 MB / 301.7 MB, free: 19.26 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007094/0.1404, allocations: 122.7 kB / 301.8 MB, free: 19.25 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.443e-05/0.1405, allocations: 36.06 kB / 301.9 MB, free: 19.25 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.0003022/0.1408, allocations: 225 kB / 302.1 MB, free: 19.09 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002032/0.141, allocations: 115.6 kB / 302.2 MB, free: 19.05 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001341/0.1411, allocations: 104.5 kB / 302.3 MB, free: 19 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.154e-05/0.1411, allocations: 11.38 kB / 302.3 MB, free: 19 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.155e-05/0.1411, allocations: 0 / 302.3 MB, free: 19 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.57e-05/0.1412, allocations: 8.344 kB / 302.3 MB, free: 19 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00339/0.1445, allocations: 1.859 MB / 304.2 MB, free: 18.1 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.175e-06/0.1446, allocations: 5.438 kB / 304.2 MB, free: 18.1 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004705/0.145, allocations: 167.3 kB / 304.3 MB, free: 18.09 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006186/0.1456, allocations: 435.1 kB / 304.8 MB, free: 17.95 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.66e-05/0.1457, allocations: 35.75 kB / 304.8 MB, free: 17.93 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001833/0.1475, allocations: 3.74 MB / 308.5 MB, free: 14.44 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.339e-06/0.1476, allocations: 2.594 kB / 308.5 MB, free: 14.44 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001701/0.1493, allocations: 1.308 MB / 309.9 MB, free: 13.86 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002642/0.1495, allocations: 162.6 kB / 310 MB, free: 13.78 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.391e-05/0.1496, allocations: 35.41 kB / 310 MB, free: 13.76 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004194/0.15, allocations: 132.7 kB / 310.2 MB, free: 13.74 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004666/0.1505, allocations: 367.8 kB / 310.5 MB, free: 13.65 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.117e-05/0.1505, allocations: 47.06 kB / 310.6 MB, free: 13.64 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000185/0.1507, allocations: 280.9 kB / 310.9 MB, free: 13.48 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1507, allocations: 0 / 310.9 MB, free: 13.48 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006443/0.1514, allocations: 238.2 kB / 311.1 MB, free: 13.45 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.0007667/0.1521, allocations: 401.4 kB / 311.5 MB, free: 13.28 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001121/0.1533, allocations: 0.8743 MB / 312.4 MB, free: 12.96 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.1533, allocations: 3.938 kB / 312.4 MB, free: 12.96 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005213/0.1538, allocations: 0.5782 MB / 312.9 MB, free: 12.5 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005251/0.1543, allocations: 191.7 kB / 313.1 MB, free: 12.36 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002369/0.1567, allocations: 1.756 MB / 314.9 MB, free: 10.65 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.82e-05/0.1568, allocations: 169.2 kB / 315 MB, free: 10.46 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002049/0.157, allocations: 85.25 kB / 315.1 MB, free: 10.38 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001476/0.1571, allocations: 80.47 kB / 315.2 MB, free: 10.3 MB / 266.7 MB Notification: Performance of SimCode: time 1.092e-06/0.1571, allocations: 0 / 315.2 MB, free: 10.3 MB / 266.7 MB Notification: Performance of Templates: time 0.01755/0.1747, allocations: 17.09 MB / 332.3 MB, free: 9.391 MB / 282.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.353755527175963]