Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_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-master/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-master/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: "" <> buildModelFMU(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_HeatExchangers_Examples_WaterHeater_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_HeatExchangers_Examples_WaterHeater_u",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.008545/0.008545, allocations: 170.2 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-master/package.mo): time 0.929/0.929, allocations: 135.2 MB / 151 MB, free: 13.84 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.439/1.439, allocations: 223.2 MB / 406.8 MB, free: 3.258 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.0009495/0.0009495, allocations: 96.22 kB / 489.9 MB, free: 10.9 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003065/0.0003066, allocations: 16 kB / 0.5692 GB, free: 14.06 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.374/0.3743, allocations: 82.3 MB / 0.6495 GB, free: 36.12 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.141/1.516, allocations: 408.2 MB / 1.048 GB, free: 178.3 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003107/1.516, allocations: 99.36 kB / 1.048 GB, free: 178.3 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 4.027/5.543, allocations: 1.152 GB / 2.201 GB, free: 95.92 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.514e-06/5.543, allocations: 0 / 2.201 GB, free: 95.92 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0002466/5.543, allocations: 51.86 kB / 2.201 GB, free: 95.91 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.006629/5.55, allocations: 2.65 MB / 2.203 GB, free: 94.69 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.942e-05/5.55, allocations: 10.47 kB / 2.203 GB, free: 94.69 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003858/5.551, allocations: 181.9 kB / 2.203 GB, free: 94.64 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001616/5.552, allocations: 376.3 kB / 2.204 GB, free: 94.53 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006393/5.559, allocations: 2.472 MB / 2.206 GB, free: 94.07 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001073/5.559, allocations: 97.31 kB / 2.206 GB, free: 94.06 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002304/5.559, allocations: 132 kB / 2.206 GB, free: 94.06 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002574/5.562, allocations: 1.396 MB / 2.208 GB, free: 93.8 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.174e-05/5.562, allocations: 0.8438 kB / 2.208 GB, free: 93.8 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001264/5.562, allocations: 54.67 kB / 2.208 GB, free: 93.8 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.11e-05/5.562, allocations: 54.28 kB / 2.208 GB, free: 93.8 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001984/5.564, allocations: 1.03 MB / 2.209 GB, free: 93.78 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.009866/5.574, allocations: 7.197 MB / 2.216 GB, free: 89.75 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001808/5.576, allocations: 1.281 MB / 2.217 GB, free: 89.16 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0052/5.581, allocations: 2.58 MB / 2.22 GB, free: 87.83 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00087/5.582, allocations: 444.4 kB / 2.22 GB, free: 87.78 MB / 0.698 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000955/5.583, allocations: 88.92 kB / 2.22 GB, free: 87.75 MB / 0.698 GB Notification: Performance of pre-optimization done (n=68): time 3.296e-06/5.583, allocations: 0 / 2.22 GB, free: 87.75 MB / 0.698 GB Notification: Performance of matching and sorting (n=68): time 0.002443/5.585, allocations: 1.189 MB / 2.221 GB, free: 87.51 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.837e-05/5.585, allocations: 116.1 kB / 2.221 GB, free: 87.38 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001865/5.587, allocations: 1.298 MB / 2.223 GB, free: 87.21 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0001045/5.587, allocations: 49.11 kB / 2.223 GB, free: 87.18 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007226/5.588, allocations: 0.8908 MB / 2.224 GB, free: 86.86 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002399/5.588, allocations: 239.2 kB / 2.224 GB, free: 86.71 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.74e-05/5.588, allocations: 17.38 kB / 2.224 GB, free: 86.71 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 9.693e-05/5.588, allocations: 343.7 kB / 2.224 GB, free: 86.41 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006596/5.589, allocations: 333.1 kB / 2.225 GB, free: 86.41 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008051/5.59, allocations: 0.6884 MB / 2.225 GB, free: 85.97 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007604/5.591, allocations: 446.4 kB / 2.226 GB, free: 85.93 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.873e-06/5.591, allocations: 5.156 kB / 2.226 GB, free: 85.93 MB / 0.698 GB Notification: Performance of matching and sorting (n=122) (initialization): time 0.002234/5.593, allocations: 1.185 MB / 2.227 GB, free: 85.77 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007332/5.594, allocations: 3.821 MB / 2.231 GB, free: 81.75 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.635e-05/5.594, allocations: 16.66 kB / 2.231 GB, free: 81.75 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.514e-05/5.594, allocations: 16.25 kB / 2.231 GB, free: 81.75 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009222/5.595, allocations: 238.6 kB / 2.231 GB, free: 81.75 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.919e-05/5.595, allocations: 22.7 kB / 2.231 GB, free: 81.75 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001643/5.596, allocations: 132.1 kB / 2.231 GB, free: 81.75 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001109/5.596, allocations: 53.11 kB / 2.231 GB, free: 81.75 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.56e-05/5.596, allocations: 4.062 kB / 2.231 GB, free: 81.75 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001867/5.598, allocations: 1.007 MB / 2.232 GB, free: 81.7 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.167e-05/5.598, allocations: 11.5 kB / 2.232 GB, free: 81.7 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.696e-05/5.598, allocations: 20.39 kB / 2.232 GB, free: 81.7 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008664/5.599, allocations: 241.2 kB / 2.232 GB, free: 81.7 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.985e-05/5.599, allocations: 26.53 kB / 2.232 GB, free: 81.7 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001479/5.601, allocations: 124.5 kB / 2.232 GB, free: 81.69 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.672e-05/5.601, allocations: 49.23 kB / 2.232 GB, free: 81.69 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.001049/5.602, allocations: 498 kB / 2.233 GB, free: 81.5 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002779/5.602, allocations: 166 kB / 2.233 GB, free: 81.41 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002212/5.604, allocations: 1.077 MB / 2.234 GB, free: 81.31 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.346e-05/5.604, allocations: 7.875 kB / 2.234 GB, free: 81.31 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.535e-06/5.604, allocations: 0 / 2.234 GB, free: 81.31 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001349/5.606, allocations: 0.7708 MB / 2.235 GB, free: 81.23 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.005123/5.611, allocations: 2.513 MB / 2.237 GB, free: 80.8 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.024e-05/5.611, allocations: 3.188 kB / 2.237 GB, free: 80.8 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007122/5.612, allocations: 157.5 kB / 2.237 GB, free: 80.8 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002156/5.612, allocations: 31.08 kB / 2.238 GB, free: 80.79 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.964e-05/5.612, allocations: 28.69 kB / 2.238 GB, free: 80.79 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00119/5.613, allocations: 1.316 MB / 2.239 GB, free: 79.54 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.669e-06/5.613, allocations: 6.438 kB / 2.239 GB, free: 79.54 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003369/5.617, allocations: 1.684 MB / 2.24 GB, free: 79 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0011/5.618, allocations: 369 kB / 2.241 GB, free: 78.8 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002318/5.618, allocations: 18.95 kB / 2.241 GB, free: 78.8 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001117/5.619, allocations: 111.6 kB / 2.241 GB, free: 78.8 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001609/5.619, allocations: 65.67 kB / 2.241 GB, free: 78.79 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.255e-05/5.619, allocations: 35.98 kB / 2.241 GB, free: 78.79 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.002001/5.621, allocations: 1.076 MB / 2.242 GB, free: 78.65 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.4e-07/5.621, allocations: 0 / 2.242 GB, free: 78.65 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.00397/5.625, allocations: 1.076 MB / 2.243 GB, free: 78.48 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.005092/5.63, allocations: 3.776 MB / 2.247 GB, free: 76.77 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.002782/5.633, allocations: 1.49 MB / 2.248 GB, free: 76.56 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 7.725e-06/5.633, allocations: 0 / 2.248 GB, free: 76.56 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0009619/5.634, allocations: 0.5459 MB / 2.249 GB, free: 76.43 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00423/5.638, allocations: 0.8505 MB / 2.25 GB, free: 76.4 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01139/5.65, allocations: 11.48 MB / 2.261 GB, free: 67.04 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003042/5.653, allocations: 1.435 MB / 2.262 GB, free: 82.24 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.002616/5.656, allocations: 438.5 kB / 2.263 GB, free: 82.16 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00117/5.657, allocations: 0.7477 MB / 2.263 GB, free: 81.59 MB / 0.7136 GB Notification: Performance of SimCode: time 2.064e-06/5.657, allocations: 0 / 2.263 GB, free: 81.59 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08999/5.747, allocations: 55.75 MB / 2.318 GB, free: 45.37 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001656/5.747, allocations: 248.3 kB / 2.318 GB, free: 45.12 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.164/9.911, allocations: 0 / 2.318 GB, free: 45.12 MB / 0.7136 GB (rm -f IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_HeatExchangers_Examples_WaterHeater_u_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Fluid_HeatExchangers_Examples_WaterHeater_u.fmu > IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)