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.001839/0.001839, allocations: 108 kB / 15.61 MB, free: 148 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.002294/0.002294, allocations: 196.2 kB / 16.53 MB, free: 6.656 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.961/1.961, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002025/0.002025, allocations: 283.2 kB / 290.7 MB, free: 1.98 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9291/0.9291, allocations: 169.3 MB / 0.4982 GB, free: 13.86 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001655/0.001655, allocations: 101.4 kB / 0.5953 GB, free: 27.9 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1302/0.1318, allocations: 86.97 MB / 0.6803 GB, free: 0.5781 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Storage.Validation.StratifiedNonUniformInitial): time 0.04236/0.1742, allocations: 49.27 MB / 0.7284 GB, free: 15.15 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.01616/0.1904, allocations: 13.82 MB / 0.7419 GB, free: 1.289 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002249/0.1927, allocations: 67.62 kB / 0.742 GB, free: 1.223 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.002101/0.1949, allocations: 0.811 MB / 0.7428 GB, free: 416 kB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.00556/0.2004, allocations: 2.246 MB / 0.745 GB, free: 14.14 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.00288/0.2033, allocations: 1.304 MB / 0.7462 GB, free: 12.85 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.01636/0.2197, allocations: 19.6 MB / 0.7654 GB, free: 9.207 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.2652/0.485, allocations: 9.895 MB / 0.775 GB, free: 14.11 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01065/0.4957, allocations: 6.494 MB / 0.7814 GB, free: 13.73 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00802/0.5037, allocations: 5.75 MB / 0.787 GB, free: 12.82 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.001361/0.5051, allocations: 0.8438 MB / 0.7878 GB, free: 12.82 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004095/0.5092, allocations: 1.603 MB / 0.7894 GB, free: 12.82 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.001759/0.511, allocations: 2.118 MB / 0.7914 GB, free: 12.57 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.005535/0.5165, allocations: 4.288 MB / 0.7956 GB, free: 11.55 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.01168/0.5282, allocations: 11.94 MB / 0.8073 GB, free: 10.31 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.5282, allocations: 1.688 kB / 0.8073 GB, free: 10.31 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.643e-06/0.5282, allocations: 2.625 kB / 0.8073 GB, free: 10.31 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 0.0002501/0.5285, allocations: 0 / 0.8073 GB, free: 10.31 MB / 0.5606 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.01708/0.5456, allocations: 7.739 MB / 0.8149 GB, free: 7.59 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.898e-05/0.5456, allocations: 6.406 kB / 0.8149 GB, free: 7.59 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0021/0.5477, allocations: 0.7665 MB / 0.8156 GB, free: 7.52 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003713/0.5514, allocations: 0.7888 MB / 0.8164 GB, free: 7.152 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01063/0.5621, allocations: 6.055 MB / 0.8223 GB, free: 6.246 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000272/0.5624, allocations: 414.3 kB / 0.8227 GB, free: 6.234 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001508/0.5639, allocations: 0.5423 MB / 0.8232 GB, free: 6.227 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0121/0.576, allocations: 8.069 MB / 0.8311 GB, free: 2.301 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001071/0.5762, allocations: 23.5 kB / 0.8311 GB, free: 2.293 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005896/0.5768, allocations: 236.1 kB / 0.8313 GB, free: 2.121 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001153/0.5769, allocations: 166.9 kB / 0.8315 GB, free: 2.109 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009021/0.5859, allocations: 6.526 MB / 0.8379 GB, free: 14.82 MB / 0.5762 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.03482/0.6208, allocations: 31.44 MB / 0.8686 GB, free: 4.527 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004848/0.6256, allocations: 3.651 MB / 0.8721 GB, free: 0.9258 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003476/0.6291, allocations: 2.798 MB / 0.8749 GB, free: 14.13 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008632/0.63, allocations: 0.828 MB / 0.8757 GB, free: 13.15 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.58e-05/0.6301, allocations: 76.59 kB / 0.8758 GB, free: 13.06 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=267): time 4.358e-06/0.6301, allocations: 0 / 0.8758 GB, free: 13.06 MB / 0.6075 GB Notification: Performance of matching and sorting (n=267): time 0.009995/0.6401, allocations: 5.764 MB / 0.8814 GB, free: 7.219 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.902e-05/0.6401, allocations: 81.52 kB / 0.8815 GB, free: 7.125 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007373/0.6475, allocations: 5.231 MB / 0.8866 GB, free: 1.895 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0004664/0.648, allocations: 77.7 kB / 0.8866 GB, free: 1.812 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.002235/0.6502, allocations: 2.867 MB / 0.8894 GB, free: 14.93 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.001045/0.6513, allocations: 0.9431 MB / 0.8904 GB, free: 14 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009551/0.6523, allocations: 0.7113 MB / 0.8911 GB, free: 13.28 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 8.268e-05/0.6524, allocations: 309.1 kB / 0.8914 GB, free: 12.97 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002423/0.6548, allocations: 1.674 MB / 0.893 GB, free: 11.3 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003071/0.6579, allocations: 2.93 MB / 0.8959 GB, free: 7.824 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005691/0.6636, allocations: 4.964 MB / 0.9007 GB, free: 2.434 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.912e-05/0.6636, allocations: 15.75 kB / 0.9007 GB, free: 2.422 MB / 0.6231 GB Notification: Performance of matching and sorting (n=475) (initialization): time 0.008461/0.6721, allocations: 5.438 MB / 0.906 GB, free: 13.18 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 3.553e-05/0.6721, allocations: 24 kB / 0.9061 GB, free: 13.16 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.084e-05/0.6722, allocations: 43.94 kB / 0.9061 GB, free: 13.11 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009095/0.6731, allocations: 422.1 kB / 0.9065 GB, free: 12.7 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002805/0.6759, allocations: 0.8584 MB / 0.9073 GB, free: 11.89 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005357/0.6813, allocations: 5.695 MB / 0.9129 GB, free: 5.973 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004125/0.6854, allocations: 0.516 MB / 0.9134 GB, free: 5.453 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003633/0.6858, allocations: 184 kB / 0.9136 GB, free: 5.273 MB / 0.6387 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.003743/0.6895, allocations: 2.294 MB / 0.9158 GB, free: 3.027 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001334/0.6909, allocations: 486.1 kB / 0.9163 GB, free: 2.547 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006741/0.6976, allocations: 4.181 MB / 0.9204 GB, free: 14.33 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.449e-05/0.6976, allocations: 28 kB / 0.9204 GB, free: 14.3 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.177e-05/0.6977, allocations: 4 kB / 0.9204 GB, free: 14.3 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004885/0.7026, allocations: 3.634 MB / 0.9239 GB, free: 10.57 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01678/0.7194, allocations: 10.3 MB / 0.934 GB, free: 216 kB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.144e-05/0.7194, allocations: 4 kB / 0.934 GB, free: 212 kB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002094/0.7215, allocations: 0.4981 MB / 0.9345 GB, free: 15.73 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007923/0.7223, allocations: 373.5 kB / 0.9348 GB, free: 15.36 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001994/0.7225, allocations: 83.23 kB / 0.9349 GB, free: 15.28 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005208/0.7277, allocations: 5.64 MB / 0.9404 GB, free: 9.406 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.563e-06/0.7277, allocations: 8 kB / 0.9404 GB, free: 9.398 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008854/0.7366, allocations: 6.25 MB / 0.9465 GB, free: 2.996 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00254/0.7391, allocations: 1.096 MB / 0.9476 GB, free: 1.875 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001083/0.7402, allocations: 63.92 kB / 0.9477 GB, free: 1.812 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003002/0.7432, allocations: 174.8 kB / 0.9478 GB, free: 1.645 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00031/0.7436, allocations: 169.6 kB / 0.948 GB, free: 1.484 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002875/0.7439, allocations: 132.8 kB / 0.9481 GB, free: 1.355 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.006114/0.75, allocations: 3.835 MB / 0.9519 GB, free: 13.54 MB / 0.6856 GB Notification: Performance of sort global known variables: time 2.71e-07/0.75, allocations: 0 / 0.9519 GB, free: 13.54 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.005996/0.756, allocations: 1.804 MB / 0.9536 GB, free: 11.73 MB / 0.6856 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.01065/0.7667, allocations: 7.195 MB / 0.9607 GB, free: 4.426 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.01421/0.7809, allocations: 8.065 MB / 0.9685 GB, free: 12.48 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 9.568e-06/0.7809, allocations: 4.812 kB / 0.9685 GB, free: 12.48 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.003043/0.784, allocations: 2.037 MB / 0.9705 GB, free: 10.46 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01663/0.8006, allocations: 3.464 MB / 0.9739 GB, free: 7.129 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07772/0.8784, allocations: 57.86 MB / 1.03 GB, free: 8.402 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0044/0.8828, allocations: 4.305 MB / 1.035 GB, free: 4.066 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.005714/0.8885, allocations: 1.859 MB / 1.036 GB, free: 2.227 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003592/0.8921, allocations: 2.448 MB / 1.039 GB, free: 15.78 MB / 0.7794 GB Notification: Performance of SimCode: time 8.62e-07/0.8921, allocations: 3.75 kB / 1.039 GB, free: 15.78 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4251/1.317, allocations: 158.2 MB / 1.193 GB, free: 219 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.9/13.21, allocations: 0 / 1.193 GB, free: 219 MB / 0.795 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)