Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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 Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.347/1.347, allocations: 252 MB / 267 MB, free: 10.99 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001082/0.001082, allocations: 179.5 kB / 326.6 MB, free: 2.238 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.652/1.652, allocations: 205.4 MB / 0.5777 GB, free: 20.24 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000781/0.000781, allocations: 87.81 kB / 0.6822 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003369/0.000337, allocations: 11.03 kB / 0.7965 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2658/0.2662, allocations: 106.3 MB / 0.9003 GB, free: 63.83 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.09357/0.3598, allocations: 61.82 MB / 0.9607 GB, free: 1.832 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.05074/0.4106, allocations: 18.13 MB / 0.9784 GB, free: 15.67 MB / 0.6355 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005999/0.4167, allocations: 79.44 kB / 0.9785 GB, free: 15.59 MB / 0.6355 GB Notification: Performance of NFTyping.typeComponents: time 0.00565/0.4224, allocations: 0.8231 MB / 0.9793 GB, free: 14.77 MB / 0.6355 GB Notification: Performance of NFTyping.typeBindings: time 0.01189/0.4343, allocations: 2.109 MB / 0.9813 GB, free: 12.65 MB / 0.6355 GB Notification: Performance of NFTyping.typeClassSections: time 0.01692/0.4513, allocations: 2.75 MB / 0.984 GB, free: 9.922 MB / 0.6355 GB Notification: Performance of NFFlatten.flatten: time 0.01418/0.4655, allocations: 5.971 MB / 0.9898 GB, free: 3.93 MB / 0.6355 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005043/0.4706, allocations: 1.352 MB / 0.9912 GB, free: 2.551 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006684/0.4773, allocations: 1.661 MB / 0.9928 GB, free: 0.8828 MB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004335/0.4817, allocations: 1.377 MB / 0.9941 GB, free: 15.5 MB / 0.6511 GB Notification: Performance of NFPackage.collectConstants: time 0.0008353/0.4826, allocations: 76 kB / 0.9942 GB, free: 15.42 MB / 0.6511 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007609/0.4902, allocations: 1.563 MB / 0.9957 GB, free: 13.86 MB / 0.6511 GB Notification: Performance of NFScalarize.scalarize: time 0.001749/0.4921, allocations: 430.1 kB / 0.9961 GB, free: 13.43 MB / 0.6511 GB Notification: Performance of NFVerifyModel.verify: time 0.001838/0.4939, allocations: 440.6 kB / 0.9966 GB, free: 13 MB / 0.6511 GB Notification: Performance of NFConvertDAE.convert: time 0.007937/0.5019, allocations: 2.72 MB / 0.9992 GB, free: 10.27 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 9.398e-06/0.502, allocations: 0 / 0.9992 GB, free: 10.27 MB / 0.6511 GB Notification: Performance of FrontEnd: time 3.757e-06/0.502, allocations: 0 / 0.9992 GB, free: 10.27 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 0.0001162/0.5021, allocations: 0 / 0.9992 GB, free: 10.27 MB / 0.6511 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.008934/0.5111, allocations: 2.357 MB / 1.002 GB, free: 7.844 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 6.51e-05/0.5112, allocations: 12.03 kB / 1.002 GB, free: 7.832 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005912/0.5118, allocations: 181.8 kB / 1.002 GB, free: 7.645 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002748/0.5145, allocations: 389 kB / 1.002 GB, free: 7.262 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007018/0.5216, allocations: 1.719 MB / 1.004 GB, free: 5.492 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007939/0.5224, allocations: 170.4 kB / 1.004 GB, free: 5.324 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006161/0.5231, allocations: 135.9 kB / 1.004 GB, free: 5.191 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005832/0.5289, allocations: 1.469 MB / 1.005 GB, free: 3.629 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.638e-05/0.529, allocations: 11.94 kB / 1.005 GB, free: 3.617 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000284/0.5293, allocations: 48 kB / 1.006 GB, free: 3.57 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.965e-05/0.5294, allocations: 36 kB / 1.006 GB, free: 3.535 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004998/0.5345, allocations: 1.133 MB / 1.007 GB, free: 2.395 MB / 0.6511 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.01818/0.5527, allocations: 7.377 MB / 1.014 GB, free: 10.44 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004344/0.5571, allocations: 1.358 MB / 1.015 GB, free: 8.969 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001894/0.559, allocations: 466.6 kB / 1.016 GB, free: 8.508 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008091/0.5671, allocations: 2.585 MB / 1.018 GB, free: 5.695 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001997/0.5692, allocations: 0.4946 MB / 1.019 GB, free: 5.18 MB / 0.6667 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001146/0.5704, allocations: 87.34 kB / 1.019 GB, free: 5.094 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=63): time 7.684e-06/0.5704, allocations: 0 / 1.019 GB, free: 5.094 MB / 0.6667 GB Notification: Performance of matching and sorting (n=63): time 0.006007/0.5764, allocations: 1.284 MB / 1.02 GB, free: 3.781 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001639/0.5766, allocations: 204.4 kB / 1.02 GB, free: 3.539 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004677/0.5813, allocations: 1.506 MB / 1.022 GB, free: 2.035 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 0.0002054/0.5816, allocations: 41.7 kB / 1.022 GB, free: 1.988 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.001397/0.583, allocations: 0.8958 MB / 1.023 GB, free: 1.082 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004164/0.5834, allocations: 220.8 kB / 1.023 GB, free: 0.8633 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000117/0.5836, allocations: 16 kB / 1.023 GB, free: 0.8477 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0002154/0.5838, allocations: 349.9 kB / 1.023 GB, free: 0.5 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001819/0.5856, allocations: 385.8 kB / 1.023 GB, free: 128 kB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002372/0.588, allocations: 0.7615 MB / 1.024 GB, free: 15.19 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002102/0.5901, allocations: 0.4961 MB / 1.025 GB, free: 14.69 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.82e-05/0.5902, allocations: 4 kB / 1.025 GB, free: 14.68 MB / 0.6823 GB Notification: Performance of matching and sorting (n=126) (initialization): time 0.005464/0.5957, allocations: 1.311 MB / 1.026 GB, free: 13.36 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.000537/0.5963, allocations: 412.2 kB / 1.026 GB, free: 12.82 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.598e-05/0.5963, allocations: 8 kB / 1.026 GB, free: 12.81 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.942e-05/0.5964, allocations: 16 kB / 1.026 GB, free: 12.8 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001569/0.598, allocations: 259.6 kB / 1.027 GB, free: 12.54 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.121e-05/0.598, allocations: 23.92 kB / 1.027 GB, free: 12.52 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002825/0.6009, allocations: 136.4 kB / 1.027 GB, free: 12.39 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001987/0.6011, allocations: 59.97 kB / 1.027 GB, free: 12.33 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.797e-05/0.6011, allocations: 4 kB / 1.027 GB, free: 12.32 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004452/0.6056, allocations: 1.144 MB / 1.028 GB, free: 11.17 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.619e-05/0.6057, allocations: 20.08 kB / 1.028 GB, free: 11.15 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.927e-05/0.6057, allocations: 16 kB / 1.028 GB, free: 11.13 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001835/0.6076, allocations: 259.5 kB / 1.028 GB, free: 10.88 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.072e-05/0.6076, allocations: 19.94 kB / 1.028 GB, free: 10.86 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002818/0.6104, allocations: 136.4 kB / 1.028 GB, free: 10.73 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001663/0.6106, allocations: 51.94 kB / 1.028 GB, free: 10.68 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (122): * Single equations (assignments): 118 * 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.001612/0.6123, allocations: 498.9 kB / 1.029 GB, free: 10.18 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000674/0.6129, allocations: 173.9 kB / 1.029 GB, free: 10.01 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004789/0.6178, allocations: 1.108 MB / 1.03 GB, free: 8.891 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.822e-05/0.6178, allocations: 15.94 kB / 1.03 GB, free: 8.875 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.069e-05/0.6178, allocations: 0 / 1.03 GB, free: 8.875 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00335/0.6212, allocations: 0.8121 MB / 1.031 GB, free: 8.047 MB / 0.6823 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.00876/0.63, allocations: 2.701 MB / 1.034 GB, free: 5.262 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.594e-05/0.63, allocations: 3.984 kB / 1.034 GB, free: 5.258 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001441/0.6315, allocations: 160 kB / 1.034 GB, free: 5.102 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003001/0.6318, allocations: 36.83 kB / 1.034 GB, free: 5.062 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001003/0.6319, allocations: 27.94 kB / 1.034 GB, free: 5.035 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001887/0.6338, allocations: 1.378 MB / 1.035 GB, free: 3.523 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.198e-05/0.6339, allocations: 4 kB / 1.035 GB, free: 3.52 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006253/0.6401, allocations: 1.646 MB / 1.037 GB, free: 1.828 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001459/0.6416, allocations: 362.6 kB / 1.037 GB, free: 1.453 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006744/0.6423, allocations: 16 kB / 1.037 GB, free: 1.438 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002275/0.6446, allocations: 131.7 kB / 1.037 GB, free: 1.309 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002199/0.6449, allocations: 56.48 kB / 1.037 GB, free: 1.25 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001296/0.645, allocations: 31.97 kB / 1.037 GB, free: 1.219 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.002914/0.648, allocations: 1.083 MB / 1.038 GB, free: 116 kB / 0.6823 GB Notification: Performance of sort global known variables: time 5.61e-07/0.648, allocations: 0 / 1.038 GB, free: 116 kB / 0.6823 GB Notification: Performance of remove unused functions: time 0.005024/0.653, allocations: 0.9823 MB / 1.039 GB, free: 15.13 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (74): * Single equations (assignments): 66 * 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: 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 Backend phase and start with SimCode phase: time 0.00845/0.6615, allocations: 2.611 MB / 1.042 GB, free: 12.48 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.00653/0.6681, allocations: 1.706 MB / 1.044 GB, free: 10.73 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 1.111e-05/0.6681, allocations: 384 / 1.044 GB, free: 10.73 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.00223/0.6704, allocations: 0.5723 MB / 1.044 GB, free: 10.15 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007695/0.6781, allocations: 0.8822 MB / 1.045 GB, free: 9.273 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5342/1.212, allocations: 11.06 MB / 1.056 GB, free: 142.5 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007673/1.213, allocations: 1.408 MB / 1.057 GB, free: 141.8 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.00202/1.215, allocations: 423.7 kB / 1.058 GB, free: 141.7 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009385/1.216, allocations: 0.7391 MB / 1.058 GB, free: 141.7 MB / 0.698 GB Notification: Performance of SimCode: time 8.12e-07/1.216, allocations: 0 / 1.058 GB, free: 141.7 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09121/1.307, allocations: 50.46 MB / 1.108 GB, free: 111.7 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001724/1.308, allocations: 262.9 kB / 1.108 GB, free: 111.3 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.948/5.255, allocations: 4.062 kB / 1.108 GB, free: 111.3 MB / 0.698 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u.fmu > Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)