Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.conf.json 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/IDEAS 3.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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) Running command: translateModel(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u") translateModel(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.006532/0.006532, allocations: 172 kB / 15.11 MB, free: 5.969 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7207/0.7207, allocations: 132.3 MB / 148.1 MB, free: 220 kB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.461/1.461, allocations: 223.2 MB / 403.2 MB, free: 6.738 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008979/0.0008979, allocations: 91.61 kB / 485.5 MB, free: 14.11 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003385/0.0003385, allocations: 11.98 kB / 0.5641 GB, free: 2.074 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3838/0.3842, allocations: 81.58 MB / 0.6438 GB, free: 39.32 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7497/1.134, allocations: 408 MB / 1.042 GB, free: 5.965 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002496/1.134, allocations: 100.9 kB / 1.042 GB, free: 5.91 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 4.219/5.354, allocations: 1.152 GB / 2.195 GB, free: 93.45 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.785e-06/5.354, allocations: 0 / 2.195 GB, free: 93.45 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0002749/5.354, allocations: 63.56 kB / 2.195 GB, free: 93.44 MB / 0.698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 310 * Number of variables: 310 Notification: Performance of Generate backend data structure: time 0.007725/5.362, allocations: 2.63 MB / 2.197 GB, free: 92.29 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.411e-05/5.362, allocations: 10.53 kB / 2.197 GB, free: 92.29 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00215/5.364, allocations: 374.2 kB / 2.198 GB, free: 92.18 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006944/5.371, allocations: 2.47 MB / 2.2 GB, free: 91.71 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.121e-05/5.371, allocations: 97.16 kB / 2.2 GB, free: 91.71 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002331/5.371, allocations: 136.6 kB / 2.2 GB, free: 91.71 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002428/5.374, allocations: 1.388 MB / 2.202 GB, free: 91.45 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.329e-05/5.374, allocations: 5.453 kB / 2.202 GB, free: 91.45 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001307/5.374, allocations: 58.05 kB / 2.202 GB, free: 91.45 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.949e-05/5.374, allocations: 49.2 kB / 2.202 GB, free: 91.45 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002008/5.376, allocations: 1.031 MB / 2.203 GB, free: 91.43 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 preOpt removeSimpleEquations (simulation): time 0.009239/5.385, allocations: 7.207 MB / 2.21 GB, free: 87.4 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001569/5.387, allocations: 1.282 MB / 2.211 GB, free: 86.8 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004576/5.391, allocations: 2.57 MB / 2.214 GB, free: 85.48 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008296/5.392, allocations: 449.5 kB / 2.214 GB, free: 85.43 MB / 0.698 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008656/5.393, allocations: 88.58 kB / 2.214 GB, free: 85.39 MB / 0.698 GB Notification: Performance of pre-optimization done (n=68): time 4.168e-06/5.393, allocations: 3.594 kB / 2.214 GB, free: 85.39 MB / 0.698 GB Notification: Performance of matching and sorting (n=68): time 0.002537/5.396, allocations: 1.185 MB / 2.215 GB, free: 85.16 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.3e-05/5.396, allocations: 110.8 kB / 2.215 GB, free: 85.03 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001868/5.398, allocations: 1.301 MB / 2.217 GB, free: 84.87 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0001/5.398, allocations: 40.7 kB / 2.217 GB, free: 84.84 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006957/5.398, allocations: 0.8922 MB / 2.218 GB, free: 84.52 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002131/5.399, allocations: 242.6 kB / 2.218 GB, free: 84.37 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.552e-05/5.399, allocations: 19.38 kB / 2.218 GB, free: 84.37 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 8.405e-05/5.399, allocations: 344 kB / 2.218 GB, free: 84.07 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006465/5.399, allocations: 327 kB / 2.218 GB, free: 84.06 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008171/5.4, allocations: 0.6972 MB / 2.219 GB, free: 83.62 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007971/5.401, allocations: 444.7 kB / 2.22 GB, free: 83.57 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.702e-06/5.401, allocations: 6.094 kB / 2.22 GB, free: 83.57 MB / 0.698 GB Notification: Performance of matching and sorting (n=122) (initialization): time 0.002812/5.404, allocations: 1.182 MB / 2.221 GB, free: 83.41 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.001121/5.405, allocations: 3.821 MB / 2.224 GB, free: 79.39 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.251e-05/5.405, allocations: 10.59 kB / 2.224 GB, free: 79.39 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.726e-05/5.405, allocations: 17.03 kB / 2.224 GB, free: 79.39 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009262/5.406, allocations: 237.7 kB / 2.225 GB, free: 79.39 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.405e-05/5.406, allocations: 22.5 kB / 2.225 GB, free: 79.39 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001754/5.408, allocations: 135.5 kB / 2.225 GB, free: 79.39 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001047/5.408, allocations: 56.59 kB / 2.225 GB, free: 79.39 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.316e-05/5.408, allocations: 3.25 kB / 2.225 GB, free: 79.39 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001811/5.41, allocations: 1.011 MB / 2.226 GB, free: 79.34 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.919e-06/5.41, allocations: 7.656 kB / 2.226 GB, free: 79.34 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.561e-05/5.41, allocations: 18.98 kB / 2.226 GB, free: 79.34 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008238/5.411, allocations: 240.2 kB / 2.226 GB, free: 79.34 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.85e-05/5.411, allocations: 21.84 kB / 2.226 GB, free: 79.34 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001563/5.412, allocations: 132.7 kB / 2.226 GB, free: 79.33 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.987e-05/5.412, allocations: 52.33 kB / 2.226 GB, free: 79.33 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * 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 (120): * Single equations (assignments): 118 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * 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.001102/5.413, allocations: 491.6 kB / 2.227 GB, free: 79.13 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003265/5.414, allocations: 172.1 kB / 2.227 GB, free: 79.05 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002189/5.416, allocations: 1.067 MB / 2.228 GB, free: 78.96 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.405e-05/5.416, allocations: 8.094 kB / 2.228 GB, free: 78.96 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.053e-06/5.416, allocations: 3.75 kB / 2.228 GB, free: 78.96 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001344/5.417, allocations: 0.7805 MB / 2.229 GB, free: 78.87 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.004916/5.422, allocations: 2.506 MB / 2.231 GB, free: 78.44 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.482e-06/5.422, allocations: 2.344 kB / 2.231 GB, free: 78.44 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006858/5.423, allocations: 154.6 kB / 2.231 GB, free: 78.44 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000178/5.423, allocations: 29.91 kB / 2.231 GB, free: 78.43 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.926e-05/5.423, allocations: 31.53 kB / 2.231 GB, free: 78.43 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008339/5.424, allocations: 1.313 MB / 2.233 GB, free: 77.18 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.195e-06/5.424, allocations: 3.75 kB / 2.233 GB, free: 77.18 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002796/5.427, allocations: 1.695 MB / 2.234 GB, free: 76.65 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009375/5.428, allocations: 361.8 kB / 2.235 GB, free: 76.46 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001882/5.428, allocations: 17.19 kB / 2.235 GB, free: 76.46 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001013/5.429, allocations: 113.5 kB / 2.235 GB, free: 76.45 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001483/5.429, allocations: 69.05 kB / 2.235 GB, free: 76.45 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.316e-05/5.429, allocations: 40.47 kB / 2.235 GB, free: 76.45 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.001549/5.431, allocations: 1.077 MB / 2.236 GB, free: 76.3 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.5e-07/5.431, allocations: 0 / 2.236 GB, free: 76.3 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.003559/5.435, allocations: 1.071 MB / 2.237 GB, free: 76.14 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 6 (vol.dynBal.U,mov.filter.s[1],mov.filter.s[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 (79): * Single equations (assignments): 71 * 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%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002055/5.437, allocations: 1.132 MB / 2.238 GB, free: 75.86 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.002803/5.439, allocations: 1.49 MB / 2.24 GB, free: 75.71 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 5.821e-06/5.439, allocations: 0 / 2.24 GB, free: 75.71 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0009989/5.44, allocations: 0.5442 MB / 2.24 GB, free: 75.6 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004003/5.444, allocations: 0.8499 MB / 2.241 GB, free: 75.57 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005481/5.45, allocations: 3.804 MB / 2.245 GB, free: 73.84 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008088/5.451, allocations: 1.436 MB / 2.246 GB, free: 73.11 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.002107/5.453, allocations: 434.3 kB / 2.246 GB, free: 73.09 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000347/5.453, allocations: 151.9 kB / 2.247 GB, free: 73.09 MB / 0.698 GB Notification: Performance of SimCode: time 1.192e-06/5.453, allocations: 0 / 2.247 GB, free: 73.09 MB / 0.698 GB Notification: Performance of Templates: time 0.07934/5.533, allocations: 38.19 MB / 2.284 GB, free: 69.46 MB / 0.698 GB make -j1 -f IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.makefile (rm -f IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & ./IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)