Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_u.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_HeatExchangers_Examples_WaterHeater_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_HeatExchangers_Examples_WaterHeater_u",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo): time 0.7027/0.7027, allocations: 128.7 MB / 143.7 MB, free: 2.328 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001115/0.001115, allocations: 176 kB / 173.7 MB, free: 6.117 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.397/1.397, allocations: 205.4 MB / 409 MB, free: 10.5 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008587/0.000859, allocations: 102.7 kB / 486.6 MB, free: 13 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003278/0.0003278, allocations: 8.938 kB / 0.5604 GB, free: 97.49 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1575/0.1578, allocations: 76.78 MB / 0.6354 GB, free: 30.47 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.019/1.177, allocations: 409.7 MB / 1.035 GB, free: 216.3 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002645/1.177, allocations: 102.2 kB / 1.036 GB, free: 216.2 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 3.364/4.541, allocations: 1.095 GB / 2.131 GB, free: 87.79 MB / 0.6667 GB Notification: Performance of FrontEnd: time 2.425e-06/4.541, allocations: 2.188 kB / 2.131 GB, free: 87.79 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 0.0002212/4.541, allocations: 59.69 kB / 2.131 GB, free: 87.77 MB / 0.6667 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 320 * Number of variables: 320 Notification: Performance of Generate backend data structure: time 0.005698/4.547, allocations: 2.693 MB / 2.133 GB, free: 86.37 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 4.076e-05/4.547, allocations: 10.31 kB / 2.133 GB, free: 86.37 MB / 0.6667 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002787/4.547, allocations: 198.3 kB / 2.134 GB, free: 86.33 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001396/4.549, allocations: 381.2 kB / 2.134 GB, free: 86.21 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01103/4.56, allocations: 4.906 MB / 2.139 GB, free: 85.7 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.95e-05/4.56, allocations: 104.4 kB / 2.139 GB, free: 85.69 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002322/4.56, allocations: 137 kB / 2.139 GB, free: 85.69 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002641/4.563, allocations: 1.485 MB / 2.14 GB, free: 85.38 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.35e-05/4.563, allocations: 3.219 kB / 2.14 GB, free: 85.38 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001198/4.563, allocations: 58.5 kB / 2.14 GB, free: 85.38 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.548e-05/4.563, allocations: 38.16 kB / 2.141 GB, free: 85.38 MB / 0.6667 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002115/4.565, allocations: 1.074 MB / 2.142 GB, free: 85.36 MB / 0.6667 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.007695/4.573, allocations: 7.536 MB / 2.149 GB, free: 80.95 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001814/4.575, allocations: 1.3 MB / 2.15 GB, free: 80.36 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003059/4.578, allocations: 1.96 MB / 2.152 GB, free: 79.15 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009885/4.579, allocations: 489.9 kB / 2.153 GB, free: 78.96 MB / 0.6667 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006463/4.58, allocations: 94.94 kB / 2.153 GB, free: 78.91 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=66): time 2.054e-06/4.58, allocations: 0 / 2.153 GB, free: 78.91 MB / 0.6667 GB Notification: Performance of matching and sorting (n=66): time 0.00278/4.582, allocations: 1.294 MB / 2.154 GB, free: 78.32 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.963e-05/4.582, allocations: 201.4 kB / 2.154 GB, free: 78.09 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001702/4.584, allocations: 1.34 MB / 2.155 GB, free: 77.57 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 7.36e-05/4.584, allocations: 44.73 kB / 2.155 GB, free: 77.53 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006975/4.585, allocations: 0.9216 MB / 2.156 GB, free: 76.81 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.000158/4.585, allocations: 232.6 kB / 2.157 GB, free: 76.64 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.831e-05/4.585, allocations: 22 kB / 2.157 GB, free: 76.62 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 7.172e-05/4.585, allocations: 347.5 kB / 2.157 GB, free: 76.3 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007448/4.586, allocations: 348.4 kB / 2.157 GB, free: 76.2 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008731/4.587, allocations: 0.7717 MB / 2.158 GB, free: 75.55 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001088/4.588, allocations: 480.9 kB / 2.158 GB, free: 75.36 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.294e-06/4.588, allocations: 3.781 kB / 2.158 GB, free: 75.36 MB / 0.6667 GB Notification: Performance of matching and sorting (n=130) (initialization): time 0.002315/4.59, allocations: 1.273 MB / 2.16 GB, free: 74.86 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007037/4.591, allocations: 4.285 MB / 2.164 GB, free: 70.28 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.45e-05/4.591, allocations: 13.34 kB / 2.164 GB, free: 70.28 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.788e-05/4.591, allocations: 26.61 kB / 2.164 GB, free: 70.28 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009944/4.592, allocations: 263 kB / 2.164 GB, free: 70.25 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.119e-05/4.592, allocations: 26.52 kB / 2.164 GB, free: 70.25 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001429/4.594, allocations: 132.5 kB / 2.164 GB, free: 70.22 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.676e-05/4.594, allocations: 55.47 kB / 2.164 GB, free: 70.21 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 9.608e-06/4.594, allocations: 4 kB / 2.164 GB, free: 70.21 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001709/4.595, allocations: 1.06 MB / 2.165 GB, free: 69.8 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.109e-05/4.595, allocations: 11.03 kB / 2.165 GB, free: 69.8 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.563e-05/4.595, allocations: 26.31 kB / 2.165 GB, free: 69.8 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008593/4.596, allocations: 248.2 kB / 2.166 GB, free: 69.78 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.623e-05/4.596, allocations: 25.72 kB / 2.166 GB, free: 69.77 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001267/4.598, allocations: 119.7 kB / 2.166 GB, free: 69.75 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.088e-05/4.598, allocations: 51.97 kB / 2.166 GB, free: 69.75 MB / 0.6667 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,conPI.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (126): * Single equations (assignments): 122 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 1 * 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 0.0009162/4.599, allocations: 0.4895 MB / 2.166 GB, free: 69.38 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001928/4.599, allocations: 173 kB / 2.167 GB, free: 69.29 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002074/4.601, allocations: 1.138 MB / 2.168 GB, free: 68.8 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.289e-05/4.601, allocations: 11.05 kB / 2.168 GB, free: 68.8 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.623e-06/4.601, allocations: 0 / 2.168 GB, free: 68.8 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00139/4.602, allocations: 0.8491 MB / 2.169 GB, free: 68.39 MB / 0.6667 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 postOpt removeSimpleEquations (simulation): time 0.003684/4.606, allocations: 2.363 MB / 2.171 GB, free: 67.28 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.93e-06/4.606, allocations: 3.938 kB / 2.171 GB, free: 67.27 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000726/4.607, allocations: 148.4 kB / 2.171 GB, free: 67.27 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001405/4.607, allocations: 26.05 kB / 2.171 GB, free: 67.25 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.307e-05/4.607, allocations: 19.05 kB / 2.171 GB, free: 67.25 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006952/4.608, allocations: 1.312 MB / 2.172 GB, free: 65.93 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/4.608, allocations: 0 / 2.172 GB, free: 65.93 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002381/4.61, allocations: 1.547 MB / 2.174 GB, free: 65.18 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006688/4.611, allocations: 339.2 kB / 2.174 GB, free: 64.94 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001787/4.611, allocations: 15.94 kB / 2.174 GB, free: 64.93 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009408/4.612, allocations: 112.8 kB / 2.174 GB, free: 64.91 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001132/4.612, allocations: 56.75 kB / 2.174 GB, free: 64.9 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.052e-05/4.612, allocations: 26 kB / 2.174 GB, free: 64.9 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.001328/4.613, allocations: 1.023 MB / 2.175 GB, free: 64.5 MB / 0.6667 GB Notification: Performance of sort global known variables: time 1.5e-07/4.613, allocations: 3.156 kB / 2.175 GB, free: 64.5 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.003115/4.617, allocations: 1.121 MB / 2.176 GB, free: 64.2 MB / 0.6667 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (vol.dynBal.U,mov.filter.x[1],mov.filter.x[2],conPI.I.y,THeaOut.T,hea.vol.dynBal.U) * Number of discrete variables: 3 ($whenCondition1,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004399/4.621, allocations: 3.186 MB / 2.18 GB, free: 62.6 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.002647/4.624, allocations: 1.599 MB / 2.181 GB, free: 61.46 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/4.624, allocations: 0 / 2.181 GB, free: 61.46 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.000886/4.625, allocations: 0.523 MB / 2.182 GB, free: 60.98 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003181/4.628, allocations: 0.7754 MB / 2.182 GB, free: 60.42 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009804/4.638, allocations: 12.25 MB / 2.194 GB, free: 48.27 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001042/4.639, allocations: 1.446 MB / 2.196 GB, free: 47.09 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.002176/4.641, allocations: 421.6 kB / 2.196 GB, free: 46.81 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009719/4.642, allocations: 0.7695 MB / 2.197 GB, free: 46.08 MB / 0.6667 GB Notification: Performance of SimCode: time 1.062e-06/4.642, allocations: 0 / 2.197 GB, free: 46.08 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08677/4.729, allocations: 54.92 MB / 2.251 GB, free: 8.043 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002754/4.729, allocations: 259 kB / 2.251 GB, free: 7.707 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.761/8.49, allocations: 0 / 2.251 GB, free: 7.707 MB / 0.6823 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Fluid_HeatExchangers_Examples_WaterHeater_u_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Fluid_HeatExchangers_Examples_WaterHeater_u.fmu > BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)