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/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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001519/0.001519, allocations: 103.8 kB / 16.36 MB, free: 5.547 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.001642/0.001642, allocations: 195.7 kB / 17.3 MB, free: 5.184 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.435/1.435, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.488/2.488, allocations: 442.6 MB / 0.7165 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001546/0.001546, allocations: 64.11 kB / 0.8773 GB, free: 10.98 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3829/0.3845, allocations: 153 MB / 1.027 GB, free: 2.059 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.7828/1.167, allocations: 56.01 MB / 1.081 GB, free: 11.77 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.02673/1.194, allocations: 17.94 MB / 1.099 GB, free: 11.46 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004389/1.199, allocations: 74.19 kB / 1.099 GB, free: 11.46 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.004142/1.203, allocations: 0.904 MB / 1.1 GB, free: 11.45 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.01129/1.214, allocations: 2.505 MB / 1.102 GB, free: 10.96 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.005788/1.22, allocations: 1.533 MB / 1.104 GB, free: 10.27 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.03111/1.251, allocations: 21.25 MB / 1.125 GB, free: 0.8281 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.02072/1.272, allocations: 10.69 MB / 1.135 GB, free: 12.51 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0206/1.293, allocations: 7.16 MB / 1.142 GB, free: 9.688 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01598/1.309, allocations: 6.356 MB / 1.148 GB, free: 7.285 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.004618/1.313, allocations: 0.9382 MB / 1.149 GB, free: 7.285 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01133/1.325, allocations: 1.7 MB / 1.151 GB, free: 7.02 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.008627/1.333, allocations: 2.347 MB / 1.153 GB, free: 5.637 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.01692/1.35, allocations: 4.701 MB / 1.158 GB, free: 2.555 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.02397/1.374, allocations: 13.17 MB / 1.171 GB, free: 7.469 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 8.325e-06/1.374, allocations: 0 / 1.171 GB, free: 7.469 MB / 0.8731 GB Notification: Performance of FrontEnd: time 2.285e-06/1.374, allocations: 0 / 1.171 GB, free: 7.469 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 0.0005532/1.375, allocations: 8 kB / 1.171 GB, free: 7.461 MB / 0.8731 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.02746/1.402, allocations: 8.521 MB / 1.179 GB, free: 14.94 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 5.463e-05/1.402, allocations: 8.031 kB / 1.179 GB, free: 14.93 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005546/1.408, allocations: 0.8625 MB / 1.18 GB, free: 14.06 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01656/1.425, allocations: 6.696 MB / 1.186 GB, free: 7.438 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005714/1.425, allocations: 459.3 kB / 1.187 GB, free: 6.988 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002761/1.428, allocations: 0.6039 MB / 1.187 GB, free: 6.387 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02816/1.456, allocations: 9.022 MB / 1.196 GB, free: 13.05 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003435/1.457, allocations: 19.88 kB / 1.196 GB, free: 13.03 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002309/1.459, allocations: 263.4 kB / 1.196 GB, free: 12.78 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002449/1.459, allocations: 179.9 kB / 1.197 GB, free: 12.6 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01874/1.478, allocations: 7.445 MB / 1.204 GB, free: 5.148 MB / 0.9044 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.06479/1.543, allocations: 36 MB / 1.239 GB, free: 15.36 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007606/1.55, allocations: 4.278 MB / 1.243 GB, free: 11.09 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005421/1.556, allocations: 3.309 MB / 1.246 GB, free: 7.789 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001459/1.557, allocations: 0.9566 MB / 1.247 GB, free: 6.66 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004821/1.562, allocations: 2.386 MB / 1.25 GB, free: 4.238 MB / 0.9512 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003015/1.565, allocations: 382.4 kB / 1.25 GB, free: 3.863 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=317): time 1.42e-05/1.565, allocations: 0 / 1.25 GB, free: 3.863 MB / 0.9512 GB Notification: Performance of matching and sorting (n=317): time 0.01572/1.581, allocations: 7.125 MB / 1.257 GB, free: 12.65 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.2e-05/1.581, allocations: 85.91 kB / 1.257 GB, free: 12.55 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01265/1.594, allocations: 5.67 MB / 1.263 GB, free: 6.902 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 0.001039/1.595, allocations: 89.7 kB / 1.263 GB, free: 6.809 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.004285/1.599, allocations: 3.195 MB / 1.266 GB, free: 3.598 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.002149/1.601, allocations: 1.123 MB / 1.267 GB, free: 2.484 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002967/1.604, allocations: 0.8581 MB / 1.268 GB, free: 1.613 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001156/1.604, allocations: 305.1 kB / 1.268 GB, free: 1.312 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004221/1.609, allocations: 2.16 MB / 1.27 GB, free: 15.14 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005231/1.614, allocations: 3.693 MB / 1.274 GB, free: 10.75 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009966/1.624, allocations: 6.323 MB / 1.28 GB, free: 3.707 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.928e-05/1.624, allocations: 16 kB / 1.28 GB, free: 3.691 MB / 0.9825 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01514/1.639, allocations: 6.776 MB / 1.287 GB, free: 12.86 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001048/1.639, allocations: 59.58 kB / 1.287 GB, free: 12.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.044e-05/1.639, allocations: 48 kB / 1.287 GB, free: 12.75 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001125/1.641, allocations: 440.5 kB / 1.287 GB, free: 12.32 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004088/1.645, allocations: 1.002 MB / 1.288 GB, free: 11.31 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006452/1.651, allocations: 5.689 MB / 1.294 GB, free: 5.355 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00683/1.658, allocations: 287.4 kB / 1.294 GB, free: 5.074 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001308/1.659, allocations: 216 kB / 1.294 GB, free: 4.863 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.006485/1.666, allocations: 2.487 MB / 1.297 GB, free: 2.363 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002385/1.668, allocations: 0.5249 MB / 1.297 GB, free: 1.832 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01126/1.68, allocations: 5.273 MB / 1.302 GB, free: 12.5 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.624e-05/1.68, allocations: 32 kB / 1.302 GB, free: 12.47 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.763e-05/1.68, allocations: 4.188 kB / 1.302 GB, free: 12.47 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007377/1.687, allocations: 4.532 MB / 1.307 GB, free: 7.832 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0295/1.717, allocations: 11.99 MB / 1.318 GB, free: 11.78 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.327e-05/1.717, allocations: 4 kB / 1.318 GB, free: 11.77 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003045/1.72, allocations: 0.6477 MB / 1.319 GB, free: 11.12 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009407/1.721, allocations: 370.7 kB / 1.319 GB, free: 10.76 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004786/1.721, allocations: 83.95 kB / 1.319 GB, free: 10.68 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006061/1.727, allocations: 5.614 MB / 1.325 GB, free: 4.797 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/1.727, allocations: 0 / 1.325 GB, free: 4.797 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01408/1.741, allocations: 7.768 MB / 1.332 GB, free: 12.93 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004458/1.746, allocations: 1.159 MB / 1.334 GB, free: 11.75 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002009/1.748, allocations: 71.94 kB / 1.334 GB, free: 11.68 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004228/1.752, allocations: 195.9 kB / 1.334 GB, free: 11.49 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005812/1.753, allocations: 198.2 kB / 1.334 GB, free: 11.29 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005407/1.753, allocations: 139.9 kB / 1.334 GB, free: 11.16 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.008745/1.762, allocations: 3.963 MB / 1.338 GB, free: 7.215 MB / 1.045 GB Notification: Performance of sort global known variables: time 8.01e-07/1.762, allocations: 0 / 1.338 GB, free: 7.215 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.009787/1.772, allocations: 2.011 MB / 1.34 GB, free: 5.199 MB / 1.045 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.00203/1.774, allocations: 0.4912 MB / 1.34 GB, free: 4.727 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.01098/1.785, allocations: 5.437 MB / 1.346 GB, free: 15.24 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.3e-05/1.785, allocations: 7.938 kB / 1.346 GB, free: 15.23 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.005056/1.79, allocations: 2.537 MB / 1.348 GB, free: 12.66 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01934/1.809, allocations: 3.379 MB / 1.352 GB, free: 9.375 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03947/1.849, allocations: 13.89 MB / 1.365 GB, free: 11.45 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009681/1.859, allocations: 4.628 MB / 1.37 GB, free: 6.785 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.009214/1.868, allocations: 2.08 MB / 1.372 GB, free: 4.707 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002495/1.87, allocations: 467.2 kB / 1.372 GB, free: 4.25 MB / 1.076 GB Notification: Performance of SimCode: time 2.084e-06/1.87, allocations: 0 / 1.372 GB, free: 4.25 MB / 1.076 GB Notification: Performance of Templates: time 0.1912/2.062, allocations: 114.8 MB / 1.484 GB, free: 2.656 MB / 1.186 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 -s cvode -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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches