Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.002025/0.002025, allocations: 88.62 kB / 21.44 MB, free: 276 kB / 14.72 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.002848/0.002848, allocations: 163.4 kB / 24.71 MB, free: 3.527 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.469/1.469, allocations: 158.6 MB / 186.5 MB, free: 6.387 MB / 174.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.283e-06/1.283e-06, allocations: 0 / 298.9 MB, free: 8.73 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.698e-05/2.826e-05, allocations: 2.281 kB / 298.9 MB, free: 8.727 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.005979/0.006007, allocations: 3.903 MB / 302.8 MB, free: 4.785 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003358/0.009365, allocations: 1.298 MB / 304.1 MB, free: 3.484 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006089/0.009974, allocations: 15.88 kB / 304.2 MB, free: 3.469 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004137/0.01039, allocations: 118.8 kB / 304.3 MB, free: 3.352 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005208/0.01091, allocations: 241.8 kB / 304.5 MB, free: 3.113 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001229/0.01214, allocations: 446.9 kB / 304.9 MB, free: 2.676 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001485/0.01362, allocations: 1.17 MB / 306.1 MB, free: 1.504 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003617/0.01398, allocations: 174.1 kB / 306.3 MB, free: 1.324 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001047/0.01503, allocations: 0.6667 MB / 307 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006103/0.01564, allocations: 426.9 kB / 307.4 MB, free: 244 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001677/0.01581, allocations: 92 kB / 307.5 MB, free: 152 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003299/0.01614, allocations: 147.9 kB / 307.6 MB, free: 4 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000292/0.01643, allocations: 231.2 kB / 307.8 MB, free: 15.78 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006045/0.01704, allocations: 323.3 kB / 308.1 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001927/0.01896, allocations: 1.149 MB / 309.3 MB, free: 14.31 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.01897, allocations: 8 kB / 309.3 MB, free: 14.3 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.01897, allocations: 0 / 309.3 MB, free: 14.3 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.318e-05/0.01898, allocations: 3.938 kB / 309.3 MB, free: 14.3 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 169 * Number of variables: 169 Notification: Performance of Generate backend data structure: time 0.004138/0.02312, allocations: 1.353 MB / 310.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/0.02317, allocations: 11.98 kB / 310.7 MB, free: 12.89 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00027/0.02344, allocations: 92.42 kB / 310.8 MB, free: 12.8 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008198/0.02426, allocations: 399.3 kB / 311.2 MB, free: 12.39 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.075e-05/0.02433, allocations: 54.38 kB / 311.2 MB, free: 12.33 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001637/0.02449, allocations: 68.33 kB / 311.3 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001853/0.02634, allocations: 0.8042 MB / 312.1 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.457e-05/0.02638, allocations: 12.14 kB / 312.1 MB, free: 11.45 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.445e-05/0.02647, allocations: 28.12 kB / 312.1 MB, free: 11.42 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.19e-05/0.02649, allocations: 16 kB / 312.1 MB, free: 11.4 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002242/0.02874, allocations: 0.8627 MB / 313 MB, free: 10.54 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004391/0.03313, allocations: 1.854 MB / 314.8 MB, free: 8.625 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001651/0.03478, allocations: 0.6656 MB / 315.5 MB, free: 7.945 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001021/0.0358, allocations: 436.3 kB / 315.9 MB, free: 7.52 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.988e-05/0.03588, allocations: 13 kB / 316 MB, free: 7.508 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00129/0.03717, allocations: 0.5594 MB / 316.5 MB, free: 6.934 MB / 302.1 MB Notification: Performance of pre-optimization done (n=86): time 3.076e-06/0.03717, allocations: 0 / 316.5 MB, free: 6.934 MB / 302.1 MB Notification: Performance of matching and sorting (n=106): time 0.0119/0.04907, allocations: 3.842 MB / 320.4 MB, free: 3.059 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.403e-05/0.04913, allocations: 64.34 kB / 320.4 MB, free: 2.98 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004926/0.04963, allocations: 377.5 kB / 320.8 MB, free: 2.605 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001075/0.04973, allocations: 61.62 kB / 320.8 MB, free: 2.539 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002499/0.04998, allocations: 281.5 kB / 321.1 MB, free: 2.258 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000347/0.05033, allocations: 372.9 kB / 321.5 MB, free: 1.891 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000345/0.05068, allocations: 190.8 kB / 321.7 MB, free: 1.699 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001997/0.05088, allocations: 366.8 kB / 322 MB, free: 1.332 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001057/0.05193, allocations: 442.4 kB / 322.5 MB, free: 0.8984 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001162/0.0531, allocations: 0.5228 MB / 323 MB, free: 364 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1509/0.2039, allocations: 0.7769 MB / 323.8 MB, free: 34.05 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.204, allocations: 1.25 kB / 323.8 MB, free: 34.05 MB / 302.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003049/0.207, allocations: 1.348 MB / 325.1 MB, free: 33.83 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.053e-05/0.207, allocations: 6.281 kB / 325.1 MB, free: 33.83 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.337e-06/0.207, allocations: 1.984 kB / 325.1 MB, free: 33.83 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001144/0.2082, allocations: 0.6538 MB / 325.8 MB, free: 33.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008115/0.209, allocations: 200.1 kB / 326 MB, free: 33.64 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003561/0.2125, allocations: 3.291 MB / 329.3 MB, free: 30.92 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001299/0.2138, allocations: 178.4 kB / 329.4 MB, free: 30.9 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.962e-05/0.2139, allocations: 36.22 kB / 329.5 MB, free: 30.89 MB / 302.1 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,7), (1,5), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0003822/0.2143, allocations: 225.6 kB / 329.7 MB, free: 30.71 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001422/0.2145, allocations: 74.58 kB / 329.8 MB, free: 30.71 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001863/0.2146, allocations: 106.1 kB / 329.9 MB, free: 30.62 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.138e-05/0.2147, allocations: 10.56 kB / 329.9 MB, free: 30.62 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.183e-06/0.2147, allocations: 3.938 kB / 329.9 MB, free: 30.62 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.341e-05/0.2147, allocations: 6.438 kB / 329.9 MB, free: 30.62 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004371/0.2191, allocations: 2.173 MB / 332.1 MB, free: 29.65 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.122e-06/0.2191, allocations: 1.5 kB / 332.1 MB, free: 29.65 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008201/0.2199, allocations: 176.3 kB / 332.2 MB, free: 29.63 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001103/0.221, allocations: 0.6206 MB / 332.9 MB, free: 29.43 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.848e-05/0.2211, allocations: 35.56 kB / 332.9 MB, free: 29.42 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003146/0.2242, allocations: 3.073 MB / 336 MB, free: 26.86 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.2242, allocations: 6.094 kB / 336 MB, free: 26.85 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004025/0.2282, allocations: 1.847 MB / 337.8 MB, free: 26.06 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004086/0.2287, allocations: 151.9 kB / 338 MB, free: 25.99 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001457/0.2288, allocations: 31.91 kB / 338 MB, free: 25.97 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001421/0.2302, allocations: 212.3 kB / 338.2 MB, free: 25.94 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001026/0.2312, allocations: 390.1 kB / 338.6 MB, free: 25.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001027/0.2313, allocations: 40.12 kB / 338.6 MB, free: 25.84 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002878/0.2316, allocations: 256 kB / 338.9 MB, free: 25.71 MB / 302.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2316, allocations: 0 / 338.9 MB, free: 25.71 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008947/0.2325, allocations: 245.9 kB / 339.1 MB, free: 25.68 MB / 302.1 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 (89): * Single equations (assignments): 86 * 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,6), (1,6), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003199/0.2328, allocations: 170.5 kB / 339.3 MB, free: 25.55 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002531/0.2354, allocations: 1.132 MB / 340.4 MB, free: 25.12 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.2354, allocations: 0 / 340.4 MB, free: 25.12 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001557/0.2369, allocations: 0.7479 MB / 341.2 MB, free: 24.79 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008395/0.2378, allocations: 133.8 kB / 341.3 MB, free: 24.72 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003386/0.2412, allocations: 1.758 MB / 343 MB, free: 23.76 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002359/0.2414, allocations: 337.1 kB / 343.4 MB, free: 23.66 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003507/0.2418, allocations: 75.69 kB / 343.5 MB, free: 23.64 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000205/0.242, allocations: 68.56 kB / 343.5 MB, free: 23.62 MB / 302.1 MB Notification: Performance of SimCode: time 7.61e-07/0.242, allocations: 0 / 343.5 MB, free: 23.62 MB / 302.1 MB Notification: Performance of Templates: time 0.02173/0.2637, allocations: 15.63 MB / 359.2 MB, free: 8.801 MB / 302.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & ./Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/HeatLosses/HeatLosses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.440401010215282]