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.2429/0.2439, allocations: 82.22 MB / 0.5941 GB, free: 5.586 MB / 446.1 MB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.0734/0.3174, allocations: 64.57 MB / 0.6572 GB, free: 4.797 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.03224/0.3497, allocations: 18.85 MB / 0.6756 GB, free: 1.898 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004822/0.3545, allocations: 83.5 kB / 0.6757 GB, free: 1.816 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.004599/0.3592, allocations: 1.014 MB / 0.6766 GB, free: 0.7969 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.009783/0.369, allocations: 2.376 MB / 0.679 GB, free: 14.41 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.01213/0.3811, allocations: 3.131 MB / 0.682 GB, free: 11.31 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.01263/0.3938, allocations: 6.922 MB / 0.6888 GB, free: 4.371 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003475/0.3973, allocations: 1.445 MB / 0.6902 GB, free: 2.895 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004985/0.4023, allocations: 1.668 MB / 0.6918 GB, free: 1.219 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.4674/0.8698, allocations: 1.477 MB / 0.6933 GB, free: 19.13 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0007697/0.8706, allocations: 75.19 kB / 0.6933 GB, free: 19.13 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005849/0.8764, allocations: 1.992 MB / 0.6953 GB, free: 19.13 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0009212/0.8774, allocations: 435.8 kB / 0.6957 GB, free: 19.13 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.001857/0.8793, allocations: 1.02 MB / 0.6967 GB, free: 19.1 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.008169/0.8875, allocations: 3.702 MB / 0.7003 GB, free: 19.01 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 7.594e-06/0.8875, allocations: 0.6094 kB / 0.7003 GB, free: 19.01 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.695e-06/0.8875, allocations: 0 / 0.7003 GB, free: 19.01 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 7.525e-05/0.8876, allocations: 0 / 0.7003 GB, free: 19.01 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.005487/0.8931, allocations: 2.394 MB / 0.7026 GB, free: 17.69 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 5.185e-05/0.8932, allocations: 8.562 kB / 0.7027 GB, free: 17.69 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001835/0.895, allocations: 397.7 kB / 0.703 GB, free: 17.57 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003668/0.8987, allocations: 1.774 MB / 0.7048 GB, free: 17.09 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004039/0.8991, allocations: 166.9 kB / 0.7049 GB, free: 17.09 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002065/0.8993, allocations: 134.5 kB / 0.7051 GB, free: 17.09 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002999/0.9023, allocations: 1.524 MB / 0.7065 GB, free: 16.79 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.534e-05/0.9024, allocations: 5.875 kB / 0.7065 GB, free: 16.79 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001232/0.9025, allocations: 50.22 kB / 0.7066 GB, free: 16.79 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.805e-05/0.9026, allocations: 34.84 kB / 0.7066 GB, free: 16.79 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002692/0.9053, allocations: 1.204 MB / 0.7078 GB, free: 16.76 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.009037/0.9143, allocations: 7.762 MB / 0.7154 GB, free: 12.18 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002513/0.9168, allocations: 0.9748 MB / 0.7163 GB, free: 12.13 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001127/0.918, allocations: 496.4 kB / 0.7168 GB, free: 12.11 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003392/0.9214, allocations: 2.085 MB / 0.7188 GB, free: 11.04 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001416/0.9228, allocations: 0.5699 MB / 0.7194 GB, free: 10.96 MB / 0.5294 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006217/0.9234, allocations: 89.69 kB / 0.7195 GB, free: 10.92 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=73): time 4.188e-06/0.9235, allocations: 0.8125 kB / 0.7195 GB, free: 10.92 MB / 0.5294 GB Notification: Performance of matching and sorting (n=79): time 0.008544/0.932, allocations: 3.026 MB / 0.7224 GB, free: 10.24 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.088e-05/0.9321, allocations: 196.4 kB / 0.7226 GB, free: 10.02 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002244/0.9344, allocations: 1.475 MB / 0.7241 GB, free: 9.844 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0001744/0.9346, allocations: 43.95 kB / 0.7241 GB, free: 9.812 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007393/0.9353, allocations: 0.8872 MB / 0.725 GB, free: 9.5 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002593/0.9356, allocations: 285.3 kB / 0.7253 GB, free: 9.324 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001488/0.9357, allocations: 102.7 kB / 0.7253 GB, free: 9.309 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 8.551e-05/0.9358, allocations: 363.2 kB / 0.7257 GB, free: 8.996 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001079/0.9369, allocations: 0.5052 MB / 0.7262 GB, free: 8.992 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001297/0.9382, allocations: 0.8679 MB / 0.727 GB, free: 8.59 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002284/0.9405, allocations: 1.307 MB / 0.7283 GB, free: 8.227 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.863e-06/0.9405, allocations: 2.125 kB / 0.7283 GB, free: 8.227 MB / 0.5294 GB Notification: Performance of matching and sorting (n=145) (initialization): time 0.0036/0.9441, allocations: 1.65 MB / 0.7299 GB, free: 8.012 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002016/0.9444, allocations: 391.3 kB / 0.7303 GB, free: 7.59 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.209e-05/0.9444, allocations: 6.969 kB / 0.7303 GB, free: 7.59 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002001/0.9446, allocations: 48.34 kB / 0.7304 GB, free: 7.578 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001036/0.9456, allocations: 271.8 kB / 0.7306 GB, free: 7.574 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009937/0.9466, allocations: 1.423 MB / 0.732 GB, free: 6.32 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001861/0.9485, allocations: 161.3 kB / 0.7322 GB, free: 6.301 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000129/0.9487, allocations: 68.62 kB / 0.7322 GB, free: 6.301 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.266e-06/0.9487, allocations: 3.562 kB / 0.7322 GB, free: 6.301 MB / 0.5294 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002657/0.9513, allocations: 1.536 MB / 0.7337 GB, free: 6.207 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.731e-05/0.9514, allocations: 11.53 kB / 0.7337 GB, free: 6.203 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001225/0.9515, allocations: 48.47 kB / 0.7338 GB, free: 6.195 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009217/0.9524, allocations: 264.5 kB / 0.734 GB, free: 6.191 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008091/0.9532, allocations: 1.413 MB / 0.7354 GB, free: 4.941 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001733/0.955, allocations: 151.5 kB / 0.7356 GB, free: 4.926 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001091/0.9551, allocations: 66.2 kB / 0.7356 GB, free: 4.926 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 6 (TSet.count,$PRE.TSet.count,TSet.T_start,$PRE.TSet.T_start,$whenCondition1,conPI.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (126): * Single equations (assignments): 121 * Array equations: 1 * Algorithm blocks: 2 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001069/0.9562, allocations: 0.4893 MB / 0.7361 GB, free: 4.727 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002572/0.9565, allocations: 175.9 kB / 0.7363 GB, free: 4.637 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002845/0.9593, allocations: 1.358 MB / 0.7376 GB, free: 4.523 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-05/0.9593, allocations: 16.39 kB / 0.7376 GB, free: 4.52 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.9593, allocations: 0 / 0.7376 GB, free: 4.52 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002076/0.9614, allocations: 1.04 MB / 0.7386 GB, free: 4.422 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005759/0.9672, allocations: 3.008 MB / 0.7416 GB, free: 3.922 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.08e-05/0.9672, allocations: 2.625 kB / 0.7416 GB, free: 3.922 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000858/0.9681, allocations: 194.3 kB / 0.7417 GB, free: 3.918 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002286/0.9683, allocations: 83.48 kB / 0.7418 GB, free: 3.898 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.395e-05/0.9684, allocations: 34.06 kB / 0.7419 GB, free: 3.898 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001652/0.9701, allocations: 1.963 MB / 0.7438 GB, free: 18.13 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.082e-06/0.9701, allocations: 10.45 kB / 0.7438 GB, free: 18.12 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003888/0.974, allocations: 2.014 MB / 0.7458 GB, free: 17.73 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001146/0.9752, allocations: 378.4 kB / 0.7461 GB, free: 17.54 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005108/0.9757, allocations: 24.67 kB / 0.7461 GB, free: 17.54 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001485/0.9772, allocations: 140.4 kB / 0.7463 GB, free: 17.52 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000171/0.9774, allocations: 71.44 kB / 0.7463 GB, free: 17.52 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.395e-05/0.9774, allocations: 37.89 kB / 0.7464 GB, free: 17.52 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.002114/0.9796, allocations: 1.061 MB / 0.7474 GB, free: 17.37 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.21e-07/0.9796, allocations: 0 / 0.7474 GB, free: 17.37 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004119/0.9837, allocations: 0.9057 MB / 0.7483 GB, free: 17.32 MB / 0.545 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001939/0.9857, allocations: 0.5968 MB / 0.7489 GB, free: 17.11 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.005489/0.9912, allocations: 2.957 MB / 0.7518 GB, free: 16.26 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.992e-06/0.9912, allocations: 0 / 0.7518 GB, free: 16.26 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001385/0.9926, allocations: 0.693 MB / 0.7524 GB, free: 16.05 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005584/0.9982, allocations: 0.8987 MB / 0.7533 GB, free: 15.79 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007038/1.005, allocations: 4.2 MB / 0.7574 GB, free: 13.3 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001288/1.007, allocations: 1.42 MB / 0.7588 GB, free: 12.29 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.002093/1.009, allocations: 413.8 kB / 0.7592 GB, free: 12.1 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004552/1.009, allocations: 152.4 kB / 0.7594 GB, free: 12.08 MB / 0.545 GB Notification: Performance of SimCode: time 8.02e-07/1.009, allocations: 0 / 0.7594 GB, free: 12.08 MB / 0.545 GB Notification: Performance of Templates: time 0.07414/1.083, allocations: 39.11 MB / 0.7975 GB, free: 8.633 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: