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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001099/0.001099, allocations: 116.3 kB / 16.37 MB, free: 6.004 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.001058/0.001058, allocations: 192.1 kB / 17.31 MB, free: 5.613 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.33/1.33, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.255/2.255, allocations: 390.3 MB / 0.6655 GB, free: 0.5938 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001245/0.001245, allocations: 68.78 kB / 0.814 GB, free: 32.78 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2677/0.269, allocations: 140.4 MB / 0.9511 GB, free: 8.082 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.05488/0.3239, allocations: 56.01 MB / 1.006 GB, free: 15.88 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.02599/0.3499, allocations: 17.94 MB / 1.023 GB, free: 13.88 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003/0.353, allocations: 75.62 kB / 1.023 GB, free: 13.8 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.003031/0.3561, allocations: 0.8923 MB / 1.024 GB, free: 12.9 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.008523/0.3646, allocations: 2.51 MB / 1.027 GB, free: 10.38 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.004223/0.3689, allocations: 1.528 MB / 1.028 GB, free: 8.859 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.02361/0.3925, allocations: 21.24 MB / 1.049 GB, free: 3.562 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01581/0.4083, allocations: 10.69 MB / 1.059 GB, free: 8.75 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01664/0.425, allocations: 7.155 MB / 1.066 GB, free: 1.617 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01107/0.4361, allocations: 6.366 MB / 1.073 GB, free: 11.23 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.002909/0.439, allocations: 0.9375 MB / 1.074 GB, free: 10.29 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00662/0.4457, allocations: 1.698 MB / 1.075 GB, free: 8.59 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.00387/0.4496, allocations: 2.341 MB / 1.077 GB, free: 6.242 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.009804/0.4594, allocations: 4.707 MB / 1.082 GB, free: 1.516 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.5378/0.9972, allocations: 13.16 MB / 1.095 GB, free: 33.96 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 7.835e-06/0.9972, allocations: 0 / 1.095 GB, free: 33.96 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.815e-06/0.9972, allocations: 1.344 kB / 1.095 GB, free: 33.96 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 0.000681/0.9979, allocations: 0 / 1.095 GB, free: 33.96 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.03365/1.032, allocations: 8.519 MB / 1.103 GB, free: 31 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.981e-05/1.032, allocations: 9.25 kB / 1.103 GB, free: 31 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006262/1.038, allocations: 0.8569 MB / 1.104 GB, free: 30.6 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0177/1.056, allocations: 6.704 MB / 1.111 GB, free: 29.63 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007435/1.056, allocations: 454.4 kB / 1.111 GB, free: 29.61 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004297/1.061, allocations: 0.5992 MB / 1.112 GB, free: 29.61 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03401/1.095, allocations: 9.023 MB / 1.12 GB, free: 28.64 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006548/1.095, allocations: 15.09 kB / 1.12 GB, free: 28.64 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003759/1.099, allocations: 261.2 kB / 1.121 GB, free: 28.64 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003517/1.1, allocations: 183.7 kB / 1.121 GB, free: 28.63 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02058/1.12, allocations: 7.453 MB / 1.128 GB, free: 28.58 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.06069/1.181, allocations: 35.99 MB / 1.163 GB, free: 4.336 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007204/1.188, allocations: 4.286 MB / 1.168 GB, free: 2.133 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004852/1.193, allocations: 3.302 MB / 1.171 GB, free: 0.5586 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001305/1.194, allocations: 0.9546 MB / 1.172 GB, free: 15.55 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004764/1.199, allocations: 2.39 MB / 1.174 GB, free: 14.16 MB / 0.8731 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003776/1.203, allocations: 368 kB / 1.174 GB, free: 13.89 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=317): time 1.191e-05/1.203, allocations: 3.594 kB / 1.174 GB, free: 13.89 MB / 0.8731 GB Notification: Performance of matching and sorting (n=317): time 0.01475/1.218, allocations: 7.134 MB / 1.181 GB, free: 10.14 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.879e-05/1.218, allocations: 83.41 kB / 1.181 GB, free: 10.07 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01241/1.23, allocations: 5.667 MB / 1.187 GB, free: 7.199 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 0.001149/1.231, allocations: 92.77 kB / 1.187 GB, free: 7.121 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.003961/1.235, allocations: 3.199 MB / 1.19 GB, free: 4.363 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.002151/1.238, allocations: 1.115 MB / 1.191 GB, free: 3.414 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002764/1.24, allocations: 0.8589 MB / 1.192 GB, free: 2.93 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 9.251e-05/1.241, allocations: 301.1 kB / 1.192 GB, free: 2.633 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003841/1.244, allocations: 2.161 MB / 1.194 GB, free: 1.508 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004852/1.249, allocations: 3.698 MB / 1.198 GB, free: 14.37 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009272/1.259, allocations: 6.327 MB / 1.204 GB, free: 9.926 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.81e-05/1.259, allocations: 11.53 kB / 1.204 GB, free: 9.926 MB / 0.8887 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01477/1.273, allocations: 6.767 MB / 1.211 GB, free: 4.562 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 9.599e-05/1.274, allocations: 53.7 kB / 1.211 GB, free: 4.504 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.819e-05/1.274, allocations: 54.28 kB / 1.211 GB, free: 4.457 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00113/1.275, allocations: 442.2 kB / 1.211 GB, free: 4.02 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004244/1.279, allocations: 1.007 MB / 1.212 GB, free: 3.086 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007017/1.286, allocations: 5.699 MB / 1.218 GB, free: 13.17 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008281/1.294, allocations: 287.5 kB / 1.218 GB, free: 12.89 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001451/1.296, allocations: 220 kB / 1.218 GB, free: 12.68 MB / 0.9044 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.007161/1.303, allocations: 2.484 MB / 1.221 GB, free: 10.25 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002603/1.306, allocations: 0.5305 MB / 1.221 GB, free: 9.719 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01179/1.317, allocations: 5.269 MB / 1.227 GB, free: 4.418 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.398e-05/1.318, allocations: 32 kB / 1.227 GB, free: 4.387 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.959e-05/1.318, allocations: 4 kB / 1.227 GB, free: 4.383 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007742/1.325, allocations: 4.543 MB / 1.231 GB, free: 15.75 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03192/1.357, allocations: 11.97 MB / 1.243 GB, free: 3.754 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.285e-05/1.357, allocations: 0 / 1.243 GB, free: 3.754 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003176/1.361, allocations: 0.6443 MB / 1.243 GB, free: 3.137 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009429/1.361, allocations: 372.8 kB / 1.244 GB, free: 2.77 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005251/1.362, allocations: 83.95 kB / 1.244 GB, free: 2.688 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005947/1.368, allocations: 5.619 MB / 1.249 GB, free: 12.84 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/1.368, allocations: 64 / 1.249 GB, free: 12.84 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01436/1.382, allocations: 7.77 MB / 1.257 GB, free: 4.988 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005217/1.388, allocations: 1.154 MB / 1.258 GB, free: 3.809 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002777/1.39, allocations: 63.98 kB / 1.258 GB, free: 3.746 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005706/1.396, allocations: 201.5 kB / 1.258 GB, free: 3.555 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000744/1.397, allocations: 203.4 kB / 1.258 GB, free: 3.355 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006968/1.398, allocations: 135.9 kB / 1.259 GB, free: 3.223 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.01013/1.408, allocations: 3.963 MB / 1.262 GB, free: 15.28 MB / 0.9512 GB Notification: Performance of sort global known variables: time 4.71e-07/1.408, allocations: 0 / 1.262 GB, free: 15.28 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.01139/1.419, allocations: 2.007 MB / 1.264 GB, free: 13.27 MB / 0.9512 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.002278/1.422, allocations: 0.4926 MB / 1.265 GB, free: 12.83 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.01255/1.434, allocations: 5.443 MB / 1.27 GB, free: 7.492 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.529e-05/1.434, allocations: 0 / 1.27 GB, free: 7.492 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.005124/1.439, allocations: 2.542 MB / 1.273 GB, free: 4.98 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01998/1.459, allocations: 3.395 MB / 1.276 GB, free: 1.688 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03049/1.49, allocations: 13.88 MB / 1.29 GB, free: 3.797 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006015/1.496, allocations: 4.632 MB / 1.294 GB, free: 15.13 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.008651/1.505, allocations: 2.073 MB / 1.296 GB, free: 13.06 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002098/1.507, allocations: 470.6 kB / 1.297 GB, free: 12.61 MB / 0.9825 GB Notification: Performance of SimCode: time 1.242e-06/1.507, allocations: 0 / 1.297 GB, free: 12.61 MB / 0.9825 GB Notification: Performance of Templates: time 0.1898/1.697, allocations: 114.8 MB / 1.409 GB, free: 11.44 MB / 1.092 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 -s gbode -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