Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_u,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u",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.0008971/0.0008971, allocations: 91.14 kB / 15.36 MB, free: 0.7383 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.004956/0.004956, allocations: 172.9 kB / 16.26 MB, free: 6.613 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.233/1.233, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.178/2.178, allocations: 390.9 MB / 0.6664 GB, free: 2.387 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003295/0.0003295, allocations: 8 kB / 0.8161 GB, free: 13.16 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5268/0.5272, allocations: 142.4 MB / 0.9552 GB, free: 7.656 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.05303/0.5803, allocations: 65.35 MB / 1.019 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.02092/0.6012, allocations: 16.66 MB / 1.035 GB, free: 13.07 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002603/0.6039, allocations: 83.44 kB / 1.035 GB, free: 12.99 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.002956/0.6068, allocations: 0.991 MB / 1.036 GB, free: 12 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.00617/0.613, allocations: 2.457 MB / 1.039 GB, free: 9.531 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.004742/0.6178, allocations: 2.09 MB / 1.041 GB, free: 7.457 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.007155/0.6249, allocations: 6.981 MB / 1.048 GB, free: 476 kB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002076/0.627, allocations: 1.582 MB / 1.049 GB, free: 14.83 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002662/0.6297, allocations: 1.734 MB / 1.051 GB, free: 13.09 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001562/0.6313, allocations: 1.431 MB / 1.052 GB, free: 11.65 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0001659/0.6314, allocations: 72 kB / 1.052 GB, free: 11.58 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003191/0.6346, allocations: 1.824 MB / 1.054 GB, free: 9.754 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0005234/0.6352, allocations: 442.1 kB / 1.054 GB, free: 9.32 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.001021/0.6362, allocations: 1.023 MB / 1.055 GB, free: 8.285 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.003754/0.64, allocations: 3.465 MB / 1.059 GB, free: 4.809 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.64, allocations: 0 / 1.059 GB, free: 4.809 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.473e-06/0.64, allocations: 0 / 1.059 GB, free: 4.809 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.816e-05/0.64, allocations: 0 / 1.059 GB, free: 4.809 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 310 * Number of variables: 310 Notification: Performance of Generate backend data structure: time 0.003819/0.6438, allocations: 2.29 MB / 1.061 GB, free: 2.445 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.489e-05/0.6439, allocations: 8.031 kB / 1.061 GB, free: 2.438 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002183/0.6441, allocations: 185.9 kB / 1.061 GB, free: 2.246 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001901/0.646, allocations: 481.6 kB / 1.062 GB, free: 1.773 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003153/0.6492, allocations: 1.835 MB / 1.064 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003848/0.6496, allocations: 174.3 kB / 1.064 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001909/0.6498, allocations: 131.9 kB / 1.064 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002588/0.6524, allocations: 1.47 MB / 1.065 GB, free: 14.03 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.764e-05/0.6524, allocations: 0 / 1.065 GB, free: 14.03 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001218/0.6525, allocations: 56 kB / 1.065 GB, free: 13.98 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.855e-05/0.6526, allocations: 50.25 kB / 1.065 GB, free: 13.93 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002603/0.6552, allocations: 1.184 MB / 1.067 GB, free: 12.73 MB / 0.8262 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.008972/0.6642, allocations: 7.424 MB / 1.074 GB, free: 4.734 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002239/0.6665, allocations: 1.391 MB / 1.075 GB, free: 3.227 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001037/0.6675, allocations: 490.3 kB / 1.076 GB, free: 2.742 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004278/0.6718, allocations: 2.709 MB / 1.078 GB, free: 15.8 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001091/0.6729, allocations: 0.5259 MB / 1.079 GB, free: 15.25 MB / 0.8419 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003266/0.6732, allocations: 79.41 kB / 1.079 GB, free: 15.18 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=64): time 2.034e-06/0.6733, allocations: 0 / 1.079 GB, free: 15.18 MB / 0.8419 GB Notification: Performance of matching and sorting (n=64): time 0.003027/0.6763, allocations: 1.331 MB / 1.08 GB, free: 13.82 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.149e-05/0.6764, allocations: 115.4 kB / 1.08 GB, free: 13.68 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001652/0.678, allocations: 1.449 MB / 1.082 GB, free: 12.23 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 7.399e-05/0.6781, allocations: 41.7 kB / 1.082 GB, free: 12.18 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006569/0.6788, allocations: 0.8995 MB / 1.083 GB, free: 11.27 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002029/0.679, allocations: 236.7 kB / 1.083 GB, free: 11.04 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000117/0.6791, allocations: 89.66 kB / 1.083 GB, free: 10.95 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001221/0.6792, allocations: 349.9 kB / 1.083 GB, free: 10.6 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009425/0.6802, allocations: 409.8 kB / 1.084 GB, free: 10.2 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001164/0.6813, allocations: 0.7624 MB / 1.084 GB, free: 9.277 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002047/0.6834, allocations: 1.167 MB / 1.085 GB, free: 7.969 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.984e-06/0.6834, allocations: 4 kB / 1.085 GB, free: 7.965 MB / 0.8419 GB Notification: Performance of matching and sorting (n=124) (initialization): time 0.002531/0.686, allocations: 1.348 MB / 1.087 GB, free: 6.602 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 0.00024/0.6862, allocations: 419.1 kB / 1.087 GB, free: 6.047 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.144e-05/0.6862, allocations: 8 kB / 1.087 GB, free: 6.039 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.188e-05/0.6863, allocations: 16 kB / 1.087 GB, free: 6.023 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009732/0.6872, allocations: 267.6 kB / 1.087 GB, free: 5.762 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.057e-05/0.6873, allocations: 27.81 kB / 1.088 GB, free: 5.734 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001071/0.6883, allocations: 136.5 kB / 1.088 GB, free: 5.598 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.157e-05/0.6884, allocations: 51.98 kB / 1.088 GB, free: 5.547 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 6.101e-06/0.6884, allocations: 4 kB / 1.088 GB, free: 5.543 MB / 0.8419 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002305/0.6908, allocations: 1.153 MB / 1.089 GB, free: 4.383 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.408e-06/0.6908, allocations: 8 kB / 1.089 GB, free: 4.375 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.199e-05/0.6908, allocations: 16 kB / 1.089 GB, free: 4.359 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000939/0.6917, allocations: 268.2 kB / 1.089 GB, free: 4.098 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.188e-05/0.6918, allocations: 19.92 kB / 1.089 GB, free: 4.078 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009873/0.6928, allocations: 132.5 kB / 1.089 GB, free: 3.949 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.392e-05/0.6928, allocations: 51.98 kB / 1.089 GB, free: 3.898 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (122): * Single equations (assignments): 120 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * 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.0005688/0.6934, allocations: 498.6 kB / 1.09 GB, free: 3.402 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001905/0.6936, allocations: 169.9 kB / 1.09 GB, free: 3.234 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002481/0.6961, allocations: 1.147 MB / 1.091 GB, free: 2.074 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.203e-05/0.6961, allocations: 8 kB / 1.091 GB, free: 2.066 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.6961, allocations: 3.984 kB / 1.091 GB, free: 2.062 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001875/0.698, allocations: 0.8666 MB / 1.092 GB, free: 1.184 MB / 0.8419 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.004437/0.7025, allocations: 2.786 MB / 1.095 GB, free: 14.31 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.7025, allocations: 4 kB / 1.095 GB, free: 14.31 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007929/0.7033, allocations: 180 kB / 1.095 GB, free: 14.13 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001371/0.7034, allocations: 32.84 kB / 1.095 GB, free: 14.1 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.976e-05/0.7035, allocations: 19.98 kB / 1.095 GB, free: 14.08 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009068/0.7044, allocations: 1.323 MB / 1.096 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/0.7044, allocations: 7.938 kB / 1.096 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003016/0.7074, allocations: 1.682 MB / 1.098 GB, free: 10.89 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004405/0.7079, allocations: 366.6 kB / 1.098 GB, free: 10.51 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002251/0.7081, allocations: 19.94 kB / 1.098 GB, free: 10.49 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001006/0.7091, allocations: 131.7 kB / 1.098 GB, free: 10.36 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001016/0.7093, allocations: 60.48 kB / 1.098 GB, free: 10.3 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.038e-05/0.7093, allocations: 31.97 kB / 1.098 GB, free: 10.27 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.001197/0.7105, allocations: 1.054 MB / 1.099 GB, free: 9.191 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.423e-06/0.7105, allocations: 3.938 kB / 1.099 GB, free: 9.188 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.002021/0.7126, allocations: 0.9471 MB / 1.1 GB, free: 8.238 MB / 0.8575 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.s[1],mov.filter.s[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 (76): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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.004095/0.7167, allocations: 2.657 MB / 1.103 GB, free: 5.539 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.003078/0.7197, allocations: 1.694 MB / 1.105 GB, free: 3.824 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.7198, allocations: 0 / 1.105 GB, free: 3.824 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.001098/0.7209, allocations: 0.5895 MB / 1.105 GB, free: 3.227 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003679/0.7246, allocations: 0.8443 MB / 1.106 GB, free: 2.387 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01988/0.7444, allocations: 13.92 MB / 1.12 GB, free: 3.5 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008476/0.7453, allocations: 1.393 MB / 1.121 GB, free: 2.066 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.001499/0.7468, allocations: 430.5 kB / 1.121 GB, free: 1.641 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008409/0.7477, allocations: 0.7413 MB / 1.122 GB, free: 0.8984 MB / 0.8731 GB Notification: Performance of SimCode: time 5.51e-07/0.7477, allocations: 0 / 1.122 GB, free: 0.8984 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.315/4.062, allocations: 46.24 MB / 1.167 GB, free: 3.273 MB / 0.92 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002372/4.063, allocations: 269.2 kB / 1.167 GB, free: 2.918 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.624/7.687, allocations: 3.625 kB / 1.168 GB, free: 2.918 MB / 0.92 GB (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u.fmu > Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)