Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="Buildings_latest_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.004818/0.004818, allocations: 99.34 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.001316/0.001316, allocations: 199.1 kB / 16.68 MB, free: 5.977 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.249/1.249, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.496/2.496, allocations: 482.6 MB / 0.755 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001655/0.001655, allocations: 59.91 kB / 1.083 GB, free: 12.2 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2505/0.2522, allocations: 162.3 MB / 1.242 GB, free: 9.789 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.5115/0.7637, allocations: 67.56 MB / 1.308 GB, free: 2.988 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.02437/0.7881, allocations: 18.59 MB / 1.326 GB, free: 5.773 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002367/0.7905, allocations: 103 kB / 1.326 GB, free: 5.734 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.004375/0.795, allocations: 1.979 MB / 1.328 GB, free: 4.809 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.005836/0.8008, allocations: 2.821 MB / 1.331 GB, free: 3.145 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.005076/0.8059, allocations: 2.441 MB / 1.333 GB, free: 1.871 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.009479/0.8154, allocations: 8.023 MB / 1.341 GB, free: 14.62 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002395/0.8178, allocations: 1.936 MB / 1.343 GB, free: 13.69 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004013/0.8218, allocations: 2.255 MB / 1.345 GB, free: 12.64 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001646/0.8235, allocations: 1.522 MB / 1.347 GB, free: 11.91 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 0.0002742/0.8238, allocations: 202.9 kB / 1.347 GB, free: 11.9 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003762/0.8275, allocations: 2.143 MB / 1.349 GB, free: 11.19 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0005723/0.8281, allocations: 0.6956 MB / 1.35 GB, free: 10.83 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.001191/0.8293, allocations: 1.311 MB / 1.351 GB, free: 10 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.004728/0.834, allocations: 4.234 MB / 1.355 GB, free: 7.316 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 2.946e-06/0.8341, allocations: 0 / 1.355 GB, free: 7.316 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.072e-06/0.8341, allocations: 0 / 1.355 GB, free: 7.316 MB / 1.061 GB Notification: Performance of Transformations before backend: time 2.28e-05/0.8341, allocations: 0 / 1.355 GB, free: 7.316 MB / 1.061 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.004351/0.8384, allocations: 3.178 MB / 1.358 GB, free: 4.902 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.002e-05/0.8385, allocations: 10.75 kB / 1.358 GB, free: 4.902 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002001/0.8387, allocations: 182.6 kB / 1.358 GB, free: 4.754 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001699/0.8404, allocations: 492.4 kB / 1.359 GB, free: 4.523 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004074/0.8445, allocations: 2.878 MB / 1.362 GB, free: 2.539 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.103e-05/0.8446, allocations: 100.5 kB / 1.362 GB, free: 2.492 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001661/0.8447, allocations: 141.4 kB / 1.362 GB, free: 2.441 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00233/0.8471, allocations: 1.442 MB / 1.363 GB, free: 1.496 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.885e-05/0.8471, allocations: 5.391 kB / 1.363 GB, free: 1.492 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001089/0.8472, allocations: 52.34 kB / 1.363 GB, free: 1.453 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.922e-05/0.8473, allocations: 36.38 kB / 1.363 GB, free: 1.449 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002309/0.8496, allocations: 1.111 MB / 1.364 GB, free: 0.9023 MB / 1.061 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.007926/0.8575, allocations: 7.752 MB / 1.372 GB, free: 9.906 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002056/0.8596, allocations: 1.306 MB / 1.373 GB, free: 8.91 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008868/0.8605, allocations: 434.8 kB / 1.374 GB, free: 8.703 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00296/0.8634, allocations: 2.367 MB / 1.376 GB, free: 6.488 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009647/0.8644, allocations: 466 kB / 1.376 GB, free: 6.211 MB / 1.076 GB Notification: Performance of pre-optimization done (n=64): time 1.913e-06/0.8644, allocations: 0 / 1.376 GB, free: 6.211 MB / 1.076 GB Notification: Performance of matching and sorting (n=64): time 0.00291/0.8673, allocations: 1.314 MB / 1.378 GB, free: 5.508 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.035e-05/0.8674, allocations: 62.23 kB / 1.378 GB, free: 5.441 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002327/0.8697, allocations: 2.05 MB / 1.38 GB, free: 4.312 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 6.454e-05/0.8698, allocations: 44.19 kB / 1.38 GB, free: 4.27 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 0.000812/0.8706, allocations: 1.04 MB / 1.381 GB, free: 3.355 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001929/0.8708, allocations: 236.6 kB / 1.381 GB, free: 3.152 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003974/0.8712, allocations: 316.2 kB / 1.381 GB, free: 2.973 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0001072/0.8713, allocations: 301.1 kB / 1.382 GB, free: 2.676 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001042/0.8724, allocations: 0.5591 MB / 1.382 GB, free: 2.398 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001351/0.8737, allocations: 0.9559 MB / 1.383 GB, free: 1.621 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002192/0.8759, allocations: 1.424 MB / 1.384 GB, free: 0.6367 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.035e-06/0.876, allocations: 2.75 kB / 1.384 GB, free: 0.6367 MB / 1.076 GB Notification: Performance of matching and sorting (n=187) (initialization): time 0.002909/0.8789, allocations: 1.774 MB / 1.386 GB, free: 15.74 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 3.537e-05/0.8789, allocations: 35.36 kB / 1.386 GB, free: 15.71 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.555e-05/0.8789, allocations: 17.97 kB / 1.386 GB, free: 15.7 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.438e-05/0.879, allocations: 16.78 kB / 1.386 GB, free: 15.7 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009629/0.8799, allocations: 306.7 kB / 1.387 GB, free: 15.62 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.21e-05/0.88, allocations: 24.05 kB / 1.387 GB, free: 15.62 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001056/0.881, allocations: 181.8 kB / 1.387 GB, free: 15.5 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.431e-05/0.8811, allocations: 56.92 kB / 1.387 GB, free: 15.49 MB / 1.092 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001497/0.8826, allocations: 0.9943 MB / 1.388 GB, free: 14.93 MB / 1.092 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001286/0.8839, allocations: 0.9555 MB / 1.389 GB, free: 14.16 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002155/0.8861, allocations: 1.419 MB / 1.39 GB, free: 13.18 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.03e-06/0.8861, allocations: 2.344 kB / 1.39 GB, free: 13.18 MB / 1.092 GB Notification: Performance of matching and sorting (n=187) (initialization_lambda0): time 0.002927/0.8891, allocations: 1.776 MB / 1.392 GB, free: 11.96 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 3.373e-05/0.8891, allocations: 37.7 kB / 1.392 GB, free: 11.91 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/0.8891, allocations: 11.94 kB / 1.392 GB, free: 11.9 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.546e-05/0.8891, allocations: 19.94 kB / 1.392 GB, free: 11.88 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009975/0.8901, allocations: 311.5 kB / 1.392 GB, free: 11.58 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.774e-05/0.8902, allocations: 19.94 kB / 1.392 GB, free: 11.56 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001044/0.8912, allocations: 159.2 kB / 1.392 GB, free: 11.4 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.442e-05/0.8913, allocations: 59.98 kB / 1.392 GB, free: 11.34 MB / 1.092 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * 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 (153): * Single equations (assignments): 150 * 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.0002304/0.8916, allocations: 255.9 kB / 1.393 GB, free: 11.09 MB / 1.092 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002686/0.8918, allocations: 206.6 kB / 1.393 GB, free: 10.88 MB / 1.092 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002421/0.8943, allocations: 1.139 MB / 1.394 GB, free: 9.73 MB / 1.092 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.058e-05/0.8943, allocations: 4.094 kB / 1.394 GB, free: 9.727 MB / 1.092 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.979e-06/0.8943, allocations: 7.984 kB / 1.394 GB, free: 9.719 MB / 1.092 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001804/0.8961, allocations: 0.8277 MB / 1.395 GB, free: 8.875 MB / 1.092 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004336/0.9004, allocations: 2.674 MB / 1.397 GB, free: 6.133 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.9005, allocations: 0 / 1.397 GB, free: 6.133 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007293/0.9012, allocations: 163.8 kB / 1.398 GB, free: 5.973 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001501/0.9014, allocations: 36.83 kB / 1.398 GB, free: 5.934 MB / 1.092 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.639e-05/0.9014, allocations: 19.98 kB / 1.398 GB, free: 5.914 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001179/0.9026, allocations: 1.474 MB / 1.399 GB, free: 4.293 MB / 1.092 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.468e-06/0.9026, allocations: 3.938 kB / 1.399 GB, free: 4.289 MB / 1.092 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003015/0.9056, allocations: 1.603 MB / 1.401 GB, free: 2.668 MB / 1.092 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004956/0.9061, allocations: 407.4 kB / 1.401 GB, free: 2.25 MB / 1.092 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001935/0.9063, allocations: 15.94 kB / 1.401 GB, free: 2.234 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008417/0.9072, allocations: 71.92 kB / 1.401 GB, free: 2.164 MB / 1.092 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000105/0.9073, allocations: 44.59 kB / 1.401 GB, free: 2.117 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.816e-05/0.9074, allocations: 39.97 kB / 1.401 GB, free: 2.078 MB / 1.092 GB Notification: Performance of sorting global known variables: time 0.001694/0.9091, allocations: 1.36 MB / 1.403 GB, free: 0.7031 MB / 1.092 GB Notification: Performance of sort global known variables: time 1.71e-07/0.9091, allocations: 4 kB / 1.403 GB, free: 0.6992 MB / 1.092 GB Notification: Performance of remove unused functions: time 0.002324/0.9114, allocations: 1.134 MB / 1.404 GB, free: 15.56 MB / 1.107 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (vol.dynBal.U,mov.motSpe.y,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 (72): * Single equations (assignments): 64 * 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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004445/0.9159, allocations: 2.721 MB / 1.406 GB, free: 12.81 MB / 1.107 GB Notification: Performance of simCode: created initialization part: time 0.0036/0.9195, allocations: 2.114 MB / 1.408 GB, free: 10.68 MB / 1.107 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.9195, allocations: 448 / 1.408 GB, free: 10.68 MB / 1.107 GB Notification: Performance of simCode: created simulation system equations: time 0.001113/0.9206, allocations: 0.5724 MB / 1.409 GB, free: 10.09 MB / 1.107 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003317/0.9239, allocations: 0.989 MB / 1.41 GB, free: 9.133 MB / 1.107 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01957/0.9435, allocations: 14.31 MB / 1.424 GB, free: 10.34 MB / 1.123 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001147/0.9447, allocations: 1.562 MB / 1.425 GB, free: 8.738 MB / 1.123 GB Notification: Performance of simCode: alias equations: time 0.001394/0.9461, allocations: 0.5016 MB / 1.426 GB, free: 8.234 MB / 1.123 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001075/0.9472, allocations: 0.8936 MB / 1.427 GB, free: 7.34 MB / 1.123 GB Notification: Performance of SimCode: time 6.61e-07/0.9472, allocations: 0 / 1.427 GB, free: 7.34 MB / 1.123 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 20.46/21.4, allocations: 56.09 MB / 1.482 GB, free: 15.95 MB / 1.186 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.35/43.75, allocations: 3.75 kB / 1.482 GB, free: 15.94 MB / 1.186 GB (rm -f Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u_fmu --startTime=0 --stopTime=172800 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u.fmu > Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)