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-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_IDEAS_Fluid_HeatExchangers_Examples_WaterHeater_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="IDEAS_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.002039/0.002039, allocations: 174.7 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.8381/0.8381, 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.718/1.718, 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.001197/0.001197, allocations: 103.8 kB / 483.3 MB, free: 5.871 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 4.43e-05/4.446e-05, allocations: 3.25 kB / 0.5601 GB, free: 87.86 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2095/0.2096, allocations: 82.3 MB / 0.6405 GB, free: 7.758 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.601/1.81, allocations: 408.2 MB / 1.039 GB, free: 187.1 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002956/1.811, allocations: 93.2 kB / 1.039 GB, free: 187 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 4.37/6.181, allocations: 1.149 GB / 2.188 GB, free: 89.09 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.974e-06/6.181, allocations: 0 / 2.188 GB, free: 89.09 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0002325/6.181, allocations: 62.12 kB / 2.188 GB, free: 89.07 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.004642/6.186, allocations: 2.133 MB / 2.19 GB, free: 87.52 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.861e-05/6.186, allocations: 10.19 kB / 2.19 GB, free: 87.52 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002435/6.186, allocations: 183 kB / 2.19 GB, free: 87.37 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00156/6.188, allocations: 382.3 kB / 2.191 GB, free: 87.2 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005788/6.193, allocations: 2.449 MB / 2.193 GB, free: 85.58 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.932e-05/6.194, allocations: 102 kB / 2.193 GB, free: 85.54 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001966/6.194, allocations: 132.1 kB / 2.193 GB, free: 85.5 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002235/6.196, allocations: 1.332 MB / 2.195 GB, free: 84.64 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.081e-05/6.196, allocations: 7.938 kB / 2.195 GB, free: 84.64 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001133/6.196, allocations: 53.73 kB / 2.195 GB, free: 84.6 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.976e-05/6.196, allocations: 48.91 kB / 2.195 GB, free: 84.59 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001437/6.198, allocations: 0.9162 MB / 2.196 GB, free: 84.18 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.008341/6.206, allocations: 7.19 MB / 2.203 GB, free: 77.89 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001124/6.207, allocations: 1.154 MB / 2.204 GB, free: 76.98 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005195/6.208, allocations: 386.4 kB / 2.204 GB, free: 76.8 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004511/6.212, allocations: 2.615 MB / 2.207 GB, free: 74.52 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006099/6.213, allocations: 421.5 kB / 2.207 GB, free: 74.26 MB / 0.698 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006875/6.214, allocations: 92.7 kB / 2.207 GB, free: 74.21 MB / 0.698 GB Notification: Performance of pre-optimization done (n=66): time 6.422e-06/6.214, allocations: 0 / 2.207 GB, free: 74.21 MB / 0.698 GB Notification: Performance of matching and sorting (n=66): time 0.001586/6.215, allocations: 0.7127 MB / 2.208 GB, free: 73.84 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001096/6.215, allocations: 172.2 kB / 2.208 GB, free: 73.65 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002949/6.218, allocations: 1.27 MB / 2.209 GB, free: 73.04 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0001078/6.218, allocations: 48.75 kB / 2.209 GB, free: 72.99 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.001062/6.219, allocations: 0.8944 MB / 2.21 GB, free: 72.2 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002799/6.22, allocations: 236.3 kB / 2.21 GB, free: 72 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.193e-05/6.22, allocations: 19.78 kB / 2.21 GB, free: 71.99 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001109/6.22, allocations: 341.7 kB / 2.211 GB, free: 71.66 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004728/6.22, allocations: 263.4 kB / 2.211 GB, free: 71.55 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008001/6.221, allocations: 0.6446 MB / 2.212 GB, free: 70.89 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007191/6.222, allocations: 401.7 kB / 2.212 GB, free: 70.51 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.76e-05/6.222, allocations: 4 kB / 2.212 GB, free: 70.51 MB / 0.698 GB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002172/6.224, allocations: 1.07 MB / 2.213 GB, free: 69.43 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.001438/6.226, allocations: 3.999 MB / 2.217 GB, free: 65.09 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.158e-05/6.226, allocations: 12 kB / 2.217 GB, free: 65.08 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.424e-05/6.226, allocations: 16 kB / 2.217 GB, free: 65.07 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009553/6.227, allocations: 243.6 kB / 2.217 GB, free: 64.83 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.422e-05/6.227, allocations: 16.69 kB / 2.217 GB, free: 64.81 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001571/6.228, allocations: 123.8 kB / 2.217 GB, free: 64.69 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001281/6.228, allocations: 51.98 kB / 2.217 GB, free: 64.64 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.449e-05/6.228, allocations: 4 kB / 2.217 GB, free: 64.64 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001681/6.23, allocations: 0.895 MB / 2.218 GB, free: 63.73 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.589e-05/6.23, allocations: 12 kB / 2.218 GB, free: 63.72 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.238e-05/6.23, allocations: 16 kB / 2.218 GB, free: 63.71 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008862/6.231, allocations: 231.6 kB / 2.219 GB, free: 63.48 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.297e-05/6.231, allocations: 27.48 kB / 2.219 GB, free: 63.46 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001518/6.233, allocations: 107.9 kB / 2.219 GB, free: 63.35 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001263/6.233, allocations: 51.98 kB / 2.219 GB, free: 63.3 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.0003383/6.233, allocations: 178.7 kB / 2.219 GB, free: 63.12 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004085/6.234, allocations: 165.9 kB / 2.219 GB, free: 62.96 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002204/6.236, allocations: 0.9447 MB / 2.22 GB, free: 62.01 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.955e-05/6.236, allocations: 8 kB / 2.22 GB, free: 62 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.367e-06/6.236, allocations: 1.969 kB / 2.22 GB, free: 62 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009058/6.237, allocations: 0.6588 MB / 2.221 GB, free: 61.33 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.004618/6.241, allocations: 2.527 MB / 2.223 GB, free: 58.74 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.943e-06/6.241, allocations: 4 kB / 2.223 GB, free: 58.73 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006913/6.242, allocations: 143.8 kB / 2.223 GB, free: 58.59 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000185/6.242, allocations: 37 kB / 2.223 GB, free: 58.55 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.792e-05/6.242, allocations: 23.98 kB / 2.223 GB, free: 58.53 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008029/6.243, allocations: 1.315 MB / 2.225 GB, free: 57.09 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/6.243, allocations: 0 / 2.225 GB, free: 57.09 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001906/6.245, allocations: 1.492 MB / 2.226 GB, free: 55.5 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008846/6.246, allocations: 374.6 kB / 2.226 GB, free: 55.11 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000468/6.247, allocations: 16 kB / 2.226 GB, free: 55.09 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001353/6.248, allocations: 111.8 kB / 2.227 GB, free: 54.98 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001424/6.248, allocations: 56.7 kB / 2.227 GB, free: 54.93 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.044e-05/6.248, allocations: 39.97 kB / 2.227 GB, free: 54.89 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.001651/6.25, allocations: 1.057 MB / 2.228 GB, free: 53.8 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.763e-06/6.25, allocations: 0 / 2.228 GB, free: 53.8 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.004028/6.254, allocations: 1.06 MB / 2.229 GB, free: 52.74 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.004636/6.258, allocations: 3.529 MB / 2.232 GB, free: 49.27 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.002104/6.261, allocations: 1.372 MB / 2.233 GB, free: 47.88 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/6.261, allocations: 7.938 kB / 2.233 GB, free: 47.87 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0007113/6.261, allocations: 492.7 kB / 2.234 GB, free: 47.38 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004124/6.265, allocations: 0.8432 MB / 2.235 GB, free: 46.55 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006548/6.272, allocations: 2.869 MB / 2.238 GB, free: 43.64 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001054/6.273, allocations: 1.44 MB / 2.239 GB, free: 42.17 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.002765/6.276, allocations: 0.5687 MB / 2.24 GB, free: 41.64 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008363/6.277, allocations: 0.7218 MB / 2.24 GB, free: 40.92 MB / 0.698 GB Notification: Performance of SimCode: time 1.122e-06/6.277, allocations: 0 / 2.24 GB, free: 40.92 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6154/6.892, allocations: 59.94 MB / 2.299 GB, free: 99.95 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001623/6.892, allocations: 209 kB / 2.299 GB, free: 99.72 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.552/11.44, allocations: 0 / 2.299 GB, free: 99.72 MB / 0.7136 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_HeatExchangers_Examples_WaterHeater_u_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_HeatExchangers_Examples_WaterHeater_u.fmu > IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)