Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="Buildings_maint_7_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_7_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 7.0.3-maint.7.0.x/package.mo): time 1.452/1.452, allocations: 251.9 MB / 266.9 MB, free: 11.07 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001148/0.001148, allocations: 179.1 kB / 326.5 MB, free: 2.242 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.863/1.863, allocations: 205.4 MB / 0.5775 GB, free: 20.29 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001075/0.001076, allocations: 90.34 kB / 0.6821 GB, free: 12.9 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003483/0.0003484, allocations: 12.97 kB / 0.7963 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2233/0.2236, allocations: 106.3 MB / 0.9001 GB, free: 63.86 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.03977/0.2635, allocations: 56.26 MB / 0.9551 GB, free: 7.449 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0235/0.287, allocations: 16.99 MB / 0.9717 GB, free: 6.434 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003076/0.2901, allocations: 75.44 kB / 0.9717 GB, free: 6.359 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.003686/0.2938, allocations: 1.003 MB / 0.9727 GB, free: 5.352 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.00816/0.302, allocations: 2.662 MB / 0.9753 GB, free: 2.688 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.009361/0.3114, allocations: 3.074 MB / 0.9783 GB, free: 15.65 MB / 0.6355 GB Notification: Performance of NFFlatten.flatten: time 0.006434/0.3179, allocations: 3.147 MB / 0.9814 GB, free: 12.49 MB / 0.6355 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002566/0.3204, allocations: 1.356 MB / 0.9827 GB, free: 11.11 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003385/0.3238, allocations: 1.452 MB / 0.9841 GB, free: 9.652 MB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001608/0.3255, allocations: 0.972 MB / 0.9851 GB, free: 8.676 MB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 0.0002093/0.3257, allocations: 72 kB / 0.9852 GB, free: 8.605 MB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00307/0.3288, allocations: 1.435 MB / 0.9866 GB, free: 7.168 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 0.0004242/0.3292, allocations: 406.4 kB / 0.987 GB, free: 6.77 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 0.0005982/0.3298, allocations: 448.6 kB / 0.9874 GB, free: 6.324 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.003467/0.3333, allocations: 2.661 MB / 0.99 GB, free: 3.656 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.3333, allocations: 0 / 0.99 GB, free: 3.656 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.314e-06/0.3333, allocations: 0 / 0.99 GB, free: 3.656 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 5.184e-05/0.3334, allocations: 0 / 0.99 GB, free: 3.656 MB / 0.6355 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.005381/0.3388, allocations: 2.333 MB / 0.9923 GB, free: 1.25 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.897e-05/0.3388, allocations: 15.97 kB / 0.9923 GB, free: 1.234 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003141/0.3392, allocations: 181.8 kB / 0.9924 GB, free: 1.047 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001544/0.3407, allocations: 389 kB / 0.9928 GB, free: 0.6641 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003644/0.3444, allocations: 1.649 MB / 0.9944 GB, free: 14.96 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000428/0.3448, allocations: 170.4 kB / 0.9946 GB, free: 14.8 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002051/0.345, allocations: 136 kB / 0.9947 GB, free: 14.66 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002635/0.3477, allocations: 1.438 MB / 0.9961 GB, free: 13.13 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.916e-05/0.3477, allocations: 0 / 0.9961 GB, free: 13.13 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001159/0.3478, allocations: 55.94 kB / 0.9962 GB, free: 13.08 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.873e-05/0.3479, allocations: 32 kB / 0.9962 GB, free: 13.05 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002453/0.3504, allocations: 1.125 MB / 0.9973 GB, free: 11.91 MB / 0.6511 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.009719/0.3601, allocations: 7.434 MB / 1.005 GB, free: 3.898 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00229/0.3624, allocations: 1.353 MB / 1.006 GB, free: 2.43 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004464/0.3669, allocations: 2.6 MB / 1.008 GB, free: 15.59 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0011/0.368, allocations: 458.8 kB / 1.009 GB, free: 15.13 MB / 0.6667 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008212/0.3688, allocations: 95.19 kB / 1.009 GB, free: 15.04 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=65): time 3.497e-06/0.3689, allocations: 4 kB / 1.009 GB, free: 15.04 MB / 0.6667 GB Notification: Performance of matching and sorting (n=65): time 0.003087/0.372, allocations: 1.28 MB / 1.01 GB, free: 13.73 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.334e-05/0.3721, allocations: 145 kB / 1.01 GB, free: 13.56 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002106/0.3742, allocations: 1.556 MB / 1.012 GB, free: 12 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 9.876e-05/0.3743, allocations: 49.64 kB / 1.012 GB, free: 11.95 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007914/0.3751, allocations: 0.8959 MB / 1.013 GB, free: 11.04 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002268/0.3753, allocations: 232.7 kB / 1.013 GB, free: 10.81 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.19e-05/0.3754, allocations: 20 kB / 1.013 GB, free: 10.79 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001446/0.3755, allocations: 345.9 kB / 1.013 GB, free: 10.45 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009267/0.3765, allocations: 382.1 kB / 1.014 GB, free: 10.08 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0012/0.3777, allocations: 0.7581 MB / 1.014 GB, free: 9.152 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001037/0.3787, allocations: 0.4961 MB / 1.015 GB, free: 8.652 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.917e-06/0.3787, allocations: 4 kB / 1.015 GB, free: 8.648 MB / 0.6667 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.002796/0.3815, allocations: 1.307 MB / 1.016 GB, free: 7.324 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.001696/0.3833, allocations: 3.828 MB / 1.02 GB, free: 3.168 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.632e-05/0.3833, allocations: 8 kB / 1.02 GB, free: 3.16 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.729e-05/0.3833, allocations: 19.94 kB / 1.02 GB, free: 3.141 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001098/0.3844, allocations: 267.6 kB / 1.02 GB, free: 2.879 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.035e-05/0.3845, allocations: 19.94 kB / 1.02 GB, free: 2.859 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001787/0.3863, allocations: 152.4 kB / 1.02 GB, free: 2.711 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001335/0.3864, allocations: 59.97 kB / 1.02 GB, free: 2.652 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.379e-05/0.3864, allocations: 4 kB / 1.02 GB, free: 2.648 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002435/0.3889, allocations: 1.132 MB / 1.022 GB, free: 1.512 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.657e-05/0.3889, allocations: 8.594 kB / 1.022 GB, free: 1.504 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.587e-05/0.3889, allocations: 20 kB / 1.022 GB, free: 1.484 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009269/0.3899, allocations: 255.6 kB / 1.022 GB, free: 1.234 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.695e-05/0.3899, allocations: 27.92 kB / 1.022 GB, free: 1.207 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001498/0.3914, allocations: 148.4 kB / 1.022 GB, free: 1.062 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.585e-05/0.3915, allocations: 51.98 kB / 1.022 GB, free: 1.012 MB / 0.6667 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * 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 (123): * Single equations (assignments): 119 * 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.000996/0.3925, allocations: 492.7 kB / 1.023 GB, free: 0.5195 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002945/0.3928, allocations: 173.8 kB / 1.023 GB, free: 356 kB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002616/0.3954, allocations: 1.131 MB / 1.024 GB, free: 15.2 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-05/0.3955, allocations: 11.98 kB / 1.024 GB, free: 15.19 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.018e-05/0.3955, allocations: 0 / 1.024 GB, free: 15.19 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00185/0.3974, allocations: 0.8238 MB / 1.025 GB, free: 14.35 MB / 0.6823 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.005062/0.4024, allocations: 2.628 MB / 1.027 GB, free: 11.63 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.211e-06/0.4025, allocations: 4.031 kB / 1.027 GB, free: 11.62 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007411/0.4032, allocations: 155.8 kB / 1.027 GB, free: 11.47 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002267/0.4034, allocations: 48.86 kB / 1.027 GB, free: 11.42 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.422e-05/0.4035, allocations: 27.94 kB / 1.027 GB, free: 11.39 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001336/0.4049, allocations: 1.39 MB / 1.029 GB, free: 9.867 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.4049, allocations: 4 kB / 1.029 GB, free: 9.863 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003467/0.4084, allocations: 1.768 MB / 1.031 GB, free: 7.98 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009518/0.4093, allocations: 374.7 kB / 1.031 GB, free: 7.594 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002096/0.4095, allocations: 23.98 kB / 1.031 GB, free: 7.57 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001094/0.4106, allocations: 123.7 kB / 1.031 GB, free: 7.449 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001436/0.4108, allocations: 68.36 kB / 1.031 GB, free: 7.383 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.964e-05/0.4109, allocations: 35.91 kB / 1.031 GB, free: 7.348 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.001852/0.4127, allocations: 1.129 MB / 1.032 GB, free: 6.195 MB / 0.6823 GB Notification: Performance of sort global known variables: time 2.304e-06/0.4128, allocations: 0 / 1.032 GB, free: 6.195 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.002978/0.4157, allocations: 0.9978 MB / 1.033 GB, free: 5.195 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (75): * Single equations (assignments): 67 * 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%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005082/0.4208, allocations: 3.281 MB / 1.036 GB, free: 1.836 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.003729/0.4246, allocations: 1.698 MB / 1.038 GB, free: 104 kB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 7.424e-06/0.4246, allocations: 384 / 1.038 GB, free: 104 kB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.001277/0.4259, allocations: 0.5724 MB / 1.039 GB, free: 15.52 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004247/0.4302, allocations: 0.8615 MB / 1.039 GB, free: 14.66 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01118/0.4414, allocations: 11.07 MB / 1.05 GB, free: 3.32 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001198/0.4426, allocations: 1.448 MB / 1.052 GB, free: 1.836 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.002412/0.445, allocations: 424.8 kB / 1.052 GB, free: 1.418 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001185/0.4462, allocations: 0.753 MB / 1.053 GB, free: 0.6641 MB / 0.698 GB Notification: Performance of SimCode: time 1.052e-06/0.4462, allocations: 0 / 1.053 GB, free: 0.6641 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4905/0.9367, allocations: 50.46 MB / 1.102 GB, free: 115.8 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002347/0.937, allocations: 248.5 kB / 1.102 GB, free: 115.5 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.733/4.67, allocations: 4.062 kB / 1.102 GB, free: 115.5 MB / 0.698 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u.fmu > Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)