Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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_maint.7.0.x_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_maint.7.0.x_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.415/1.415, allocations: 249.5 MB / 257 MB, free: 6.965 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001027/0.001027, allocations: 168.9 kB / 316.3 MB, free: 3.254 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.553/1.553, allocations: 205.3 MB / 0.5671 GB, free: 15.88 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008138/0.0008138, allocations: 90.48 kB / 0.6714 GB, free: 5.004 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.821e-05/1.791e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.268/0.268, allocations: 106.3 MB / 0.8852 GB, free: 12.3 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.581/1.849, allocations: 399.9 MB / 1.276 GB, free: 327.4 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002815/1.849, allocations: 88.75 kB / 1.276 GB, free: 327.4 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 8.069/9.918, allocations: 2.117 GB / 3.393 GB, free: 133.9 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.585e-06/9.919, allocations: 0 / 3.393 GB, free: 133.9 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.001255/9.92, allocations: 192.9 kB / 3.393 GB, free: 133.9 MB / 0.8855 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.02257/9.942, allocations: 6.114 MB / 3.399 GB, free: 131.7 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.614e-05/9.942, allocations: 7.75 kB / 3.399 GB, free: 131.7 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005848/9.948, allocations: 0.849 MB / 3.4 GB, free: 131.3 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01955/9.968, allocations: 7.684 MB / 3.407 GB, free: 130.5 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003936/9.968, allocations: 198.4 kB / 3.408 GB, free: 130.5 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002748/9.971, allocations: 363.7 kB / 3.408 GB, free: 130.5 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01757/9.989, allocations: 6.371 MB / 3.414 GB, free: 130.5 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02483/10.01, allocations: 7.335 MB / 3.421 GB, free: 129.6 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003034/10.01, allocations: 14.19 kB / 3.421 GB, free: 129.6 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001782/10.02, allocations: 20.34 kB / 3.421 GB, free: 129.6 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001779/10.02, allocations: 174.9 kB / 3.421 GB, free: 129.6 MB / 0.8855 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.06344/10.08, allocations: 32.19 MB / 3.453 GB, free: 112.4 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007969/10.09, allocations: 4.129 MB / 3.457 GB, free: 110.9 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004236/10.09, allocations: 3.112 MB / 3.46 GB, free: 109.8 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001186/10.09, allocations: 0.961 MB / 3.461 GB, free: 108.9 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003437/10.1, allocations: 2.172 MB / 3.463 GB, free: 108.1 MB / 0.8855 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00464/10.1, allocations: 355.8 kB / 3.463 GB, free: 107.9 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=329): time 1.096e-05/10.1, allocations: 2.781 kB / 3.463 GB, free: 107.9 MB / 0.8855 GB Notification: Performance of matching and sorting (n=329): time 0.01262/10.11, allocations: 4.613 MB / 3.468 GB, free: 106.3 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.057e-05/10.11, allocations: 95.89 kB / 3.468 GB, free: 106.2 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01235/10.13, allocations: 4.219 MB / 3.472 GB, free: 104.7 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.001225/10.13, allocations: 29.48 kB / 3.472 GB, free: 104.6 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.003501/10.13, allocations: 3.118 MB / 3.475 GB, free: 102.3 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.001941/10.13, allocations: 1.119 MB / 3.476 GB, free: 101.4 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000268/10.13, allocations: 0 / 3.476 GB, free: 101.4 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0002772/10.13, allocations: 0.4897 MB / 3.477 GB, free: 101 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002778/10.14, allocations: 1.98 MB / 3.479 GB, free: 100.3 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003415/10.14, allocations: 3.438 MB / 3.482 GB, free: 97.71 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004565/10.14, allocations: 3.007 MB / 3.485 GB, free: 96.71 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.646e-05/10.14, allocations: 11.84 kB / 3.485 GB, free: 96.71 MB / 0.8855 GB Notification: Performance of matching and sorting (n=577) (initialization): time 0.01051/10.15, allocations: 6.294 MB / 3.491 GB, free: 93.2 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 6.865e-05/10.16, allocations: 53.31 kB / 3.491 GB, free: 93.14 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.897e-05/10.16, allocations: 51.5 kB / 3.491 GB, free: 93.1 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008292/10.16, allocations: 429.6 kB / 3.492 GB, free: 92.76 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003599/10.16, allocations: 1.045 MB / 3.493 GB, free: 91.86 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004696/10.16, allocations: 5.136 MB / 3.498 GB, free: 87.02 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006458/10.17, allocations: 383.2 kB / 3.498 GB, free: 86.77 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008699/10.17, allocations: 222.7 kB / 3.498 GB, free: 86.56 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 214 * 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 (548): * Single equations (assignments): 545 * 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.000955/10.17, allocations: 243.4 kB / 3.498 GB, free: 86.31 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001498/10.17, allocations: 470.3 kB / 3.499 GB, free: 85.85 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008892/10.18, allocations: 5.116 MB / 3.504 GB, free: 81.66 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.277e-05/10.18, allocations: 34.16 kB / 3.504 GB, free: 81.63 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.188e-05/10.18, allocations: 4 kB / 3.504 GB, free: 81.62 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00607/10.19, allocations: 4.511 MB / 3.508 GB, free: 77.73 MB / 0.8855 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.02153/10.21, allocations: 11.24 MB / 3.519 GB, free: 66.71 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.517e-05/10.21, allocations: 3.812 kB / 3.519 GB, free: 66.71 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002699/10.21, allocations: 0.6443 MB / 3.52 GB, free: 66.07 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007473/10.21, allocations: 361.6 kB / 3.52 GB, free: 65.72 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002234/10.21, allocations: 47.95 kB / 3.52 GB, free: 65.67 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004978/10.22, allocations: 5.059 MB / 3.525 GB, free: 60.39 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.873e-06/10.22, allocations: 3.953 kB / 3.525 GB, free: 60.39 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01317/10.23, allocations: 7.59 MB / 3.533 GB, free: 52.68 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004026/10.24, allocations: 1.186 MB / 3.534 GB, free: 51.47 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001544/10.24, allocations: 15.98 kB / 3.534 GB, free: 51.45 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00422/10.24, allocations: 351.4 kB / 3.534 GB, free: 51.11 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003877/10.24, allocations: 210.2 kB / 3.534 GB, free: 50.9 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002935/10.24, allocations: 131.9 kB / 3.535 GB, free: 50.77 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.004973/10.25, allocations: 3.21 MB / 3.538 GB, free: 47.57 MB / 0.8855 GB Notification: Performance of sort global known variables: time 3.51e-07/10.25, allocations: 0 / 3.538 GB, free: 47.57 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.008808/10.26, allocations: 2.018 MB / 3.54 GB, free: 45.54 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 20 (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,HIn_flow.h_out,HOut_flow.h_out,HInEnh_flow.h_out,HOutEnh_flow.h_out,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 (308): * Single equations (assignments): 301 * 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.001813/10.26, allocations: 0.7951 MB / 3.54 GB, free: 44.86 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.007079/10.27, allocations: 5.004 MB / 3.545 GB, free: 39.82 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 8.015e-06/10.27, allocations: 3.828 kB / 3.545 GB, free: 39.82 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.002857/10.27, allocations: 2.388 MB / 3.548 GB, free: 37.41 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01529/10.28, allocations: 2.48 MB / 3.55 GB, free: 35.05 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02166/10.31, allocations: 11.53 MB / 3.561 GB, free: 23.57 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003964/10.31, allocations: 4.723 MB / 3.566 GB, free: 18.81 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.006902/10.32, allocations: 1.897 MB / 3.568 GB, free: 17.01 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001846/10.32, allocations: 435.3 kB / 3.568 GB, free: 16.58 MB / 0.8855 GB Notification: Performance of SimCode: time 1.353e-06/10.32, allocations: 3.938 kB / 3.568 GB, free: 16.58 MB / 0.8855 GB Notification: Performance of Templates: time 0.8367/11.16, allocations: 92.86 MB / 3.659 GB, free: 134 MB / 0.9011 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Storage_Validation_StratifiedLoadingUnloading.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches