Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001432/0.001432, allocations: 88.62 kB / 20.96 MB, free: 3.48 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001444/0.001444, allocations: 149.4 kB / 24.25 MB, free: 192 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.499/1.499, allocations: 173.4 MB / 200.8 MB, free: 9.281 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.593e-06/1.593e-06, allocations: 0 / 267.3 MB, free: 6.703 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.034e-05/2.193e-05, allocations: 2.312 kB / 267.3 MB, free: 6.699 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.005796/0.005818, allocations: 3.905 MB / 271.2 MB, free: 2.762 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002583/0.0084, allocations: 1.348 MB / 272.6 MB, free: 1.41 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002351/0.008635, allocations: 19.88 kB / 272.6 MB, free: 1.391 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003338/0.008969, allocations: 110.9 kB / 272.7 MB, free: 1.281 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004446/0.009414, allocations: 245.8 kB / 272.9 MB, free: 1.039 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001056/0.01047, allocations: 439 kB / 273.4 MB, free: 0.6094 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.00155/0.01202, allocations: 1.17 MB / 274.5 MB, free: 15.43 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003279/0.01235, allocations: 166.2 kB / 274.7 MB, free: 15.25 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009069/0.01325, allocations: 0.6706 MB / 275.4 MB, free: 14.58 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006064/0.01386, allocations: 427 kB / 275.8 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001517/0.01401, allocations: 92 kB / 275.9 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002873/0.0143, allocations: 151.9 kB / 276 MB, free: 13.92 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000273/0.01457, allocations: 231.2 kB / 276.3 MB, free: 13.7 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003982/0.01497, allocations: 327.2 kB / 276.6 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001406/0.01638, allocations: 1.153 MB / 277.7 MB, free: 12.22 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.01638, allocations: 0 / 277.7 MB, free: 12.22 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.01638, allocations: 0 / 277.7 MB, free: 12.22 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.467e-06/0.01639, allocations: 0 / 277.7 MB, free: 12.22 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: 169 * Number of variables: 169 Notification: Performance of Generate backend data structure: time 0.003492/0.01988, allocations: 1.345 MB / 279.1 MB, free: 10.83 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.383e-05/0.01992, allocations: 8.922 kB / 279.1 MB, free: 10.82 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003597/0.02028, allocations: 148.4 kB / 279.2 MB, free: 10.68 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007282/0.02101, allocations: 399.3 kB / 279.6 MB, free: 10.26 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.624e-05/0.02107, allocations: 54.38 kB / 279.7 MB, free: 10.21 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000153/0.02123, allocations: 72.38 kB / 279.7 MB, free: 10.14 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001804/0.02303, allocations: 0.8003 MB / 280.5 MB, free: 9.336 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.471e-05/0.02306, allocations: 20.11 kB / 280.6 MB, free: 9.316 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.284e-05/0.02316, allocations: 32.06 kB / 280.6 MB, free: 9.285 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.781e-05/0.02317, allocations: 16 kB / 280.6 MB, free: 9.27 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002403/0.02558, allocations: 0.8626 MB / 281.5 MB, free: 8.402 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004351/0.02993, allocations: 1.851 MB / 283.3 MB, free: 6.5 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001651/0.03158, allocations: 0.6771 MB / 284 MB, free: 5.812 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001042/0.03262, allocations: 440.2 kB / 284.4 MB, free: 5.379 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.04e-05/0.03269, allocations: 17 kB / 284.4 MB, free: 5.363 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001303/0.03399, allocations: 0.5516 MB / 285 MB, free: 4.797 MB / 266.7 MB Notification: Performance of pre-optimization done (n=86): time 2.445e-06/0.034, allocations: 0 / 285 MB, free: 4.797 MB / 266.7 MB Notification: Performance of matching and sorting (n=106): time 0.01211/0.04611, allocations: 3.873 MB / 288.9 MB, free: 0.8906 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.655e-05/0.04617, allocations: 68.34 kB / 288.9 MB, free: 0.8086 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004982/0.04667, allocations: 381.5 kB / 289.3 MB, free: 440 kB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001033/0.04677, allocations: 53.7 kB / 289.4 MB, free: 380 kB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002571/0.04703, allocations: 273.5 kB / 289.6 MB, free: 100 kB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.1071/0.1542, allocations: 368.5 kB / 290 MB, free: 33 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003576/0.1545, allocations: 185.7 kB / 290.2 MB, free: 32.98 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001083/0.1546, allocations: 370.8 kB / 290.5 MB, free: 32.67 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001001/0.1556, allocations: 438.7 kB / 291 MB, free: 32.67 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001021/0.1567, allocations: 0.5346 MB / 291.5 MB, free: 32.55 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001658/0.1583, allocations: 0.7775 MB / 292.3 MB, free: 32.23 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.1583, allocations: 1.406 kB / 292.3 MB, free: 32.23 MB / 266.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003294/0.1616, allocations: 1.392 MB / 293.7 MB, free: 31.73 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.169e-05/0.1616, allocations: 5.625 kB / 293.7 MB, free: 31.73 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.154e-05/0.1617, allocations: 3.219 kB / 293.7 MB, free: 31.73 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001327/0.163, allocations: 0.6479 MB / 294.3 MB, free: 31.56 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008716/0.1639, allocations: 205.5 kB / 294.5 MB, free: 31.55 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003578/0.1674, allocations: 3.31 MB / 297.8 MB, free: 28.79 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001206/0.1686, allocations: 179.8 kB / 298 MB, free: 28.77 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.395e-05/0.1687, allocations: 34.83 kB / 298 MB, free: 28.77 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.0003347/0.1691, allocations: 221 kB / 298.3 MB, free: 28.58 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002044/0.1693, allocations: 107.8 kB / 298.4 MB, free: 28.53 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002001/0.1695, allocations: 103.5 kB / 298.5 MB, free: 28.44 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.308e-06/0.1695, allocations: 9.719 kB / 298.5 MB, free: 28.44 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.1695, allocations: 2.344 kB / 298.5 MB, free: 28.44 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.124e-05/0.1695, allocations: 5.062 kB / 298.5 MB, free: 28.44 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004589/0.1741, allocations: 2.182 MB / 300.7 MB, free: 27.43 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-05/0.1741, allocations: 1.125 kB / 300.7 MB, free: 27.43 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000819/0.1749, allocations: 184.4 kB / 300.8 MB, free: 27.41 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001072/0.176, allocations: 0.6225 MB / 301.5 MB, free: 27.21 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.562e-05/0.1761, allocations: 35.52 kB / 301.5 MB, free: 27.2 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003248/0.1793, allocations: 3.078 MB / 304.6 MB, free: 24.62 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.1793, allocations: 1.625 kB / 304.6 MB, free: 24.62 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003652/0.183, allocations: 1.882 MB / 306.5 MB, free: 23.77 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003779/0.1834, allocations: 158.3 kB / 306.6 MB, free: 23.7 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001256/0.1835, allocations: 30.78 kB / 306.6 MB, free: 23.68 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001226/0.1847, allocations: 207.3 kB / 306.8 MB, free: 23.65 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008572/0.1856, allocations: 388.7 kB / 307.2 MB, free: 23.56 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.961e-05/0.1856, allocations: 45.39 kB / 307.3 MB, free: 23.55 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002274/0.1859, allocations: 257.2 kB / 307.5 MB, free: 23.3 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1859, allocations: 0 / 307.5 MB, free: 23.3 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0008138/0.1867, allocations: 249.9 kB / 307.8 MB, free: 23.06 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 (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.0003028/0.187, allocations: 184.1 kB / 307.9 MB, free: 22.88 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.002243/0.1892, allocations: 1.122 MB / 309.1 MB, free: 21.75 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.968e-06/0.1892, allocations: 8.062 kB / 309.1 MB, free: 21.74 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001372/0.1906, allocations: 0.7348 MB / 309.8 MB, free: 21 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008395/0.1915, allocations: 170.8 kB / 310 MB, free: 20.84 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003116/0.1946, allocations: 1.793 MB / 311.8 MB, free: 19.02 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002169/0.1948, allocations: 336.8 kB / 312.1 MB, free: 18.66 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000323/0.1951, allocations: 81.33 kB / 312.2 MB, free: 18.58 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001977/0.1953, allocations: 68.48 kB / 312.2 MB, free: 18.51 MB / 266.7 MB Notification: Performance of SimCode: time 1.182e-06/0.1953, allocations: 0 / 312.2 MB, free: 18.51 MB / 266.7 MB Notification: Performance of Templates: time 0.01962/0.2149, allocations: 15.69 MB / 327.9 MB, free: 2.988 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/HeatLosses/HeatLosses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.155607628985308]