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/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/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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: 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_9_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_9_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001059/0.001059, allocations: 99.55 kB / 15.05 MB, free: 1.105 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.0009392/0.0009392, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.433/1.433, allocations: 223.2 MB / 239.9 MB, free: 5.246 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.54/2.54, allocations: 390.3 MB / 0.6653 GB, free: 2.922 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004728/0.0004728, allocations: 8 kB / 0.8145 GB, free: 14.27 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8535/0.854, allocations: 142.3 MB / 0.9535 GB, free: 8.109 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.04973/0.9037, allocations: 46.84 MB / 0.9992 GB, free: 1.227 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.02372/0.9275, allocations: 15.54 MB / 1.014 GB, free: 1.648 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004843/0.9324, allocations: 63.56 kB / 1.014 GB, free: 1.586 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.004395/0.9368, allocations: 0.8084 MB / 1.015 GB, free: 0.7734 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0106/0.9475, allocations: 2.162 MB / 1.017 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.00683/0.9543, allocations: 1.58 MB / 1.019 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.01888/0.9732, allocations: 11.44 MB / 1.03 GB, free: 1.598 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01303/0.9863, allocations: 7.154 MB / 1.037 GB, free: 10.37 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01215/0.9985, allocations: 4.473 MB / 1.041 GB, free: 5.883 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.009639/1.008, allocations: 3.851 MB / 1.045 GB, free: 2.016 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.002789/1.011, allocations: 348 kB / 1.046 GB, free: 1.676 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006978/1.018, allocations: 0.843 MB / 1.046 GB, free: 0.832 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.003983/1.022, allocations: 1.46 MB / 1.048 GB, free: 15.37 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.004869/1.027, allocations: 1.611 MB / 1.049 GB, free: 13.75 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.01458/1.042, allocations: 10.28 MB / 1.059 GB, free: 3.445 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/1.042, allocations: 0 / 1.059 GB, free: 3.445 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.733e-06/1.042, allocations: 0 / 1.059 GB, free: 3.445 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 0.0005328/1.042, allocations: 4 kB / 1.059 GB, free: 3.441 MB / 0.8106 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.01936/1.061, allocations: 6.944 MB / 1.066 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.256e-05/1.062, allocations: 12.03 kB / 1.066 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004579/1.066, allocations: 0.8577 MB / 1.067 GB, free: 11.53 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01465/1.081, allocations: 6.024 MB / 1.073 GB, free: 5.445 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005264/1.081, allocations: 460.2 kB / 1.073 GB, free: 4.992 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002083/1.083, allocations: 0.5975 MB / 1.074 GB, free: 4.395 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02023/1.104, allocations: 8.931 MB / 1.083 GB, free: 11.14 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001787/1.104, allocations: 19.78 kB / 1.083 GB, free: 11.12 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009648/1.105, allocations: 268 kB / 1.083 GB, free: 10.86 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001902/1.105, allocations: 179.9 kB / 1.083 GB, free: 10.68 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01651/1.122, allocations: 7.418 MB / 1.09 GB, free: 3.258 MB / 0.8419 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.0644/1.186, allocations: 36.22 MB / 1.126 GB, free: 12.97 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008151/1.194, allocations: 4.346 MB / 1.13 GB, free: 8.629 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00151/1.196, allocations: 0.9895 MB / 1.131 GB, free: 7.453 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004936/1.201, allocations: 2.39 MB / 1.133 GB, free: 5.027 MB / 0.8887 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003717/1.204, allocations: 471.4 kB / 1.134 GB, free: 4.562 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=317): time 1.282e-05/1.205, allocations: 0 / 1.134 GB, free: 4.562 MB / 0.8887 GB Notification: Performance of matching and sorting (n=317): time 0.01519/1.22, allocations: 7.149 MB / 1.141 GB, free: 13.32 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.172e-05/1.22, allocations: 89.91 kB / 1.141 GB, free: 13.22 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01272/1.233, allocations: 5.834 MB / 1.146 GB, free: 7.406 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 0.0007793/1.233, allocations: 85.7 kB / 1.147 GB, free: 7.316 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.004104/1.237, allocations: 3.196 MB / 1.15 GB, free: 4.086 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.00185/1.239, allocations: 1.117 MB / 1.151 GB, free: 2.953 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006669/1.24, allocations: 88 kB / 1.151 GB, free: 2.867 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0004867/1.241, allocations: 495.6 kB / 1.151 GB, free: 2.375 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003692/1.244, allocations: 2.163 MB / 1.153 GB, free: 208 kB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004301/1.249, allocations: 3.674 MB / 1.157 GB, free: 11.83 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004354/1.253, allocations: 2.931 MB / 1.16 GB, free: 8.879 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-05/1.253, allocations: 12 kB / 1.16 GB, free: 8.867 MB / 0.92 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01116/1.264, allocations: 6.764 MB / 1.167 GB, free: 2.051 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 7.599e-05/1.264, allocations: 58.78 kB / 1.167 GB, free: 1.988 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.455e-05/1.264, allocations: 48 kB / 1.167 GB, free: 1.941 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009929/1.265, allocations: 443.4 kB / 1.167 GB, free: 1.504 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003744/1.269, allocations: 1.061 MB / 1.168 GB, free: 452 kB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006136/1.275, allocations: 5.318 MB / 1.173 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005929/1.281, allocations: 482.7 kB / 1.174 GB, free: 10.38 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008679/1.282, allocations: 220 kB / 1.174 GB, free: 10.17 MB / 0.9356 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.005626/1.288, allocations: 2.49 MB / 1.176 GB, free: 7.664 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002022/1.29, allocations: 0.521 MB / 1.177 GB, free: 7.137 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009834/1.3, allocations: 5.282 MB / 1.182 GB, free: 1.797 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.593e-05/1.3, allocations: 36 kB / 1.182 GB, free: 1.762 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.171e-05/1.3, allocations: 4 kB / 1.182 GB, free: 1.758 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006733/1.306, allocations: 4.563 MB / 1.187 GB, free: 13.09 MB / 0.9512 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.02515/1.332, allocations: 12.17 MB / 1.198 GB, free: 0.7031 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-05/1.332, allocations: 0 / 1.198 GB, free: 0.7031 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002623/1.334, allocations: 0.6243 MB / 1.199 GB, free: 80 kB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008857/1.335, allocations: 371.9 kB / 1.199 GB, free: 15.71 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002813/1.335, allocations: 83.91 kB / 1.199 GB, free: 15.63 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005651/1.341, allocations: 5.242 MB / 1.205 GB, free: 10.12 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.824e-06/1.341, allocations: 8 kB / 1.205 GB, free: 10.11 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01229/1.353, allocations: 7.767 MB / 1.212 GB, free: 2.234 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006524/1.36, allocations: 1.299 MB / 1.213 GB, free: 0.9102 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002969/1.363, allocations: 72.36 kB / 1.214 GB, free: 0.8398 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005994/1.369, allocations: 446.2 kB / 1.214 GB, free: 416 kB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005737/1.37, allocations: 198.2 kB / 1.214 GB, free: 216 kB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005406/1.37, allocations: 139.9 kB / 1.214 GB, free: 76 kB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.008829/1.379, allocations: 4.099 MB / 1.218 GB, free: 12 MB / 0.9825 GB Notification: Performance of sort global known variables: time 3.51e-07/1.379, allocations: 0 / 1.218 GB, free: 12 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.00907/1.388, allocations: 1.999 MB / 1.22 GB, free: 9.992 MB / 0.9825 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.001975/1.39, allocations: 494.7 kB / 1.221 GB, free: 9.512 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.01092/1.401, allocations: 5.391 MB / 1.226 GB, free: 4.07 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 8.977e-06/1.401, allocations: 8 kB / 1.226 GB, free: 4.062 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.004874/1.406, allocations: 2.513 MB / 1.228 GB, free: 1.52 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01973/1.426, allocations: 3.171 MB / 1.232 GB, free: 14.41 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03529/1.461, allocations: 16.12 MB / 1.247 GB, free: 14.23 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007586/1.469, allocations: 4.748 MB / 1.252 GB, free: 9.445 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.00889/1.478, allocations: 2.06 MB / 1.254 GB, free: 7.391 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002582/1.48, allocations: 463.2 kB / 1.254 GB, free: 6.938 MB / 1.014 GB Notification: Performance of SimCode: time 1.423e-06/1.48, allocations: 3.938 kB / 1.254 GB, free: 6.934 MB / 1.014 GB Notification: Performance of Templates: time 1.252/2.732, allocations: 113.7 MB / 1.365 GB, free: 195.2 MB / 1.014 GB make -j1 -f Buildings_9_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.makefile (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 & ./Buildings_9_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Storage_Validation_StratifiedLoadingUnloading.csv","../files/Buildings_9_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches