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.682/1.682, allocations: 289.7 MB / 302.2 MB, free: 2.168 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.001186/0.001187, allocations: 183.3 kB / 371.6 MB, free: 3.379 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.795/1.795, allocations: 205.1 MB / 0.6309 GB, free: 11.76 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.0009965/0.0009965, allocations: 89.09 kB / 0.745 GB, free: 54.69 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 4.848e-05/4.885e-05, allocations: 4 kB / 0.8663 GB, free: 14.98 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3183/0.3184, allocations: 116.3 MB / 0.9799 GB, free: 10.51 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 2.144/2.463, allocations: 448.9 MB / 1.418 GB, free: 252.5 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003234/2.463, allocations: 94.36 kB / 1.418 GB, free: 252.5 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 5.05/7.514, allocations: 1.133 GB / 2.552 GB, free: 122.2 MB / 0.9636 GB Notification: Performance of FrontEnd: time 2.605e-06/7.514, allocations: 2.406 kB / 2.552 GB, free: 122.2 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 0.0005325/7.514, allocations: 58.88 kB / 2.552 GB, free: 122.2 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.009198/7.523, allocations: 2.183 MB / 2.554 GB, free: 121.3 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 5.877e-05/7.523, allocations: 12.12 kB / 2.554 GB, free: 121.3 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007946/7.524, allocations: 183.2 kB / 2.554 GB, free: 121.3 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002363/7.527, allocations: 375 kB / 2.554 GB, free: 121.2 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007166/7.534, allocations: 2.463 MB / 2.557 GB, free: 120.8 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.843e-05/7.534, allocations: 104 kB / 2.557 GB, free: 120.8 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002076/7.534, allocations: 135.7 kB / 2.557 GB, free: 120.8 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002389/7.537, allocations: 1.357 MB / 2.558 GB, free: 120.5 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.48e-05/7.537, allocations: 3.938 kB / 2.558 GB, free: 120.5 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001237/7.537, allocations: 57.7 kB / 2.558 GB, free: 120.5 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.469e-05/7.537, allocations: 42.59 kB / 2.559 GB, free: 120.5 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001547/7.538, allocations: 0.9125 MB / 2.559 GB, free: 120.5 MB / 0.9636 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.01061/7.549, allocations: 7.156 MB / 2.566 GB, free: 116.5 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001583/7.551, allocations: 1.19 MB / 2.568 GB, free: 115.9 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005823/7.551, allocations: 340.5 kB / 2.568 GB, free: 115.9 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005304/7.556, allocations: 2.268 MB / 2.57 GB, free: 114.5 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008336/7.557, allocations: 394.2 kB / 2.57 GB, free: 114.5 MB / 0.9636 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001102/7.558, allocations: 88.52 kB / 2.571 GB, free: 114.4 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=68): time 4.068e-06/7.558, allocations: 2.875 kB / 2.571 GB, free: 114.4 MB / 0.9636 GB Notification: Performance of matching and sorting (n=68): time 0.001745/7.56, allocations: 0.7418 MB / 2.571 GB, free: 114.3 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.021e-05/7.56, allocations: 164.3 kB / 2.571 GB, free: 114.1 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002372/7.563, allocations: 1.292 MB / 2.573 GB, free: 113.9 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 9.218e-05/7.563, allocations: 46.2 kB / 2.573 GB, free: 113.9 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 0.001152/7.564, allocations: 0.8987 MB / 2.574 GB, free: 113.6 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002863/7.564, allocations: 243.2 kB / 2.574 GB, free: 113.4 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.195e-05/7.564, allocations: 24.52 kB / 2.574 GB, free: 113.4 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 0.0001369/7.564, allocations: 341.8 kB / 2.574 GB, free: 113.1 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005431/7.565, allocations: 290.2 kB / 2.574 GB, free: 113.1 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009298/7.566, allocations: 0.6719 MB / 2.575 GB, free: 112.7 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008483/7.567, allocations: 419.5 kB / 2.576 GB, free: 112.6 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.109e-05/7.567, allocations: 3.094 kB / 2.576 GB, free: 112.6 MB / 0.9636 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002515/7.569, allocations: 1.116 MB / 2.577 GB, free: 112.5 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 0.001612/7.571, allocations: 3.738 MB / 2.58 GB, free: 108.5 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.869e-05/7.571, allocations: 10.45 kB / 2.58 GB, free: 108.5 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.653e-05/7.571, allocations: 16.47 kB / 2.58 GB, free: 108.5 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001188/7.572, allocations: 252.3 kB / 2.581 GB, free: 108.5 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.229e-05/7.572, allocations: 21.92 kB / 2.581 GB, free: 108.5 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001862/7.574, allocations: 133 kB / 2.581 GB, free: 108.5 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002194/7.575, allocations: 51.27 kB / 2.581 GB, free: 108.5 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 2.098e-05/7.575, allocations: 4.391 kB / 2.581 GB, free: 108.5 MB / 0.9636 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002445/7.577, allocations: 0.9442 MB / 2.582 GB, free: 108.5 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.228e-05/7.577, allocations: 12.17 kB / 2.582 GB, free: 108.5 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.606e-05/7.577, allocations: 18.56 kB / 2.582 GB, free: 108.5 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001124/7.578, allocations: 249.1 kB / 2.582 GB, free: 108.5 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.735e-05/7.578, allocations: 21.36 kB / 2.582 GB, free: 108.5 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001764/7.58, allocations: 129.1 kB / 2.582 GB, free: 108.5 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001944/7.58, allocations: 56.34 kB / 2.582 GB, free: 108.5 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 () * 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.000428/7.581, allocations: 173.8 kB / 2.582 GB, free: 108.4 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000436/7.581, allocations: 170 kB / 2.582 GB, free: 108.3 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003114/7.584, allocations: 0.9813 MB / 2.583 GB, free: 108.2 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.526e-05/7.584, allocations: 7.922 kB / 2.583 GB, free: 108.2 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.569e-05/7.584, allocations: 5.266 kB / 2.583 GB, free: 108.2 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001266/7.586, allocations: 0.6847 MB / 2.584 GB, free: 108.1 MB / 0.9636 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.005238/7.591, allocations: 2.294 MB / 2.586 GB, free: 107.7 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.55e-06/7.591, allocations: 0 / 2.586 GB, free: 107.7 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007175/7.592, allocations: 154.1 kB / 2.586 GB, free: 107.7 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001912/7.592, allocations: 34.05 kB / 2.587 GB, free: 107.7 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.081e-05/7.592, allocations: 29.02 kB / 2.587 GB, free: 107.7 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008252/7.593, allocations: 1.304 MB / 2.588 GB, free: 106.5 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/7.593, allocations: 3.688 kB / 2.588 GB, free: 106.5 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00206/7.595, allocations: 1.394 MB / 2.589 GB, free: 106.1 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009615/7.596, allocations: 342 kB / 2.59 GB, free: 106 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004238/7.596, allocations: 22.19 kB / 2.59 GB, free: 106 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001364/7.598, allocations: 111.5 kB / 2.59 GB, free: 106 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001745/7.598, allocations: 58.08 kB / 2.59 GB, free: 106 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001015/7.598, allocations: 38.11 kB / 2.59 GB, free: 106 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 0.002317/7.6, allocations: 0.9897 MB / 2.591 GB, free: 105.8 MB / 0.9636 GB Notification: Performance of sort global known variables: time 2.2e-07/7.6, allocations: 0 / 2.591 GB, free: 105.8 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.005286/7.606, allocations: 1.135 MB / 2.592 GB, free: 105.6 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) * 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.005918/7.612, allocations: 3.155 MB / 2.595 GB, free: 104.5 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.003194/7.615, allocations: 1.502 MB / 2.596 GB, free: 104.2 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 8.356e-06/7.615, allocations: 3.25 kB / 2.596 GB, free: 104.2 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.0009369/7.616, allocations: 493.3 kB / 2.597 GB, free: 104.1 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004485/7.62, allocations: 0.77 MB / 2.598 GB, free: 104.1 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009205/7.629, allocations: 2.875 MB / 2.6 GB, free: 103.3 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001923/7.631, allocations: 1.451 MB / 2.602 GB, free: 102.5 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 0.003759/7.635, allocations: 0.5511 MB / 2.602 GB, free: 102.5 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001139/7.636, allocations: 0.716 MB / 2.603 GB, free: 102.5 MB / 0.9636 GB Notification: Performance of SimCode: time 1.283e-06/7.636, allocations: 0.875 kB / 2.603 GB, free: 102.5 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1178/7.754, allocations: 58.66 MB / 2.66 GB, free: 99.81 MB / 0.9636 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001867/7.754, allocations: 214.1 kB / 2.661 GB, free: 99.59 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.63/12.38, allocations: 0 / 2.661 GB, free: 99.59 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)