Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc") translateModel(Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009068/0.0009068, allocations: 99.86 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00101/0.00101, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.293/1.293, allocations: 205.4 MB / 222.1 MB, free: 5.652 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.639/1.639, allocations: 292.5 MB / 0.5497 GB, free: 14.63 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005616/0.0005617, allocations: 18.66 kB / 0.6735 GB, free: 26.29 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2292/0.2298, allocations: 116.3 MB / 0.7871 GB, free: 11.97 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc): time 0.07193/0.3018, allocations: 73.45 MB / 0.8588 GB, free: 2.34 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.5653/0.8672, allocations: 143.5 MB / 0.999 GB, free: 15.71 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003308/0.8705, allocations: 80.91 kB / 0.9991 GB, free: 15.68 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.003761/0.8743, allocations: 1.085 MB / 1 GB, free: 14.9 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.008978/0.8833, allocations: 3.075 MB / 1.003 GB, free: 12.41 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.009112/0.8924, allocations: 3.576 MB / 1.007 GB, free: 10.04 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.007057/0.8995, allocations: 3.974 MB / 1.011 GB, free: 7.434 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003374/0.9029, allocations: 2.176 MB / 1.013 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003053/0.906, allocations: 1.69 MB / 1.014 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002301/0.9083, allocations: 1.306 MB / 1.016 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.0006001/0.9089, allocations: 96.06 kB / 1.016 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004614/0.9135, allocations: 1.666 MB / 1.017 GB, free: 3.578 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0009654/0.9145, allocations: 0.5896 MB / 1.018 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.001024/0.9155, allocations: 0.6006 MB / 1.018 GB, free: 2.82 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.004927/0.9205, allocations: 3.851 MB / 1.022 GB, free: 172 kB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.9205, allocations: 0 / 1.022 GB, free: 172 kB / 0.7169 GB Notification: Performance of FrontEnd: time 1.463e-06/0.9205, allocations: 0 / 1.022 GB, free: 172 kB / 0.7169 GB Notification: Performance of Transformations before backend: time 0.0001754/0.9207, allocations: 0 / 1.022 GB, free: 172 kB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 535 * Number of variables: 535 Notification: Performance of Generate backend data structure: time 0.007117/0.9278, allocations: 3.202 MB / 1.025 GB, free: 13.83 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.9279, allocations: 7.156 kB / 1.025 GB, free: 13.83 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002649/0.9305, allocations: 0.579 MB / 1.026 GB, free: 13.45 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003993/0.9345, allocations: 2.227 MB / 1.028 GB, free: 11.15 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001329/0.9347, allocations: 169.1 kB / 1.028 GB, free: 10.98 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002813/0.935, allocations: 223.9 kB / 1.028 GB, free: 10.77 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003867/0.9388, allocations: 2.417 MB / 1.031 GB, free: 8.172 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.104e-05/0.9389, allocations: 3.938 kB / 1.031 GB, free: 8.168 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001905/0.9391, allocations: 92 kB / 1.031 GB, free: 8.078 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.081e-05/0.9391, allocations: 60 kB / 1.031 GB, free: 8.02 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004032/0.9432, allocations: 2.271 MB / 1.033 GB, free: 5.746 MB / 0.7325 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.01307/0.9563, allocations: 10.04 MB / 1.043 GB, free: 11.32 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002894/0.9592, allocations: 1.553 MB / 1.045 GB, free: 9.77 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006503/0.9657, allocations: 4.816 MB / 1.049 GB, free: 4.508 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001627/0.9674, allocations: 0.8879 MB / 1.05 GB, free: 3.602 MB / 0.7481 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006844/0.9681, allocations: 166.3 kB / 1.05 GB, free: 3.438 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=146): time 3.747e-06/0.9681, allocations: 3.938 kB / 1.05 GB, free: 3.434 MB / 0.7481 GB Notification: Performance of matching and sorting (n=146): time 0.005445/0.9735, allocations: 2.271 MB / 1.052 GB, free: 1.137 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001235/0.9737, allocations: 278.3 kB / 1.053 GB, free: 0.8047 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003015/0.9767, allocations: 2.21 MB / 1.055 GB, free: 14.58 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 0.0001817/0.9769, allocations: 57.7 kB / 1.055 GB, free: 14.52 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.001045/0.9779, allocations: 1.255 MB / 1.056 GB, free: 13.25 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004501/0.9784, allocations: 0.4929 MB / 1.057 GB, free: 12.75 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001058/0.9785, allocations: 36 kB / 1.057 GB, free: 12.71 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001606/0.9787, allocations: 385.8 kB / 1.057 GB, free: 12.33 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001421/0.9801, allocations: 0.652 MB / 1.058 GB, free: 11.68 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001833/0.982, allocations: 1.272 MB / 1.059 GB, free: 10.18 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001585/0.9836, allocations: 0.814 MB / 1.06 GB, free: 9.375 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.037e-05/0.9836, allocations: 4 kB / 1.06 GB, free: 9.371 MB / 0.7637 GB Notification: Performance of matching and sorting (n=234) (initialization): time 0.004635/0.9882, allocations: 2.214 MB / 1.062 GB, free: 7.145 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 0.001893/0.9901, allocations: 5.429 MB / 1.067 GB, free: 1.227 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.104e-05/0.9902, allocations: 16 kB / 1.067 GB, free: 1.211 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000571/0.9908, allocations: 100.8 kB / 1.067 GB, free: 1.109 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001752/0.9925, allocations: 455.3 kB / 1.068 GB, free: 0.6641 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002201/0.9947, allocations: 2.137 MB / 1.07 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002193/0.9969, allocations: 180.5 kB / 1.07 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002168/0.9972, allocations: 99.95 kB / 1.07 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 8.116e-06/0.9972, allocations: 4 kB / 1.07 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003883/1.001, allocations: 1.898 MB / 1.072 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-05/1.001, allocations: 12 kB / 1.072 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000536/1.002, allocations: 101.6 kB / 1.072 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00168/1.003, allocations: 431.4 kB / 1.072 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001962/1.005, allocations: 2.153 MB / 1.075 GB, free: 9.34 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001986/1.007, allocations: 163.4 kB / 1.075 GB, free: 9.184 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001962/1.008, allocations: 91.97 kB / 1.075 GB, free: 9.094 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (225): * Single equations (assignments): 219 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 1 * 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.001186/1.009, allocations: 0.6644 MB / 1.075 GB, free: 8.418 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004851/1.009, allocations: 265 kB / 1.076 GB, free: 8.156 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004678/1.014, allocations: 2.176 MB / 1.078 GB, free: 5.965 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-05/1.014, allocations: 23.95 kB / 1.078 GB, free: 5.941 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.279e-06/1.014, allocations: 3.938 kB / 1.078 GB, free: 5.938 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003334/1.017, allocations: 1.764 MB / 1.08 GB, free: 4.102 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008013/1.025, allocations: 4.327 MB / 1.084 GB, free: 15.69 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.723e-06/1.025, allocations: 0 / 1.084 GB, free: 15.69 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001368/1.027, allocations: 319.7 kB / 1.084 GB, free: 15.38 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004999/1.027, allocations: 92.66 kB / 1.084 GB, free: 15.28 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001201/1.027, allocations: 51.97 kB / 1.084 GB, free: 15.23 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001763/1.029, allocations: 1.564 MB / 1.086 GB, free: 13.53 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/1.029, allocations: 4.031 kB / 1.086 GB, free: 13.52 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005661/1.035, allocations: 2.936 MB / 1.089 GB, free: 10.53 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001266/1.036, allocations: 0.5677 MB / 1.089 GB, free: 9.941 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005016/1.037, allocations: 40 kB / 1.089 GB, free: 9.902 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001746/1.038, allocations: 162.3 kB / 1.089 GB, free: 9.746 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002022/1.039, allocations: 121.8 kB / 1.09 GB, free: 9.629 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001473/1.039, allocations: 71.95 kB / 1.09 GB, free: 9.559 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.002236/1.041, allocations: 1.478 MB / 1.091 GB, free: 8.074 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.4e-07/1.041, allocations: 0 / 1.091 GB, free: 8.074 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.004264/1.045, allocations: 1.512 MB / 1.093 GB, free: 6.559 MB / 0.795 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (tow.vol.dynBal.U,pum.vol.dynBal.U,pum.filter.x[1],pum.filter.x[2],vol.dynBal.U,conFan.I.y) * Number of discrete variables: 5 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext,onOffCon.y) * Number of discrete states: 3 (onOffCon.y,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (171): * Single equations (assignments): 162 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.002443/1.048, allocations: 1.084 MB / 1.094 GB, free: 5.656 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.005893/1.054, allocations: 3.015 MB / 1.097 GB, free: 2.609 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 8.706e-06/1.054, allocations: 10.14 kB / 1.097 GB, free: 2.602 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.00186/1.056, allocations: 0.9746 MB / 1.097 GB, free: 1.617 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005528/1.061, allocations: 1.134 MB / 1.099 GB, free: 0.5039 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01013/1.071, allocations: 5.941 MB / 1.104 GB, free: 10.55 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001754/1.073, allocations: 1.826 MB / 1.106 GB, free: 8.695 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.003443/1.077, allocations: 0.7972 MB / 1.107 GB, free: 7.895 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006973/1.077, allocations: 251.3 kB / 1.107 GB, free: 7.648 MB / 0.8106 GB Notification: Performance of SimCode: time 6.51e-07/1.077, allocations: 4 kB / 1.107 GB, free: 7.645 MB / 0.8106 GB Notification: Performance of Templates: time 0.07851/1.156, allocations: 51.57 MB / 1.158 GB, free: 4.688 MB / 0.8575 GB make -j1 -f Buildings_8_Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc.makefile Environment - environmentSimulation: (rm -f Buildings_8_Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc.pipe ; mkfifo Buildings_8_Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc.pipe >> ../files/Buildings_8_Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc.sim & ./Buildings_8_Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc.pipe 2>&1) Environment - environmentSimulation: