Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.conf.json 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 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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) Running command: translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T") translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008661/0.000866, allocations: 84.38 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000895/0.000895, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.311/1.311, allocations: 205.4 MB / 222.1 MB, free: 5.637 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.633/1.633, allocations: 292.7 MB / 0.5499 GB, free: 14.55 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000511/0.0005111, allocations: 25.38 kB / 0.6737 GB, free: 26.16 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2174/0.218, allocations: 116.3 MB / 0.7873 GB, free: 11.95 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T): time 0.04762/0.2656, allocations: 49.17 MB / 0.8353 GB, free: 10.63 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.02316/0.2888, allocations: 16.63 MB / 0.8515 GB, free: 9.977 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002682/0.2916, allocations: 75.5 kB / 0.8516 GB, free: 9.902 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.002395/0.294, allocations: 0.7883 MB / 0.8524 GB, free: 9.109 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.00464/0.2986, allocations: 1.873 MB / 0.8542 GB, free: 7.238 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.006736/0.3054, allocations: 2.741 MB / 0.8569 GB, free: 4.52 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.006053/0.3114, allocations: 5.172 MB / 0.8619 GB, free: 15.33 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001781/0.3132, allocations: 1.23 MB / 0.8631 GB, free: 14.07 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002913/0.3161, allocations: 1.544 MB / 0.8646 GB, free: 12.52 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002221/0.3184, allocations: 1.264 MB / 0.8659 GB, free: 11.25 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.000254/0.3186, allocations: 72 kB / 0.8659 GB, free: 11.18 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003331/0.322, allocations: 1.517 MB / 0.8674 GB, free: 9.66 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.0004864/0.3225, allocations: 414.3 kB / 0.8678 GB, free: 9.254 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.0006475/0.3231, allocations: 408.6 kB / 0.8682 GB, free: 8.848 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.003062/0.3262, allocations: 2.498 MB / 0.8706 GB, free: 6.348 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.3262, allocations: 4 kB / 0.8707 GB, free: 6.344 MB / 0.6856 GB Notification: Performance of FrontEnd: time 2.625e-06/0.3262, allocations: 4 kB / 0.8707 GB, free: 6.34 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 2.387e-05/0.3263, allocations: 4 kB / 0.8707 GB, free: 6.336 MB / 0.6856 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 282 * Number of variables: 282 Notification: Performance of Generate backend data structure: time 0.003659/0.3299, allocations: 2.229 MB / 0.8728 GB, free: 4.039 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.33, allocations: 12.03 kB / 0.8728 GB, free: 4.027 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001788/0.3318, allocations: 493 kB / 0.8733 GB, free: 3.543 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002771/0.3346, allocations: 1.579 MB / 0.8749 GB, free: 1.914 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003297/0.3349, allocations: 158.2 kB / 0.875 GB, free: 1.758 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001625/0.3351, allocations: 120 kB / 0.8751 GB, free: 1.641 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002515/0.3376, allocations: 1.399 MB / 0.8765 GB, free: 144 kB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.573e-05/0.3376, allocations: 0 / 0.8765 GB, free: 144 kB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001019/0.3377, allocations: 48 kB / 0.8765 GB, free: 96 kB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.056e-05/0.3378, allocations: 32 kB / 0.8766 GB, free: 64 kB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002433/0.3402, allocations: 1.128 MB / 0.8777 GB, free: 14.93 MB / 0.7012 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.008515/0.3488, allocations: 7.01 MB / 0.8845 GB, free: 7.379 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002307/0.3511, allocations: 1.431 MB / 0.8859 GB, free: 5.832 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008897/0.352, allocations: 434.6 kB / 0.8863 GB, free: 5.406 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004341/0.3564, allocations: 3.078 MB / 0.8893 GB, free: 1.984 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009987/0.3574, allocations: 474.8 kB / 0.8898 GB, free: 1.508 MB / 0.7012 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000392/0.3578, allocations: 83.25 kB / 0.8899 GB, free: 1.426 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=60): time 2.515e-06/0.3578, allocations: 4 kB / 0.8899 GB, free: 1.422 MB / 0.7012 GB Notification: Performance of matching and sorting (n=60): time 0.002878/0.3607, allocations: 1.299 MB / 0.8911 GB, free: 100 kB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.24e-05/0.3608, allocations: 141.1 kB / 0.8913 GB, free: 15.93 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002011/0.3628, allocations: 1.57 MB / 0.8928 GB, free: 14.36 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.724e-05/0.3629, allocations: 45.7 kB / 0.8928 GB, free: 14.31 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007426/0.3636, allocations: 0.8842 MB / 0.8937 GB, free: 13.41 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001734/0.3638, allocations: 212.9 kB / 0.8939 GB, free: 13.2 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.859e-05/0.3639, allocations: 27.94 kB / 0.8939 GB, free: 13.18 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001152/0.364, allocations: 341.9 kB / 0.8943 GB, free: 12.84 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008831/0.3649, allocations: 397.8 kB / 0.8946 GB, free: 12.45 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001112/0.366, allocations: 0.8008 MB / 0.8954 GB, free: 11.46 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009496/0.367, allocations: 0.4967 MB / 0.8959 GB, free: 10.96 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.069e-06/0.367, allocations: 0 / 0.8959 GB, free: 10.96 MB / 0.7169 GB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002476/0.3695, allocations: 1.348 MB / 0.8972 GB, free: 9.598 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 0.00026/0.3697, allocations: 437.4 kB / 0.8976 GB, free: 9.012 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.412e-05/0.3698, allocations: 19.98 kB / 0.8977 GB, free: 8.992 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.72e-05/0.3698, allocations: 20 kB / 0.8977 GB, free: 8.973 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009478/0.3707, allocations: 263.6 kB / 0.8979 GB, free: 8.715 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.463e-05/0.3708, allocations: 23.92 kB / 0.898 GB, free: 8.691 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001092/0.3719, allocations: 140.4 kB / 0.8981 GB, free: 8.555 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.169e-05/0.372, allocations: 47.98 kB / 0.8981 GB, free: 8.508 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 7.685e-06/0.372, allocations: 4 kB / 0.8981 GB, free: 8.504 MB / 0.7169 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002214/0.3742, allocations: 1.165 MB / 0.8993 GB, free: 7.332 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.967e-05/0.3743, allocations: 15.98 kB / 0.8993 GB, free: 7.316 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.788e-05/0.3743, allocations: 20 kB / 0.8993 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009152/0.3752, allocations: 263.6 kB / 0.8996 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.308e-05/0.3752, allocations: 27.88 kB / 0.8996 GB, free: 7.012 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001012/0.3762, allocations: 124.5 kB / 0.8997 GB, free: 6.891 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.323e-05/0.3763, allocations: 51.98 kB / 0.8998 GB, free: 6.84 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * 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.0007579/0.3771, allocations: 484.7 kB / 0.9002 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002085/0.3773, allocations: 169.8 kB / 0.9004 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002474/0.3798, allocations: 1.178 MB / 0.9015 GB, free: 5 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-05/0.3798, allocations: 8 kB / 0.9015 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.3798, allocations: 4 kB / 0.9015 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001808/0.3817, allocations: 1.002 MB / 0.9025 GB, free: 3.934 MB / 0.7169 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.004124/0.3858, allocations: 2.445 MB / 0.9049 GB, free: 1.414 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.3858, allocations: 4.062 kB / 0.9049 GB, free: 1.41 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006895/0.3865, allocations: 155.8 kB / 0.9051 GB, free: 1.258 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000183/0.3867, allocations: 40.78 kB / 0.9051 GB, free: 1.215 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.24e-05/0.3868, allocations: 19.98 kB / 0.9051 GB, free: 1.195 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001133/0.3879, allocations: 1.367 MB / 0.9065 GB, free: 15.7 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.3879, allocations: 0 / 0.9065 GB, free: 15.7 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003048/0.391, allocations: 1.62 MB / 0.908 GB, free: 14.05 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005656/0.3916, allocations: 358.6 kB / 0.9084 GB, free: 13.68 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002152/0.3918, allocations: 12.12 kB / 0.9084 GB, free: 13.66 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008781/0.3927, allocations: 127.8 kB / 0.9085 GB, free: 13.54 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001066/0.3928, allocations: 48.48 kB / 0.9086 GB, free: 13.49 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.467e-05/0.3929, allocations: 31.98 kB / 0.9086 GB, free: 13.46 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.001509/0.3944, allocations: 1.114 MB / 0.9097 GB, free: 12.32 MB / 0.7325 GB Notification: Performance of sort global known variables: time 3.81e-07/0.3944, allocations: 0 / 0.9097 GB, free: 12.32 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.002537/0.3969, allocations: 0.9201 MB / 0.9106 GB, free: 11.4 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (vol.dynBal.U,mov.filter.x[1],mov.filter.x[2],conPI.I.y,THeaOut.T,hea.outCon.T) * 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 (69): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.001533/0.3985, allocations: 0.7391 MB / 0.9113 GB, free: 10.8 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.003246/0.4017, allocations: 1.73 MB / 0.913 GB, free: 9.039 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.257e-06/0.4017, allocations: 0 / 0.913 GB, free: 9.039 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.001102/0.4028, allocations: 0.5724 MB / 0.9136 GB, free: 8.457 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002842/0.4057, allocations: 0.7481 MB / 0.9143 GB, free: 7.711 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005497/0.4112, allocations: 3.78 MB / 0.918 GB, free: 3.887 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009426/0.4122, allocations: 1.376 MB / 0.9193 GB, free: 2.484 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.00162/0.4138, allocations: 418.3 kB / 0.9197 GB, free: 2.07 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000331/0.4141, allocations: 143.4 kB / 0.9199 GB, free: 1.93 MB / 0.7325 GB Notification: Performance of SimCode: time 6.21e-07/0.4141, allocations: 0 / 0.9199 GB, free: 1.93 MB / 0.7325 GB Notification: Performance of Templates: time 0.4351/0.8493, allocations: 31.15 MB / 0.9503 GB, free: 119.7 MB / 0.7325 GB make -j1 -f Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.makefile Environment - environmentSimulation: (rm -f Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & ./Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1) Environment - environmentSimulation: