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.004952/0.004952, allocations: 97.62 kB / 15.73 MB, free: 6.055 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.001466/0.001467, allocations: 198.7 kB / 16.68 MB, free: 5.961 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.329/1.329, 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/NcDataReader2 2.5.1-master/package.mo): time 0.002406/0.002406, allocations: 295.9 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.153/1.153, allocations: 178.5 MB / 0.5074 GB, free: 12.71 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002594/0.002594, allocations: 103.8 kB / 0.6943 GB, free: 15.21 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3594/0.362, allocations: 89.12 MB / 0.7813 GB, free: 1.148 MB / 0.545 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.05645/0.4185, allocations: 55.99 MB / 0.836 GB, free: 0.6094 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.02414/0.4427, allocations: 17.96 MB / 0.8535 GB, free: 14.6 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002362/0.4451, allocations: 75.56 kB / 0.8536 GB, free: 14.52 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.002267/0.4474, allocations: 0.8885 MB / 0.8545 GB, free: 13.63 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.006339/0.4538, allocations: 2.507 MB / 0.8569 GB, free: 11.11 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.003446/0.4572, allocations: 1.532 MB / 0.8584 GB, free: 9.586 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.02135/0.4786, allocations: 21.25 MB / 0.8792 GB, free: 4.277 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01301/0.4916, allocations: 10.68 MB / 0.8896 GB, free: 9.48 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01302/0.5047, allocations: 7.159 MB / 0.8966 GB, free: 2.34 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.009872/0.5146, allocations: 6.362 MB / 0.9028 GB, free: 11.95 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 0.002101/0.5167, allocations: 0.9375 MB / 0.9037 GB, free: 11.02 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004969/0.5217, allocations: 1.694 MB / 0.9054 GB, free: 9.32 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 0.002636/0.5243, allocations: 2.333 MB / 0.9077 GB, free: 6.98 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 0.007004/0.5313, allocations: 4.715 MB / 0.9123 GB, free: 2.246 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.0151/0.5464, allocations: 13.23 MB / 0.9252 GB, free: 4.977 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.5465, allocations: 0 / 0.9252 GB, free: 4.977 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.372e-06/0.5465, allocations: 0 / 0.9252 GB, free: 4.977 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 0.0003047/0.5468, allocations: 0 / 0.9252 GB, free: 4.977 MB / 0.6856 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.01765/0.5645, allocations: 8.73 MB / 0.9337 GB, free: 12.14 MB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 3.849e-05/0.5645, allocations: 8.031 kB / 0.9337 GB, free: 12.14 MB / 0.7012 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001333/0.5658, allocations: 0.8422 MB / 0.9345 GB, free: 11.29 MB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002552/0.5684, allocations: 0.9059 MB / 0.9354 GB, free: 10.38 MB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01151/0.5799, allocations: 6.737 MB / 0.942 GB, free: 3.586 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003459/0.5803, allocations: 464.2 kB / 0.9424 GB, free: 3.129 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001004/0.5813, allocations: 0.5937 MB / 0.943 GB, free: 2.535 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01482/0.5961, allocations: 9.032 MB / 0.9518 GB, free: 9.176 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001227/0.5963, allocations: 23.81 kB / 0.9519 GB, free: 9.152 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006375/0.5969, allocations: 264 kB / 0.9521 GB, free: 8.895 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001692/0.5971, allocations: 184 kB / 0.9523 GB, free: 8.715 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01235/0.6095, allocations: 7.449 MB / 0.9596 GB, free: 1.258 MB / 0.7169 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.3576/0.9671, allocations: 36.07 MB / 0.9948 GB, free: 170.5 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006222/0.9733, allocations: 4.281 MB / 0.999 GB, free: 170.4 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004884/0.9782, allocations: 3.302 MB / 1.002 GB, free: 169.4 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001019/0.9793, allocations: 0.9566 MB / 1.003 GB, free: 168.4 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003248/0.9825, allocations: 2.383 MB / 1.005 GB, free: 167.6 MB / 0.7481 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002063/0.9846, allocations: 384.3 kB / 1.006 GB, free: 167.5 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=317): time 6.192e-06/0.9846, allocations: 0 / 1.006 GB, free: 167.5 MB / 0.7481 GB Notification: Performance of matching and sorting (n=317): time 0.01146/0.9961, allocations: 7.157 MB / 1.013 GB, free: 165.2 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.854e-05/0.9962, allocations: 89 kB / 1.013 GB, free: 165.1 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007593/1.004, allocations: 5.669 MB / 1.018 GB, free: 162.3 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 0.0005622/1.004, allocations: 89.48 kB / 1.019 GB, free: 162.2 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.00207/1.006, allocations: 3.276 MB / 1.022 GB, free: 159.8 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.001032/1.007, allocations: 1.169 MB / 1.023 GB, free: 159 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009646/1.008, allocations: 0.8628 MB / 1.024 GB, free: 158.5 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 3.157e-05/1.008, allocations: 301.1 kB / 1.024 GB, free: 158.2 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00265/1.011, allocations: 2.161 MB / 1.026 GB, free: 157.1 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002964/1.014, allocations: 3.698 MB / 1.03 GB, free: 154 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005619/1.02, allocations: 6.32 MB / 1.036 GB, free: 149.5 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-05/1.02, allocations: 14.84 kB / 1.036 GB, free: 149.5 MB / 0.7481 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.008548/1.028, allocations: 6.803 MB / 1.043 GB, free: 145.9 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 4.625e-05/1.028, allocations: 53.7 kB / 1.043 GB, free: 145.8 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.693e-05/1.028, allocations: 52 kB / 1.043 GB, free: 145.8 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008043/1.029, allocations: 437.8 kB / 1.043 GB, free: 145.3 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002967/1.032, allocations: 1.004 MB / 1.044 GB, free: 144.3 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003951/1.036, allocations: 5.701 MB / 1.05 GB, free: 138.4 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003934/1.04, allocations: 287.7 kB / 1.05 GB, free: 138.1 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002789/1.04, allocations: 227.5 kB / 1.05 GB, free: 137.9 MB / 0.7481 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.003142/1.044, allocations: 2.483 MB / 1.053 GB, free: 135.4 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001104/1.045, allocations: 0.5473 MB / 1.053 GB, free: 134.9 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006579/1.051, allocations: 5.267 MB / 1.058 GB, free: 129.6 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.147e-05/1.051, allocations: 36 kB / 1.058 GB, free: 129.5 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.829e-06/1.051, allocations: 4 kB / 1.058 GB, free: 129.5 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004833/1.056, allocations: 4.533 MB / 1.063 GB, free: 124.9 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01562/1.072, allocations: 11.98 MB / 1.074 GB, free: 112.9 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.666e-06/1.072, allocations: 0 / 1.074 GB, free: 112.9 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00239/1.074, allocations: 0.6438 MB / 1.075 GB, free: 112.2 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006652/1.075, allocations: 376.7 kB / 1.075 GB, free: 111.9 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001738/1.075, allocations: 79.95 kB / 1.075 GB, free: 111.8 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003816/1.079, allocations: 5.626 MB / 1.081 GB, free: 105.9 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/1.079, allocations: 4.062 kB / 1.081 GB, free: 105.9 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008684/1.088, allocations: 7.794 MB / 1.089 GB, free: 98.03 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002181/1.09, allocations: 1.183 MB / 1.09 GB, free: 96.82 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006831/1.09, allocations: 63.98 kB / 1.09 GB, free: 96.76 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002431/1.093, allocations: 203 kB / 1.09 GB, free: 96.57 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003409/1.093, allocations: 210.1 kB / 1.09 GB, free: 96.37 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002307/1.094, allocations: 135.9 kB / 1.09 GB, free: 96.23 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.00432/1.098, allocations: 3.963 MB / 1.094 GB, free: 92.29 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.7e-07/1.098, allocations: 0 / 1.094 GB, free: 92.29 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.004348/1.102, allocations: 2.019 MB / 1.096 GB, free: 90.41 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.009064/1.111, allocations: 8.747 MB / 1.105 GB, free: 81.64 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.006056/1.117, allocations: 5.454 MB / 1.11 GB, free: 76.14 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/1.117, allocations: 4 kB / 1.11 GB, free: 76.14 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.002571/1.12, allocations: 2.545 MB / 1.112 GB, free: 73.56 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01195/1.132, allocations: 3.381 MB / 1.116 GB, free: 70.29 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05171/1.184, allocations: 52.56 MB / 1.167 GB, free: 15.63 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002838/1.187, allocations: 4.624 MB / 1.172 GB, free: 10.97 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.004533/1.191, allocations: 2.09 MB / 1.174 GB, free: 8.902 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002767/1.194, allocations: 2.667 MB / 1.176 GB, free: 6.234 MB / 0.7481 GB Notification: Performance of SimCode: time 8.81e-07/1.194, allocations: 0 / 1.176 GB, free: 6.234 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5454/1.739, allocations: 159.9 MB / 1.332 GB, free: 302.7 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.79/21.53, allocations: 6.547 kB / 1.332 GB, free: 302.7 MB / 0.8887 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)