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.323/1.323, allocations: 251.5 MB / 266.7 MB, free: 11.06 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.001017/0.001017, allocations: 172.4 kB / 325.8 MB, free: 2.699 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.413/1.413, allocations: 205 MB / 0.576 GB, free: 21.01 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.0006693/0.0006693, allocations: 95.92 kB / 0.6797 GB, free: 14.71 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0002647/0.0002648, allocations: 11.69 kB / 0.7932 GB, free: 136.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1393/0.1396, allocations: 105.4 MB / 0.8962 GB, free: 68.08 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.03734/0.177, allocations: 66.33 MB / 0.961 GB, free: 1.52 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.02227/0.1993, allocations: 19.76 MB / 0.9803 GB, free: 13.71 MB / 0.6355 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00209/0.2014, allocations: 83.44 kB / 0.9803 GB, free: 13.63 MB / 0.6355 GB Notification: Performance of NFTyping.typeComponents: time 0.0023/0.2037, allocations: 1.026 MB / 0.9813 GB, free: 12.6 MB / 0.6355 GB Notification: Performance of NFTyping.typeBindings: time 0.004681/0.2084, allocations: 2.431 MB / 0.9837 GB, free: 10.16 MB / 0.6355 GB Notification: Performance of NFTyping.typeClassSections: time 0.006546/0.215, allocations: 3.123 MB / 0.9868 GB, free: 7.059 MB / 0.6355 GB Notification: Performance of NFFlatten.flatten: time 0.005948/0.2209, allocations: 6.992 MB / 0.9936 GB, free: 48 kB / 0.6355 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001676/0.2226, allocations: 1.55 MB / 0.9951 GB, free: 14.45 MB / 0.6511 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002218/0.2248, allocations: 1.746 MB / 0.9968 GB, free: 12.69 MB / 0.6511 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001321/0.2262, allocations: 1.47 MB / 0.9983 GB, free: 11.21 MB / 0.6511 GB Notification: Performance of NFPackage.collectConstants: time 0.000173/0.2264, allocations: 76 kB / 0.9983 GB, free: 11.14 MB / 0.6511 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002931/0.2293, allocations: 1.922 MB / 1 GB, free: 9.215 MB / 0.6511 GB Notification: Performance of NFScalarize.scalarize: time 0.0003738/0.2297, allocations: 446 kB / 1.001 GB, free: 8.777 MB / 0.6511 GB Notification: Performance of NFVerifyModel.verify: time 0.0007801/0.2305, allocations: 1.01 MB / 1.002 GB, free: 7.762 MB / 0.6511 GB Notification: Performance of NFConvertDAE.convert: time 0.003063/0.2335, allocations: 3.586 MB / 1.005 GB, free: 4.164 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 2.775e-06/0.2335, allocations: 0 / 1.005 GB, free: 4.164 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.514e-06/0.2336, allocations: 0 / 1.005 GB, free: 4.164 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.736e-05/0.2336, allocations: 7.938 kB / 1.005 GB, free: 4.156 MB / 0.6511 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.003167/0.2367, allocations: 2.326 MB / 1.007 GB, free: 1.758 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 3.32e-05/0.2368, allocations: 12.03 kB / 1.007 GB, free: 1.746 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001798/0.237, allocations: 178 kB / 1.008 GB, free: 1.562 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001204/0.2382, allocations: 397.9 kB / 1.008 GB, free: 1.172 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002583/0.2408, allocations: 1.8 MB / 1.01 GB, free: 15.32 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000335/0.2411, allocations: 162.4 kB / 1.01 GB, free: 15.16 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001626/0.2413, allocations: 140 kB / 1.01 GB, free: 15.02 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002166/0.2435, allocations: 1.461 MB / 1.011 GB, free: 13.47 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.773e-05/0.2435, allocations: 0 / 1.011 GB, free: 13.47 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001012/0.2436, allocations: 55.94 kB / 1.011 GB, free: 13.41 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.33e-05/0.2437, allocations: 35.98 kB / 1.012 GB, free: 13.38 MB / 0.6667 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002144/0.2458, allocations: 1.145 MB / 1.013 GB, free: 12.23 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 preOpt removeSimpleEquations (simulation): time 0.006868/0.2527, allocations: 7.385 MB / 1.02 GB, free: 4.266 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001934/0.2546, allocations: 1.36 MB / 1.021 GB, free: 2.789 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008325/0.2555, allocations: 469.2 kB / 1.022 GB, free: 2.328 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003131/0.2586, allocations: 2.6 MB / 1.024 GB, free: 15.5 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009103/0.2595, allocations: 0.4947 MB / 1.025 GB, free: 14.98 MB / 0.6823 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000292/0.2598, allocations: 95.19 kB / 1.025 GB, free: 14.89 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=63): time 2.024e-06/0.2599, allocations: 0 / 1.025 GB, free: 14.89 MB / 0.6823 GB Notification: Performance of matching and sorting (n=63): time 0.002687/0.2625, allocations: 1.292 MB / 1.026 GB, free: 13.57 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.635e-05/0.2626, allocations: 188.5 kB / 1.026 GB, free: 13.34 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001599/0.2642, allocations: 1.525 MB / 1.028 GB, free: 11.82 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 6.064e-05/0.2643, allocations: 41.7 kB / 1.028 GB, free: 11.77 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.000574/0.2649, allocations: 0.8958 MB / 1.029 GB, free: 10.87 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001522/0.2651, allocations: 224.8 kB / 1.029 GB, free: 10.64 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001065/0.2652, allocations: 97.64 kB / 1.029 GB, free: 10.54 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 9.959e-05/0.2653, allocations: 345.9 kB / 1.029 GB, free: 10.2 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008203/0.2661, allocations: 405.8 kB / 1.03 GB, free: 9.801 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001023/0.2671, allocations: 0.7811 MB / 1.03 GB, free: 8.852 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001754/0.2689, allocations: 1.148 MB / 1.031 GB, free: 7.562 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.54e-06/0.2689, allocations: 4 kB / 1.031 GB, free: 7.559 MB / 0.6823 GB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002255/0.2712, allocations: 1.35 MB / 1.033 GB, free: 6.199 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.000199/0.2714, allocations: 409.7 kB / 1.033 GB, free: 5.656 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.637e-05/0.2714, allocations: 12 kB / 1.033 GB, free: 5.645 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.047e-05/0.2714, allocations: 12 kB / 1.033 GB, free: 5.633 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008366/0.2723, allocations: 259.6 kB / 1.033 GB, free: 5.379 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.997e-05/0.2723, allocations: 19.94 kB / 1.033 GB, free: 5.359 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009997/0.2733, allocations: 144.3 kB / 1.034 GB, free: 5.219 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.228e-05/0.2734, allocations: 55.98 kB / 1.034 GB, free: 5.164 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 5.55e-06/0.2734, allocations: 4 kB / 1.034 GB, free: 5.16 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001973/0.2754, allocations: 1.144 MB / 1.035 GB, free: 4.008 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.441e-05/0.2754, allocations: 20.11 kB / 1.035 GB, free: 3.988 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.115e-05/0.2754, allocations: 16 kB / 1.035 GB, free: 3.973 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008111/0.2763, allocations: 247.7 kB / 1.035 GB, free: 3.73 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.496e-05/0.2763, allocations: 23.92 kB / 1.035 GB, free: 3.707 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000922/0.2772, allocations: 136.3 kB / 1.035 GB, free: 3.574 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.051e-05/0.2773, allocations: 55.92 kB / 1.035 GB, free: 3.52 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 6 (TSet.count,$PRE.TSet.count,TSet.T_start,$PRE.TSet.T_start,$whenCondition1,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005294/0.2778, allocations: 490.4 kB / 1.036 GB, free: 3.031 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001921/0.278, allocations: 165.9 kB / 1.036 GB, free: 2.867 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002094/0.2801, allocations: 1.131 MB / 1.037 GB, free: 1.723 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.143e-05/0.2801, allocations: 8 kB / 1.037 GB, free: 1.715 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.2802, allocations: 4 kB / 1.037 GB, free: 1.711 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001566/0.2817, allocations: 0.8238 MB / 1.038 GB, free: 0.8711 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.003574/0.2853, allocations: 2.701 MB / 1.04 GB, free: 14.09 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.2853, allocations: 0 / 1.04 GB, free: 14.09 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006639/0.286, allocations: 167.9 kB / 1.041 GB, free: 13.92 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001439/0.2862, allocations: 32.83 kB / 1.041 GB, free: 13.89 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.077e-05/0.2862, allocations: 31.98 kB / 1.041 GB, free: 13.86 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009034/0.2871, allocations: 1.366 MB / 1.042 GB, free: 12.36 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.2871, allocations: 4 kB / 1.042 GB, free: 12.35 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002747/0.2899, allocations: 1.643 MB / 1.044 GB, free: 10.66 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000437/0.2903, allocations: 350.8 kB / 1.044 GB, free: 10.3 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000231/0.2906, allocations: 27.92 kB / 1.044 GB, free: 10.27 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009064/0.2915, allocations: 127.8 kB / 1.044 GB, free: 10.15 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001024/0.2916, allocations: 60.42 kB / 1.044 GB, free: 10.09 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.21e-05/0.2917, allocations: 40.09 kB / 1.044 GB, free: 10.05 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.001216/0.2929, allocations: 1.094 MB / 1.045 GB, free: 8.934 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.723e-06/0.2929, allocations: 4 kB / 1.045 GB, free: 8.93 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.002025/0.2949, allocations: 0.99 MB / 1.046 GB, free: 7.938 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (74): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003796/0.2988, allocations: 2.633 MB / 1.049 GB, free: 5.254 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.002794/0.3016, allocations: 1.718 MB / 1.05 GB, free: 3.504 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3016, allocations: 0 / 1.05 GB, free: 3.504 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0009894/0.3026, allocations: 0.5848 MB / 1.051 GB, free: 2.906 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003464/0.306, allocations: 0.8725 MB / 1.052 GB, free: 2.043 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2833/0.5893, allocations: 14.27 MB / 1.066 GB, free: 143.6 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009753/0.5903, allocations: 1.403 MB / 1.067 GB, free: 142.8 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.001701/0.5921, allocations: 421.8 kB / 1.068 GB, free: 142.8 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007682/0.5928, allocations: 0.7426 MB / 1.068 GB, free: 142.8 MB / 0.698 GB Notification: Performance of SimCode: time 5.61e-07/0.5928, allocations: 2.406 kB / 1.068 GB, free: 142.8 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3064/0.8993, allocations: 48.6 MB / 1.116 GB, free: 108.6 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001446/0.8995, allocations: 278 kB / 1.116 GB, free: 108.2 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.514/4.413, allocations: 0 / 1.116 GB, free: 108.2 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)