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.001024/0.001024, allocations: 90.83 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.01054/0.01054, allocations: 171.9 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.447/1.447, allocations: 205.4 MB / 222.4 MB, free: 5.566 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.543/1.543, allocations: 252 MB / 0.5105 GB, free: 4.668 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.0005501/0.0005501, allocations: 16 kB / 0.6249 GB, free: 0.7383 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5433/0.5439, allocations: 106.3 MB / 0.7287 GB, free: 11.3 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T): time 0.05241/0.5964, allocations: 52.01 MB / 0.7795 GB, free: 7.102 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.0291/0.6255, allocations: 17.9 MB / 0.797 GB, free: 5.156 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003582/0.6291, allocations: 79.5 kB / 0.7971 GB, free: 5.078 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.00367/0.6328, allocations: 0.9837 MB / 0.798 GB, free: 4.094 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.006809/0.6397, allocations: 2.134 MB / 0.8001 GB, free: 1.953 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.00901/0.6487, allocations: 3.033 MB / 0.8031 GB, free: 14.94 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.00821/0.6569, allocations: 6.015 MB / 0.809 GB, free: 8.91 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002991/0.6599, allocations: 1.354 MB / 0.8103 GB, free: 7.527 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003983/0.6639, allocations: 1.602 MB / 0.8118 GB, free: 5.918 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002546/0.6665, allocations: 1.306 MB / 0.8131 GB, free: 4.605 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.0005466/0.6671, allocations: 68 kB / 0.8132 GB, free: 4.539 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004544/0.6717, allocations: 1.801 MB / 0.8149 GB, free: 2.734 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0008764/0.6726, allocations: 430.1 kB / 0.8153 GB, free: 2.312 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.001817/0.6744, allocations: 0.9377 MB / 0.8163 GB, free: 1.363 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.006184/0.6806, allocations: 3.267 MB / 0.8195 GB, free: 14.09 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.6806, allocations: 0 / 0.8195 GB, free: 14.09 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.283e-06/0.6806, allocations: 0 / 0.8195 GB, free: 14.09 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 9.729e-05/0.6807, allocations: 4 kB / 0.8195 GB, free: 14.08 MB / 0.6387 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.004742/0.6855, allocations: 2.206 MB / 0.8216 GB, free: 11.81 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 3.777e-05/0.6855, allocations: 8.031 kB / 0.8216 GB, free: 11.8 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002271/0.6878, allocations: 493.6 kB / 0.8221 GB, free: 11.32 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003654/0.6915, allocations: 1.655 MB / 0.8237 GB, free: 9.609 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004007/0.6919, allocations: 154.2 kB / 0.8239 GB, free: 9.457 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002882/0.6922, allocations: 124 kB / 0.824 GB, free: 9.336 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003045/0.6953, allocations: 1.383 MB / 0.8253 GB, free: 7.855 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.945e-05/0.6954, allocations: 15.78 kB / 0.8253 GB, free: 7.84 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000127/0.6955, allocations: 48 kB / 0.8254 GB, free: 7.793 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.467e-05/0.6955, allocations: 28 kB / 0.8254 GB, free: 7.766 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002822/0.6984, allocations: 1.128 MB / 0.8265 GB, free: 6.629 MB / 0.6387 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.01103/0.7094, allocations: 6.952 MB / 0.8333 GB, free: 15.14 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002795/0.7123, allocations: 1.435 MB / 0.8347 GB, free: 13.59 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001022/0.7133, allocations: 439.8 kB / 0.8351 GB, free: 13.16 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005666/0.719, allocations: 3.024 MB / 0.8381 GB, free: 9.797 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001264/0.7203, allocations: 458.9 kB / 0.8385 GB, free: 9.34 MB / 0.6544 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008041/0.7211, allocations: 91.25 kB / 0.8386 GB, free: 9.25 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=60): time 3.296e-06/0.7212, allocations: 0 / 0.8386 GB, free: 9.25 MB / 0.6544 GB Notification: Performance of matching and sorting (n=60): time 0.003527/0.7247, allocations: 1.284 MB / 0.8399 GB, free: 7.938 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.84e-05/0.7248, allocations: 111.4 kB / 0.84 GB, free: 7.805 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002721/0.7275, allocations: 1.542 MB / 0.8415 GB, free: 6.262 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 0.0001091/0.7277, allocations: 45.7 kB / 0.8415 GB, free: 6.211 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009389/0.7286, allocations: 0.8917 MB / 0.8424 GB, free: 5.309 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002235/0.7288, allocations: 216.9 kB / 0.8426 GB, free: 5.094 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001406/0.729, allocations: 89.66 kB / 0.8427 GB, free: 5 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001919/0.7292, allocations: 349.9 kB / 0.843 GB, free: 4.652 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001029/0.7302, allocations: 405.8 kB / 0.8434 GB, free: 4.254 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001424/0.7317, allocations: 0.8086 MB / 0.8442 GB, free: 3.262 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002304/0.734, allocations: 1.188 MB / 0.8453 GB, free: 1.914 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.077e-05/0.734, allocations: 4 kB / 0.8453 GB, free: 1.91 MB / 0.6544 GB Notification: Performance of matching and sorting (n=126) (initialization): time 0.003252/0.7373, allocations: 1.364 MB / 0.8467 GB, free: 0.5312 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004506/0.7377, allocations: 455.1 kB / 0.8471 GB, free: 15.92 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.746e-05/0.7378, allocations: 12 kB / 0.8471 GB, free: 15.91 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.308e-05/0.7378, allocations: 16 kB / 0.8471 GB, free: 15.89 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001029/0.7388, allocations: 275.5 kB / 0.8474 GB, free: 15.62 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.787e-05/0.7389, allocations: 23.92 kB / 0.8474 GB, free: 15.6 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001723/0.7406, allocations: 124.5 kB / 0.8475 GB, free: 15.48 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001368/0.7408, allocations: 51.98 kB / 0.8476 GB, free: 15.43 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/0.7408, allocations: 10.28 kB / 0.8476 GB, free: 15.42 MB / 0.67 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002791/0.7436, allocations: 1.177 MB / 0.8488 GB, free: 14.23 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.287e-05/0.7436, allocations: 12 kB / 0.8488 GB, free: 14.22 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.336e-05/0.7437, allocations: 16 kB / 0.8488 GB, free: 14.21 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009903/0.7447, allocations: 264.2 kB / 0.849 GB, free: 13.95 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.354e-05/0.7447, allocations: 27.86 kB / 0.8491 GB, free: 13.92 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001438/0.7462, allocations: 128.4 kB / 0.8492 GB, free: 13.8 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001173/0.7463, allocations: 51.98 kB / 0.8492 GB, free: 13.75 MB / 0.67 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * 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): 118 * Array equations: 2 * 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.001268/0.7476, allocations: 488.6 kB / 0.8497 GB, free: 13.26 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004341/0.748, allocations: 165.9 kB / 0.8499 GB, free: 13.09 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003095/0.7511, allocations: 1.159 MB / 0.851 GB, free: 11.93 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.946e-05/0.7511, allocations: 15.98 kB / 0.851 GB, free: 11.91 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.167e-05/0.7512, allocations: 7.922 kB / 0.851 GB, free: 11.9 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002084/0.7533, allocations: 0.9978 MB / 0.852 GB, free: 10.85 MB / 0.67 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.00507/0.7583, allocations: 2.417 MB / 0.8543 GB, free: 8.367 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.913e-06/0.7584, allocations: 0 / 0.8543 GB, free: 8.367 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00083/0.7592, allocations: 155.8 kB / 0.8545 GB, free: 8.215 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002324/0.7595, allocations: 32.84 kB / 0.8545 GB, free: 8.18 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.386e-05/0.7595, allocations: 19.98 kB / 0.8545 GB, free: 8.16 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001326/0.7609, allocations: 1.37 MB / 0.8559 GB, free: 6.652 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/0.7609, allocations: 7.984 kB / 0.8559 GB, free: 6.645 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003665/0.7646, allocations: 1.616 MB / 0.8575 GB, free: 4.996 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008625/0.7654, allocations: 342.7 kB / 0.8578 GB, free: 4.641 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003916/0.7658, allocations: 16 kB / 0.8578 GB, free: 4.625 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001164/0.767, allocations: 115.8 kB / 0.8579 GB, free: 4.512 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001353/0.7672, allocations: 56.48 kB / 0.858 GB, free: 4.457 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.662e-05/0.7673, allocations: 27.97 kB / 0.858 GB, free: 4.43 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.001974/0.7692, allocations: 1.094 MB / 0.8591 GB, free: 3.312 MB / 0.67 GB Notification: Performance of sort global known variables: time 2.51e-07/0.7692, allocations: 0 / 0.8591 GB, free: 3.312 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.003142/0.7724, allocations: 0.9044 MB / 0.8599 GB, free: 2.406 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 (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.002032/0.7744, allocations: 0.7476 MB / 0.8607 GB, free: 1.793 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.00424/0.7787, allocations: 1.733 MB / 0.8624 GB, free: 36 kB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 5.811e-06/0.7787, allocations: 0 / 0.8624 GB, free: 36 kB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.001439/0.7802, allocations: 0.5736 MB / 0.8629 GB, free: 15.45 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004646/0.7848, allocations: 0.7482 MB / 0.8637 GB, free: 14.71 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007022/0.7919, allocations: 3.842 MB / 0.8674 GB, free: 10.83 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001373/0.7933, allocations: 1.376 MB / 0.8688 GB, free: 9.426 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.002244/0.7955, allocations: 418.1 kB / 0.8692 GB, free: 9.012 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005179/0.7961, allocations: 135.3 kB / 0.8693 GB, free: 8.879 MB / 0.6856 GB Notification: Performance of SimCode: time 1.072e-06/0.7961, allocations: 0 / 0.8693 GB, free: 8.879 MB / 0.6856 GB Notification: Performance of Templates: time 0.05791/0.854, allocations: 31.06 MB / 0.8996 GB, free: 10.23 MB / 0.7169 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: