Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Storage_Validation_StratifiedLoadingUnloading",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading,fileNamePrefix="BuildingSystems_BuildingSystems_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.001473/0.001473, 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.001406/0.001406, allocations: 196.8 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.339/1.339, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002447/0.002448, allocations: 286.5 kB / 290.7 MB, free: 1.992 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.012/1.012, allocations: 178.6 MB / 0.5073 GB, free: 4.562 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002671/0.002671, allocations: 99.14 kB / 0.6065 GB, free: 24.74 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1394/0.1421, allocations: 89.14 MB / 0.6936 GB, free: 4.23 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.05895/0.2011, allocations: 55.99 MB / 0.7483 GB, free: 12.05 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.2671/0.4682, allocations: 17.93 MB / 0.7658 GB, free: 7.391 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001802/0.4701, allocations: 74.78 kB / 0.7659 GB, free: 7.391 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.00173/0.4718, allocations: 0.8974 MB / 0.7667 GB, free: 7.387 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.00484/0.4767, allocations: 2.505 MB / 0.7692 GB, free: 7.355 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.002807/0.4795, allocations: 1.522 MB / 0.7707 GB, free: 7.328 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.01666/0.4962, allocations: 21.25 MB / 0.7914 GB, free: 4.918 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01089/0.5071, allocations: 10.67 MB / 0.8018 GB, free: 16.66 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01229/0.5194, allocations: 7.137 MB / 0.8088 GB, free: 13.84 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.008635/0.5281, allocations: 6.361 MB / 0.815 GB, free: 11.46 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.00123/0.5293, allocations: 0.9382 MB / 0.8159 GB, free: 11.46 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00397/0.5333, allocations: 1.697 MB / 0.8176 GB, free: 11.18 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.002235/0.5355, allocations: 2.344 MB / 0.8199 GB, free: 9.414 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.006162/0.5417, allocations: 4.707 MB / 0.8245 GB, free: 5.516 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.01298/0.5547, allocations: 13.04 MB / 0.8372 GB, free: 8.754 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.5547, allocations: 0 / 0.8372 GB, free: 8.754 MB / 0.5762 GB Notification: Performance of FrontEnd: time 3.677e-06/0.5547, allocations: 0 / 0.8372 GB, free: 8.754 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 0.0001629/0.5549, allocations: 7.938 kB / 0.8372 GB, free: 8.746 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.01457/0.5694, allocations: 8.508 MB / 0.8455 GB, free: 212 kB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.742e-05/0.5695, allocations: 12.03 kB / 0.8455 GB, free: 200 kB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001155/0.5707, allocations: 0.8458 MB / 0.8464 GB, free: 15.35 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002359/0.573, allocations: 0.8586 MB / 0.8472 GB, free: 14.48 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01017/0.5832, allocations: 6.43 MB / 0.8535 GB, free: 8.129 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000356/0.5836, allocations: 462.7 kB / 0.8539 GB, free: 7.676 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000873/0.5845, allocations: 0.5931 MB / 0.8545 GB, free: 7.086 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01411/0.5986, allocations: 9.027 MB / 0.8633 GB, free: 13.75 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001066/0.5987, allocations: 15.88 kB / 0.8633 GB, free: 13.73 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006157/0.5993, allocations: 262.8 kB / 0.8636 GB, free: 13.48 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001696/0.5995, allocations: 187.9 kB / 0.8638 GB, free: 13.29 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01206/0.6116, allocations: 7.445 MB / 0.871 GB, free: 5.84 MB / 0.6075 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.04409/0.6557, allocations: 36.27 MB / 0.9065 GB, free: 15.8 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006528/0.6622, allocations: 4.27 MB / 0.9106 GB, free: 11.54 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004959/0.6672, allocations: 3.313 MB / 0.9139 GB, free: 8.238 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001384/0.6686, allocations: 0.9604 MB / 0.9148 GB, free: 7.105 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003916/0.6725, allocations: 2.386 MB / 0.9171 GB, free: 4.688 MB / 0.6544 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001968/0.6745, allocations: 378.2 kB / 0.9175 GB, free: 4.316 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=317): time 7.644e-06/0.6745, allocations: 0 / 0.9175 GB, free: 4.316 MB / 0.6544 GB Notification: Performance of matching and sorting (n=317): time 0.01321/0.6877, allocations: 7.135 MB / 0.9245 GB, free: 13.09 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.778e-05/0.6878, allocations: 85.91 kB / 0.9245 GB, free: 13 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009038/0.6969, allocations: 5.662 MB / 0.9301 GB, free: 7.355 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 0.0002811/0.6971, allocations: 85.7 kB / 0.9302 GB, free: 7.266 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.003234/0.7004, allocations: 3.199 MB / 0.9333 GB, free: 4.051 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.001203/0.7016, allocations: 1.12 MB / 0.9344 GB, free: 2.941 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001345/0.703, allocations: 0.8555 MB / 0.9352 GB, free: 2.074 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001319/0.7031, allocations: 309.1 kB / 0.9355 GB, free: 1.77 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003488/0.7066, allocations: 2.16 MB / 0.9376 GB, free: 15.6 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004778/0.7114, allocations: 3.704 MB / 0.9412 GB, free: 11.2 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008753/0.7202, allocations: 6.316 MB / 0.9474 GB, free: 4.18 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.881e-05/0.7202, allocations: 16 kB / 0.9474 GB, free: 4.164 MB / 0.6856 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01106/0.7313, allocations: 6.779 MB / 0.954 GB, free: 13.33 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 8.14e-05/0.7314, allocations: 57.69 kB / 0.9541 GB, free: 13.27 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.304e-05/0.7314, allocations: 48 kB / 0.9541 GB, free: 13.22 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001002/0.7324, allocations: 436.9 kB / 0.9545 GB, free: 12.79 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003609/0.7361, allocations: 1.002 MB / 0.9555 GB, free: 11.79 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006488/0.7426, allocations: 5.7 MB / 0.9611 GB, free: 5.82 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003866/0.7464, allocations: 283.5 kB / 0.9614 GB, free: 5.543 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004096/0.7469, allocations: 216 kB / 0.9616 GB, free: 5.332 MB / 0.7012 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.003952/0.7508, allocations: 2.489 MB / 0.964 GB, free: 2.832 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001298/0.7521, allocations: 0.5287 MB / 0.9645 GB, free: 2.297 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009182/0.7613, allocations: 5.266 MB / 0.9697 GB, free: 12.98 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.178e-05/0.7614, allocations: 32 kB / 0.9697 GB, free: 12.95 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.276e-05/0.7614, allocations: 7.984 kB / 0.9697 GB, free: 12.95 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006977/0.7684, allocations: 4.525 MB / 0.9741 GB, free: 8.316 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0203/0.7887, allocations: 12.05 MB / 0.9859 GB, free: 12.17 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-05/0.7887, allocations: 4 kB / 0.9859 GB, free: 12.16 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002785/0.7915, allocations: 0.6438 MB / 0.9865 GB, free: 11.52 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008191/0.7923, allocations: 371.4 kB / 0.9869 GB, free: 11.15 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002298/0.7926, allocations: 87.95 kB / 0.987 GB, free: 11.07 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006181/0.7988, allocations: 5.617 MB / 0.9924 GB, free: 5.18 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.7988, allocations: 0 / 0.9924 GB, free: 5.18 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01197/0.8107, allocations: 7.761 MB / 1 GB, free: 13.32 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00238/0.8131, allocations: 1.155 MB / 1.001 GB, free: 12.14 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006698/0.8138, allocations: 71.92 kB / 1.001 GB, free: 12.07 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002573/0.8164, allocations: 187.9 kB / 1.001 GB, free: 11.89 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004172/0.8168, allocations: 202.2 kB / 1.002 GB, free: 11.69 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002848/0.8171, allocations: 143.9 kB / 1.002 GB, free: 11.55 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.005589/0.8227, allocations: 3.955 MB / 1.006 GB, free: 7.617 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.6e-07/0.8227, allocations: 3.938 kB / 1.006 GB, free: 7.613 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.004745/0.8275, allocations: 2.007 MB / 1.008 GB, free: 5.602 MB / 0.7481 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.01289/0.8404, allocations: 8.722 MB / 1.016 GB, free: 12.8 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.02124/0.8616, allocations: 11.64 MB / 1.027 GB, free: 1.117 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 5.68e-06/0.8616, allocations: 4 kB / 1.027 GB, free: 1.113 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.003758/0.8654, allocations: 2.541 MB / 1.03 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01285/0.8783, allocations: 3.398 MB / 1.033 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.307/1.185, allocations: 64.75 MB / 1.096 GB, free: 270.6 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003159/1.188, allocations: 4.63 MB / 1.101 GB, free: 269 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.005046/1.193, allocations: 2.077 MB / 1.103 GB, free: 269 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002743/1.196, allocations: 2.673 MB / 1.106 GB, free: 266.9 MB / 0.795 GB Notification: Performance of SimCode: time 6.72e-07/1.196, allocations: 2.312 kB / 1.106 GB, free: 266.9 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.179/1.375, allocations: 165.7 MB / 1.267 GB, free: 112.2 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.76/14.13, allocations: 18.5 kB / 1.267 GB, free: 112.2 MB / 0.795 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Fluid_Storage_Validation_StratifiedLoadingUnloading.fmu > BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe 2>&1)