Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.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 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.Storage.Examples.StratifiedUnloadAtMinimumTemperature,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature") translateModel(Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001012/0.001012, 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.001053/0.001053, 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.439/1.439, allocations: 205.4 MB / 222.1 MB, free: 5.539 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.658/1.658, allocations: 292.5 MB / 0.5497 GB, free: 14.64 MB / 462.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.0005086/0.0005086, allocations: 14.78 kB / 0.6735 GB, free: 26.03 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2682/0.2687, allocations: 116.3 MB / 0.7871 GB, free: 11.97 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature): time 0.0307/0.2995, allocations: 31.84 MB / 0.8182 GB, free: 12.03 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.01682/0.3163, allocations: 11.08 MB / 0.829 GB, free: 0.9414 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00222/0.3186, allocations: 47.62 kB / 0.8291 GB, free: 0.8945 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.002176/0.3208, allocations: 0.6492 MB / 0.8297 GB, free: 248 kB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.005411/0.3262, allocations: 1.551 MB / 0.8312 GB, free: 14.69 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.007863/0.3341, allocations: 2.57 MB / 0.8337 GB, free: 12.15 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.007978/0.3421, allocations: 4.443 MB / 0.8381 GB, free: 7.703 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004661/0.3468, allocations: 2.747 MB / 0.8407 GB, free: 4.91 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004077/0.3509, allocations: 1.837 MB / 0.8425 GB, free: 3.066 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003664/0.3546, allocations: 1.548 MB / 0.8441 GB, free: 1.512 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.000824/0.3554, allocations: 136 kB / 0.8442 GB, free: 1.379 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00331/0.3588, allocations: 0.6711 MB / 0.8448 GB, free: 0.707 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0009973/0.3598, allocations: 0.5643 MB / 0.8454 GB, free: 144 kB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.001344/0.3612, allocations: 0.6447 MB / 0.846 GB, free: 15.48 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.004746/0.3659, allocations: 3.924 MB / 0.8498 GB, free: 11.55 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.3659, allocations: 4 kB / 0.8499 GB, free: 11.55 MB / 0.67 GB Notification: Performance of FrontEnd: time 2.164e-06/0.366, allocations: 0 / 0.8499 GB, free: 11.55 MB / 0.67 GB Notification: Performance of Transformations before backend: time 0.000126/0.3661, allocations: 0 / 0.8499 GB, free: 11.55 MB / 0.67 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 586 * Number of variables: 586 Notification: Performance of Generate backend data structure: time 0.005729/0.3718, allocations: 2.98 MB / 0.8528 GB, free: 8.504 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 4.672e-05/0.3719, allocations: 8.828 kB / 0.8528 GB, free: 8.496 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00113/0.373, allocations: 352 kB / 0.8531 GB, free: 8.148 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00478/0.3778, allocations: 2.357 MB / 0.8554 GB, free: 5.742 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001485/0.378, allocations: 180.6 kB / 0.8556 GB, free: 5.562 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003891/0.3784, allocations: 243.9 kB / 0.8558 GB, free: 5.324 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005065/0.3835, allocations: 3.203 MB / 0.8589 GB, free: 1.98 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.893e-05/0.3835, allocations: 7.938 kB / 0.8589 GB, free: 1.973 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002314/0.3838, allocations: 104 kB / 0.859 GB, free: 1.871 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.527e-05/0.3838, allocations: 63.98 kB / 0.8591 GB, free: 1.809 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003917/0.3878, allocations: 2.574 MB / 0.8616 GB, free: 15.22 MB / 0.6856 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.01634/0.4041, allocations: 13.83 MB / 0.8751 GB, free: 320 kB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00234/0.4065, allocations: 1.631 MB / 0.8767 GB, free: 14.68 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008113/0.4073, allocations: 0.7166 MB / 0.8774 GB, free: 13.81 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.127e-05/0.4074, allocations: 51.56 kB / 0.8775 GB, free: 13.75 MB / 0.7012 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001277/0.4087, allocations: 199.5 kB / 0.8777 GB, free: 13.56 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=126): time 4.869e-06/0.4087, allocations: 0 / 0.8777 GB, free: 13.56 MB / 0.7012 GB Notification: Performance of matching and sorting (n=126): time 0.008725/0.4174, allocations: 3.482 MB / 0.8811 GB, free: 10.03 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.675e-05/0.4175, allocations: 153.5 kB / 0.8812 GB, free: 9.844 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002552/0.4201, allocations: 2.083 MB / 0.8832 GB, free: 7.719 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 0.0001616/0.4202, allocations: 53.7 kB / 0.8833 GB, free: 7.66 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.001114/0.4214, allocations: 1.254 MB / 0.8845 GB, free: 6.391 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.000424/0.4218, allocations: 437.8 kB / 0.8849 GB, free: 5.957 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.841e-05/0.4219, allocations: 36 kB / 0.885 GB, free: 5.922 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001537/0.4221, allocations: 373.9 kB / 0.8853 GB, free: 5.551 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001062/0.4231, allocations: 0.7339 MB / 0.886 GB, free: 4.816 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00136/0.4245, allocations: 1.233 MB / 0.8872 GB, free: 3.371 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00125/0.4257, allocations: 0.951 MB / 0.8882 GB, free: 2.422 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.844e-06/0.4258, allocations: 8 kB / 0.8882 GB, free: 2.414 MB / 0.7012 GB Notification: Performance of matching and sorting (n=213) (initialization): time 0.003546/0.4293, allocations: 2.429 MB / 0.8906 GB, free: 15.97 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 0.001812/0.4311, allocations: 5.693 MB / 0.8961 GB, free: 9.805 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.051e-05/0.4312, allocations: 12 kB / 0.8961 GB, free: 9.793 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002052/0.4332, allocations: 0.52 MB / 0.8966 GB, free: 9.27 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001294/0.4345, allocations: 343.4 kB / 0.897 GB, free: 8.934 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003029/0.4376, allocations: 3.176 MB / 0.9001 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002022/0.4396, allocations: 235.4 kB / 0.9003 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001398/0.4398, allocations: 79.97 kB / 0.9004 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.034e-05/0.4398, allocations: 6.969 kB / 0.9004 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003149/0.4429, allocations: 2.188 MB / 0.9025 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.798e-05/0.443, allocations: 16 kB / 0.9025 GB, free: 3.07 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005327/0.4435, allocations: 249.6 kB / 0.9028 GB, free: 2.82 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001234/0.4448, allocations: 363.4 kB / 0.9031 GB, free: 2.465 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00378/0.4485, allocations: 4.232 MB / 0.9072 GB, free: 13.96 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002225/0.4508, allocations: 223.5 kB / 0.9075 GB, free: 13.74 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002731/0.4511, allocations: 80.05 kB / 0.9075 GB, free: 13.66 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.onOffBot.y,onOffBot.y,$PRE.onOffMid.y,onOffMid.y,and2.y,yTop.u,$PRE.onOffHea.y,onOffHea.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (179): * Single equations (assignments): 177 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 10} * Non-linear torn systems: 1 {3 22} Notification: Performance of prepare postOptimizeDAE: time 0.002392/0.4535, allocations: 0.9923 MB / 0.9085 GB, free: 12.66 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000843/0.4543, allocations: 213.4 kB / 0.9087 GB, free: 12.45 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003871/0.4582, allocations: 2.082 MB / 0.9107 GB, free: 10.36 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.538e-05/0.4583, allocations: 19.98 kB / 0.9108 GB, free: 10.34 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.4583, allocations: 0 / 0.9108 GB, free: 10.34 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002303/0.4606, allocations: 1.671 MB / 0.9124 GB, free: 8.652 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008092/0.4687, allocations: 4.696 MB / 0.917 GB, free: 3.863 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.772e-06/0.4687, allocations: 0 / 0.917 GB, free: 3.863 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008625/0.4696, allocations: 203.8 kB / 0.9172 GB, free: 3.664 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001603/0.4712, allocations: 455.5 kB / 0.9176 GB, free: 3.215 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.169e-05/0.4713, allocations: 35.98 kB / 0.9176 GB, free: 3.18 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4575/0.9288, allocations: 3.085 MB / 0.9207 GB, free: 127.3 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/0.9289, allocations: 1.438 kB / 0.9207 GB, free: 127.3 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005966/0.9349, allocations: 3.058 MB / 0.9236 GB, free: 127 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001731/0.9366, allocations: 0.5405 MB / 0.9242 GB, free: 126.9 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002982/0.9369, allocations: 30.59 kB / 0.9242 GB, free: 126.9 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001452/0.9384, allocations: 210.2 kB / 0.9244 GB, free: 126.9 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000232/0.9386, allocations: 96.77 kB / 0.9245 GB, free: 126.9 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001158/0.9388, allocations: 58.75 kB / 0.9245 GB, free: 126.9 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.002235/0.941, allocations: 1.445 MB / 0.926 GB, free: 126.8 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.8e-07/0.941, allocations: 0 / 0.926 GB, free: 126.8 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.003765/0.9448, allocations: 1.494 MB / 0.9274 GB, free: 126.7 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 5 (tan.vol[1].dynBal.U,tan.vol[2].dynBal.U,tan.vol[3].dynBal.U,tan.vol[4].dynBal.U,tan.vol[5].dynBal.U) * Number of discrete variables: 5 (onOffBot.y,onOffMid.y,and2.y,yTop.u,onOffHea.y) * Number of discrete states: 3 (onOffBot.y,onOffMid.y,onOffHea.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 10} * Non-linear torn systems: 1 {3 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007748/0.9456, allocations: 372.5 kB / 0.9278 GB, free: 126.6 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.004506/0.9501, allocations: 3.384 MB / 0.9311 GB, free: 125.3 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 6.843e-06/0.9501, allocations: 2.516 kB / 0.9311 GB, free: 125.3 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.001368/0.9515, allocations: 1.029 MB / 0.9321 GB, free: 124.9 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005525/0.957, allocations: 1.143 MB / 0.9332 GB, free: 124.7 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01045/0.9675, allocations: 6.277 MB / 0.9393 GB, free: 121.6 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002145/0.9697, allocations: 2.208 MB / 0.9415 GB, free: 120.6 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.003771/0.9735, allocations: 0.9688 MB / 0.9424 GB, free: 120.4 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005873/0.9741, allocations: 170.7 kB / 0.9426 GB, free: 120.4 MB / 0.7325 GB Notification: Performance of SimCode: time 9.12e-07/0.9741, allocations: 0 / 0.9426 GB, free: 120.4 MB / 0.7325 GB Notification: Performance of Templates: time 0.06478/1.039, allocations: 45.47 MB / 0.987 GB, free: 88.3 MB / 0.7325 GB make -j1 -f Buildings_8_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.makefile Environment - environmentSimulation: (rm -f Buildings_8_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe ; mkfifo Buildings_8_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe >> ../files/Buildings_8_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.sim & ./Buildings_8_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe 2>&1) Environment - environmentSimulation: