Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.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(IDEAS.Fluid.Storage.Validation.StratifiedLoadingUnloading,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Storage_Validation_StratifiedLoadingUnloading",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Storage.Validation.StratifiedLoadingUnloading,fileNamePrefix="IDEAS_dev_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.004993/0.004993, allocations: 100.5 kB / 15.73 MB, free: 6.059 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.001171/0.001171, allocations: 196.4 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.273/1.273, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7744/0.7744, allocations: 135.1 MB / 425.7 MB, free: 4.109 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001174/0.001174, allocations: 70.27 kB / 0.5851 GB, free: 21.99 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1313/0.1325, allocations: 80.92 MB / 0.6641 GB, free: 6.312 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.04968/0.1822, allocations: 55.99 MB / 0.7188 GB, free: 14.12 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.02071/0.203, allocations: 17.93 MB / 0.7363 GB, free: 12.14 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002494/0.2055, allocations: 75.56 kB / 0.7364 GB, free: 12.07 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.002459/0.208, allocations: 0.9081 MB / 0.7373 GB, free: 11.16 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.006203/0.2142, allocations: 2.612 MB / 0.7398 GB, free: 8.531 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.003362/0.2176, allocations: 1.54 MB / 0.7413 GB, free: 7 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.3189/0.5365, allocations: 21.24 MB / 0.7621 GB, free: 6.043 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01355/0.5501, allocations: 10.7 MB / 0.7725 GB, free: 4.484 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01301/0.5632, allocations: 7.251 MB / 0.7796 GB, free: 3.777 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.009552/0.5727, allocations: 6.377 MB / 0.7859 GB, free: 2.777 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.002158/0.5749, allocations: 0.9373 MB / 0.7868 GB, free: 2.777 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007078/0.582, allocations: 1.702 MB / 0.7884 GB, free: 2.777 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.002744/0.5848, allocations: 2.339 MB / 0.7907 GB, free: 2.496 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.009404/0.5942, allocations: 4.713 MB / 0.7953 GB, free: 260 kB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01524/0.6095, allocations: 13.24 MB / 0.8082 GB, free: 9.965 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.6095, allocations: 0 / 0.8082 GB, free: 9.965 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.613e-06/0.6095, allocations: 0 / 0.8082 GB, free: 9.965 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 0.0002942/0.6098, allocations: 0 / 0.8082 GB, free: 9.965 MB / 0.5919 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.01671/0.6265, allocations: 8.734 MB / 0.8168 GB, free: 1.258 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.396e-05/0.6266, allocations: 13.11 kB / 0.8168 GB, free: 1.246 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001195/0.6278, allocations: 0.8421 MB / 0.8176 GB, free: 408 kB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002492/0.6303, allocations: 0.8942 MB / 0.8185 GB, free: 15.5 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01198/0.6423, allocations: 6.738 MB / 0.8251 GB, free: 9.016 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002957/0.6426, allocations: 457.8 kB / 0.8255 GB, free: 8.566 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009171/0.6435, allocations: 0.6034 MB / 0.8261 GB, free: 7.969 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01399/0.6575, allocations: 9.026 MB / 0.8349 GB, free: 14.66 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001215/0.6577, allocations: 23.77 kB / 0.8349 GB, free: 14.65 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006271/0.6583, allocations: 256 kB / 0.8352 GB, free: 14.4 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001505/0.6585, allocations: 178.6 kB / 0.8353 GB, free: 14.23 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01251/0.671, allocations: 7.45 MB / 0.8426 GB, free: 6.84 MB / 0.6231 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.0493/0.7203, allocations: 36.07 MB / 0.8778 GB, free: 1.324 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006827/0.7272, allocations: 4.276 MB / 0.882 GB, free: 13.08 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004919/0.7321, allocations: 3.299 MB / 0.8852 GB, free: 9.789 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001334/0.7335, allocations: 0.9583 MB / 0.8862 GB, free: 8.66 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004178/0.7377, allocations: 2.383 MB / 0.8885 GB, free: 6.242 MB / 0.67 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002341/0.7401, allocations: 377.1 kB / 0.8889 GB, free: 5.871 MB / 0.67 GB Notification: Performance of pre-optimization done (n=317): time 8.817e-06/0.7401, allocations: 4 kB / 0.8889 GB, free: 5.867 MB / 0.67 GB Notification: Performance of matching and sorting (n=317): time 0.01411/0.7542, allocations: 7.158 MB / 0.8959 GB, free: 14.64 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.335e-05/0.7543, allocations: 94.41 kB / 0.8959 GB, free: 14.54 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01155/0.7659, allocations: 5.672 MB / 0.9015 GB, free: 8.887 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 0.0004385/0.7663, allocations: 89.7 kB / 0.9016 GB, free: 8.793 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.003334/0.7697, allocations: 3.267 MB / 0.9048 GB, free: 5.52 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.001279/0.771, allocations: 1.174 MB / 0.9059 GB, free: 4.359 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001523/0.7725, allocations: 0.8585 MB / 0.9067 GB, free: 3.488 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 8.574e-05/0.7726, allocations: 309 kB / 0.907 GB, free: 3.184 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003353/0.7759, allocations: 2.167 MB / 0.9092 GB, free: 1.008 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004289/0.7802, allocations: 3.695 MB / 0.9128 GB, free: 12.63 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007944/0.7882, allocations: 6.32 MB / 0.9189 GB, free: 5.801 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.568e-05/0.7882, allocations: 12 kB / 0.9189 GB, free: 5.789 MB / 0.7012 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01126/0.7995, allocations: 6.804 MB / 0.9256 GB, free: 15.23 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 6.507e-05/0.7996, allocations: 49.7 kB / 0.9256 GB, free: 15.18 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.731e-05/0.7997, allocations: 56 kB / 0.9257 GB, free: 15.12 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00103/0.8007, allocations: 433.6 kB / 0.9261 GB, free: 14.7 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003617/0.8043, allocations: 1.01 MB / 0.9271 GB, free: 13.69 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005948/0.8103, allocations: 5.696 MB / 0.9327 GB, free: 7.73 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004525/0.8148, allocations: 291.7 kB / 0.9329 GB, free: 7.445 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000535/0.8154, allocations: 216 kB / 0.9331 GB, free: 7.234 MB / 0.7169 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.00438/0.8198, allocations: 2.475 MB / 0.9356 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001795/0.8216, allocations: 0.5551 MB / 0.9361 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009175/0.8308, allocations: 5.271 MB / 0.9412 GB, free: 14.86 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.813e-05/0.8308, allocations: 28 kB / 0.9413 GB, free: 14.83 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.511e-05/0.8308, allocations: 4 kB / 0.9413 GB, free: 14.83 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00664/0.8375, allocations: 4.535 MB / 0.9457 GB, free: 10.19 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02294/0.8604, allocations: 11.99 MB / 0.9574 GB, free: 14.13 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.045e-05/0.8605, allocations: 0 / 0.9574 GB, free: 14.13 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002841/0.8633, allocations: 0.6397 MB / 0.958 GB, free: 13.49 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008719/0.8642, allocations: 381.3 kB / 0.9584 GB, free: 13.11 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002832/0.8645, allocations: 87.95 kB / 0.9585 GB, free: 13.03 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005505/0.87, allocations: 5.623 MB / 0.964 GB, free: 7.148 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.87, allocations: 3.938 kB / 0.964 GB, free: 7.145 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01185/0.8819, allocations: 7.795 MB / 0.9716 GB, free: 15.25 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003376/0.8853, allocations: 1.185 MB / 0.9728 GB, free: 14.05 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001445/0.8868, allocations: 63.98 kB / 0.9728 GB, free: 13.98 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003814/0.8906, allocations: 199.4 kB / 0.973 GB, free: 13.79 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004386/0.891, allocations: 198.2 kB / 0.9732 GB, free: 13.6 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003794/0.8914, allocations: 147.9 kB / 0.9733 GB, free: 13.45 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.007222/0.8987, allocations: 3.959 MB / 0.9772 GB, free: 9.516 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8987, allocations: 0 / 0.9772 GB, free: 9.516 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.006459/0.9051, allocations: 2.023 MB / 0.9792 GB, free: 7.488 MB / 0.7637 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.01277/0.9179, allocations: 8.731 MB / 0.9877 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.008305/0.9262, allocations: 5.459 MB / 0.993 GB, free: 9.191 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 5.24e-06/0.9263, allocations: 0 / 0.993 GB, free: 9.191 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.003582/0.9299, allocations: 2.542 MB / 0.9955 GB, free: 6.621 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01573/0.9456, allocations: 3.399 MB / 0.9988 GB, free: 3.316 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08529/1.031, allocations: 52.55 MB / 1.05 GB, free: 12.73 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005416/1.036, allocations: 4.638 MB / 1.055 GB, free: 8.055 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.00634/1.043, allocations: 2.069 MB / 1.057 GB, free: 5.984 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004538/1.047, allocations: 2.67 MB / 1.059 GB, free: 3.309 MB / 0.8419 GB Notification: Performance of SimCode: time 5.71e-07/1.047, allocations: 0 / 1.059 GB, free: 3.309 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.737/1.784, allocations: 159.9 MB / 1.215 GB, free: 195.8 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.47/21.26, allocations: 11.72 kB / 1.215 GB, free: 195.8 MB / 0.8419 GB (rm -f IDEAS_dev_IDEAS.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Storage.Validation.StratifiedLoadingUnloading.sim & python3 -m fmpy simulate --output-file IDEAS_dev_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_dev_IDEAS_Fluid_Storage_Validation_StratifiedLoadingUnloading.fmu > IDEAS_dev_IDEAS.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe 2>&1)