/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 131 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7479
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2221.5-5225_daily_bin519
RA = 335.391, Dec = -52.4307
tmin = 373852801, tmax = 374112001
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository Job = True

LAT data Source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='264695', job_status='RUN', time_executed='2021-09-28 09:28:11.244221', time_epoch_executed='1632846491.24' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='519'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/264695

Creating custom pfile directory:
/scratch/kocevski/264695/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=373852801.0 && nMetStart<374112001.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=373852801.0 && nMetStart<374112001.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/264695/ft1_4FGL_J2221.5-5225_daily_bin519.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=373852801.0 && nMetStart<374112001.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/264695/ft2_4FGL_J2221.5-5225_daily_bin519.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/264695/ft1_4FGL_J2221.5-5225_daily_bin519.fits outfile=/scratch/kocevski/264695/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin519.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=373852801.0 tmax=374112001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.49
user 4.26
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/264695/ft2_4FGL_J2221.5-5225_daily_bin519.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/264695/ft2_4FGL_J2221.5-5225_daily_bin519.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/264695/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin519.fits evtable="EVENTS" outfile="/scratch/kocevski/264695/ft1_filtered_4FGL_J2221.5-5225_daily_bin519.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/264695/ft1_filtered_4FGL_J2221.5-5225_daily_bin519.fits" evtable="EVENTS" scfile=/scratch/kocevski/264695/ft2_4FGL_J2221.5-5225_daily_bin519.fits sctable="SC_DATA" outfile=/scratch/kocevski/264695/ltcube_373852801_374112001_4FGL_J2221.5-5225_daily_bin519.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/264695/ft2_4FGL_J2221.5-5225_daily_bin519.fits
.....................!
real 11.75
user 11.42
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/264695/ft1_filtered_4FGL_J2221.5-5225_daily_bin519.fits evtable="EVENTS" scfile=/scratch/kocevski/264695/ft2_4FGL_J2221.5-5225_daily_bin519.fits sctable="SC_DATA" expcube=/scratch/kocevski/264695/ltcube_373852801_374112001_4FGL_J2221.5-5225_daily_bin519.fits outfile=/scratch/kocevski/264695/expmap_373852801_374112001_4FGL_J2221.5-5225_daily_bin519.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/264695/ltcube_373852801_374112001_4FGL_J2221.5-5225_daily_bin519.fits
.....................!
real 189.83
user 185.22
sys 4.24

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 182 point sources and 0 extended sources

Setting source of interest to:
4FGL J2221.5-5225 @ 335.391 -52.4307

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/264695/ft1_filtered_4FGL_J2221.5-5225_daily_bin519.fits scfile=/scratch/kocevski/264695/ft2_4FGL_J2221.5-5225_daily_bin519.fits outfile=/scratch/kocevski/264695/cmap_373852801_374112001_4FGL_J2221.5-5225_daily_bin519.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=335.391 yref=-52.4307 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/264695/ft1_filtered_4FGL_J2221.5-5225_daily_bin519.fits scfile=/scratch/kocevski/264695/ft2_4FGL_J2221.5-5225_daily_bin519.fits outfile=/scratch/kocevski/264695/cmap_HighResolution_373852801_374112001_4FGL_J2221.5-5225_daily_bin519.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=335.391 yref=-52.4307 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.64
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/264695/ft1_filtered_4FGL_J2221.5-5225_daily_bin519.fits evtable="EVENTS" scfile=/scratch/kocevski/264695/ft2_4FGL_J2221.5-5225_daily_bin519.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/264695/Model_4FGL_J2221.5-5225_daily_bin519.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/264695/ft1_filtered_4FGL_J2221.5-5225_daily_bin519.fits.....................!
real 53.17
user 51.80
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/264695/ft1_filtered_4FGL_J2221.5-5225_daily_bin519.fits', '/scratch/kocevski/264695/ft2_4FGL_J2221.5-5225_daily_bin519.fits', expMap='/scratch/kocevski/264695/expmap_373852801_374112001_4FGL_J2221.5-5225_daily_bin519.fits', expCube='/scratch/kocevski/264695/ltcube_373852801_374112001_4FGL_J2221.5-5225_daily_bin519.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/264695/Model_4FGL_J2221.5-5225_daily_bin519.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2221.5-5225'

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.615e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  1.609e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
347         beta:  1.036e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
348           Eb:  2.313e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/264695/ft1_filtered_4FGL_J2221.5-5225_daily_bin519.fits
Spacecraft file(s): /scratch/kocevski/264695/ft2_4FGL_J2221.5-5225_daily_bin519.fits
Exposure map: /scratch/kocevski/264695/expmap_373852801_374112001_4FGL_J2221.5-5225_daily_bin519.fits
Exposure cube: /scratch/kocevski/264695/ltcube_373852801_374112001_4FGL_J2221.5-5225_daily_bin519.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/264695/Model_4FGL_J2221.5-5225_daily_bin519.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 7447.31079972

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 7447.30079762

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.3856       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.2782       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.7564       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .69866E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    62.560       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.430       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .35713E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    16.323       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.9053       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    5.5052       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .76771       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0415       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7447.301     FROM MIGRAD    STATUS=CONVERGED    578 CALLS     2873 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.3809        20.241        .81961E-09   -.33145E-05
   2  Prefactor     6.2778        6.2798       -.47311E-06    .38845E-03
   3  Prefactor     .10000E-03    30.485       -.10548E-05** at limit **
   4  Prefactor     7.7561        3.6137        .85613E-07   -.23924E-03
   5  Prefactor     .10000E-03    28.338        .37260E-06** at limit **
   6  Prefactor     .10000E-03    10.760        .76725E-05** at limit **
   7  Prefactor     .10000E-03    1.3761       -.19426E-06** at limit **
   8  Prefactor     62.634        69.463       -.18735E-05   -.26757E-03
   9  norm          .10000E-03    3.9526       -.12649E-06** at limit **
  10  Prefactor     .10000E-03    1.2362       -.18130E-06** at limit **
  11  Prefactor     23.441        26.984       -.91761E-06    .56385E-04
  12  Prefactor     .10000E-03    3.2900       -.45826E-06** at limit **
  13  Prefactor     .10000E-03    12.150       -.29833E-06** at limit **
  14  Prefactor     .10000E-03    6.3527       -.35837E-06** at limit **
  15  Prefactor     .10000E-03    39.914       -.87767E-06** at limit **
  16  Prefactor     .10000E-03    3.7531        .34912E-06** at limit **
  17  Prefactor     .10000E-03    13.015       -.50875E-06** at limit **
  18  Prefactor     .10000E-03    12.070       -.26557E-06** at limit **
  19  norm          16.324        12.942       -.14008E-06    .34899E-04
  20  norm          .10000E-03    2.0315        .16735E-08** at limit **
  21  Prefactor     6.9062        5.7153       -.51724E-07    .12002E-04
  22  Prefactor     .10000E-03    15.657       -.27842E-06** at limit **
  23  norm          5.5055        1.5072       -.33276E-07    .18854E-03
  24  Normalizat    .76781        .15391        .65659E-06   -.15407E-03
  25  Prefactor     1.0415        .13052        .10865E-05    .80731E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.38093
  Prefactor  = 6.27785
  Prefactor  = 0.000100001
  Prefactor  = 7.75614
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 62.634
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.4408
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.3239
  norm       = 0.0001
  Prefactor  = 6.90624
  Prefactor  = 0.0001
  norm       = 5.50549
  Normalizat = 0.767809
  Prefactor  = 1.04147
 **********
 **   18 **HESSE 
 **********

 FCN=   7447.301     FROM HESSE     STATUS=OK           419 CALLS     3292 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.3809        20.247        .13081E-03   -1.5095    
   2  Prefactor     6.2778        6.3732        .80102E-03   -1.5207    
   3  Prefactor     .10000E-03    30.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.7561        3.6109        .10753E-03   -1.5151    
   5  Prefactor     .10000E-03    28.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.784        .34187E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.3999        .98990E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     62.634        71.611        .25366E-03   -1.4123    
   9  norm          .10000E-03    3.9872        .16759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.2816        .18750E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     23.441        26.863        .82752E-04   -1.4739    
  12  Prefactor     .10000E-03    3.4092        .30641E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.4901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    39.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.7842        .32179E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          16.324        12.942        .49566E-03   -1.4900    
  20  norm          .10000E-03    2.0362        .12010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.9062        5.7183        .15268E-03   -1.5182    
  22  Prefactor     .10000E-03    15.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          5.5055        1.5091        .51845E-04   -1.5239    
  24  Normalizat    .76781        .17744        .26329E-03   -1.0127    
  25  Prefactor     1.0415        .15342        .19978E-03   -.91360    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04825e-09
Minuit parameter uncertainties:
  1  20.2619
  2  6.37391
  3  0.000354945
  4  3.611
  5  0.000182571
  6  9.3968e-05
  7  1.35117e-05
  8  71.7094
  9  9.10623e-06
  10  1.19347e-05
  11  26.877
  12  4.66129e-05
  13  8.24081e-05
  14  5.46686e-05
  15  4.07122e-05
  16  1.42438e-05
  17  2.83791e-05
  18  9.82415e-05
  19  12.944
  20  4.13769e-07
  21  5.71874
  22  5.28898e-05
  23  1.50908
  24  0.177577
  25  0.153481
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 7447.3007558

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.000e-04  9.106e-06  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  1.609e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
347         beta:  1.036e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
348           Eb:  2.313e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  1.041e+00  1.535e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  7.678e-01  1.776e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 335.391 -52.431
Photon Flux Upper Limit: 2.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.01e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/264695/likelihoodResults_373852801_374112001_4FGL_J2221.5-5225_daily_bin519.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7447.30194969
delta logL = -0.00119389224437

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7447.30074744
delta logL = 8.36091203382e-06

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14183E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4597       1.0000          .0000       5.0000    
     3 'Normalizat'    .76781       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0415       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7447.301     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      265 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .17654        .61696E-01** at limit **
   2  alpha         2.4929        3.3699        .41158       -.73331E-05
   3  Normalizat    .76781        .14425E-02    .43189E-01    .38134E-04
   4  Prefactor     1.0415        .12640E-02    .40437E-01    .77522E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.49292
  Normalizat = 0.767811
  Prefactor  = 1.04147
 **********
 **   18 **HESSE 
 **********

 FCN=   7447.301     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      298 TOTAL
                     EDM=   .47E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    149.20        .18133E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4929        3.7452        .50000       -.28314E-02
   3  Normalizat    .76781        .10942E-01    .26329E-03   -1.0127    
   4  Prefactor     1.0415        .95912E-02    .19978E-03   -.91360    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.72457e-07
Minuit parameter uncertainties:
  1  0.000332572
  2  239.426
  3  0.0109416
  4  0.00959126
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/264695': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7447.30074609
delta logL = 9.71367444436e-06

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.000e-04  3.326e-04  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  2.493e+00  2.394e+02  0.000e+00  5.000e+00 ( 1.000e+00)
347         beta:  1.036e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
348           Eb:  2.313e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  1.041e+00  9.591e-03  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  7.678e-01  1.094e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 335.391 -52.431

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/264695/cmap_HighResolution_373852801_374112001_4FGL_J2221.5-5225_daily_bin519.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/264695

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.01e-05', job_status='DONE', photon_flux_upper_limit='2.48e-08', time_completed='2021-09-28 09:41:22.340902', job_id='264695', GAL2='1.04', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1632847282.34', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='9.71e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='519' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:41:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 264695: <4FGL_J2221.5-5225_daily_bin519> in cluster <slac> Done

Job <4FGL_J2221.5-5225_daily_bin519> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 09:25:51 2021
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:25:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 09:25:52 2021
Terminated at Tue Sep 28 09:41:22 2021
Results reported at Tue Sep 28 09:41:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin519 335.391 -52.4307 373852801 374112001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2221.5-5225 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   791.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             295.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            931 sec.

The output (if any) is above this job summary.

