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.61/1.61, allocations: 288.4 MB / 303.6 MB, free: 8.098 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.0008941/0.0008941, allocations: 183.1 kB / 372.3 MB, free: 10.13 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.2/1.2, allocations: 205.4 MB / 0.631 GB, free: 9.918 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.0007408/0.0007407, allocations: 102.2 kB / 0.7444 GB, free: 5.832 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003234/0.0003235, allocations: 17.81 kB / 0.8676 GB, free: 141.7 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1587/0.159, allocations: 115.3 MB / 0.9802 GB, free: 27.26 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.04717/0.2062, allocations: 61.82 MB / 1.041 GB, free: 13.27 MB / 0.6667 GB Notification: Performance of NFInst.instExpressions: time 0.02165/0.2279, allocations: 18.17 MB / 1.058 GB, free: 11.07 MB / 0.6823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001785/0.2297, allocations: 79.44 kB / 1.058 GB, free: 10.99 MB / 0.6823 GB Notification: Performance of NFTyping.typeComponents: time 0.002082/0.2318, allocations: 0.8933 MB / 1.059 GB, free: 10.09 MB / 0.6823 GB Notification: Performance of NFTyping.typeBindings: time 0.004316/0.2362, allocations: 2.231 MB / 1.061 GB, free: 7.852 MB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.006402/0.2426, allocations: 2.814 MB / 1.064 GB, free: 5.062 MB / 0.6823 GB Notification: Performance of NFFlatten.flatten: time 0.3255/0.568, allocations: 6.039 MB / 1.07 GB, free: 21.48 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002896/0.571, allocations: 1.555 MB / 1.072 GB, free: 21.29 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00374/0.5747, allocations: 1.724 MB / 1.073 GB, free: 21.29 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002615/0.5773, allocations: 1.374 MB / 1.075 GB, free: 21.28 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 0.0002817/0.5776, allocations: 75.59 kB / 1.075 GB, free: 21.28 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003989/0.5816, allocations: 1.858 MB / 1.077 GB, free: 21.28 MB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 0.0005483/0.5822, allocations: 436.9 kB / 1.077 GB, free: 21.28 MB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 0.001345/0.5836, allocations: 0.9881 MB / 1.078 GB, free: 21.24 MB / 0.6823 GB Notification: Performance of NFConvertDAE.convert: time 0.003779/0.5873, allocations: 2.801 MB / 1.081 GB, free: 21.12 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.5874, allocations: 3.188 kB / 1.081 GB, free: 21.12 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.824e-06/0.5874, allocations: 0 / 1.081 GB, free: 21.12 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 4.106e-05/0.5874, allocations: 0.75 kB / 1.081 GB, free: 21.12 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.004454/0.5919, allocations: 2.334 MB / 1.083 GB, free: 19.82 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.5919, allocations: 9.625 kB / 1.083 GB, free: 19.82 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002075/0.5921, allocations: 185.5 kB / 1.083 GB, free: 19.77 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00126/0.5934, allocations: 391.7 kB / 1.083 GB, free: 19.65 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002884/0.5963, allocations: 1.8 MB / 1.085 GB, free: 19.16 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003661/0.5967, allocations: 165.7 kB / 1.085 GB, free: 19.14 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001836/0.5969, allocations: 132.1 kB / 1.086 GB, free: 19.14 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002529/0.5994, allocations: 1.467 MB / 1.087 GB, free: 18.88 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.157e-05/0.5995, allocations: 6.594 kB / 1.087 GB, free: 18.88 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001126/0.5996, allocations: 49.11 kB / 1.087 GB, free: 18.88 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.987e-05/0.5996, allocations: 40.09 kB / 1.087 GB, free: 18.87 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002311/0.6019, allocations: 1.134 MB / 1.088 GB, free: 18.84 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.007526/0.6095, allocations: 7.387 MB / 1.095 GB, free: 14.63 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001934/0.6114, allocations: 1.364 MB / 1.097 GB, free: 14.02 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008421/0.6123, allocations: 466.3 kB / 1.097 GB, free: 14.01 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003447/0.6157, allocations: 2.602 MB / 1.1 GB, free: 12.64 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009758/0.6167, allocations: 0.5027 MB / 1.1 GB, free: 12.55 MB / 0.6823 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004276/0.6172, allocations: 88.14 kB / 1.1 GB, free: 12.51 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=63): time 2.485e-06/0.6172, allocations: 0 / 1.1 GB, free: 12.51 MB / 0.6823 GB Notification: Performance of matching and sorting (n=63): time 0.002731/0.6199, allocations: 1.282 MB / 1.102 GB, free: 12.25 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.659e-05/0.62, allocations: 190.3 kB / 1.102 GB, free: 12.04 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001715/0.6217, allocations: 1.511 MB / 1.103 GB, free: 11.85 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 7.293e-05/0.6218, allocations: 44.55 kB / 1.103 GB, free: 11.82 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.000573/0.6224, allocations: 0.9026 MB / 1.104 GB, free: 11.5 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001593/0.6225, allocations: 224.6 kB / 1.104 GB, free: 11.36 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.724e-05/0.6226, allocations: 20.03 kB / 1.104 GB, free: 11.36 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 6.979e-05/0.6227, allocations: 341 kB / 1.105 GB, free: 11.05 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008436/0.6235, allocations: 395.3 kB / 1.105 GB, free: 11.05 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001008/0.6245, allocations: 0.7679 MB / 1.106 GB, free: 10.59 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001725/0.6263, allocations: 1.117 MB / 1.107 GB, free: 10.18 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.101e-06/0.6263, allocations: 6.844 kB / 1.107 GB, free: 10.18 MB / 0.6823 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.002285/0.6286, allocations: 1.315 MB / 1.108 GB, free: 10.01 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001416/0.6287, allocations: 410.1 kB / 1.109 GB, free: 9.531 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.172e-05/0.6287, allocations: 10.38 kB / 1.109 GB, free: 9.531 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.545e-05/0.6288, allocations: 18.5 kB / 1.109 GB, free: 9.527 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008837/0.6297, allocations: 260.2 kB / 1.109 GB, free: 9.523 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.635e-05/0.6297, allocations: 23.38 kB / 1.109 GB, free: 9.523 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001213/0.6309, allocations: 146.2 kB / 1.109 GB, free: 9.504 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.138e-05/0.631, allocations: 46.11 kB / 1.109 GB, free: 9.504 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 7.043e-06/0.631, allocations: 5.75 kB / 1.109 GB, free: 9.504 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001918/0.6329, allocations: 1.154 MB / 1.11 GB, free: 9.449 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.405e-05/0.633, allocations: 12.06 kB / 1.11 GB, free: 9.449 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.177e-05/0.633, allocations: 19.11 kB / 1.11 GB, free: 9.445 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008153/0.6338, allocations: 255.5 kB / 1.11 GB, free: 9.441 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.665e-05/0.6338, allocations: 23.39 kB / 1.11 GB, free: 9.441 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00104/0.6349, allocations: 128.6 kB / 1.111 GB, free: 9.43 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.486e-05/0.635, allocations: 51.03 kB / 1.111 GB, free: 9.43 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 ($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.0007149/0.6357, allocations: 0.4994 MB / 1.111 GB, free: 9.227 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001681/0.6359, allocations: 166.9 kB / 1.111 GB, free: 9.141 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002124/0.638, allocations: 1.105 MB / 1.112 GB, free: 9.043 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.592e-05/0.638, allocations: 11.72 kB / 1.112 GB, free: 9.039 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/0.638, allocations: 2.688 kB / 1.112 GB, free: 9.039 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001609/0.6396, allocations: 0.8249 MB / 1.113 GB, free: 8.949 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.003814/0.6435, allocations: 2.709 MB / 1.116 GB, free: 8.359 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.009e-06/0.6435, allocations: 0.9062 kB / 1.116 GB, free: 8.359 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006867/0.6442, allocations: 159.9 kB / 1.116 GB, free: 8.355 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001568/0.6443, allocations: 39.36 kB / 1.116 GB, free: 8.348 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.341e-05/0.6444, allocations: 27.34 kB / 1.116 GB, free: 8.344 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007471/0.6452, allocations: 1.378 MB / 1.117 GB, free: 7.078 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.6452, allocations: 4.281 kB / 1.117 GB, free: 7.078 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002788/0.648, allocations: 1.641 MB / 1.119 GB, free: 6.727 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005652/0.6486, allocations: 367.6 kB / 1.119 GB, free: 6.531 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000237/0.6488, allocations: 20.14 kB / 1.119 GB, free: 6.531 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001027/0.6498, allocations: 120.8 kB / 1.119 GB, free: 6.52 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001162/0.65, allocations: 67.83 kB / 1.12 GB, free: 6.512 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.935e-05/0.65, allocations: 35.09 kB / 1.12 GB, free: 6.512 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.001365/0.6514, allocations: 1.081 MB / 1.121 GB, free: 6.367 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6514, allocations: 0 / 1.121 GB, free: 6.367 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.002781/0.6542, allocations: 0.9929 MB / 1.122 GB, free: 6.223 MB / 0.6823 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 (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.004272/0.6585, allocations: 2.64 MB / 1.124 GB, free: 5.277 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.003085/0.6616, allocations: 1.711 MB / 1.126 GB, free: 5.051 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.6616, allocations: 2.469 kB / 1.126 GB, free: 5.051 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.001167/0.6628, allocations: 0.5775 MB / 1.126 GB, free: 20.93 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00427/0.667, allocations: 0.8613 MB / 1.127 GB, free: 20.86 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0194/0.6865, allocations: 11.1 MB / 1.138 GB, free: 15.63 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009064/0.6874, allocations: 1.412 MB / 1.139 GB, free: 14.64 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.001948/0.6894, allocations: 425.1 kB / 1.14 GB, free: 14.43 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007753/0.6901, allocations: 0.7398 MB / 1.141 GB, free: 14.36 MB / 0.698 GB Notification: Performance of SimCode: time 1.623e-06/0.6902, allocations: 0 / 1.141 GB, free: 14.36 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4414/1.132, allocations: 51.72 MB / 1.191 GB, free: 1.543 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002346/1.132, allocations: 265.1 kB / 1.191 GB, free: 1.203 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.436/4.568, allocations: 0 / 1.191 GB, free: 1.203 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)