Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u") translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.567/1.567, allocations: 289.8 MB / 297.1 MB, free: 6.656 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001267/0.001267, allocations: 177.3 kB / 366.3 MB, free: 1.969 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.733/1.733, allocations: 205.2 MB / 0.6256 GB, free: 5.793 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001003/0.001003, allocations: 94.72 kB / 0.7396 GB, free: 39.63 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.243e-05/1.246e-05, allocations: 4 kB / 0.859 GB, free: 13.33 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7129/0.713, allocations: 116.3 MB / 0.9726 GB, free: 68.01 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.012/1.725, allocations: 448.2 MB / 1.41 GB, free: 41.45 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002741/1.725, allocations: 89.27 kB / 1.41 GB, free: 41.41 MB / 0.823 GB Notification: Performance of FrontEnd: time 3.71/5.435, allocations: 1.134 GB / 2.545 GB, free: 117.3 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.0002498/5.436, allocations: 58.28 kB / 2.545 GB, free: 117.2 MB / 0.948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 311 * Number of variables: 311 Notification: Performance of Generate backend data structure: time 0.004847/5.44, allocations: 2.192 MB / 2.547 GB, free: 115 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.765e-05/5.441, allocations: 8.031 kB / 2.547 GB, free: 115 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001632/5.442, allocations: 390.5 kB / 2.547 GB, free: 114.6 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005487/5.448, allocations: 2.498 MB / 2.55 GB, free: 112.2 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.384e-05/5.448, allocations: 44 kB / 2.55 GB, free: 112.1 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000161/5.448, allocations: 83.91 kB / 2.55 GB, free: 112 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001565/5.45, allocations: 0.8601 MB / 2.551 GB, free: 111.2 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001728/5.451, allocations: 1.196 MB / 2.552 GB, free: 109.9 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.356e-05/5.451, allocations: 0 / 2.552 GB, free: 109.9 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001043/5.451, allocations: 7.984 kB / 2.552 GB, free: 109.9 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.513e-05/5.451, allocations: 32 kB / 2.552 GB, free: 109.8 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008388/5.46, allocations: 7.663 MB / 2.559 GB, free: 101.8 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009699/5.461, allocations: 0.6535 MB / 2.56 GB, free: 101.1 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004435/5.461, allocations: 366.5 kB / 2.56 GB, free: 100.8 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003282/5.465, allocations: 2.159 MB / 2.562 GB, free: 98.43 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000499/5.465, allocations: 379 kB / 2.563 GB, free: 98.05 MB / 0.948 GB Notification: Performance of pre-optimization done (n=72): time 2.756e-06/5.465, allocations: 0 / 2.563 GB, free: 98.05 MB / 0.948 GB Notification: Performance of matching and sorting (n=72): time 0.001906/5.467, allocations: 0.8614 MB / 2.564 GB, free: 97.18 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.527e-05/5.467, allocations: 166.8 kB / 2.564 GB, free: 96.98 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001412/5.469, allocations: 1.199 MB / 2.565 GB, free: 95.79 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 7.654e-05/5.469, allocations: 29.7 kB / 2.565 GB, free: 95.75 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004992/5.469, allocations: 0.5835 MB / 2.565 GB, free: 95.16 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002345/5.469, allocations: 244.4 kB / 2.566 GB, free: 94.91 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.242e-05/5.469, allocations: 0 / 2.566 GB, free: 94.91 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0001046/5.47, allocations: 345.9 kB / 2.566 GB, free: 94.57 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004363/5.47, allocations: 302.2 kB / 2.566 GB, free: 94.27 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005857/5.471, allocations: 0.6646 MB / 2.567 GB, free: 93.44 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001298/5.472, allocations: 0.491 MB / 2.567 GB, free: 92.95 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.272e-06/5.472, allocations: 0 / 2.567 GB, free: 92.95 MB / 0.948 GB Notification: Performance of matching and sorting (n=129) (initialization): time 0.002458/5.474, allocations: 1.157 MB / 2.569 GB, free: 91.79 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009193/5.475, allocations: 3.697 MB / 2.572 GB, free: 87.77 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.438e-05/5.475, allocations: 8 kB / 2.572 GB, free: 87.76 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.355e-05/5.475, allocations: 16 kB / 2.572 GB, free: 87.75 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00106/5.476, allocations: 263.6 kB / 2.572 GB, free: 87.49 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.064e-05/5.476, allocations: 23.88 kB / 2.573 GB, free: 87.46 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001799/5.478, allocations: 178.7 kB / 2.573 GB, free: 87.29 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001155/5.478, allocations: 51.98 kB / 2.573 GB, free: 87.24 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.005e-05/5.478, allocations: 4 kB / 2.573 GB, free: 87.23 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001946/5.48, allocations: 0.9229 MB / 2.574 GB, free: 86.31 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.961e-05/5.48, allocations: 12 kB / 2.574 GB, free: 86.3 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.707e-05/5.48, allocations: 19.94 kB / 2.574 GB, free: 86.28 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009606/5.481, allocations: 259.8 kB / 2.574 GB, free: 86.03 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.317e-05/5.481, allocations: 19.92 kB / 2.574 GB, free: 86.01 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001513/5.483, allocations: 147.1 kB / 2.574 GB, free: 85.87 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.314e-05/5.483, allocations: 55.98 kB / 2.574 GB, free: 85.81 MB / 0.948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,conPI.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (125): * Single equations (assignments): 121 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002799/5.483, allocations: 144.5 kB / 2.574 GB, free: 85.66 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002424/5.484, allocations: 165.9 kB / 2.574 GB, free: 85.5 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002519/5.486, allocations: 1.096 MB / 2.575 GB, free: 84.39 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.241e-05/5.486, allocations: 8 kB / 2.575 GB, free: 84.39 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.097e-06/5.486, allocations: 3.984 kB / 2.576 GB, free: 84.38 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001229/5.487, allocations: 0.7388 MB / 2.576 GB, free: 83.63 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004185/5.492, allocations: 2.22 MB / 2.578 GB, free: 81.38 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.4e-06/5.492, allocations: 0 / 2.578 GB, free: 81.38 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008071/5.492, allocations: 171.4 kB / 2.579 GB, free: 81.21 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002285/5.493, allocations: 24.84 kB / 2.579 GB, free: 81.19 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.433e-05/5.493, allocations: 15.98 kB / 2.579 GB, free: 81.17 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008588/5.494, allocations: 1.257 MB / 2.58 GB, free: 79.8 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.085e-06/5.494, allocations: 0 / 2.58 GB, free: 79.8 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002032/5.496, allocations: 1.467 MB / 2.581 GB, free: 78.3 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00078/5.496, allocations: 366.5 kB / 2.582 GB, free: 77.92 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002284/5.497, allocations: 4 kB / 2.582 GB, free: 77.91 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001004/5.498, allocations: 103.8 kB / 2.582 GB, free: 77.81 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001174/5.498, allocations: 56.56 kB / 2.582 GB, free: 77.76 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.384e-05/5.498, allocations: 31.97 kB / 2.582 GB, free: 77.73 MB / 0.948 GB Notification: Performance of sort global known variables: time 0.001133/5.499, allocations: 0.9034 MB / 2.583 GB, free: 76.83 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.003669/5.503, allocations: 1.087 MB / 2.584 GB, free: 75.74 MB / 0.948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (vol.dynBal.U,mov.filter.x[1],mov.filter.x[2],conPI.I.y,THeaOut.T,hea.vol.dynBal.U) * Number of discrete variables: 3 ($whenCondition1,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (81): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002057/5.505, allocations: 1.136 MB / 2.585 GB, free: 74.7 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.001994/5.507, allocations: 1.445 MB / 2.586 GB, free: 73.23 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/5.507, allocations: 0 / 2.586 GB, free: 73.23 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0005889/5.507, allocations: 490 kB / 2.587 GB, free: 72.75 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003102/5.511, allocations: 0.7097 MB / 2.587 GB, free: 72.06 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004706/5.515, allocations: 2.426 MB / 2.59 GB, free: 69.6 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001101/5.516, allocations: 1.606 MB / 2.591 GB, free: 67.96 MB / 0.948 GB Notification: Performance of SimCode: time 4.4e-07/5.516, allocations: 4 kB / 2.591 GB, free: 67.96 MB / 0.948 GB Notification: Performance of Templates: time 0.06247/5.579, allocations: 40.03 MB / 2.63 GB, free: 28.44 MB / 0.948 GB make -j1 -f Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.makefile (rm -f Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & ./Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)