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.001126/0.001126, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.00135/0.00135, allocations: 191 kB / 16.25 MB, free: 6.633 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.391/1.391, allocations: 222.9 MB / 239.9 MB, free: 4.527 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.494/2.494, allocations: 390.2 MB / 0.6644 GB, free: 0.582 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001443/0.001443, allocations: 75.86 kB / 0.812 GB, free: 14.8 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8003/0.8018, allocations: 140.4 MB / 0.9491 GB, free: 9.277 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.05451/0.8563, allocations: 55.53 MB / 1.003 GB, free: 10.54 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.02732/0.8837, allocations: 17.79 MB / 1.021 GB, free: 8.699 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004488/0.8882, allocations: 71.56 kB / 1.021 GB, free: 8.629 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.00369/0.892, allocations: 0.7576 MB / 1.022 GB, free: 7.867 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.009318/0.9013, allocations: 2.325 MB / 1.024 GB, free: 5.531 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.004633/0.906, allocations: 1.4 MB / 1.025 GB, free: 4.141 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0296/0.9356, allocations: 21.34 MB / 1.046 GB, free: 14.75 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01775/0.9534, allocations: 10.58 MB / 1.056 GB, free: 4.047 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0205/0.974, allocations: 7.217 MB / 1.063 GB, free: 12.85 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0138/0.9878, allocations: 6.557 MB / 1.07 GB, free: 6.266 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.004266/0.9921, allocations: 0.9258 MB / 1.071 GB, free: 5.34 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008732/1.001, allocations: 1.701 MB / 1.072 GB, free: 3.637 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.005643/1.007, allocations: 2.318 MB / 1.075 GB, free: 1.312 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.01624/1.023, allocations: 4.696 MB / 1.079 GB, free: 12.6 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.02374/1.047, allocations: 13.01 MB / 1.092 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 8.797e-06/1.047, allocations: 0 / 1.092 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.384e-06/1.047, allocations: 4 kB / 1.092 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 0.0006092/1.047, allocations: 0 / 1.092 GB, free: 15.55 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.03144/1.079, allocations: 8.495 MB / 1.1 GB, free: 6.961 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.599e-05/1.079, allocations: 12.03 kB / 1.1 GB, free: 6.949 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005416/1.084, allocations: 0.847 MB / 1.101 GB, free: 6.094 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01587/1.1, allocations: 6.624 MB / 1.107 GB, free: 15.41 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000572/1.101, allocations: 464.3 kB / 1.108 GB, free: 14.95 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00247/1.103, allocations: 0.5975 MB / 1.109 GB, free: 14.36 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02451/1.128, allocations: 9.025 MB / 1.117 GB, free: 5.008 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002989/1.128, allocations: 19.78 kB / 1.117 GB, free: 4.988 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002025/1.13, allocations: 256 kB / 1.118 GB, free: 4.738 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002287/1.13, allocations: 183.9 kB / 1.118 GB, free: 4.559 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01913/1.15, allocations: 7.449 MB / 1.125 GB, free: 13.1 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.0642/1.214, allocations: 35.92 MB / 1.16 GB, free: 7.117 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008141/1.222, allocations: 4.282 MB / 1.164 GB, free: 2.832 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005824/1.228, allocations: 3.312 MB / 1.168 GB, free: 15.51 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001553/1.229, allocations: 0.9583 MB / 1.168 GB, free: 14.37 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005484/1.235, allocations: 2.386 MB / 1.171 GB, free: 11.95 MB / 0.9356 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005002/1.24, allocations: 411.9 kB / 1.171 GB, free: 11.54 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=317): time 2.579e-05/1.24, allocations: 0 / 1.171 GB, free: 11.54 MB / 0.9356 GB Notification: Performance of matching and sorting (n=317): time 0.01715/1.257, allocations: 7.14 MB / 1.178 GB, free: 4.309 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.846e-05/1.257, allocations: 85.91 kB / 1.178 GB, free: 4.211 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01233/1.27, allocations: 5.459 MB / 1.184 GB, free: 14.77 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 0.0009574/1.271, allocations: 89.7 kB / 1.184 GB, free: 14.68 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.004141/1.275, allocations: 3.196 MB / 1.187 GB, free: 11.45 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.00299/1.278, allocations: 1.113 MB / 1.188 GB, free: 10.32 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003653/1.282, allocations: 0.8618 MB / 1.189 GB, free: 9.445 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.000134/1.282, allocations: 305.1 kB / 1.189 GB, free: 9.145 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004743/1.286, allocations: 2.167 MB / 1.191 GB, free: 6.969 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005653/1.292, allocations: 3.693 MB / 1.195 GB, free: 2.57 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01007/1.302, allocations: 6.327 MB / 1.201 GB, free: 11.52 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.135e-05/1.302, allocations: 15.94 kB / 1.201 GB, free: 11.51 MB / 0.9669 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01604/1.318, allocations: 6.772 MB / 1.208 GB, free: 4.684 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001063/1.319, allocations: 57.73 kB / 1.208 GB, free: 4.621 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.17e-05/1.319, allocations: 48 kB / 1.208 GB, free: 4.574 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001192/1.32, allocations: 435.6 kB / 1.208 GB, free: 4.145 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004374/1.324, allocations: 1.006 MB / 1.209 GB, free: 3.137 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006753/1.331, allocations: 5.698 MB / 1.215 GB, free: 13.16 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006436/1.337, allocations: 466.8 kB / 1.215 GB, free: 12.71 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001189/1.339, allocations: 216 kB / 1.215 GB, free: 12.5 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.006689/1.345, allocations: 2.479 MB / 1.218 GB, free: 10 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003031/1.348, allocations: 0.5287 MB / 1.218 GB, free: 9.469 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01325/1.362, allocations: 5.274 MB / 1.223 GB, free: 4.137 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.073e-05/1.362, allocations: 32 kB / 1.223 GB, free: 4.105 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.531e-05/1.362, allocations: 4 kB / 1.223 GB, free: 4.102 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008167/1.37, allocations: 4.535 MB / 1.228 GB, free: 15.46 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03091/1.401, allocations: 11.96 MB / 1.239 GB, free: 3.32 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.535e-05/1.401, allocations: 7.938 kB / 1.239 GB, free: 3.312 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003203/1.404, allocations: 0.644 MB / 1.24 GB, free: 2.668 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009754/1.405, allocations: 371 kB / 1.24 GB, free: 2.301 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005436/1.406, allocations: 91.89 kB / 1.241 GB, free: 2.211 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006257/1.412, allocations: 5.6 MB / 1.246 GB, free: 12.34 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.3e-06/1.412, allocations: 7.984 kB / 1.246 GB, free: 12.33 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01464/1.427, allocations: 7.758 MB / 1.254 GB, free: 4.477 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003808/1.431, allocations: 1.139 MB / 1.255 GB, free: 3.312 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001936/1.433, allocations: 71.92 kB / 1.255 GB, free: 3.242 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005519/1.438, allocations: 455.2 kB / 1.255 GB, free: 2.797 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007282/1.439, allocations: 202.2 kB / 1.255 GB, free: 2.598 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006028/1.439, allocations: 143.9 kB / 1.256 GB, free: 2.457 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.6623/2.102, allocations: 3.802 MB / 1.259 GB, free: 277.2 MB / 1.014 GB Notification: Performance of sort global known variables: time 9.31e-07/2.102, allocations: 0 / 1.259 GB, free: 277.2 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.01139/2.113, allocations: 1.991 MB / 1.261 GB, free: 277.2 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.002252/2.116, allocations: 490.8 kB / 1.262 GB, free: 277.1 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.02914/2.145, allocations: 11.62 MB / 1.273 GB, free: 275.6 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 1.413e-05/2.145, allocations: 2.438 kB / 1.273 GB, free: 275.6 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.005879/2.151, allocations: 2.551 MB / 1.276 GB, free: 274.5 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02127/2.172, allocations: 3.396 MB / 1.279 GB, free: 273.7 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03442/2.207, allocations: 16.59 MB / 1.295 GB, free: 265.3 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008157/2.215, allocations: 4.631 MB / 1.3 GB, free: 263.5 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.00837/2.223, allocations: 2.018 MB / 1.302 GB, free: 262.7 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002161/2.225, allocations: 465.2 kB / 1.302 GB, free: 262.6 MB / 1.014 GB Notification: Performance of SimCode: time 1.403e-06/2.225, allocations: 0 / 1.302 GB, free: 262.6 MB / 1.014 GB Notification: Performance of Templates: time 0.1759/2.401, allocations: 119.7 MB / 1.419 GB, free: 144.2 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