Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|TOut.y|TVol.T|THeaOut.T|hea.Q_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u") translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|TOut.y|TVol.T|THeaOut.T|hea.Q_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.203/2.203, allocations: 390.3 MB / 405.3 MB, free: 13.46 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001098/0.001098, allocations: 169.1 kB / 498.1 MB, free: 5.727 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.455/1.455, allocations: 223.2 MB / 0.7948 GB, free: 17.91 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001138/0.001138, allocations: 105.3 kB / 0.9346 GB, free: 6.195 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004618/0.0004619, allocations: 6.906 kB / 1.084 GB, free: 221.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2309/0.2314, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9524/1.184, allocations: 446.3 MB / 1.659 GB, free: 14.88 MB / 0.9792 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002394/1.184, allocations: 104.5 kB / 1.659 GB, free: 14.82 MB / 0.9792 GB Notification: Performance of FrontEnd - DAE generated: time 4.219/5.403, allocations: 1.152 GB / 2.811 GB, free: 206.9 MB / 1.167 GB Notification: Performance of FrontEnd: time 2.155e-06/5.403, allocations: 0 / 2.811 GB, free: 206.9 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0002817/5.403, allocations: 52.47 kB / 2.811 GB, free: 206.9 MB / 1.167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 310 * Number of variables: 310 Notification: Performance of Generate backend data structure: time 0.007557/5.411, allocations: 2.633 MB / 2.813 GB, free: 206.1 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.579e-05/5.411, allocations: 7.906 kB / 2.813 GB, free: 206.1 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002625/5.413, allocations: 469.7 kB / 2.814 GB, free: 206 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006621/5.42, allocations: 2.494 MB / 2.816 GB, free: 205.7 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.684e-05/5.42, allocations: 97.91 kB / 2.816 GB, free: 205.7 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002449/5.421, allocations: 137 kB / 2.817 GB, free: 205.7 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002408/5.423, allocations: 1.413 MB / 2.818 GB, free: 205.4 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.185e-05/5.423, allocations: 7.125 kB / 2.818 GB, free: 205.4 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001197/5.423, allocations: 56.14 kB / 2.818 GB, free: 205.4 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.597e-05/5.423, allocations: 50.17 kB / 2.818 GB, free: 205.4 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002/5.425, allocations: 1.081 MB / 2.819 GB, free: 205.4 MB / 1.167 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.00895/5.434, allocations: 7.249 MB / 2.826 GB, free: 201.4 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001715/5.436, allocations: 1.316 MB / 2.827 GB, free: 200.8 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004664/5.441, allocations: 2.623 MB / 2.83 GB, free: 199.5 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008488/5.441, allocations: 461.2 kB / 2.83 GB, free: 199.4 MB / 1.167 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008405/5.442, allocations: 88.47 kB / 2.831 GB, free: 199.4 MB / 1.167 GB Notification: Performance of pre-optimization done (n=68): time 3.577e-06/5.442, allocations: 0 / 2.831 GB, free: 199.4 MB / 1.167 GB Notification: Performance of matching and sorting (n=68): time 0.00255/5.445, allocations: 1.253 MB / 2.832 GB, free: 199.2 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.943e-05/5.445, allocations: 117.1 kB / 2.832 GB, free: 199.1 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001827/5.447, allocations: 1.3 MB / 2.833 GB, free: 198.9 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0001131/5.447, allocations: 40.08 kB / 2.833 GB, free: 198.9 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007797/5.448, allocations: 0.8878 MB / 2.834 GB, free: 198.6 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002135/5.448, allocations: 237.8 kB / 2.834 GB, free: 198.5 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.792e-05/5.448, allocations: 19.97 kB / 2.834 GB, free: 198.5 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 8.392e-05/5.448, allocations: 344.4 kB / 2.835 GB, free: 198.2 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007505/5.449, allocations: 346.8 kB / 2.835 GB, free: 198.2 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009028/5.45, allocations: 0.7129 MB / 2.836 GB, free: 197.8 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008592/5.451, allocations: 475.4 kB / 2.836 GB, free: 197.7 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.833e-06/5.451, allocations: 3.953 kB / 2.836 GB, free: 197.7 MB / 1.167 GB Notification: Performance of matching and sorting (n=122) (initialization): time 0.002527/5.453, allocations: 1.222 MB / 2.837 GB, free: 197.5 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007669/5.454, allocations: 3.816 MB / 2.841 GB, free: 193.5 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.84e-05/5.454, allocations: 11.91 kB / 2.841 GB, free: 193.5 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.651e-05/5.454, allocations: 15.59 kB / 2.841 GB, free: 193.5 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009483/5.455, allocations: 246.9 kB / 2.841 GB, free: 193.5 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.441e-05/5.455, allocations: 28.06 kB / 2.841 GB, free: 193.5 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001795/5.457, allocations: 140.8 kB / 2.841 GB, free: 193.5 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001117/5.457, allocations: 55.06 kB / 2.841 GB, free: 193.5 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.256e-05/5.457, allocations: 3.719 kB / 2.841 GB, free: 193.5 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001971/5.459, allocations: 1.061 MB / 2.843 GB, free: 193.5 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.124e-05/5.459, allocations: 6.812 kB / 2.843 GB, free: 193.5 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.495e-05/5.459, allocations: 18.47 kB / 2.843 GB, free: 193.5 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008799/5.46, allocations: 245.7 kB / 2.843 GB, free: 193.5 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.652e-05/5.46, allocations: 19.44 kB / 2.843 GB, free: 193.5 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001618/5.462, allocations: 135.8 kB / 2.843 GB, free: 193.5 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.799e-05/5.462, allocations: 56.95 kB / 2.843 GB, free: 193.5 MB / 1.167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * 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 (120): * Single equations (assignments): 118 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * 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.001129/5.463, allocations: 494.1 kB / 2.843 GB, free: 193.3 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004147/5.463, allocations: 170.4 kB / 2.844 GB, free: 193.2 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002307/5.465, allocations: 1.109 MB / 2.845 GB, free: 193.1 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.426e-05/5.466, allocations: 11.28 kB / 2.845 GB, free: 193.1 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.828e-06/5.466, allocations: 3.594 kB / 2.845 GB, free: 193.1 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00142/5.467, allocations: 0.8095 MB / 2.846 GB, free: 193 MB / 1.167 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.005818/5.473, allocations: 2.566 MB / 2.848 GB, free: 192.6 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.598e-06/5.473, allocations: 2.5 kB / 2.848 GB, free: 192.6 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008089/5.474, allocations: 168.4 kB / 2.848 GB, free: 192.6 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002307/5.474, allocations: 29.95 kB / 2.848 GB, free: 192.6 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.005e-05/5.474, allocations: 26.88 kB / 2.848 GB, free: 192.6 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00098/5.475, allocations: 1.315 MB / 2.85 GB, free: 191.3 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/5.475, allocations: 4.781 kB / 2.85 GB, free: 191.3 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003612/5.479, allocations: 1.75 MB / 2.851 GB, free: 190.8 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001263/5.48, allocations: 367.4 kB / 2.852 GB, free: 190.6 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002446/5.48, allocations: 15.09 kB / 2.852 GB, free: 190.6 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001127/5.481, allocations: 126.6 kB / 2.852 GB, free: 190.6 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001465/5.481, allocations: 65.08 kB / 2.852 GB, free: 190.6 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.2e-05/5.482, allocations: 35.94 kB / 2.852 GB, free: 190.6 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.001725/5.483, allocations: 1.073 MB / 2.853 GB, free: 190.5 MB / 1.167 GB Notification: Performance of sort global known variables: time 3.71e-07/5.483, allocations: 0 / 2.853 GB, free: 190.5 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.003763/5.487, allocations: 1.082 MB / 2.854 GB, free: 190.3 MB / 1.167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 6 (vol.dynBal.U,mov.filter.s[1],mov.filter.s[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 (79): * Single equations (assignments): 71 * 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%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00282/5.49, allocations: 1.141 MB / 2.855 GB, free: 190.1 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.003683/5.494, allocations: 1.553 MB / 2.857 GB, free: 189.9 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 9.127e-06/5.494, allocations: 3.25 kB / 2.857 GB, free: 189.9 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.001242/5.495, allocations: 0.5633 MB / 2.857 GB, free: 189.8 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005695/5.501, allocations: 0.8442 MB / 2.858 GB, free: 189.8 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008124/5.509, allocations: 3.834 MB / 2.862 GB, free: 188.1 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009726/5.51, allocations: 1.44 MB / 2.863 GB, free: 187.3 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.002497/5.512, allocations: 441.9 kB / 2.864 GB, free: 187.3 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004119/5.513, allocations: 146.5 kB / 2.864 GB, free: 187.3 MB / 1.167 GB Notification: Performance of SimCode: time 3.467e-06/5.513, allocations: 2.75 kB / 2.864 GB, free: 187.3 MB / 1.167 GB Notification: Performance of Templates: time 0.067/5.58, allocations: 38.31 MB / 2.901 GB, free: 185.9 MB / 1.167 GB make -j1 -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.makefile (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & ./Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u.csv","../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches