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.241/2.241, allocations: 387.1 MB / 399.7 MB, free: 9.457 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.001078/0.001078, allocations: 172.9 kB / 492.3 MB, free: 0.5977 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.652/1.652, allocations: 221.3 MB / 0.7871 GB, free: 12.89 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.001016/0.001016, allocations: 103.4 kB / 0.9267 GB, free: 13.95 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.725e-05/3.75e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3602/0.3603, allocations: 142.3 MB / 1.212 GB, free: 38.54 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.539/1.899, allocations: 446.3 MB / 1.648 GB, free: 0.5312 MB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005182/1.9, allocations: 94.38 kB / 1.648 GB, free: 496 kB / 1.057 GB Notification: Performance of FrontEnd - DAE generated: time 5.08/6.98, allocations: 1.148 GB / 2.797 GB, free: 220.6 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.774e-06/6.98, allocations: 0 / 2.797 GB, free: 220.6 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0002645/6.98, allocations: 60.53 kB / 2.797 GB, free: 220.6 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.006213/6.987, allocations: 2.134 MB / 2.799 GB, free: 219.6 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.976e-05/6.987, allocations: 14.44 kB / 2.799 GB, free: 219.6 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002583/6.989, allocations: 454.4 kB / 2.799 GB, free: 219.5 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006765/6.996, allocations: 2.478 MB / 2.802 GB, free: 219 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001009/6.996, allocations: 100.7 kB / 2.802 GB, free: 219 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002643/6.996, allocations: 134.4 kB / 2.802 GB, free: 219 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002505/6.999, allocations: 1.336 MB / 2.803 GB, free: 218.8 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.489e-05/6.999, allocations: 3.812 kB / 2.803 GB, free: 218.8 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001238/6.999, allocations: 59.28 kB / 2.803 GB, free: 218.8 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.397e-05/6.999, allocations: 49.25 kB / 2.803 GB, free: 218.7 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001638/7.001, allocations: 0.9288 MB / 2.804 GB, free: 218.7 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.01003/7.011, allocations: 7.254 MB / 2.811 GB, free: 214.5 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001228/7.012, allocations: 1.182 MB / 2.813 GB, free: 213.6 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005396/7.013, allocations: 381.3 kB / 2.813 GB, free: 213.4 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004796/7.017, allocations: 2.644 MB / 2.815 GB, free: 211.5 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006392/7.018, allocations: 426.5 kB / 2.816 GB, free: 211.3 MB / 1.151 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008458/7.019, allocations: 89.5 kB / 2.816 GB, free: 211.3 MB / 1.151 GB Notification: Performance of pre-optimization done (n=66): time 2.975e-06/7.019, allocations: 2.188 kB / 2.816 GB, free: 211.3 MB / 1.151 GB Notification: Performance of matching and sorting (n=66): time 0.001427/7.02, allocations: 0.7233 MB / 2.817 GB, free: 211 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.207e-05/7.021, allocations: 166.1 kB / 2.817 GB, free: 210.8 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00191/7.022, allocations: 1.283 MB / 2.818 GB, free: 210.3 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 8.199e-05/7.023, allocations: 43.95 kB / 2.818 GB, free: 210.2 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.000769/7.023, allocations: 0.897 MB / 2.819 GB, free: 209.5 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001927/7.024, allocations: 233.8 kB / 2.819 GB, free: 209.4 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.386e-05/7.024, allocations: 18.66 kB / 2.819 GB, free: 209.4 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 9.396e-05/7.024, allocations: 346.4 kB / 2.82 GB, free: 209 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004686/7.024, allocations: 269.4 kB / 2.82 GB, free: 208.9 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006286/7.025, allocations: 0.6475 MB / 2.82 GB, free: 208.4 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000559/7.025, allocations: 405.5 kB / 2.821 GB, free: 208.2 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.863e-06/7.025, allocations: 3.969 kB / 2.821 GB, free: 208.2 MB / 1.151 GB Notification: Performance of matching and sorting (n=120) (initialization): time 0.001778/7.027, allocations: 1.074 MB / 2.822 GB, free: 207.8 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.001059/7.028, allocations: 3.999 MB / 2.826 GB, free: 203.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.007e-05/7.028, allocations: 11.47 kB / 2.826 GB, free: 203.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.417e-05/7.028, allocations: 16.19 kB / 2.826 GB, free: 203.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009359/7.029, allocations: 247 kB / 2.826 GB, free: 203.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.445e-05/7.029, allocations: 22.55 kB / 2.826 GB, free: 203.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001534/7.031, allocations: 125.4 kB / 2.826 GB, free: 203.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001075/7.031, allocations: 52.08 kB / 2.826 GB, free: 203.5 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.354e-05/7.031, allocations: 7.125 kB / 2.826 GB, free: 203.5 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001406/7.032, allocations: 0.9056 MB / 2.827 GB, free: 203.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.3e-05/7.032, allocations: 13.94 kB / 2.827 GB, free: 203.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.71e-05/7.032, allocations: 15.81 kB / 2.827 GB, free: 203.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008495/7.033, allocations: 247.9 kB / 2.827 GB, free: 203.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.923e-05/7.033, allocations: 25.14 kB / 2.827 GB, free: 203.2 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001401/7.035, allocations: 124.2 kB / 2.828 GB, free: 203.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.86e-05/7.035, allocations: 50.61 kB / 2.828 GB, free: 203.1 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.000274/7.035, allocations: 174.2 kB / 2.828 GB, free: 203 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002332/7.035, allocations: 166.4 kB / 2.828 GB, free: 202.9 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00186/7.037, allocations: 0.9609 MB / 2.829 GB, free: 202.6 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.654e-05/7.037, allocations: 10.27 kB / 2.829 GB, free: 202.5 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.337e-06/7.037, allocations: 3.156 kB / 2.829 GB, free: 202.5 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000901/7.038, allocations: 0.6552 MB / 2.83 GB, free: 202.3 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.004157/7.042, allocations: 2.548 MB / 2.832 GB, free: 201 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.514e-06/7.042, allocations: 2.688 kB / 2.832 GB, free: 201 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007178/7.043, allocations: 160.9 kB / 2.832 GB, free: 201 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001835/7.043, allocations: 26.38 kB / 2.832 GB, free: 201 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.069e-05/7.043, allocations: 33.28 kB / 2.832 GB, free: 201 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008539/7.044, allocations: 1.316 MB / 2.834 GB, free: 199.7 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.025e-06/7.044, allocations: 3.094 kB / 2.834 GB, free: 199.7 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001965/7.046, allocations: 1.508 MB / 2.835 GB, free: 198.8 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008327/7.047, allocations: 367.2 kB / 2.835 GB, free: 198.5 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002489/7.047, allocations: 15.12 kB / 2.835 GB, free: 198.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001027/7.048, allocations: 122.3 kB / 2.835 GB, free: 198.5 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001384/7.048, allocations: 69.67 kB / 2.836 GB, free: 198.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.962e-05/7.049, allocations: 35.3 kB / 2.836 GB, free: 198.5 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.00157/7.05, allocations: 1.058 MB / 2.837 GB, free: 198 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.6e-07/7.05, allocations: 2.953 kB / 2.837 GB, free: 198 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.003536/7.054, allocations: 1.062 MB / 2.838 GB, free: 197.7 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.002188/7.056, allocations: 1.136 MB / 2.839 GB, free: 197.4 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002151/7.058, allocations: 1.383 MB / 2.84 GB, free: 196.9 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/7.058, allocations: 0 / 2.84 GB, free: 196.9 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0007415/7.059, allocations: 0.492 MB / 2.841 GB, free: 196.7 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004137/7.063, allocations: 0.8498 MB / 2.841 GB, free: 196.5 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004458/7.067, allocations: 2.404 MB / 2.844 GB, free: 195.5 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008605/7.068, allocations: 1.439 MB / 2.845 GB, free: 194.7 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.002654/7.071, allocations: 0.5682 MB / 2.846 GB, free: 194.7 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002768/7.071, allocations: 121.5 kB / 2.846 GB, free: 194.7 MB / 1.151 GB Notification: Performance of SimCode: time 1.272e-06/7.071, allocations: 0 / 2.846 GB, free: 194.7 MB / 1.151 GB Notification: Performance of Templates: time 0.0667/7.138, allocations: 42.7 MB / 2.888 GB, free: 168.2 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