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


Performing analysis on: 4FGL_J2221.5-5225_daily_bin1041
RA = 335.391, Dec = -52.4307
tmin = 509155201, tmax = 509414401
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='267132', job_status='RUN', time_executed='2021-09-28 09:36:10.708608', time_epoch_executed='1632846970.71' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='1041'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/267132

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/267132/ft1_4FGL_J2221.5-5225_daily_bin1041.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/267132/ft2_4FGL_J2221.5-5225_daily_bin1041.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/267132/ft1_4FGL_J2221.5-5225_daily_bin1041.fits outfile=/scratch/kocevski/267132/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin1041.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=509155201.0 tmax=509414401.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.62
user 3.43
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/267132/ft2_4FGL_J2221.5-5225_daily_bin1041.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/267132/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin1041.fits evtable="EVENTS" outfile="/scratch/kocevski/267132/ft1_filtered_4FGL_J2221.5-5225_daily_bin1041.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/267132/ft1_filtered_4FGL_J2221.5-5225_daily_bin1041.fits" evtable="EVENTS" scfile=/scratch/kocevski/267132/ft2_4FGL_J2221.5-5225_daily_bin1041.fits sctable="SC_DATA" outfile=/scratch/kocevski/267132/ltcube_509155201_509414401_4FGL_J2221.5-5225_daily_bin1041.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/267132/ft2_4FGL_J2221.5-5225_daily_bin1041.fits
.....................!
real 11.77
user 11.38
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/267132/ft1_filtered_4FGL_J2221.5-5225_daily_bin1041.fits evtable="EVENTS" scfile=/scratch/kocevski/267132/ft2_4FGL_J2221.5-5225_daily_bin1041.fits sctable="SC_DATA" expcube=/scratch/kocevski/267132/ltcube_509155201_509414401_4FGL_J2221.5-5225_daily_bin1041.fits outfile=/scratch/kocevski/267132/expmap_509155201_509414401_4FGL_J2221.5-5225_daily_bin1041.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/267132/ltcube_509155201_509414401_4FGL_J2221.5-5225_daily_bin1041.fits
.....................!
real 189.41
user 184.91
sys 4.19

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/267132/ft1_filtered_4FGL_J2221.5-5225_daily_bin1041.fits scfile=/scratch/kocevski/267132/ft2_4FGL_J2221.5-5225_daily_bin1041.fits outfile=/scratch/kocevski/267132/cmap_509155201_509414401_4FGL_J2221.5-5225_daily_bin1041.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/267132/ft1_filtered_4FGL_J2221.5-5225_daily_bin1041.fits scfile=/scratch/kocevski/267132/ft2_4FGL_J2221.5-5225_daily_bin1041.fits outfile=/scratch/kocevski/267132/cmap_HighResolution_509155201_509414401_4FGL_J2221.5-5225_daily_bin1041.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/267132/ft1_filtered_4FGL_J2221.5-5225_daily_bin1041.fits evtable="EVENTS" scfile=/scratch/kocevski/267132/ft2_4FGL_J2221.5-5225_daily_bin1041.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/267132/Model_4FGL_J2221.5-5225_daily_bin1041.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/267132/ft1_filtered_4FGL_J2221.5-5225_daily_bin1041.fits.....................!
real 44.37
user 43.10
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10257E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.321       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    43.729       1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.575       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    305.47       1.0000         .10000E-03   10000.    
     9 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.5998       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .49357E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.9914       1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.207       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .43550E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.8046       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .36111E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    9.2957       1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.763       1.0000         .10000E-03   10000.    
    23 'norm      '    1.7290       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .95968       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1748       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5326.023     FROM MIGRAD    STATUS=CONVERGED    112 CALLS     2168 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10099E-03    15.039        .22902E-04** at limit **
   2  Prefactor     18.373        2.9823        .89335E-07    .76590E-02
   3  Prefactor     .10140E-03    13.349       -.13278E-04** at limit **
   4  Prefactor     .10000E-03    4.8079       -.36836E-05** at limit **
   5  Prefactor     43.364        61.212       -.53145E-04   -.99478E-03
   6  Prefactor     15.568        6.7095        .28919E-05    .26735E-03
   7  Prefactor     .10000E-03    4.0041       -.26430E-05** at limit **
   8  Prefactor     305.56        15.166        .58384E-05   -.23683E-01
   9  norm          .10000E-03    5.8008       -.29747E-06** at limit **
  10  Prefactor     5.5994        5.1824        .55714E-05    .48995E-03
  11  Prefactor     .10029E-03    1.6625       -.19576E-04** at limit **
  12  Prefactor     7.0365        8.4188       -.40690E-04   -.51027E-02
  13  Prefactor     19.231        3.9114       -.30986E-05    .69465E-02
  14  Prefactor     .10000E-03    12.708       -.82447E-05** at limit **
  15  Prefactor     .10005E-03    48.124       -.71425E-04** at limit **
  16  Prefactor     7.8070        1.0198       -.74893E-07    .19106E-03
  17  Prefactor     .10013E-03    18.028       -.37078E-04** at limit **
  18  Prefactor     .10001E-03    52.278        .13518E-03** at limit **
  19  norm          9.2910        1.0307       -.46602E-06    .30403E-03
  20  norm          .10000E-03    2.9086       -.52664E-05** at limit **
  21  Prefactor     .10000E-03    2.9723       -.45188E-05** at limit **
  22  Prefactor     10.847        5.3617       -.17630E-04    .28173E-02
  23  norm          1.7293        1.3373       -.55786E-06    .27227E-03
  24  Normalizat    .95965        .25865        .43046E-04    .87747E-04
  25  Prefactor     1.1748        .20944       -.21664E-04    .49900E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100993
  Prefactor  = 18.3733
  Prefactor  = 0.000101397
  Prefactor  = 0.0001
  Prefactor  = 43.3637
  Prefactor  = 15.5676
  Prefactor  = 0.0001
  Prefactor  = 305.556
  norm       = 0.0001
  Prefactor  = 5.5994
  Prefactor  = 0.000100293
  Prefactor  = 7.03651
  Prefactor  = 19.2314
  Prefactor  = 0.0001
  Prefactor  = 0.000100048
  Prefactor  = 7.80699
  Prefactor  = 0.000100127
  Prefactor  = 0.000100014
  norm       = 9.29096
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.847
  norm       = 1.72933
  Normalizat = 0.959647
  Prefactor  = 1.1748
 **********
 **   18 **HESSE 
 **********

 FCN=   5326.023     FROM HESSE     STATUS=OK           483 CALLS     2651 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10099E-03    25.891        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     18.373        11.797        .23393E-02   -1.4850    
   3  Prefactor     .10140E-03    24.292        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.6996        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     43.364        63.027        .15156E-02   -1.4390    
   6  Prefactor     15.568        21.365        .25372E-02   -1.4919    
   7  Prefactor     .10000E-03    3.9132        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     305.56        234.36        .58110E-03   -1.2194    
   9  norm          .10000E-03    5.7303        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.5994        5.2073        .42442E-02   -1.5235    
  11  Prefactor     .10029E-03    30.305        .10582E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.0365        9.2739        .37931E-02   -1.5177    
  13  Prefactor     19.231        30.458        .22847E-02   -1.4831    
  14  Prefactor     .10000E-03    12.601        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10005E-03    50.834        .92386E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.8070        7.9340        .35883E-02   -1.5149    
  17  Prefactor     .10013E-03    18.629        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    11.745        .92021E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          9.2910        10.133        .32862E-02   -1.5098    
  20  norm          .10000E-03    2.9085        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.9701        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     10.847        17.390        .30531E-02   -1.5049    
  23  norm          1.7293        1.3774        .79825E-02   -1.5445    
  24  Normalizat    .95965        .22444        .66622E-01   -.94395    
  25  Prefactor     1.1748        .17629        .50535E-01   -.87110    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10905e-05
Minuit parameter uncertainties:
  1  0.0101453
  2  11.7986
  3  0.0116574
  4  1.96391e-05
  5  63.1237
  6  21.3756
  7  2.54003e-05
  8  235.091
  9  1.15118e-05
  10  5.20777
  11  0.00596061
  12  9.27583
  13  30.4825
  14  6.41894e-05
  15  0.00311842
  16  7.93504
  17  0.0030824
  18  0.000815589
  19  10.1347
  20  1.34737e-05
  21  1.56969e-05
  22  17.3979
  23  1.37744
  24  0.224656
  25  0.176375
Done.

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

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.000e-04  1.151e-05  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.175e+00  1.764e-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:  9.596e-01  2.247e-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.31e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.70e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/267132/likelihoodResults_509155201_509414401_4FGL_J2221.5-5225_daily_bin1041.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) = 5326.0237117
delta logL = -0.000818158588118

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5326.02289413
delta logL = -5.89599949308e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11216E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6440       1.0000          .0000       5.0000    
     3 'Normalizat'    .95970       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1748       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=   5326.023     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      203 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.2736        .90712E-02** at limit **
   2  alpha         1.6828        3.3355        .44714       -.29366E-04
   3  Normalizat    .95965        .20929        .66622E-01    .27052E-04
   4  Prefactor     1.1748        .17449        .50535E-01   -.50839E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 1.68279
  Normalizat = 0.959647
  Prefactor  = 1.1748
 **********
 **   18 **HESSE 
 **********

 FCN=   5326.023     FROM HESSE     STATUS=OK            29 CALLS      232 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.5069        .17993E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6828        3.3072        .17886       -.33301    
   3  Normalizat    .95965        .24814        .29469E-03   -.94395    
   4  Prefactor     1.1748        .20713        .22341E-03   -.87110    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09556e-09
Minuit parameter uncertainties:
  1  0.00015972
  2  2.37031
  3  0.24844
  4  0.207269
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/267132': 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) = 5326.02289263
delta logL = 9.10999915504e-07

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.000e-04  1.597e-04  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  1.683e+00  2.370e+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.175e+00  2.073e-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:  9.596e-01  2.484e-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/267132/cmap_HighResolution_509155201_509414401_4FGL_J2221.5-5225_daily_bin1041.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.70e-05', job_status='DONE', photon_flux_upper_limit='3.31e-08', time_completed='2021-09-28 09:46:18.413732', job_id='267132', GAL2='1.17', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1632847578.41', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='9.11e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='1041' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:46:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 267132: <4FGL_J2221.5-5225_daily_bin1041> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin1041 335.391 -52.4307 509155201 509414401 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 :                                   607.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             372.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   652 sec.
    Turnaround time :                            653 sec.

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

