Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="Buildings_maint_8_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_8_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 8.0.1-maint.8.0.x/package.mo): time 1.694/1.694, allocations: 288.2 MB / 303.2 MB, free: 8.227 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.001144/0.001144, allocations: 178.8 kB / 371.8 MB, free: 10.27 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.788/1.788, allocations: 205.4 MB / 0.6305 GB, free: 9.996 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009481/0.0009482, allocations: 85.17 kB / 0.7439 GB, free: 5.918 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003862/0.0003863, allocations: 15.38 kB / 0.8669 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2196/0.22, allocations: 115.3 MB / 0.9795 GB, free: 27.62 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.04761/0.2677, allocations: 56.26 MB / 1.034 GB, free: 3.211 MB / 0.6511 GB Notification: Performance of NFInst.instExpressions: time 0.02539/0.2931, allocations: 17 MB / 1.051 GB, free: 2.188 MB / 0.6667 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003578/0.2967, allocations: 79.44 kB / 1.051 GB, free: 2.109 MB / 0.6667 GB Notification: Performance of NFTyping.typeComponents: time 0.003788/0.3005, allocations: 0.999 MB / 1.052 GB, free: 1.105 MB / 0.6667 GB Notification: Performance of NFTyping.typeBindings: time 0.008651/0.3092, allocations: 2.647 MB / 1.055 GB, free: 14.45 MB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.009081/0.3183, allocations: 3.141 MB / 1.058 GB, free: 11.35 MB / 0.6823 GB Notification: Performance of NFFlatten.flatten: time 0.006522/0.3249, allocations: 3.159 MB / 1.061 GB, free: 8.188 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003115/0.328, allocations: 1.368 MB / 1.062 GB, free: 6.797 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003748/0.3318, allocations: 1.46 MB / 1.064 GB, free: 5.332 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002177/0.334, allocations: 0.972 MB / 1.065 GB, free: 4.355 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 0.0003053/0.3344, allocations: 72 kB / 1.065 GB, free: 4.285 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003578/0.3379, allocations: 1.455 MB / 1.066 GB, free: 2.828 MB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 0.0004269/0.3384, allocations: 410.4 kB / 1.066 GB, free: 2.426 MB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 0.0006406/0.339, allocations: 440.6 kB / 1.067 GB, free: 1.988 MB / 0.6823 GB Notification: Performance of NFConvertDAE.convert: time 0.4526/0.7916, allocations: 2.671 MB / 1.069 GB, free: 22.75 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.7917, allocations: 0 / 1.069 GB, free: 22.75 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.765e-06/0.7917, allocations: 0 / 1.069 GB, free: 22.75 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.0001099/0.7918, allocations: 0.7812 kB / 1.069 GB, free: 22.75 MB / 0.6823 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.005177/0.797, allocations: 2.343 MB / 1.072 GB, free: 21.48 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.773e-05/0.7971, allocations: 10.25 kB / 1.072 GB, free: 21.48 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000334/0.7974, allocations: 183.4 kB / 1.072 GB, free: 21.44 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001502/0.7989, allocations: 388.6 kB / 1.072 GB, free: 21.32 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003306/0.8022, allocations: 1.654 MB / 1.074 GB, free: 20.92 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004124/0.8027, allocations: 167.2 kB / 1.074 GB, free: 20.92 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000218/0.8029, allocations: 136.5 kB / 1.074 GB, free: 20.92 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003044/0.806, allocations: 1.449 MB / 1.076 GB, free: 20.66 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.586e-05/0.806, allocations: 5.141 kB / 1.076 GB, free: 20.66 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000134/0.8061, allocations: 54.55 kB / 1.076 GB, free: 20.66 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.175e-05/0.8062, allocations: 32.28 kB / 1.076 GB, free: 20.66 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003042/0.8092, allocations: 1.123 MB / 1.077 GB, free: 20.63 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 preOpt removeSimpleEquations (simulation): time 0.0111/0.8204, allocations: 7.437 MB / 1.084 GB, free: 16.41 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002461/0.8228, allocations: 1.361 MB / 1.085 GB, free: 15.8 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004947/0.8278, allocations: 2.608 MB / 1.088 GB, free: 14.44 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001207/0.829, allocations: 464 kB / 1.088 GB, free: 14.38 MB / 0.6823 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007947/0.8299, allocations: 98.55 kB / 1.088 GB, free: 14.34 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=65): time 3.146e-06/0.8299, allocations: 0 / 1.088 GB, free: 14.34 MB / 0.6823 GB Notification: Performance of matching and sorting (n=65): time 0.003327/0.8332, allocations: 1.293 MB / 1.09 GB, free: 14.07 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.705e-05/0.8333, allocations: 140.5 kB / 1.09 GB, free: 13.91 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002304/0.8356, allocations: 1.556 MB / 1.091 GB, free: 13.73 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 9.406e-05/0.8357, allocations: 46.61 kB / 1.091 GB, free: 13.7 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007655/0.8365, allocations: 0.9032 MB / 1.092 GB, free: 13.38 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002295/0.8367, allocations: 230.2 kB / 1.093 GB, free: 13.23 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.342e-05/0.8368, allocations: 18.91 kB / 1.093 GB, free: 13.23 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 9.493e-05/0.8369, allocations: 346.8 kB / 1.093 GB, free: 12.93 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009348/0.8378, allocations: 388.3 kB / 1.093 GB, free: 12.92 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001162/0.839, allocations: 0.7582 MB / 1.094 GB, free: 12.47 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001074/0.8401, allocations: 0.4991 MB / 1.094 GB, free: 12.42 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.995e-06/0.8401, allocations: 2 kB / 1.094 GB, free: 12.42 MB / 0.6823 GB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002837/0.8429, allocations: 1.327 MB / 1.096 GB, free: 12.24 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008401/0.8438, allocations: 3.821 MB / 1.099 GB, free: 8.211 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.197e-05/0.8438, allocations: 10.12 kB / 1.099 GB, free: 8.211 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.977e-05/0.8439, allocations: 20.03 kB / 1.1 GB, free: 8.207 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001075/0.8449, allocations: 264.3 kB / 1.1 GB, free: 8.203 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.298e-05/0.845, allocations: 20.12 kB / 1.1 GB, free: 8.203 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00174/0.8467, allocations: 149.3 kB / 1.1 GB, free: 8.188 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001215/0.8469, allocations: 55.88 kB / 1.1 GB, free: 8.188 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.007e-05/0.8469, allocations: 3.094 kB / 1.1 GB, free: 8.188 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002939/0.8498, allocations: 1.146 MB / 1.101 GB, free: 8.133 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.024e-05/0.8499, allocations: 9.781 kB / 1.101 GB, free: 8.133 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.2e-05/0.8499, allocations: 20.05 kB / 1.101 GB, free: 8.129 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009798/0.8509, allocations: 261.6 kB / 1.101 GB, free: 8.125 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.648e-05/0.8509, allocations: 25.75 kB / 1.101 GB, free: 8.125 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001474/0.8524, allocations: 146.8 kB / 1.102 GB, free: 8.105 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001067/0.8525, allocations: 55.66 kB / 1.102 GB, free: 8.105 MB / 0.6823 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 (124): * Single equations (assignments): 120 * 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.8535, allocations: 496.2 kB / 1.102 GB, free: 7.914 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000248/0.8538, allocations: 165.7 kB / 1.102 GB, free: 7.828 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002529/0.8563, allocations: 1.141 MB / 1.103 GB, free: 7.719 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-05/0.8563, allocations: 6.844 kB / 1.103 GB, free: 7.719 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.188e-06/0.8564, allocations: 1.438 kB / 1.103 GB, free: 7.719 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001827/0.8582, allocations: 0.8266 MB / 1.104 GB, free: 7.633 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.005308/0.8635, allocations: 2.632 MB / 1.107 GB, free: 23.12 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.003e-06/0.8635, allocations: 2.625 kB / 1.107 GB, free: 23.12 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007635/0.8643, allocations: 164.4 kB / 1.107 GB, free: 23.12 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002172/0.8645, allocations: 41.97 kB / 1.107 GB, free: 23.11 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.253e-05/0.8646, allocations: 24.5 kB / 1.107 GB, free: 23.11 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001212/0.8658, allocations: 1.386 MB / 1.108 GB, free: 21.85 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.8658, allocations: 8.875 kB / 1.108 GB, free: 21.85 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003387/0.8692, allocations: 1.768 MB / 1.11 GB, free: 21.29 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008453/0.8701, allocations: 385.4 kB / 1.11 GB, free: 21.1 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000205/0.8703, allocations: 16.52 kB / 1.11 GB, free: 21.1 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001072/0.8714, allocations: 136.9 kB / 1.111 GB, free: 21.08 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001371/0.8715, allocations: 59.06 kB / 1.111 GB, free: 21.08 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.973e-05/0.8716, allocations: 39.53 kB / 1.111 GB, free: 21.08 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.001632/0.8733, allocations: 1.123 MB / 1.112 GB, free: 20.93 MB / 0.698 GB Notification: Performance of sort global known variables: time 2.1e-07/0.8733, allocations: 0 / 1.112 GB, free: 20.93 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0029/0.8762, allocations: 1.02 MB / 1.113 GB, free: 20.78 MB / 0.698 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.00464/0.8808, allocations: 3.29 MB / 1.116 GB, free: 19.15 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.003364/0.8842, allocations: 1.706 MB / 1.118 GB, free: 18.92 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 5.78e-06/0.8842, allocations: 1.312 kB / 1.118 GB, free: 18.92 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.001137/0.8854, allocations: 0.5726 MB / 1.118 GB, free: 18.8 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003859/0.8892, allocations: 0.8664 MB / 1.119 GB, free: 18.72 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009951/0.8992, allocations: 11.06 MB / 1.13 GB, free: 9.996 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001264/0.9005, allocations: 1.446 MB / 1.131 GB, free: 9.238 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.002379/0.9029, allocations: 430.2 kB / 1.132 GB, free: 9.121 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009572/0.9039, allocations: 0.7514 MB / 1.132 GB, free: 9.109 MB / 0.698 GB Notification: Performance of SimCode: time 1.452e-06/0.9039, allocations: 0 / 1.132 GB, free: 9.109 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08943/0.9933, allocations: 50.72 MB / 1.182 GB, free: 6.609 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002142/0.9936, allocations: 257.5 kB / 1.182 GB, free: 6.27 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.875/4.869, allocations: 0 / 1.182 GB, free: 6.27 MB / 0.7292 GB (rm -f Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u.fmu > Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)