Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.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.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="Buildings_maint_8_0_x_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.0.1-maint.8.0.x/package.mo): time 1.772/1.772, allocations: 285.6 MB / 293.1 MB, free: 10.23 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.001283/0.001284, allocations: 180.9 kB / 361.4 MB, free: 6.836 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.781/1.781, allocations: 205.2 MB / 0.62 GB, free: 11.66 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.0008712/0.0008712, allocations: 103.1 kB / 0.733 GB, free: 44.18 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.978e-05/2.982e-05, allocations: 4 kB / 0.8518 GB, free: 2.656 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7907/0.7907, allocations: 115.3 MB / 0.9644 GB, free: 78.91 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.225/2.016, allocations: 447.3 MB / 1.401 GB, free: 120.8 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002252/2.016, allocations: 94.81 kB / 1.401 GB, free: 120.7 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 4.385/6.401, allocations: 1.128 GB / 2.529 GB, free: 147.7 MB / 0.948 GB Notification: Performance of FrontEnd: time 2.044e-06/6.401, allocations: 6.344 kB / 2.529 GB, free: 147.7 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.0004031/6.402, allocations: 56.73 kB / 2.529 GB, free: 147.7 MB / 0.948 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.00661/6.408, allocations: 2.186 MB / 2.531 GB, free: 146.1 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 5.044e-05/6.408, allocations: 11 kB / 2.531 GB, free: 146.1 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002375/6.411, allocations: 375.9 kB / 2.532 GB, free: 146 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007433/6.418, allocations: 2.469 MB / 2.534 GB, free: 144.3 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001048/6.418, allocations: 41.03 kB / 2.534 GB, free: 144.3 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004604/6.419, allocations: 80.12 kB / 2.534 GB, free: 144.3 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002299/6.421, allocations: 0.8599 MB / 2.535 GB, free: 143.9 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002698/6.424, allocations: 1.183 MB / 2.536 GB, free: 143.2 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.255e-05/6.424, allocations: 3.156 kB / 2.536 GB, free: 143.2 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000163/6.424, allocations: 9.688 kB / 2.536 GB, free: 143.2 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.419e-05/6.424, allocations: 29.5 kB / 2.536 GB, free: 143.2 MB / 0.948 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.009767/6.434, allocations: 6.94 MB / 2.543 GB, free: 137 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001273/6.435, allocations: 1.181 MB / 2.544 GB, free: 136.1 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000463/6.436, allocations: 335.6 kB / 2.545 GB, free: 135.9 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003696/6.439, allocations: 2.238 MB / 2.547 GB, free: 133.8 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000535/6.44, allocations: 372.9 kB / 2.547 GB, free: 133.6 MB / 0.948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008539/6.441, allocations: 65.62 kB / 2.547 GB, free: 133.6 MB / 0.948 GB Notification: Performance of pre-optimization done (n=68): time 5.179e-06/6.441, allocations: 0 / 2.547 GB, free: 133.6 MB / 0.948 GB Notification: Performance of matching and sorting (n=68): time 0.002156/6.443, allocations: 0.8108 MB / 2.548 GB, free: 133.2 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.86e-05/6.443, allocations: 168.5 kB / 2.548 GB, free: 133 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002151/6.445, allocations: 1.196 MB / 2.549 GB, free: 132.4 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 9.671e-05/6.445, allocations: 29.58 kB / 2.549 GB, free: 132.3 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007759/6.446, allocations: 0.8919 MB / 2.55 GB, free: 131.6 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.000227/6.446, allocations: 238.4 kB / 2.55 GB, free: 131.3 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.711e-05/6.446, allocations: 0 / 2.55 GB, free: 131.3 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 8.929e-05/6.446, allocations: 344.7 kB / 2.551 GB, free: 131 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004041/6.447, allocations: 284.4 kB / 2.551 GB, free: 130.9 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006312/6.448, allocations: 0.6525 MB / 2.552 GB, free: 130.3 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001309/6.449, allocations: 472.7 kB / 2.552 GB, free: 130 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.06e-05/6.449, allocations: 3.469 kB / 2.552 GB, free: 130 MB / 0.948 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.00241/6.451, allocations: 1.107 MB / 2.553 GB, free: 129.5 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009183/6.452, allocations: 3.729 MB / 2.557 GB, free: 125.5 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.049e-05/6.452, allocations: 11.88 kB / 2.557 GB, free: 125.5 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.435e-05/6.452, allocations: 14.12 kB / 2.557 GB, free: 125.5 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009368/6.453, allocations: 259.9 kB / 2.557 GB, free: 125.5 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.564e-05/6.453, allocations: 24.11 kB / 2.557 GB, free: 125.4 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001492/6.455, allocations: 113.1 kB / 2.557 GB, free: 125.4 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001321/6.455, allocations: 54.78 kB / 2.557 GB, free: 125.4 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.305e-05/6.455, allocations: 3.719 kB / 2.557 GB, free: 125.4 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001915/6.457, allocations: 0.8952 MB / 2.558 GB, free: 125 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.763e-05/6.457, allocations: 13.67 kB / 2.558 GB, free: 125 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.927e-05/6.457, allocations: 15.59 kB / 2.558 GB, free: 125 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000888/6.458, allocations: 250.6 kB / 2.558 GB, free: 124.9 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.881e-05/6.458, allocations: 19.3 kB / 2.558 GB, free: 124.9 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001564/6.459, allocations: 106 kB / 2.559 GB, free: 124.9 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001292/6.46, allocations: 52.98 kB / 2.559 GB, free: 124.9 MB / 0.948 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (121): * Single equations (assignments): 117 * 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.0003283/6.46, allocations: 144.1 kB / 2.559 GB, free: 124.7 MB / 0.948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001955/6.462, allocations: 0.7784 MB / 2.559 GB, free: 124.3 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004191/6.462, allocations: 165.1 kB / 2.56 GB, free: 124.3 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00253/6.465, allocations: 0.9787 MB / 2.561 GB, free: 123.7 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.03e-05/6.465, allocations: 13.86 kB / 2.561 GB, free: 123.7 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.187e-05/6.465, allocations: 0 / 2.561 GB, free: 123.7 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001414/6.466, allocations: 0.6983 MB / 2.561 GB, free: 123.4 MB / 0.948 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.005936/6.472, allocations: 2.134 MB / 2.563 GB, free: 121.9 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.528e-06/6.472, allocations: 0 / 2.563 GB, free: 121.9 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007964/6.473, allocations: 162.1 kB / 2.564 GB, free: 121.9 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002413/6.473, allocations: 34.12 kB / 2.564 GB, free: 121.9 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.498e-05/6.473, allocations: 11.61 kB / 2.564 GB, free: 121.9 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001059/6.475, allocations: 1.275 MB / 2.565 GB, free: 120.6 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/6.475, allocations: 0 / 2.565 GB, free: 120.6 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002635/6.477, allocations: 1.389 MB / 2.566 GB, free: 119.8 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001066/6.478, allocations: 344.7 kB / 2.566 GB, free: 119.5 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004879/6.479, allocations: 7.828 kB / 2.567 GB, free: 119.5 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001455/6.48, allocations: 97.73 kB / 2.567 GB, free: 119.5 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001405/6.48, allocations: 59.58 kB / 2.567 GB, free: 119.4 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001009/6.48, allocations: 32.81 kB / 2.567 GB, free: 119.4 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.001838/6.482, allocations: 0.9014 MB / 2.568 GB, free: 118.9 MB / 0.948 GB Notification: Performance of sort global known variables: time 1.4e-07/6.482, allocations: 0 / 2.568 GB, free: 118.9 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.004636/6.487, allocations: 1.077 MB / 2.569 GB, free: 118.6 MB / 0.948 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (76): * Single equations (assignments): 68 * 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.005415/6.492, allocations: 3.111 MB / 2.572 GB, free: 116.8 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.00235/6.495, allocations: 1.436 MB / 2.573 GB, free: 116.1 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/6.495, allocations: 0 / 2.573 GB, free: 116.1 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0007211/6.496, allocations: 463.5 kB / 2.573 GB, free: 115.9 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004142/6.5, allocations: 0.7401 MB / 2.574 GB, free: 115.5 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007415/6.507, allocations: 2.81 MB / 2.577 GB, free: 112.9 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001127/6.508, allocations: 1.443 MB / 2.578 GB, free: 111.4 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.002751/6.511, allocations: 0.5479 MB / 2.579 GB, free: 110.9 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008914/6.512, allocations: 0.7219 MB / 2.58 GB, free: 110.2 MB / 0.948 GB Notification: Performance of SimCode: time 1.352e-06/6.512, allocations: 0 / 2.58 GB, free: 110.2 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09678/6.609, allocations: 51.09 MB / 2.63 GB, free: 59.88 MB / 0.948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001644/6.609, allocations: 178.9 kB / 2.63 GB, free: 59.68 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.794/10.4, allocations: 7.938 kB / 2.63 GB, free: 59.68 MB / 0.948 GB (rm -f Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u.fmu > Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)