/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 38 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 = 7542
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2221.5-5225_daily_bin1492
RA = 335.391, Dec = -52.4307
tmin = 626054401, tmax = 626313601
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='268811', job_status='RUN', time_executed='2021-09-28 09:41:25.487671', time_epoch_executed='1632847285.49' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='1492'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/268811

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/268811/ft1_4FGL_J2221.5-5225_daily_bin1492.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/268811/ft2_4FGL_J2221.5-5225_daily_bin1492.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/268811/ft1_4FGL_J2221.5-5225_daily_bin1492.fits outfile=/scratch/kocevski/268811/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin1492.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=626054401.0 tmax=626313601.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.09
user 3.85
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/268811/ft2_4FGL_J2221.5-5225_daily_bin1492.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/268811/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin1492.fits evtable="EVENTS" outfile="/scratch/kocevski/268811/ft1_filtered_4FGL_J2221.5-5225_daily_bin1492.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/268811/ft1_filtered_4FGL_J2221.5-5225_daily_bin1492.fits" evtable="EVENTS" scfile=/scratch/kocevski/268811/ft2_4FGL_J2221.5-5225_daily_bin1492.fits sctable="SC_DATA" outfile=/scratch/kocevski/268811/ltcube_626054401_626313601_4FGL_J2221.5-5225_daily_bin1492.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/268811/ft2_4FGL_J2221.5-5225_daily_bin1492.fits
.....................!
real 11.84
user 11.48
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/268811/ft1_filtered_4FGL_J2221.5-5225_daily_bin1492.fits evtable="EVENTS" scfile=/scratch/kocevski/268811/ft2_4FGL_J2221.5-5225_daily_bin1492.fits sctable="SC_DATA" expcube=/scratch/kocevski/268811/ltcube_626054401_626313601_4FGL_J2221.5-5225_daily_bin1492.fits outfile=/scratch/kocevski/268811/expmap_626054401_626313601_4FGL_J2221.5-5225_daily_bin1492.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/268811/ltcube_626054401_626313601_4FGL_J2221.5-5225_daily_bin1492.fits
.....................!
real 191.75
user 187.43
sys 3.99

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/268811/ft1_filtered_4FGL_J2221.5-5225_daily_bin1492.fits scfile=/scratch/kocevski/268811/ft2_4FGL_J2221.5-5225_daily_bin1492.fits outfile=/scratch/kocevski/268811/cmap_626054401_626313601_4FGL_J2221.5-5225_daily_bin1492.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.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/268811/ft1_filtered_4FGL_J2221.5-5225_daily_bin1492.fits scfile=/scratch/kocevski/268811/ft2_4FGL_J2221.5-5225_daily_bin1492.fits outfile=/scratch/kocevski/268811/cmap_HighResolution_626054401_626313601_4FGL_J2221.5-5225_daily_bin1492.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.54
user 0.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/268811/ft1_filtered_4FGL_J2221.5-5225_daily_bin1492.fits evtable="EVENTS" scfile=/scratch/kocevski/268811/ft2_4FGL_J2221.5-5225_daily_bin1492.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/268811/Model_4FGL_J2221.5-5225_daily_bin1492.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/268811/ft1_filtered_4FGL_J2221.5-5225_daily_bin1492.fits.....................!
real 57.13
user 55.86
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/268811/ft1_filtered_4FGL_J2221.5-5225_daily_bin1492.fits', '/scratch/kocevski/268811/ft2_4FGL_J2221.5-5225_daily_bin1492.fits', expMap='/scratch/kocevski/268811/expmap_626054401_626313601_4FGL_J2221.5-5225_daily_bin1492.fits', expCube='/scratch/kocevski/268811/ltcube_626054401_626313601_4FGL_J2221.5-5225_daily_bin1492.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/268811/Model_4FGL_J2221.5-5225_daily_bin1492.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/268811/ft1_filtered_4FGL_J2221.5-5225_daily_bin1492.fits
Spacecraft file(s): /scratch/kocevski/268811/ft2_4FGL_J2221.5-5225_daily_bin1492.fits
Exposure map: /scratch/kocevski/268811/expmap_626054401_626313601_4FGL_J2221.5-5225_daily_bin1492.fits
Exposure cube: /scratch/kocevski/268811/ltcube_626054401_626313601_4FGL_J2221.5-5225_daily_bin1492.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/268811/Model_4FGL_J2221.5-5225_daily_bin1492.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) = 7982.12399375

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .21188E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.866       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10322E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    36.852       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.3380       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10336E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .23940E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.4119       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .16466E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11181E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .98317E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.5194       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.6536       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.1699       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10714       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .73383       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1771       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=   7982.020     FROM MIGRAD    STATUS=CONVERGED    588 CALLS     2946 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.735       -.72385E-06** at limit **
   2  Prefactor     .10000E-03    3.2019        .16719E-06** at limit **
   3  Prefactor     21.875        21.939        .71557E-06    .96330E-04
   4  Prefactor     .10000E-03    1.7848       -.10471E-06** at limit **
   5  Prefactor     36.828        25.343       -.17179E-05   -.30520E-03
   6  Prefactor     .10000E-03    2.8044       -.23132E-06** at limit **
   7  Prefactor     1.3379        1.6657        .42090E-07    .10427E-04
   8  Prefactor     .10000E-03    23.620        .62762E-06** at limit **
   9  norm          .10000E-03    3.3562        .40467E-06** at limit **
  10  Prefactor     2.4117        2.4090        .14039E-06    .55534E-05
  11  Prefactor     .10000E-03    7.0560       -.16422E-06** at limit **
  12  Prefactor     .10000E-03    4.5583       -.51813E-06** at limit **
  13  Prefactor     .10000E-03    23.321        .72177E-06** at limit **
  14  Prefactor     .10000E-03    5.1482       -.31134E-06** at limit **
  15  Prefactor     .10000E-03    29.413       -.73930E-06** at limit **
  16  Prefactor     4.5194        4.4760        .10270E-06    .39918E-04
  17  Prefactor     .10000E-03    8.4814        .73468E-07** at limit **
  18  Prefactor     6.6431        10.038        .33653E-05   -.48863E-04
  19  norm          .10000E-03    4.8088        .44436E-06** at limit **
  20  norm          .10000E-03    1.5807       -.40672E-07** at limit **
  21  Prefactor     2.1715        3.5288        .32516E-07   -.64043E-04
  22  Prefactor     .10000E-03    9.8496        .94640E-07** at limit **
  23  norm          .10788        .58595       -.69236E-07   -.66697E-03
  24  Normalizat    .73361        .15095       -.33680E-06    .50630E-04
  25  Prefactor     1.1772        .12722       -.10792E-06    .24034E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.8745
  Prefactor  = 0.000100002
  Prefactor  = 36.8277
  Prefactor  = 0.0001
  Prefactor  = 1.33789
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 2.41173
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 4.51939
  Prefactor  = 0.0001
  Prefactor  = 6.64312
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.17152
  Prefactor  = 0.0001
  norm       = 0.107881
  Normalizat = 0.733611
  Prefactor  = 1.17722
 **********
 **   18 **HESSE 
 **********

 FCN=   7982.020     FROM HESSE     STATUS=OK           429 CALLS     3375 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.3152        .30858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     21.875        21.828        .85657E-04   -1.4772    
   4  Prefactor     .10000E-03    7.9805        .22388E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     36.828        26.334        .66019E-04   -1.4494    
   6  Prefactor     .10000E-03    2.8252        .14594E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.3379        1.6487        .12456E-03   -1.5477    
   8  Prefactor     .10000E-03    23.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    10.574        .31678E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.4117        2.4008        .13274E-03   -1.5397    
  11  Prefactor     .10000E-03    7.0592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.7355        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    23.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.654        .38857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    29.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.5194        4.4738        .18298E-03   -1.5283    
  17  Prefactor     .10000E-03    8.4850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.6431        10.241        .77783E-03   -1.5192    
  19  norm          .10000E-03    4.8389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.5818        .10970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.1715        3.4839        .20381E-03   -1.5413    
  22  Prefactor     .10000E-03    9.8807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10788        1.1825        .12670E-02   -1.5642    
  24  Normalizat    .73361        .17303        .27200E-03   -1.0258    
  25  Prefactor     1.1772        .14799        .19244E-03   -.87035    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.88238e-08
Minuit parameter uncertainties:
  1  0.000101921
  2  1.67351e-05
  3  21.8357
  4  0.000263294
  5  26.3428
  6  7.52763e-06
  7  1.64872
  8  0.00011465
  9  0.000232274
  10  2.40092
  11  1.41655e-05
  12  1.65629e-05
  13  0.000123862
  14  0.000282339
  15  0.000125936
  16  4.47416
  17  6.23554e-06
  18  10.2435
  19  2.89246e-05
  20  2.0452e-06
  21  3.48424
  22  8.93373e-06
  23  0.714028
  24  0.173156
  25  0.148039
Done.

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

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.000e-04  2.323e-04  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.177e+00  1.480e-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.336e-01  1.732e-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.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.72e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/268811/likelihoodResults_626054401_626313601_4FGL_J2221.5-5225_daily_bin1492.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) = 7982.02024553
delta logL = -0.00044777794119

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7982.01978743
delta logL = 1.03181955637e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .20413E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8101       1.0000          .0000       5.0000    
     3 'Normalizat'    .73339       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1774       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7981.909     FROM MIGRAD    STATUS=FAILED       145 CALLS      324 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .57606        7.4514        .14635E-03   -.78457E-04
   2  alpha         2.8038        3.8091        .15608E-01    .13648E-03
   3  Normalizat    .72591        .17079        .27333E-03    .39389E-04
   4  Prefactor     1.1770        .14878        .19243E-03    .47995E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7981.909     FROM SIMPLEX   STATUS=UNCHANGED     90 CALLS      414 TOTAL
                     EDM=   .85E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .57606        7.4514        .11257E-03   -1.5556    
   2  alpha         2.8038        3.8091        .25278E-02    .12181    
   3  Normalizat    .72591        .17079        .14659E-03   -1.0288    
   4  Prefactor     1.1770        .14878        .14433E-03   -.87042    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7981.909     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      449 TOTAL
                     EDM=   .44E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .57605        2.4810        .58541E-05   -.10448E-03
   2  alpha         2.8038        1.6965        .31215E-02   -.32851E-05
   3  Normalizat    .72591        .16891        .10933E-04    .24540E-04
   4  Prefactor     1.1770        .14761        .38487E-04    .30485E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.576052
  alpha      = 2.80378
  Normalizat = 0.725912
  Prefactor  = 1.17699
 **********
 **   18 **HESSE 
 **********

 FCN=   7981.909     FROM HESSE     STATUS=OK            23 CALLS      472 TOTAL
                     EDM=   .44E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .57605        2.2578        .11708E-05   -1.5556    
   2  alpha         2.8038        1.6189        .12486E-03    .12181    
   3  Normalizat    .72591        .16878        .21866E-05   -1.0288    
   4  Prefactor     1.1770        .14753        .76973E-05   -.87042    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.39332e-12
Minuit parameter uncertainties:
  1  2.25813
  2  1.76366
  3  0.168905
  4  0.147581
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/268811': 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): 0
logL (Free Index) = 7981.90871291
delta logL = 0.111084842209

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  5.761e-01  2.258e+00  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  2.804e+00  1.764e+00  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.177e+00  1.476e-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.259e-01  1.689e-01  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/268811/cmap_HighResolution_626054401_626313601_4FGL_J2221.5-5225_daily_bin1492.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.72e-05', job_status='DONE', photon_flux_upper_limit='2.33e-08', time_completed='2021-09-28 09:55:26.589759', job_id='268811', GAL2='1.18', fit_tolerance='1e-08', EG2='0.73', EG='0.73', time_epoch_completed='1632848126.59', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='1.11e-01', ts2='0.23', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='1492' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:55:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 268811: <4FGL_J2221.5-5225_daily_bin1492> in cluster <slac> Done

Job <4FGL_J2221.5-5225_daily_bin1492> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 09:40:37 2021
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:40:38 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:40:38 2021
Terminated at Tue Sep 28 09:55:27 2021
Results reported at Tue Sep 28 09:55:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin1492 335.391 -52.4307 626054401 626313601 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 :                                   840.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             291.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            890 sec.

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

