Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="Buildings_11_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.007374/0.007374, allocations: 100.8 kB / 15.73 MB, free: 6.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001762/0.001762, allocations: 192.6 kB / 16.67 MB, free: 5.969 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.401/1.401, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.384/2.384, allocations: 469.8 MB / 0.7425 GB, free: 3.301 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001721/0.001721, allocations: 71.83 kB / 1.065 GB, free: 13.97 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6064/0.6082, allocations: 159.1 MB / 1.22 GB, free: 1.973 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T): time 0.05081/0.659, allocations: 53.75 MB / 1.273 GB, free: 12.04 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.02226/0.6813, allocations: 17.02 MB / 1.289 GB, free: 10.98 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001585/0.6829, allocations: 87.5 kB / 1.289 GB, free: 10.89 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.003975/0.6869, allocations: 1.918 MB / 1.291 GB, free: 8.973 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.004847/0.6918, allocations: 2.513 MB / 1.294 GB, free: 6.453 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.004605/0.6964, allocations: 2.348 MB / 1.296 GB, free: 4.117 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.009555/0.706, allocations: 7.539 MB / 1.303 GB, free: 12.57 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002065/0.708, allocations: 1.674 MB / 1.305 GB, free: 10.85 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003365/0.7114, allocations: 1.916 MB / 1.307 GB, free: 8.934 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001611/0.713, allocations: 1.416 MB / 1.308 GB, free: 7.512 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.000257/0.7133, allocations: 180 kB / 1.308 GB, free: 7.336 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003446/0.7168, allocations: 2.028 MB / 1.31 GB, free: 5.305 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0006356/0.7174, allocations: 0.6657 MB / 1.311 GB, free: 4.637 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.001146/0.7186, allocations: 1.22 MB / 1.312 GB, free: 3.41 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.004647/0.7232, allocations: 3.943 MB / 1.316 GB, free: 15.45 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 2.785e-06/0.7232, allocations: 0 / 1.316 GB, free: 15.45 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.253e-06/0.7232, allocations: 0 / 1.316 GB, free: 15.45 MB / 1.045 GB Notification: Performance of Transformations before backend: time 2.088e-05/0.7233, allocations: 0 / 1.316 GB, free: 15.45 MB / 1.045 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.004423/0.7277, allocations: 3.038 MB / 1.319 GB, free: 12.33 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.336e-05/0.7277, allocations: 11.98 kB / 1.319 GB, free: 12.32 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001963/0.7279, allocations: 177 kB / 1.319 GB, free: 12.14 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002451/0.7304, allocations: 0.5603 MB / 1.32 GB, free: 11.57 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004247/0.7347, allocations: 2.76 MB / 1.322 GB, free: 8.742 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.708e-05/0.7347, allocations: 86.23 kB / 1.323 GB, free: 8.656 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001685/0.7349, allocations: 128 kB / 1.323 GB, free: 8.531 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002442/0.7374, allocations: 1.362 MB / 1.324 GB, free: 7.074 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.614e-05/0.7374, allocations: 0 / 1.324 GB, free: 7.074 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001043/0.7375, allocations: 48 kB / 1.324 GB, free: 7.027 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.782e-05/0.7376, allocations: 46.06 kB / 1.324 GB, free: 6.98 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00264/0.7402, allocations: 1.105 MB / 1.325 GB, free: 5.867 MB / 1.045 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.008795/0.749, allocations: 7.474 MB / 1.332 GB, free: 13.84 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002355/0.7514, allocations: 1.345 MB / 1.334 GB, free: 12.38 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009376/0.7523, allocations: 424.4 kB / 1.334 GB, free: 11.96 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004793/0.7571, allocations: 3.157 MB / 1.337 GB, free: 8.461 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009835/0.7581, allocations: 430.9 kB / 1.338 GB, free: 8.031 MB / 1.061 GB Notification: Performance of pre-optimization done (n=59): time 1.974e-06/0.7582, allocations: 0 / 1.338 GB, free: 8.031 MB / 1.061 GB Notification: Performance of matching and sorting (n=59): time 0.002952/0.7611, allocations: 1.253 MB / 1.339 GB, free: 6.75 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.272e-05/0.7612, allocations: 59.97 kB / 1.339 GB, free: 6.68 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002524/0.7637, allocations: 2.133 MB / 1.341 GB, free: 4.52 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 6.497e-05/0.7638, allocations: 45.7 kB / 1.341 GB, free: 4.469 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008264/0.7646, allocations: 1.036 MB / 1.342 GB, free: 3.426 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001892/0.7648, allocations: 226.1 kB / 1.342 GB, free: 3.203 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004011/0.7652, allocations: 318.7 kB / 1.343 GB, free: 2.883 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001214/0.7653, allocations: 301.1 kB / 1.343 GB, free: 2.586 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001106/0.7664, allocations: 0.5532 MB / 1.343 GB, free: 2.027 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00145/0.7679, allocations: 0.9847 MB / 1.344 GB, free: 0.8594 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002375/0.7703, allocations: 1.451 MB / 1.346 GB, free: 15.24 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.688e-06/0.7703, allocations: 8 kB / 1.346 GB, free: 15.23 MB / 1.076 GB Notification: Performance of matching and sorting (n=188) (initialization): time 0.003084/0.7734, allocations: 1.776 MB / 1.348 GB, free: 13.45 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 3.703e-05/0.7734, allocations: 41.64 kB / 1.348 GB, free: 13.4 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.606e-05/0.7735, allocations: 12 kB / 1.348 GB, free: 13.39 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.407e-05/0.7735, allocations: 16 kB / 1.348 GB, free: 13.37 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001044/0.7745, allocations: 307.8 kB / 1.348 GB, free: 13.07 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.65e-05/0.7746, allocations: 27.88 kB / 1.348 GB, free: 13.04 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00104/0.7756, allocations: 187 kB / 1.348 GB, free: 12.86 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.745e-05/0.7757, allocations: 59.98 kB / 1.348 GB, free: 12.8 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001634/0.7774, allocations: 0.9717 MB / 1.349 GB, free: 11.82 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001439/0.7788, allocations: 0.9925 MB / 1.35 GB, free: 10.64 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002345/0.7812, allocations: 1.451 MB / 1.352 GB, free: 9.023 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.032e-06/0.7812, allocations: 4.188 kB / 1.352 GB, free: 9.02 MB / 1.076 GB Notification: Performance of matching and sorting (n=188) (initialization_lambda0): time 0.003086/0.7843, allocations: 1.775 MB / 1.353 GB, free: 7.234 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 3.195e-05/0.7843, allocations: 49.7 kB / 1.353 GB, free: 7.18 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.285e-05/0.7843, allocations: 12 kB / 1.353 GB, free: 7.168 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.508e-05/0.7844, allocations: 16 kB / 1.353 GB, free: 7.152 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001052/0.7854, allocations: 311.6 kB / 1.354 GB, free: 6.848 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.467e-05/0.7855, allocations: 27.88 kB / 1.354 GB, free: 6.82 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001058/0.7865, allocations: 167.2 kB / 1.354 GB, free: 6.656 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.54e-05/0.7866, allocations: 59.98 kB / 1.354 GB, free: 6.598 MB / 1.076 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.0002525/0.7869, allocations: 258.7 kB / 1.354 GB, free: 6.34 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002525/0.7871, allocations: 214.5 kB / 1.354 GB, free: 6.129 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002512/0.7897, allocations: 1.123 MB / 1.355 GB, free: 4.988 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.084e-05/0.7897, allocations: 8 kB / 1.355 GB, free: 4.98 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.394e-06/0.7897, allocations: 4 kB / 1.355 GB, free: 4.977 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001909/0.7916, allocations: 0.9582 MB / 1.356 GB, free: 3.965 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004456/0.7961, allocations: 2.613 MB / 1.359 GB, free: 1.281 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.223e-06/0.7961, allocations: 7.922 kB / 1.359 GB, free: 1.273 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006983/0.7968, allocations: 155.8 kB / 1.359 GB, free: 1.121 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001379/0.7969, allocations: 24.84 kB / 1.359 GB, free: 1.094 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.075e-05/0.797, allocations: 19.98 kB / 1.359 GB, free: 1.074 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001101/0.7981, allocations: 1.418 MB / 1.361 GB, free: 15.52 MB / 1.092 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.668e-06/0.7981, allocations: 8.188 kB / 1.361 GB, free: 15.51 MB / 1.092 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003196/0.8013, allocations: 1.579 MB / 1.362 GB, free: 13.91 MB / 1.092 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005685/0.8019, allocations: 411.3 kB / 1.362 GB, free: 13.48 MB / 1.092 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001957/0.8021, allocations: 12 kB / 1.362 GB, free: 13.47 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000834/0.8029, allocations: 71.81 kB / 1.363 GB, free: 13.4 MB / 1.092 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001109/0.8031, allocations: 52.48 kB / 1.363 GB, free: 13.35 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.718e-05/0.8031, allocations: 31.97 kB / 1.363 GB, free: 13.32 MB / 1.092 GB Notification: Performance of sorting global known variables: time 0.001971/0.8051, allocations: 1.481 MB / 1.364 GB, free: 11.82 MB / 1.092 GB Notification: Performance of sort global known variables: time 1.7e-07/0.8051, allocations: 0 / 1.364 GB, free: 11.82 MB / 1.092 GB Notification: Performance of remove unused functions: time 0.002283/0.8074, allocations: 1.033 MB / 1.365 GB, free: 10.79 MB / 1.092 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.005584/0.813, allocations: 2.917 MB / 1.368 GB, free: 7.977 MB / 1.092 GB Notification: Performance of simCode: created initialization part: time 0.003919/0.8169, allocations: 2.09 MB / 1.37 GB, free: 5.867 MB / 1.092 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.817, allocations: 4.25 kB / 1.37 GB, free: 5.863 MB / 1.092 GB Notification: Performance of simCode: created simulation system equations: time 0.001137/0.8181, allocations: 0.5447 MB / 1.371 GB, free: 5.301 MB / 1.092 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003299/0.8214, allocations: 0.9609 MB / 1.371 GB, free: 4.367 MB / 1.092 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02094/0.8424, allocations: 14.74 MB / 1.386 GB, free: 5.105 MB / 1.107 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001169/0.8435, allocations: 1.542 MB / 1.387 GB, free: 3.527 MB / 1.107 GB Notification: Performance of simCode: alias equations: time 0.001524/0.8451, allocations: 0.5241 MB / 1.388 GB, free: 3 MB / 1.107 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001119/0.8462, allocations: 0.8546 MB / 1.389 GB, free: 2.145 MB / 1.107 GB Notification: Performance of SimCode: time 7.21e-07/0.8462, allocations: 0 / 1.389 GB, free: 2.145 MB / 1.107 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.853/2.699, allocations: 56.13 MB / 1.444 GB, free: 10.68 MB / 1.17 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.13/19.83, allocations: 6.812 kB / 1.444 GB, free: 10.67 MB / 1.17 GB (rm -f Buildings_11_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo Buildings_11_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/Buildings_11_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T_res.mat --tempDir=temp_Buildings_11_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T_fmu --startTime=0 --stopTime=172800 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T.fmu > Buildings_11_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1)