Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.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.002622/0.002622, allocations: 99.86 kB / 20.96 MB, free: 3.457 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.002901/0.002901, allocations: 145.1 kB / 24.26 MB, free: 168 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.531/1.531, allocations: 173.4 MB / 200.8 MB, free: 9.305 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.Fluid.Examples.HeatingSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5004,variableFilter="time|heater.mediums.1..h|heater.mediums.1..p|pipe.mediums.1..h|pipe.mediums.1..p|pipe.mediums.2..h|pipe.mediums.2..p|radiator.mediums.1..h|radiator.mediums.1..p|tank.level|tank.medium.h",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem") translateModel(Modelica.Fluid.Examples.HeatingSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5004,variableFilter="time|heater.mediums.1..h|heater.mediums.1..p|pipe.mediums.1..h|pipe.mediums.1..p|pipe.mediums.2..h|pipe.mediums.2..p|radiator.mediums.1..h|radiator.mediums.1..p|tank.level|tank.medium.h",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.282e-06/1.282e-06, allocations: 0 / 267.3 MB, free: 6.754 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.712e-05/2.84e-05, allocations: 2.312 kB / 267.3 MB, free: 6.75 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.2682/0.2682, allocations: 91.93 MB / 359.2 MB, free: 13.08 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.04618/0.3144, allocations: 21.17 MB / 380.4 MB, free: 7.859 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003432/0.3178, allocations: 126.8 kB / 380.5 MB, free: 7.734 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004148/0.322, allocations: 0.9236 MB / 381.4 MB, free: 6.805 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01535/0.3373, allocations: 3.986 MB / 385.4 MB, free: 2.797 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01851/0.3558, allocations: 6.711 MB / 392.1 MB, free: 12.07 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.01058/0.3664, allocations: 6.928 MB / 399.1 MB, free: 5.129 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003576/0.37, allocations: 1.687 MB / 400.8 MB, free: 3.414 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.3737/0.7437, allocations: 75.28 MB / 476 MB, free: 24.46 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.06788/0.8116, allocations: 31.74 MB / 0.4959 GB, free: 7.164 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008681/0.8124, allocations: 251.4 kB / 0.4961 GB, free: 6.922 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01278/0.8252, allocations: 5.437 MB / 0.5014 GB, free: 2.504 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001843/0.827, allocations: 1.185 MB / 0.5026 GB, free: 1.891 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002138/0.8292, allocations: 1.071 MB / 0.5036 GB, free: 1.234 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01114/0.8403, allocations: 5.754 MB / 0.5092 GB, free: 13.16 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.8403, allocations: 0 / 0.5092 GB, free: 13.16 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.8403, allocations: 4 kB / 0.5092 GB, free: 13.16 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001316/0.8405, allocations: 0 / 0.5092 GB, free: 13.16 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 538 * Number of variables: 538 Notification: Performance of Generate backend data structure: time 0.01127/0.8517, allocations: 3.794 MB / 0.513 GB, free: 9.812 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.451e-05/0.8518, allocations: 12.03 kB / 0.513 GB, free: 9.801 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001579/0.8533, allocations: 0.4979 MB / 0.5134 GB, free: 9.312 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003985/0.8573, allocations: 1.642 MB / 0.5151 GB, free: 7.719 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003164/0.8576, allocations: 271.6 kB / 0.5153 GB, free: 7.441 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004647/0.8581, allocations: 203.1 kB / 0.5155 GB, free: 7.254 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005774/0.8639, allocations: 2.872 MB / 0.5183 GB, free: 4.184 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.653e-05/0.8639, allocations: 7.375 kB / 0.5183 GB, free: 4.18 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002603/0.8642, allocations: 80.92 kB / 0.5184 GB, free: 4.109 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003923/0.8646, allocations: 250.9 kB / 0.5186 GB, free: 3.867 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004738/0.8693, allocations: 1.85 MB / 0.5204 GB, free: 2.039 MB / 394.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02351/0.8928, allocations: 10.95 MB / 0.5311 GB, free: 7.188 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004209/0.8971, allocations: 1.642 MB / 0.5327 GB, free: 5.539 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002123/0.8992, allocations: 0.9079 MB / 0.5336 GB, free: 4.633 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009103/0.9083, allocations: 3.04 MB / 0.5366 GB, free: 1.633 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.462e-05/0.9084, allocations: 58.58 kB / 0.5366 GB, free: 1.57 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008203/0.9092, allocations: 154.9 kB / 0.5368 GB, free: 1.418 MB / 410.7 MB Notification: Performance of pre-optimization done (n=170): time 5.35e-06/0.9092, allocations: 0 / 0.5368 GB, free: 1.418 MB / 410.7 MB Notification: Performance of matching and sorting (n=196): time 0.02427/0.9335, allocations: 7.263 MB / 0.5439 GB, free: 10.16 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.432e-05/0.9335, allocations: 73.41 kB / 0.544 GB, free: 10.07 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002964/0.9365, allocations: 1.757 MB / 0.5457 GB, free: 8.301 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003661/0.9369, allocations: 61.7 kB / 0.5457 GB, free: 8.234 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001234/0.9381, allocations: 1.216 MB / 0.5469 GB, free: 7.016 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001081/0.9392, allocations: 0.7616 MB / 0.5477 GB, free: 6.266 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001046/0.9402, allocations: 0.522 MB / 0.5482 GB, free: 5.734 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002538/0.9405, allocations: 484.7 kB / 0.5486 GB, free: 5.258 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001929/0.9424, allocations: 0.8216 MB / 0.5494 GB, free: 4.43 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002879/0.9453, allocations: 1.705 MB / 0.5511 GB, free: 2.398 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005042/0.9503, allocations: 2.775 MB / 0.5538 GB, free: 15.37 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.762e-05/0.9503, allocations: 8 kB / 0.5538 GB, free: 15.36 MB / 442.7 MB Notification: Performance of matching and sorting (n=298) (initialization): time 0.007625/0.958, allocations: 3.325 MB / 0.5571 GB, free: 12.14 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.641e-05/0.958, allocations: 16 kB / 0.5571 GB, free: 12.12 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.395e-05/0.958, allocations: 16 kB / 0.5571 GB, free: 12.11 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01559/0.9736, allocations: 3.412 MB / 0.5604 GB, free: 8.699 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00144/0.9751, allocations: 327 kB / 0.5607 GB, free: 8.402 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006896/0.982, allocations: 3.248 MB / 0.5639 GB, free: 5.164 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001971/0.9839, allocations: 91.94 kB / 0.564 GB, free: 5.074 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002854/0.9842, allocations: 116 kB / 0.5641 GB, free: 4.961 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002557/0.9868, allocations: 1.138 MB / 0.5652 GB, free: 3.816 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002726/0.9895, allocations: 1.685 MB / 0.5669 GB, free: 1.789 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004751/0.9943, allocations: 2.721 MB / 0.5695 GB, free: 14.8 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.448e-05/0.9943, allocations: 4 kB / 0.5695 GB, free: 14.8 MB / 458.7 MB Notification: Performance of matching and sorting (n=298) (initialization_lambda0): time 0.006855/1.001, allocations: 3.165 MB / 0.5726 GB, free: 11.73 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.756e-05/1.001, allocations: 12.97 kB / 0.5726 GB, free: 11.72 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.742e-05/1.001, allocations: 20 kB / 0.5726 GB, free: 11.7 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01072/1.012, allocations: 2.503 MB / 0.5751 GB, free: 9.195 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001708/1.014, allocations: 373.4 kB / 0.5754 GB, free: 8.855 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005707/1.019, allocations: 2.921 MB / 0.5783 GB, free: 5.91 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001899/1.021, allocations: 91.95 kB / 0.5784 GB, free: 5.82 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002708/1.021, allocations: 108 kB / 0.5785 GB, free: 5.715 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * Number of states: 0 () * Number of discrete variables: 4 (tank.inFlow[2],tank.inFlow[1],tank.regularFlow[2],tank.regularFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (174): * Single equations (assignments): 173 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(18,107)} Notification: Performance of prepare postOptimizeDAE: time 0.0007135/1.022, allocations: 407.9 kB / 0.5789 GB, free: 5.332 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006517/1.023, allocations: 278.6 kB / 0.5791 GB, free: 5.059 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00787/1.031, allocations: 3.129 MB / 0.5822 GB, free: 1.922 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-05/1.031, allocations: 24 kB / 0.5822 GB, free: 1.898 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.054e-05/1.031, allocations: 2.812 kB / 0.5822 GB, free: 1.898 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.1249/1.156, allocations: 2.608 MB / 0.5848 GB, free: 208.1 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01257/1.168, allocations: 5.056 MB / 0.5897 GB, free: 207.6 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.017e-05/1.168, allocations: 0 / 0.5897 GB, free: 207.6 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001496/1.17, allocations: 314.2 kB / 0.59 GB, free: 207.6 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004357/1.174, allocations: 1.093 MB / 0.5911 GB, free: 207.5 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003203/1.174, allocations: 79 kB / 0.5912 GB, free: 207.5 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008334/1.183, allocations: 13.61 MB / 0.6044 GB, free: 195.5 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/1.183, allocations: 1.375 kB / 0.6044 GB, free: 195.5 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007851/1.191, allocations: 3.913 MB / 0.6083 GB, free: 194.1 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001478/1.192, allocations: 469.5 kB / 0.6087 GB, free: 194 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004931/1.193, allocations: 51.53 kB / 0.6088 GB, free: 194 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001489/1.194, allocations: 65.98 kB / 0.6088 GB, free: 193.9 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004321/1.195, allocations: 180.8 kB / 0.609 GB, free: 193.9 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002486/1.195, allocations: 77.17 kB / 0.6091 GB, free: 193.9 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001563/1.196, allocations: 1.002 MB / 0.6101 GB, free: 193.5 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.1e-07/1.196, allocations: 0 / 0.6101 GB, free: 193.5 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004773/1.201, allocations: 1.733 MB / 0.6117 GB, free: 193.4 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (tank.level,tank.medium.T,heater.mediums[1].p,heater.mediums[1].T,radiator.mediums[1].p,radiator.mediums[1].T,pipe.mediums[1].p,pipe.mediums[1].T,pipe.mediums[2].p,pipe.mediums[2].T) * Number of discrete variables: 4 (tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (181): * Single equations (assignments): 167 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,9), (2,8), (5,17)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002597/1.204, allocations: 1.085 MB / 0.6128 GB, free: 193.2 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01045/1.214, allocations: 4.086 MB / 0.6168 GB, free: 190.9 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.523e-06/1.214, allocations: 0 / 0.6168 GB, free: 190.9 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003905/1.218, allocations: 2.181 MB / 0.6189 GB, free: 188.6 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004774/1.223, allocations: 0.9823 MB / 0.6199 GB, free: 187.8 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008581/1.231, allocations: 5.012 MB / 0.6248 GB, free: 182.9 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001266/1.233, allocations: 1.251 MB / 0.626 GB, free: 181.7 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.00317/1.236, allocations: 0.7954 MB / 0.6268 GB, free: 180.9 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006963/1.237, allocations: 188 kB / 0.627 GB, free: 180.8 MB / 458.7 MB Notification: Performance of SimCode: time 2.013e-06/1.237, allocations: 0 / 0.627 GB, free: 180.8 MB / 458.7 MB Notification: Performance of Templates: time 0.0826/1.319, allocations: 66.76 MB / 0.6922 GB, free: 114.7 MB / 458.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1) [Timeout 240] [Calling os._exit(0), Time elapsed: 8.340867504943162]