Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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 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: translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T") translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001189/0.001189, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001589/0.001589, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.589/1.589, allocations: 205.4 MB / 222.1 MB, free: 5.672 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.539/1.539, allocations: 251.9 MB / 0.51 GB, free: 4.848 MB / 414.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005797/0.0005797, allocations: 19.59 kB / 0.6241 GB, free: 1.195 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5861/0.5867, allocations: 106.3 MB / 0.728 GB, free: 11.6 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T): time 0.04552/0.6323, allocations: 44.87 MB / 0.7718 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.02818/0.6605, allocations: 15.61 MB / 0.787 GB, free: 14.98 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004021/0.6646, allocations: 71.5 kB / 0.7871 GB, free: 14.91 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.005446/0.6701, allocations: 0.9573 MB / 0.788 GB, free: 13.95 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.01001/0.6801, allocations: 2.326 MB / 0.7903 GB, free: 11.62 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0101/0.6902, allocations: 2.955 MB / 0.7932 GB, free: 8.691 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.007005/0.6972, allocations: 2.756 MB / 0.7959 GB, free: 5.934 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003152/0.7004, allocations: 1.238 MB / 0.7971 GB, free: 4.672 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003915/0.7044, allocations: 1.358 MB / 0.7984 GB, free: 3.309 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002327/0.7067, allocations: 0.9099 MB / 0.7993 GB, free: 2.395 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0005915/0.7073, allocations: 68 kB / 0.7994 GB, free: 2.328 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004246/0.7116, allocations: 1.357 MB / 0.8007 GB, free: 0.9688 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0009514/0.7126, allocations: 398.4 kB / 0.8011 GB, free: 0.5781 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.001181/0.7138, allocations: 408.6 kB / 0.8015 GB, free: 176 kB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.004738/0.7185, allocations: 2.424 MB / 0.8038 GB, free: 13.74 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.7185, allocations: 0 / 0.8038 GB, free: 13.74 MB / 0.6231 GB Notification: Performance of FrontEnd: time 2.966e-06/0.7186, allocations: 0 / 0.8038 GB, free: 13.74 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 0.0001192/0.7187, allocations: 0 / 0.8038 GB, free: 13.74 MB / 0.6231 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 282 * Number of variables: 282 Notification: Performance of Generate backend data structure: time 0.006201/0.7249, allocations: 2.218 MB / 0.806 GB, free: 11.46 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 6.504e-05/0.725, allocations: 15.97 kB / 0.806 GB, free: 11.44 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002795/0.7278, allocations: 492.9 kB / 0.8065 GB, free: 10.96 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004236/0.732, allocations: 1.524 MB / 0.808 GB, free: 9.383 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004467/0.7325, allocations: 158.2 kB / 0.8081 GB, free: 9.227 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003749/0.7329, allocations: 135.8 kB / 0.8083 GB, free: 9.094 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00328/0.7362, allocations: 1.376 MB / 0.8096 GB, free: 7.617 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.561e-05/0.7362, allocations: 3.984 kB / 0.8096 GB, free: 7.613 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001488/0.7364, allocations: 48 kB / 0.8096 GB, free: 7.566 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.911e-05/0.7365, allocations: 28 kB / 0.8097 GB, free: 7.539 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003037/0.7395, allocations: 1.117 MB / 0.8108 GB, free: 6.414 MB / 0.6231 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.01216/0.7517, allocations: 7.136 MB / 0.8177 GB, free: 14.71 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002809/0.7545, allocations: 1.418 MB / 0.8191 GB, free: 13.18 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006053/0.7606, allocations: 3.079 MB / 0.8221 GB, free: 9.758 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001114/0.7618, allocations: 454.8 kB / 0.8226 GB, free: 9.305 MB / 0.6387 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008096/0.7626, allocations: 87.19 kB / 0.8226 GB, free: 9.219 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=61): time 4.398e-06/0.7626, allocations: 4 kB / 0.8226 GB, free: 9.215 MB / 0.6387 GB Notification: Performance of matching and sorting (n=61): time 0.003598/0.7662, allocations: 1.288 MB / 0.8239 GB, free: 7.902 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001065/0.7664, allocations: 137.1 kB / 0.824 GB, free: 7.734 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003486/0.7699, allocations: 1.605 MB / 0.8256 GB, free: 6.129 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.0001309/0.77, allocations: 41.7 kB / 0.8256 GB, free: 6.082 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.001162/0.7712, allocations: 0.8881 MB / 0.8265 GB, free: 5.184 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002597/0.7715, allocations: 212.9 kB / 0.8267 GB, free: 4.973 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.959e-05/0.7715, allocations: 20 kB / 0.8267 GB, free: 4.953 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001769/0.7717, allocations: 341.9 kB / 0.8271 GB, free: 4.613 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001008/0.7727, allocations: 389.8 kB / 0.8274 GB, free: 4.234 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00137/0.7741, allocations: 0.7852 MB / 0.8282 GB, free: 3.262 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001206/0.7753, allocations: 0.4888 MB / 0.8287 GB, free: 2.77 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.147e-05/0.7753, allocations: 4 kB / 0.8287 GB, free: 2.766 MB / 0.6387 GB Notification: Performance of matching and sorting (n=126) (initialization): time 0.003207/0.7786, allocations: 1.333 MB / 0.83 GB, free: 1.418 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 0.002235/0.7808, allocations: 4.368 MB / 0.8342 GB, free: 12.67 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.725e-05/0.7809, allocations: 12 kB / 0.8343 GB, free: 12.66 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.315e-05/0.7809, allocations: 20 kB / 0.8343 GB, free: 12.64 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001109/0.782, allocations: 267.6 kB / 0.8345 GB, free: 12.38 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.405e-05/0.7821, allocations: 23.92 kB / 0.8346 GB, free: 12.36 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001594/0.7837, allocations: 132.5 kB / 0.8347 GB, free: 12.23 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001417/0.7838, allocations: 55.98 kB / 0.8347 GB, free: 12.17 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.323e-05/0.7838, allocations: 3.953 kB / 0.8347 GB, free: 12.17 MB / 0.6544 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00268/0.7865, allocations: 1.153 MB / 0.8359 GB, free: 11.01 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.602e-05/0.7866, allocations: 16 kB / 0.8359 GB, free: 10.99 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.316e-05/0.7866, allocations: 16 kB / 0.8359 GB, free: 10.98 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001039/0.7877, allocations: 268.1 kB / 0.8361 GB, free: 10.71 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.928e-05/0.7877, allocations: 19.94 kB / 0.8362 GB, free: 10.7 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001458/0.7892, allocations: 132.4 kB / 0.8363 GB, free: 10.57 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001284/0.7893, allocations: 51.98 kB / 0.8363 GB, free: 10.52 MB / 0.6544 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * 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 (122): * Single equations (assignments): 118 * 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.001027/0.7903, allocations: 497.4 kB / 0.8368 GB, free: 10.02 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004374/0.7908, allocations: 169.8 kB / 0.837 GB, free: 9.852 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00302/0.7938, allocations: 1.171 MB / 0.8381 GB, free: 8.668 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.797e-05/0.7938, allocations: 8 kB / 0.8381 GB, free: 8.66 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.337e-06/0.7939, allocations: 0 / 0.8381 GB, free: 8.66 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002048/0.7959, allocations: 0.9939 MB / 0.8391 GB, free: 7.613 MB / 0.6544 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.005364/0.8013, allocations: 2.475 MB / 0.8415 GB, free: 5.062 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.625e-06/0.8013, allocations: 4 kB / 0.8415 GB, free: 5.059 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007898/0.8021, allocations: 155.8 kB / 0.8417 GB, free: 4.906 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002341/0.8024, allocations: 36.83 kB / 0.8417 GB, free: 4.867 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.371e-05/0.8024, allocations: 23.98 kB / 0.8417 GB, free: 4.844 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001368/0.8038, allocations: 1.378 MB / 0.8431 GB, free: 3.336 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.8038, allocations: 0 / 0.8431 GB, free: 3.336 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003643/0.8075, allocations: 1.639 MB / 0.8447 GB, free: 1.648 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001004/0.8085, allocations: 355 kB / 0.845 GB, free: 1.281 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005414/0.8091, allocations: 23.98 kB / 0.845 GB, free: 1.258 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001353/0.8104, allocations: 119.8 kB / 0.8452 GB, free: 1.141 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001545/0.8106, allocations: 52.48 kB / 0.8452 GB, free: 1.09 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.404e-05/0.8107, allocations: 35.95 kB / 0.8452 GB, free: 1.055 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.002454/0.8132, allocations: 1.133 MB / 0.8463 GB, free: 15.89 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.9e-07/0.8132, allocations: 0 / 0.8463 GB, free: 15.89 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.003712/0.8169, allocations: 0.9318 MB / 0.8473 GB, free: 14.96 MB / 0.67 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.x[1],mov.filter.x[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 (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.002086/0.819, allocations: 0.7617 MB / 0.848 GB, free: 14.33 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.004211/0.8232, allocations: 1.706 MB / 0.8497 GB, free: 12.6 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 9.147e-06/0.8233, allocations: 3.984 kB / 0.8497 GB, free: 12.6 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.001416/0.8247, allocations: 0.5646 MB / 0.8502 GB, free: 12.02 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004063/0.8288, allocations: 0.7286 MB / 0.8509 GB, free: 11.29 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008252/0.837, allocations: 3.769 MB / 0.8546 GB, free: 7.484 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001632/0.8387, allocations: 1.407 MB / 0.856 GB, free: 6.047 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.002393/0.8411, allocations: 422.2 kB / 0.8564 GB, free: 5.629 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005779/0.8417, allocations: 147.4 kB / 0.8565 GB, free: 5.484 MB / 0.67 GB Notification: Performance of SimCode: time 1.032e-06/0.8417, allocations: 0 / 0.8565 GB, free: 5.484 MB / 0.67 GB Notification: Performance of Templates: time 0.05893/0.9007, allocations: 31.51 MB / 0.8873 GB, free: 6.395 MB / 0.7012 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.makefile Environment - environmentSimulation: (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1) Environment - environmentSimulation: