Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.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: translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T") translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.369/1.369, allocations: 251.5 MB / 267.4 MB, free: 11.06 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.001178/0.001178, allocations: 178.5 kB / 326.5 MB, free: 2.68 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.784/1.784, allocations: 205 MB / 0.5766 GB, free: 20.97 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.0008514/0.0008513, allocations: 83.98 kB / 0.6804 GB, free: 14.69 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003642/0.0003642, allocations: 16.22 kB / 0.7938 GB, free: 136.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.215/0.2154, allocations: 105.4 MB / 0.8967 GB, free: 68.15 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T): time 0.04071/0.2562, allocations: 52.74 MB / 0.9482 GB, free: 15.22 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.02249/0.2787, allocations: 18.13 MB / 0.966 GB, free: 13.04 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003673/0.2825, allocations: 75.5 kB / 0.966 GB, free: 12.96 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.00401/0.2865, allocations: 0.9903 MB / 0.967 GB, free: 11.97 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.00763/0.2942, allocations: 2.125 MB / 0.9691 GB, free: 9.84 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.01014/0.3043, allocations: 3.07 MB / 0.9721 GB, free: 6.793 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.00815/0.3125, allocations: 6.029 MB / 0.978 GB, free: 0.75 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003165/0.3157, allocations: 1.337 MB / 0.9793 GB, free: 15.38 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004187/0.3199, allocations: 1.626 MB / 0.9808 GB, free: 13.75 MB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00314/0.3231, allocations: 1.334 MB / 0.9821 GB, free: 12.41 MB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 0.0006319/0.3237, allocations: 68 kB / 0.9822 GB, free: 12.34 MB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004956/0.3287, allocations: 1.805 MB / 0.984 GB, free: 10.54 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 0.001067/0.3298, allocations: 434.1 kB / 0.9844 GB, free: 10.11 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 0.002343/0.3321, allocations: 0.9243 MB / 0.9853 GB, free: 9.18 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.004354/0.3365, allocations: 2.529 MB / 0.9878 GB, free: 6.645 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.3365, allocations: 4 kB / 0.9878 GB, free: 6.641 MB / 0.6355 GB Notification: Performance of FrontEnd: time 3.055e-06/0.3366, allocations: 0 / 0.9878 GB, free: 6.641 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 0.0001134/0.3367, allocations: 0 / 0.9878 GB, free: 6.641 MB / 0.6355 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.005307/0.342, allocations: 2.214 MB / 0.9899 GB, free: 4.359 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.486e-05/0.342, allocations: 8.031 kB / 0.9899 GB, free: 4.352 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002643/0.3447, allocations: 497.6 kB / 0.9904 GB, free: 3.863 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004614/0.3493, allocations: 1.636 MB / 0.992 GB, free: 2.176 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003832/0.3497, allocations: 158.2 kB / 0.9922 GB, free: 2.02 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002122/0.35, allocations: 127.9 kB / 0.9923 GB, free: 1.895 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003098/0.3531, allocations: 1.391 MB / 0.9936 GB, free: 412 kB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.675e-05/0.3531, allocations: 7.938 kB / 0.9936 GB, free: 404 kB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001071/0.3532, allocations: 48 kB / 0.9937 GB, free: 356 kB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.402e-05/0.3533, allocations: 28 kB / 0.9937 GB, free: 328 kB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002716/0.356, allocations: 1.14 MB / 0.9948 GB, free: 15.17 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.01035/0.3664, allocations: 7.01 MB / 1.002 GB, free: 7.625 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00264/0.369, allocations: 1.442 MB / 1.003 GB, free: 6.066 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009596/0.37, allocations: 446.2 kB / 1.004 GB, free: 5.625 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005065/0.3751, allocations: 3.064 MB / 1.007 GB, free: 2.223 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001121/0.3762, allocations: 470.8 kB / 1.007 GB, free: 1.75 MB / 0.6511 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006125/0.3769, allocations: 91.23 kB / 1.007 GB, free: 1.66 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=60): time 3.727e-06/0.3769, allocations: 0 / 1.007 GB, free: 1.66 MB / 0.6511 GB Notification: Performance of matching and sorting (n=60): time 0.003381/0.3803, allocations: 1.295 MB / 1.008 GB, free: 344 kB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.866e-05/0.3804, allocations: 137.1 kB / 1.008 GB, free: 176 kB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002757/0.3832, allocations: 1.586 MB / 1.01 GB, free: 14.59 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 0.0001213/0.3833, allocations: 45.69 kB / 1.01 GB, free: 14.54 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009439/0.3842, allocations: 0.8803 MB / 1.011 GB, free: 13.64 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002299/0.3845, allocations: 216.9 kB / 1.011 GB, free: 13.43 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001494/0.3846, allocations: 85.67 kB / 1.011 GB, free: 13.34 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001516/0.3848, allocations: 353.9 kB / 1.012 GB, free: 12.99 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009954/0.3858, allocations: 413.8 kB / 1.012 GB, free: 12.58 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001318/0.3871, allocations: 0.8164 MB / 1.013 GB, free: 11.58 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002401/0.3895, allocations: 1.186 MB / 1.014 GB, free: 10.24 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.381e-05/0.3896, allocations: 4 kB / 1.014 GB, free: 10.24 MB / 0.6667 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003304/0.3929, allocations: 1.368 MB / 1.015 GB, free: 8.855 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003663/0.3933, allocations: 433.5 kB / 1.016 GB, free: 8.27 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.313e-05/0.3933, allocations: 19.98 kB / 1.016 GB, free: 8.25 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.583e-05/0.3934, allocations: 16 kB / 1.016 GB, free: 8.234 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001038/0.3944, allocations: 267.5 kB / 1.016 GB, free: 7.973 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.112e-05/0.3945, allocations: 23.92 kB / 1.016 GB, free: 7.949 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001561/0.396, allocations: 140.3 kB / 1.016 GB, free: 7.812 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001206/0.3962, allocations: 55.97 kB / 1.016 GB, free: 7.758 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.038e-05/0.3962, allocations: 4 kB / 1.016 GB, free: 7.754 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002608/0.3988, allocations: 1.173 MB / 1.017 GB, free: 6.574 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.328e-05/0.3988, allocations: 12 kB / 1.017 GB, free: 6.562 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.37e-05/0.3989, allocations: 19.98 kB / 1.017 GB, free: 6.543 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009933/0.3999, allocations: 263.9 kB / 1.018 GB, free: 6.285 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.577e-05/0.3999, allocations: 19.94 kB / 1.018 GB, free: 6.266 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001404/0.4013, allocations: 124.5 kB / 1.018 GB, free: 6.145 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001122/0.4014, allocations: 51.98 kB / 1.018 GB, free: 6.094 MB / 0.6667 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 (TSet.count,$PRE.TSet.count,TSet.T_start,$PRE.TSet.T_start,$whenCondition1,conPI.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (121): * Single equations (assignments): 117 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009334/0.4024, allocations: 492.6 kB / 1.018 GB, free: 5.602 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004504/0.4028, allocations: 165.8 kB / 1.018 GB, free: 5.438 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00317/0.406, allocations: 1.171 MB / 1.02 GB, free: 4.254 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-05/0.4061, allocations: 4 kB / 1.02 GB, free: 4.25 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.406e-05/0.4061, allocations: 11.94 kB / 1.02 GB, free: 4.238 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002097/0.4082, allocations: 1.006 MB / 1.021 GB, free: 3.18 MB / 0.6667 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.005821/0.414, allocations: 2.441 MB / 1.023 GB, free: 0.6758 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.123e-05/0.414, allocations: 4 kB / 1.023 GB, free: 0.6719 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007464/0.4148, allocations: 151.8 kB / 1.023 GB, free: 0.5234 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002309/0.415, allocations: 44.75 kB / 1.023 GB, free: 488 kB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.096e-05/0.4151, allocations: 19.98 kB / 1.023 GB, free: 468 kB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001444/0.4166, allocations: 1.366 MB / 1.024 GB, free: 14.96 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.379e-06/0.4166, allocations: 0 / 1.024 GB, free: 14.96 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003712/0.4203, allocations: 1.631 MB / 1.026 GB, free: 13.29 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001121/0.4215, allocations: 342.6 kB / 1.026 GB, free: 12.94 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000678/0.4221, allocations: 23.94 kB / 1.026 GB, free: 12.91 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001547/0.4237, allocations: 111.9 kB / 1.026 GB, free: 12.8 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002071/0.4239, allocations: 60.42 kB / 1.027 GB, free: 12.75 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.282e-05/0.424, allocations: 27.97 kB / 1.027 GB, free: 12.72 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.002712/0.4268, allocations: 1.129 MB / 1.028 GB, free: 11.57 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4268, allocations: 0 / 1.028 GB, free: 11.57 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.004266/0.431, allocations: 0.9084 MB / 1.029 GB, free: 10.66 MB / 0.6823 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00225/0.4333, allocations: 0.7489 MB / 1.029 GB, free: 10.02 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.004222/0.4375, allocations: 1.737 MB / 1.031 GB, free: 8.262 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 6.232e-06/0.4376, allocations: 0 / 1.031 GB, free: 8.262 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.001445/0.439, allocations: 0.5767 MB / 1.032 GB, free: 7.668 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005439/0.4445, allocations: 0.7544 MB / 1.032 GB, free: 6.918 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008546/0.4531, allocations: 3.824 MB / 1.036 GB, free: 3.051 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001336/0.4544, allocations: 1.364 MB / 1.037 GB, free: 1.66 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006264/0.4551, allocations: 163.3 kB / 1.038 GB, free: 1.5 MB / 0.6823 GB Notification: Performance of SimCode: time 6.51e-07/0.4551, allocations: 0 / 1.038 GB, free: 1.5 MB / 0.6823 GB Notification: Performance of Templates: time 0.41/0.8651, allocations: 33.94 MB / 1.071 GB, free: 137.1 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1)