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.001142/0.001142, allocations: 108 kB / 15.61 MB, free: 152 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.00117/0.00117, allocations: 195.2 kB / 16.53 MB, free: 6.664 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.378/1.378, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9232/0.9232, allocations: 135.1 MB / 425.5 MB, free: 11.85 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001799/0.0018, allocations: 69.27 kB / 0.5054 GB, free: 5.238 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1723/0.1741, allocations: 80.92 MB / 0.5845 GB, free: 4.469 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.3089/0.4831, allocations: 55.97 MB / 0.6391 GB, free: 20.79 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0182/0.5013, allocations: 17.93 MB / 0.6566 GB, free: 7.945 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00416/0.5055, allocations: 77.44 kB / 0.6567 GB, free: 7.918 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.002651/0.5082, allocations: 0.889 MB / 0.6576 GB, free: 7.355 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.00641/0.5147, allocations: 2.504 MB / 0.66 GB, free: 5.848 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.003229/0.5179, allocations: 1.515 MB / 0.6615 GB, free: 5.004 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.02251/0.5404, allocations: 21.21 MB / 0.6822 GB, free: 10.92 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01452/0.555, allocations: 10.71 MB / 0.6927 GB, free: 6.469 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01644/0.5715, allocations: 7.16 MB / 0.6997 GB, free: 3.301 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01382/0.5853, allocations: 6.377 MB / 0.7059 GB, free: 272 kB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.005291/0.5906, allocations: 1.108 MB / 0.707 GB, free: 15.66 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008072/0.5987, allocations: 1.698 MB / 0.7086 GB, free: 13.97 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.004476/0.6032, allocations: 2.341 MB / 0.7109 GB, free: 11.62 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.00963/0.6129, allocations: 4.711 MB / 0.7155 GB, free: 6.891 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0143/0.6272, allocations: 13.04 MB / 0.7283 GB, free: 9.809 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 6.151e-06/0.6273, allocations: 3.938 kB / 0.7283 GB, free: 9.805 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.443e-06/0.6273, allocations: 0 / 0.7283 GB, free: 9.805 MB / 0.545 GB Notification: Performance of Transformations before backend: time 0.0003757/0.6277, allocations: 0 / 0.7283 GB, free: 9.805 MB / 0.545 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.01849/0.6462, allocations: 8.519 MB / 0.7366 GB, free: 1.191 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.394e-05/0.6462, allocations: 12.03 kB / 0.7366 GB, free: 1.18 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001461/0.6477, allocations: 0.8422 MB / 0.7374 GB, free: 336 kB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002751/0.6505, allocations: 0.8548 MB / 0.7382 GB, free: 15.46 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01231/0.6628, allocations: 6.419 MB / 0.7445 GB, free: 8.984 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004024/0.6632, allocations: 464.2 kB / 0.745 GB, free: 8.527 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002078/0.6653, allocations: 0.5975 MB / 0.7455 GB, free: 7.93 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01953/0.6849, allocations: 9.031 MB / 0.7544 GB, free: 14.58 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001468/0.685, allocations: 19.78 kB / 0.7544 GB, free: 14.56 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008344/0.6859, allocations: 268 kB / 0.7546 GB, free: 14.3 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00018/0.6861, allocations: 180 kB / 0.7548 GB, free: 14.12 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01263/0.6987, allocations: 7.445 MB / 0.7621 GB, free: 6.668 MB / 0.5762 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.05085/0.7496, allocations: 36.25 MB / 0.7975 GB, free: 364 kB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006911/0.7565, allocations: 4.277 MB / 0.8017 GB, free: 12.09 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005151/0.7617, allocations: 3.31 MB / 0.8049 GB, free: 8.777 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001417/0.7632, allocations: 0.9583 MB / 0.8058 GB, free: 7.633 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004748/0.7679, allocations: 2.402 MB / 0.8082 GB, free: 5.195 MB / 0.6231 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002568/0.7705, allocations: 367.8 kB / 0.8085 GB, free: 4.832 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=317): time 9.258e-06/0.7706, allocations: 0 / 0.8085 GB, free: 4.832 MB / 0.6231 GB Notification: Performance of matching and sorting (n=317): time 0.01486/0.7854, allocations: 7.133 MB / 0.8155 GB, free: 13.61 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.832e-05/0.7855, allocations: 81.91 kB / 0.8156 GB, free: 13.51 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.011/0.7966, allocations: 5.67 MB / 0.8211 GB, free: 7.863 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.000692/0.7973, allocations: 85.7 kB / 0.8212 GB, free: 7.773 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.003319/0.8006, allocations: 3.196 MB / 0.8243 GB, free: 4.543 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.001668/0.8023, allocations: 1.113 MB / 0.8254 GB, free: 3.414 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002364/0.8047, allocations: 0.8619 MB / 0.8262 GB, free: 2.539 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 8.782e-05/0.8048, allocations: 309.1 kB / 0.8265 GB, free: 2.234 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003693/0.8085, allocations: 2.16 MB / 0.8286 GB, free: 68 kB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004686/0.8132, allocations: 3.697 MB / 0.8322 GB, free: 11.66 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008658/0.8219, allocations: 6.323 MB / 0.8384 GB, free: 4.625 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.352e-05/0.8219, allocations: 16 kB / 0.8384 GB, free: 4.609 MB / 0.6544 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01305/0.835, allocations: 6.772 MB / 0.845 GB, free: 13.79 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 8.365e-05/0.8351, allocations: 53.7 kB / 0.8451 GB, free: 13.73 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.088e-05/0.8352, allocations: 48 kB / 0.8451 GB, free: 13.68 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001091/0.8363, allocations: 441.2 kB / 0.8456 GB, free: 13.24 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00369/0.84, allocations: 1.01 MB / 0.8465 GB, free: 12.23 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005997/0.846, allocations: 5.683 MB / 0.8521 GB, free: 6.27 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004896/0.8509, allocations: 287.4 kB / 0.8524 GB, free: 5.988 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008034/0.8518, allocations: 220 kB / 0.8526 GB, free: 5.773 MB / 0.67 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.004648/0.8564, allocations: 2.489 MB / 0.855 GB, free: 3.273 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001801/0.8582, allocations: 0.5249 MB / 0.8555 GB, free: 2.742 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5096/1.368, allocations: 5.269 MB / 0.8607 GB, free: 201.6 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.763e-05/1.368, allocations: 30.53 kB / 0.8607 GB, free: 201.6 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.047e-05/1.368, allocations: 2.844 kB / 0.8607 GB, free: 201.6 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005376/1.373, allocations: 4.539 MB / 0.8651 GB, free: 200.2 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01707/1.39, allocations: 12.03 MB / 0.8769 GB, free: 195.6 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.135e-05/1.39, allocations: 0 / 0.8769 GB, free: 195.6 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002532/1.393, allocations: 0.648 MB / 0.8775 GB, free: 195.6 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000735/1.394, allocations: 369.4 kB / 0.8779 GB, free: 195.5 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001925/1.394, allocations: 89.52 kB / 0.878 GB, free: 195.5 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004274/1.398, allocations: 5.611 MB / 0.8834 GB, free: 191.4 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/1.398, allocations: 6.094 kB / 0.8834 GB, free: 191.4 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01082/1.409, allocations: 7.753 MB / 0.891 GB, free: 188.5 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002952/1.412, allocations: 1.157 MB / 0.8921 GB, free: 188.2 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008897/1.413, allocations: 71.48 kB / 0.8922 GB, free: 188.1 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00277/1.416, allocations: 192.4 kB / 0.8924 GB, free: 188.1 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004262/1.416, allocations: 203.4 kB / 0.8926 GB, free: 188.1 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000286/1.416, allocations: 139.8 kB / 0.8927 GB, free: 188 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.006225/1.423, allocations: 3.959 MB / 0.8966 GB, free: 186.7 MB / 0.67 GB Notification: Performance of sort global known variables: time 3.3e-07/1.423, allocations: 0 / 0.8966 GB, free: 186.7 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.006374/1.429, allocations: 2.014 MB / 0.8986 GB, free: 186.4 MB / 0.67 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.01306/1.442, allocations: 8.719 MB / 0.9071 GB, free: 182.7 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.02126/1.463, allocations: 11.63 MB / 0.9184 GB, free: 180.7 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 9.919e-06/1.463, allocations: 6.906 kB / 0.9184 GB, free: 180.7 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.003188/1.467, allocations: 2.544 MB / 0.9209 GB, free: 179.6 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01549/1.482, allocations: 3.404 MB / 0.9242 GB, free: 178.8 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0724/1.555, allocations: 64.75 MB / 0.9875 GB, free: 115.1 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004194/1.559, allocations: 4.634 MB / 0.992 GB, free: 110.4 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.005927/1.565, allocations: 2.082 MB / 0.994 GB, free: 108.3 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003382/1.568, allocations: 2.674 MB / 0.9966 GB, free: 105.7 MB / 0.67 GB Notification: Performance of SimCode: time 1.342e-06/1.568, allocations: 0 / 0.9966 GB, free: 105.7 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4741/2.042, allocations: 165.6 MB / 1.158 GB, free: 207.5 MB / 0.6857 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.67/14.72, allocations: 7.594 kB / 1.158 GB, free: 207.5 MB / 0.6857 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)