Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.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_T,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="Buildings_maint_7_0_x_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 7.0.3-maint.7.0.x/package.mo): time 1.491/1.491, allocations: 251.9 MB / 266.8 MB, free: 11.02 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.00127/0.00127, allocations: 179.4 kB / 326.5 MB, free: 2.223 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.935/1.935, allocations: 205.4 MB / 0.5775 GB, free: 20.24 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.0008962/0.0008963, allocations: 87.16 kB / 0.6821 GB, free: 12.87 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003717/0.0003717, allocations: 10.88 kB / 0.7963 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2153/0.2157, allocations: 106.3 MB / 0.9001 GB, free: 63.82 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T): time 0.03066/0.2464, allocations: 44.87 MB / 0.944 GB, free: 18.83 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.01888/0.2653, allocations: 15.6 MB / 0.9592 GB, free: 3.199 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002622/0.268, allocations: 71.5 kB / 0.9593 GB, free: 3.129 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.002815/0.2708, allocations: 0.9627 MB / 0.9602 GB, free: 2.164 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.007422/0.2782, allocations: 2.329 MB / 0.9625 GB, free: 15.84 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.01003/0.2883, allocations: 2.945 MB / 0.9654 GB, free: 12.92 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.005649/0.2939, allocations: 2.753 MB / 0.968 GB, free: 10.16 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002265/0.2962, allocations: 1.238 MB / 0.9693 GB, free: 8.898 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003018/0.2993, allocations: 1.354 MB / 0.9706 GB, free: 7.535 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001719/0.301, allocations: 0.9176 MB / 0.9715 GB, free: 6.613 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 0.0002102/0.3012, allocations: 68 kB / 0.9715 GB, free: 6.547 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003102/0.3043, allocations: 1.365 MB / 0.9729 GB, free: 5.18 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.0004884/0.3048, allocations: 394.4 kB / 0.9732 GB, free: 4.793 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 0.0006872/0.3055, allocations: 404.6 kB / 0.9736 GB, free: 4.391 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.004091/0.3096, allocations: 2.424 MB / 0.976 GB, free: 1.961 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.3097, allocations: 0 / 0.976 GB, free: 1.961 MB / 0.6198 GB Notification: Performance of FrontEnd: time 3.286e-06/0.3097, allocations: 3.938 kB / 0.976 GB, free: 1.957 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 8.255e-05/0.3098, allocations: 0 / 0.976 GB, free: 1.957 MB / 0.6198 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.004482/0.3142, allocations: 2.224 MB / 0.9782 GB, free: 15.67 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.141e-05/0.3143, allocations: 12.03 kB / 0.9782 GB, free: 15.66 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002445/0.3146, allocations: 169 kB / 0.9783 GB, free: 15.48 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002065/0.3166, allocations: 496.8 kB / 0.9788 GB, free: 14.99 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003172/0.3198, allocations: 1.517 MB / 0.9803 GB, free: 13.43 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003848/0.3202, allocations: 170 kB / 0.9805 GB, free: 13.26 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001972/0.3204, allocations: 123.9 kB / 0.9806 GB, free: 13.14 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002668/0.3231, allocations: 1.379 MB / 0.9819 GB, free: 11.66 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.953e-05/0.3231, allocations: 4 kB / 0.9819 GB, free: 11.66 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001081/0.3233, allocations: 44 kB / 0.982 GB, free: 11.61 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.931e-05/0.3233, allocations: 32 kB / 0.982 GB, free: 11.58 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002792/0.3261, allocations: 1.12 MB / 0.9831 GB, free: 10.45 MB / 0.6355 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.01019/0.3363, allocations: 7.132 MB / 0.9901 GB, free: 2.754 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002681/0.339, allocations: 1.422 MB / 0.9915 GB, free: 1.211 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005129/0.3442, allocations: 3.075 MB / 0.9945 GB, free: 13.8 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001086/0.3453, allocations: 454.8 kB / 0.9949 GB, free: 13.34 MB / 0.6511 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000735/0.346, allocations: 95.14 kB / 0.995 GB, free: 13.25 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=61): time 2.945e-06/0.346, allocations: 0 / 0.995 GB, free: 13.25 MB / 0.6511 GB Notification: Performance of matching and sorting (n=61): time 0.003201/0.3492, allocations: 1.28 MB / 0.9962 GB, free: 11.94 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.229e-05/0.3493, allocations: 145 kB / 0.9964 GB, free: 11.77 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002294/0.3516, allocations: 1.602 MB / 0.9979 GB, free: 10.16 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 9.622e-05/0.3518, allocations: 37.7 kB / 0.998 GB, free: 10.12 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008616/0.3526, allocations: 0.892 MB / 0.9988 GB, free: 9.219 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002098/0.3528, allocations: 212.9 kB / 0.999 GB, free: 9.008 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.122e-05/0.3529, allocations: 20 kB / 0.9991 GB, free: 8.988 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001497/0.3531, allocations: 345.9 kB / 0.9994 GB, free: 8.645 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001005/0.3541, allocations: 389.8 kB / 0.9998 GB, free: 8.266 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001244/0.3553, allocations: 0.7852 MB / 1.001 GB, free: 7.293 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001078/0.3564, allocations: 0.4967 MB / 1.001 GB, free: 6.797 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.995e-06/0.3564, allocations: 4 kB / 1.001 GB, free: 6.793 MB / 0.6511 GB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002917/0.3594, allocations: 1.325 MB / 1.002 GB, free: 5.453 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0018/0.3612, allocations: 4.364 MB / 1.007 GB, free: 0.7148 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.796e-05/0.3612, allocations: 16 kB / 1.007 GB, free: 0.6992 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.566e-05/0.3613, allocations: 16 kB / 1.007 GB, free: 0.6836 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001081/0.3623, allocations: 271.6 kB / 1.007 GB, free: 428 kB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.939e-05/0.3624, allocations: 27.86 kB / 1.007 GB, free: 400 kB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001467/0.3639, allocations: 138.5 kB / 1.007 GB, free: 264 kB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001168/0.364, allocations: 63.92 kB / 1.007 GB, free: 200 kB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.166e-05/0.364, allocations: 4 kB / 1.007 GB, free: 196 kB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00257/0.3666, allocations: 1.145 MB / 1.008 GB, free: 15.04 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.883e-05/0.3666, allocations: 12 kB / 1.008 GB, free: 15.03 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.942e-05/0.3666, allocations: 20 kB / 1.008 GB, free: 15.01 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009876/0.3676, allocations: 268.2 kB / 1.008 GB, free: 14.75 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.961e-05/0.3677, allocations: 19.94 kB / 1.009 GB, free: 14.73 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001385/0.3691, allocations: 132.5 kB / 1.009 GB, free: 14.6 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.332e-05/0.3692, allocations: 59.86 kB / 1.009 GB, free: 14.54 MB / 0.6667 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * 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.001066/0.3702, allocations: 486.9 kB / 1.009 GB, free: 14.05 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002514/0.3705, allocations: 173.8 kB / 1.009 GB, free: 13.88 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002688/0.3732, allocations: 1.151 MB / 1.01 GB, free: 12.72 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.83e-05/0.3732, allocations: 11.98 kB / 1.01 GB, free: 12.71 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.078e-05/0.3732, allocations: 0 / 1.01 GB, free: 12.71 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002031/0.3753, allocations: 1.002 MB / 1.011 GB, free: 11.65 MB / 0.6667 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.004833/0.3801, allocations: 2.475 MB / 1.014 GB, free: 9.102 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.54e-06/0.3801, allocations: 0 / 1.014 GB, free: 9.102 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007514/0.3809, allocations: 155.8 kB / 1.014 GB, free: 8.949 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002237/0.3811, allocations: 36.83 kB / 1.014 GB, free: 8.91 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.774e-05/0.3812, allocations: 27.98 kB / 1.014 GB, free: 8.883 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001449/0.3827, allocations: 1.374 MB / 1.015 GB, free: 7.379 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.048e-05/0.3827, allocations: 8.094 kB / 1.015 GB, free: 7.371 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003694/0.3864, allocations: 1.635 MB / 1.017 GB, free: 5.688 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001282/0.3877, allocations: 354.7 kB / 1.017 GB, free: 5.32 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003622/0.3881, allocations: 23.95 kB / 1.017 GB, free: 5.297 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001018/0.3891, allocations: 119.7 kB / 1.017 GB, free: 5.18 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001363/0.3893, allocations: 56.48 kB / 1.018 GB, free: 5.125 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.575e-05/0.3894, allocations: 31.97 kB / 1.018 GB, free: 5.094 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.001839/0.3912, allocations: 1.137 MB / 1.019 GB, free: 3.934 MB / 0.6667 GB Notification: Performance of sort global known variables: time 2.01e-07/0.3912, allocations: 0 / 1.019 GB, free: 3.934 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.004302/0.3955, allocations: 0.924 MB / 1.02 GB, free: 3.008 MB / 0.6667 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 (69): * Single equations (assignments): 60 * 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%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007492/0.403, allocations: 2.974 MB / 1.022 GB, free: 108 kB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.005147/0.4082, allocations: 1.701 MB / 1.024 GB, free: 14.37 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 8.105e-06/0.4083, allocations: 1.75 kB / 1.024 GB, free: 14.37 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.001782/0.4101, allocations: 0.5682 MB / 1.025 GB, free: 13.79 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005229/0.4153, allocations: 0.7366 MB / 1.025 GB, free: 13.05 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0165/0.4319, allocations: 12.3 MB / 1.037 GB, free: 356 kB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001487/0.4334, allocations: 1.411 MB / 1.039 GB, free: 14.91 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.002989/0.4364, allocations: 438.1 kB / 1.039 GB, free: 14.48 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001448/0.4379, allocations: 0.7258 MB / 1.04 GB, free: 13.75 MB / 0.698 GB Notification: Performance of SimCode: time 1.092e-06/0.4379, allocations: 0 / 1.04 GB, free: 13.75 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5069/0.9449, allocations: 47.01 MB / 1.086 GB, free: 131.9 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001909/0.9451, allocations: 251.4 kB / 1.086 GB, free: 131.6 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.788/4.733, allocations: 0 / 1.086 GB, free: 131.6 MB / 0.698 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T.fmu > Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1)