Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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(IDEAS.Fluid.Storage.Validation.StratifiedLoadingUnloading,fileNamePrefix="IDEAS_IDEAS_Fluid_Storage_Validation_StratifiedLoadingUnloading",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Storage.Validation.StratifiedLoadingUnloading,fileNamePrefix="IDEAS_IDEAS_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.00534/0.00534, allocations: 98.8 kB / 15.73 MB, free: 6.047 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.001216/0.001217, allocations: 194.3 kB / 16.68 MB, free: 5.969 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.36/1.36, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7823/0.7823, allocations: 132.2 MB / 422.7 MB, free: 1.703 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001798/0.001798, allocations: 67.91 kB / 0.5809 GB, free: 8.074 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3538/0.3556, allocations: 80.21 MB / 0.6592 GB, free: 9.84 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.05419/0.4098, allocations: 55.99 MB / 0.7139 GB, free: 13.36 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.02459/0.4345, allocations: 17.92 MB / 0.7314 GB, free: 12.08 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002332/0.4368, allocations: 75.56 kB / 0.7314 GB, free: 12.01 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.002178/0.439, allocations: 0.8963 MB / 0.7323 GB, free: 11.11 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.006097/0.4452, allocations: 2.501 MB / 0.7348 GB, free: 8.594 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.003327/0.4485, allocations: 1.538 MB / 0.7363 GB, free: 7.066 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.02285/0.4714, allocations: 21.21 MB / 0.757 GB, free: 1.801 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01365/0.4851, allocations: 10.72 MB / 0.7674 GB, free: 6.961 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01376/0.4988, allocations: 7.175 MB / 0.7744 GB, free: 15.81 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01128/0.5102, allocations: 6.37 MB / 0.7807 GB, free: 9.414 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.002678/0.5129, allocations: 0.9375 MB / 0.7816 GB, free: 8.477 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005712/0.5186, allocations: 1.702 MB / 0.7832 GB, free: 6.773 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.00308/0.5217, allocations: 2.333 MB / 0.7855 GB, free: 4.434 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.008083/0.5298, allocations: 4.711 MB / 0.7901 GB, free: 15.7 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.01811/0.5479, allocations: 13.24 MB / 0.803 GB, free: 2.422 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 9.047e-06/0.548, allocations: 4 kB / 0.8031 GB, free: 2.418 MB / 0.6231 GB Notification: Performance of FrontEnd: time 2.014e-06/0.548, allocations: 0 / 0.8031 GB, free: 2.418 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 0.0003948/0.5484, allocations: 4 kB / 0.8031 GB, free: 2.414 MB / 0.6231 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.01934/0.5677, allocations: 8.725 MB / 0.8116 GB, free: 9.586 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 5.322e-05/0.5678, allocations: 12.03 kB / 0.8116 GB, free: 9.574 MB / 0.6387 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001532/0.5693, allocations: 0.8422 MB / 0.8124 GB, free: 8.723 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002729/0.5721, allocations: 0.8903 MB / 0.8133 GB, free: 7.828 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01188/0.584, allocations: 6.744 MB / 0.8199 GB, free: 1.031 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003654/0.5844, allocations: 460.2 kB / 0.8203 GB, free: 0.5781 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009376/0.5853, allocations: 0.5977 MB / 0.8209 GB, free: 15.98 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01505/0.6004, allocations: 9.028 MB / 0.8297 GB, free: 6.629 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001278/0.6005, allocations: 23.83 kB / 0.8297 GB, free: 6.605 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006348/0.6012, allocations: 256 kB / 0.83 GB, free: 6.355 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001775/0.6013, allocations: 176 kB / 0.8301 GB, free: 6.184 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01255/0.6139, allocations: 7.453 MB / 0.8374 GB, free: 14.72 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.5543/1.168, allocations: 36.06 MB / 0.8726 GB, free: 164.1 MB / 0.6857 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006114/1.174, allocations: 4.277 MB / 0.8768 GB, free: 164 MB / 0.6857 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004101/1.179, allocations: 3.298 MB / 0.88 GB, free: 162.9 MB / 0.6857 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009688/1.179, allocations: 0.9538 MB / 0.881 GB, free: 161.9 MB / 0.6857 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003046/1.183, allocations: 2.388 MB / 0.8833 GB, free: 161.1 MB / 0.6857 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001852/1.184, allocations: 383.9 kB / 0.8837 GB, free: 161 MB / 0.6857 GB Notification: Performance of pre-optimization done (n=317): time 5.931e-06/1.184, allocations: 0 / 0.8837 GB, free: 161 MB / 0.6857 GB Notification: Performance of matching and sorting (n=317): time 0.01084/1.195, allocations: 7.163 MB / 0.8907 GB, free: 158.7 MB / 0.6857 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.274e-05/1.195, allocations: 88.44 kB / 0.8907 GB, free: 158.6 MB / 0.6857 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006757/1.202, allocations: 5.665 MB / 0.8963 GB, free: 155.8 MB / 0.6857 GB Notification: Performance of collectPreVariables (initialization): time 0.0002671/1.202, allocations: 85.73 kB / 0.8964 GB, free: 155.7 MB / 0.6857 GB Notification: Performance of collectInitialEqns (initialization): time 0.002146/1.205, allocations: 3.276 MB / 0.8996 GB, free: 153.3 MB / 0.6857 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008239/1.205, allocations: 1.173 MB / 0.9007 GB, free: 152.5 MB / 0.6857 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001024/1.206, allocations: 0.8579 MB / 0.9015 GB, free: 152 MB / 0.6857 GB Notification: Performance of setup shared object (initialization): time 3.586e-05/1.206, allocations: 310.4 kB / 0.9018 GB, free: 151.7 MB / 0.6857 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002717/1.209, allocations: 2.159 MB / 0.9039 GB, free: 150.6 MB / 0.6857 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003186/1.212, allocations: 3.703 MB / 0.9076 GB, free: 147.4 MB / 0.6857 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005732/1.218, allocations: 6.319 MB / 0.9137 GB, free: 142.9 MB / 0.6857 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.898e-05/1.218, allocations: 16.09 kB / 0.9137 GB, free: 142.9 MB / 0.6857 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.008107/1.226, allocations: 6.792 MB / 0.9204 GB, free: 139.4 MB / 0.6857 GB Notification: Performance of prepare postOptimizeDAE: time 4.672e-05/1.226, allocations: 53.2 kB / 0.9204 GB, free: 139.4 MB / 0.6857 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.86e-05/1.226, allocations: 48.31 kB / 0.9205 GB, free: 139.4 MB / 0.6857 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007968/1.227, allocations: 445.8 kB / 0.9209 GB, free: 139.2 MB / 0.6857 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003/1.23, allocations: 1.003 MB / 0.9219 GB, free: 139 MB / 0.6857 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003988/1.234, allocations: 5.702 MB / 0.9274 GB, free: 134.2 MB / 0.6857 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0037/1.238, allocations: 284 kB / 0.9277 GB, free: 134.1 MB / 0.6857 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000278/1.238, allocations: 222.6 kB / 0.9279 GB, free: 133.9 MB / 0.6857 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.002921/1.241, allocations: 2.492 MB / 0.9304 GB, free: 131.5 MB / 0.6857 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007996/1.242, allocations: 0.5512 MB / 0.9309 GB, free: 130.9 MB / 0.6857 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006323/1.248, allocations: 5.267 MB / 0.936 GB, free: 125.6 MB / 0.6857 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.91e-05/1.248, allocations: 36 kB / 0.9361 GB, free: 125.6 MB / 0.6857 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.677e-06/1.248, allocations: 4 kB / 0.9361 GB, free: 125.6 MB / 0.6857 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004786/1.253, allocations: 4.539 MB / 0.9405 GB, free: 120.9 MB / 0.6857 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01414/1.267, allocations: 11.98 MB / 0.9522 GB, free: 108.9 MB / 0.6857 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.165e-06/1.267, allocations: 0 / 0.9522 GB, free: 108.9 MB / 0.6857 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002387/1.27, allocations: 0.6438 MB / 0.9528 GB, free: 108.3 MB / 0.6857 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006517/1.27, allocations: 377 kB / 0.9532 GB, free: 107.9 MB / 0.6857 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001785/1.27, allocations: 83.95 kB / 0.9533 GB, free: 107.8 MB / 0.6857 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003787/1.274, allocations: 5.614 MB / 0.9588 GB, free: 101.9 MB / 0.6857 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/1.274, allocations: 11.98 kB / 0.9588 GB, free: 101.9 MB / 0.6857 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008551/1.283, allocations: 7.785 MB / 0.9664 GB, free: 94.04 MB / 0.6857 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001995/1.285, allocations: 1.185 MB / 0.9675 GB, free: 92.84 MB / 0.6857 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006491/1.286, allocations: 74.48 kB / 0.9676 GB, free: 92.77 MB / 0.6857 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002437/1.288, allocations: 197.1 kB / 0.9678 GB, free: 92.58 MB / 0.6857 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003389/1.288, allocations: 198.2 kB / 0.968 GB, free: 92.38 MB / 0.6857 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002365/1.289, allocations: 143.9 kB / 0.9681 GB, free: 92.24 MB / 0.6857 GB Notification: Performance of sorting global known variables: time 0.004205/1.293, allocations: 3.959 MB / 0.972 GB, free: 88.3 MB / 0.6857 GB Notification: Performance of sort global known variables: time 1.71e-07/1.293, allocations: 0 / 0.972 GB, free: 88.3 MB / 0.6857 GB Notification: Performance of remove unused functions: time 0.004275/1.297, allocations: 2.015 MB / 0.974 GB, free: 86.43 MB / 0.6857 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.009197/1.306, allocations: 8.747 MB / 0.9825 GB, free: 77.65 MB / 0.6857 GB Notification: Performance of simCode: created initialization part: time 0.006008/1.312, allocations: 5.448 MB / 0.9878 GB, free: 72.16 MB / 0.6857 GB Notification: Performance of simCode: created event and clocks part: time 5.681e-06/1.312, allocations: 4 kB / 0.9878 GB, free: 72.15 MB / 0.6857 GB Notification: Performance of simCode: created simulation system equations: time 0.002535/1.315, allocations: 2.549 MB / 0.9903 GB, free: 69.57 MB / 0.6857 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01192/1.327, allocations: 3.386 MB / 0.9936 GB, free: 66.4 MB / 0.6857 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05315/1.38, allocations: 52.56 MB / 1.045 GB, free: 11.76 MB / 0.6857 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002878/1.383, allocations: 4.628 MB / 1.049 GB, free: 7.094 MB / 0.6857 GB Notification: Performance of simCode: alias equations: time 0.004576/1.387, allocations: 2.077 MB / 1.051 GB, free: 5.039 MB / 0.6857 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002797/1.39, allocations: 2.674 MB / 1.054 GB, free: 2.363 MB / 0.6857 GB Notification: Performance of SimCode: time 7.41e-07/1.39, allocations: 3.938 kB / 1.054 GB, free: 2.359 MB / 0.6857 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5221/1.912, allocations: 159.8 MB / 1.21 GB, free: 261.6 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.63/22.54, allocations: 10.89 kB / 1.21 GB, free: 261.6 MB / 0.795 GB (rm -f IDEAS_IDEAS.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe ; mkfifo IDEAS_IDEAS.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe >> ../files/IDEAS_IDEAS.Fluid.Storage.Validation.StratifiedLoadingUnloading.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.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 IDEAS_IDEAS_Fluid_Storage_Validation_StratifiedLoadingUnloading.fmu > IDEAS_IDEAS.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe 2>&1)