/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 214 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 = 7393
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2221.5-5225_daily_bin307
RA = 335.391, Dec = -52.4307
tmin = 318902401, tmax = 319161601
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='264378', job_status='RUN', time_executed='2021-09-28 09:29:08.568893', time_epoch_executed='1632846548.57' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='307'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/264378

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/264378/ft1_4FGL_J2221.5-5225_daily_bin307.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/264378/ft2_4FGL_J2221.5-5225_daily_bin307.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/264378/ft1_4FGL_J2221.5-5225_daily_bin307.fits outfile=/scratch/kocevski/264378/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin307.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=318902401.0 tmax=319161601.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 3.44
user 3.24
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/264378/ft2_4FGL_J2221.5-5225_daily_bin307.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/264378/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin307.fits evtable="EVENTS" outfile="/scratch/kocevski/264378/ft1_filtered_4FGL_J2221.5-5225_daily_bin307.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.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/264378/ft1_filtered_4FGL_J2221.5-5225_daily_bin307.fits" evtable="EVENTS" scfile=/scratch/kocevski/264378/ft2_4FGL_J2221.5-5225_daily_bin307.fits sctable="SC_DATA" outfile=/scratch/kocevski/264378/ltcube_318902401_319161601_4FGL_J2221.5-5225_daily_bin307.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/264378/ft2_4FGL_J2221.5-5225_daily_bin307.fits
.....................!
real 13.32
user 12.97
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/264378/ft1_filtered_4FGL_J2221.5-5225_daily_bin307.fits evtable="EVENTS" scfile=/scratch/kocevski/264378/ft2_4FGL_J2221.5-5225_daily_bin307.fits sctable="SC_DATA" expcube=/scratch/kocevski/264378/ltcube_318902401_319161601_4FGL_J2221.5-5225_daily_bin307.fits outfile=/scratch/kocevski/264378/expmap_318902401_319161601_4FGL_J2221.5-5225_daily_bin307.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/264378/ltcube_318902401_319161601_4FGL_J2221.5-5225_daily_bin307.fits
.....................!
real 190.28
user 185.09
sys 4.90

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/264378/ft1_filtered_4FGL_J2221.5-5225_daily_bin307.fits scfile=/scratch/kocevski/264378/ft2_4FGL_J2221.5-5225_daily_bin307.fits outfile=/scratch/kocevski/264378/cmap_318902401_319161601_4FGL_J2221.5-5225_daily_bin307.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/264378/ft1_filtered_4FGL_J2221.5-5225_daily_bin307.fits scfile=/scratch/kocevski/264378/ft2_4FGL_J2221.5-5225_daily_bin307.fits outfile=/scratch/kocevski/264378/cmap_HighResolution_318902401_319161601_4FGL_J2221.5-5225_daily_bin307.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.53
user 0.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/264378/ft1_filtered_4FGL_J2221.5-5225_daily_bin307.fits evtable="EVENTS" scfile=/scratch/kocevski/264378/ft2_4FGL_J2221.5-5225_daily_bin307.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/264378/Model_4FGL_J2221.5-5225_daily_bin307.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/264378/ft1_filtered_4FGL_J2221.5-5225_daily_bin307.fits.....................!
real 56.91
user 55.65
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.245       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .38351E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.2531       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10366E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.932       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.7843       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.439       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 '    7.2606       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    20.900       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .85511       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98800       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=   7769.000     FROM MIGRAD    STATUS=CONVERGED    579 CALLS     2475 TOTAL
                     EDM=   .84E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.2588        .88432E-06** at limit **
   2  Prefactor     17.244        7.8488        .23162E-07    .97872E-06
   3  Prefactor     .10004E-03    18.036       -.57817E-06** at limit **
   4  Prefactor     5.2529        3.6465        .69386E-07   -.93955E-03
   5  Prefactor     .10000E-03    18.241        .17597E-05** at limit **
   6  Prefactor     .10000E-03    3.2323       -.10763E-06** at limit **
   7  Prefactor     .10000E-03    2.7466       -.72977E-06** at limit **
   8  Prefactor     .10000E-03    95.983       -.55525E-06** at limit **
   9  norm          .10000E-03    1.9619        .28423E-08** at limit **
  10  Prefactor     .10000E-03    1.6055        .15311E-06** at limit **
  11  Prefactor     .10000E-03    9.4929       -.19646E-05** at limit **
  12  Prefactor     .10000E-03    2.7161        .58375E-06** at limit **
  13  Prefactor     14.931        18.166        .65923E-07   -.37331E-04
  14  Prefactor     .10000E-03    2.2829       -.30340E-08** at limit **
  15  Prefactor     .10000E-03    20.647       -.57616E-05** at limit **
  16  Prefactor     2.7844        2.4251        .36023E-07   -.12271E-02
  17  Prefactor     .10000E-03    10.185        .12101E-05** at limit **
  18  Prefactor     11.443        17.026       -.14284E-05   -.25655E-04
  19  norm          .10000E-03    3.1894       -.42199E-07** at limit **
  20  norm          .10000E-03    1.8127       -.52830E-08** at limit **
  21  Prefactor     7.2604        5.5920        .17263E-05   -.58100E-04
  22  Prefactor     .10000E-03    23.333        .38920E-05** at limit **
  23  norm          20.900        2.6705       -.44507E-07   -.20370E-03
  24  Normalizat    .85519        .15749        .10185E-07    .18220E-04
  25  Prefactor     .98799        .12936        .72889E-09    .55236E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 17.2443
  Prefactor  = 0.000100039
  Prefactor  = 5.25285
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.9312
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.78437
  Prefactor  = 0.0001
  Prefactor  = 11.4433
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7.26039
  Prefactor  = 0.0001
  norm       = 20.9002
  Normalizat = 0.855193
  Prefactor  = 0.987985
 **********
 **   18 **HESSE 
 **********

 FCN=   7769.000     FROM HESSE     STATUS=OK           425 CALLS     2900 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.2625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.244        7.8433        .96448E-04   -1.4877    
   3  Prefactor     .10004E-03    133.43        .70005E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.2529        4.1166        .74664E-03   -1.5250    
   5  Prefactor     .10000E-03    18.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.2685        .15469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.8460        .28463E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    96.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.9635        .12057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.0768        .21404E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.5063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.8128        .28329E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.931        18.222        .51825E-03   -1.4935    
  14  Prefactor     .10000E-03    2.2865        .13003E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    20.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.7844        4.5363        .11680E-02   -1.5374    
  17  Prefactor     .10000E-03    10.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.443        17.055        .11845E-03   -1.5031    
  19  norm          .10000E-03    3.1907        .15374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.8134        .11589E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.2604        5.5697        .14886E-03   -1.5169    
  22  Prefactor     .10000E-03    23.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          20.900        2.6733        .47256E-04   -1.4793    
  24  Normalizat    .85519        .18141        .26930E-03   -.98053    
  25  Prefactor     .98799        .15037        .21266E-03   -.93131    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71296e-09
Minuit parameter uncertainties:
  1  2.44111e-06
  2  7.84374
  3  0.00458705
  4  4.11684
  5  1.27619e-06
  6  6.12796e-08
  7  4.49155e-06
  8  3.72121e-06
  9  1.2244e-07
  10  2.8586e-05
  11  4.56143e-06
  12  3.49904e-06
  13  18.2289
  14  1.18816e-07
  15  1.69787e-05
  16  4.53683
  17  2.94483e-06
  18  17.0625
  19  8.90776e-07
  20  6.87695e-07
  21  5.57011
  22  0.000160039
  23  2.67336
  24  0.18154
  25  0.150432
Done.

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

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.000e-04  1.224e-07  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:  9.880e-01  1.504e-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:  8.552e-01  1.815e-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: 1.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.74e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/264378/likelihoodResults_318902401_319161601_4FGL_J2221.5-5225_daily_bin307.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) = 7769.00206806
delta logL = -0.00237161668701

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7768.9996966
delta logL = -1.50258529175e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6095       1.0000          .0000       5.0000    
     3 'Normalizat'    .85528       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98791       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.

 FCN=   7769.000     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      224 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    4.5266        .12057E-02** at limit **
   2  alpha         1.6247        3.2556        .18026       -.95536E-06
   3  Normalizat    .85519        .17541        .26930E-03    .14353E-05
   4  Prefactor     .98798        .14874        .21266E-03    .34748E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100012
  alpha      = 1.62474
  Normalizat = 0.855193
  Prefactor  = 0.987985
 **********
 **   18 **HESSE 
 **********

 FCN=   7769.000     FROM HESSE     STATUS=OK            23 CALLS      247 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    1.9643        .24114E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6247        2.7068        .72104E-02   -.35768    
   3  Normalizat    .85519        .17559        .10772E-04   -.98053    
   4  Prefactor     .98798        .14889        .85065E-05   -.93131    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24687e-08
Minuit parameter uncertainties:
  1  0.000302592
  2  197.364
  3  0.175705
  4  0.148951
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/264378': 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) = 7768.99969644
delta logL = 6.88396539772e-09

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.000e-04  3.026e-04  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  1.625e+00  1.974e+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:  9.880e-01  1.490e-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:  8.552e-01  1.757e-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/264378/cmap_HighResolution_318902401_319161601_4FGL_J2221.5-5225_daily_bin307.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.74e-05', job_status='DONE', photon_flux_upper_limit='1.85e-08', time_completed='2021-09-28 09:42:00.680958', job_id='264378', GAL2='0.99', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1632847320.68', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='6.88e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='307' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:42:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 264378: <4FGL_J2221.5-5225_daily_bin307> in cluster <slac> Done

Job <4FGL_J2221.5-5225_daily_bin307> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 09:25:26 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:25:27 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:27 2021
Terminated at Tue Sep 28 09:42:01 2021
Results reported at Tue Sep 28 09:42:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin307 335.391 -52.4307 318902401 319161601 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 :                                   772.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             279.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   993 sec.
    Turnaround time :                            995 sec.

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

