Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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(IBPSA.Fluid.Storage.Validation.StratifiedLoadingUnloading,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Storage_Validation_StratifiedLoadingUnloading",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.Storage.Validation.StratifiedLoadingUnloading,fileNamePrefix="IBPSA_latest_IBPSA_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.001118/0.001118, allocations: 110.5 kB / 16.41 MB, free: 5.984 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.001169/0.001169, allocations: 193 kB / 17.34 MB, free: 5.602 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.277/1.277, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7181/0.7181, allocations: 122.9 MB / 414.1 MB, free: 15.81 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001125/0.001125, allocations: 66.34 kB / 0.5679 GB, free: 28.95 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1263/0.1275, allocations: 77.92 MB / 0.644 GB, free: 9.57 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.05008/0.1776, allocations: 55.99 MB / 0.6987 GB, free: 1.375 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.02113/0.1988, allocations: 17.95 MB / 0.7162 GB, free: 15.38 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00254/0.2014, allocations: 75.56 kB / 0.7163 GB, free: 15.3 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.002188/0.2036, allocations: 0.9158 MB / 0.7172 GB, free: 14.38 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.006377/0.21, allocations: 2.618 MB / 0.7198 GB, free: 11.75 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.003333/0.2133, allocations: 1.538 MB / 0.7213 GB, free: 10.22 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.01842/0.2318, allocations: 21.29 MB / 0.7421 GB, free: 4.879 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.3286/0.5604, allocations: 10.67 MB / 0.7525 GB, free: 8.012 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01417/0.5746, allocations: 7.234 MB / 0.7595 GB, free: 7.547 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01266/0.5873, allocations: 6.367 MB / 0.7658 GB, free: 6.547 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.003333/0.5907, allocations: 0.9412 MB / 0.7667 GB, free: 6.543 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007772/0.5985, allocations: 1.697 MB / 0.7683 GB, free: 6.543 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.004128/0.6026, allocations: 2.337 MB / 0.7706 GB, free: 6.266 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.009849/0.6125, allocations: 4.708 MB / 0.7752 GB, free: 5.148 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01493/0.6274, allocations: 13.23 MB / 0.7881 GB, free: 3.621 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 7.284e-06/0.6275, allocations: 0 / 0.7881 GB, free: 3.621 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.934e-06/0.6275, allocations: 3.938 kB / 0.7881 GB, free: 3.617 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 0.0004986/0.628, allocations: 0 / 0.7881 GB, free: 3.617 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.02412/0.6521, allocations: 8.724 MB / 0.7967 GB, free: 15.71 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.798e-05/0.6522, allocations: 12.12 kB / 0.7967 GB, free: 15.71 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002039/0.6542, allocations: 0.8459 MB / 0.7975 GB, free: 15.5 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00303/0.6573, allocations: 0.8922 MB / 0.7984 GB, free: 15.05 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01278/0.6701, allocations: 6.74 MB / 0.8049 GB, free: 12.76 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002557/0.6704, allocations: 458.2 kB / 0.8054 GB, free: 12.74 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001366/0.6717, allocations: 0.5991 MB / 0.806 GB, free: 12.73 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01554/0.6873, allocations: 9.036 MB / 0.8148 GB, free: 7.277 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000138/0.6875, allocations: 20.83 kB / 0.8148 GB, free: 7.273 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007851/0.6882, allocations: 261 kB / 0.8151 GB, free: 7.082 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001331/0.6884, allocations: 184.8 kB / 0.8152 GB, free: 7.066 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01337/0.7018, allocations: 7.447 MB / 0.8225 GB, free: 1.582 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.05383/0.7556, allocations: 36.07 MB / 0.8577 GB, free: 12.09 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006679/0.7623, allocations: 4.282 MB / 0.8619 GB, free: 7.84 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004815/0.7672, allocations: 3.296 MB / 0.8651 GB, free: 4.555 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001294/0.7685, allocations: 0.9653 MB / 0.8661 GB, free: 3.422 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004145/0.7727, allocations: 2.379 MB / 0.8684 GB, free: 1.008 MB / 0.6387 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00253/0.7752, allocations: 387.1 kB / 0.8688 GB, free: 0.6289 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=317): time 1.028e-05/0.7752, allocations: 4 kB / 0.8688 GB, free: 0.625 MB / 0.6387 GB Notification: Performance of matching and sorting (n=317): time 0.01356/0.7888, allocations: 7.159 MB / 0.8758 GB, free: 9.398 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.281e-05/0.7889, allocations: 89.89 kB / 0.8759 GB, free: 9.297 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01083/0.7997, allocations: 5.667 MB / 0.8814 GB, free: 3.652 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 0.0005861/0.8003, allocations: 85.7 kB / 0.8815 GB, free: 3.562 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.003575/0.8039, allocations: 3.277 MB / 0.8847 GB, free: 284 kB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.001511/0.8055, allocations: 1.168 MB / 0.8858 GB, free: 15.12 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001843/0.8073, allocations: 0.8546 MB / 0.8866 GB, free: 14.25 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 8.942e-05/0.8074, allocations: 305.1 kB / 0.8869 GB, free: 13.95 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003562/0.811, allocations: 2.163 MB / 0.889 GB, free: 11.78 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00451/0.8155, allocations: 3.695 MB / 0.8927 GB, free: 7.406 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008649/0.8242, allocations: 6.325 MB / 0.8988 GB, free: 0.5664 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.838e-05/0.8243, allocations: 12 kB / 0.8988 GB, free: 0.5547 MB / 0.67 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01343/0.8377, allocations: 6.812 MB / 0.9055 GB, free: 9.996 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 9.59e-05/0.8378, allocations: 53.7 kB / 0.9055 GB, free: 9.938 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.16e-05/0.8379, allocations: 48 kB / 0.9056 GB, free: 9.891 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001032/0.839, allocations: 437.7 kB / 0.906 GB, free: 9.457 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003883/0.8429, allocations: 1 MB / 0.907 GB, free: 8.527 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005908/0.8488, allocations: 5.712 MB / 0.9126 GB, free: 2.594 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005865/0.8547, allocations: 283.5 kB / 0.9128 GB, free: 2.316 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007809/0.8555, allocations: 224 kB / 0.9131 GB, free: 2.098 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.005077/0.8606, allocations: 2.488 MB / 0.9155 GB, free: 15.67 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001843/0.8624, allocations: 0.5551 MB / 0.916 GB, free: 15.11 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009469/0.8719, allocations: 5.26 MB / 0.9212 GB, free: 9.809 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.297e-05/0.8719, allocations: 32 kB / 0.9212 GB, free: 9.777 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.839e-05/0.872, allocations: 4 kB / 0.9212 GB, free: 9.773 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006664/0.8786, allocations: 4.534 MB / 0.9256 GB, free: 5.152 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02565/0.9043, allocations: 11.98 MB / 0.9373 GB, free: 9.141 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.48e-05/0.9043, allocations: 4.031 kB / 0.9373 GB, free: 9.137 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003153/0.9075, allocations: 0.6403 MB / 0.938 GB, free: 8.523 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009288/0.9085, allocations: 377.3 kB / 0.9383 GB, free: 8.148 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004583/0.9089, allocations: 83.95 kB / 0.9384 GB, free: 8.066 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005944/0.9149, allocations: 5.618 MB / 0.9439 GB, free: 2.211 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.9149, allocations: 5.969 kB / 0.9439 GB, free: 2.207 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0134/0.9283, allocations: 7.795 MB / 0.9515 GB, free: 10.33 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003891/0.9323, allocations: 1.188 MB / 0.9527 GB, free: 9.125 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001776/0.9341, allocations: 67.98 kB / 0.9527 GB, free: 9.059 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004225/0.9383, allocations: 185.7 kB / 0.9529 GB, free: 8.883 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005763/0.9389, allocations: 198.2 kB / 0.9531 GB, free: 8.688 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004913/0.9394, allocations: 147.9 kB / 0.9532 GB, free: 8.543 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.007814/0.9472, allocations: 3.963 MB / 0.9571 GB, free: 4.602 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.7e-07/0.9472, allocations: 0 / 0.9571 GB, free: 4.602 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.007455/0.9547, allocations: 2.016 MB / 0.9591 GB, free: 2.582 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.01419/0.9689, allocations: 8.74 MB / 0.9676 GB, free: 9.809 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.00892/0.9779, allocations: 5.449 MB / 0.9729 GB, free: 4.492 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 9.959e-06/0.9779, allocations: 4 kB / 0.9729 GB, free: 4.488 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.003877/0.9818, allocations: 2.547 MB / 0.9754 GB, free: 1.973 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01742/0.9992, allocations: 3.401 MB / 0.9787 GB, free: 14.68 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09232/1.092, allocations: 52.56 MB / 1.03 GB, free: 8.332 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00611/1.098, allocations: 4.632 MB / 1.035 GB, free: 3.664 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.00671/1.104, allocations: 2.081 MB / 1.037 GB, free: 1.586 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005186/1.11, allocations: 2.692 MB / 1.039 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of SimCode: time 1.362e-06/1.11, allocations: 0 / 1.039 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5047/1.614, allocations: 159.9 MB / 1.195 GB, free: 214.1 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.16/21.77, allocations: 7.953 kB / 1.195 GB, free: 214.1 MB / 0.8262 GB (rm -f IBPSA_latest_IBPSA.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Storage.Validation.StratifiedLoadingUnloading.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.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 IBPSA_latest_IBPSA_Fluid_Storage_Validation_StratifiedLoadingUnloading.fmu > IBPSA_latest_IBPSA.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe 2>&1)