Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.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_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u") translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.357/1.357, allocations: 252 MB / 268 MB, free: 10.86 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.001089/0.001089, allocations: 182.9 kB / 327.6 MB, free: 2.09 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.644/1.644, allocations: 205.4 MB / 0.5786 GB, free: 20.17 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.0008393/0.0008393, allocations: 94.34 kB / 0.6832 GB, free: 12.76 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003466/0.0003468, allocations: 9.75 kB / 0.7976 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2043/0.2046, allocations: 106.3 MB / 0.9014 GB, free: 63.48 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.04841/0.2531, allocations: 65.44 MB / 0.9653 GB, free: 13.82 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.02755/0.2807, allocations: 19.52 MB / 0.9844 GB, free: 10.25 MB / 0.6355 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003784/0.2845, allocations: 79.5 kB / 0.9845 GB, free: 10.18 MB / 0.6355 GB Notification: Performance of NFTyping.typeComponents: time 0.003724/0.2883, allocations: 1.026 MB / 0.9855 GB, free: 9.145 MB / 0.6355 GB Notification: Performance of NFTyping.typeBindings: time 0.007388/0.2957, allocations: 2.437 MB / 0.9879 GB, free: 6.699 MB / 0.6355 GB Notification: Performance of NFTyping.typeClassSections: time 0.009323/0.305, allocations: 3.124 MB / 0.9909 GB, free: 3.598 MB / 0.6355 GB Notification: Performance of NFFlatten.flatten: time 0.01012/0.3152, allocations: 6.985 MB / 0.9977 GB, free: 12.59 MB / 0.6511 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002979/0.3182, allocations: 1.566 MB / 0.9993 GB, free: 10.98 MB / 0.6511 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004188/0.3224, allocations: 1.742 MB / 1.001 GB, free: 9.23 MB / 0.6511 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002508/0.3249, allocations: 1.466 MB / 1.002 GB, free: 7.758 MB / 0.6511 GB Notification: Performance of NFPackage.collectConstants: time 0.0002888/0.3252, allocations: 76 kB / 1.002 GB, free: 7.684 MB / 0.6511 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003885/0.3291, allocations: 1.914 MB / 1.004 GB, free: 5.766 MB / 0.6511 GB Notification: Performance of NFScalarize.scalarize: time 0.000524/0.3297, allocations: 450 kB / 1.005 GB, free: 5.324 MB / 0.6511 GB Notification: Performance of NFVerifyModel.verify: time 0.001234/0.3309, allocations: 1.039 MB / 1.006 GB, free: 4.273 MB / 0.6511 GB Notification: Performance of NFConvertDAE.convert: time 0.003412/0.3343, allocations: 2.771 MB / 1.008 GB, free: 1.496 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.3344, allocations: 0 / 1.008 GB, free: 1.496 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.473e-06/0.3344, allocations: 0 / 1.008 GB, free: 1.496 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 3.921e-05/0.3344, allocations: 0 / 1.008 GB, free: 1.496 MB / 0.6511 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 311 * Number of variables: 311 Notification: Performance of Generate backend data structure: time 0.004247/0.3387, allocations: 2.329 MB / 1.011 GB, free: 15.09 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 3.936e-05/0.3387, allocations: 12.03 kB / 1.011 GB, free: 15.08 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001352/0.3401, allocations: 389.9 kB / 1.011 GB, free: 14.7 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003197/0.3433, allocations: 1.796 MB / 1.013 GB, free: 12.85 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003637/0.3437, allocations: 170.4 kB / 1.013 GB, free: 12.68 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001938/0.3439, allocations: 136 kB / 1.013 GB, free: 12.55 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002533/0.3464, allocations: 1.465 MB / 1.015 GB, free: 10.99 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.744e-05/0.3465, allocations: 0 / 1.015 GB, free: 10.99 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000121/0.3466, allocations: 55.94 kB / 1.015 GB, free: 10.94 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.091e-05/0.3466, allocations: 36 kB / 1.015 GB, free: 10.9 MB / 0.6667 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002571/0.3492, allocations: 1.149 MB / 1.016 GB, free: 9.746 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 preOpt removeSimpleEquations (simulation): time 0.009746/0.359, allocations: 7.377 MB / 1.023 GB, free: 1.797 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00217/0.3612, allocations: 1.366 MB / 1.024 GB, free: 324 kB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009841/0.3622, allocations: 467.4 kB / 1.025 GB, free: 15.85 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003869/0.3661, allocations: 2.607 MB / 1.027 GB, free: 13.02 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001008/0.3671, allocations: 0.5025 MB / 1.028 GB, free: 12.5 MB / 0.6823 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000431/0.3675, allocations: 91.25 kB / 1.028 GB, free: 12.41 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=63): time 2.104e-06/0.3675, allocations: 0 / 1.028 GB, free: 12.41 MB / 0.6823 GB Notification: Performance of matching and sorting (n=63): time 0.002898/0.3704, allocations: 1.276 MB / 1.029 GB, free: 11.1 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001008/0.3706, allocations: 204.3 kB / 1.029 GB, free: 10.86 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001879/0.3724, allocations: 1.521 MB / 1.031 GB, free: 9.34 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 6.978e-05/0.3725, allocations: 45.7 kB / 1.031 GB, free: 9.289 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007569/0.3733, allocations: 0.8997 MB / 1.032 GB, free: 8.379 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001904/0.3735, allocations: 224.8 kB / 1.032 GB, free: 8.156 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.301e-05/0.3735, allocations: 23.98 kB / 1.032 GB, free: 8.133 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001301/0.3737, allocations: 341.9 kB / 1.032 GB, free: 7.793 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008796/0.3746, allocations: 409.8 kB / 1.033 GB, free: 7.391 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001124/0.3757, allocations: 0.7811 MB / 1.034 GB, free: 6.441 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001937/0.3776, allocations: 1.152 MB / 1.035 GB, free: 5.148 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.112e-06/0.3777, allocations: 4 kB / 1.035 GB, free: 5.145 MB / 0.6823 GB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002509/0.3802, allocations: 1.346 MB / 1.036 GB, free: 3.789 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002578/0.3804, allocations: 409.7 kB / 1.036 GB, free: 3.246 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.147e-05/0.3805, allocations: 12 kB / 1.036 GB, free: 3.234 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.581e-05/0.3805, allocations: 16 kB / 1.036 GB, free: 3.219 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009519/0.3815, allocations: 255.6 kB / 1.037 GB, free: 2.969 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.16e-05/0.3815, allocations: 23.92 kB / 1.037 GB, free: 2.945 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001212/0.3827, allocations: 140.4 kB / 1.037 GB, free: 2.809 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.245e-05/0.3828, allocations: 51.98 kB / 1.037 GB, free: 2.758 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 7.924e-06/0.3828, allocations: 4 kB / 1.037 GB, free: 2.754 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002212/0.3851, allocations: 1.148 MB / 1.038 GB, free: 1.598 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.816e-05/0.3851, allocations: 12 kB / 1.038 GB, free: 1.586 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.542e-05/0.3851, allocations: 12 kB / 1.038 GB, free: 1.574 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009249/0.386, allocations: 251.8 kB / 1.038 GB, free: 1.328 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.765e-05/0.3861, allocations: 23.92 kB / 1.038 GB, free: 1.305 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001211/0.3873, allocations: 135.3 kB / 1.038 GB, free: 1.176 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.877e-05/0.3874, allocations: 51.92 kB / 1.038 GB, free: 1.125 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008393/0.3882, allocations: 0.489 MB / 1.039 GB, free: 0.625 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000232/0.3885, allocations: 169.8 kB / 1.039 GB, free: 468 kB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002466/0.3909, allocations: 1.116 MB / 1.04 GB, free: 15.32 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.54e-05/0.391, allocations: 8 kB / 1.04 GB, free: 15.31 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.016e-05/0.391, allocations: 0 / 1.04 GB, free: 15.31 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00174/0.3927, allocations: 0.8238 MB / 1.041 GB, free: 14.47 MB / 0.698 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.004575/0.3973, allocations: 2.701 MB / 1.044 GB, free: 11.69 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.584e-06/0.3974, allocations: 4 kB / 1.044 GB, free: 11.68 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007665/0.3981, allocations: 160 kB / 1.044 GB, free: 11.53 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001934/0.3983, allocations: 48.77 kB / 1.044 GB, free: 11.48 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.701e-05/0.3984, allocations: 19.98 kB / 1.044 GB, free: 11.46 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001087/0.3995, allocations: 1.378 MB / 1.045 GB, free: 9.949 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.3995, allocations: 0 / 1.045 GB, free: 9.949 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003224/0.4027, allocations: 1.65 MB / 1.047 GB, free: 8.254 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008396/0.4036, allocations: 374.6 kB / 1.047 GB, free: 7.867 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002578/0.4039, allocations: 16 kB / 1.047 GB, free: 7.852 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001084/0.405, allocations: 119.8 kB / 1.047 GB, free: 7.734 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001453/0.4051, allocations: 64.36 kB / 1.047 GB, free: 7.672 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.606e-05/0.4052, allocations: 31.98 kB / 1.047 GB, free: 7.641 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.001654/0.4069, allocations: 1.102 MB / 1.048 GB, free: 6.516 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.9e-07/0.4069, allocations: 0 / 1.048 GB, free: 6.516 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.002675/0.4096, allocations: 0.9861 MB / 1.049 GB, free: 5.527 MB / 0.698 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.x[1],mov.filter.x[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 (74): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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.001273/0.4108, allocations: 0.532 MB / 1.05 GB, free: 4.996 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.003586/0.4144, allocations: 1.729 MB / 1.052 GB, free: 3.234 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 5.981e-06/0.4145, allocations: 1.438 kB / 1.052 GB, free: 3.234 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.001255/0.4157, allocations: 0.5685 MB / 1.052 GB, free: 2.652 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004681/0.4204, allocations: 0.8746 MB / 1.053 GB, free: 1.781 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.359/0.7795, allocations: 4.028 MB / 1.057 GB, free: 143.7 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008003/0.7803, allocations: 1.396 MB / 1.058 GB, free: 142.9 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005886/0.7809, allocations: 151.6 kB / 1.058 GB, free: 142.9 MB / 0.698 GB Notification: Performance of SimCode: time 9.92e-07/0.7809, allocations: 5.062 kB / 1.058 GB, free: 142.9 MB / 0.698 GB Notification: Performance of Templates: time 0.05522/0.8362, allocations: 35.71 MB / 1.093 GB, free: 128.3 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)