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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001131/0.001131, allocations: 107.5 kB / 15.99 MB, free: 6.355 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.001133/0.001134, allocations: 200.6 kB / 16.91 MB, free: 6.195 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.376/1.376, allocations: 222.9 MB / 240.6 MB, free: 13.74 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.286/2.286, allocations: 390.3 MB / 0.665 GB, free: 0.9102 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 64.8 kB / 0.8127 GB, free: 32.37 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.334/0.3353, allocations: 140.4 MB / 0.9498 GB, free: 9.238 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.06139/0.3968, allocations: 55.54 MB / 1.004 GB, free: 1.5 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.02475/0.4216, allocations: 17.8 MB / 1.021 GB, free: 15.65 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0035/0.4251, allocations: 67.62 kB / 1.021 GB, free: 15.58 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.003064/0.4283, allocations: 0.7576 MB / 1.022 GB, free: 14.82 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.008766/0.437, allocations: 2.317 MB / 1.024 GB, free: 12.49 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.004366/0.4414, allocations: 1.399 MB / 1.026 GB, free: 11.1 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.02394/0.4654, allocations: 21.35 MB / 1.047 GB, free: 5.699 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01561/0.481, allocations: 10.58 MB / 1.057 GB, free: 11 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01753/0.4986, allocations: 7.219 MB / 1.064 GB, free: 3.801 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01155/0.5102, allocations: 6.545 MB / 1.07 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.002955/0.5132, allocations: 0.9258 MB / 1.071 GB, free: 12.3 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007551/0.5208, allocations: 1.702 MB / 1.073 GB, free: 10.6 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.003819/0.5246, allocations: 2.322 MB / 1.075 GB, free: 8.273 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.01005/0.5347, allocations: 4.699 MB / 1.08 GB, free: 3.555 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.5339/1.069, allocations: 10.72 MB / 1.09 GB, free: 46.41 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 8.997e-06/1.069, allocations: 1.125 kB / 1.09 GB, free: 46.41 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.833e-06/1.069, allocations: 0 / 1.09 GB, free: 46.41 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 0.0005133/1.069, allocations: 1.031 kB / 1.09 GB, free: 46.41 MB / 0.8575 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.02967/1.099, allocations: 8.497 MB / 1.099 GB, free: 43.47 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.905e-05/1.099, allocations: 9.344 kB / 1.099 GB, free: 43.47 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006077/1.105, allocations: 0.8554 MB / 1.099 GB, free: 43.07 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01647/1.121, allocations: 6.612 MB / 1.106 GB, free: 42.11 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005696/1.122, allocations: 459.9 kB / 1.106 GB, free: 42.09 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003095/1.125, allocations: 0.6045 MB / 1.107 GB, free: 42.08 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02678/1.152, allocations: 9.023 MB / 1.116 GB, free: 41.11 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002656/1.152, allocations: 19.88 kB / 1.116 GB, free: 41.11 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001835/1.154, allocations: 259.1 kB / 1.116 GB, free: 41.11 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002213/1.154, allocations: 180.6 kB / 1.116 GB, free: 41.11 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01819/1.173, allocations: 7.449 MB / 1.123 GB, free: 41.06 MB / 0.8575 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.05493/1.227, allocations: 35.91 MB / 1.159 GB, free: 16.67 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005889/1.233, allocations: 4.278 MB / 1.163 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004133/1.238, allocations: 3.314 MB / 1.166 GB, free: 12.87 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00108/1.239, allocations: 0.9595 MB / 1.167 GB, free: 11.86 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003609/1.242, allocations: 2.391 MB / 1.169 GB, free: 10.46 MB / 0.8575 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003637/1.246, allocations: 408.4 kB / 1.17 GB, free: 10.18 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=317): time 1.049e-05/1.246, allocations: 2.719 kB / 1.17 GB, free: 10.18 MB / 0.8575 GB Notification: Performance of matching and sorting (n=317): time 0.01202/1.258, allocations: 7.133 MB / 1.177 GB, free: 6.43 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.658e-05/1.258, allocations: 90.23 kB / 1.177 GB, free: 6.359 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007983/1.266, allocations: 5.463 MB / 1.182 GB, free: 3.59 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 0.000956/1.267, allocations: 89.14 kB / 1.182 GB, free: 3.516 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.002411/1.269, allocations: 3.198 MB / 1.185 GB, free: 0.7578 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.001559/1.271, allocations: 1.117 MB / 1.186 GB, free: 15.81 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001326/1.272, allocations: 0.8582 MB / 1.187 GB, free: 15.33 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 9.264e-05/1.273, allocations: 301.1 kB / 1.187 GB, free: 15.03 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00315/1.276, allocations: 2.163 MB / 1.19 GB, free: 13.91 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004203/1.28, allocations: 3.697 MB / 1.193 GB, free: 10.16 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008222/1.288, allocations: 6.325 MB / 1.199 GB, free: 3.324 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.28e-05/1.288, allocations: 12 kB / 1.199 GB, free: 3.312 MB / 0.8731 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01174/1.3, allocations: 6.773 MB / 1.206 GB, free: 12.79 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 7.944e-05/1.3, allocations: 49.7 kB / 1.206 GB, free: 12.73 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.019e-05/1.3, allocations: 52.84 kB / 1.206 GB, free: 12.68 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001049/1.301, allocations: 437.4 kB / 1.206 GB, free: 12.25 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003722/1.305, allocations: 0.999 MB / 1.207 GB, free: 11.32 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00613/1.311, allocations: 5.707 MB / 1.213 GB, free: 5.398 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006455/1.318, allocations: 462.8 kB / 1.213 GB, free: 4.945 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009203/1.318, allocations: 220 kB / 1.214 GB, free: 4.73 MB / 0.8887 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.005851/1.324, allocations: 2.484 MB / 1.216 GB, free: 2.309 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00241/1.327, allocations: 0.5261 MB / 1.217 GB, free: 1.777 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01016/1.337, allocations: 5.276 MB / 1.222 GB, free: 12.46 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.367e-05/1.337, allocations: 36 kB / 1.222 GB, free: 12.43 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.078e-05/1.337, allocations: 4.047 kB / 1.222 GB, free: 12.43 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006677/1.344, allocations: 4.534 MB / 1.226 GB, free: 7.805 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02867/1.372, allocations: 11.96 MB / 1.238 GB, free: 11.78 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-05/1.372, allocations: 0 / 1.238 GB, free: 11.78 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003096/1.376, allocations: 0.6441 MB / 1.239 GB, free: 11.16 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009911/1.377, allocations: 370.5 kB / 1.239 GB, free: 10.79 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000477/1.377, allocations: 83.95 kB / 1.239 GB, free: 10.71 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006043/1.383, allocations: 5.621 MB / 1.244 GB, free: 4.855 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/1.383, allocations: 4 kB / 1.244 GB, free: 4.852 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01374/1.397, allocations: 7.754 MB / 1.252 GB, free: 13.02 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006476/1.403, allocations: 1.143 MB / 1.253 GB, free: 11.85 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002658/1.406, allocations: 71.98 kB / 1.253 GB, free: 11.78 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005706/1.412, allocations: 460.2 kB / 1.254 GB, free: 11.34 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005971/1.412, allocations: 201 kB / 1.254 GB, free: 11.14 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005847/1.413, allocations: 139.9 kB / 1.254 GB, free: 11 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.009387/1.422, allocations: 3.807 MB / 1.258 GB, free: 7.219 MB / 0.9356 GB Notification: Performance of sort global known variables: time 4.81e-07/1.422, allocations: 0 / 1.258 GB, free: 7.219 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.01215/1.435, allocations: 1.987 MB / 1.26 GB, free: 5.227 MB / 0.9356 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.002067/1.437, allocations: 495.8 kB / 1.26 GB, free: 4.797 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.02348/1.46, allocations: 11.63 MB / 1.271 GB, free: 9.301 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.154e-05/1.46, allocations: 4 kB / 1.271 GB, free: 9.297 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.004277/1.465, allocations: 2.534 MB / 1.274 GB, free: 6.793 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0199/1.484, allocations: 3.4 MB / 1.277 GB, free: 3.527 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03509/1.52, allocations: 16.64 MB / 1.294 GB, free: 2.879 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004732/1.524, allocations: 4.545 MB / 1.298 GB, free: 14.3 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002279/1.527, allocations: 492.3 kB / 1.298 GB, free: 13.82 MB / 0.9825 GB Notification: Performance of SimCode: time 8.91e-07/1.527, allocations: 0 / 1.298 GB, free: 13.82 MB / 0.9825 GB Notification: Performance of Templates: time 0.2323/1.759, allocations: 186.1 MB / 1.48 GB, free: 4.477 MB / 1.154 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches