Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedNonUniformInitial.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Fluid.Storage.Validation.StratifiedNonUniformInitial,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Storage_Validation_StratifiedNonUniformInitial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Storage.Validation.StratifiedNonUniformInitial,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Storage_Validation_StratifiedNonUniformInitial",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.001192/0.001192, allocations: 112.5 kB / 15.73 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00123/0.00123, allocations: 193.7 kB / 16.67 MB, free: 6.574 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.214/1.214, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001975/0.001974, allocations: 275.1 kB / 290.8 MB, free: 1.93 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8668/0.8668, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0016/0.0016, allocations: 99.84 kB / 0.681 GB, free: 15.98 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1334/0.135, allocations: 86.97 MB / 0.7659 GB, free: 8.934 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Storage.Validation.StratifiedNonUniformInitial): time 0.3128/0.4479, allocations: 49.29 MB / 0.814 GB, free: 15.8 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.01809/0.466, allocations: 13.8 MB / 0.8275 GB, free: 5.906 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002244/0.4683, allocations: 67.56 kB / 0.8276 GB, free: 5.883 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.002229/0.4706, allocations: 0.8277 MB / 0.8284 GB, free: 5.367 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.005935/0.4765, allocations: 2.361 MB / 0.8307 GB, free: 3.953 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002948/0.4795, allocations: 1.314 MB / 0.832 GB, free: 3.234 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.01686/0.4963, allocations: 19.63 MB / 0.8511 GB, free: 8.039 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01004/0.5064, allocations: 9.902 MB / 0.8608 GB, free: 2.168 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01079/0.5172, allocations: 6.6 MB / 0.8672 GB, free: 11.59 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007081/0.5243, allocations: 5.759 MB / 0.8729 GB, free: 5.809 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.001301/0.5256, allocations: 0.8438 MB / 0.8737 GB, free: 4.965 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003947/0.5296, allocations: 1.608 MB / 0.8753 GB, free: 3.355 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.001808/0.5314, allocations: 2.115 MB / 0.8773 GB, free: 1.234 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.005284/0.5367, allocations: 4.291 MB / 0.8815 GB, free: 12.93 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.01091/0.5476, allocations: 12.12 MB / 0.8934 GB, free: 0.7695 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.5477, allocations: 4 kB / 0.8934 GB, free: 0.7656 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.323e-06/0.5477, allocations: 0 / 0.8934 GB, free: 0.7656 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 0.000192/0.5479, allocations: 0 / 0.8934 GB, free: 0.7656 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: 1414 * Number of variables: 1414 Notification: Performance of Generate backend data structure: time 0.01227/0.5602, allocations: 7.917 MB / 0.9011 GB, free: 8.762 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.693e-05/0.5602, allocations: 20.02 kB / 0.9011 GB, free: 8.742 MB / 0.6544 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009614/0.5612, allocations: 0.7642 MB / 0.9019 GB, free: 7.969 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002128/0.5633, allocations: 0.8165 MB / 0.9027 GB, free: 7.148 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0101/0.5734, allocations: 6.338 MB / 0.9088 GB, free: 0.75 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000242/0.5737, allocations: 415.4 kB / 0.9092 GB, free: 352 kB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007895/0.5745, allocations: 0.5468 MB / 0.9098 GB, free: 15.79 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01128/0.5858, allocations: 8.068 MB / 0.9177 GB, free: 7.488 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000105/0.5859, allocations: 19.86 kB / 0.9177 GB, free: 7.469 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005093/0.5864, allocations: 239.9 kB / 0.9179 GB, free: 7.234 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000131/0.5866, allocations: 167.9 kB / 0.9181 GB, free: 7.07 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009083/0.5956, allocations: 6.524 MB / 0.9244 GB, free: 0.5352 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 preOpt removeSimpleEquations (simulation): time 0.03229/0.6279, allocations: 31.27 MB / 0.955 GB, free: 15.43 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00463/0.6326, allocations: 3.658 MB / 0.9585 GB, free: 11.78 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00331/0.6359, allocations: 2.784 MB / 0.9613 GB, free: 8.988 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008287/0.6368, allocations: 0.8319 MB / 0.9621 GB, free: 7.988 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.298e-05/0.6368, allocations: 72.67 kB / 0.9621 GB, free: 7.906 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=267): time 4.348e-06/0.6368, allocations: 0 / 0.9621 GB, free: 7.906 MB / 0.7169 GB Notification: Performance of matching and sorting (n=267): time 0.00926/0.6461, allocations: 5.789 MB / 0.9678 GB, free: 2.02 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.447e-05/0.6462, allocations: 77.52 kB / 0.9679 GB, free: 1.93 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006102/0.6523, allocations: 5.232 MB / 0.973 GB, free: 12.7 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 0.0002828/0.6526, allocations: 73.7 kB / 0.973 GB, free: 12.62 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.001996/0.6546, allocations: 2.942 MB / 0.9759 GB, free: 9.656 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.000877/0.6555, allocations: 0.9761 MB / 0.9769 GB, free: 8.672 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008585/0.6563, allocations: 0.7195 MB / 0.9776 GB, free: 7.945 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 8.197e-05/0.6564, allocations: 309.1 kB / 0.9779 GB, free: 7.641 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002289/0.6587, allocations: 1.674 MB / 0.9795 GB, free: 5.965 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002971/0.6617, allocations: 2.94 MB / 0.9824 GB, free: 2.473 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005491/0.6672, allocations: 4.966 MB / 0.9872 GB, free: 12.91 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.731e-05/0.6672, allocations: 8 kB / 0.9872 GB, free: 12.91 MB / 0.7481 GB Notification: Performance of matching and sorting (n=475) (initialization): time 0.007827/0.6751, allocations: 5.459 MB / 0.9926 GB, free: 7.395 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 3.273e-05/0.6751, allocations: 23.94 kB / 0.9926 GB, free: 7.371 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.629e-05/0.6751, allocations: 40 kB / 0.9926 GB, free: 7.332 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008494/0.676, allocations: 420.8 kB / 0.993 GB, free: 6.918 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002745/0.6788, allocations: 0.8696 MB / 0.9939 GB, free: 6.047 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005063/0.6838, allocations: 5.712 MB / 0.9995 GB, free: 68 kB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003398/0.6872, allocations: 0.5276 MB / 1 GB, free: 15.54 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002547/0.6875, allocations: 180 kB / 1 GB, free: 15.36 MB / 0.7637 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 181 * Number of states: 0 () * Number of discrete variables: 2 (dHTan.local_reset,dHTanEnh.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (447): * Single equations (assignments): 445 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,14,100.0%), (1,14,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00302/0.6905, allocations: 2.277 MB / 1.002 GB, free: 13.07 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008695/0.6914, allocations: 0.5047 MB / 1.003 GB, free: 12.56 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005797/0.6972, allocations: 4.185 MB / 1.007 GB, free: 8.324 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.261e-05/0.6973, allocations: 36 kB / 1.007 GB, free: 8.289 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/0.6973, allocations: 4 kB / 1.007 GB, free: 8.285 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004524/0.7018, allocations: 3.628 MB / 1.011 GB, free: 4.543 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01473/0.7165, allocations: 10.27 MB / 1.021 GB, free: 10.09 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.048e-05/0.7166, allocations: 8.094 kB / 1.021 GB, free: 10.09 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002022/0.7186, allocations: 0.4954 MB / 1.021 GB, free: 9.59 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007437/0.7194, allocations: 369.4 kB / 1.021 GB, free: 9.223 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001584/0.7195, allocations: 75.95 kB / 1.021 GB, free: 9.148 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004934/0.7245, allocations: 5.65 MB / 1.027 GB, free: 3.227 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.19e-06/0.7245, allocations: 12.06 kB / 1.027 GB, free: 3.215 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008406/0.7329, allocations: 6.265 MB / 1.033 GB, free: 12.78 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002765/0.7357, allocations: 1.126 MB / 1.034 GB, free: 11.63 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007127/0.7364, allocations: 67.92 kB / 1.034 GB, free: 11.56 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002519/0.7389, allocations: 175.8 kB / 1.034 GB, free: 11.39 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002733/0.7392, allocations: 181.6 kB / 1.035 GB, free: 11.21 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002179/0.7395, allocations: 123.9 kB / 1.035 GB, free: 11.09 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.00495/0.7444, allocations: 3.839 MB / 1.038 GB, free: 7.266 MB / 0.795 GB Notification: Performance of sort global known variables: time 3.41e-07/0.7444, allocations: 0 / 1.038 GB, free: 7.266 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.004416/0.7488, allocations: 1.813 MB / 1.04 GB, free: 5.449 MB / 0.795 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 16 (heaTan.vol[1].dynBal.U,heaTan.vol[2].dynBal.U,heaTan.vol[3].dynBal.U,heaTan.vol[4].dynBal.U,heaTan.vol[5].dynBal.U,heaTan.vol[6].dynBal.U,heaTan.vol[7].dynBal.U,cooTan.vol[1].dynBal.U,cooTan.vol[2].dynBal.U,cooTan.vol[3].dynBal.U,cooTan.vol[4].dynBal.U,cooTan.vol[5].dynBal.U,cooTan.vol[6].dynBal.U,cooTan.vol[7].dynBal.U,dHTanEnh.y,dHTan.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (242): * Single equations (assignments): 237 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,14,100.0%), (1,14,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.009032/0.7579, allocations: 7.218 MB / 1.047 GB, free: 14.07 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.005741/0.7636, allocations: 4.281 MB / 1.051 GB, free: 9.742 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 6.162e-06/0.7637, allocations: 4 kB / 1.051 GB, free: 9.738 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.002469/0.7661, allocations: 2.052 MB / 1.053 GB, free: 7.656 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01259/0.7788, allocations: 3.451 MB / 1.057 GB, free: 4.301 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3346/1.113, allocations: 47.13 MB / 1.103 GB, free: 263.8 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003449/1.117, allocations: 4.3 MB / 1.107 GB, free: 262.3 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.00486/1.122, allocations: 1.851 MB / 1.109 GB, free: 262.2 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002944/1.125, allocations: 2.449 MB / 1.111 GB, free: 260.3 MB / 0.8419 GB Notification: Performance of SimCode: time 7.01e-07/1.125, allocations: 0.875 kB / 1.111 GB, free: 260.3 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1757/1.3, allocations: 154.2 MB / 1.262 GB, free: 137.2 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.9/19.2, allocations: 15.08 kB / 1.262 GB, free: 137.2 MB / 0.8419 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedNonUniformInitial.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedNonUniformInitial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedNonUniformInitial.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedNonUniformInitial.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedNonUniformInitial_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 BuildingSystems_BuildingSystems_Fluid_Storage_Validation_StratifiedNonUniformInitial.fmu > BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedNonUniformInitial.pipe 2>&1)