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.477/1.477, allocations: 252 MB / 267 MB, free: 10.96 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.001103/0.001103, allocations: 177.3 kB / 326.6 MB, free: 2.207 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.835/1.835, allocations: 205.4 MB / 0.5777 GB, free: 20.21 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.0008163/0.0008164, allocations: 92.69 kB / 0.6823 GB, free: 12.86 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003268/0.0003269, allocations: 13 kB / 0.7965 GB, free: 135 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.197/0.1974, allocations: 106.3 MB / 0.9003 GB, free: 63.79 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T): time 0.03649/0.2339, allocations: 49.16 MB / 0.9483 GB, free: 14.48 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.02252/0.2565, allocations: 16.6 MB / 0.9645 GB, free: 13.86 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003445/0.26, allocations: 75.5 kB / 0.9646 GB, free: 13.78 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.003368/0.2634, allocations: 0.7908 MB / 0.9654 GB, free: 12.99 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.005896/0.2693, allocations: 1.879 MB / 0.9672 GB, free: 11.11 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.007549/0.2768, allocations: 2.715 MB / 0.9699 GB, free: 8.41 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.007485/0.2843, allocations: 5.16 MB / 0.9749 GB, free: 3.23 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002832/0.2872, allocations: 1.234 MB / 0.9761 GB, free: 1.973 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004421/0.2917, allocations: 1.521 MB / 0.9776 GB, free: 456 kB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002845/0.2946, allocations: 1.264 MB / 0.9788 GB, free: 15.18 MB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 0.0006604/0.2953, allocations: 68 kB / 0.9789 GB, free: 15.11 MB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004252/0.2995, allocations: 1.505 MB / 0.9804 GB, free: 13.6 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 0.001088/0.3007, allocations: 418.2 kB / 0.9808 GB, free: 13.19 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 0.001119/0.3018, allocations: 408.6 kB / 0.9811 GB, free: 12.79 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.004355/0.3062, allocations: 2.482 MB / 0.9836 GB, free: 10.3 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 5.982e-06/0.3062, allocations: 0 / 0.9836 GB, free: 10.3 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.294e-06/0.3063, allocations: 0 / 0.9836 GB, free: 10.3 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 0.0001028/0.3064, allocations: 4 kB / 0.9836 GB, free: 10.29 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: 282 * Number of variables: 282 Notification: Performance of Generate backend data structure: time 0.004675/0.311, allocations: 2.237 MB / 0.9858 GB, free: 7.988 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/0.3111, allocations: 8.031 kB / 0.9858 GB, free: 7.98 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003588/0.3115, allocations: 169 kB / 0.9859 GB, free: 7.805 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002344/0.3138, allocations: 492.8 kB / 0.9864 GB, free: 7.32 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004042/0.3179, allocations: 1.575 MB / 0.9879 GB, free: 5.695 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000423/0.3183, allocations: 158.2 kB / 0.9881 GB, free: 5.539 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000313/0.3187, allocations: 127.9 kB / 0.9882 GB, free: 5.414 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003037/0.3217, allocations: 1.392 MB / 0.9896 GB, free: 3.922 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.903e-05/0.3218, allocations: 0 / 0.9896 GB, free: 3.922 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001253/0.3219, allocations: 48 kB / 0.9896 GB, free: 3.875 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.506e-05/0.3219, allocations: 32 kB / 0.9896 GB, free: 3.844 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002897/0.3248, allocations: 1.132 MB / 0.9908 GB, free: 2.703 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.009812/0.3347, allocations: 6.999 MB / 0.9976 GB, free: 11.17 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002709/0.3374, allocations: 1.43 MB / 0.999 GB, free: 9.617 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001024/0.3385, allocations: 434.3 kB / 0.9994 GB, free: 9.191 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005385/0.3439, allocations: 3.075 MB / 1.002 GB, free: 5.773 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001149/0.3451, allocations: 466.8 kB / 1.003 GB, free: 5.309 MB / 0.6511 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006366/0.3457, allocations: 91.33 kB / 1.003 GB, free: 5.219 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=60): time 2.985e-06/0.3457, allocations: 0 / 1.003 GB, free: 5.219 MB / 0.6511 GB Notification: Performance of matching and sorting (n=60): time 0.003376/0.3491, allocations: 1.291 MB / 1.004 GB, free: 3.898 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.629e-05/0.3492, allocations: 145.1 kB / 1.004 GB, free: 3.727 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002265/0.3515, allocations: 1.57 MB / 1.006 GB, free: 2.156 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.0001837/0.3517, allocations: 41.7 kB / 1.006 GB, free: 2.109 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007597/0.3525, allocations: 0.8841 MB / 1.007 GB, free: 1.215 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002118/0.3527, allocations: 220.9 kB / 1.007 GB, free: 0.9961 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.982e-05/0.3527, allocations: 20 kB / 1.007 GB, free: 0.9766 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001314/0.3529, allocations: 345.9 kB / 1.007 GB, free: 0.6328 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009812/0.3539, allocations: 389.8 kB / 1.008 GB, free: 260 kB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001275/0.3552, allocations: 0.797 MB / 1.008 GB, free: 15.27 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001137/0.3563, allocations: 0.4966 MB / 1.009 GB, free: 14.77 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.297e-06/0.3563, allocations: 4 kB / 1.009 GB, free: 14.77 MB / 0.6667 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003006/0.3593, allocations: 1.332 MB / 1.01 GB, free: 13.42 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003326/0.3597, allocations: 445.4 kB / 1.011 GB, free: 12.82 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.313e-05/0.3597, allocations: 8 kB / 1.011 GB, free: 12.81 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.399e-05/0.3598, allocations: 24 kB / 1.011 GB, free: 12.79 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00106/0.3608, allocations: 267.6 kB / 1.011 GB, free: 12.53 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.36e-05/0.3609, allocations: 19.94 kB / 1.011 GB, free: 12.51 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001412/0.3623, allocations: 136.4 kB / 1.011 GB, free: 12.38 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001048/0.3624, allocations: 55.97 kB / 1.011 GB, free: 12.32 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.021e-05/0.3624, allocations: 6.344 kB / 1.011 GB, free: 12.32 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002527/0.365, allocations: 1.165 MB / 1.012 GB, free: 11.14 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.903e-05/0.365, allocations: 15.94 kB / 1.012 GB, free: 11.13 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.714e-05/0.365, allocations: 16 kB / 1.012 GB, free: 11.11 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001001/0.366, allocations: 267.6 kB / 1.013 GB, free: 10.85 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.874e-05/0.3661, allocations: 19.94 kB / 1.013 GB, free: 10.83 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001302/0.3674, allocations: 128.5 kB / 1.013 GB, free: 10.71 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.429e-05/0.3675, allocations: 51.98 kB / 1.013 GB, free: 10.66 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 (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.0008356/0.3683, allocations: 491.7 kB / 1.013 GB, free: 10.17 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003076/0.3686, allocations: 165.9 kB / 1.013 GB, free: 10 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002777/0.3714, allocations: 1.163 MB / 1.015 GB, free: 8.828 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.457e-05/0.3714, allocations: 15.98 kB / 1.015 GB, free: 8.812 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.023e-05/0.3715, allocations: 4 kB / 1.015 GB, free: 8.809 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00209/0.3736, allocations: 1.002 MB / 1.016 GB, free: 7.754 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.004823/0.3784, allocations: 2.441 MB / 1.018 GB, free: 5.25 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.059e-06/0.3784, allocations: 4.062 kB / 1.018 GB, free: 5.246 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007587/0.3792, allocations: 155.8 kB / 1.018 GB, free: 5.094 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001867/0.3794, allocations: 32.84 kB / 1.018 GB, free: 5.059 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.738e-05/0.3795, allocations: 27.97 kB / 1.018 GB, free: 5.031 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001232/0.3807, allocations: 1.363 MB / 1.019 GB, free: 3.539 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.3807, allocations: 0 / 1.019 GB, free: 3.539 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003644/0.3844, allocations: 1.624 MB / 1.021 GB, free: 1.887 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007086/0.3851, allocations: 358.6 kB / 1.021 GB, free: 1.516 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002555/0.3854, allocations: 16 kB / 1.021 GB, free: 1.5 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001072/0.3864, allocations: 111.8 kB / 1.022 GB, free: 1.391 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001262/0.3866, allocations: 60.48 kB / 1.022 GB, free: 1.328 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.859e-05/0.3867, allocations: 27.97 kB / 1.022 GB, free: 1.301 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.00172/0.3884, allocations: 1.118 MB / 1.023 GB, free: 164 kB / 0.6667 GB Notification: Performance of sort global known variables: time 2.71e-07/0.3884, allocations: 0 / 1.023 GB, free: 164 kB / 0.6667 GB Notification: Performance of remove unused functions: time 0.002767/0.3912, allocations: 0.9123 MB / 1.024 GB, free: 15.25 MB / 0.6823 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.005502/0.3967, allocations: 2.803 MB / 1.026 GB, free: 12.53 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.003932/0.4007, allocations: 1.718 MB / 1.028 GB, free: 10.78 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 8.566e-06/0.4007, allocations: 0 / 1.028 GB, free: 10.78 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.001359/0.4021, allocations: 0.5685 MB / 1.029 GB, free: 10.2 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003945/0.406, allocations: 0.7563 MB / 1.029 GB, free: 9.441 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02607/0.4321, allocations: 10.99 MB / 1.04 GB, free: 13.66 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001549/0.4338, allocations: 1.372 MB / 1.041 GB, free: 12.26 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.002205/0.436, allocations: 410.3 kB / 1.042 GB, free: 11.85 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001223/0.4372, allocations: 0.7219 MB / 1.042 GB, free: 11.13 MB / 0.698 GB Notification: Performance of SimCode: time 1.873e-06/0.4373, allocations: 0 / 1.042 GB, free: 11.13 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.443/0.8803, allocations: 47.46 MB / 1.089 GB, free: 129.3 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002031/0.8805, allocations: 265.3 kB / 1.089 GB, free: 128.9 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.749/4.629, allocations: 0 / 1.089 GB, free: 128.9 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)