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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.294/2.294, allocations: 387.4 MB / 394.9 MB, free: 13.36 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.001205/0.001205, allocations: 188.8 kB / 487.4 MB, free: 5.035 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.548/1.548, allocations: 221.5 MB / 0.7824 GB, free: 1.059 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.000821/0.0008209, allocations: 95.8 kB / 0.9219 GB, free: 2.293 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 3.222e-05/3.233e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2814/0.2815, allocations: 142.4 MB / 1.206 GB, free: 43.88 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.785/6.066, allocations: 2.226 GB / 3.432 GB, free: 94.98 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002824/6.067, allocations: 103.9 kB / 3.432 GB, free: 94.88 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 2.996/9.062, allocations: 0.7548 GB / 4.187 GB, free: 205.4 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.643e-06/9.062, allocations: 0 / 4.187 GB, free: 205.4 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0004735/9.063, allocations: 79.45 kB / 4.187 GB, free: 205.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.008477/9.071, allocations: 2.971 MB / 4.19 GB, free: 203.3 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.767e-05/9.071, allocations: 10.31 kB / 4.19 GB, free: 203.3 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00425/9.076, allocations: 0.6537 MB / 4.191 GB, free: 203.1 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008535/9.084, allocations: 3.022 MB / 4.194 GB, free: 201.1 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001441/9.084, allocations: 73.16 kB / 4.194 GB, free: 201.1 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007989/9.085, allocations: 130.8 kB / 4.194 GB, free: 201.1 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004545/9.09, allocations: 2.026 MB / 4.196 GB, free: 200.2 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005239/9.095, allocations: 2.077 MB / 4.198 GB, free: 198.8 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.951e-05/9.095, allocations: 3.938 kB / 4.198 GB, free: 198.8 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004192/9.096, allocations: 8.781 kB / 4.198 GB, free: 198.8 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.337e-05/9.096, allocations: 82.86 kB / 4.198 GB, free: 198.8 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.01623/9.112, allocations: 9.771 MB / 4.207 GB, free: 191 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002344/9.114, allocations: 1.51 MB / 4.209 GB, free: 190.3 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001109/9.115, allocations: 0.6871 MB / 4.21 GB, free: 190 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01003/9.125, allocations: 5.125 MB / 4.215 GB, free: 185.4 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00156/9.127, allocations: 0.8266 MB / 4.215 GB, free: 184.9 MB / 1.151 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00166/9.129, allocations: 116.1 kB / 4.215 GB, free: 184.8 MB / 1.151 GB Notification: Performance of pre-optimization done (n=154): time 8.446e-06/9.129, allocations: 0 / 4.215 GB, free: 184.8 MB / 1.151 GB Notification: Performance of matching and sorting (n=154): time 0.004775/9.134, allocations: 1.593 MB / 4.217 GB, free: 184.1 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.455e-05/9.134, allocations: 306.6 kB / 4.217 GB, free: 183.7 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003949/9.138, allocations: 1.689 MB / 4.219 GB, free: 182.8 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.000324/9.138, allocations: 32.7 kB / 4.219 GB, free: 182.8 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.001374/9.139, allocations: 1.269 MB / 4.22 GB, free: 181.7 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005104/9.14, allocations: 0.501 MB / 4.221 GB, free: 181.2 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001524/9.14, allocations: 0 / 4.221 GB, free: 181.2 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001481/9.14, allocations: 381.3 kB / 4.221 GB, free: 180.9 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009579/9.141, allocations: 0.5612 MB / 4.222 GB, free: 180.6 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001391/9.143, allocations: 1.176 MB / 4.223 GB, free: 179.3 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002205/9.145, allocations: 0.8347 MB / 4.224 GB, free: 178.5 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.534e-05/9.145, allocations: 7.953 kB / 4.224 GB, free: 178.5 MB / 1.151 GB Notification: Performance of matching and sorting (n=234) (initialization): time 0.004857/9.15, allocations: 2.023 MB / 4.226 GB, free: 176.5 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.001133/9.151, allocations: 5.301 MB / 4.231 GB, free: 170.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.657e-05/9.151, allocations: 12 kB / 4.231 GB, free: 170.7 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006273/9.152, allocations: 100.6 kB / 4.231 GB, free: 170.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001824/9.153, allocations: 471.2 kB / 4.231 GB, free: 170.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001813/9.155, allocations: 2.062 MB / 4.233 GB, free: 168 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002656/9.158, allocations: 154.6 kB / 4.233 GB, free: 167.8 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003413/9.158, allocations: 103.9 kB / 4.234 GB, free: 167.7 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.1e-05/9.158, allocations: 7.594 kB / 4.234 GB, free: 167.7 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003933/9.162, allocations: 1.703 MB / 4.235 GB, free: 166 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.949e-05/9.162, allocations: 15.94 kB / 4.235 GB, free: 166 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005237/9.163, allocations: 101.5 kB / 4.235 GB, free: 165.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001671/9.164, allocations: 461.6 kB / 4.236 GB, free: 165.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001641/9.166, allocations: 2.075 MB / 4.238 GB, free: 163.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002401/9.169, allocations: 149.5 kB / 4.238 GB, free: 163.1 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002494/9.169, allocations: 99.95 kB / 4.238 GB, free: 163 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.0005159/9.169, allocations: 164.6 kB / 4.238 GB, free: 162.9 MB / 1.151 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003842/9.173, allocations: 1.552 MB / 4.24 GB, free: 161.3 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007184/9.174, allocations: 244.9 kB / 4.24 GB, free: 161.1 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.003328/9.177, allocations: 1.271 MB / 4.241 GB, free: 159.8 MB / 1.151 GB Error: post-optimization module wrapFunctionCalls (simulation) failed.