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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.304/2.304, allocations: 387.4 MB / 394.9 MB, free: 13.45 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.001058/0.001059, allocations: 180.8 kB / 487.4 MB, free: 5.09 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.599/1.599, allocations: 221.5 MB / 0.7824 GB, free: 0.9648 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.0008998/0.0008998, allocations: 95.91 kB / 0.9219 GB, free: 2.203 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.041e-05/2.044e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2957/0.2957, allocations: 142.4 MB / 1.206 GB, free: 43.97 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.494/5.789, allocations: 2.226 GB / 3.432 GB, free: 71.92 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000252/5.79, allocations: 105.1 kB / 3.432 GB, free: 71.87 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 3.066/8.856, allocations: 0.7548 GB / 4.187 GB, free: 197.5 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.285e-06/8.856, allocations: 0 / 4.187 GB, free: 197.5 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0006877/8.857, allocations: 85.41 kB / 4.187 GB, free: 197.4 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.01162/8.869, allocations: 2.968 MB / 4.19 GB, free: 195.3 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.988e-05/8.869, allocations: 9.906 kB / 4.19 GB, free: 195.3 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004993/8.874, allocations: 0.6506 MB / 4.191 GB, free: 195.1 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01077/8.885, allocations: 3.02 MB / 4.193 GB, free: 192.5 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001571/8.885, allocations: 71.75 kB / 4.194 GB, free: 192.4 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009214/8.886, allocations: 140 kB / 4.194 GB, free: 192.3 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004911/8.891, allocations: 2.027 MB / 4.196 GB, free: 190.2 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004249/8.895, allocations: 2.057 MB / 4.198 GB, free: 188 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.168e-05/8.895, allocations: 7.938 kB / 4.198 GB, free: 188 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001868/8.895, allocations: 6.062 kB / 4.198 GB, free: 188 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.334e-05/8.895, allocations: 88 kB / 4.198 GB, free: 187.9 MB / 1.151 GB Warning: The model contains alias variables with conflicting start and/or 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.01433/8.91, allocations: 9.763 MB / 4.207 GB, free: 177.9 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001906/8.912, allocations: 1.507 MB / 4.209 GB, free: 176.4 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008457/8.912, allocations: 0.6926 MB / 4.209 GB, free: 175.8 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007315/8.92, allocations: 5.14 MB / 4.214 GB, free: 170.2 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001223/8.921, allocations: 0.8269 MB / 4.215 GB, free: 169.3 MB / 1.151 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001298/8.922, allocations: 123.5 kB / 4.215 GB, free: 169.2 MB / 1.151 GB Notification: Performance of pre-optimization done (n=154): time 7.394e-06/8.922, allocations: 0 / 4.215 GB, free: 169.2 MB / 1.151 GB Notification: Performance of matching and sorting (n=154): time 0.004335/8.927, allocations: 1.584 MB / 4.217 GB, free: 167.6 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.285e-05/8.927, allocations: 300 kB / 4.217 GB, free: 167.3 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003942/8.931, allocations: 1.686 MB / 4.219 GB, free: 165.6 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0003117/8.931, allocations: 33.69 kB / 4.219 GB, free: 165.5 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.001408/8.933, allocations: 1.273 MB / 4.22 GB, free: 164.2 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005052/8.933, allocations: 0.5035 MB / 4.221 GB, free: 163.7 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001118/8.933, allocations: 0 / 4.221 GB, free: 163.7 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001294/8.933, allocations: 373.9 kB / 4.221 GB, free: 163.4 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000847/8.934, allocations: 0.5624 MB / 4.222 GB, free: 162.8 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00118/8.935, allocations: 1.18 MB / 4.223 GB, free: 161.4 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002284/8.938, allocations: 0.829 MB / 4.223 GB, free: 160.6 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.858e-05/8.938, allocations: 4 kB / 4.223 GB, free: 160.6 MB / 1.151 GB Notification: Performance of matching and sorting (n=234) (initialization): time 0.0052/8.943, allocations: 2.03 MB / 4.225 GB, free: 158.6 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.001585/8.944, allocations: 5.298 MB / 4.231 GB, free: 152.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.332e-05/8.945, allocations: 12 kB / 4.231 GB, free: 152.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006357/8.945, allocations: 104 kB / 4.231 GB, free: 152.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001854/8.947, allocations: 470.2 kB / 4.231 GB, free: 152.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0019/8.949, allocations: 2.069 MB / 4.233 GB, free: 150 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00323/8.952, allocations: 162.1 kB / 4.233 GB, free: 149.9 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002919/8.953, allocations: 99.95 kB / 4.233 GB, free: 149.8 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.385e-05/8.953, allocations: 7.906 kB / 4.233 GB, free: 149.8 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004462/8.957, allocations: 1.701 MB / 4.235 GB, free: 148.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.876e-05/8.957, allocations: 12 kB / 4.235 GB, free: 148.1 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006198/8.958, allocations: 105.2 kB / 4.235 GB, free: 148 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001989/8.96, allocations: 459 kB / 4.236 GB, free: 147.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001913/8.962, allocations: 2.062 MB / 4.238 GB, free: 145.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002825/8.964, allocations: 145.3 kB / 4.238 GB, free: 145.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002384/8.965, allocations: 101.9 kB / 4.238 GB, free: 145.1 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.0005755/8.965, allocations: 157.5 kB / 4.238 GB, free: 144.9 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005518/8.966, allocations: 259.3 kB / 4.238 GB, free: 144.7 MB / 1.151 GB Warning: After manipulating the system with postOptModule wrapFunctionCalls the system is unbalanced. This indicates that the original system is singular. You can use -d=dumpCSE and -d=dumpCSE_verbose for more information. Error: Too many equations, over-determined system. The model has 189 equation(s) and 188 variable(s). Warning: Equation 172 (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.003227/8.969, allocations: 1.278 MB / 4.24 GB, free: 143.4 MB / 1.151 GB Error: post-optimization module wrapFunctionCalls (simulation) failed.