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.67/1.67, allocations: 288.4 MB / 303.3 MB, free: 8.215 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.001027/0.001027, allocations: 187.2 kB / 372 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.435/1.435, allocations: 205.4 MB / 0.6307 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.0007602/0.0007602, allocations: 82.44 kB / 0.744 GB, free: 5.914 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004742/0.0004742, allocations: 12.12 kB / 0.867 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2317/0.2322, allocations: 115.3 MB / 0.9796 GB, free: 27.59 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.05317/0.2855, allocations: 61.82 MB / 1.04 GB, free: 13.6 MB / 0.6667 GB Notification: Performance of NFInst.instExpressions: time 0.02784/0.3134, allocations: 18.16 MB / 1.058 GB, free: 11.41 MB / 0.6823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003777/0.3172, allocations: 75.5 kB / 1.058 GB, free: 11.33 MB / 0.6823 GB Notification: Performance of NFTyping.typeComponents: time 0.003712/0.3209, allocations: 0.8309 MB / 1.059 GB, free: 10.5 MB / 0.6823 GB Notification: Performance of NFTyping.typeBindings: time 0.007502/0.3285, allocations: 2.098 MB / 1.061 GB, free: 8.391 MB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.009599/0.3381, allocations: 2.777 MB / 1.063 GB, free: 5.637 MB / 0.6823 GB Notification: Performance of NFFlatten.flatten: time 0.5308/0.8689, allocations: 5.982 MB / 1.069 GB, free: 21.31 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003772/0.8727, allocations: 1.356 MB / 1.071 GB, free: 21.2 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005219/0.8779, allocations: 1.678 MB / 1.072 GB, free: 21.19 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003846/0.8818, allocations: 1.37 MB / 1.074 GB, free: 21.19 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 0.000739/0.8826, allocations: 78.62 kB / 1.074 GB, free: 21.19 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005555/0.8882, allocations: 1.565 MB / 1.075 GB, free: 21.19 MB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 0.00143/0.8896, allocations: 434.5 kB / 1.076 GB, free: 21.19 MB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 0.00155/0.8912, allocations: 444.1 kB / 1.076 GB, free: 21.16 MB / 0.6823 GB Notification: Performance of NFConvertDAE.convert: time 0.006542/0.8978, allocations: 2.743 MB / 1.079 GB, free: 21.04 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 7.023e-06/0.8978, allocations: 0 / 1.079 GB, free: 21.04 MB / 0.6823 GB Notification: Performance of FrontEnd: time 3.006e-06/0.8978, allocations: 0.9062 kB / 1.079 GB, free: 21.04 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.000167/0.898, allocations: 0 / 1.079 GB, free: 21.04 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.007543/0.9055, allocations: 2.361 MB / 1.081 GB, free: 19.73 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.676e-05/0.9056, allocations: 8.812 kB / 1.081 GB, free: 19.73 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008243/0.9064, allocations: 184.6 kB / 1.081 GB, free: 19.69 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002457/0.9089, allocations: 389.8 kB / 1.082 GB, free: 19.56 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005131/0.9141, allocations: 1.734 MB / 1.083 GB, free: 19.14 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004897/0.9146, allocations: 164.7 kB / 1.083 GB, free: 19.14 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003442/0.915, allocations: 140.5 kB / 1.083 GB, free: 19.13 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00331/0.9183, allocations: 1.468 MB / 1.085 GB, free: 18.87 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.719e-05/0.9183, allocations: 1.156 kB / 1.085 GB, free: 18.87 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001397/0.9185, allocations: 59.33 kB / 1.085 GB, free: 18.87 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.214e-05/0.9185, allocations: 31.81 kB / 1.085 GB, free: 18.87 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002692/0.9212, allocations: 1.13 MB / 1.086 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.01081/0.9321, allocations: 7.391 MB / 1.093 GB, free: 14.64 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00237/0.9345, allocations: 1.36 MB / 1.095 GB, free: 14.03 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001079/0.9356, allocations: 465.7 kB / 1.095 GB, free: 14.01 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005849/0.9415, allocations: 2.615 MB / 1.098 GB, free: 12.63 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001287/0.9428, allocations: 0.4908 MB / 1.098 GB, free: 12.55 MB / 0.6823 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001158/0.944, allocations: 88.36 kB / 1.098 GB, free: 12.51 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=63): time 6.282e-06/0.944, allocations: 3 kB / 1.098 GB, free: 12.51 MB / 0.6823 GB Notification: Performance of matching and sorting (n=63): time 0.003921/0.9479, allocations: 1.286 MB / 1.099 GB, free: 12.25 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001055/0.9481, allocations: 192.8 kB / 1.1 GB, free: 12.03 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004513/0.9526, allocations: 1.503 MB / 1.101 GB, free: 11.86 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0003799/0.953, allocations: 45.14 kB / 1.101 GB, free: 11.82 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.001278/0.9543, allocations: 0.9008 MB / 1.102 GB, free: 11.5 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003695/0.9547, allocations: 225.9 kB / 1.102 GB, free: 11.36 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.847e-05/0.9548, allocations: 24.97 kB / 1.102 GB, free: 11.36 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 9.994e-05/0.9549, allocations: 349.2 kB / 1.103 GB, free: 11.05 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001106/0.956, allocations: 391.8 kB / 1.103 GB, free: 11.04 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001354/0.9574, allocations: 0.7684 MB / 1.104 GB, free: 10.58 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001081/0.9585, allocations: 0.4994 MB / 1.104 GB, free: 10.53 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.109e-05/0.9585, allocations: 2.719 kB / 1.104 GB, free: 10.53 MB / 0.6823 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.003209/0.9617, allocations: 1.321 MB / 1.106 GB, free: 10.36 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002515/0.962, allocations: 404.5 kB / 1.106 GB, free: 9.879 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.171e-05/0.962, allocations: 14.09 kB / 1.106 GB, free: 9.879 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.827e-05/0.9621, allocations: 15.88 kB / 1.106 GB, free: 9.879 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009896/0.9631, allocations: 262.1 kB / 1.106 GB, free: 9.875 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.616e-05/0.9631, allocations: 20.38 kB / 1.106 GB, free: 9.875 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001953/0.9651, allocations: 149.1 kB / 1.106 GB, free: 9.852 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001183/0.9652, allocations: 52.61 kB / 1.106 GB, free: 9.852 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.117e-05/0.9652, allocations: 2.719 kB / 1.106 GB, free: 9.852 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002257/0.9675, allocations: 1.154 MB / 1.108 GB, free: 9.797 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.931e-05/0.9675, allocations: 10.5 kB / 1.108 GB, free: 9.797 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.456e-05/0.9675, allocations: 14.59 kB / 1.108 GB, free: 9.797 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009154/0.9684, allocations: 254.9 kB / 1.108 GB, free: 9.793 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.813e-05/0.9685, allocations: 26.62 kB / 1.108 GB, free: 9.793 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001809/0.9703, allocations: 131.6 kB / 1.108 GB, free: 9.781 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.815e-05/0.9704, allocations: 54.69 kB / 1.108 GB, free: 9.781 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.001106/0.9715, allocations: 0.4901 MB / 1.108 GB, free: 9.582 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003523/0.9719, allocations: 176.5 kB / 1.109 GB, free: 9.488 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00242/0.9743, allocations: 1.104 MB / 1.11 GB, free: 9.395 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.331e-05/0.9743, allocations: 12.81 kB / 1.11 GB, free: 9.395 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.049e-05/0.9743, allocations: 6.984 kB / 1.11 GB, free: 9.395 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001673/0.976, allocations: 0.8139 MB / 1.111 GB, free: 9.301 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.00495/0.981, allocations: 2.706 MB / 1.113 GB, free: 8.715 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.462e-06/0.981, allocations: 6.438 kB / 1.113 GB, free: 8.715 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007271/0.9817, allocations: 160.9 kB / 1.113 GB, free: 8.711 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000192/0.9819, allocations: 43.53 kB / 1.113 GB, free: 8.699 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.642e-05/0.982, allocations: 19.33 kB / 1.113 GB, free: 8.699 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008768/0.9829, allocations: 1.38 MB / 1.115 GB, free: 7.438 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.498e-06/0.9829, allocations: 3.719 kB / 1.115 GB, free: 7.438 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003426/0.9864, allocations: 1.634 MB / 1.116 GB, free: 7.09 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001072/0.9874, allocations: 374.4 kB / 1.117 GB, free: 6.891 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003399/0.9878, allocations: 20.05 kB / 1.117 GB, free: 6.891 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00127/0.9891, allocations: 120.8 kB / 1.117 GB, free: 6.879 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001394/0.9892, allocations: 64.52 kB / 1.117 GB, free: 6.875 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.854e-05/0.9893, allocations: 34.94 kB / 1.117 GB, free: 6.875 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.001743/0.9911, allocations: 1.088 MB / 1.118 GB, free: 6.727 MB / 0.6823 GB Notification: Performance of sort global known variables: time 2e-07/0.9911, allocations: 0 / 1.118 GB, free: 6.727 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.003922/0.995, allocations: 0.9851 MB / 1.119 GB, free: 6.586 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.00524/1, allocations: 2.62 MB / 1.122 GB, free: 21.63 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.003919/1.004, allocations: 1.716 MB / 1.123 GB, free: 21.4 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 9.478e-06/1.004, allocations: 1.062 kB / 1.123 GB, free: 21.4 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.001281/1.006, allocations: 0.5725 MB / 1.124 GB, free: 21.28 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005173/1.011, allocations: 0.8671 MB / 1.125 GB, free: 21.21 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02521/1.036, allocations: 11.1 MB / 1.135 GB, free: 16.27 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009943/1.037, allocations: 1.406 MB / 1.137 GB, free: 15.28 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.002395/1.039, allocations: 428.8 kB / 1.137 GB, free: 15.07 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001082/1.041, allocations: 0.7418 MB / 1.138 GB, free: 15 MB / 0.698 GB Notification: Performance of SimCode: time 1.303e-06/1.041, allocations: 0 / 1.138 GB, free: 15 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09157/1.132, allocations: 50.72 MB / 1.187 GB, free: 4.094 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002826/1.132, allocations: 255 kB / 1.188 GB, free: 3.754 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.943/5.076, allocations: 2.734 kB / 1.188 GB, free: 3.754 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)