Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u") translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.632/1.632, allocations: 292.3 MB / 308.1 MB, free: 4.285 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001203/0.001203, allocations: 190.4 kB / 376.9 MB, free: 1.82 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.594/1.594, allocations: 205.1 MB / 0.6354 GB, free: 9.801 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009952/0.0009951, allocations: 98.02 kB / 0.748 GB, free: 61.1 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.001019/0.001019, allocations: 47.92 kB / 0.8704 GB, free: 13.14 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.256/0.257, allocations: 114.5 MB / 0.9822 GB, free: 10.43 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.5718/0.8289, allocations: 66.64 MB / 1.047 GB, free: 62.89 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.03134/0.8603, allocations: 19.8 MB / 1.067 GB, free: 55.69 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00451/0.8648, allocations: 90.44 kB / 1.067 GB, free: 55.65 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.003778/0.8686, allocations: 1.014 MB / 1.068 GB, free: 55.11 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 0.007435/0.8761, allocations: 2.435 MB / 1.07 GB, free: 53.69 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.01092/0.887, allocations: 3.139 MB / 1.073 GB, free: 52.11 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.008757/0.8958, allocations: 7.021 MB / 1.08 GB, free: 49.51 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003209/0.899, allocations: 1.628 MB / 1.082 GB, free: 48.83 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004184/0.9032, allocations: 1.824 MB / 1.083 GB, free: 48.05 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002905/0.9061, allocations: 1.5 MB / 1.085 GB, free: 47.39 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 0.0006086/0.9068, allocations: 95.66 kB / 1.085 GB, free: 47.39 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004943/0.9117, allocations: 1.985 MB / 1.087 GB, free: 46.73 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 0.0008729/0.9126, allocations: 483.8 kB / 1.087 GB, free: 46.51 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 0.00215/0.9148, allocations: 1.046 MB / 1.088 GB, free: 45.89 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.008464/0.9232, allocations: 3.667 MB / 1.092 GB, free: 44.54 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 6.773e-06/0.9233, allocations: 0 / 1.092 GB, free: 44.54 MB / 0.7448 GB Notification: Performance of FrontEnd: time 3.908e-06/0.9233, allocations: 0 / 1.092 GB, free: 44.54 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 0.0001536/0.9234, allocations: 3.938 kB / 1.092 GB, free: 44.53 MB / 0.7448 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.006135/0.9296, allocations: 2.722 MB / 1.095 GB, free: 42.77 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.959e-05/0.9296, allocations: 13.25 kB / 1.095 GB, free: 42.77 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001382/0.931, allocations: 369.9 kB / 1.095 GB, free: 42.64 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003024/0.9341, allocations: 1.798 MB / 1.097 GB, free: 41.63 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003512/0.9344, allocations: 167 kB / 1.097 GB, free: 41.57 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001612/0.9346, allocations: 135.3 kB / 1.097 GB, free: 41.53 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002164/0.9368, allocations: 1.446 MB / 1.098 GB, free: 40.83 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.042e-05/0.9368, allocations: 7.844 kB / 1.098 GB, free: 40.82 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001007/0.9369, allocations: 56.88 kB / 1.098 GB, free: 40.78 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.19e-05/0.937, allocations: 32.66 kB / 1.099 GB, free: 40.78 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002103/0.9391, allocations: 1.112 MB / 1.1 GB, free: 40.39 MB / 0.7448 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.006661/0.9457, allocations: 7.296 MB / 1.107 GB, free: 34.8 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001853/0.9476, allocations: 1.324 MB / 1.108 GB, free: 33.9 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008331/0.9484, allocations: 440.6 kB / 1.108 GB, free: 33.75 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00273/0.9512, allocations: 2.307 MB / 1.111 GB, free: 31.92 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009208/0.9521, allocations: 474.6 kB / 1.111 GB, free: 31.74 MB / 0.7448 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003439/0.9525, allocations: 83.08 kB / 1.111 GB, free: 31.7 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=67): time 2.445e-06/0.9525, allocations: 0 / 1.111 GB, free: 31.7 MB / 0.7448 GB Notification: Performance of matching and sorting (n=67): time 0.002809/0.9553, allocations: 1.293 MB / 1.112 GB, free: 31.15 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.352e-05/0.9554, allocations: 113.8 kB / 1.113 GB, free: 31.02 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001492/0.9569, allocations: 1.473 MB / 1.114 GB, free: 30.46 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 5.996e-05/0.9569, allocations: 43.86 kB / 1.114 GB, free: 30.42 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004938/0.9574, allocations: 0.8945 MB / 1.115 GB, free: 29.71 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001502/0.9576, allocations: 244.6 kB / 1.115 GB, free: 29.52 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002716/0.9579, allocations: 218.1 kB / 1.115 GB, free: 29.43 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 6.908e-05/0.9579, allocations: 345.4 kB / 1.116 GB, free: 29.1 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008304/0.9588, allocations: 419.9 kB / 1.116 GB, free: 28.96 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001001/0.9598, allocations: 0.7518 MB / 1.117 GB, free: 28.38 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001769/0.9616, allocations: 1.145 MB / 1.118 GB, free: 27.64 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.192e-06/0.9616, allocations: 3 kB / 1.118 GB, free: 27.64 MB / 0.7448 GB Notification: Performance of matching and sorting (n=130) (initialization): time 0.002343/0.9639, allocations: 1.351 MB / 1.119 GB, free: 27.09 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 3.547e-05/0.964, allocations: 34.98 kB / 1.119 GB, free: 27.06 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.883e-05/0.964, allocations: 9.562 kB / 1.119 GB, free: 27.06 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.779e-05/0.964, allocations: 19.98 kB / 1.119 GB, free: 27.06 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008995/0.9649, allocations: 258.6 kB / 1.12 GB, free: 27.03 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.913e-05/0.965, allocations: 23.22 kB / 1.12 GB, free: 27.03 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001144/0.9661, allocations: 147.9 kB / 1.12 GB, free: 26.99 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.69e-05/0.9662, allocations: 50.34 kB / 1.12 GB, free: 26.98 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001248/0.9675, allocations: 0.7253 MB / 1.121 GB, free: 26.64 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001037/0.9685, allocations: 0.7503 MB / 1.121 GB, free: 26.06 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00175/0.9703, allocations: 1.101 MB / 1.122 GB, free: 25.34 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.179e-06/0.9703, allocations: 3.312 kB / 1.122 GB, free: 25.34 MB / 0.7448 GB Notification: Performance of matching and sorting (n=130) (initialization_lambda0): time 0.002369/0.9727, allocations: 1.317 MB / 1.124 GB, free: 24.8 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 3.472e-05/0.9727, allocations: 39.12 kB / 1.124 GB, free: 24.77 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.722e-05/0.9728, allocations: 9.469 kB / 1.124 GB, free: 24.77 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.162e-05/0.9728, allocations: 20.44 kB / 1.124 GB, free: 24.76 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008829/0.9737, allocations: 255.8 kB / 1.124 GB, free: 24.74 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.567e-05/0.9737, allocations: 20.89 kB / 1.124 GB, free: 24.73 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001184/0.9749, allocations: 155.5 kB / 1.124 GB, free: 24.69 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.985e-05/0.975, allocations: 48.62 kB / 1.124 GB, free: 24.68 MB / 0.7448 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * 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 (126): * Single equations (assignments): 122 * 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.0002896/0.9753, allocations: 255.6 kB / 1.124 GB, free: 24.45 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002367/0.9755, allocations: 164.8 kB / 1.125 GB, free: 24.36 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002439/0.978, allocations: 1.128 MB / 1.126 GB, free: 23.93 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.491e-05/0.978, allocations: 6.625 kB / 1.126 GB, free: 23.93 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.327e-06/0.978, allocations: 10.66 kB / 1.126 GB, free: 23.92 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001689/0.9797, allocations: 0.8384 MB / 1.126 GB, free: 23.59 MB / 0.7448 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.00442/0.9841, allocations: 2.471 MB / 1.129 GB, free: 22.46 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.513e-06/0.9841, allocations: 2.969 kB / 1.129 GB, free: 22.46 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007563/0.9849, allocations: 159.5 kB / 1.129 GB, free: 22.45 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001978/0.9851, allocations: 32.11 kB / 1.129 GB, free: 22.43 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.24e-05/0.9852, allocations: 20.86 kB / 1.129 GB, free: 22.42 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008995/0.9861, allocations: 1.372 MB / 1.13 GB, free: 21.06 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.9861, allocations: 3.156 kB / 1.13 GB, free: 21.06 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01512/1.001, allocations: 8.679 MB / 1.139 GB, free: 15.88 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005574/1.002, allocations: 324.8 kB / 1.139 GB, free: 15.65 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002039/1.002, allocations: 18.25 kB / 1.139 GB, free: 15.64 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001053/1.003, allocations: 124.3 kB / 1.139 GB, free: 15.6 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001363/1.003, allocations: 55.39 kB / 1.139 GB, free: 15.59 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.216e-05/1.003, allocations: 32.67 kB / 1.139 GB, free: 15.59 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.001292/1.005, allocations: 0.9839 MB / 1.14 GB, free: 15.21 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.51e-07/1.005, allocations: 0 / 1.14 GB, free: 15.21 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.006851/1.012, allocations: 1.45 MB / 1.142 GB, free: 14.95 MB / 0.7448 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.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 (75): * Single equations (assignments): 67 * 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.001904/1.013, allocations: 0.5426 MB / 1.142 GB, free: 14.71 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.003621/1.017, allocations: 1.737 MB / 1.144 GB, free: 14.03 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 5.5e-06/1.017, allocations: 0 / 1.144 GB, free: 14.03 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.001212/1.018, allocations: 0.5641 MB / 1.145 GB, free: 13.77 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003666/1.022, allocations: 0.7715 MB / 1.145 GB, free: 13.57 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007034/1.029, allocations: 4.439 MB / 1.15 GB, free: 10.77 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00133/1.03, allocations: 1.433 MB / 1.151 GB, free: 9.969 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.002271/1.033, allocations: 425.7 kB / 1.151 GB, free: 9.867 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005301/1.033, allocations: 145.7 kB / 1.152 GB, free: 9.852 MB / 0.7448 GB Notification: Performance of SimCode: time 6.01e-07/1.033, allocations: 0 / 1.152 GB, free: 9.852 MB / 0.7448 GB Notification: Performance of Templates: time 0.07253/1.106, allocations: 34.52 MB / 1.185 GB, free: 2.051 MB / 0.7448 GB make -j1 -f Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.makefile (rm -f Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & ./Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)