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.00155/0.00155, allocations: 174.6 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7454/0.7454, allocations: 133.4 MB / 146.7 MB, free: 10.79 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.658/1.658, allocations: 221.3 MB / 400.4 MB, free: 5.848 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0013/0.0013, allocations: 90.44 kB / 483.3 MB, free: 5.879 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 4.278e-05/4.294e-05, allocations: 4.25 kB / 0.5601 GB, free: 87.91 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1953/0.1954, allocations: 82.32 MB / 0.6405 GB, free: 7.723 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.804/1.999, allocations: 408.2 MB / 1.039 GB, free: 213.6 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003471/2, allocations: 91.95 kB / 1.039 GB, free: 213.5 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 4.619/6.619, allocations: 1.149 GB / 2.188 GB, free: 94.41 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.923e-06/6.619, allocations: 1.562 kB / 2.188 GB, free: 94.41 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0003712/6.619, allocations: 58.98 kB / 2.188 GB, free: 94.39 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.006235/6.626, allocations: 2.137 MB / 2.19 GB, free: 93.12 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.05e-05/6.626, allocations: 11.66 kB / 2.19 GB, free: 93.12 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005535/6.626, allocations: 175.2 kB / 2.19 GB, free: 93 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002108/6.628, allocations: 380.3 kB / 2.191 GB, free: 92.88 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006738/6.635, allocations: 2.45 MB / 2.193 GB, free: 91.82 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001211/6.635, allocations: 103.2 kB / 2.193 GB, free: 91.77 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004249/6.636, allocations: 132.6 kB / 2.193 GB, free: 91.73 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002752/6.638, allocations: 1.336 MB / 2.195 GB, free: 91.04 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.894e-05/6.638, allocations: 1.719 kB / 2.195 GB, free: 91.04 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001656/6.639, allocations: 58.36 kB / 2.195 GB, free: 90.99 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.551e-05/6.639, allocations: 51.77 kB / 2.195 GB, free: 90.99 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001755/6.64, allocations: 0.9108 MB / 2.196 GB, free: 90.64 MB / 0.698 GB Warning: The model contains alias variables with conflicting start and/or 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.00951/6.65, allocations: 7.204 MB / 2.203 GB, free: 85.33 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001093/6.651, allocations: 1.16 MB / 2.204 GB, free: 84.46 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005548/6.652, allocations: 385.6 kB / 2.204 GB, free: 84.31 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004416/6.656, allocations: 2.605 MB / 2.207 GB, free: 82.06 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005936/6.657, allocations: 418.2 kB / 2.207 GB, free: 81.8 MB / 0.698 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006974/6.657, allocations: 97.88 kB / 2.207 GB, free: 81.74 MB / 0.698 GB Notification: Performance of pre-optimization done (n=66): time 5.31e-06/6.657, allocations: 2.312 kB / 2.207 GB, free: 81.74 MB / 0.698 GB Notification: Performance of matching and sorting (n=66): time 0.001352/6.659, allocations: 0.7116 MB / 2.208 GB, free: 81.38 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.248e-05/6.659, allocations: 169.2 kB / 2.208 GB, free: 81.19 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001994/6.661, allocations: 1.278 MB / 2.209 GB, free: 80.56 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 8.828e-05/6.661, allocations: 43.83 kB / 2.209 GB, free: 80.52 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006528/6.662, allocations: 0.8938 MB / 2.21 GB, free: 79.73 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001944/6.662, allocations: 235.5 kB / 2.21 GB, free: 79.54 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.784e-05/6.662, allocations: 21.06 kB / 2.21 GB, free: 79.52 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 7.519e-05/6.662, allocations: 344.4 kB / 2.211 GB, free: 79.19 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004127/6.662, allocations: 266.7 kB / 2.211 GB, free: 79.08 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005891/6.663, allocations: 0.6433 MB / 2.212 GB, free: 78.47 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005812/6.664, allocations: 399.9 kB / 2.212 GB, free: 78.26 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.215e-06/6.664, allocations: 3.875 kB / 2.212 GB, free: 78.26 MB / 0.698 GB Notification: Performance of matching and sorting (n=120) (initialization): time 0.00165/6.665, allocations: 1.063 MB / 2.213 GB, free: 77.73 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008787/6.666, allocations: 4.001 MB / 2.217 GB, free: 73.45 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.035e-05/6.666, allocations: 11.84 kB / 2.217 GB, free: 73.45 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.688e-05/6.666, allocations: 14.03 kB / 2.217 GB, free: 73.45 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008472/6.667, allocations: 239.5 kB / 2.217 GB, free: 73.39 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.563e-05/6.667, allocations: 25.3 kB / 2.217 GB, free: 73.38 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001288/6.668, allocations: 114.6 kB / 2.217 GB, free: 73.34 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001042/6.669, allocations: 55.94 kB / 2.217 GB, free: 73.32 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.292e-05/6.669, allocations: 7 kB / 2.217 GB, free: 73.32 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001299/6.67, allocations: 0.8938 MB / 2.218 GB, free: 72.88 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.761e-05/6.67, allocations: 7.594 kB / 2.218 GB, free: 72.88 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.73e-05/6.67, allocations: 22.53 kB / 2.218 GB, free: 72.88 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008058/6.671, allocations: 232.3 kB / 2.219 GB, free: 72.83 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.05e-05/6.671, allocations: 23.86 kB / 2.219 GB, free: 72.82 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001179/6.672, allocations: 117.6 kB / 2.219 GB, free: 72.77 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001058/6.672, allocations: 53.69 kB / 2.219 GB, free: 72.76 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (118): * Single equations (assignments): 116 * 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.0002293/6.672, allocations: 176.7 kB / 2.219 GB, free: 72.6 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002606/6.673, allocations: 164.7 kB / 2.219 GB, free: 72.52 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0016/6.674, allocations: 0.9304 MB / 2.22 GB, free: 72 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.695e-05/6.674, allocations: 10.38 kB / 2.22 GB, free: 72 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.875e-06/6.674, allocations: 7.5 kB / 2.22 GB, free: 72 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008826/6.675, allocations: 0.6576 MB / 2.221 GB, free: 71.66 MB / 0.698 GB Warning: The model contains alias variables with conflicting start and/or 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.003831/6.679, allocations: 2.525 MB / 2.223 GB, free: 69.92 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.899e-06/6.679, allocations: 0 / 2.223 GB, free: 69.92 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006914/6.68, allocations: 156.5 kB / 2.223 GB, free: 69.88 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000172/6.68, allocations: 29.62 kB / 2.223 GB, free: 69.87 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.571e-05/6.68, allocations: 27.42 kB / 2.223 GB, free: 69.85 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007536/6.681, allocations: 1.307 MB / 2.225 GB, free: 68.5 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/6.681, allocations: 3.938 kB / 2.225 GB, free: 68.5 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001751/6.682, allocations: 1.496 MB / 2.226 GB, free: 67.53 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006997/6.683, allocations: 362.5 kB / 2.226 GB, free: 67.23 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003836/6.684, allocations: 19.5 kB / 2.226 GB, free: 67.21 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001105/6.685, allocations: 116.3 kB / 2.227 GB, free: 67.16 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001199/6.685, allocations: 67.86 kB / 2.227 GB, free: 67.13 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.561e-05/6.685, allocations: 36.47 kB / 2.227 GB, free: 67.12 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.001423/6.686, allocations: 1.057 MB / 2.228 GB, free: 66.22 MB / 0.698 GB Notification: Performance of sort global known variables: time 9.42e-07/6.686, allocations: 0 / 2.228 GB, free: 66.22 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.003419/6.69, allocations: 1.063 MB / 2.229 GB, free: 65.16 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.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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (77): * Single equations (assignments): 69 * 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.004286/6.694, allocations: 3.515 MB / 2.232 GB, free: 61.73 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001922/6.696, allocations: 1.369 MB / 2.233 GB, free: 60.34 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 6.342e-06/6.696, allocations: 0 / 2.233 GB, free: 60.34 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0006995/6.697, allocations: 0.4898 MB / 2.234 GB, free: 59.84 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004081/6.701, allocations: 0.8439 MB / 2.235 GB, free: 59.02 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006829/6.708, allocations: 2.859 MB / 2.238 GB, free: 56.11 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001187/6.709, allocations: 1.44 MB / 2.239 GB, free: 54.64 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.002856/6.712, allocations: 0.563 MB / 2.24 GB, free: 54.12 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008948/6.713, allocations: 0.7179 MB / 2.24 GB, free: 53.4 MB / 0.698 GB Notification: Performance of SimCode: time 1.132e-06/6.713, allocations: 0 / 2.24 GB, free: 53.4 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1069/6.82, allocations: 59.97 MB / 2.299 GB, free: 10.42 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000205/6.82, allocations: 203.9 kB / 2.299 GB, free: 10.2 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.257/11.08, allocations: 4 kB / 2.299 GB, free: 10.2 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)