Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_3.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo", uses=false) 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 3.0.0/package.mo", uses=false) Using package Buildings with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 3.0.0/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) Using package Modelica_StateGraph2 with version 2.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo) Running command: translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u") translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u") [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:257:38-257:110:writable] Warning: The file was not encoded in UTF-8: "

An important practical aspect of state machines is the abilit...". Defaulting to 7-bit ASCII with unknown characters replaced by '?'. To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY"). To change it in a package: add a file package.encoding at the top-level. Note: The Modelica Language Specification only allows files encoded in UTF-8. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:761:36-761:108:writable] Warning: The file was not encoded in UTF-8: "

The Modelica_StateGraph2 library is described in detail in (O...". Defaulting to 7-bit ASCII with unknown characters replaced by '?'. To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY"). To change it in a package: add a file package.encoding at the top-level. Note: The Modelica Language Specification only allows files encoded in UTF-8. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:1435:36-1435:108:writable] Warning: The file was not encoded in UTF-8: "

Main Authors:
SCode: time 0.2069/0.2076, allocations: 82.22 MB / 0.5934 GB, free: 6.02 MB / 446.1 MB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.05854/0.2662, allocations: 55.54 MB / 0.6476 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.02672/0.293, allocations: 16.41 MB / 0.6636 GB, free: 13.91 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004245/0.2973, allocations: 71.56 kB / 0.6637 GB, free: 13.84 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.004346/0.3017, allocations: 0.9835 MB / 0.6646 GB, free: 12.85 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.009092/0.3108, allocations: 2.488 MB / 0.6671 GB, free: 10.36 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.009732/0.3205, allocations: 2.873 MB / 0.6699 GB, free: 7.512 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.007947/0.3285, allocations: 3.088 MB / 0.6729 GB, free: 4.418 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002819/0.3314, allocations: 1.309 MB / 0.6742 GB, free: 3.082 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003821/0.3352, allocations: 1.46 MB / 0.6756 GB, free: 1.617 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002253/0.3375, allocations: 1.011 MB / 0.6766 GB, free: 0.6016 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0003264/0.3378, allocations: 76 kB / 0.6767 GB, free: 0.5273 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004099/0.3419, allocations: 1.389 MB / 0.678 GB, free: 15.14 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0006008/0.3426, allocations: 398.4 kB / 0.6784 GB, free: 14.75 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0008051/0.3434, allocations: 440.5 kB / 0.6788 GB, free: 14.31 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.004349/0.3477, allocations: 2.739 MB / 0.6815 GB, free: 11.56 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.3478, allocations: 0 / 0.6815 GB, free: 11.56 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.044e-06/0.3478, allocations: 0 / 0.6815 GB, free: 11.56 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.284e-05/0.3478, allocations: 0 / 0.6815 GB, free: 11.56 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 311 * Number of variables: 311 Notification: Performance of Generate backend data structure: time 0.00479/0.3526, allocations: 2.41 MB / 0.6838 GB, free: 9.074 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.426e-05/0.3527, allocations: 8.031 kB / 0.6839 GB, free: 9.066 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001488/0.3542, allocations: 389 kB / 0.6842 GB, free: 8.684 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003397/0.3576, allocations: 1.645 MB / 0.6858 GB, free: 6.988 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003792/0.358, allocations: 170.5 kB / 0.686 GB, free: 6.82 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002464/0.3582, allocations: 139.8 kB / 0.6861 GB, free: 6.684 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003134/0.3614, allocations: 1.525 MB / 0.6876 GB, free: 5.047 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.435e-05/0.3615, allocations: 11.94 kB / 0.6876 GB, free: 5.035 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001274/0.3616, allocations: 52 kB / 0.6877 GB, free: 4.984 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.363e-05/0.3616, allocations: 36 kB / 0.6877 GB, free: 4.949 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002787/0.3644, allocations: 1.211 MB / 0.6889 GB, free: 3.73 MB / 0.5294 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.3549/0.7194, allocations: 7.864 MB / 0.6966 GB, free: 92.58 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002322/0.7217, allocations: 1.006 MB / 0.6976 GB, free: 92.54 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003269/0.725, allocations: 2.161 MB / 0.6997 GB, free: 91.52 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001241/0.7263, allocations: 0.5701 MB / 0.7002 GB, free: 91.44 MB / 0.5294 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005766/0.7268, allocations: 96.59 kB / 0.7003 GB, free: 91.44 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=73): time 3.406e-06/0.7269, allocations: 2.344 kB / 0.7003 GB, free: 91.44 MB / 0.5294 GB Notification: Performance of matching and sorting (n=79): time 0.007731/0.7346, allocations: 3.135 MB / 0.7034 GB, free: 90.85 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.994e-05/0.7347, allocations: 214.2 kB / 0.7036 GB, free: 90.6 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002315/0.737, allocations: 1.555 MB / 0.7051 GB, free: 90.43 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0001524/0.7372, allocations: 48.61 kB / 0.7051 GB, free: 90.39 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.000715/0.7379, allocations: 0.8726 MB / 0.706 GB, free: 90.1 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002379/0.7382, allocations: 275.2 kB / 0.7063 GB, free: 89.93 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.952e-05/0.7382, allocations: 20.84 kB / 0.7063 GB, free: 89.93 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 9.957e-05/0.7383, allocations: 358.5 kB / 0.7066 GB, free: 89.62 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001134/0.7395, allocations: 0.5216 MB / 0.7071 GB, free: 89.53 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001449/0.7409, allocations: 0.8773 MB / 0.708 GB, free: 88.95 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001364/0.7423, allocations: 0.6807 MB / 0.7087 GB, free: 88.67 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.761e-06/0.7423, allocations: 2.906 kB / 0.7087 GB, free: 88.67 MB / 0.5294 GB Notification: Performance of matching and sorting (n=143) (initialization): time 0.003785/0.7461, allocations: 1.663 MB / 0.7103 GB, free: 88.02 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007844/0.7469, allocations: 2.976 MB / 0.7132 GB, free: 84.86 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.963e-05/0.747, allocations: 8.375 kB / 0.7132 GB, free: 84.86 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002869/0.7473, allocations: 52.88 kB / 0.7132 GB, free: 84.84 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001216/0.7485, allocations: 284.3 kB / 0.7135 GB, free: 84.82 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001047/0.7495, allocations: 1.419 MB / 0.7149 GB, free: 83.44 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002211/0.7518, allocations: 183.2 kB / 0.7151 GB, free: 83.41 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001827/0.752, allocations: 63.16 kB / 0.7151 GB, free: 83.4 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.285e-05/0.752, allocations: 3.219 kB / 0.7151 GB, free: 83.4 MB / 0.5294 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003631/0.7556, allocations: 1.558 MB / 0.7167 GB, free: 82.79 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.68e-05/0.7557, allocations: 9.875 kB / 0.7167 GB, free: 82.79 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001919/0.7559, allocations: 55.58 kB / 0.7167 GB, free: 82.77 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001119/0.757, allocations: 261.8 kB / 0.717 GB, free: 82.75 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009522/0.758, allocations: 1.43 MB / 0.7184 GB, free: 81.36 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001927/0.7599, allocations: 163 kB / 0.7185 GB, free: 81.33 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001473/0.7601, allocations: 61.64 kB / 0.7186 GB, free: 81.32 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,conPI.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (124): * Single equations (assignments): 119 * Array equations: 1 * Algorithm blocks: 2 * Record equations: 1 * When equations: 0 * 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%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001395/0.7615, allocations: 0.489 MB / 0.7191 GB, free: 80.96 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004072/0.7619, allocations: 179.6 kB / 0.7192 GB, free: 80.87 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003397/0.7653, allocations: 1.383 MB / 0.7206 GB, free: 80.34 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.823e-05/0.7653, allocations: 9.125 kB / 0.7206 GB, free: 80.34 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.7653, allocations: 5.016 kB / 0.7206 GB, free: 80.34 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002277/0.7676, allocations: 1.056 MB / 0.7216 GB, free: 79.93 MB / 0.5294 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.006686/0.7743, allocations: 3.136 MB / 0.7247 GB, free: 78.18 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.849e-06/0.7743, allocations: 3.062 kB / 0.7247 GB, free: 78.18 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008938/0.7752, allocations: 199.9 kB / 0.7249 GB, free: 78.13 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002423/0.7755, allocations: 78.52 kB / 0.725 GB, free: 78.08 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.865e-05/0.7756, allocations: 31.83 kB / 0.725 GB, free: 78.06 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001091/0.7767, allocations: 1.977 MB / 0.7269 GB, free: 76.09 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/0.7767, allocations: 3.469 kB / 0.7269 GB, free: 76.09 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004163/0.7809, allocations: 2.241 MB / 0.7291 GB, free: 74.62 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009659/0.7818, allocations: 397.2 kB / 0.7295 GB, free: 74.28 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004355/0.7823, allocations: 23.88 kB / 0.7295 GB, free: 74.27 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0014/0.7837, allocations: 150.8 kB / 0.7297 GB, free: 74.2 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00014/0.7838, allocations: 79.88 kB / 0.7297 GB, free: 74.16 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.331e-05/0.7839, allocations: 35.39 kB / 0.7298 GB, free: 74.15 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.002003/0.7859, allocations: 1.117 MB / 0.7309 GB, free: 73.51 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.81e-07/0.7859, allocations: 2.406 kB / 0.7309 GB, free: 73.51 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.003887/0.7898, allocations: 0.945 MB / 0.7318 GB, free: 73.41 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 6 (vol.dynBal.medium.T,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 (89): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.001507/0.7913, allocations: 0.6075 MB / 0.7324 GB, free: 73.18 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.004761/0.7961, allocations: 2.953 MB / 0.7353 GB, free: 71.4 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.014e-06/0.7962, allocations: 0 / 0.7353 GB, free: 71.4 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001302/0.7975, allocations: 0.701 MB / 0.7359 GB, free: 71.01 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00457/0.802, allocations: 0.9131 MB / 0.7368 GB, free: 70.58 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006841/0.8089, allocations: 4.077 MB / 0.7408 GB, free: 66.88 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001246/0.8102, allocations: 1.457 MB / 0.7422 GB, free: 65.39 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.002227/0.8124, allocations: 422.4 kB / 0.7426 GB, free: 65 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005474/0.813, allocations: 155.4 kB / 0.7428 GB, free: 64.85 MB / 0.5294 GB Notification: Performance of SimCode: time 8.31e-07/0.813, allocations: 0 / 0.7428 GB, free: 64.85 MB / 0.5294 GB Notification: Performance of Templates: time 0.05775/0.8708, allocations: 39.9 MB / 0.7818 GB, free: 25.36 MB / 0.5294 GB make -j1 -f Buildings_3.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.makefile Environment - environmentSimulation: (rm -f Buildings_3.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Buildings_3.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Buildings_3.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & ./Buildings_3.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1) Environment - environmentSimulation: