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.002349/0.002349, allocations: 180.9 kB / 7.651 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8623/0.8623, allocations: 133.6 MB / 141.6 MB, free: 2.957 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.655/1.655, allocations: 221.5 MB / 395.4 MB, free: 10.79 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.0009807/0.0009806, allocations: 100.5 kB / 478.2 MB, free: 1.309 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.563e-05/2.569e-05, allocations: 4 kB / 0.5535 GB, free: 8.961 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5792/0.5792, allocations: 82.3 MB / 0.6339 GB, free: 40.75 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.119/1.698, allocations: 407.5 MB / 1.032 GB, free: 10.48 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002664/1.699, allocations: 91.56 kB / 1.032 GB, free: 10.44 MB / 0.6667 GB Notification: Performance of FrontEnd - DAE generated: time 4.918/6.617, allocations: 1.143 GB / 2.175 GB, free: 82.52 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.385e-06/6.617, allocations: 1.875 kB / 2.175 GB, free: 82.52 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0005286/6.617, allocations: 50.73 kB / 2.175 GB, free: 82.52 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.007895/6.625, allocations: 2.136 MB / 2.177 GB, free: 81.63 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.93e-05/6.625, allocations: 9.406 kB / 2.177 GB, free: 81.63 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002258/6.627, allocations: 370.5 kB / 2.178 GB, free: 81.51 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006831/6.634, allocations: 2.454 MB / 2.18 GB, free: 81.15 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.203e-05/6.634, allocations: 41.31 kB / 2.18 GB, free: 81.15 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002204/6.635, allocations: 80.31 kB / 2.18 GB, free: 81.14 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001565/6.636, allocations: 0.853 MB / 2.181 GB, free: 81.14 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001818/6.638, allocations: 1.158 MB / 2.182 GB, free: 80.89 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.478e-05/6.638, allocations: 3.188 kB / 2.182 GB, free: 80.89 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001047/6.638, allocations: 3.531 kB / 2.182 GB, free: 80.89 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.797e-05/6.638, allocations: 50.27 kB / 2.182 GB, free: 80.88 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.008618/6.647, allocations: 6.978 MB / 2.189 GB, free: 76.95 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001007/6.648, allocations: 1.171 MB / 2.19 GB, free: 76.36 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004647/6.648, allocations: 359.6 kB / 2.191 GB, free: 76.35 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004261/6.653, allocations: 2.58 MB / 2.193 GB, free: 74.98 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005262/6.653, allocations: 399.9 kB / 2.194 GB, free: 74.9 MB / 0.698 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006626/6.654, allocations: 75.64 kB / 2.194 GB, free: 74.87 MB / 0.698 GB Notification: Performance of pre-optimization done (n=66): time 3.136e-06/6.654, allocations: 0 / 2.194 GB, free: 74.87 MB / 0.698 GB Notification: Performance of matching and sorting (n=66): time 0.001884/6.656, allocations: 0.7873 MB / 2.194 GB, free: 74.73 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.384e-05/6.656, allocations: 167.5 kB / 2.195 GB, free: 74.54 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00175/6.658, allocations: 1.184 MB / 2.196 GB, free: 74.38 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 7.562e-05/6.658, allocations: 32.86 kB / 2.196 GB, free: 74.34 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007639/6.658, allocations: 0.8864 MB / 2.197 GB, free: 74.02 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.000185/6.659, allocations: 228.1 kB / 2.197 GB, free: 73.88 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.223e-05/6.659, allocations: 0 / 2.197 GB, free: 73.88 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 9.155e-05/6.659, allocations: 341.3 kB / 2.197 GB, free: 73.57 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003758/6.659, allocations: 264.7 kB / 2.197 GB, free: 73.57 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005736/6.66, allocations: 0.6283 MB / 2.198 GB, free: 73.11 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001211/6.661, allocations: 447.9 kB / 2.198 GB, free: 73.1 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.736e-06/6.661, allocations: 3.625 kB / 2.198 GB, free: 73.1 MB / 0.698 GB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002095/6.663, allocations: 1.057 MB / 2.199 GB, free: 72.96 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007885/6.664, allocations: 3.997 MB / 2.203 GB, free: 68.76 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.713e-05/6.664, allocations: 11.22 kB / 2.203 GB, free: 68.76 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.082e-05/6.664, allocations: 17.69 kB / 2.203 GB, free: 68.76 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000876/6.665, allocations: 237.2 kB / 2.204 GB, free: 68.76 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.919e-05/6.665, allocations: 19.5 kB / 2.204 GB, free: 68.76 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001332/6.666, allocations: 96.25 kB / 2.204 GB, free: 68.75 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.328e-05/6.666, allocations: 56.09 kB / 2.204 GB, free: 68.75 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.197e-05/6.666, allocations: 6.594 kB / 2.204 GB, free: 68.75 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001736/6.668, allocations: 0.8439 MB / 2.205 GB, free: 68.73 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.115e-05/6.668, allocations: 8.938 kB / 2.205 GB, free: 68.73 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.526e-05/6.668, allocations: 17 kB / 2.205 GB, free: 68.73 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008051/6.669, allocations: 243.4 kB / 2.205 GB, free: 68.73 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.388e-05/6.669, allocations: 15.16 kB / 2.205 GB, free: 68.73 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001271/6.67, allocations: 97.42 kB / 2.205 GB, free: 68.73 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.272e-05/6.67, allocations: 48.7 kB / 2.205 GB, free: 68.73 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.0002427/6.671, allocations: 135.9 kB / 2.205 GB, free: 68.62 MB / 0.698 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001609/6.672, allocations: 0.7657 MB / 2.206 GB, free: 68.47 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001708/6.672, allocations: 162.9 kB / 2.206 GB, free: 68.39 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001957/6.674, allocations: 0.9371 MB / 2.207 GB, free: 68.3 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.405e-05/6.674, allocations: 12.69 kB / 2.207 GB, free: 68.3 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.797e-06/6.674, allocations: 3.281 kB / 2.207 GB, free: 68.3 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001125/6.676, allocations: 0.6662 MB / 2.208 GB, free: 68.2 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.003927/6.679, allocations: 2.337 MB / 2.21 GB, free: 67.69 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.616e-06/6.679, allocations: 4.438 kB / 2.21 GB, free: 67.69 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006734/6.68, allocations: 152.5 kB / 2.21 GB, free: 67.69 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001696/6.68, allocations: 28.39 kB / 2.21 GB, free: 67.68 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.354e-05/6.68, allocations: 17.22 kB / 2.21 GB, free: 67.68 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007236/6.681, allocations: 1.269 MB / 2.211 GB, free: 66.49 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.929e-06/6.681, allocations: 7.25 kB / 2.211 GB, free: 66.49 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002084/6.683, allocations: 1.478 MB / 2.213 GB, free: 66.03 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00068/6.684, allocations: 353.5 kB / 2.213 GB, free: 65.84 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001833/6.684, allocations: 6.969 kB / 2.213 GB, free: 65.84 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008894/6.685, allocations: 74.55 kB / 2.213 GB, free: 65.84 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001142/6.685, allocations: 64.52 kB / 2.213 GB, free: 65.84 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.786e-05/6.685, allocations: 35.7 kB / 2.213 GB, free: 65.84 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.001232/6.686, allocations: 0.8919 MB / 2.214 GB, free: 65.73 MB / 0.698 GB Notification: Performance of sort global known variables: time 2.5e-07/6.686, allocations: 0 / 2.214 GB, free: 65.73 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.004124/6.691, allocations: 1.044 MB / 2.215 GB, free: 65.54 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.004265/6.695, allocations: 3.468 MB / 2.219 GB, free: 63.93 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001959/6.697, allocations: 1.296 MB / 2.22 GB, free: 63.77 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/6.697, allocations: 0 / 2.22 GB, free: 63.77 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0006611/6.698, allocations: 475 kB / 2.22 GB, free: 63.67 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003561/6.701, allocations: 0.7221 MB / 2.221 GB, free: 63.66 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005428/6.707, allocations: 2.766 MB / 2.224 GB, free: 62.82 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007836/6.707, allocations: 1.438 MB / 2.225 GB, free: 62.09 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.002467/6.71, allocations: 0.5517 MB / 2.226 GB, free: 62.07 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008265/6.711, allocations: 0.7153 MB / 2.226 GB, free: 62.07 MB / 0.698 GB Notification: Performance of SimCode: time 1.272e-06/6.711, allocations: 0 / 2.226 GB, free: 62.07 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08739/6.798, allocations: 49.54 MB / 2.275 GB, free: 59.48 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001672/6.798, allocations: 152.8 kB / 2.275 GB, free: 59.3 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.945/10.74, allocations: 0 / 2.275 GB, free: 59.3 MB / 0.698 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)