Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading,fileNamePrefix="Buildings_9_Buildings_Fluid_Storage_Validation_StratifiedLoadingUnloading",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading,fileNamePrefix="Buildings_9_Buildings_Fluid_Storage_Validation_StratifiedLoadingUnloading",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.273/2.273, allocations: 390.3 MB / 405.3 MB, free: 13.52 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001122/0.001122, allocations: 174.9 kB / 498.1 MB, free: 5.758 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.647/1.647, allocations: 223.2 MB / 0.7948 GB, free: 18.01 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008766/0.0008765, allocations: 107.9 kB / 0.9346 GB, free: 6.281 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.000363/0.000363, allocations: 6.938 kB / 1.084 GB, free: 221.1 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3145/0.3149, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.044/1.359, allocations: 419.2 MB / 1.632 GB, free: 8.961 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003583/1.36, allocations: 90.02 kB / 1.632 GB, free: 8.914 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 7.617/8.976, allocations: 2.258 GB / 3.891 GB, free: 231 MB / 1.182 GB Notification: Performance of FrontEnd: time 3.136e-06/8.976, allocations: 0 / 3.891 GB, free: 231 MB / 1.182 GB Notification: Performance of Transformations before backend: time 0.001415/8.978, allocations: 195.2 kB / 3.891 GB, free: 230.9 MB / 1.182 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.02622/9.004, allocations: 7.28 MB / 3.898 GB, free: 223.6 MB / 1.182 GB Notification: Performance of prepare preOptimizeDAE: time 6.05e-05/9.004, allocations: 12.03 kB / 3.898 GB, free: 223.6 MB / 1.182 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005264/9.009, allocations: 0.8381 MB / 3.899 GB, free: 222.8 MB / 1.182 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005365/9.015, allocations: 0.8524 MB / 3.9 GB, free: 221.9 MB / 1.182 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02047/9.035, allocations: 7.959 MB / 3.907 GB, free: 214 MB / 1.182 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000628/9.036, allocations: 456.2 kB / 3.908 GB, free: 213.6 MB / 1.182 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003661/9.04, allocations: 0.5958 MB / 3.909 GB, free: 213 MB / 1.182 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02666/9.066, allocations: 8.453 MB / 3.917 GB, free: 204.2 MB / 1.182 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004102/9.067, allocations: 15.88 kB / 3.917 GB, free: 204.2 MB / 1.182 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0025/9.069, allocations: 261.5 kB / 3.917 GB, free: 204 MB / 1.182 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002373/9.069, allocations: 243.5 kB / 3.917 GB, free: 203.7 MB / 1.182 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0166/9.086, allocations: 6.894 MB / 3.924 GB, free: 196.8 MB / 1.182 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.06202/9.148, allocations: 34.24 MB / 3.957 GB, free: 161.4 MB / 1.182 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007438/9.156, allocations: 4.267 MB / 3.962 GB, free: 157.1 MB / 1.182 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001291/9.157, allocations: 0.9527 MB / 3.963 GB, free: 156 MB / 1.182 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004877/9.162, allocations: 2.363 MB / 3.965 GB, free: 153.6 MB / 1.182 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.004224/9.166, allocations: 475.4 kB / 3.965 GB, free: 153.2 MB / 1.182 GB Notification: Performance of pre-optimization done (n=317): time 1.837e-05/9.166, allocations: 0 / 3.965 GB, free: 153.2 MB / 1.182 GB Notification: Performance of matching and sorting (n=317): time 0.01599/9.182, allocations: 7.079 MB / 3.972 GB, free: 146 MB / 1.182 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.945e-05/9.182, allocations: 85.91 kB / 3.972 GB, free: 145.9 MB / 1.182 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01145/9.194, allocations: 5.266 MB / 3.977 GB, free: 140.6 MB / 1.182 GB Notification: Performance of collectPreVariables (initialization): time 0.001067/9.195, allocations: 93.7 kB / 3.978 GB, free: 140.5 MB / 1.182 GB Notification: Performance of collectInitialEqns (initialization): time 0.003961/9.199, allocations: 3.182 MB / 3.981 GB, free: 137.3 MB / 1.182 GB Notification: Performance of collectInitialBindings (initialization): time 0.001845/9.201, allocations: 1.114 MB / 3.982 GB, free: 136.2 MB / 1.182 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008541/9.202, allocations: 92 kB / 3.982 GB, free: 136.1 MB / 1.182 GB Notification: Performance of setup shared object (initialization): time 0.0004214/9.202, allocations: 495.5 kB / 3.982 GB, free: 135.7 MB / 1.182 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003794/9.206, allocations: 2.124 MB / 3.984 GB, free: 133.5 MB / 1.182 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004861/9.211, allocations: 3.664 MB / 3.988 GB, free: 129.2 MB / 1.182 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005579/9.216, allocations: 2.892 MB / 3.991 GB, free: 126.2 MB / 1.182 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.999e-05/9.216, allocations: 12 kB / 3.991 GB, free: 126.2 MB / 1.182 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01631/9.233, allocations: 6.705 MB / 3.997 GB, free: 119.5 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 9.151e-05/9.233, allocations: 53.7 kB / 3.997 GB, free: 119.4 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.739e-05/9.233, allocations: 48.88 kB / 3.997 GB, free: 119.4 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009779/9.234, allocations: 439.2 kB / 3.998 GB, free: 118.9 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004507/9.239, allocations: 1.033 MB / 3.999 GB, free: 117.9 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005517/9.244, allocations: 5.401 MB / 4.004 GB, free: 112.2 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007147/9.251, allocations: 474.7 kB / 4.005 GB, free: 111.8 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001259/9.253, allocations: 223.5 kB / 4.005 GB, free: 111.6 MB / 1.182 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 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006426/9.259, allocations: 2.483 MB / 4.007 GB, free: 109.1 MB / 1.182 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002261/9.261, allocations: 0.5286 MB / 4.008 GB, free: 108.5 MB / 1.182 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01112/9.272, allocations: 5.228 MB / 4.013 GB, free: 103.2 MB / 1.182 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.123e-05/9.273, allocations: 32 kB / 4.013 GB, free: 103.2 MB / 1.182 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.967e-05/9.273, allocations: 4 kB / 4.013 GB, free: 103.2 MB / 1.182 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006714/9.279, allocations: 4.501 MB / 4.017 GB, free: 98.61 MB / 1.182 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 postOpt removeSimpleEquations (simulation): time 0.03114/9.31, allocations: 11.83 MB / 4.029 GB, free: 86.69 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.71e-05/9.311, allocations: 4 kB / 4.029 GB, free: 86.68 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003183/9.314, allocations: 0.6204 MB / 4.029 GB, free: 86.06 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008548/9.315, allocations: 371.9 kB / 4.03 GB, free: 85.7 MB / 1.182 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006583/9.315, allocations: 79.95 kB / 4.03 GB, free: 85.62 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004585/9.32, allocations: 5.321 MB / 4.035 GB, free: 80.04 MB / 1.182 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/9.32, allocations: 0 / 4.035 GB, free: 80.04 MB / 1.182 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01347/9.333, allocations: 7.74 MB / 4.043 GB, free: 72.19 MB / 1.182 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005142/9.339, allocations: 1.263 MB / 4.044 GB, free: 70.9 MB / 1.182 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002388/9.341, allocations: 68.73 kB / 4.044 GB, free: 70.83 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005993/9.347, allocations: 419.2 kB / 4.044 GB, free: 70.42 MB / 1.182 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008118/9.348, allocations: 198.2 kB / 4.044 GB, free: 70.23 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008231/9.349, allocations: 139.9 kB / 4.045 GB, free: 70.09 MB / 1.182 GB Notification: Performance of sorting global known variables: time 0.008653/9.357, allocations: 4.103 MB / 4.049 GB, free: 66.01 MB / 1.182 GB Notification: Performance of sort global known variables: time 6.41e-07/9.357, allocations: 4 kB / 4.049 GB, free: 66 MB / 1.182 GB Notification: Performance of remove unused functions: time 0.0103/9.368, allocations: 2.058 MB / 4.051 GB, free: 63.94 MB / 1.182 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0169/9.385, allocations: 9.224 MB / 4.06 GB, free: 54.71 MB / 1.182 GB Notification: Performance of simCode: created initialization part: time 0.008656/9.393, allocations: 5.351 MB / 4.065 GB, free: 49.3 MB / 1.182 GB Notification: Performance of simCode: created event and clocks part: time 9.067e-06/9.393, allocations: 3.938 kB / 4.065 GB, free: 49.3 MB / 1.182 GB Notification: Performance of simCode: created simulation system equations: time 0.00395/9.397, allocations: 2.494 MB / 4.067 GB, free: 46.78 MB / 1.182 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0157/9.413, allocations: 3.176 MB / 4.07 GB, free: 43.74 MB / 1.182 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7636/10.18, allocations: 84.84 MB / 4.153 GB, free: 225.6 MB / 1.182 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006602/10.18, allocations: 4.745 MB / 4.158 GB, free: 224.8 MB / 1.182 GB Notification: Performance of simCode: alias equations: time 0.008677/10.19, allocations: 2.153 MB / 4.16 GB, free: 224.7 MB / 1.182 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005377/10.2, allocations: 2.676 MB / 4.163 GB, free: 224.7 MB / 1.182 GB Notification: Performance of SimCode: time 1.132e-06/10.2, allocations: 0 / 4.163 GB, free: 224.7 MB / 1.182 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2317/10.43, allocations: 176 MB / 4.335 GB, free: 178 MB / 1.182 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001458/10.43, allocations: 251.6 kB / 4.335 GB, free: 177.7 MB / 1.182 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.827/17.26, allocations: 0 / 4.335 GB, free: 177.7 MB / 1.182 GB (rm -f Buildings_9_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe ; mkfifo Buildings_9_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe >> ../files/Buildings_9_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Storage_Validation_StratifiedLoadingUnloading_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Storage_Validation_StratifiedLoadingUnloading.fmu > Buildings_9_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading_res.mat does not exist to compare? outputFormat=mat