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.2199/0.2206, allocations: 82.21 MB / 0.5935 GB, free: 15.46 MB / 462.1 MB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.6451/0.8658, allocations: 60.99 MB / 0.653 GB, free: 12.27 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.04803/0.9139, allocations: 17.44 MB / 0.67 GB, free: 10.57 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006189/0.9201, allocations: 78.94 kB / 0.6701 GB, free: 10.54 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005576/0.9258, allocations: 0.8077 MB / 0.6709 GB, free: 10.19 MB / 494.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.01569/0.9415, allocations: 2.055 MB / 0.6729 GB, free: 9.375 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01845/0.96, allocations: 2.738 MB / 0.6756 GB, free: 8.418 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.01584/0.9758, allocations: 5.933 MB / 0.6814 GB, free: 6.125 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00528/0.9811, allocations: 1.302 MB / 0.6827 GB, free: 5.668 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007208/0.9884, allocations: 1.632 MB / 0.6842 GB, free: 5.086 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006247/0.9947, allocations: 1.419 MB / 0.6856 GB, free: 4.621 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001259/0.996, allocations: 78.72 kB / 0.6857 GB, free: 4.621 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01098/1.007, allocations: 1.551 MB / 0.6872 GB, free: 3.941 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001745/1.009, allocations: 422.6 kB / 0.6876 GB, free: 3.652 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002593/1.011, allocations: 446.6 kB / 0.6881 GB, free: 19.4 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.007987/1.019, allocations: 2.808 MB / 0.6908 GB, free: 17.66 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 7.323e-06/1.019, allocations: 3.344 kB / 0.6908 GB, free: 17.66 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.886e-06/1.02, allocations: 0 / 0.6908 GB, free: 17.66 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 0.0001592/1.02, allocations: 0 / 0.6908 GB, free: 17.66 MB / 0.4981 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.009506/1.029, allocations: 2.429 MB / 0.6932 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.77e-05/1.029, allocations: 8.219 kB / 0.6932 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002991/1.032, allocations: 386.3 kB / 0.6935 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007809/1.04, allocations: 1.711 MB / 0.6952 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006563/1.041, allocations: 164.2 kB / 0.6954 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008153/1.042, allocations: 132.5 kB / 0.6955 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005891/1.048, allocations: 1.56 MB / 0.697 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.808e-05/1.048, allocations: 6.469 kB / 0.697 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001787/1.048, allocations: 48.41 kB / 0.6971 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.661e-05/1.048, allocations: 39.83 kB / 0.6971 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003923/1.052, allocations: 1.219 MB / 0.6983 GB, free: 12.7 MB / 0.4981 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.01618/1.068, allocations: 7.823 MB / 0.7059 GB, free: 5.695 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003461/1.072, allocations: 1.004 MB / 0.7069 GB, free: 5.199 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001469/1.073, allocations: 0.4988 MB / 0.7074 GB, free: 4.965 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006166/1.079, allocations: 2.146 MB / 0.7095 GB, free: 3.051 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001961/1.081, allocations: 0.5916 MB / 0.7101 GB, free: 2.703 MB / 0.4981 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00129/1.083, allocations: 91.22 kB / 0.7102 GB, free: 2.641 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=73): time 5.992e-06/1.083, allocations: 0 / 0.7102 GB, free: 2.641 MB / 0.4981 GB Notification: Performance of matching and sorting (n=79): time 0.01222/1.095, allocations: 3.1 MB / 0.7132 GB, free: 180 kB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001784/1.095, allocations: 218.3 kB / 0.7134 GB, free: 15.91 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004343/1.099, allocations: 1.509 MB / 0.7149 GB, free: 14.41 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0002652/1.1, allocations: 45.7 kB / 0.7149 GB, free: 14.36 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.001474/1.101, allocations: 0.8837 MB / 0.7158 GB, free: 13.46 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005476/1.102, allocations: 275.2 kB / 0.716 GB, free: 13.2 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001479/1.102, allocations: 24 kB / 0.7161 GB, free: 13.18 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0002284/1.102, allocations: 345.9 kB / 0.7164 GB, free: 12.83 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001791/1.104, allocations: 0.5101 MB / 0.7169 GB, free: 12.32 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002289/1.106, allocations: 0.8539 MB / 0.7177 GB, free: 11.33 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002104/1.109, allocations: 0.67 MB / 0.7184 GB, free: 10.65 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.426e-06/1.109, allocations: 0 / 0.7184 GB, free: 10.65 MB / 0.5137 GB Notification: Performance of matching and sorting (n=144) (initialization): time 0.00576/1.114, allocations: 1.639 MB / 0.72 GB, free: 9 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005149/1.115, allocations: 381.7 kB / 0.7204 GB, free: 8.52 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.517e-05/1.115, allocations: 12 kB / 0.7204 GB, free: 8.508 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003309/1.115, allocations: 48.83 kB / 0.7204 GB, free: 8.457 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001738/1.117, allocations: 275.6 kB / 0.7207 GB, free: 8.188 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002177/1.119, allocations: 1.409 MB / 0.722 GB, free: 6.641 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002918/1.122, allocations: 175.8 kB / 0.7222 GB, free: 6.469 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000304/1.122, allocations: 63.98 kB / 0.7223 GB, free: 6.406 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.46e-05/1.123, allocations: 4 kB / 0.7223 GB, free: 6.402 MB / 0.5137 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004727/1.127, allocations: 1.53 MB / 0.7238 GB, free: 4.859 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.967e-05/1.127, allocations: 8.656 kB / 0.7238 GB, free: 4.852 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002247/1.128, allocations: 56.77 kB / 0.7238 GB, free: 4.793 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001564/1.129, allocations: 259.7 kB / 0.7241 GB, free: 4.539 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001907/1.131, allocations: 1.409 MB / 0.7255 GB, free: 2.996 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002789/1.134, allocations: 163.8 kB / 0.7256 GB, free: 2.836 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002602/1.134, allocations: 59.97 kB / 0.7257 GB, free: 2.777 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (125): * Single equations (assignments): 120 * 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.001542/1.136, allocations: 0.4891 MB / 0.7262 GB, free: 2.277 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006604/1.136, allocations: 173.8 kB / 0.7263 GB, free: 2.105 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004941/1.141, allocations: 1.393 MB / 0.7277 GB, free: 0.7109 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-05/1.141, allocations: 12 kB / 0.7277 GB, free: 0.6992 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.207e-05/1.141, allocations: 3.953 kB / 0.7277 GB, free: 0.6953 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003386/1.145, allocations: 1.067 MB / 0.7287 GB, free: 15.61 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01001/1.155, allocations: 3.079 MB / 0.7317 GB, free: 12.45 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.11e-05/1.155, allocations: 0 / 0.7317 GB, free: 12.45 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001374/1.156, allocations: 200.1 kB / 0.7319 GB, free: 12.25 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003728/1.157, allocations: 69.67 kB / 0.732 GB, free: 12.18 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001321/1.157, allocations: 35.91 kB / 0.732 GB, free: 12.14 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002212/1.159, allocations: 1.977 MB / 0.734 GB, free: 10.01 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/1.159, allocations: 0 / 0.734 GB, free: 10.01 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006039/1.165, allocations: 2.051 MB / 0.736 GB, free: 7.895 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001564/1.167, allocations: 382.6 kB / 0.7363 GB, free: 7.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007626/1.167, allocations: 31.92 kB / 0.7364 GB, free: 7.469 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002136/1.17, allocations: 147.7 kB / 0.7365 GB, free: 7.324 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002211/1.17, allocations: 76.5 kB / 0.7366 GB, free: 7.25 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001307/1.17, allocations: 43.92 kB / 0.7366 GB, free: 7.207 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.002967/1.173, allocations: 1.078 MB / 0.7377 GB, free: 6.105 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.11e-07/1.173, allocations: 0 / 0.7377 GB, free: 6.105 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006018/1.179, allocations: 0.9217 MB / 0.7386 GB, free: 5.184 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.002361/1.181, allocations: 0.5555 MB / 0.7391 GB, free: 4.672 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.006846/1.188, allocations: 2.963 MB / 0.742 GB, free: 1.625 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.142e-05/1.188, allocations: 64 / 0.742 GB, free: 1.625 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001532/1.19, allocations: 0.7139 MB / 0.7427 GB, free: 0.8984 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005748/1.196, allocations: 0.9174 MB / 0.7436 GB, free: 15.99 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008376/1.204, allocations: 4.09 MB / 0.7476 GB, free: 11.83 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00173/1.206, allocations: 1.422 MB / 0.749 GB, free: 10.38 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.002571/1.208, allocations: 415.6 kB / 0.7494 GB, free: 9.98 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005425/1.209, allocations: 147.3 kB / 0.7495 GB, free: 9.836 MB / 0.545 GB Notification: Performance of SimCode: time 1.353e-06/1.209, allocations: 0 / 0.7495 GB, free: 9.836 MB / 0.545 GB Notification: Performance of Templates: time 0.07382/1.283, allocations: 39.09 MB / 0.7877 GB, free: 3.23 MB / 0.5762 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: