Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="Buildings_8_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="Buildings_8_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.747/1.747, allocations: 292.6 MB / 307.5 MB, free: 5.203 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001095/0.001095, allocations: 177.1 kB / 377.1 MB, free: 1.52 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.72/1.72, allocations: 205.4 MB / 0.6366 GB, free: 9.57 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009314/0.0009313, allocations: 98.2 kB / 0.7509 GB, free: 62.7 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003342/0.0003343, allocations: 12 kB / 0.8749 GB, free: 11.25 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2593/0.2597, allocations: 116.3 MB / 0.9884 GB, free: 6.793 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.596/1.855, allocations: 449 MB / 1.427 GB, free: 242.6 MB / 0.9323 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002758/1.856, allocations: 96.98 kB / 1.427 GB, free: 242.6 MB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 4.799/6.654, allocations: 1.137 GB / 2.564 GB, free: 122 MB / 0.9636 GB Notification: Performance of FrontEnd: time 4.679e-06/6.655, allocations: 0 / 2.564 GB, free: 122 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 0.0007572/6.655, allocations: 57.33 kB / 2.564 GB, free: 122 MB / 0.9636 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 311 * Number of variables: 311 Notification: Performance of Generate backend data structure: time 0.01401/6.669, allocations: 2.683 MB / 2.567 GB, free: 120.9 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 8.227e-05/6.669, allocations: 9.188 kB / 2.567 GB, free: 120.9 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001301/6.671, allocations: 183.7 kB / 2.567 GB, free: 120.9 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003486/6.674, allocations: 375.8 kB / 2.567 GB, free: 120.8 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009633/6.684, allocations: 2.499 MB / 2.57 GB, free: 120.3 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001589/6.684, allocations: 101.9 kB / 2.57 GB, free: 120.3 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003292/6.684, allocations: 131.4 kB / 2.57 GB, free: 120.3 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003048/6.688, allocations: 1.427 MB / 2.571 GB, free: 120 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.574e-05/6.688, allocations: 3.844 kB / 2.571 GB, free: 120 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001216/6.688, allocations: 56.83 kB / 2.571 GB, free: 120 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.88e-05/6.688, allocations: 40.55 kB / 2.571 GB, free: 120 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002021/6.69, allocations: 1.027 MB / 2.572 GB, free: 120 MB / 0.9636 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.01081/6.701, allocations: 7.152 MB / 2.579 GB, free: 116 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002067/6.703, allocations: 1.29 MB / 2.58 GB, free: 115.4 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004135/6.707, allocations: 2.239 MB / 2.583 GB, free: 114.1 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009503/6.708, allocations: 451.5 kB / 2.583 GB, free: 114 MB / 0.9636 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009332/6.709, allocations: 95.89 kB / 2.583 GB, free: 114 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=69): time 3.196e-06/6.709, allocations: 0 / 2.583 GB, free: 114 MB / 0.9636 GB Notification: Performance of matching and sorting (n=69): time 0.003057/6.712, allocations: 1.218 MB / 2.584 GB, free: 113.7 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.475e-05/6.712, allocations: 164 kB / 2.585 GB, free: 113.6 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002624/6.715, allocations: 1.308 MB / 2.586 GB, free: 113.4 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 0.0001102/6.715, allocations: 48.14 kB / 2.586 GB, free: 113.4 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 0.001005/6.716, allocations: 0.8982 MB / 2.587 GB, free: 113 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002866/6.716, allocations: 246 kB / 2.587 GB, free: 112.9 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.694e-05/6.716, allocations: 19.5 kB / 2.587 GB, free: 112.9 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 0.0001214/6.716, allocations: 345.4 kB / 2.587 GB, free: 112.6 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008489/6.717, allocations: 346.8 kB / 2.588 GB, free: 112.6 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001034/6.718, allocations: 0.7238 MB / 2.588 GB, free: 112.1 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009513/6.719, allocations: 477.8 kB / 2.589 GB, free: 112.1 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.105e-05/6.719, allocations: 2.844 kB / 2.589 GB, free: 112.1 MB / 0.9636 GB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002893/6.722, allocations: 1.232 MB / 2.59 GB, free: 111.9 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 0.001028/6.723, allocations: 3.737 MB / 2.594 GB, free: 108 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.545e-05/6.723, allocations: 10.72 kB / 2.594 GB, free: 108 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.18e-05/6.723, allocations: 15.44 kB / 2.594 GB, free: 108 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001114/6.724, allocations: 257.6 kB / 2.594 GB, free: 108 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.845e-05/6.724, allocations: 21.59 kB / 2.594 GB, free: 108 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001965/6.726, allocations: 130.3 kB / 2.594 GB, free: 108 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001461/6.726, allocations: 54.31 kB / 2.594 GB, free: 108 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.385e-05/6.726, allocations: 4.188 kB / 2.594 GB, free: 108 MB / 0.9636 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002298/6.729, allocations: 1.058 MB / 2.595 GB, free: 107.9 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.816e-05/6.729, allocations: 17.03 kB / 2.595 GB, free: 107.9 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.514e-05/6.729, allocations: 18.91 kB / 2.595 GB, free: 107.9 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00103/6.73, allocations: 247.8 kB / 2.595 GB, free: 107.9 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.797e-05/6.73, allocations: 18.25 kB / 2.595 GB, free: 107.9 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002001/6.732, allocations: 136.8 kB / 2.596 GB, free: 107.9 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001364/6.732, allocations: 50.97 kB / 2.596 GB, free: 107.9 MB / 0.9636 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * 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 (122): * Single equations (assignments): 118 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 1 * 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.001734/6.734, allocations: 0.4924 MB / 2.596 GB, free: 107.7 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005797/6.734, allocations: 165.6 kB / 2.596 GB, free: 107.6 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003028/6.737, allocations: 1.099 MB / 2.597 GB, free: 107.6 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-05/6.737, allocations: 12.41 kB / 2.597 GB, free: 107.6 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.141e-05/6.737, allocations: 0 / 2.597 GB, free: 107.6 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001878/6.739, allocations: 0.7946 MB / 2.598 GB, free: 107.5 MB / 0.9636 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.006362/6.746, allocations: 2.397 MB / 2.6 GB, free: 107.1 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.955e-06/6.746, allocations: 1.188 kB / 2.6 GB, free: 107.1 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008923/6.747, allocations: 163 kB / 2.601 GB, free: 107.1 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002503/6.747, allocations: 28.44 kB / 2.601 GB, free: 107.1 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.755e-05/6.747, allocations: 22.64 kB / 2.601 GB, free: 107.1 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001121/6.748, allocations: 1.318 MB / 2.602 GB, free: 105.8 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/6.748, allocations: 4.219 kB / 2.602 GB, free: 105.8 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003941/6.752, allocations: 1.566 MB / 2.603 GB, free: 105.5 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001557/6.754, allocations: 346 kB / 2.604 GB, free: 105.3 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002314/6.754, allocations: 20.08 kB / 2.604 GB, free: 105.3 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001212/6.755, allocations: 109.5 kB / 2.604 GB, free: 105.3 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002047/6.755, allocations: 60.53 kB / 2.604 GB, free: 105.3 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001247/6.756, allocations: 37.88 kB / 2.604 GB, free: 105.3 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 0.002098/6.758, allocations: 1.007 MB / 2.605 GB, free: 105.2 MB / 0.9636 GB Notification: Performance of sort global known variables: time 2.51e-07/6.758, allocations: 0 / 2.605 GB, free: 105.2 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.006151/6.764, allocations: 1.134 MB / 2.606 GB, free: 105 MB / 0.9636 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (vol.dynBal.U,mov.filter.x[1],mov.filter.x[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 (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.007707/6.772, allocations: 3.311 MB / 2.609 GB, free: 103.8 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.004118/6.776, allocations: 1.602 MB / 2.611 GB, free: 103.6 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 9.357e-06/6.776, allocations: 0 / 2.611 GB, free: 103.6 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.001272/6.777, allocations: 0.534 MB / 2.611 GB, free: 103.5 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004248/6.781, allocations: 0.7659 MB / 2.612 GB, free: 103.5 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01073/6.792, allocations: 11.33 MB / 2.623 GB, free: 94.65 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001042/6.793, allocations: 1.442 MB / 2.625 GB, free: 93.93 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 0.002335/6.796, allocations: 418.3 kB / 2.625 GB, free: 93.91 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009773/6.796, allocations: 0.7487 MB / 2.626 GB, free: 93.9 MB / 0.9636 GB Notification: Performance of SimCode: time 9.658e-06/6.797, allocations: 0 / 2.626 GB, free: 93.9 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1055/6.902, allocations: 54.22 MB / 2.679 GB, free: 90.88 MB / 0.9636 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001829/6.902, allocations: 239.4 kB / 2.679 GB, free: 90.63 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.514/11.42, allocations: 3.828 kB / 2.679 GB, free: 90.63 MB / 0.9636 GB (rm -f Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u.fmu > Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)