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.005597/0.005597, allocations: 96.7 kB / 15.73 MB, free: 6.039 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.001421/0.001421, allocations: 194.2 kB / 16.67 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.268/1.268, allocations: 222.9 MB / 240.4 MB, free: 4.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7182/0.7182, allocations: 132.2 MB / 422.7 MB, free: 1.734 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001187/0.001187, allocations: 63.39 kB / 0.5809 GB, free: 1.113 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1353/0.1365, allocations: 80.19 MB / 0.6592 GB, free: 14.03 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.0502/0.1867, allocations: 56 MB / 0.7139 GB, free: 5.824 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0209/0.2077, allocations: 17.92 MB / 0.7314 GB, free: 3.852 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002091/0.2098, allocations: 79.56 kB / 0.7314 GB, free: 3.773 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001985/0.2118, allocations: 0.9158 MB / 0.7323 GB, free: 2.852 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.005446/0.2173, allocations: 2.608 MB / 0.7349 GB, free: 236 kB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.003051/0.2203, allocations: 1.535 MB / 0.7364 GB, free: 14.7 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.01762/0.238, allocations: 21.26 MB / 0.7571 GB, free: 9.395 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01103/0.249, allocations: 10.71 MB / 0.7676 GB, free: 14.56 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0114/0.2605, allocations: 7.245 MB / 0.7747 GB, free: 7.34 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.008734/0.2692, allocations: 6.37 MB / 0.7809 GB, free: 0.9453 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.001524/0.2708, allocations: 0.9375 MB / 0.7818 GB, free: 8 kB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004197/0.275, allocations: 1.702 MB / 0.7835 GB, free: 14.3 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.002068/0.277, allocations: 2.333 MB / 0.7858 GB, free: 11.96 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.006135/0.2832, allocations: 4.707 MB / 0.7904 GB, free: 7.234 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.01259/0.2958, allocations: 13.24 MB / 0.8033 GB, free: 9.949 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.2958, allocations: 4 kB / 0.8033 GB, free: 9.945 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.553e-06/0.2958, allocations: 0 / 0.8033 GB, free: 9.945 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 0.0002485/0.2961, allocations: 0 / 0.8033 GB, free: 9.945 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: 1564 * Number of variables: 1564 Notification: Performance of Generate backend data structure: time 0.01481/0.3109, allocations: 8.725 MB / 0.8118 GB, free: 1.117 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.298e-05/0.311, allocations: 12.02 kB / 0.8118 GB, free: 1.105 MB / 0.6387 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001097/0.3121, allocations: 0.8422 MB / 0.8126 GB, free: 260 kB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2705/0.5825, allocations: 0.8878 MB / 0.8135 GB, free: 139.4 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01302/0.5956, allocations: 6.748 MB / 0.8201 GB, free: 137.6 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003113/0.5959, allocations: 460.9 kB / 0.8205 GB, free: 137.4 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001207/0.5971, allocations: 0.5939 MB / 0.8211 GB, free: 137.2 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01355/0.6107, allocations: 9.025 MB / 0.8299 GB, free: 133.4 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001399/0.6109, allocations: 21.36 kB / 0.83 GB, free: 133.4 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005739/0.6115, allocations: 262.2 kB / 0.8302 GB, free: 133.2 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001291/0.6116, allocations: 181.8 kB / 0.8304 GB, free: 133.1 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009959/0.6216, allocations: 7.45 MB / 0.8377 GB, free: 129.3 MB / 0.6387 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.03179/0.6534, allocations: 36.06 MB / 0.8729 GB, free: 92.29 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00449/0.6579, allocations: 4.287 MB / 0.8771 GB, free: 88.03 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003324/0.6612, allocations: 3.29 MB / 0.8803 GB, free: 84.73 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009393/0.6622, allocations: 0.9618 MB / 0.8812 GB, free: 83.6 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002826/0.665, allocations: 2.384 MB / 0.8835 GB, free: 81.18 MB / 0.6387 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001728/0.6668, allocations: 383.4 kB / 0.8839 GB, free: 80.91 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=317): time 7.054e-06/0.6668, allocations: 1.359 kB / 0.8839 GB, free: 80.91 MB / 0.6387 GB Notification: Performance of matching and sorting (n=317): time 0.009754/0.6765, allocations: 7.159 MB / 0.8909 GB, free: 73.66 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.637e-05/0.6766, allocations: 85.89 kB / 0.891 GB, free: 73.56 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00586/0.6825, allocations: 5.669 MB / 0.8965 GB, free: 67.95 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.0003037/0.6828, allocations: 85.7 kB / 0.8966 GB, free: 67.86 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.002046/0.6848, allocations: 3.281 MB / 0.8998 GB, free: 64.69 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008256/0.6857, allocations: 1.164 MB / 0.9009 GB, free: 63.54 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009562/0.6866, allocations: 0.8624 MB / 0.9018 GB, free: 62.66 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 3.616e-05/0.6867, allocations: 305.1 kB / 0.9021 GB, free: 62.36 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002535/0.6892, allocations: 2.16 MB / 0.9042 GB, free: 60.2 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002977/0.6922, allocations: 3.701 MB / 0.9078 GB, free: 55.79 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00587/0.6981, allocations: 6.327 MB / 0.914 GB, free: 48.75 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.246e-05/0.6981, allocations: 16 kB / 0.914 GB, free: 48.73 MB / 0.6387 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.00902/0.7071, allocations: 6.798 MB / 0.9206 GB, free: 41.88 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 5.511e-05/0.7072, allocations: 54.7 kB / 0.9207 GB, free: 41.82 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.814e-05/0.7073, allocations: 48 kB / 0.9207 GB, free: 41.78 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008589/0.7082, allocations: 429.3 kB / 0.9211 GB, free: 41.35 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003206/0.7114, allocations: 1.014 MB / 0.9221 GB, free: 40.34 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004399/0.7158, allocations: 5.7 MB / 0.9277 GB, free: 34.37 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004079/0.7199, allocations: 291.5 kB / 0.928 GB, free: 34.09 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004113/0.7203, allocations: 220 kB / 0.9282 GB, free: 33.87 MB / 0.6387 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.003285/0.7236, allocations: 2.483 MB / 0.9306 GB, free: 31.38 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00142/0.725, allocations: 0.5551 MB / 0.9311 GB, free: 30.82 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007619/0.7327, allocations: 5.265 MB / 0.9363 GB, free: 25.51 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.216e-05/0.7327, allocations: 32 kB / 0.9363 GB, free: 25.48 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.559e-05/0.7327, allocations: 11.94 kB / 0.9363 GB, free: 25.47 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005219/0.7379, allocations: 4.524 MB / 0.9407 GB, free: 20.84 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01813/0.7561, allocations: 11.99 MB / 0.9524 GB, free: 8.719 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.758e-06/0.7561, allocations: 0 / 0.9524 GB, free: 8.719 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002519/0.7587, allocations: 0.6438 MB / 0.9531 GB, free: 8.074 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007458/0.7594, allocations: 373.3 kB / 0.9534 GB, free: 7.703 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000237/0.7597, allocations: 83.95 kB / 0.9535 GB, free: 7.621 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004182/0.7639, allocations: 5.624 MB / 0.959 GB, free: 1.715 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/0.7639, allocations: 4 kB / 0.959 GB, free: 1.711 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01122/0.7751, allocations: 7.787 MB / 0.9666 GB, free: 9.824 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002932/0.7781, allocations: 1.185 MB / 0.9678 GB, free: 8.617 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00129/0.7794, allocations: 71.98 kB / 0.9678 GB, free: 8.547 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003382/0.7828, allocations: 189.2 kB / 0.968 GB, free: 8.363 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004439/0.7832, allocations: 206.1 kB / 0.9682 GB, free: 8.16 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003614/0.7836, allocations: 138 kB / 0.9683 GB, free: 8.027 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.006742/0.7903, allocations: 3.959 MB / 0.9722 GB, free: 4.09 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.91e-07/0.7903, allocations: 0 / 0.9722 GB, free: 4.09 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.005737/0.7961, allocations: 2.027 MB / 0.9742 GB, free: 2.059 MB / 0.6544 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.01258/0.8087, allocations: 8.749 MB / 0.9827 GB, free: 9.223 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.008157/0.8169, allocations: 5.444 MB / 0.9881 GB, free: 3.727 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 7.404e-06/0.8169, allocations: 4 kB / 0.9881 GB, free: 3.723 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.003473/0.8204, allocations: 2.546 MB / 0.9905 GB, free: 1.148 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01487/0.8352, allocations: 3.391 MB / 0.9939 GB, free: 13.98 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08203/0.9173, allocations: 52.56 MB / 1.045 GB, free: 7.281 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004764/0.9221, allocations: 4.628 MB / 1.05 GB, free: 2.617 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.005479/0.9276, allocations: 2.078 MB / 1.052 GB, free: 0.5625 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003647/0.9313, allocations: 2.678 MB / 1.054 GB, free: 13.88 MB / 0.7481 GB Notification: Performance of SimCode: time 1.012e-06/0.9313, allocations: 0 / 1.054 GB, free: 13.88 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4744/1.406, allocations: 159.8 MB / 1.21 GB, free: 207.5 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.65/21.06, allocations: 14.05 kB / 1.21 GB, free: 207.5 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)