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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.0007452/0.0007453, allocations: 91.38 kB / 15.36 MB, free: 0.7383 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.005036/0.005036, allocations: 171.4 kB / 16.26 MB, free: 6.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.428/1.428, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.455/2.455, allocations: 390.9 MB / 0.6663 GB, free: 2.379 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000403/0.0004032, allocations: 12 kB / 0.816 GB, free: 13.24 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.853/0.8534, allocations: 142.4 MB / 0.955 GB, free: 7.672 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.07028/0.9238, allocations: 54.55 MB / 1.008 GB, free: 8.641 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0315/0.9553, allocations: 17.73 MB / 1.026 GB, free: 6.855 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006113/0.9615, allocations: 63.62 kB / 1.026 GB, free: 6.793 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.004968/0.9665, allocations: 0.7224 MB / 1.026 GB, free: 6.066 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.01053/0.9771, allocations: 2.325 MB / 1.029 GB, free: 3.73 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.005258/0.9824, allocations: 1.384 MB / 1.03 GB, free: 2.355 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.03586/1.018, allocations: 27.8 MB / 1.057 GB, free: 6.496 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0162/1.035, allocations: 8.41 MB / 1.065 GB, free: 13.98 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01337/1.048, allocations: 5.213 MB / 1.07 GB, free: 8.746 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01276/1.061, allocations: 5.783 MB / 1.076 GB, free: 2.938 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.002314/1.063, allocations: 352 kB / 1.076 GB, free: 2.594 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006506/1.07, allocations: 1.026 MB / 1.077 GB, free: 1.566 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.002883/1.073, allocations: 1.599 MB / 1.079 GB, free: 15.96 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.01004/1.083, allocations: 3.885 MB / 1.083 GB, free: 12.05 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.01855/1.101, allocations: 12.3 MB / 1.095 GB, free: 15.71 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/1.101, allocations: 3.938 kB / 1.095 GB, free: 15.71 MB / 0.8575 GB Notification: Performance of FrontEnd: time 3.246e-06/1.101, allocations: 4 kB / 1.095 GB, free: 15.71 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 0.0004869/1.102, allocations: 0 / 1.095 GB, free: 15.71 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.01876/1.121, allocations: 6.874 MB / 1.102 GB, free: 8.742 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.039e-05/1.121, allocations: 8.031 kB / 1.102 GB, free: 8.734 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004711/1.125, allocations: 0.8625 MB / 1.102 GB, free: 7.863 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01438/1.14, allocations: 6.613 MB / 1.109 GB, free: 1.191 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005256/1.14, allocations: 460.4 kB / 1.109 GB, free: 0.7383 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002355/1.143, allocations: 0.5936 MB / 1.11 GB, free: 148 kB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02266/1.165, allocations: 9.044 MB / 1.119 GB, free: 6.777 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001787/1.166, allocations: 15.88 kB / 1.119 GB, free: 6.762 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001254/1.167, allocations: 260 kB / 1.119 GB, free: 6.508 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001881/1.167, allocations: 179.9 kB / 1.119 GB, free: 6.332 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01793/1.185, allocations: 7.461 MB / 1.126 GB, free: 14.86 MB / 0.8887 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.06275/1.248, allocations: 35.99 MB / 1.162 GB, free: 8.805 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00855/1.256, allocations: 4.298 MB / 1.166 GB, free: 4.504 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006106/1.262, allocations: 3.328 MB / 1.169 GB, free: 1.168 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001642/1.264, allocations: 0.9896 MB / 1.17 GB, free: 15.99 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00538/1.27, allocations: 2.394 MB / 1.172 GB, free: 13.56 MB / 0.9356 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003734/1.273, allocations: 443.8 kB / 1.173 GB, free: 13.12 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=317): time 1.538e-05/1.273, allocations: 0 / 1.173 GB, free: 13.12 MB / 0.9356 GB Notification: Performance of matching and sorting (n=317): time 0.01624/1.29, allocations: 7.136 MB / 1.18 GB, free: 5.898 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.677e-05/1.29, allocations: 89.91 kB / 1.18 GB, free: 5.797 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01034/1.3, allocations: 5.459 MB / 1.185 GB, free: 368 kB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.00107/1.301, allocations: 85.7 kB / 1.185 GB, free: 276 kB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.003635/1.305, allocations: 3.196 MB / 1.188 GB, free: 13.04 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.002152/1.307, allocations: 1.117 MB / 1.189 GB, free: 11.91 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005829/1.308, allocations: 367.3 kB / 1.19 GB, free: 11.54 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001182/1.308, allocations: 305.1 kB / 1.19 GB, free: 11.24 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003646/1.311, allocations: 2.163 MB / 1.192 GB, free: 9.066 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004727/1.316, allocations: 3.693 MB / 1.196 GB, free: 4.672 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009111/1.325, allocations: 6.311 MB / 1.202 GB, free: 13.64 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-05/1.325, allocations: 16 kB / 1.202 GB, free: 13.62 MB / 0.9669 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01269/1.338, allocations: 6.76 MB / 1.209 GB, free: 6.812 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 8.023e-05/1.338, allocations: 53.7 kB / 1.209 GB, free: 6.754 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.263e-05/1.338, allocations: 48 kB / 1.209 GB, free: 6.707 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00106/1.339, allocations: 437.4 kB / 1.209 GB, free: 6.273 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003887/1.343, allocations: 1.01 MB / 1.21 GB, free: 5.262 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005831/1.349, allocations: 5.267 MB / 1.215 GB, free: 15.73 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006723/1.356, allocations: 474.9 kB / 1.216 GB, free: 15.26 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001103/1.357, allocations: 216 kB / 1.216 GB, free: 15.05 MB / 0.9825 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.006127/1.363, allocations: 2.487 MB / 1.218 GB, free: 12.55 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00188/1.365, allocations: 0.5249 MB / 1.219 GB, free: 12.02 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009693/1.375, allocations: 5.259 MB / 1.224 GB, free: 6.703 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.605e-05/1.375, allocations: 32 kB / 1.224 GB, free: 6.672 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.222e-05/1.375, allocations: 7.938 kB / 1.224 GB, free: 6.664 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007389/1.382, allocations: 4.528 MB / 1.228 GB, free: 2.031 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 postOpt removeSimpleEquations (simulation): time 0.02823/1.411, allocations: 11.99 MB / 1.24 GB, free: 5.848 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.455e-05/1.411, allocations: 0 / 1.24 GB, free: 5.848 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00297/1.414, allocations: 0.6632 MB / 1.241 GB, free: 5.184 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009207/1.414, allocations: 371.9 kB / 1.241 GB, free: 4.816 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003286/1.415, allocations: 83.95 kB / 1.241 GB, free: 4.734 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005855/1.421, allocations: 5.176 MB / 1.246 GB, free: 15.3 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/1.421, allocations: 8.062 kB / 1.246 GB, free: 15.29 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01394/1.435, allocations: 7.628 MB / 1.254 GB, free: 7.566 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004477/1.439, allocations: 1.213 MB / 1.255 GB, free: 6.328 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001684/1.441, allocations: 63.98 kB / 1.255 GB, free: 6.266 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005084/1.446, allocations: 482.1 kB / 1.255 GB, free: 5.797 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005511/1.447, allocations: 194.2 kB / 1.256 GB, free: 5.605 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003969/1.447, allocations: 139.9 kB / 1.256 GB, free: 5.469 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.00768/1.455, allocations: 3.803 MB / 1.259 GB, free: 1.688 MB / 1.014 GB Notification: Performance of sort global known variables: time 2.3e-07/1.455, allocations: 0 / 1.259 GB, free: 1.688 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.651/2.106, allocations: 1.99 MB / 1.261 GB, free: 277.3 MB / 1.014 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.002657/2.108, allocations: 468.8 kB / 1.262 GB, free: 277.2 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.01245/2.121, allocations: 5.383 MB / 1.267 GB, free: 276.4 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 1.419e-05/2.121, allocations: 3.625 kB / 1.267 GB, free: 276.4 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.005072/2.126, allocations: 2.517 MB / 1.27 GB, free: 275.3 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01966/2.146, allocations: 3.241 MB / 1.273 GB, free: 274.7 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02927/2.175, allocations: 16.69 MB / 1.289 GB, free: 266.1 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006575/2.182, allocations: 4.629 MB / 1.294 GB, free: 264.4 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.008683/2.19, allocations: 1.985 MB / 1.295 GB, free: 263.7 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001941/2.192, allocations: 464.2 kB / 1.296 GB, free: 263.6 MB / 1.014 GB Notification: Performance of SimCode: time 1.072e-06/2.192, allocations: 0 / 1.296 GB, free: 263.6 MB / 1.014 GB Notification: Performance of Templates: time 0.1684/2.361, allocations: 114.9 MB / 1.408 GB, free: 155.8 MB / 1.014 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches