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.146/2.146, allocations: 387.4 MB / 394.9 MB, free: 13.36 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.001115/0.001115, allocations: 192.5 kB / 487.4 MB, free: 5.047 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.456/1.456, allocations: 221.5 MB / 0.7824 GB, free: 0.9375 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001047/0.001047, allocations: 111.4 kB / 0.9219 GB, free: 2.172 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.807e-05/1.789e-05, allocations: 8 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2642/0.2643, allocations: 142.3 MB / 1.206 GB, free: 43.96 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.211/1.476, allocations: 445.6 MB / 1.641 GB, free: 9.254 MB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002509/1.476, allocations: 97.56 kB / 1.641 GB, free: 9.203 MB / 1.057 GB Notification: Performance of FrontEnd - DAE generated: time 4.451/5.927, allocations: 1.143 GB / 2.784 GB, free: 220.5 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.563e-06/5.927, allocations: 0 / 2.784 GB, free: 220.5 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0002529/5.927, allocations: 56.59 kB / 2.784 GB, free: 220.5 MB / 1.151 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.005362/5.932, allocations: 2.132 MB / 2.786 GB, free: 219.5 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.729e-05/5.932, allocations: 8.25 kB / 2.786 GB, free: 219.5 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002445/5.935, allocations: 470.1 kB / 2.787 GB, free: 219.4 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006296/5.941, allocations: 2.477 MB / 2.789 GB, free: 218.9 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.286e-05/5.941, allocations: 42.38 kB / 2.789 GB, free: 218.9 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001997/5.942, allocations: 80.72 kB / 2.789 GB, free: 218.9 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001728/5.943, allocations: 0.8699 MB / 2.79 GB, free: 218.9 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001971/5.945, allocations: 1.166 MB / 2.791 GB, free: 218.7 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.406e-05/5.945, allocations: 2.375 kB / 2.791 GB, free: 218.7 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.986e-05/5.945, allocations: 3.219 kB / 2.791 GB, free: 218.7 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.047e-05/5.945, allocations: 46.53 kB / 2.791 GB, free: 218.6 MB / 1.151 GB Warning: The model contains alias variables with conflicting start and/or 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.009492/5.955, allocations: 7.033 MB / 2.798 GB, free: 214.7 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001084/5.956, allocations: 1.176 MB / 2.799 GB, free: 214.1 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004709/5.957, allocations: 377.3 kB / 2.8 GB, free: 214.1 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004583/5.961, allocations: 2.612 MB / 2.802 GB, free: 212.7 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00057/5.962, allocations: 406 kB / 2.803 GB, free: 212.6 MB / 1.151 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007638/5.963, allocations: 79.08 kB / 2.803 GB, free: 212.6 MB / 1.151 GB Notification: Performance of pre-optimization done (n=66): time 4.067e-06/5.963, allocations: 0 / 2.803 GB, free: 212.6 MB / 1.151 GB Notification: Performance of matching and sorting (n=66): time 0.0019/5.964, allocations: 0.8 MB / 2.804 GB, free: 212.4 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.507e-05/5.965, allocations: 165 kB / 2.804 GB, free: 212.2 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00166/5.966, allocations: 1.183 MB / 2.805 GB, free: 212.1 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 7.146e-05/5.966, allocations: 25.7 kB / 2.805 GB, free: 212.1 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.000742/5.967, allocations: 0.8949 MB / 2.806 GB, free: 211.7 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001692/5.967, allocations: 225 kB / 2.806 GB, free: 211.6 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.077e-05/5.967, allocations: 0 / 2.806 GB, free: 211.6 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001007/5.967, allocations: 346.3 kB / 2.806 GB, free: 211.3 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003756/5.968, allocations: 259.2 kB / 2.807 GB, free: 211.3 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005791/5.968, allocations: 0.6417 MB / 2.807 GB, free: 210.8 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001149/5.969, allocations: 449 kB / 2.808 GB, free: 210.8 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.563e-06/5.97, allocations: 7.641 kB / 2.808 GB, free: 210.8 MB / 1.151 GB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002098/5.972, allocations: 1.061 MB / 2.809 GB, free: 210.7 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009538/5.973, allocations: 3.996 MB / 2.813 GB, free: 206.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.027e-05/5.973, allocations: 14.95 kB / 2.813 GB, free: 206.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.002e-05/5.973, allocations: 14.78 kB / 2.813 GB, free: 206.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009155/5.974, allocations: 252.6 kB / 2.813 GB, free: 206.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.819e-05/5.974, allocations: 18.09 kB / 2.813 GB, free: 206.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001465/5.975, allocations: 103.9 kB / 2.813 GB, free: 206.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.269e-05/5.975, allocations: 55.33 kB / 2.813 GB, free: 206.5 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.246e-05/5.975, allocations: 3.938 kB / 2.813 GB, free: 206.5 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001731/5.977, allocations: 0.8498 MB / 2.814 GB, free: 206.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.133e-05/5.977, allocations: 10.19 kB / 2.814 GB, free: 206.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/5.977, allocations: 17.88 kB / 2.814 GB, free: 206.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008385/5.978, allocations: 250.3 kB / 2.814 GB, free: 206.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.477e-05/5.978, allocations: 26.09 kB / 2.814 GB, free: 206.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001387/5.979, allocations: 99.2 kB / 2.814 GB, free: 206.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.946e-05/5.979, allocations: 54.16 kB / 2.814 GB, free: 206.4 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (118): * Single equations (assignments): 116 * 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.0002666/5.98, allocations: 141 kB / 2.814 GB, free: 206.3 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002273/5.98, allocations: 164.3 kB / 2.815 GB, free: 206.2 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002104/5.982, allocations: 0.9588 MB / 2.815 GB, free: 206.1 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.263e-05/5.982, allocations: 10.19 kB / 2.815 GB, free: 206.1 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.939e-06/5.982, allocations: 0 / 2.815 GB, free: 206.1 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001133/5.983, allocations: 0.6777 MB / 2.816 GB, free: 206 MB / 1.151 GB Warning: The model contains alias variables with conflicting start and/or 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.004095/5.987, allocations: 2.351 MB / 2.818 GB, free: 205.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.572e-06/5.987, allocations: 7.031 kB / 2.818 GB, free: 205.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007106/5.988, allocations: 158.4 kB / 2.819 GB, free: 205.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001812/5.988, allocations: 31.59 kB / 2.819 GB, free: 205.5 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.424e-05/5.988, allocations: 20.03 kB / 2.819 GB, free: 205.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007998/5.989, allocations: 1.271 MB / 2.82 GB, free: 204.3 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.628e-06/5.989, allocations: 2.531 kB / 2.82 GB, free: 204.3 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002247/5.991, allocations: 1.486 MB / 2.821 GB, free: 203.9 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007561/5.992, allocations: 345.3 kB / 2.822 GB, free: 203.7 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001802/5.992, allocations: 17.73 kB / 2.822 GB, free: 203.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009193/5.993, allocations: 83.55 kB / 2.822 GB, free: 203.7 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001245/5.993, allocations: 65.3 kB / 2.822 GB, free: 203.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.21e-05/5.993, allocations: 37.28 kB / 2.822 GB, free: 203.7 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.001358/5.995, allocations: 0.8903 MB / 2.823 GB, free: 203.6 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.5e-07/5.995, allocations: 0 / 2.823 GB, free: 203.6 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.004114/5.999, allocations: 1.05 MB / 2.824 GB, free: 203.4 MB / 1.151 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.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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (77): * Single equations (assignments): 69 * 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.002211/6.001, allocations: 1.105 MB / 2.825 GB, free: 203.1 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002125/6.003, allocations: 1.305 MB / 2.826 GB, free: 203 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 7.053e-06/6.003, allocations: 3.375 kB / 2.826 GB, free: 203 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0007338/6.004, allocations: 481.7 kB / 2.827 GB, free: 202.9 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004161/6.008, allocations: 0.7265 MB / 2.827 GB, free: 202.8 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005403/6.014, allocations: 2.34 MB / 2.83 GB, free: 202.1 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009087/6.015, allocations: 1.438 MB / 2.831 GB, free: 201.4 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.003154/6.018, allocations: 0.5542 MB / 2.832 GB, free: 201.4 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003262/6.018, allocations: 116.2 kB / 2.832 GB, free: 201.4 MB / 1.151 GB Notification: Performance of SimCode: time 1.543e-06/6.018, allocations: 0 / 2.832 GB, free: 201.4 MB / 1.151 GB Notification: Performance of Templates: time 0.06073/6.079, allocations: 34.35 MB / 2.865 GB, free: 195.6 MB / 1.151 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