Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.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_T,fileNamePrefix="Buildings_8_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="Buildings_8_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T",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.753/1.753, allocations: 292.6 MB / 307.5 MB, free: 5.207 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.001219/0.00122, allocations: 181 kB / 377.1 MB, free: 1.547 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.491/1.491, allocations: 205.4 MB / 0.6366 GB, free: 8.656 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.001036/0.001036, allocations: 94.5 kB / 0.7509 GB, free: 63.07 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004826/0.0004828, allocations: 12 kB / 0.8749 GB, free: 11.12 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2384/0.2389, allocations: 116.3 MB / 0.9884 GB, free: 6.664 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.382/1.62, allocations: 455.5 MB / 1.433 GB, free: 240.9 MB / 0.9323 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003512/1.621, allocations: 101.6 kB / 1.433 GB, free: 240.9 MB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 3.932/5.553, allocations: 1.171 GB / 2.604 GB, free: 120.9 MB / 0.9636 GB Notification: Performance of FrontEnd: time 3.717e-06/5.553, allocations: 0 / 2.604 GB, free: 120.9 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 0.0005223/5.553, allocations: 55.97 kB / 2.604 GB, free: 120.9 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: 282 * Number of variables: 282 Notification: Performance of Generate backend data structure: time 0.01113/5.564, allocations: 2.578 MB / 2.607 GB, free: 119.7 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 5.472e-05/5.564, allocations: 14.19 kB / 2.607 GB, free: 119.7 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007358/5.565, allocations: 169 kB / 2.607 GB, free: 119.7 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002623/5.568, allocations: 460.2 kB / 2.607 GB, free: 119.6 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006983/5.575, allocations: 2.313 MB / 2.61 GB, free: 119.1 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001117/5.575, allocations: 97.25 kB / 2.61 GB, free: 119.1 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002205/5.575, allocations: 127.3 kB / 2.61 GB, free: 119.1 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002374/5.577, allocations: 1.324 MB / 2.611 GB, free: 118.8 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.444e-05/5.578, allocations: 0 / 2.611 GB, free: 118.8 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000112/5.578, allocations: 47.47 kB / 2.611 GB, free: 118.8 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.828e-05/5.578, allocations: 32.94 kB / 2.611 GB, free: 118.8 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001977/5.58, allocations: 0.9636 MB / 2.612 GB, free: 118.8 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.008721/5.588, allocations: 6.888 MB / 2.619 GB, free: 114.7 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001867/5.59, allocations: 1.27 MB / 2.62 GB, free: 114.1 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004326/5.595, allocations: 2.885 MB / 2.623 GB, free: 112.2 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008235/5.595, allocations: 416.6 kB / 2.623 GB, free: 112.1 MB / 0.9636 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006291/5.596, allocations: 92.77 kB / 2.623 GB, free: 112.1 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=61): time 3.357e-06/5.596, allocations: 2.844 kB / 2.623 GB, free: 112.1 MB / 0.9636 GB Notification: Performance of matching and sorting (n=61): time 0.002508/5.599, allocations: 1.118 MB / 2.625 GB, free: 111.9 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.872e-05/5.599, allocations: 164.2 kB / 2.625 GB, free: 111.7 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001976/5.601, allocations: 1.366 MB / 2.626 GB, free: 111.5 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 7.82e-05/5.601, allocations: 44.14 kB / 2.626 GB, free: 111.5 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006911/5.602, allocations: 0.8931 MB / 2.627 GB, free: 111.2 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001595/5.602, allocations: 214.4 kB / 2.627 GB, free: 111 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.976e-05/5.602, allocations: 23 kB / 2.627 GB, free: 111 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 8.035e-05/5.602, allocations: 341.1 kB / 2.628 GB, free: 110.7 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006769/5.603, allocations: 328.4 kB / 2.628 GB, free: 110.7 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008988/5.603, allocations: 0.7621 MB / 2.629 GB, free: 110.2 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008502/5.604, allocations: 464.7 kB / 2.629 GB, free: 110.2 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.745e-06/5.604, allocations: 3.781 kB / 2.629 GB, free: 110.2 MB / 0.9636 GB Notification: Performance of matching and sorting (n=126) (initialization): time 0.00224/5.607, allocations: 1.223 MB / 2.63 GB, free: 110 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009644/5.608, allocations: 4.54 MB / 2.635 GB, free: 105.2 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.976e-05/5.608, allocations: 22.69 kB / 2.635 GB, free: 105.2 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.122e-05/5.608, allocations: 19.97 kB / 2.635 GB, free: 105.2 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009413/5.609, allocations: 245.1 kB / 2.635 GB, free: 105.2 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.838e-05/5.609, allocations: 25.86 kB / 2.635 GB, free: 105.2 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001416/5.61, allocations: 118 kB / 2.635 GB, free: 105.2 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001132/5.61, allocations: 61.45 kB / 2.635 GB, free: 105.2 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 8.566e-06/5.61, allocations: 1.75 kB / 2.635 GB, free: 105.2 MB / 0.9636 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001948/5.612, allocations: 1.047 MB / 2.636 GB, free: 105.2 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.866e-05/5.612, allocations: 11.22 kB / 2.636 GB, free: 105.2 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.556e-05/5.612, allocations: 19.91 kB / 2.636 GB, free: 105.2 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008867/5.613, allocations: 248 kB / 2.636 GB, free: 105.2 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.785e-05/5.613, allocations: 27.08 kB / 2.636 GB, free: 105.2 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001252/5.614, allocations: 114 kB / 2.637 GB, free: 105.2 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.966e-05/5.614, allocations: 54.42 kB / 2.637 GB, free: 105.2 MB / 0.9636 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * 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.001057/5.616, allocations: 497.2 kB / 2.637 GB, free: 105 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002184/5.616, allocations: 167 kB / 2.637 GB, free: 104.9 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002161/5.618, allocations: 1.06 MB / 2.638 GB, free: 104.8 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.757e-05/5.618, allocations: 17.83 kB / 2.638 GB, free: 104.8 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.264e-06/5.618, allocations: 0 / 2.638 GB, free: 104.8 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001418/5.619, allocations: 0.8947 MB / 2.639 GB, free: 104.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.003976/5.623, allocations: 2.268 MB / 2.641 GB, free: 104.1 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.041e-06/5.623, allocations: 0 / 2.641 GB, free: 104.1 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006715/5.624, allocations: 134.9 kB / 2.642 GB, free: 104.1 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001901/5.624, allocations: 31.7 kB / 2.642 GB, free: 104.1 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.517e-05/5.624, allocations: 24.77 kB / 2.642 GB, free: 104.1 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008998/5.625, allocations: 1.313 MB / 2.643 GB, free: 102.9 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/5.625, allocations: 0 / 2.643 GB, free: 102.9 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002543/5.628, allocations: 1.485 MB / 2.644 GB, free: 102.5 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008347/5.629, allocations: 339.6 kB / 2.645 GB, free: 102.3 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002375/5.629, allocations: 18.98 kB / 2.645 GB, free: 102.3 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009415/5.63, allocations: 110.6 kB / 2.645 GB, free: 102.3 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001258/5.63, allocations: 54.39 kB / 2.645 GB, free: 102.3 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.541e-05/5.63, allocations: 29.73 kB / 2.645 GB, free: 102.3 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 0.001618/5.632, allocations: 1.1 MB / 2.646 GB, free: 102.2 MB / 0.9636 GB Notification: Performance of sort global known variables: time 2.1e-07/5.632, allocations: 0 / 2.646 GB, free: 102.2 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.003644/5.635, allocations: 1.037 MB / 2.647 GB, free: 102 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.outCon.T) * 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 (70): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.005458/5.641, allocations: 3.393 MB / 2.65 GB, free: 100.8 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.002996/5.644, allocations: 1.553 MB / 2.652 GB, free: 100.6 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 5.73e-06/5.644, allocations: 2.094 kB / 2.652 GB, free: 100.6 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.0012/5.645, allocations: 0.5074 MB / 2.652 GB, free: 100.5 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003976/5.649, allocations: 0.7346 MB / 2.653 GB, free: 100.5 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009412/5.659, allocations: 12.59 MB / 2.665 GB, free: 90.34 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008884/5.659, allocations: 1.406 MB / 2.667 GB, free: 89.63 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 0.002087/5.662, allocations: 437.8 kB / 2.667 GB, free: 89.61 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008688/5.662, allocations: 0.7172 MB / 2.668 GB, free: 89.6 MB / 0.9636 GB Notification: Performance of SimCode: time 1.372e-06/5.662, allocations: 0 / 2.668 GB, free: 89.6 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09383/5.756, allocations: 53.36 MB / 2.72 GB, free: 85.32 MB / 0.9636 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001994/5.757, allocations: 259.2 kB / 2.72 GB, free: 85.06 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.912/10.67, allocations: 0 / 2.72 GB, free: 85.06 MB / 0.9636 GB (rm -f Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T.fmu > Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1)