Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatExchangers.CoolingTowers.Correlations.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.CoolingTowers.Correlations.Examples.YorkCalc,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatExchangers_CoolingTowers_Correlations_Examples_YorkCalc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.CoolingTowers.Correlations.Examples.YorkCalc,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatExchangers_CoolingTowers_Correlations_Examples_YorkCalc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008136/0.0008136, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.0008418/0.0008418, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.315/1.315, allocations: 223.3 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.358/2.358, allocations: 409.4 MB / 0.684 GB, free: 0.9141 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003103/0.0003104, allocations: 8 kB / 0.8378 GB, free: 6.465 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5547/0.5551, allocations: 146.8 MB / 0.9811 GB, free: 6.234 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.CoolingTowers.Correlations.Examples.YorkCalc): time 0.001249/0.5563, allocations: 1 MB / 0.9821 GB, free: 5.223 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0009838/0.5574, allocations: 0.7011 MB / 0.9828 GB, free: 4.512 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.594e-05/0.5574, allocations: 4 kB / 0.9828 GB, free: 4.508 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 1.175e-05/0.5574, allocations: 0 / 0.9828 GB, free: 4.508 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 5.714e-05/0.5575, allocations: 3.938 kB / 0.9828 GB, free: 4.504 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002634/0.5577, allocations: 71.81 kB / 0.9829 GB, free: 4.434 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 4.545e-05/0.5578, allocations: 15.88 kB / 0.9829 GB, free: 4.418 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 3.991e-05/0.5578, allocations: 7.984 kB / 0.9829 GB, free: 4.41 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 1.553e-05/0.5579, allocations: 0 / 0.9829 GB, free: 4.41 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 4.584e-05/0.5579, allocations: 11.98 kB / 0.9829 GB, free: 4.398 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.207e-05/0.5579, allocations: 4 kB / 0.9829 GB, free: 4.395 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003006/0.5582, allocations: 155.8 kB / 0.9831 GB, free: 4.242 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 6.693e-06/0.5583, allocations: 0 / 0.9831 GB, free: 4.242 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 2.008e-05/0.5583, allocations: 25.7 kB / 0.9831 GB, free: 4.211 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001249/0.5584, allocations: 78.14 kB / 0.9832 GB, free: 4.137 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.5584, allocations: 0 / 0.9832 GB, free: 4.137 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.252e-06/0.5584, allocations: 0 / 0.9832 GB, free: 4.137 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 3.547e-06/0.5584, allocations: 0 / 0.9832 GB, free: 4.137 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0002963/0.5587, allocations: 331.3 kB / 0.9835 GB, free: 3.766 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.663e-05/0.5588, allocations: 16.02 kB / 0.9835 GB, free: 3.75 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.128e-05/0.5588, allocations: 30.56 kB / 0.9835 GB, free: 3.711 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.81e-05/0.5589, allocations: 0 / 0.9835 GB, free: 3.711 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001044/0.559, allocations: 163 kB / 0.9837 GB, free: 3.512 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.03e-05/0.559, allocations: 7.938 kB / 0.9837 GB, free: 3.504 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.267e-06/0.559, allocations: 7.953 kB / 0.9837 GB, free: 3.496 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.39e-05/0.5591, allocations: 37.69 kB / 0.9837 GB, free: 3.453 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.352e-06/0.5591, allocations: 0 / 0.9837 GB, free: 3.453 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.681e-06/0.5591, allocations: 3.938 kB / 0.9837 GB, free: 3.449 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.028e-06/0.5591, allocations: 0 / 0.9837 GB, free: 3.449 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.819e-05/0.5592, allocations: 8 kB / 0.9838 GB, free: 3.441 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001397/0.5593, allocations: 153.7 kB / 0.9839 GB, free: 3.242 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 7.72e-05/0.5594, allocations: 38.55 kB / 0.9839 GB, free: 3.195 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.149e-05/0.5594, allocations: 16.92 kB / 0.984 GB, free: 3.176 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002128/0.5616, allocations: 1.027 MB / 0.985 GB, free: 2.074 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.95e-05/0.5616, allocations: 34.52 kB / 0.985 GB, free: 2.031 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=3): time 1.152e-06/0.5616, allocations: 0 / 0.985 GB, free: 2.031 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3): time 0.0001391/0.5618, allocations: 53.69 kB / 0.985 GB, free: 1.973 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.195e-05/0.5618, allocations: 51.41 kB / 0.9851 GB, free: 1.91 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.691e-05/0.5619, allocations: 105.8 kB / 0.9852 GB, free: 1.797 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.386e-05/0.5619, allocations: 25.7 kB / 0.9852 GB, free: 1.766 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 2.365e-05/0.5619, allocations: 80.14 kB / 0.9853 GB, free: 1.684 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.029e-05/0.5619, allocations: 7.812 kB / 0.9853 GB, free: 1.676 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.325e-06/0.5619, allocations: 0 / 0.9853 GB, free: 1.676 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 8.523e-05/0.562, allocations: 314.8 kB / 0.9856 GB, free: 1.359 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.202e-05/0.5621, allocations: 8.125 kB / 0.9856 GB, free: 1.352 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.17e-05/0.5621, allocations: 7.984 kB / 0.9856 GB, free: 1.344 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.982e-05/0.5621, allocations: 4 kB / 0.9856 GB, free: 1.34 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.5621, allocations: 0 / 0.9856 GB, free: 1.34 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3) (initialization): time 6.908e-05/0.5622, allocations: 45.97 kB / 0.9857 GB, free: 1.289 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.493e-05/0.5622, allocations: 9.359 kB / 0.9857 GB, free: 1.281 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.5622, allocations: 4 kB / 0.9857 GB, free: 1.277 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.578e-06/0.5622, allocations: 0 / 0.9857 GB, free: 1.277 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.456e-05/0.5623, allocations: 4.047 kB / 0.9857 GB, free: 1.273 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.873e-06/0.5623, allocations: 3.938 kB / 0.9857 GB, free: 1.27 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.712e-05/0.5623, allocations: 15.92 kB / 0.9857 GB, free: 1.254 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.56e-06/0.5623, allocations: 4 kB / 0.9857 GB, free: 1.25 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.849e-05/0.5624, allocations: 105.8 kB / 0.9858 GB, free: 1.137 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.498e-06/0.5624, allocations: 4 kB / 0.9858 GB, free: 1.133 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001107/0.5625, allocations: 57.12 kB / 0.9859 GB, free: 1.07 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.5625, allocations: 7.875 kB / 0.9859 GB, free: 1.062 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.5625, allocations: 0 / 0.9859 GB, free: 1.062 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.294e-06/0.5625, allocations: 0 / 0.9859 GB, free: 1.062 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.165e-05/0.5626, allocations: 161.6 kB / 0.986 GB, free: 0.8555 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.5626, allocations: 0 / 0.986 GB, free: 0.8555 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.362e-05/0.5627, allocations: 4 kB / 0.986 GB, free: 0.8516 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.5627, allocations: 0 / 0.986 GB, free: 0.8516 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.354e-06/0.5627, allocations: 4 kB / 0.986 GB, free: 0.8477 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.617e-06/0.5627, allocations: 7.891 kB / 0.986 GB, free: 0.8398 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.5627, allocations: 0 / 0.986 GB, free: 0.8398 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.212e-05/0.5628, allocations: 69.12 kB / 0.9861 GB, free: 0.7539 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 2.923e-05/0.5628, allocations: 81.11 kB / 0.9862 GB, free: 0.6562 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.049e-05/0.5628, allocations: 0 / 0.9862 GB, free: 0.6562 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.169e-05/0.5629, allocations: 0 / 0.9862 GB, free: 0.6562 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.625e-05/0.5629, allocations: 11.94 kB / 0.9862 GB, free: 0.6445 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.685e-06/0.5629, allocations: 0 / 0.9862 GB, free: 0.6445 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 3.118e-05/0.5629, allocations: 79.28 kB / 0.9863 GB, free: 0.5664 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5629, allocations: 0 / 0.9863 GB, free: 0.5664 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002246/0.5632, allocations: 28 kB / 0.9863 GB, free: 0.5391 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004245/0.5636, allocations: 0.6359 MB / 0.9869 GB, free: 15.88 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 6.951e-05/0.5637, allocations: 15.98 kB / 0.9869 GB, free: 15.86 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.5637, allocations: 0 / 0.9869 GB, free: 15.86 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 1.473e-05/0.5637, allocations: 12 kB / 0.9869 GB, free: 15.85 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000186/0.5639, allocations: 11.94 kB / 0.987 GB, free: 15.84 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003295/0.5642, allocations: 148.5 kB / 0.9871 GB, free: 15.65 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001898/0.5644, allocations: 0.677 MB / 0.9878 GB, free: 14.95 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 2.843e-05/0.5645, allocations: 7.938 kB / 0.9878 GB, free: 14.94 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.067e-05/0.5645, allocations: 11.44 kB / 0.9878 GB, free: 14.93 MB / 0.7481 GB Notification: Performance of SimCode: time 2.71e-07/0.5645, allocations: 0 / 0.9878 GB, free: 14.93 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01104/0.5755, allocations: 1.575 MB / 0.9893 GB, free: 13.54 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001696/0.5757, allocations: 229.5 kB / 0.9895 GB, free: 13.29 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.573/2.148, allocations: 0 / 0.9895 GB, free: 13.29 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Fluid.HeatExchangers.CoolingTowers.Correlations.Examples.YorkCalc.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatExchangers.CoolingTowers.Correlations.Examples.YorkCalc.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatExchangers.CoolingTowers.Correlations.Examples.YorkCalc.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatExchangers.CoolingTowers.Correlations.Examples.YorkCalc.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.HeatExchangers.CoolingTowers.Correlations.Examples.YorkCalc_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_HeatExchangers_CoolingTowers_Correlations_Examples_YorkCalc_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_HeatExchangers_CoolingTowers_Correlations_Examples_YorkCalc.fmu > Buildings_latest_Buildings.Fluid.HeatExchangers.CoolingTowers.Correlations.Examples.YorkCalc.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.HeatExchangers.CoolingTowers.Correlations.Examples.YorkCalc_res.mat does not exist to compare? outputFormat=mat