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: translateModel(Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TEnt.T|tow.TLvg|tow.TAir|tow.TApp_nominal|tow.TAppAct|tow.TRan|tow.FRAir|tow.FRWat|tow.PFan|conFan.u_s|conFan.u_m|onOffCon.u|onOffCon.reference",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc") translateModel(Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TEnt.T|tow.TLvg|tow.TAir|tow.TApp_nominal|tow.TAppAct|tow.TRan|tow.FRAir|tow.FRWat|tow.PFan|conFan.u_s|conFan.u_m|onOffCon.u|onOffCon.reference",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc") [: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.061/2.061, allocations: 387.2 MB / 394.5 MB, free: 13.76 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001177/0.001177, allocations: 184.6 kB / 487 MB, free: 5.418 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.452/1.452, allocations: 221.4 MB / 0.7819 GB, free: 1.402 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001077/0.001077, allocations: 89.88 kB / 0.9213 GB, free: 2.656 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 9.177e-06/9.547e-06, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.274/0.274, allocations: 142.3 MB / 1.205 GB, free: 26.29 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.721/4.995, allocations: 2.226 GB / 3.431 GB, free: 80.37 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002888/4.995, allocations: 107.8 kB / 3.431 GB, free: 80.27 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.957/7.952, allocations: 0.7598 GB / 4.191 GB, free: 196.3 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.00104/7.953, allocations: 79.89 kB / 4.191 GB, free: 196.3 MB / 1.151 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 0.01367/7.967, allocations: 3.014 MB / 4.194 GB, free: 194.2 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 6.521e-05/7.967, allocations: 9.719 kB / 4.194 GB, free: 194.2 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005906/7.973, allocations: 0.6831 MB / 4.195 GB, free: 193.9 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0118/7.985, allocations: 3.057 MB / 4.198 GB, free: 190.9 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000201/7.985, allocations: 72 kB / 4.198 GB, free: 190.9 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001024/7.986, allocations: 135.9 kB / 4.198 GB, free: 190.7 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006986/7.993, allocations: 2.039 MB / 4.2 GB, free: 188.7 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008156/8.001, allocations: 2.074 MB / 4.202 GB, free: 186.4 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001022/8.001, allocations: 3.938 kB / 4.202 GB, free: 186.4 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006066/8.002, allocations: 11.98 kB / 4.202 GB, free: 186.4 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.234e-05/8.002, allocations: 83.31 kB / 4.202 GB, free: 186.3 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02075/8.023, allocations: 10.08 MB / 4.212 GB, free: 176.1 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002747/8.026, allocations: 1.453 MB / 4.213 GB, free: 174.7 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00116/8.027, allocations: 0.698 MB / 4.214 GB, free: 174 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009658/8.037, allocations: 5.139 MB / 4.219 GB, free: 168.4 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001335/8.038, allocations: 0.8153 MB / 4.22 GB, free: 167.6 MB / 1.151 GB Notification: Performance of pre-optimization done (n=154): time 5.46e-06/8.038, allocations: 0 / 4.22 GB, free: 167.6 MB / 1.151 GB Notification: Performance of matching and sorting (n=154): time 0.004881/8.043, allocations: 1.604 MB / 4.221 GB, free: 166 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.741e-05/8.043, allocations: 308 kB / 4.222 GB, free: 165.6 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004965/8.048, allocations: 1.702 MB / 4.223 GB, free: 163.9 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0004502/8.049, allocations: 33.14 kB / 4.223 GB, free: 163.8 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.001468/8.05, allocations: 0.8691 MB / 4.224 GB, free: 163 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007892/8.051, allocations: 0.4964 MB / 4.225 GB, free: 162.5 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001788/8.051, allocations: 0 / 4.225 GB, free: 162.5 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0002012/8.051, allocations: 377.9 kB / 4.225 GB, free: 162.1 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001256/8.052, allocations: 0.5702 MB / 4.226 GB, free: 161.5 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001853/8.054, allocations: 1.197 MB / 4.227 GB, free: 160.1 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003399/8.058, allocations: 0.8418 MB / 4.228 GB, free: 159.3 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.739e-05/8.058, allocations: 4 kB / 4.228 GB, free: 159.3 MB / 1.151 GB Notification: Performance of matching and sorting (n=234) (initialization): time 0.007546/8.065, allocations: 2.058 MB / 4.23 GB, free: 157.2 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.001471/8.067, allocations: 5.292 MB / 4.235 GB, free: 151.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.911e-05/8.067, allocations: 12 kB / 4.235 GB, free: 151.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007333/8.068, allocations: 103.4 kB / 4.235 GB, free: 151.3 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002123/8.07, allocations: 474.6 kB / 4.235 GB, free: 150.9 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002181/8.072, allocations: 2.07 MB / 4.237 GB, free: 148.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003315/8.075, allocations: 260.9 kB / 4.238 GB, free: 148.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003895/8.076, allocations: 99.95 kB / 4.238 GB, free: 148.3 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.248e-05/8.076, allocations: 4 kB / 4.238 GB, free: 148.3 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004738/8.081, allocations: 1.738 MB / 4.24 GB, free: 146.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.463e-05/8.081, allocations: 12 kB / 4.24 GB, free: 146.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006284/8.081, allocations: 110.5 kB / 4.24 GB, free: 146.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00199/8.083, allocations: 461.6 kB / 4.24 GB, free: 146 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002014/8.085, allocations: 2.068 MB / 4.242 GB, free: 143.8 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003139/8.088, allocations: 223.3 kB / 4.242 GB, free: 143.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003102/8.089, allocations: 104 kB / 4.242 GB, free: 143.5 MB / 1.151 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.0006515/8.089, allocations: 164.3 kB / 4.243 GB, free: 143.4 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009705/8.09, allocations: 247.2 kB / 4.243 GB, free: 143.1 MB / 1.151 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.004342/8.095, allocations: 1.424 MB / 4.244 GB, free: 141.8 MB / 1.151 GB Error: post-optimization module wrapFunctionCalls (simulation) failed.