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


Performing analysis on: 4FGL_J2221.5-5225_daily_bin138
RA = 335.391, Dec = -52.4307
tmin = 275097601, tmax = 275356801
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='263091', job_status='RUN', time_executed='2021-09-28 09:21:10.907056', time_epoch_executed='1632846070.91' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='138'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/263091

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/263091/ft1_4FGL_J2221.5-5225_daily_bin138.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/263091/ft2_4FGL_J2221.5-5225_daily_bin138.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/263091/ft1_4FGL_J2221.5-5225_daily_bin138.fits outfile=/scratch/kocevski/263091/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin138.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=275097601.0 tmax=275356801.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.93
user 4.66
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/263091/ft1_filtered_4FGL_J2221.5-5225_daily_bin138.fits" evtable="EVENTS" scfile=/scratch/kocevski/263091/ft2_4FGL_J2221.5-5225_daily_bin138.fits sctable="SC_DATA" outfile=/scratch/kocevski/263091/ltcube_275097601_275356801_4FGL_J2221.5-5225_daily_bin138.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/263091/ft2_4FGL_J2221.5-5225_daily_bin138.fits
.....................!
real 11.48
user 11.14
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/263091/ft1_filtered_4FGL_J2221.5-5225_daily_bin138.fits evtable="EVENTS" scfile=/scratch/kocevski/263091/ft2_4FGL_J2221.5-5225_daily_bin138.fits sctable="SC_DATA" expcube=/scratch/kocevski/263091/ltcube_275097601_275356801_4FGL_J2221.5-5225_daily_bin138.fits outfile=/scratch/kocevski/263091/expmap_275097601_275356801_4FGL_J2221.5-5225_daily_bin138.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/263091/ltcube_275097601_275356801_4FGL_J2221.5-5225_daily_bin138.fits
.....................!
real 189.99
user 184.87
sys 4.78

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/263091/ft1_filtered_4FGL_J2221.5-5225_daily_bin138.fits scfile=/scratch/kocevski/263091/ft2_4FGL_J2221.5-5225_daily_bin138.fits outfile=/scratch/kocevski/263091/cmap_275097601_275356801_4FGL_J2221.5-5225_daily_bin138.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/263091/ft1_filtered_4FGL_J2221.5-5225_daily_bin138.fits scfile=/scratch/kocevski/263091/ft2_4FGL_J2221.5-5225_daily_bin138.fits outfile=/scratch/kocevski/263091/cmap_HighResolution_275097601_275356801_4FGL_J2221.5-5225_daily_bin138.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/263091/ft1_filtered_4FGL_J2221.5-5225_daily_bin138.fits evtable="EVENTS" scfile=/scratch/kocevski/263091/ft2_4FGL_J2221.5-5225_daily_bin138.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/263091/Model_4FGL_J2221.5-5225_daily_bin138.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/263091/ft1_filtered_4FGL_J2221.5-5225_daily_bin138.fits.....................!
real 39.12
user 37.81
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10499E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    89.528       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    32.100       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.8934       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10343E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.8130       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .27660E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13077E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.6828       1.0000         .10000E-03   10000.    
    15 'Prefactor '    136.09       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.1903       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10253E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.122       1.0000         .10000E-03   10000.    
    19 'norm      '    12.815       1.0000         .10000E-03   10000.    
    20 'norm      '    .10128E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    17.626       1.0000         .10000E-03   10000.    
    23 'norm      '    2.8357       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4285       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .71328       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=   4478.199     FROM MIGRAD    STATUS=CONVERGED    567 CALLS     2931 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    38.622       -.18671E-05** at limit **
   2  Prefactor     .10000E-03    8.9013       -.39190E-06** at limit **
   3  Prefactor     89.455        43.916       -.41709E-05   -.38806E-03
   4  Prefactor     .10000E-03    1.5613       -.25222E-06** at limit **
   5  Prefactor     32.086        36.297       -.12564E-05   -.98732E-04
   6  Prefactor     .10000E-03    2.8663       -.13928E-06** at limit **
   7  Prefactor     1.8935        4.3461       -.88432E-07   -.11317E-03
   8  Prefactor     .10000E-03    37.025       -.13087E-05** at limit **
   9  norm          .10000E-03    3.4068       -.89755E-07** at limit **
  10  Prefactor     3.8090        5.5591        .85547E-08   -.25898E-03
  11  Prefactor     .10000E-03    21.537        .17346E-07** at limit **
  12  Prefactor     .10015E-03    9.5574        .38520E-05** at limit **
  13  Prefactor     .10000E-03    59.045        .31292E-05** at limit **
  14  Prefactor     4.6383        16.950        .96727E-05    .12205E-03
  15  Prefactor     136.42        200.42        .58379E-05    .74337E-04
  16  Prefactor     7.1972        14.639        .67298E-07   -.48533E-04
  17  Prefactor     .10000E-03    43.168        .27489E-05** at limit **
  18  Prefactor     12.125        16.834       -.35561E-06   -.13155E-03
  19  norm          12.816        12.426       -.23813E-07   -.18782E-04
  20  norm          .10022E-03    7.5620        .15182E-05** at limit **
  21  Prefactor     .10000E-03    8.8293        .93879E-06** at limit **
  22  Prefactor     17.643        21.636        .61700E-06   -.53940E-04
  23  norm          2.8353        1.8089       -.21221E-07   -.72947E-03
  24  Normalizat    1.4287        .23029        .36773E-06   -.53095E-03
  25  Prefactor     .71320        .17636       -.17638E-05   -.40221E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 89.4548
  Prefactor  = 0.0001
  Prefactor  = 32.0864
  Prefactor  = 0.0001
  Prefactor  = 1.89352
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.80899
  Prefactor  = 0.0001
  Prefactor  = 0.000100154
  Prefactor  = 0.000100001
  Prefactor  = 4.63829
  Prefactor  = 136.423
  Prefactor  = 7.19724
  Prefactor  = 0.0001
  Prefactor  = 12.1249
  norm       = 12.8157
  norm       = 0.000100219
  Prefactor  = 0.0001
  Prefactor  = 17.643
  norm       = 2.83528
  Normalizat = 1.42874
  Prefactor  = 0.713204
 **********
 **   18 **HESSE 
 **********

 FCN=   4478.199     FROM HESSE     STATUS=OK           423 CALLS     3354 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    38.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.0188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     89.455        44.341        .21233E-03   -1.3814    
   4  Prefactor     .10000E-03    1.5652        .81622E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     32.086        36.334        .70722E-04   -1.4574    
   6  Prefactor     .10000E-03    2.8686        .11063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.8935        4.3251        .20103E-03   -1.5433    
   8  Prefactor     .10000E-03    37.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.4083        .12064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.8090        5.5458        .18003E-03   -1.5318    
  11  Prefactor     .10000E-03    21.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10015E-03    22.866        .36226E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    58.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.6383        17.457        .92983E-03   -1.5277    
  15  Prefactor     136.42        204.65        .17262E-03   -1.3367    
  16  Prefactor     7.1972        14.638        .14959E-03   -1.5171    
  17  Prefactor     .10000E-03    43.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.125        16.766        .11505E-03   -1.5011    
  19  norm          12.816        12.427        .11189E-03   -1.4992    
  20  norm          .10022E-03    56.202        .34246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.8629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     17.643        21.512        .95399E-04   -1.4868    
  23  norm          2.8353        1.7707        .66989E-04   -1.5371    
  24  Normalizat    1.4287        .26517        .24081E-03   -.79801    
  25  Prefactor     .71320        .20264        .26023E-03   -1.0301    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11691e-08
Minuit parameter uncertainties:
  1  5.71448e-05
  2  5.87029e-06
  3  44.3569
  4  8.95206e-07
  5  36.3595
  6  2.17909e-06
  7  4.32586
  8  0.000141636
  9  7.28027e-06
  10  5.54651
  11  1.88704e-06
  12  0.00375389
  13  0.000473633
  14  17.4766
  15  205.729
  16  14.6448
  17  0.000138273
  18  16.7723
  19  12.4297
  20  0.00702736
  21  5.52225e-06
  22  21.5217
  23  1.77069
  24  0.265421
  25  0.20285
Done.

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

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.000e-04  7.280e-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:  7.132e-01  2.028e-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:  1.429e+00  2.654e-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: 3.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.56e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/263091/likelihoodResults_275097601_275356801_4FGL_J2221.5-5225_daily_bin138.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) = 4478.20033423
delta logL = -0.0011358645188

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4478.19919837
delta logL = -3.87990439776e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6095       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4287       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71320       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=   4478.199     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      230 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.9569        .12064E-02** at limit **
   2  alpha         1.6522        3.4415        .18026       -.49445E-07
   3  Normalizat    1.4287        .25178        .24081E-03    .15154E-04
   4  Prefactor     .71320        .20075        .26023E-03    .12407E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.65221
  Normalizat = 1.42875
  Prefactor  = 0.713204
 **********
 **   18 **HESSE 
 **********

 FCN=   4478.199     FROM HESSE     STATUS=OK            23 CALLS      253 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.4112        .24128E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6522        2.9421        .72104E-02   -.34598    
   3  Normalizat    1.4287        .25200        .96325E-05   -.79801    
   4  Prefactor     .71320        .20093        .10409E-04   -1.0301    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.46008e-11
Minuit parameter uncertainties:
  1  2.08771e-05
  2  296.53
  3  0.252216
  4  0.201132
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/263091': 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) = 4478.19919836
delta logL = 1.21754055726e-08

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.000e-04  2.088e-05  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  1.652e+00  2.965e+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:  7.132e-01  2.011e-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:  1.429e+00  2.522e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/263091/cmap_HighResolution_275097601_275356801_4FGL_J2221.5-5225_daily_bin138.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.56e-05', job_status='DONE', photon_flux_upper_limit='3.24e-08', time_completed='2021-09-28 09:31:12.356184', job_id='263091', GAL2='0.71', fit_tolerance='1e-08', EG2='1.43', EG='1.43', time_epoch_completed='1632846672.36', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='1.22e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='138' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:31:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 263091: <4FGL_J2221.5-5225_daily_bin138> in cluster <slac> Done

Job <4FGL_J2221.5-5225_daily_bin138> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 09:20:52 2021
Job was executed on host(s) <bullet0111>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:20:54 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:20:54 2021
Terminated at Tue Sep 28 09:31:13 2021
Results reported at Tue Sep 28 09:31:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin138 335.391 -52.4307 275097601 275356801 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 :                                   600.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             355.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   618 sec.
    Turnaround time :                            621 sec.

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

