Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="Buildings_10_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="Buildings_10_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001398/0.001398, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001606/0.001606, allocations: 196.7 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.307/1.307, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.444/2.444, allocations: 437 MB / 0.7104 GB, free: 5.102 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 71.88 kB / 0.8693 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5533/0.5545, allocations: 151.6 MB / 1.017 GB, free: 2.52 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T): time 0.05191/0.6065, allocations: 53.74 MB / 1.07 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0224/0.6289, allocations: 17 MB / 1.086 GB, free: 11.55 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002568/0.6315, allocations: 91.5 kB / 1.087 GB, free: 11.46 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.008157/0.6397, allocations: 4.356 MB / 1.091 GB, free: 7.102 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.006589/0.6463, allocations: 2.412 MB / 1.093 GB, free: 4.684 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.005358/0.6517, allocations: 2.273 MB / 1.095 GB, free: 2.422 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.009459/0.6612, allocations: 7.419 MB / 1.103 GB, free: 10.98 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002441/0.6636, allocations: 1.639 MB / 1.104 GB, free: 9.312 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003725/0.6673, allocations: 1.888 MB / 1.106 GB, free: 7.426 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002069/0.6694, allocations: 1.388 MB / 1.107 GB, free: 6.031 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0004365/0.6699, allocations: 176 kB / 1.108 GB, free: 5.859 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003894/0.6738, allocations: 2.008 MB / 1.11 GB, free: 3.848 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0007947/0.6746, allocations: 0.654 MB / 1.11 GB, free: 3.191 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.001697/0.6763, allocations: 1.212 MB / 1.111 GB, free: 1.973 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.005379/0.6817, allocations: 3.84 MB / 1.115 GB, free: 14.12 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.6817, allocations: 0 / 1.115 GB, free: 14.12 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.192e-06/0.6817, allocations: 0 / 1.115 GB, free: 14.12 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 4.502e-05/0.6818, allocations: 0 / 1.115 GB, free: 14.12 MB / 0.8731 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 285 * Number of variables: 285 Notification: Performance of Generate backend data structure: time 0.004569/0.6863, allocations: 2.924 MB / 1.118 GB, free: 11.12 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 3.763e-05/0.6864, allocations: 15.98 kB / 1.118 GB, free: 11.1 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001814/0.6866, allocations: 165.1 kB / 1.118 GB, free: 10.93 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002627/0.6892, allocations: 0.5511 MB / 1.119 GB, free: 10.38 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004318/0.6935, allocations: 2.625 MB / 1.121 GB, free: 7.676 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004173/0.694, allocations: 146.2 kB / 1.121 GB, free: 7.531 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002343/0.6942, allocations: 131.9 kB / 1.122 GB, free: 7.402 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002757/0.697, allocations: 1.367 MB / 1.123 GB, free: 5.938 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.71e-05/0.697, allocations: 4 kB / 1.123 GB, free: 5.934 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001167/0.6971, allocations: 48 kB / 1.123 GB, free: 5.887 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.703e-05/0.6972, allocations: 42.06 kB / 1.123 GB, free: 5.844 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002893/0.7001, allocations: 1.12 MB / 1.124 GB, free: 4.715 MB / 0.8731 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.01177/0.7119, allocations: 7.495 MB / 1.131 GB, free: 12.66 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00278/0.7147, allocations: 1.364 MB / 1.133 GB, free: 11.18 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001069/0.7158, allocations: 426.9 kB / 1.133 GB, free: 10.76 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00563/0.7214, allocations: 3.156 MB / 1.136 GB, free: 7.262 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001129/0.7226, allocations: 438.8 kB / 1.137 GB, free: 6.82 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=59): time 5.02e-06/0.7226, allocations: 0 / 1.137 GB, free: 6.82 MB / 0.8887 GB Notification: Performance of matching and sorting (n=59): time 0.003564/0.7262, allocations: 1.26 MB / 1.138 GB, free: 5.531 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.285e-05/0.7262, allocations: 59.97 kB / 1.138 GB, free: 5.461 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00331/0.7296, allocations: 2.114 MB / 1.14 GB, free: 3.32 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 9.309e-05/0.7297, allocations: 49.7 kB / 1.14 GB, free: 3.266 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008877/0.7306, allocations: 1.01 MB / 1.141 GB, free: 2.246 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002168/0.7308, allocations: 221 kB / 1.141 GB, free: 2.027 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004529/0.7313, allocations: 314.5 kB / 1.142 GB, free: 1.715 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 9.37e-05/0.7314, allocations: 301.1 kB / 1.142 GB, free: 1.418 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001253/0.7326, allocations: 0.561 MB / 1.142 GB, free: 0.8555 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001573/0.7342, allocations: 0.9964 MB / 1.143 GB, free: 15.67 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002597/0.7368, allocations: 1.467 MB / 1.145 GB, free: 14.04 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.224e-05/0.7368, allocations: 8 kB / 1.145 GB, free: 14.03 MB / 0.9044 GB Notification: Performance of matching and sorting (n=188) (initialization): time 0.003578/0.7404, allocations: 1.79 MB / 1.147 GB, free: 12.22 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 4.027e-05/0.7405, allocations: 35.89 kB / 1.147 GB, free: 12.18 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.965e-05/0.7405, allocations: 16.06 kB / 1.147 GB, free: 12.17 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.914e-05/0.7405, allocations: 20 kB / 1.147 GB, free: 12.15 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00117/0.7417, allocations: 319.5 kB / 1.147 GB, free: 11.84 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.685e-05/0.7417, allocations: 23.88 kB / 1.147 GB, free: 11.81 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001359/0.7431, allocations: 187 kB / 1.147 GB, free: 11.63 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001172/0.7432, allocations: 63.97 kB / 1.147 GB, free: 11.57 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001819/0.7451, allocations: 0.9756 MB / 1.148 GB, free: 10.59 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001511/0.7466, allocations: 0.9961 MB / 1.149 GB, free: 9.406 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002527/0.7491, allocations: 1.462 MB / 1.151 GB, free: 7.773 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.767e-06/0.7491, allocations: 4 kB / 1.151 GB, free: 7.77 MB / 0.9044 GB Notification: Performance of matching and sorting (n=188) (initialization_lambda0): time 0.003609/0.7528, allocations: 1.781 MB / 1.152 GB, free: 5.977 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 3.424e-05/0.7528, allocations: 33.7 kB / 1.152 GB, free: 5.938 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.298e-05/0.7528, allocations: 12 kB / 1.152 GB, free: 5.926 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.873e-05/0.7529, allocations: 20.69 kB / 1.152 GB, free: 5.906 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001172/0.754, allocations: 311.5 kB / 1.153 GB, free: 5.602 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.716e-05/0.7541, allocations: 31.86 kB / 1.153 GB, free: 5.57 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001463/0.7555, allocations: 163.3 kB / 1.153 GB, free: 5.41 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001149/0.7557, allocations: 67.97 kB / 1.153 GB, free: 5.344 MB / 0.9044 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * 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 (154): * Single equations (assignments): 151 * Array equations: 1 * 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.0003088/0.756, allocations: 263.7 kB / 1.153 GB, free: 5.078 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004144/0.7564, allocations: 201.6 kB / 1.153 GB, free: 4.879 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002881/0.7593, allocations: 1.135 MB / 1.154 GB, free: 3.734 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.445e-05/0.7593, allocations: 12 kB / 1.154 GB, free: 3.723 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.7593, allocations: 0 / 1.154 GB, free: 3.723 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002074/0.7614, allocations: 0.966 MB / 1.155 GB, free: 2.703 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005161/0.7666, allocations: 2.628 MB / 1.158 GB, free: 0 / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.852e-05/0.7666, allocations: 4.047 kB / 1.158 GB, free: 15.99 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000775/0.7674, allocations: 155.7 kB / 1.158 GB, free: 15.84 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001407/0.7675, allocations: 24.84 kB / 1.158 GB, free: 15.82 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.504e-05/0.7676, allocations: 23.98 kB / 1.158 GB, free: 15.79 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001036/0.7687, allocations: 1.422 MB / 1.16 GB, free: 14.23 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.7687, allocations: 3.938 kB / 1.16 GB, free: 14.23 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003466/0.7721, allocations: 1.585 MB / 1.161 GB, free: 12.62 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006457/0.7728, allocations: 398.1 kB / 1.161 GB, free: 12.21 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003024/0.7731, allocations: 19.94 kB / 1.161 GB, free: 12.19 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009942/0.7741, allocations: 71.92 kB / 1.162 GB, free: 12.12 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001149/0.7742, allocations: 48.5 kB / 1.162 GB, free: 12.07 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.546e-05/0.7743, allocations: 31.97 kB / 1.162 GB, free: 12.04 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.00203/0.7764, allocations: 1.469 MB / 1.163 GB, free: 10.56 MB / 0.92 GB Notification: Performance of sort global known variables: time 2.41e-07/0.7764, allocations: 0 / 1.163 GB, free: 10.56 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.002554/0.7789, allocations: 1.029 MB / 1.164 GB, free: 9.527 MB / 0.92 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.s[1],mov.filter.s[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 (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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005636/0.7846, allocations: 2.902 MB / 1.167 GB, free: 6.719 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.004651/0.7892, allocations: 2.179 MB / 1.169 GB, free: 4.52 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 3.075e-06/0.7893, allocations: 0 / 1.169 GB, free: 4.52 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.001232/0.7905, allocations: 0.5412 MB / 1.17 GB, free: 3.969 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003747/0.7943, allocations: 0.9705 MB / 1.171 GB, free: 3.027 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02437/0.8186, allocations: 16.27 MB / 1.186 GB, free: 1.461 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001269/0.8199, allocations: 1.542 MB / 1.188 GB, free: 15.88 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.002077/0.822, allocations: 0.524 MB / 1.188 GB, free: 15.36 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001212/0.8233, allocations: 0.8546 MB / 1.189 GB, free: 14.5 MB / 0.9512 GB Notification: Performance of SimCode: time 9.72e-07/0.8233, allocations: 0 / 1.189 GB, free: 14.5 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3258/1.149, allocations: 55.71 MB / 1.244 GB, free: 7.465 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.86/14.01, allocations: 15.78 kB / 1.244 GB, free: 7.449 MB / 0.9981 GB (rm -f Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T.fmu > Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1)