Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tanEnh.vol.1..T|tanEnh.vol.2..T|tanEnh.vol.3..T|tanEnh.vol.4..T|tanEnh.vol.5..T|tanEnh.vol.6..T|tanEnh.vol.7..T|dHTan.y|dHTanEnh.y|tan.vol.1..T|tan.vol.2..T|tan.vol.3..T|tan.vol.4..T|tan.vol.5..T|tan.vol.6..T|tan.vol.7..T",fileNamePrefix="Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading") translateModel(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tanEnh.vol.1..T|tanEnh.vol.2..T|tanEnh.vol.3..T|tanEnh.vol.4..T|tanEnh.vol.5..T|tanEnh.vol.6..T|tanEnh.vol.7..T|dHTan.y|dHTanEnh.y|tan.vol.1..T|tan.vol.2..T|tan.vol.3..T|tan.vol.4..T|tan.vol.5..T|tan.vol.6..T|tan.vol.7..T",fileNamePrefix="Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.402/2.402, allocations: 390.5 MB / 398 MB, free: 10.98 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.001044/0.001044, allocations: 196.4 kB / 491.2 MB, free: 1.59 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.517/1.517, allocations: 221.5 MB / 0.7868 GB, free: 13.34 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.000861/0.0008608, allocations: 95.89 kB / 0.9269 GB, free: 13.84 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.374e-05/1.405e-05, allocations: 0 / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2923/0.2923, allocations: 143 MB / 1.212 GB, free: 39.53 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.235/1.527, allocations: 419.3 MB / 1.622 GB, free: 11.57 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002984/1.528, allocations: 85.45 kB / 1.622 GB, free: 11.53 MB / 1.042 GB Notification: Performance of FrontEnd - DAE generated: time 8.77/10.3, allocations: 2.241 GB / 3.863 GB, free: 79.27 MB / 1.167 GB Notification: Performance of FrontEnd: time 2.134e-06/10.3, allocations: 0 / 3.863 GB, free: 79.27 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.001175/10.3, allocations: 191.8 kB / 3.863 GB, free: 79.09 MB / 1.167 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.02008/10.32, allocations: 6.147 MB / 3.87 GB, free: 72.86 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.529e-05/10.32, allocations: 12.03 kB / 3.87 GB, free: 72.85 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005871/10.32, allocations: 0.846 MB / 3.87 GB, free: 71.99 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01893/10.34, allocations: 7.923 MB / 3.878 GB, free: 64 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004081/10.34, allocations: 196 kB / 3.878 GB, free: 63.81 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002943/10.35, allocations: 359.9 kB / 3.879 GB, free: 63.46 MB / 1.167 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01717/10.36, allocations: 6.314 MB / 3.885 GB, free: 57.14 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02781/10.39, allocations: 7.44 MB / 3.892 GB, free: 49.38 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004305/10.39, allocations: 15.88 kB / 3.892 GB, free: 49.36 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002494/10.4, allocations: 12 kB / 3.892 GB, free: 49.35 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002276/10.4, allocations: 247.5 kB / 3.892 GB, free: 49.11 MB / 1.167 GB Warning: The model contains alias variables with conflicting start and/or 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.05648/10.45, allocations: 33.05 MB / 3.925 GB, free: 14.44 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006627/10.46, allocations: 4.004 MB / 3.928 GB, free: 10.45 MB / 1.167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004482/10.46, allocations: 3.096 MB / 3.932 GB, free: 7.348 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001249/10.46, allocations: 0.9583 MB / 3.932 GB, free: 6.203 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004257/10.47, allocations: 2.183 MB / 3.935 GB, free: 3.988 MB / 1.167 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003846/10.47, allocations: 356.5 kB / 3.935 GB, free: 3.637 MB / 1.167 GB Notification: Performance of pre-optimization done (n=317): time 1.11e-05/10.47, allocations: 0 / 3.935 GB, free: 3.637 MB / 1.167 GB Notification: Performance of matching and sorting (n=317): time 0.9148/11.39, allocations: 4.532 MB / 3.939 GB, free: 178.4 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.165e-05/11.39, allocations: 85.08 kB / 3.939 GB, free: 178.3 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008946/11.4, allocations: 4.321 MB / 3.944 GB, free: 178.1 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.001035/11.4, allocations: 32.11 kB / 3.944 GB, free: 178 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.003553/11.4, allocations: 3.161 MB / 3.947 GB, free: 177.4 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.001948/11.4, allocations: 1.079 MB / 3.948 GB, free: 176.9 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002368/11.4, allocations: 0.9688 kB / 3.948 GB, free: 176.9 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0003038/11.4, allocations: 494.1 kB / 3.948 GB, free: 176.6 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003196/11.41, allocations: 1.96 MB / 3.95 GB, free: 176.6 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0037/11.41, allocations: 3.464 MB / 3.954 GB, free: 174.7 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005132/11.42, allocations: 2.952 MB / 3.956 GB, free: 174.7 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.016e-05/11.42, allocations: 15.56 kB / 3.956 GB, free: 174.7 MB / 1.167 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01286/11.43, allocations: 6.23 MB / 3.963 GB, free: 174.3 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 8.592e-05/11.43, allocations: 58.53 kB / 3.963 GB, free: 174.3 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.973e-05/11.43, allocations: 47.84 kB / 3.963 GB, free: 174.3 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009927/11.43, allocations: 424.1 kB / 3.963 GB, free: 174.3 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004266/11.43, allocations: 1.039 MB / 3.964 GB, free: 174.3 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006415/11.44, allocations: 5.14 MB / 3.969 GB, free: 171.7 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006623/11.45, allocations: 385.7 kB / 3.969 GB, free: 171.7 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001183/11.45, allocations: 216 kB / 3.97 GB, free: 171.7 MB / 1.167 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 () * 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.00192/11.45, allocations: 252 kB / 3.97 GB, free: 171.5 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002373/11.45, allocations: 479.5 kB / 3.97 GB, free: 171.3 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01364/11.47, allocations: 5.008 MB / 3.975 GB, free: 171.1 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.312e-05/11.47, allocations: 32.53 kB / 3.975 GB, free: 171.1 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.583e-05/11.47, allocations: 4.469 kB / 3.975 GB, free: 171.1 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01049/11.48, allocations: 4.417 MB / 3.98 GB, free: 170.6 MB / 1.167 GB Warning: The model contains alias variables with conflicting start and/or 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.02848/11.51, allocations: 11.13 MB / 3.99 GB, free: 169.8 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.369e-05/11.51, allocations: 3.906 kB / 3.99 GB, free: 169.8 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00294/11.51, allocations: 0.6256 MB / 3.991 GB, free: 169.8 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008327/11.51, allocations: 364.7 kB / 3.991 GB, free: 169.8 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004625/11.51, allocations: 41.64 kB / 3.991 GB, free: 169.8 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005103/11.52, allocations: 5.042 MB / 3.996 GB, free: 167.2 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.743e-06/11.52, allocations: 3.141 kB / 3.996 GB, free: 167.2 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01589/11.53, allocations: 7.446 MB / 4.004 GB, free: 166.5 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005859/11.54, allocations: 1.204 MB / 4.005 GB, free: 166.1 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002642/11.54, allocations: 14.73 kB / 4.005 GB, free: 166.1 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007227/11.55, allocations: 357.7 kB / 4.005 GB, free: 166.1 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007538/11.55, allocations: 205.3 kB / 4.005 GB, free: 166.1 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008539/11.55, allocations: 140.1 kB / 4.006 GB, free: 166.1 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.01022/11.56, allocations: 3.27 MB / 4.009 GB, free: 165.9 MB / 1.167 GB Notification: Performance of sort global known variables: time 5.91e-07/11.56, allocations: 0 / 4.009 GB, free: 165.9 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.01543/11.57, allocations: 2.022 MB / 4.011 GB, free: 165.8 MB / 1.167 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) * 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.003425/11.58, allocations: 0.7897 MB / 4.011 GB, free: 165.6 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.01225/11.59, allocations: 4.948 MB / 4.016 GB, free: 165.3 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 1.551e-05/11.59, allocations: 0 / 4.016 GB, free: 165.3 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.005421/11.6, allocations: 2.346 MB / 4.019 GB, free: 165.1 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01983/11.62, allocations: 2.49 MB / 4.021 GB, free: 165 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03937/11.65, allocations: 11.32 MB / 4.032 GB, free: 162.9 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01201/11.67, allocations: 4.744 MB / 4.037 GB, free: 162.1 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.0151/11.68, allocations: 1.892 MB / 4.039 GB, free: 162 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003726/11.69, allocations: 439.4 kB / 4.039 GB, free: 162 MB / 1.167 GB Notification: Performance of SimCode: time 1.583e-06/11.69, allocations: 0 / 4.039 GB, free: 162 MB / 1.167 GB Notification: Performance of Templates: time 0.2247/11.91, allocations: 93.28 MB / 4.13 GB, free: 157.7 MB / 1.167 GB make -j1 -f Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.makefile (rm -f Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe >> ../files/Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.sim & ./Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Storage_Validation_StratifiedLoadingUnloading.csv","../files/Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches