Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_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 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.0.x_Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc") translateModel(Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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.001113/0.001113, allocations: 99.31 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.001028/0.001028, allocations: 177.3 kB / 15.94 MB, free: 220 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.676/1.676, allocations: 205.4 MB / 222.1 MB, free: 5.672 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.653/1.653, allocations: 251.9 MB / 0.51 GB, free: 4.84 MB / 414.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.000563/0.0005632, allocations: 16 kB / 0.6241 GB, free: 1.18 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5808/0.5814, allocations: 106.3 MB / 0.728 GB, free: 11.45 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc): time 0.07472/0.6561, allocations: 73.44 MB / 0.7997 GB, free: 1.832 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.6948/1.351, allocations: 143.5 MB / 0.9399 GB, free: 29.55 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003898/1.355, allocations: 81.56 kB / 0.9399 GB, free: 29.55 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.003753/1.359, allocations: 1.076 MB / 0.941 GB, free: 29.54 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.009645/1.368, allocations: 3.074 MB / 0.944 GB, free: 29.5 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.01098/1.379, allocations: 3.516 MB / 0.9474 GB, free: 29.41 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.01086/1.39, allocations: 3.991 MB / 0.9513 GB, free: 29.4 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00432/1.395, allocations: 2.186 MB / 0.9535 GB, free: 29.12 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003893/1.399, allocations: 1.707 MB / 0.9551 GB, free: 29.12 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002782/1.401, allocations: 1.325 MB / 0.9564 GB, free: 29.11 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.0005903/1.402, allocations: 98.25 kB / 0.9565 GB, free: 29.11 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006036/1.408, allocations: 1.662 MB / 0.9581 GB, free: 29.11 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.00113/1.409, allocations: 0.5888 MB / 0.9587 GB, free: 29.11 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.001685/1.411, allocations: 0.599 MB / 0.9593 GB, free: 29.08 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.006617/1.417, allocations: 3.877 MB / 0.9631 GB, free: 27.61 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/1.418, allocations: 0 / 0.9631 GB, free: 27.61 MB / 0.7169 GB Notification: Performance of FrontEnd: time 3.506e-06/1.418, allocations: 3.5 kB / 0.9631 GB, free: 27.61 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 0.0001461/1.418, allocations: 2.625 kB / 0.9631 GB, free: 27.61 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 540 * Number of variables: 540 Notification: Performance of Generate backend data structure: time 0.007345/1.425, allocations: 3.229 MB / 0.9662 GB, free: 25.56 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.157e-05/1.425, allocations: 8.469 kB / 0.9662 GB, free: 25.56 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002985/1.428, allocations: 0.5804 MB / 0.9668 GB, free: 25.29 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004622/1.433, allocations: 2.229 MB / 0.969 GB, free: 24.26 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000134/1.433, allocations: 172.8 kB / 0.9692 GB, free: 24.25 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003883/1.433, allocations: 228.2 kB / 0.9694 GB, free: 24.25 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004064/1.437, allocations: 2.428 MB / 0.9717 GB, free: 23.33 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.774e-05/1.437, allocations: 7.094 kB / 0.9718 GB, free: 23.32 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002011/1.438, allocations: 90.28 kB / 0.9718 GB, free: 23.32 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.403e-05/1.438, allocations: 57.03 kB / 0.9719 GB, free: 23.32 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003845/1.442, allocations: 2.295 MB / 0.9741 GB, free: 22.83 MB / 0.7169 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.01347/1.455, allocations: 10.1 MB / 0.984 GB, free: 16.73 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002915/1.458, allocations: 1.576 MB / 0.9855 GB, free: 16.5 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00679/1.465, allocations: 4.872 MB / 0.9903 GB, free: 13.23 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001575/1.466, allocations: 0.8888 MB / 0.9912 GB, free: 12.94 MB / 0.7169 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001085/1.468, allocations: 168.4 kB / 0.9913 GB, free: 12.85 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=149): time 4.338e-06/1.468, allocations: 0 / 0.9913 GB, free: 12.85 MB / 0.7169 GB Notification: Performance of matching and sorting (n=149): time 0.005483/1.473, allocations: 2.31 MB / 0.9936 GB, free: 12.25 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.11e-05/1.473, allocations: 281.5 kB / 0.9938 GB, free: 11.93 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003052/1.476, allocations: 2.234 MB / 0.996 GB, free: 11.33 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 0.0002476/1.477, allocations: 60.83 kB / 0.9961 GB, free: 11.3 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.00101/1.478, allocations: 1.263 MB / 0.9973 GB, free: 10.75 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.000424/1.478, allocations: 0.5048 MB / 0.9978 GB, free: 10.39 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.031e-05/1.478, allocations: 35.75 kB / 0.9978 GB, free: 10.39 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001092/1.478, allocations: 384.1 kB / 0.9982 GB, free: 10.05 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001362/1.48, allocations: 0.6631 MB / 0.9989 GB, free: 9.949 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001668/1.481, allocations: 1.287 MB / 1 GB, free: 9.195 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001514/1.483, allocations: 0.8198 MB / 1.001 GB, free: 9.086 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.918e-06/1.483, allocations: 5.438 kB / 1.001 GB, free: 9.086 MB / 0.7169 GB Notification: Performance of matching and sorting (n=237) (initialization): time 0.004477/1.487, allocations: 2.225 MB / 1.003 GB, free: 8.551 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008406/1.488, allocations: 5.347 MB / 1.008 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.248e-05/1.488, allocations: 16.12 kB / 1.008 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006347/1.489, allocations: 104.9 kB / 1.008 GB, free: 2.824 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001835/1.491, allocations: 451.7 kB / 1.009 GB, free: 2.727 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001921/1.493, allocations: 2.144 MB / 1.011 GB, free: 0.7578 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002578/1.495, allocations: 183.8 kB / 1.011 GB, free: 0.6992 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001905/1.495, allocations: 93.81 kB / 1.011 GB, free: 0.6875 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 9.288e-06/1.495, allocations: 4.844 kB / 1.011 GB, free: 0.6875 MB / 0.7169 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003577/1.499, allocations: 1.915 MB / 1.013 GB, free: 15.9 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.591e-05/1.499, allocations: 20.02 kB / 1.013 GB, free: 15.88 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005548/1.5, allocations: 103.6 kB / 1.013 GB, free: 15.79 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001673/1.501, allocations: 442.1 kB / 1.014 GB, free: 15.37 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002195/1.503, allocations: 2.133 MB / 1.016 GB, free: 13.21 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002505/1.506, allocations: 174.7 kB / 1.016 GB, free: 13.07 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000216/1.506, allocations: 94.59 kB / 1.016 GB, free: 13 MB / 0.7325 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (228): * Single equations (assignments): 222 * 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.001713/1.508, allocations: 0.6679 MB / 1.017 GB, free: 12.55 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005981/1.509, allocations: 256.8 kB / 1.017 GB, free: 12.3 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005035/1.514, allocations: 2.2 MB / 1.019 GB, free: 10.71 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.91e-05/1.514, allocations: 23.98 kB / 1.019 GB, free: 10.68 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.513e-06/1.514, allocations: 3.953 kB / 1.019 GB, free: 10.68 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003465/1.517, allocations: 1.797 MB / 1.021 GB, free: 9.281 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009073/1.526, allocations: 4.373 MB / 1.025 GB, free: 6.223 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.021e-05/1.526, allocations: 4 kB / 1.025 GB, free: 6.219 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001484/1.528, allocations: 328.1 kB / 1.025 GB, free: 5.91 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005261/1.528, allocations: 87.2 kB / 1.025 GB, free: 5.828 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001108/1.528, allocations: 50.61 kB / 1.026 GB, free: 5.801 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001939/1.53, allocations: 1.564 MB / 1.027 GB, free: 4.238 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/1.53, allocations: 0 / 1.027 GB, free: 4.238 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006495/1.537, allocations: 2.992 MB / 1.03 GB, free: 2.047 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001832/1.539, allocations: 0.567 MB / 1.031 GB, free: 1.59 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005352/1.539, allocations: 35.33 kB / 1.031 GB, free: 1.578 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001745/1.541, allocations: 183.4 kB / 1.031 GB, free: 1.426 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002381/1.541, allocations: 119.8 kB / 1.031 GB, free: 1.324 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001721/1.541, allocations: 75.25 kB / 1.031 GB, free: 1.266 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.00245/1.544, allocations: 1.492 MB / 1.032 GB, free: 204 kB / 0.7325 GB Notification: Performance of sort global known variables: time 3.91e-07/1.544, allocations: 0 / 1.032 GB, free: 204 kB / 0.7325 GB Notification: Performance of remove unused functions: time 0.004952/1.549, allocations: 1.505 MB / 1.034 GB, free: 14.82 MB / 0.7481 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (tow.vol.dynBal.U,pum.vol.dynBal.U,pum.filter.x[1],pum.filter.x[2],vol.dynBal.U,conFan.I.y,conFan.D.x) * 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 (174): * Single equations (assignments): 165 * 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.002851/1.552, allocations: 1.082 MB / 1.035 GB, free: 14.02 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0069/1.559, allocations: 3.051 MB / 1.038 GB, free: 11.67 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 1.141e-05/1.559, allocations: 0 / 1.038 GB, free: 11.67 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.002075/1.561, allocations: 0.9991 MB / 1.039 GB, free: 10.9 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006298/1.567, allocations: 1.144 MB / 1.04 GB, free: 9.973 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01172/1.579, allocations: 6.033 MB / 1.046 GB, free: 4.457 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001618/1.581, allocations: 1.846 MB / 1.048 GB, free: 2.637 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.003805/1.584, allocations: 0.7857 MB / 1.048 GB, free: 1.848 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000755/1.585, allocations: 251.1 kB / 1.049 GB, free: 1.617 MB / 0.7481 GB Notification: Performance of SimCode: time 1.463e-06/1.585, allocations: 4 kB / 1.049 GB, free: 1.613 MB / 0.7481 GB Notification: Performance of Templates: time 0.08741/1.673, allocations: 51.77 MB / 1.099 GB, free: 14.63 MB / 0.8106 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc.makefile Environment - environmentSimulation: (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc.pipe 2>&1) Environment - environmentSimulation: