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.002561/0.002561, allocations: 99.53 kB / 21.73 MB, free: 2.691 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.002912/0.002912, allocations: 160.1 kB / 25.03 MB, free: 8.922 MB / 18.57 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.384/1.384, allocations: 158.6 MB / 186.8 MB, free: 2.906 MB / 170.7 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.723e-06/1.723e-06, allocations: 0 / 250.4 MB, free: 7.941 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.249e-05/3.421e-05, allocations: 2.312 kB / 250.4 MB, free: 7.938 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.008049/0.008083, allocations: 4.208 MB / 254.6 MB, free: 3.691 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.003102/0.01119, allocations: 1.325 MB / 255.9 MB, free: 2.363 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004506/0.01164, allocations: 19.88 kB / 255.9 MB, free: 2.344 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004233/0.01206, allocations: 114.8 kB / 256 MB, free: 2.23 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000606/0.01267, allocations: 237.8 kB / 256.3 MB, free: 1.996 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001311/0.01398, allocations: 454.8 kB / 256.7 MB, free: 1.551 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.001504/0.01548, allocations: 1.162 MB / 257.9 MB, free: 396 kB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003632/0.01584, allocations: 170.2 kB / 258 MB, free: 208 kB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001102/0.01695, allocations: 0.6745 MB / 258.7 MB, free: 15.53 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006626/0.01761, allocations: 431 kB / 259.1 MB, free: 15.11 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000178/0.01779, allocations: 92 kB / 259.2 MB, free: 15.02 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000334/0.01812, allocations: 147.8 kB / 259.4 MB, free: 14.87 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003205/0.01844, allocations: 231.3 kB / 259.6 MB, free: 14.64 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000429/0.01887, allocations: 327.2 kB / 259.9 MB, free: 14.32 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001535/0.0204, allocations: 1.161 MB / 261.1 MB, free: 13.16 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.02041, allocations: 0 / 261.1 MB, free: 13.16 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.02041, allocations: 0 / 261.1 MB, free: 13.16 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.251e-05/0.02042, allocations: 0 / 261.1 MB, free: 13.16 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: 169 * Number of variables: 169 Notification: Performance of Generate backend data structure: time 0.003296/0.02372, allocations: 1.458 MB / 262.5 MB, free: 11.65 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.195e-05/0.02376, allocations: 11.98 kB / 262.5 MB, free: 11.64 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003687/0.02413, allocations: 148.4 kB / 262.7 MB, free: 11.5 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00074/0.02487, allocations: 406.1 kB / 263.1 MB, free: 11.07 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.556e-05/0.02493, allocations: 54.38 kB / 263.1 MB, free: 11.02 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001498/0.02508, allocations: 68.33 kB / 263.2 MB, free: 10.96 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001736/0.02682, allocations: 0.7769 MB / 264 MB, free: 10.18 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.189e-05/0.02685, allocations: 12.19 kB / 264 MB, free: 10.16 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.437e-05/0.02695, allocations: 32.12 kB / 264 MB, free: 10.13 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.821e-05/0.02696, allocations: 16 kB / 264 MB, free: 10.12 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002108/0.02907, allocations: 0.8159 MB / 264.8 MB, free: 9.297 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004862/0.03393, allocations: 2 MB / 266.8 MB, free: 7.234 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001568/0.0355, allocations: 0.6503 MB / 267.5 MB, free: 6.566 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009694/0.03647, allocations: 407.2 kB / 267.9 MB, free: 6.168 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.574e-05/0.03657, allocations: 17 kB / 267.9 MB, free: 6.152 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001287/0.03786, allocations: 0.5571 MB / 268.5 MB, free: 5.582 MB / 250.7 MB Notification: Performance of pre-optimization done (n=86): time 3.476e-06/0.03786, allocations: 0 / 268.5 MB, free: 5.582 MB / 250.7 MB Notification: Performance of matching and sorting (n=106): time 0.01033/0.04819, allocations: 3.601 MB / 272.1 MB, free: 1.934 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.418e-05/0.04826, allocations: 68.34 kB / 272.1 MB, free: 1.855 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005894/0.04885, allocations: 478.6 kB / 272.6 MB, free: 1.371 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001026/0.04895, allocations: 57.69 kB / 272.7 MB, free: 1.309 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002907/0.04924, allocations: 332.2 kB / 273 MB, free: 0.9766 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003964/0.04964, allocations: 404.8 kB / 273.4 MB, free: 0.5781 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004032/0.05004, allocations: 216.5 kB / 273.6 MB, free: 364 kB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0003747/0.05041, allocations: 0.5704 MB / 274.2 MB, free: 15.77 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001021/0.05143, allocations: 426.4 kB / 274.6 MB, free: 15.36 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001154/0.05259, allocations: 0.5472 MB / 275.1 MB, free: 14.79 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001822/0.05441, allocations: 0.8386 MB / 276 MB, free: 13.93 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.05441, allocations: 0 / 276 MB, free: 13.93 MB / 266.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003516/0.05793, allocations: 1.37 MB / 277.3 MB, free: 12.54 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.92e-05/0.05796, allocations: 8 kB / 277.3 MB, free: 12.53 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.183e-05/0.05797, allocations: 3.984 kB / 277.3 MB, free: 12.52 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001397/0.05937, allocations: 0.647 MB / 278 MB, free: 11.86 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008248/0.06019, allocations: 195.7 kB / 278.2 MB, free: 11.67 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005714/0.06591, allocations: 4.39 MB / 282.6 MB, free: 7.098 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001041/0.06695, allocations: 119.9 kB / 282.7 MB, free: 6.98 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001012/0.06705, allocations: 32 kB / 282.7 MB, free: 6.949 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,7), (1,5), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0005468/0.0676, allocations: 268.5 kB / 283 MB, free: 6.68 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002272/0.06782, allocations: 107.5 kB / 283.1 MB, free: 6.574 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002963/0.06812, allocations: 102.9 kB / 283.2 MB, free: 6.469 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.197e-05/0.06813, allocations: 8 kB / 283.2 MB, free: 6.461 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.965e-06/0.06814, allocations: 4 kB / 283.2 MB, free: 6.457 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.351e-05/0.06815, allocations: 7.969 kB / 283.2 MB, free: 6.449 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005175/0.07333, allocations: 2.354 MB / 285.6 MB, free: 4.004 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.136e-05/0.07334, allocations: 7.938 kB / 285.6 MB, free: 3.996 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007795/0.07412, allocations: 163.8 kB / 285.7 MB, free: 3.836 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001295/0.07541, allocations: 0.6237 MB / 286.4 MB, free: 3.199 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.148e-05/0.0755, allocations: 31.97 kB / 286.4 MB, free: 3.168 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005023/0.08053, allocations: 4.106 MB / 290.5 MB, free: 14.88 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.08053, allocations: 96 / 290.5 MB, free: 14.88 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004454/0.08499, allocations: 1.9 MB / 292.4 MB, free: 12.91 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005441/0.08553, allocations: 155.4 kB / 292.5 MB, free: 12.76 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001811/0.08571, allocations: 39.92 kB / 292.6 MB, free: 12.72 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001049/0.08676, allocations: 131.8 kB / 292.7 MB, free: 12.59 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000948/0.08771, allocations: 396.3 kB / 293.1 MB, free: 12.21 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001486/0.08786, allocations: 43.97 kB / 293.1 MB, free: 12.16 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004737/0.08833, allocations: 307.1 kB / 293.4 MB, free: 11.86 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.08833, allocations: 0 / 293.4 MB, free: 11.86 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001278/0.08961, allocations: 248 kB / 293.7 MB, free: 11.62 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 (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.0004257/0.09003, allocations: 161 kB / 293.8 MB, free: 11.45 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002957/0.09299, allocations: 1.231 MB / 295.1 MB, free: 10.2 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.093, allocations: 320 / 295.1 MB, free: 10.2 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001559/0.09455, allocations: 0.7507 MB / 295.8 MB, free: 9.43 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001029/0.09558, allocations: 166.6 kB / 296 MB, free: 9.266 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004292/0.09988, allocations: 1.787 MB / 297.8 MB, free: 7.414 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004366/0.1003, allocations: 340.8 kB / 298.1 MB, free: 7.059 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003886/0.1007, allocations: 73.34 kB / 298.2 MB, free: 6.984 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002501/0.101, allocations: 68.47 kB / 298.2 MB, free: 6.914 MB / 282.7 MB Notification: Performance of SimCode: time 1.814e-06/0.101, allocations: 4 kB / 298.2 MB, free: 6.91 MB / 282.7 MB Notification: Performance of Templates: time 0.0337/0.1347, allocations: 15.78 MB / 314 MB, free: 7.133 MB / 298.7 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=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) [Timeout 240] 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.224551339983009]