Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001491/0.001491, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001713/0.001713, allocations: 193.2 kB / 16.25 MB, free: 6.629 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.411/1.411, allocations: 222.9 MB / 239.9 MB, free: 4.508 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.639/2.639, allocations: 437 MB / 0.71 GB, free: 5.281 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00127/0.00127, allocations: 71.89 kB / 0.8687 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8485/0.8498, allocations: 151.6 MB / 1.017 GB, free: 2.879 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.05076/0.9006, allocations: 55.54 MB / 1.071 GB, free: 11.16 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.02319/0.9238, allocations: 17.8 MB / 1.088 GB, free: 9.297 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003509/0.9274, allocations: 63.62 kB / 1.088 GB, free: 9.234 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.003583/0.931, allocations: 0.7615 MB / 1.089 GB, free: 8.469 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.007631/0.9387, allocations: 2.325 MB / 1.091 GB, free: 6.133 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.003731/0.9424, allocations: 1.401 MB / 1.093 GB, free: 4.742 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.02305/0.9655, allocations: 21.34 MB / 1.114 GB, free: 15.35 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01603/0.9816, allocations: 10.59 MB / 1.124 GB, free: 4.637 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01787/0.9995, allocations: 7.214 MB / 1.131 GB, free: 13.44 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01491/1.014, allocations: 6.553 MB / 1.137 GB, free: 6.863 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.003806/1.018, allocations: 0.9258 MB / 1.138 GB, free: 5.938 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007808/1.026, allocations: 1.702 MB / 1.14 GB, free: 4.234 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.00491/1.031, allocations: 2.322 MB / 1.142 GB, free: 1.906 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.01273/1.044, allocations: 4.692 MB / 1.147 GB, free: 13.2 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.02215/1.066, allocations: 13 MB / 1.16 GB, free: 164 kB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 7.805e-06/1.066, allocations: 4 kB / 1.16 GB, free: 160 kB / 0.9044 GB Notification: Performance of FrontEnd: time 2.635e-06/1.066, allocations: 0 / 1.16 GB, free: 160 kB / 0.9044 GB Notification: Performance of Transformations before backend: time 0.0005696/1.067, allocations: 0 / 1.16 GB, free: 160 kB / 0.9044 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.0259/1.093, allocations: 8.502 MB / 1.168 GB, free: 7.559 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 5.189e-05/1.093, allocations: 16.03 kB / 1.168 GB, free: 7.543 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005218/1.098, allocations: 0.847 MB / 1.169 GB, free: 6.688 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01513/1.113, allocations: 6.622 MB / 1.175 GB, free: 8 kB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004899/1.114, allocations: 464.4 kB / 1.176 GB, free: 15.55 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002477/1.116, allocations: 0.5975 MB / 1.176 GB, free: 14.95 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02792/1.144, allocations: 9.032 MB / 1.185 GB, free: 5.598 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003554/1.144, allocations: 23.78 kB / 1.185 GB, free: 5.574 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002488/1.147, allocations: 256 kB / 1.185 GB, free: 5.324 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002363/1.147, allocations: 179.9 kB / 1.185 GB, free: 5.148 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02029/1.167, allocations: 7.449 MB / 1.193 GB, free: 13.69 MB / 0.9512 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.0631/1.231, allocations: 35.9 MB / 1.228 GB, free: 7.723 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008364/1.239, allocations: 4.271 MB / 1.232 GB, free: 3.453 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005956/1.245, allocations: 3.316 MB / 1.235 GB, free: 132 kB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001577/1.247, allocations: 0.9583 MB / 1.236 GB, free: 14.98 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006293/1.253, allocations: 2.39 MB / 1.238 GB, free: 12.56 MB / 0.9981 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005358/1.258, allocations: 411.9 kB / 1.239 GB, free: 12.15 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=317): time 1.888e-05/1.259, allocations: 0 / 1.239 GB, free: 12.15 MB / 0.9981 GB Notification: Performance of matching and sorting (n=317): time 0.01708/1.276, allocations: 7.14 MB / 1.246 GB, free: 4.922 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.084e-05/1.276, allocations: 81.91 kB / 1.246 GB, free: 4.828 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.6629/1.939, allocations: 5.455 MB / 1.251 GB, free: 213.7 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.001162/1.94, allocations: 88.33 kB / 1.251 GB, free: 213.7 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.004653/1.945, allocations: 3.193 MB / 1.254 GB, free: 212.1 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.002313/1.947, allocations: 1.118 MB / 1.256 GB, free: 211.3 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001965/1.949, allocations: 0.8577 MB / 1.256 GB, free: 210.9 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 7.281e-05/1.949, allocations: 305.2 kB / 1.257 GB, free: 210.6 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004759/1.954, allocations: 2.162 MB / 1.259 GB, free: 209.8 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005795/1.96, allocations: 3.693 MB / 1.262 GB, free: 207.2 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01244/1.972, allocations: 6.327 MB / 1.269 GB, free: 203.4 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001636/1.972, allocations: 14.47 kB / 1.269 GB, free: 203.4 MB / 0.9981 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.02013/1.992, allocations: 6.773 MB / 1.275 GB, free: 200.8 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001439/1.993, allocations: 56.86 kB / 1.275 GB, free: 200.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001512/1.993, allocations: 50.41 kB / 1.275 GB, free: 200.7 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001416/1.994, allocations: 435.7 kB / 1.276 GB, free: 200.6 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004803/1.999, allocations: 1.006 MB / 1.277 GB, free: 200.5 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006023/2.005, allocations: 5.713 MB / 1.282 GB, free: 196.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007063/2.012, allocations: 466.9 kB / 1.283 GB, free: 196.2 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001302/2.013, allocations: 217.1 kB / 1.283 GB, free: 196.2 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.00631/2.02, allocations: 2.485 MB / 1.285 GB, free: 195.1 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002669/2.022, allocations: 0.5242 MB / 1.286 GB, free: 194.9 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01211/2.035, allocations: 5.267 MB / 1.291 GB, free: 192.8 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.59e-05/2.035, allocations: 35.5 kB / 1.291 GB, free: 192.8 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.192e-05/2.035, allocations: 7.719 kB / 1.291 GB, free: 192.8 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006761/2.041, allocations: 4.53 MB / 1.295 GB, free: 191 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02727/2.069, allocations: 11.95 MB / 1.307 GB, free: 181.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-05/2.069, allocations: 0 / 1.307 GB, free: 181.5 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003048/2.072, allocations: 0.6438 MB / 1.308 GB, free: 180.8 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008869/2.073, allocations: 382.5 kB / 1.308 GB, free: 180.4 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005798/2.073, allocations: 79.95 kB / 1.308 GB, free: 180.4 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004683/2.078, allocations: 5.617 MB / 1.314 GB, free: 174.5 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/2.078, allocations: 3.938 kB / 1.314 GB, free: 174.5 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01206/2.09, allocations: 7.764 MB / 1.321 GB, free: 166.6 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003796/2.094, allocations: 1.139 MB / 1.322 GB, free: 165.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00193/2.096, allocations: 60 kB / 1.322 GB, free: 165.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005273/2.101, allocations: 466.3 kB / 1.323 GB, free: 165 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005862/2.102, allocations: 198.2 kB / 1.323 GB, free: 164.8 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005325/2.102, allocations: 143.9 kB / 1.323 GB, free: 164.6 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.007188/2.11, allocations: 3.803 MB / 1.327 GB, free: 160.8 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.273e-06/2.11, allocations: 0 / 1.327 GB, free: 160.8 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.008298/2.118, allocations: 1.988 MB / 1.329 GB, free: 158.9 MB / 0.9981 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.001846/2.12, allocations: 496.6 kB / 1.329 GB, free: 158.4 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.02071/2.141, allocations: 11.63 MB / 1.341 GB, free: 146.8 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.231e-05/2.141, allocations: 0 / 1.341 GB, free: 146.8 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.004246/2.145, allocations: 2.553 MB / 1.343 GB, free: 144.2 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02086/2.166, allocations: 3.383 MB / 1.347 GB, free: 141 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0355/2.201, allocations: 16.59 MB / 1.363 GB, free: 124.4 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007979/2.209, allocations: 4.635 MB / 1.367 GB, free: 119.7 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.00855/2.218, allocations: 2.034 MB / 1.369 GB, free: 117.7 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002257/2.22, allocations: 459.3 kB / 1.37 GB, free: 117.2 MB / 0.9981 GB Notification: Performance of SimCode: time 1.193e-06/2.22, allocations: 0 / 1.37 GB, free: 117.2 MB / 0.9981 GB Notification: Performance of Templates: time 0.1788/2.399, allocations: 119.7 MB / 1.487 GB, free: 14.73 MB / 1.014 GB make -j1 -f Buildings_10_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.makefile (rm -f Buildings_10_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe ; mkfifo Buildings_10_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe >> ../files/Buildings_10_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.sim & ./Buildings_10_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Storage_Validation_StratifiedLoadingUnloading.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches