Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading.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.StratifiedLoadingUnloading,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Storage_Validation_StratifiedLoadingUnloading",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Storage_Validation_StratifiedLoadingUnloading",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.001229/0.001229, allocations: 108 kB / 15.6 MB, free: 132 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.001212/0.001212, allocations: 192 kB / 16.53 MB, free: 6.391 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.249/1.249, allocations: 222.9 MB / 240.2 MB, free: 4.262 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002054/0.002054, allocations: 291 kB / 290.7 MB, free: 1.859 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8892/0.8892, allocations: 169.3 MB / 0.4982 GB, free: 13.88 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001655/0.001655, allocations: 103.4 kB / 0.5953 GB, free: 27.88 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.121/0.1227, allocations: 86.98 MB / 0.6803 GB, free: 0.6055 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.04699/0.1697, allocations: 55.97 MB / 0.7349 GB, free: 8.449 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.01939/0.1891, allocations: 17.94 MB / 0.7525 GB, free: 6.457 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001398/0.1906, allocations: 79.56 kB / 0.7525 GB, free: 6.379 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001693/0.1923, allocations: 0.8923 MB / 0.7534 GB, free: 5.48 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.004383/0.1967, allocations: 2.514 MB / 0.7559 GB, free: 2.953 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.002689/0.1994, allocations: 1.517 MB / 0.7573 GB, free: 1.445 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.2605/0.4599, allocations: 21.24 MB / 0.7781 GB, free: 11.34 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01175/0.4717, allocations: 10.67 MB / 0.7885 GB, free: 25.84 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01089/0.4826, allocations: 7.137 MB / 0.7955 GB, free: 25.3 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.009179/0.4918, allocations: 6.363 MB / 0.8017 GB, free: 24.31 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.002863/0.4947, allocations: 0.9404 MB / 0.8026 GB, free: 24.31 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005833/0.5005, allocations: 1.699 MB / 0.8043 GB, free: 24.3 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.00202/0.5025, allocations: 2.342 MB / 0.8066 GB, free: 24.03 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.005125/0.5077, allocations: 4.708 MB / 0.8112 GB, free: 22.91 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.008565/0.5163, allocations: 13.05 MB / 0.8239 GB, free: 21.54 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.5163, allocations: 0 / 0.8239 GB, free: 21.54 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.383e-06/0.5163, allocations: 0 / 0.8239 GB, free: 21.54 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 0.0002111/0.5165, allocations: 0 / 0.8239 GB, free: 21.54 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1564 * Number of variables: 1564 Notification: Performance of Generate backend data structure: time 0.01221/0.5287, allocations: 8.528 MB / 0.8322 GB, free: 16.65 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.558e-05/0.5288, allocations: 9.938 kB / 0.8322 GB, free: 16.65 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009227/0.5297, allocations: 0.8453 MB / 0.8331 GB, free: 16.05 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002109/0.5318, allocations: 0.848 MB / 0.8339 GB, free: 15.64 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008515/0.5403, allocations: 6.431 MB / 0.8402 GB, free: 11.68 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002297/0.5406, allocations: 457.9 kB / 0.8406 GB, free: 11.47 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007381/0.5413, allocations: 0.5997 MB / 0.8412 GB, free: 11.27 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01163/0.553, allocations: 9.026 MB / 0.85 GB, free: 5.629 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001082/0.5531, allocations: 25.94 kB / 0.85 GB, free: 5.613 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006103/0.5537, allocations: 256 kB / 0.8503 GB, free: 5.363 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001366/0.5538, allocations: 180 kB / 0.8505 GB, free: 5.188 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01062/0.5645, allocations: 7.451 MB / 0.8577 GB, free: 13.8 MB / 0.5919 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.03664/0.6011, allocations: 36.26 MB / 0.8931 GB, free: 8.102 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00541/0.6066, allocations: 4.285 MB / 0.8973 GB, free: 3.848 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004077/0.6106, allocations: 3.308 MB / 0.9006 GB, free: 0.5508 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001145/0.6118, allocations: 0.9653 MB / 0.9015 GB, free: 15.42 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003301/0.6151, allocations: 2.382 MB / 0.9038 GB, free: 13 MB / 0.6387 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001673/0.6168, allocations: 375.8 kB / 0.9042 GB, free: 12.63 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=317): time 4.959e-06/0.6168, allocations: 0 / 0.9042 GB, free: 12.63 MB / 0.6387 GB Notification: Performance of matching and sorting (n=317): time 0.01143/0.6282, allocations: 7.13 MB / 0.9111 GB, free: 5.426 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.233e-05/0.6283, allocations: 85 kB / 0.9112 GB, free: 5.332 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007212/0.6355, allocations: 5.666 MB / 0.9168 GB, free: 15.69 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 0.0003828/0.6359, allocations: 89.7 kB / 0.9168 GB, free: 15.59 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.002655/0.6386, allocations: 3.189 MB / 0.92 GB, free: 12.39 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.001071/0.6397, allocations: 1.115 MB / 0.9211 GB, free: 11.28 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001188/0.6409, allocations: 0.858 MB / 0.9219 GB, free: 10.41 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 9.255e-05/0.641, allocations: 313 kB / 0.9222 GB, free: 10.1 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003069/0.644, allocations: 2.163 MB / 0.9243 GB, free: 7.93 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003846/0.6479, allocations: 3.697 MB / 0.9279 GB, free: 3.555 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007136/0.655, allocations: 6.318 MB / 0.9341 GB, free: 12.72 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.328e-05/0.6551, allocations: 12 kB / 0.9341 GB, free: 12.71 MB / 0.67 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.009713/0.6648, allocations: 6.779 MB / 0.9407 GB, free: 6.184 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 5.578e-05/0.6649, allocations: 53.7 kB / 0.9408 GB, free: 6.125 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.293e-05/0.6649, allocations: 48 kB / 0.9408 GB, free: 6.078 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008781/0.6658, allocations: 437.8 kB / 0.9412 GB, free: 5.645 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003329/0.6692, allocations: 1.008 MB / 0.9422 GB, free: 4.707 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005207/0.6744, allocations: 5.7 MB / 0.9478 GB, free: 14.79 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003972/0.6784, allocations: 283.4 kB / 0.948 GB, free: 14.51 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003468/0.6787, allocations: 220 kB / 0.9483 GB, free: 14.3 MB / 0.6856 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 222 * Number of states: 0 () * Number of discrete variables: 7 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,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 (540): * Single equations (assignments): 537 * Array equations: 0 * Algorithm blocks: 1 * 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.003808/0.6825, allocations: 2.493 MB / 0.9507 GB, free: 11.87 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001096/0.6836, allocations: 0.521 MB / 0.9512 GB, free: 11.34 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007901/0.6915, allocations: 5.271 MB / 0.9563 GB, free: 6.039 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.569e-05/0.6916, allocations: 32.05 kB / 0.9564 GB, free: 6.008 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.106e-05/0.6916, allocations: 7.984 kB / 0.9564 GB, free: 6 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006047/0.6977, allocations: 4.539 MB / 0.9608 GB, free: 1.375 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01753/0.7152, allocations: 12.04 MB / 0.9726 GB, free: 5.266 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.003e-05/0.7152, allocations: 4 kB / 0.9726 GB, free: 5.262 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002691/0.7179, allocations: 0.6456 MB / 0.9732 GB, free: 4.645 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007445/0.7187, allocations: 369.3 kB / 0.9736 GB, free: 4.277 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001969/0.7189, allocations: 83.95 kB / 0.9736 GB, free: 4.195 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005021/0.7239, allocations: 5.608 MB / 0.9791 GB, free: 14.35 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.311e-06/0.7239, allocations: 8 kB / 0.9791 GB, free: 14.34 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01026/0.7342, allocations: 7.768 MB / 0.9867 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002234/0.7364, allocations: 1.154 MB / 0.9878 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007163/0.7372, allocations: 71.92 kB / 0.9879 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002631/0.7398, allocations: 195.2 kB / 0.9881 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003947/0.7402, allocations: 206.2 kB / 0.9883 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002642/0.7405, allocations: 135.9 kB / 0.9884 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.005324/0.7458, allocations: 3.966 MB / 0.9923 GB, free: 0.7852 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.4e-07/0.7458, allocations: 4 kB / 0.9923 GB, free: 0.7812 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.005091/0.7509, allocations: 2.003 MB / 0.9943 GB, free: 14.77 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 16 (tanEnh.vol[1].dynBal.U,tanEnh.vol[2].dynBal.U,tanEnh.vol[3].dynBal.U,tanEnh.vol[4].dynBal.U,tanEnh.vol[5].dynBal.U,tanEnh.vol[6].dynBal.U,tanEnh.vol[7].dynBal.U,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,tan.vol[6].dynBal.U,tan.vol[7].dynBal.U,dHTanEnh.y,dHTan.y) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (296): * Single equations (assignments): 289 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 2 * 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.01155/0.7625, allocations: 8.713 MB / 1.003 GB, free: 6.027 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.02017/0.7827, allocations: 11.63 MB / 1.014 GB, free: 10.53 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 6.041e-06/0.7827, allocations: 0 / 1.014 GB, free: 10.53 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.00338/0.7861, allocations: 2.547 MB / 1.017 GB, free: 8.008 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01325/0.7994, allocations: 3.393 MB / 1.02 GB, free: 4.738 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2977/1.097, allocations: 64.75 MB / 1.083 GB, free: 290 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003764/1.101, allocations: 4.625 MB / 1.088 GB, free: 289.2 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.00555/1.106, allocations: 2.086 MB / 1.09 GB, free: 289.1 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003015/1.109, allocations: 2.669 MB / 1.092 GB, free: 287.4 MB / 0.795 GB Notification: Performance of SimCode: time 1.012e-06/1.109, allocations: 0 / 1.092 GB, free: 287.4 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1803/1.29, allocations: 165.7 MB / 1.254 GB, free: 148.5 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.64/13.93, allocations: 11.98 kB / 1.254 GB, free: 148.5 MB / 0.795 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading_res.csv --start-time 0 --stop-time 14400 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 5.76 BuildingSystems_BuildingSystems_Fluid_Storage_Validation_StratifiedLoadingUnloading.fmu > BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe 2>&1)