Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Experimental.DHC.Plants.Cooling.Subsystems.Examples.CoolingTowersWithBypass.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.Experimental.DHC.Plants.Cooling.Subsystems.Examples.CoolingTowersWithBypass,fileNamePrefix="Buildings_9_Buildings_Experimental_DHC_Plants_Cooling_Subsystems_Examples_CoolingTowersWithBypass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Experimental.DHC.Plants.Cooling.Subsystems.Examples.CoolingTowersWithBypass,fileNamePrefix="Buildings_9_Buildings_Experimental_DHC_Plants_Cooling_Subsystems_Examples_CoolingTowersWithBypass",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.129/2.129, allocations: 387.2 MB / 394.5 MB, free: 13.71 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.001307/0.001307, allocations: 180.7 kB / 487 MB, free: 5.395 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.662/1.662, allocations: 221.3 MB / 0.7819 GB, free: 1.5 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.001009/0.001009, allocations: 99.52 kB / 0.9213 GB, free: 2.75 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.7751/0.7761, allocations: 148.5 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2912/1.067, allocations: 142.3 MB / 1.205 GB, free: 26.19 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.831/5.898, allocations: 2.256 GB / 3.461 GB, free: 57.66 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003995/5.899, allocations: 111.9 kB / 3.461 GB, free: 57.56 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: 876 * Number of variables: 876 Notification: Performance of Generate backend data structure: time 6.111/12.01, allocations: 1.626 GB / 5.088 GB, free: 114.9 MB / 1.182 GB Notification: Performance of prepare preOptimizeDAE: time 5.57e-05/12.01, allocations: 10.81 kB / 5.088 GB, free: 114.9 MB / 1.182 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009006/12.02, allocations: 1.167 MB / 5.089 GB, free: 114.6 MB / 1.182 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02187/12.04, allocations: 6.729 MB / 5.095 GB, free: 113.7 MB / 1.182 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003048/12.04, allocations: 110.4 kB / 5.096 GB, free: 113.7 MB / 1.182 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001912/12.04, allocations: 220.9 kB / 5.096 GB, free: 113.7 MB / 1.182 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01108/12.05, allocations: 4.475 MB / 5.1 GB, free: 113.7 MB / 1.182 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01363/12.07, allocations: 4.096 MB / 5.104 GB, free: 113.3 MB / 1.182 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001966/12.07, allocations: 7.031 kB / 5.104 GB, free: 113.3 MB / 1.182 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001275/12.07, allocations: 7.75 kB / 5.104 GB, free: 113.3 MB / 1.182 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000161/12.07, allocations: 140.9 kB / 5.104 GB, free: 113.3 MB / 1.182 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04449/12.11, allocations: 19.73 MB / 5.124 GB, free: 106.8 MB / 1.182 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006935/12.12, allocations: 3.807 MB / 5.127 GB, free: 106.7 MB / 1.182 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003045/12.12, allocations: 1.768 MB / 5.129 GB, free: 106.7 MB / 1.182 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02024/12.14, allocations: 9.52 MB / 5.138 GB, free: 101.7 MB / 1.182 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004668/12.15, allocations: 1.952 MB / 5.14 GB, free: 100.9 MB / 1.182 GB Notification: Performance of pre-optimization done (n=268): time 2.289e-05/12.15, allocations: 0 / 5.14 GB, free: 100.9 MB / 1.182 GB Notification: Performance of matching and sorting (n=268): time 0.09425/12.24, allocations: 16.39 MB / 5.156 GB, free: 98.82 MB / 1.182 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001371/12.24, allocations: 316.2 kB / 5.156 GB, free: 98.47 MB / 1.182 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01269/12.26, allocations: 4.13 MB / 5.161 GB, free: 96.9 MB / 1.182 GB Notification: Performance of collectPreVariables (initialization): time 0.001352/12.26, allocations: 39.48 kB / 5.161 GB, free: 96.86 MB / 1.182 GB Notification: Performance of collectInitialEqns (initialization): time 0.00304/12.26, allocations: 1.337 MB / 5.162 GB, free: 95.98 MB / 1.182 GB Notification: Performance of collectInitialBindings (initialization): time 0.00262/12.26, allocations: 0.873 MB / 5.163 GB, free: 95.29 MB / 1.182 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008445/12.26, allocations: 1.125 kB / 5.163 GB, free: 95.29 MB / 1.182 GB Notification: Performance of setup shared object (initialization): time 0.0003655/12.26, allocations: 426.2 kB / 5.163 GB, free: 94.93 MB / 1.182 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003346/12.27, allocations: 1.644 MB / 5.165 GB, free: 94.26 MB / 1.182 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004153/12.27, allocations: 2.733 MB / 5.167 GB, free: 92.59 MB / 1.182 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.1666/12.44, allocations: 32.81 MB / 5.199 GB, free: 77.23 MB / 1.182 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.228e-05/12.44, allocations: 4 kB / 5.199 GB, free: 77.23 MB / 1.182 GB Notification: Performance of matching and sorting (n=387) (initialization): time 0.172/12.61, allocations: 36.15 MB / 5.235 GB, free: 41.06 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 0.00148/12.61, allocations: 6.319 MB / 5.241 GB, free: 34.24 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.401e-05/12.61, allocations: 12 kB / 5.241 GB, free: 34.23 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002208/12.61, allocations: 0.9019 MB / 5.242 GB, free: 33.34 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004015/12.62, allocations: 0.7065 MB / 5.242 GB, free: 32.67 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1572/12.78, allocations: 36.32 MB / 5.278 GB, free: 12.1 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007146/12.78, allocations: 481 kB / 5.278 GB, free: 11.62 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001223/12.78, allocations: 163.9 kB / 5.279 GB, free: 11.46 MB / 1.198 GB Notification: Performance of prepare postOptimizeDAE: time 1.324e-05/12.78, allocations: 4 kB / 5.279 GB, free: 11.46 MB / 1.198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.8445/13.63, allocations: 35.53 MB / 5.313 GB, free: 275.5 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.778e-05/13.63, allocations: 15.03 kB / 5.313 GB, free: 275.5 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002037/13.63, allocations: 0.899 MB / 5.314 GB, free: 275.5 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003501/13.63, allocations: 0.689 MB / 5.315 GB, free: 275.5 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1578/13.79, allocations: 37.33 MB / 5.351 GB, free: 270.9 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006889/13.8, allocations: 430.5 kB / 5.352 GB, free: 270.9 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001127/13.8, allocations: 163 kB / 5.352 GB, free: 270.9 MB / 1.214 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition3,$whenCondition4,$whenCondition2,$whenCondition1,$PRE.tow.hys.y,tow.hys.y,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext,$PRE.onOffCon.y,onOffCon.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (363): * Single equations (assignments): 356 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 6 {1 6,1 6,1 1,1 1,3 5,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.001347/13.8, allocations: 185.9 kB / 5.352 GB, free: 270.8 MB / 1.214 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001797/13.8, allocations: 435 kB / 5.352 GB, free: 270.8 MB / 1.214 GB Error: Too many equations, over-determined system. The model has 321 equation(s) and 319 variable(s). Warning: Equation 300 (size: 2) $cse10 = Buildings.Fluid.Sources.Boundary_pT$exp.Medium.setState_pTX(exp.p_in_internal, exp.T, {exp.X_in_internal[1]}) is not big enough to solve for enough variables. Remaining unsolved variables are: $cse14 Already solved: weaBus.cloTim Equations used to solve those variables: Equation 47 (size: 1): weaBus.cloTim = time Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed! Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07884/13.88, allocations: 15.21 MB / 5.367 GB, free: 270.6 MB / 1.214 GB Error: post-optimization module wrapFunctionCalls (simulation) failed. Error: Internal error SimCode: The model Buildings.Experimental.DHC.Plants.Cooling.Subsystems.Examples.CoolingTowersWithBypass could not be translated to FMU