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


Performing analysis on: 4FGL_J2221.5-5225_daily_bin347
RA = 335.391, Dec = -52.4307
tmin = 329270401, tmax = 329529601
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='264440', job_status='RUN', time_executed='2021-09-28 09:28:03.416499', time_epoch_executed='1632846483.42' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='347'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/264440

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/264440/ft1_4FGL_J2221.5-5225_daily_bin347.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/264440/ft2_4FGL_J2221.5-5225_daily_bin347.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/264440/ft1_4FGL_J2221.5-5225_daily_bin347.fits outfile=/scratch/kocevski/264440/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin347.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=329270401.0 tmax=329529601.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.65
user 3.39
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/264440/ft1_filtered_4FGL_J2221.5-5225_daily_bin347.fits" evtable="EVENTS" scfile=/scratch/kocevski/264440/ft2_4FGL_J2221.5-5225_daily_bin347.fits sctable="SC_DATA" outfile=/scratch/kocevski/264440/ltcube_329270401_329529601_4FGL_J2221.5-5225_daily_bin347.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/264440/ft2_4FGL_J2221.5-5225_daily_bin347.fits
.....................!
real 11.66
user 11.30
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/264440/ft1_filtered_4FGL_J2221.5-5225_daily_bin347.fits evtable="EVENTS" scfile=/scratch/kocevski/264440/ft2_4FGL_J2221.5-5225_daily_bin347.fits sctable="SC_DATA" expcube=/scratch/kocevski/264440/ltcube_329270401_329529601_4FGL_J2221.5-5225_daily_bin347.fits outfile=/scratch/kocevski/264440/expmap_329270401_329529601_4FGL_J2221.5-5225_daily_bin347.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/264440/ltcube_329270401_329529601_4FGL_J2221.5-5225_daily_bin347.fits
.....................!
real 190.43
user 186.13
sys 3.97

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/264440/ft1_filtered_4FGL_J2221.5-5225_daily_bin347.fits scfile=/scratch/kocevski/264440/ft2_4FGL_J2221.5-5225_daily_bin347.fits outfile=/scratch/kocevski/264440/cmap_329270401_329529601_4FGL_J2221.5-5225_daily_bin347.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=335.391 yref=-52.4307 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/264440/ft1_filtered_4FGL_J2221.5-5225_daily_bin347.fits scfile=/scratch/kocevski/264440/ft2_4FGL_J2221.5-5225_daily_bin347.fits outfile=/scratch/kocevski/264440/cmap_HighResolution_329270401_329529601_4FGL_J2221.5-5225_daily_bin347.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.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/264440/ft1_filtered_4FGL_J2221.5-5225_daily_bin347.fits evtable="EVENTS" scfile=/scratch/kocevski/264440/ft2_4FGL_J2221.5-5225_daily_bin347.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/264440/Model_4FGL_J2221.5-5225_daily_bin347.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/264440/ft1_filtered_4FGL_J2221.5-5225_daily_bin347.fits.....................!
real 52.20
user 50.25
sys 1.32

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.603       1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.304       1.0000         .10000E-03   10000.    
     3 'Prefactor '    54.018       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8241       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.4720       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.4771       1.0000         .10000E-03   10000.    
     8 'Prefactor '    44.012       1.0000         .10000E-03   10000.    
     9 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.2815       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11198E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .16277E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    78.176       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.330       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.0127       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    29.730       1.0000         .10000E-03   10000.    
    23 'norm      '    10.082       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .74375       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1992       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=   7158.736     FROM MIGRAD    STATUS=CONVERGED    560 CALLS     2872 TOTAL
                     EDM=   .54E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.602        37.929        .12951E-06    .53684E-05
   2  Prefactor     18.304        8.5421        .23949E-07   -.23448E-04
   3  Prefactor     54.017        26.900        .14815E-07    .44380E-05
   4  Prefactor     1.8243        4.5457        .12351E-06    .13668E-04
   5  Prefactor     .10000E-03    13.761        .91335E-07** at limit **
   6  Prefactor     2.4447        8.0516        .43654E-05   -.16239E-03
   7  Prefactor     3.4772        3.6063        .12853E-06    .10349E-03
   8  Prefactor     44.088        91.934       -.10599E-04   -.58359E-04
   9  norm          .10000E-03    4.0031        .11746E-06** at limit **
  10  Prefactor     .10000E-03    2.2618       -.28735E-07** at limit **
  11  Prefactor     .10000E-03    26.491       -.56286E-06** at limit **
  12  Prefactor     6.2800        6.2518        .97892E-07    .58232E-05
  13  Prefactor     .10000E-03    32.201        .15518E-06** at limit **
  14  Prefactor     .10000E-03    20.213       -.48548E-06** at limit **
  15  Prefactor     78.165        72.340        .69941E-06    .14206E-04
  16  Prefactor     .10000E-03    9.5580       -.11891E-06** at limit **
  17  Prefactor     16.321        36.711        .10117E-05    .16170E-04
  18  Prefactor     .10000E-03    15.463        .30644E-07** at limit **
  19  norm          .10000E-03    4.6458       -.35933E-07** at limit **
  20  norm          3.0134        4.6403        .12611E-08   -.14807E-04
  21  Prefactor     .10000E-03    3.7448       -.15636E-06** at limit **
  22  Prefactor     29.726        21.155        .16803E-06    .15514E-04
  23  norm          10.082        2.1582       -.38138E-08   -.89225E-04
  24  Normalizat    .74376        .18175       -.71342E-06   -.15203E-04
  25  Prefactor     1.1992        .15018        .17215E-06   -.14646E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.6017
  Prefactor  = 18.3044
  Prefactor  = 54.017
  Prefactor  = 1.82425
  Prefactor  = 0.0001
  Prefactor  = 2.4447
  Prefactor  = 3.47721
  Prefactor  = 44.0876
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.27997
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 78.1649
  Prefactor  = 0.0001
  Prefactor  = 16.321
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.01335
  Prefactor  = 0.0001
  Prefactor  = 29.7257
  norm       = 10.0818
  Normalizat = 0.743761
  Prefactor  = 1.19918
 **********
 **   18 **HESSE 
 **********

 FCN=   7158.736     FROM HESSE     STATUS=OK           425 CALLS     3297 TOTAL
                     EDM=   .96E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.602        37.940        .63693E-04   -1.4449    
   2  Prefactor     18.304        8.5334        .46808E-03   -1.4852    
   3  Prefactor     54.017        26.886        .54574E-04   -1.4237    
   4  Prefactor     1.8243        4.5191        .26438E-03   -1.5438    
   5  Prefactor     .10000E-03    13.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.4447        8.1121        .13003E-02   -1.5395    
   7  Prefactor     3.4772        3.6021        .15510E-03   -1.5335    
   8  Prefactor     44.088        92.537        .60431E-04   -1.4379    
   9  norm          .10000E-03    4.0345        .16534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.3067        .12414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    26.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.2800        6.2643        .16016E-03   -1.5207    
  13  Prefactor     .10000E-03    32.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    21.164        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     78.165        72.289        .22709E-03   -1.3937    
  16  Prefactor     .10000E-03    9.7273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     16.321        36.688        .99111E-04   -1.4900    
  18  Prefactor     .10000E-03    15.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.6497        .17811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.0134        4.6284        .21955E-03   -1.5361    
  21  Prefactor     .10000E-03    3.7790        .15961E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     29.726        21.140        .73480E-04   -1.4617    
  23  norm          10.082        2.1617        .54220E-04   -1.5073    
  24  Normalizat    .74376        .20757        .30540E-03   -1.0219    
  25  Prefactor     1.1992        .17255        .21054E-03   -.86356    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.56247e-11
Minuit parameter uncertainties:
  1  37.9628
  2  8.53397
  3  26.8924
  4  4.51998
  5  3.97207e-05
  6  8.11577
  7  3.60231
  8  92.841
  9  1.0937e-05
  10  1.98561e-06
  11  5.15935e-05
  12  6.26499
  13  4.78102e-06
  14  0.000106309
  15  72.3703
  16  1.47833e-05
  17  36.7386
  18  2.83886e-05
  19  2.29787e-06
  20  4.62898
  21  1.29283e-05
  22  21.1453
  23  2.1617
  24  0.207786
  25  0.172631
Done.

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

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.000e-04  1.094e-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.199e+00  1.726e-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.438e-01  2.078e-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.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.30e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/264440/likelihoodResults_329270401_329529601_4FGL_J2221.5-5225_daily_bin347.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): 102
logL (Free Index) = 7158.73673745
delta logL = -0.00117565806522

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7158.40192392
delta logL = 0.333637871375

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .52312E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .69618       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2223       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=   7158.402     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      457 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .52281E-02    .74575E-02    .77473E-05   -.23186E-03
   2  alpha         5.0000        3.2260        .50000    ** at limit **
   3  Normalizat    .69624        .20794        .31475E-03   -.14470E-03
   4  Prefactor     1.2223        .17288        .20875E-03   -.23740E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00522806
  alpha      = 5
  Normalizat = 0.696243
  Prefactor  = 1.2223
 **********
 **   18 **HESSE 
 **********

 FCN=   7158.402     FROM HESSE     STATUS=OK            29 CALLS      486 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .52281E-02    .74305E-02    .30989E-06   -1.5694    
   2  alpha         5.0000        3.2215        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .69624        .20816        .12590E-04   -1.0404    
   4  Prefactor     1.2223        .17303        .41751E-04   -.85648    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.93547e-11
Minuit parameter uncertainties:
  1  0.00743052
  2  1.54116e-05
  3  0.208392
  4  0.17311
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/264440': 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) = 7158.40192312
delta logL = 0.333638679882

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  5.228e-03  7.431e-03  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  5.000e+00  1.541e-05  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.222e+00  1.731e-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:  6.962e-01  2.084e-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/264440/cmap_HighResolution_329270401_329529601_4FGL_J2221.5-5225_daily_bin347.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.30e-05', job_status='DONE', photon_flux_upper_limit='2.62e-08', time_completed='2021-09-28 09:40:56.616597', job_id='264440', GAL2='1.22', fit_tolerance='1e-08', EG2='0.70', EG='0.74', time_epoch_completed='1632847256.62', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='3.34e-01', ts2='0.73', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='347' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:40:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 264440: <4FGL_J2221.5-5225_daily_bin347> in cluster <slac> Done

Job <4FGL_J2221.5-5225_daily_bin347> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 09:25:30 2021
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:25:32 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:32 2021
Terminated at Tue Sep 28 09:40:57 2021
Results reported at Tue Sep 28 09:40:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin347 335.391 -52.4307 329270401 329529601 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 :                                   773.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            927 sec.

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

