Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_CoolingTowers_Examples_YorkCalc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_CoolingTowers_Examples_YorkCalc",fmuType="me",version="2.0",platforms={"static"}) [: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 9.1.1-maint.9.1.x/package.mo): time 2.173/2.173, allocations: 387.2 MB / 394.5 MB, free: 13.31 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001637/0.001637, allocations: 178.6 kB / 487 MB, free: 0.7266 MB / 378.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.404/1.404, allocations: 221.3 MB / 0.7819 GB, free: 6.773 MB / 0.573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001055/0.001055, allocations: 94.19 kB / 0.9213 GB, free: 43.69 MB / 0.6198 GB Notification: Performance of FrontEnd - loaded program: time 0.3349/0.336, allocations: 148.5 MB / 1.066 GB, free: 7.465 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9317/1.268, allocations: 142.3 MB / 1.205 GB, free: 72.78 MB / 0.7917 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.467/6.735, allocations: 2.226 GB / 3.431 GB, free: 301.4 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003357/6.735, allocations: 102.9 kB / 3.431 GB, free: 301.4 MB / 1.167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 550 * Number of variables: 550 Notification: Performance of Generate backend data structure: time 2.902/9.638, allocations: 0.7629 GB / 4.194 GB, free: 194.6 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 3.835e-05/9.638, allocations: 12.53 kB / 4.194 GB, free: 194.6 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003946/9.642, allocations: 0.68 MB / 4.195 GB, free: 194.4 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008922/9.65, allocations: 3.059 MB / 4.198 GB, free: 194 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001313/9.651, allocations: 74.5 kB / 4.198 GB, free: 194 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005362/9.651, allocations: 130.9 kB / 4.198 GB, free: 194 MB / 1.167 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004136/9.655, allocations: 2.043 MB / 4.2 GB, free: 193.9 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004161/9.66, allocations: 2.075 MB / 4.202 GB, free: 193.5 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.556e-05/9.66, allocations: 7.094 kB / 4.202 GB, free: 193.5 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002911/9.66, allocations: 3.219 kB / 4.202 GB, free: 193.5 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001206/9.66, allocations: 86.19 kB / 4.202 GB, free: 193.5 MB / 1.167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01932/9.679, allocations: 10.06 MB / 4.212 GB, free: 189.3 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002455/9.682, allocations: 1.458 MB / 4.214 GB, free: 189.3 MB / 1.167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00106/9.683, allocations: 0.696 MB / 4.214 GB, free: 189.2 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00803/9.691, allocations: 5.12 MB / 4.219 GB, free: 186.5 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001255/9.692, allocations: 0.826 MB / 4.22 GB, free: 186.4 MB / 1.167 GB Notification: Performance of pre-optimization done (n=154): time 4.589e-06/9.692, allocations: 0 / 4.22 GB, free: 186.4 MB / 1.167 GB Notification: Performance of matching and sorting (n=154): time 0.004419/9.697, allocations: 1.614 MB / 4.222 GB, free: 186.2 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.624e-05/9.697, allocations: 302.8 kB / 4.222 GB, free: 185.9 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003646/9.701, allocations: 1.697 MB / 4.224 GB, free: 185.7 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0002997/9.701, allocations: 32.7 kB / 4.224 GB, free: 185.6 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.001005/9.702, allocations: 0.8645 MB / 4.224 GB, free: 185.2 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006039/9.703, allocations: 0.5027 MB / 4.225 GB, free: 184.8 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00013/9.703, allocations: 7.141 kB / 4.225 GB, free: 184.8 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.000133/9.703, allocations: 374.3 kB / 4.225 GB, free: 184.5 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009601/9.704, allocations: 0.5731 MB / 4.226 GB, free: 184.5 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001347/9.705, allocations: 1.193 MB / 4.227 GB, free: 183.9 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002247/9.707, allocations: 0.849 MB / 4.228 GB, free: 183.9 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.12e-05/9.707, allocations: 3.156 kB / 4.228 GB, free: 183.9 MB / 1.167 GB Notification: Performance of matching and sorting (n=234) (initialization): time 0.005425/9.713, allocations: 2.058 MB / 4.23 GB, free: 183.7 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.001174/9.714, allocations: 5.288 MB / 4.235 GB, free: 178.1 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.946e-05/9.714, allocations: 11.19 kB / 4.235 GB, free: 178.1 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007054/9.715, allocations: 108.6 kB / 4.235 GB, free: 178.1 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002/9.717, allocations: 468.7 kB / 4.236 GB, free: 178.1 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002029/9.719, allocations: 2.079 MB / 4.238 GB, free: 176.2 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002795/9.722, allocations: 260.9 kB / 4.238 GB, free: 176.2 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003173/9.722, allocations: 105.1 kB / 4.238 GB, free: 176.2 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 9.568e-06/9.722, allocations: 5.969 kB / 4.238 GB, free: 176.2 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004286/9.726, allocations: 1.73 MB / 4.24 GB, free: 176.1 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.461e-05/9.726, allocations: 11 kB / 4.24 GB, free: 176.1 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005968/9.727, allocations: 110.3 kB / 4.24 GB, free: 176.1 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001827/9.729, allocations: 466.7 kB / 4.24 GB, free: 176.1 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001884/9.731, allocations: 2.065 MB / 4.242 GB, free: 174.3 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002648/9.733, allocations: 231.1 kB / 4.242 GB, free: 174.2 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002884/9.734, allocations: 102 kB / 4.243 GB, free: 174.2 MB / 1.167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,$whenCondition1,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext,$PRE.onOffCon.y,onOffCon.y,conFan.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (227): * Single equations (assignments): 223 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0006161/9.734, allocations: 161.3 kB / 4.243 GB, free: 174.1 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009148/9.735, allocations: 246.1 kB / 4.243 GB, free: 174 MB / 1.167 GB Error: Too many equations, over-determined system. The model has 190 equation(s) and 189 variable(s). Warning: Equation 173 (size: 2) $cse7 = Buildings.Fluid.HeatExchangers.CoolingTowers.YorkCalc$tow.Water.setState_phX(tow.sta_a.p, smooth(0, if pum.filter.y > 0.0 then TEnt.port_b.h_outflow else tow.vol.ports[1].h_outflow), {}) is not big enough to solve for enough variables. Remaining unsolved variables are: $cse10 Already solved: Equations used to solve those variables: Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed! Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004322/9.74, allocations: 1.432 MB / 4.244 GB, free: 173.9 MB / 1.167 GB Error: post-optimization module wrapFunctionCalls (simulation) failed. Error: Internal error SimCode: The model Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc could not be translated to FMU