Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u") translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 1.694/1.694, allocations: 287.5 MB / 302.6 MB, free: 8.328 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.0009487/0.0009486, allocations: 186.5 kB / 371.2 MB, free: 10.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.481/1.481, allocations: 205.4 MB / 0.6298 GB, free: 10.55 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007152/0.0007151, allocations: 98.34 kB / 0.7432 GB, free: 6.543 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0006817/0.0006819, allocations: 10.81 kB / 0.8661 GB, free: 140.9 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.22/0.2207, allocations: 115.3 MB / 0.9787 GB, free: 28.2 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.05008/0.2708, allocations: 61.82 MB / 1.039 GB, free: 14.21 MB / 0.6667 GB Notification: Performance of NFInst.instExpressions: time 0.02497/0.2958, allocations: 18.17 MB / 1.057 GB, free: 12 MB / 0.6823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002774/0.2986, allocations: 75.5 kB / 1.057 GB, free: 11.93 MB / 0.6823 GB Notification: Performance of NFTyping.typeComponents: time 0.003141/0.3018, allocations: 0.8192 MB / 1.058 GB, free: 11.11 MB / 0.6823 GB Notification: Performance of NFTyping.typeBindings: time 0.006708/0.3085, allocations: 2.103 MB / 1.06 GB, free: 8.996 MB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.008939/0.3175, allocations: 2.784 MB / 1.062 GB, free: 6.234 MB / 0.6823 GB Notification: Performance of NFFlatten.flatten: time 0.008023/0.3255, allocations: 6.046 MB / 1.068 GB, free: 180 kB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.4032/0.7288, allocations: 1.543 MB / 1.07 GB, free: 20.93 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004168/0.733, allocations: 1.682 MB / 1.071 GB, free: 20.93 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003418/0.7364, allocations: 1.374 MB / 1.073 GB, free: 20.92 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 0.0004786/0.7369, allocations: 75.44 kB / 1.073 GB, free: 20.92 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005084/0.742, allocations: 1.569 MB / 1.074 GB, free: 20.92 MB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 0.0009088/0.743, allocations: 435.3 kB / 1.075 GB, free: 20.92 MB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 0.001084/0.7441, allocations: 446.8 kB / 1.075 GB, free: 20.88 MB / 0.6823 GB Notification: Performance of NFConvertDAE.convert: time 0.005862/0.7499, allocations: 2.743 MB / 1.078 GB, free: 20.77 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 7.404e-06/0.75, allocations: 0 / 1.078 GB, free: 20.77 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.394e-06/0.75, allocations: 0 / 1.078 GB, free: 20.77 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.000119/0.7501, allocations: 0.5312 kB / 1.078 GB, free: 20.77 MB / 0.6823 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.006933/0.7571, allocations: 2.334 MB / 1.08 GB, free: 19.47 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.843e-05/0.7571, allocations: 10.52 kB / 1.08 GB, free: 19.47 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002052/0.7592, allocations: 389.4 kB / 1.081 GB, free: 19.35 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004081/0.7633, allocations: 1.801 MB / 1.082 GB, free: 18.86 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004233/0.7637, allocations: 169.9 kB / 1.083 GB, free: 18.84 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003018/0.764, allocations: 133.9 kB / 1.083 GB, free: 18.84 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003035/0.7671, allocations: 1.461 MB / 1.084 GB, free: 18.58 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.729e-05/0.7671, allocations: 7.812 kB / 1.084 GB, free: 18.57 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001324/0.7673, allocations: 56.19 kB / 1.084 GB, free: 18.57 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.165e-05/0.7673, allocations: 32.31 kB / 1.084 GB, free: 18.57 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002564/0.7699, allocations: 1.138 MB / 1.085 GB, free: 18.54 MB / 0.6823 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.009847/0.7798, allocations: 7.382 MB / 1.093 GB, free: 14.33 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002384/0.7822, allocations: 1.365 MB / 1.094 GB, free: 13.72 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001133/0.7833, allocations: 465.4 kB / 1.094 GB, free: 13.7 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00527/0.7886, allocations: 2.606 MB / 1.097 GB, free: 12.34 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00121/0.7899, allocations: 0.4962 MB / 1.097 GB, free: 12.25 MB / 0.6823 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008434/0.7907, allocations: 90.23 kB / 1.097 GB, free: 12.21 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=63): time 3.637e-06/0.7907, allocations: 0 / 1.097 GB, free: 12.21 MB / 0.6823 GB Notification: Performance of matching and sorting (n=63): time 0.003301/0.794, allocations: 1.28 MB / 1.099 GB, free: 11.96 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.66e-05/0.7941, allocations: 188.8 kB / 1.099 GB, free: 11.74 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002487/0.7966, allocations: 1.51 MB / 1.1 GB, free: 11.56 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0001008/0.7967, allocations: 48.53 kB / 1.1 GB, free: 11.52 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008003/0.7975, allocations: 0.9044 MB / 1.101 GB, free: 11.2 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002393/0.7978, allocations: 224.8 kB / 1.101 GB, free: 11.06 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.864e-05/0.7978, allocations: 19.06 kB / 1.101 GB, free: 11.06 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 9.704e-05/0.7979, allocations: 349 kB / 1.102 GB, free: 10.75 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009531/0.7989, allocations: 390.6 kB / 1.102 GB, free: 10.74 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00112/0.8, allocations: 0.7697 MB / 1.103 GB, free: 10.29 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001868/0.8019, allocations: 1.115 MB / 1.104 GB, free: 9.879 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.234e-06/0.8019, allocations: 2.688 kB / 1.104 GB, free: 9.879 MB / 0.6823 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.002791/0.8047, allocations: 1.323 MB / 1.105 GB, free: 9.707 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001821/0.8049, allocations: 402.6 kB / 1.106 GB, free: 9.23 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.694e-05/0.805, allocations: 13.77 kB / 1.106 GB, free: 9.23 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.827e-05/0.805, allocations: 16.88 kB / 1.106 GB, free: 9.227 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001016/0.806, allocations: 256.6 kB / 1.106 GB, free: 9.223 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.451e-05/0.8061, allocations: 25.64 kB / 1.106 GB, free: 9.223 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001699/0.8078, allocations: 144 kB / 1.106 GB, free: 9.203 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001066/0.8079, allocations: 51.89 kB / 1.106 GB, free: 9.203 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 9.167e-06/0.8079, allocations: 8.703 kB / 1.106 GB, free: 9.203 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002391/0.8103, allocations: 1.152 MB / 1.107 GB, free: 9.148 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.294e-05/0.8103, allocations: 11.7 kB / 1.107 GB, free: 9.148 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/0.8104, allocations: 15.25 kB / 1.107 GB, free: 9.148 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009312/0.8113, allocations: 255.7 kB / 1.108 GB, free: 9.145 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.964e-05/0.8113, allocations: 24.42 kB / 1.108 GB, free: 9.145 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001603/0.8129, allocations: 128.3 kB / 1.108 GB, free: 9.133 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.639e-05/0.813, allocations: 55.2 kB / 1.108 GB, free: 9.133 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 (123): * Single equations (assignments): 119 * 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.001071/0.8141, allocations: 0.4906 MB / 1.108 GB, free: 8.93 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003169/0.8144, allocations: 166.7 kB / 1.108 GB, free: 8.844 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00251/0.817, allocations: 1.116 MB / 1.11 GB, free: 8.738 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-05/0.817, allocations: 6.469 kB / 1.11 GB, free: 8.738 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.025e-05/0.817, allocations: 7.312 kB / 1.11 GB, free: 8.734 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001679/0.8187, allocations: 0.8184 MB / 1.11 GB, free: 8.645 MB / 0.6823 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.004716/0.8234, allocations: 2.699 MB / 1.113 GB, free: 8.059 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.864e-06/0.8235, allocations: 8.828 kB / 1.113 GB, free: 8.055 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007633/0.8242, allocations: 162.3 kB / 1.113 GB, free: 8.055 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001795/0.8244, allocations: 35 kB / 1.113 GB, free: 8.043 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.758e-05/0.8245, allocations: 22.64 kB / 1.113 GB, free: 8.043 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001192/0.8257, allocations: 1.384 MB / 1.115 GB, free: 22.78 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.137e-06/0.8257, allocations: 5.594 kB / 1.115 GB, free: 22.78 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003564/0.8293, allocations: 1.644 MB / 1.116 GB, free: 22.43 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001072/0.8304, allocations: 366.1 kB / 1.116 GB, free: 22.24 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003235/0.8307, allocations: 18.16 kB / 1.116 GB, free: 22.24 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001167/0.8319, allocations: 123.8 kB / 1.117 GB, free: 22.23 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001407/0.832, allocations: 63.25 kB / 1.117 GB, free: 22.22 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.5e-05/0.8321, allocations: 45.69 kB / 1.117 GB, free: 22.21 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.00186/0.834, allocations: 1.08 MB / 1.118 GB, free: 22.07 MB / 0.698 GB Notification: Performance of sort global known variables: time 3e-07/0.834, allocations: 0 / 1.118 GB, free: 22.07 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.003623/0.8376, allocations: 0.9947 MB / 1.119 GB, free: 21.92 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 (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.001579/0.8392, allocations: 0.5259 MB / 1.119 GB, free: 21.75 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.003858/0.8431, allocations: 1.709 MB / 1.121 GB, free: 21.53 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 8.587e-06/0.8431, allocations: 1.312 kB / 1.121 GB, free: 21.53 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.001366/0.8445, allocations: 0.5795 MB / 1.121 GB, free: 21.41 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006006/0.8505, allocations: 0.8667 MB / 1.122 GB, free: 21.33 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00699/0.8576, allocations: 3.912 MB / 1.126 GB, free: 19.39 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001053/0.8587, allocations: 1.407 MB / 1.128 GB, free: 18.64 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.002245/0.8609, allocations: 427.8 kB / 1.128 GB, free: 18.52 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004027/0.8613, allocations: 149.5 kB / 1.128 GB, free: 18.52 MB / 0.698 GB Notification: Performance of SimCode: time 5.51e-07/0.8613, allocations: 0 / 1.128 GB, free: 18.52 MB / 0.698 GB Notification: Performance of Templates: time 0.05644/0.9178, allocations: 34.17 MB / 1.161 GB, free: 12.66 MB / 0.7136 GB make -j1 -f Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.makefile (rm -f Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & ./Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)