Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.001325/0.001325, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001693/0.001693, allocations: 196.8 kB / 16.79 MB, free: 6.809 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.446/1.446, allocations: 222.9 MB / 240.5 MB, free: 4.578 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.723/2.723, allocations: 437 MB / 0.7106 GB, free: 5.285 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001521/0.001521, allocations: 63.91 kB / 0.8692 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7753/0.7769, allocations: 151.6 MB / 1.017 GB, free: 2.762 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.06007/0.837, allocations: 55.65 MB / 1.072 GB, free: 10.92 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.02949/0.8665, allocations: 17.94 MB / 1.089 GB, free: 8.934 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003519/0.8701, allocations: 71.56 kB / 1.089 GB, free: 8.863 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.003158/0.8733, allocations: 0.7224 MB / 1.09 GB, free: 8.137 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.008085/0.8814, allocations: 2.321 MB / 1.092 GB, free: 5.805 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.004143/0.8856, allocations: 1.381 MB / 1.094 GB, free: 4.43 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.02975/0.9153, allocations: 27.82 MB / 1.121 GB, free: 8.539 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01598/0.9313, allocations: 8.697 MB / 1.129 GB, free: 15.72 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01341/0.9448, allocations: 5.517 MB / 1.135 GB, free: 10.18 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01208/0.9569, allocations: 6.177 MB / 1.141 GB, free: 3.98 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.003042/0.96, allocations: 472 kB / 1.141 GB, free: 3.52 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007369/0.9674, allocations: 1.155 MB / 1.142 GB, free: 2.363 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.004612/0.972, allocations: 1.798 MB / 1.144 GB, free: 0.5586 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.01131/0.9833, allocations: 4.117 MB / 1.148 GB, free: 12.42 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.01323/0.9966, allocations: 10.63 MB / 1.158 GB, free: 1.773 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.9966, allocations: 4 kB / 1.158 GB, free: 1.77 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.252e-06/0.9966, allocations: 0 / 1.158 GB, free: 1.77 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 0.0005192/0.9972, allocations: 0 / 1.158 GB, free: 1.77 MB / 0.9044 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.02714/1.024, allocations: 8.495 MB / 1.167 GB, free: 9.18 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 8.293e-05/1.024, allocations: 16.02 kB / 1.167 GB, free: 9.164 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005518/1.03, allocations: 0.8586 MB / 1.167 GB, free: 8.297 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.015/1.045, allocations: 6.607 MB / 1.174 GB, free: 1.629 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004914/1.045, allocations: 464.3 kB / 1.174 GB, free: 1.172 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002633/1.048, allocations: 0.5975 MB / 1.175 GB, free: 0.5742 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02385/1.072, allocations: 9.036 MB / 1.184 GB, free: 7.215 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003214/1.072, allocations: 19.78 kB / 1.184 GB, free: 7.195 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002058/1.074, allocations: 256 kB / 1.184 GB, free: 6.945 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000185/1.075, allocations: 183.9 kB / 1.184 GB, free: 6.766 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01677/1.091, allocations: 7.449 MB / 1.192 GB, free: 15.31 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 preOpt removeSimpleEquations (simulation): time 0.06059/1.152, allocations: 35.9 MB / 1.227 GB, free: 9.344 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007587/1.16, allocations: 4.283 MB / 1.231 GB, free: 5.062 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005318/1.165, allocations: 3.308 MB / 1.234 GB, free: 1.746 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001665/1.167, allocations: 0.9544 MB / 1.235 GB, free: 0.6055 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00609/1.173, allocations: 2.39 MB / 1.237 GB, free: 14.18 MB / 0.9981 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.004573/1.177, allocations: 447.7 kB / 1.238 GB, free: 13.74 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=317): time 2.713e-05/1.178, allocations: 7.984 kB / 1.238 GB, free: 13.73 MB / 0.9981 GB Notification: Performance of matching and sorting (n=317): time 0.01527/1.193, allocations: 7.101 MB / 1.245 GB, free: 6.539 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.356e-05/1.193, allocations: 85.91 kB / 1.245 GB, free: 6.441 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01055/1.203, allocations: 5.459 MB / 1.25 GB, free: 1.004 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0007893/1.204, allocations: 89.7 kB / 1.25 GB, free: 0.9102 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.6745/1.879, allocations: 3.191 MB / 1.253 GB, free: 214.3 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001887/1.881, allocations: 1.118 MB / 1.254 GB, free: 213.4 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001619/1.882, allocations: 0.8504 MB / 1.255 GB, free: 213 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 5.425e-05/1.882, allocations: 310.3 kB / 1.255 GB, free: 212.7 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004348/1.887, allocations: 2.155 MB / 1.258 GB, free: 212 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005253/1.892, allocations: 3.685 MB / 1.261 GB, free: 209.4 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01042/1.902, allocations: 6.297 MB / 1.267 GB, free: 205.5 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.013e-05/1.903, allocations: 14.34 kB / 1.267 GB, free: 205.5 MB / 0.9981 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.015/1.918, allocations: 6.758 MB / 1.274 GB, free: 203 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 9.712e-05/1.918, allocations: 52.73 kB / 1.274 GB, free: 202.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001/1.918, allocations: 48.66 kB / 1.274 GB, free: 202.9 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001204/1.919, allocations: 431.8 kB / 1.274 GB, free: 202.8 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004401/1.923, allocations: 1.005 MB / 1.275 GB, free: 202.7 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005341/1.929, allocations: 5.263 MB / 1.281 GB, free: 198.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005826/1.935, allocations: 468.3 kB / 1.281 GB, free: 198.8 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008506/1.935, allocations: 217.5 kB / 1.281 GB, free: 198.8 MB / 0.9981 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.004453/1.94, allocations: 2.486 MB / 1.284 GB, free: 197.7 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00143/1.941, allocations: 0.5253 MB / 1.284 GB, free: 197.4 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007736/1.949, allocations: 5.243 MB / 1.289 GB, free: 195.4 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.682e-05/1.949, allocations: 37.58 kB / 1.289 GB, free: 195.4 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.024e-05/1.949, allocations: 3.875 kB / 1.289 GB, free: 195.4 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005412/1.955, allocations: 4.518 MB / 1.294 GB, free: 193.6 MB / 0.9981 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.0191/1.974, allocations: 11.96 MB / 1.305 GB, free: 183.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.124e-05/1.974, allocations: 4 kB / 1.305 GB, free: 183.6 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002514/1.976, allocations: 0.6433 MB / 1.306 GB, free: 182.9 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007535/1.977, allocations: 370.6 kB / 1.306 GB, free: 182.5 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002166/1.977, allocations: 87.8 kB / 1.306 GB, free: 182.5 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004007/1.981, allocations: 5.184 MB / 1.312 GB, free: 177 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/1.981, allocations: 4 kB / 1.312 GB, free: 177 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01014/1.991, allocations: 7.615 MB / 1.319 GB, free: 169.3 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00329/1.995, allocations: 1.127 MB / 1.32 GB, free: 168.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001096/1.996, allocations: 63.98 kB / 1.32 GB, free: 168.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003483/1.999, allocations: 474.6 kB / 1.321 GB, free: 167.6 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003795/2, allocations: 198.2 kB / 1.321 GB, free: 167.4 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002482/2, allocations: 139.9 kB / 1.321 GB, free: 167.3 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.004743/2.005, allocations: 3.803 MB / 1.325 GB, free: 163.5 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.31e-07/2.005, allocations: 4 kB / 1.325 GB, free: 163.5 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.006056/2.011, allocations: 1.986 MB / 1.327 GB, free: 161.6 MB / 0.9981 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.001115/2.012, allocations: 495 kB / 1.327 GB, free: 161.1 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.006777/2.019, allocations: 5.364 MB / 1.332 GB, free: 155.7 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 6.693e-06/2.019, allocations: 5 kB / 1.332 GB, free: 155.7 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.002699/2.021, allocations: 2.498 MB / 1.335 GB, free: 153.2 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01287/2.034, allocations: 3.228 MB / 1.338 GB, free: 150.1 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02269/2.057, allocations: 16.51 MB / 1.354 GB, free: 133.5 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004951/2.062, allocations: 4.549 MB / 1.358 GB, free: 128.9 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002128/2.064, allocations: 487.2 kB / 1.359 GB, free: 128.4 MB / 0.9981 GB Notification: Performance of SimCode: time 8.42e-07/2.064, allocations: 0 / 1.359 GB, free: 128.4 MB / 0.9981 GB Notification: Performance of Templates: time 0.2076/2.272, allocations: 185.9 MB / 1.54 GB, free: 7.051 MB / 1.061 GB make -j1 -f Buildings_10_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.makefile (rm -f Buildings_10_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe ; mkfifo Buildings_10_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe >> ../files/Buildings_10_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.sim & ./Buildings_10_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Storage_Validation_StratifiedLoadingUnloading.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches