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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001219/0.001219, allocations: 102.8 kB / 16.27 MB, free: 6.414 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.0012/0.0012, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.4/1.4, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.714/2.714, allocations: 482.4 MB / 0.7553 GB, free: 6.992 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001907/0.001908, allocations: 64.3 kB / 0.9245 GB, free: 15.98 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7967/0.7987, allocations: 162.2 MB / 1.083 GB, free: 1.637 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.06432/0.863, allocations: 56.08 MB / 1.138 GB, free: 9.441 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.02781/0.8909, allocations: 17.96 MB / 1.155 GB, free: 11.51 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004358/0.8953, allocations: 74.47 kB / 1.155 GB, free: 11.49 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.003629/0.899, allocations: 0.8965 MB / 1.156 GB, free: 10.7 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.008701/0.9077, allocations: 2.49 MB / 1.159 GB, free: 8.68 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.004657/0.9124, allocations: 1.527 MB / 1.16 GB, free: 7.457 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.02516/0.9376, allocations: 21.27 MB / 1.181 GB, free: 10.44 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0162/0.9538, allocations: 10.68 MB / 1.191 GB, free: 15.64 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01655/0.9704, allocations: 7.325 MB / 1.198 GB, free: 8.332 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01195/0.9824, allocations: 6.288 MB / 1.205 GB, free: 2.02 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.003308/0.9857, allocations: 0.9375 MB / 1.205 GB, free: 1.082 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007821/0.9936, allocations: 1.694 MB / 1.207 GB, free: 15.39 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.004561/0.9982, allocations: 2.337 MB / 1.209 GB, free: 13.04 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.01128/1.009, allocations: 4.727 MB / 1.214 GB, free: 8.297 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.01889/1.028, allocations: 13.07 MB / 1.227 GB, free: 11.19 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 8.296e-06/1.028, allocations: 0 / 1.227 GB, free: 11.19 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.713e-06/1.028, allocations: 0 / 1.227 GB, free: 11.19 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 0.0004735/1.029, allocations: 4 kB / 1.227 GB, free: 11.18 MB / 0.9512 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.02228/1.051, allocations: 8.513 MB / 1.235 GB, free: 2.578 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.463e-05/1.051, allocations: 8.031 kB / 1.235 GB, free: 2.57 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004548/1.056, allocations: 0.8547 MB / 1.236 GB, free: 1.707 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01361/1.07, allocations: 6.443 MB / 1.242 GB, free: 11.2 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004751/1.07, allocations: 464.3 kB / 1.243 GB, free: 10.74 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002386/1.072, allocations: 0.5937 MB / 1.243 GB, free: 10.15 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02144/1.094, allocations: 9.028 MB / 1.252 GB, free: 0.7969 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001701/1.094, allocations: 23.78 kB / 1.252 GB, free: 0.7734 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001188/1.095, allocations: 263.9 kB / 1.252 GB, free: 0.5156 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001932/1.095, allocations: 176 kB / 1.253 GB, free: 352 kB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01835/1.114, allocations: 7.453 MB / 1.26 GB, free: 8.883 MB / 0.9825 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.06085/1.175, allocations: 36.28 MB / 1.295 GB, free: 2.539 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00724/1.182, allocations: 4.273 MB / 1.299 GB, free: 14.27 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005274/1.187, allocations: 3.312 MB / 1.303 GB, free: 10.95 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00143/1.189, allocations: 0.9622 MB / 1.304 GB, free: 9.801 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004369/1.193, allocations: 2.39 MB / 1.306 GB, free: 7.375 MB / 1.029 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002321/1.196, allocations: 363.9 kB / 1.306 GB, free: 7.016 MB / 1.029 GB Notification: Performance of pre-optimization done (n=317): time 1.172e-05/1.196, allocations: 0 / 1.306 GB, free: 7.016 MB / 1.029 GB Notification: Performance of matching and sorting (n=317): time 0.01423/1.21, allocations: 7.136 MB / 1.313 GB, free: 15.79 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.673e-05/1.21, allocations: 85.91 kB / 1.313 GB, free: 15.69 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009245/1.219, allocations: 5.662 MB / 1.319 GB, free: 10.05 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 0.0007483/1.22, allocations: 85.7 kB / 1.319 GB, free: 9.961 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.003414/1.223, allocations: 3.208 MB / 1.322 GB, free: 6.719 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 0.001694/1.225, allocations: 1.117 MB / 1.323 GB, free: 5.586 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001333/1.226, allocations: 0.858 MB / 1.324 GB, free: 4.715 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.000127/1.227, allocations: 309.1 kB / 1.324 GB, free: 4.41 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003447/1.23, allocations: 2.16 MB / 1.326 GB, free: 2.242 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004955/1.235, allocations: 3.693 MB / 1.33 GB, free: 13.84 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009678/1.245, allocations: 6.319 MB / 1.336 GB, free: 6.809 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-05/1.245, allocations: 16 kB / 1.336 GB, free: 6.793 MB / 1.061 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.0131/1.258, allocations: 6.771 MB / 1.343 GB, free: 15.96 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 7.099e-05/1.258, allocations: 54.7 kB / 1.343 GB, free: 15.91 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.376e-05/1.258, allocations: 48 kB / 1.343 GB, free: 15.86 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009775/1.259, allocations: 441.4 kB / 1.343 GB, free: 15.42 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003641/1.263, allocations: 1.002 MB / 1.344 GB, free: 14.42 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006228/1.269, allocations: 5.703 MB / 1.35 GB, free: 8.445 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004795/1.274, allocations: 283.5 kB / 1.35 GB, free: 8.168 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007146/1.274, allocations: 223.9 kB / 1.35 GB, free: 7.949 MB / 1.076 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.004862/1.279, allocations: 2.479 MB / 1.353 GB, free: 5.457 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001698/1.281, allocations: 0.5287 MB / 1.353 GB, free: 4.922 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009435/1.29, allocations: 5.267 MB / 1.358 GB, free: 15.6 MB / 1.092 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.431e-05/1.291, allocations: 32 kB / 1.358 GB, free: 15.57 MB / 1.092 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.248e-05/1.291, allocations: 4 kB / 1.358 GB, free: 15.56 MB / 1.092 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006976/1.298, allocations: 4.547 MB / 1.363 GB, free: 10.91 MB / 1.092 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02336/1.321, allocations: 12.05 MB / 1.375 GB, free: 14.68 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.051e-05/1.321, allocations: 4 kB / 1.375 GB, free: 14.67 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002824/1.324, allocations: 0.6438 MB / 1.375 GB, free: 14.03 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008947/1.325, allocations: 374.7 kB / 1.376 GB, free: 13.66 MB / 1.107 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002873/1.325, allocations: 83.95 kB / 1.376 GB, free: 13.57 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006036/1.331, allocations: 5.617 MB / 1.381 GB, free: 7.688 MB / 1.107 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/1.331, allocations: 0 / 1.381 GB, free: 7.688 MB / 1.107 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01281/1.344, allocations: 7.757 MB / 1.389 GB, free: 15.84 MB / 1.123 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003236/1.347, allocations: 1.163 MB / 1.39 GB, free: 14.65 MB / 1.123 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001195/1.348, allocations: 67.92 kB / 1.39 GB, free: 14.58 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003377/1.352, allocations: 199.5 kB / 1.39 GB, free: 14.39 MB / 1.123 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004619/1.352, allocations: 194.2 kB / 1.39 GB, free: 14.2 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003489/1.353, allocations: 139.9 kB / 1.391 GB, free: 14.06 MB / 1.123 GB Notification: Performance of sorting global known variables: time 0.007199/1.36, allocations: 3.963 MB / 1.394 GB, free: 10.12 MB / 1.123 GB Notification: Performance of sort global known variables: time 4.11e-07/1.36, allocations: 0 / 1.394 GB, free: 10.12 MB / 1.123 GB Notification: Performance of remove unused functions: time 0.00766/1.368, allocations: 2.015 MB / 1.396 GB, free: 8.098 MB / 1.123 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.00168/1.369, allocations: 0.4901 MB / 1.397 GB, free: 7.605 MB / 1.123 GB Notification: Performance of simCode: created initialization part: time 0.02263/1.392, allocations: 11.63 MB / 1.408 GB, free: 11.93 MB / 1.139 GB Notification: Performance of simCode: created event and clocks part: time 1.3e-05/1.392, allocations: 8.062 kB / 1.408 GB, free: 11.92 MB / 1.139 GB Notification: Performance of simCode: created simulation system equations: time 0.004846/1.397, allocations: 2.537 MB / 1.411 GB, free: 9.352 MB / 1.139 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01796/1.415, allocations: 3.396 MB / 1.414 GB, free: 6.078 MB / 1.139 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02712/1.442, allocations: 14.09 MB / 1.428 GB, free: 7.934 MB / 1.154 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004724/1.447, allocations: 4.549 MB / 1.432 GB, free: 3.352 MB / 1.154 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002199/1.449, allocations: 495.2 kB / 1.433 GB, free: 2.867 MB / 1.154 GB Notification: Performance of SimCode: time 1.062e-06/1.449, allocations: 0 / 1.433 GB, free: 2.867 MB / 1.154 GB Notification: Performance of Templates: time 0.8085/2.257, allocations: 187.3 MB / 1.616 GB, free: 377.3 MB / 1.264 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=400 -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