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


Performing analysis on: 4FGL_J2221.5-5225_daily_bin210
RA = 335.391, Dec = -52.4307
tmin = 293760001, tmax = 294019201
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='264236', job_status='RUN', time_executed='2021-09-28 09:25:56.568076', time_epoch_executed='1632846356.57' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='210'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/264236

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/264236/ft1_4FGL_J2221.5-5225_daily_bin210.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/264236/ft2_4FGL_J2221.5-5225_daily_bin210.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/264236/ft1_4FGL_J2221.5-5225_daily_bin210.fits outfile=/scratch/kocevski/264236/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin210.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=293760001.0 tmax=294019201.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.54
user 3.34
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/264236/ft2_4FGL_J2221.5-5225_daily_bin210.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/264236/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin210.fits evtable="EVENTS" outfile="/scratch/kocevski/264236/ft1_filtered_4FGL_J2221.5-5225_daily_bin210.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/264236/ft1_filtered_4FGL_J2221.5-5225_daily_bin210.fits" evtable="EVENTS" scfile=/scratch/kocevski/264236/ft2_4FGL_J2221.5-5225_daily_bin210.fits sctable="SC_DATA" outfile=/scratch/kocevski/264236/ltcube_293760001_294019201_4FGL_J2221.5-5225_daily_bin210.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/264236/ft2_4FGL_J2221.5-5225_daily_bin210.fits
.....................!
real 11.91
user 11.51
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/264236/ft1_filtered_4FGL_J2221.5-5225_daily_bin210.fits evtable="EVENTS" scfile=/scratch/kocevski/264236/ft2_4FGL_J2221.5-5225_daily_bin210.fits sctable="SC_DATA" expcube=/scratch/kocevski/264236/ltcube_293760001_294019201_4FGL_J2221.5-5225_daily_bin210.fits outfile=/scratch/kocevski/264236/expmap_293760001_294019201_4FGL_J2221.5-5225_daily_bin210.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/264236/ltcube_293760001_294019201_4FGL_J2221.5-5225_daily_bin210.fits
.....................!
real 191.93
user 185.70
sys 5.83

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/264236/ft1_filtered_4FGL_J2221.5-5225_daily_bin210.fits scfile=/scratch/kocevski/264236/ft2_4FGL_J2221.5-5225_daily_bin210.fits outfile=/scratch/kocevski/264236/cmap_293760001_294019201_4FGL_J2221.5-5225_daily_bin210.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.54
user 0.37
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.8038       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.924       1.0000         .10000E-03   10000.    
     5 'Prefactor '    42.237       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.4582       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.6621       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.4649       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .75702       1.0000         .10000E-03   10000.    
    13 'Prefactor '    28.063       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13373E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    76.718       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.625       1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.974       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    20.346       1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.2369       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10475E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    17.412       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1493       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .90053       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=   5674.659     FROM MIGRAD    STATUS=CONVERGED    575 CALLS     2858 TOTAL
                     EDM=   .87E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    85.186        .95896E-06** at limit **
   2  Prefactor     5.8057        8.9524        .82183E-06    .15842E-04
   3  Prefactor     .10000E-03    35.707        .24408E-05** at limit **
   4  Prefactor     17.926        7.1062        .90885E-07   -.27915E-04
   5  Prefactor     42.200        44.074        .33271E-05    .23451E-05
   6  Prefactor     5.4633        10.787       -.44441E-06    .37242E-04
   7  Prefactor     .10000E-03    1.8139        .51130E-07** at limit **
   8  Prefactor     .10000E-03    52.148       -.31927E-05** at limit **
   9  norm          2.6593        10.296        .45624E-05    .44692E-04
  10  Prefactor     1.4650        4.5332        .38542E-06    .11052E-03
  11  Prefactor     .10000E-03    43.756       -.26365E-06** at limit **
  12  Prefactor     .83888        5.6763       -.15673E-05    .25957E-03
  13  Prefactor     28.025        28.756        .19387E-05    .11513E-03
  14  Prefactor     .10000E-03    12.119       -.21586E-06** at limit **
  15  Prefactor     76.688        84.955        .27571E-05   -.29923E-05
  16  Prefactor     10.628        10.558        .19316E-07    .36343E-04
  17  Prefactor     17.967        25.869        .29365E-06    .21101E-04
  18  Prefactor     .10000E-03    22.043       -.51142E-06** at limit **
  19  norm          20.346        15.657        .66694E-09   -.25556E-05
  20  norm          .10000E-03    6.2013       -.62442E-07** at limit **
  21  Prefactor     1.2416        10.142        .17703E-05    .98087E-05
  22  Prefactor     .10000E-03    23.271       -.64702E-06** at limit **
  23  norm          17.413        2.9599       -.50905E-07    .24467E-04
  24  Normalizat    1.1488        .21876        .12946E-05    .14063E-03
  25  Prefactor     .90088        .17213       -.20698E-05    .12649E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.80567
  Prefactor  = 0.0001
  Prefactor  = 17.9257
  Prefactor  = 42.1996
  Prefactor  = 5.46328
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.65935
  Prefactor  = 1.46498
  Prefactor  = 0.0001
  Prefactor  = 0.838878
  Prefactor  = 28.0255
  Prefactor  = 0.0001
  Prefactor  = 76.6881
  Prefactor  = 10.6283
  Prefactor  = 17.9674
  Prefactor  = 0.0001
  norm       = 20.3463
  norm       = 0.0001
  Prefactor  = 1.24155
  Prefactor  = 0.0001
  norm       = 17.4128
  Normalizat = 1.14878
  Prefactor  = 0.900883
 **********
 **   18 **HESSE 
 **********

 FCN=   5674.659     FROM HESSE     STATUS=OK           431 CALLS     3289 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    85.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.8057        8.9589        .83355E-03   -1.5226    
   3  Prefactor     .10000E-03    35.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     17.926        7.1015        .94602E-04   -1.4861    
   5  Prefactor     42.200        44.043        .61683E-04   -1.4408    
   6  Prefactor     5.4633        10.751        .17199E-03   -1.5240    
   7  Prefactor     .10000E-03    1.8260        .99030E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    52.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.6593        10.338        .12491E-02   -1.5382    
  10  Prefactor     1.4650        4.4822        .26561E-03   -1.5466    
  11  Prefactor     .10000E-03    43.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .83888        22.902        .30227E-02   -1.5525    
  13  Prefactor     28.025        29.083        .75626E-04   -1.4649    
  14  Prefactor     .10000E-03    12.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     76.688        84.862        .22922E-03   -1.3954    
  16  Prefactor     10.628        10.559        .12292E-03   -1.5056    
  17  Prefactor     17.967        25.871        .94470E-04   -1.4860    
  18  Prefactor     .10000E-03    22.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          20.346        15.652        .88796E-04   -1.4806    
  20  norm          .10000E-03    6.2259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.2416        10.046        .40362E-03   -1.5485    
  22  Prefactor     .10000E-03    23.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          17.413        2.9471        .50279E-04   -1.4873    
  24  Normalizat    1.1488        .25834        .27127E-03   -.88201    
  25  Prefactor     .90088        .20042        .24635E-03   -.96110    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.78075e-10
Minuit parameter uncertainties:
  1  2.67912e-06
  2  8.96093
  3  5.70709e-05
  4  7.10185
  5  44.0766
  6  10.7544
  7  6.739e-07
  8  7.01737e-05
  9  10.3445
  10  4.48325
  11  1.87039e-05
  12  8.76955
  13  29.0972
  14  9.57126e-05
  15  84.9966
  16  10.5606
  17  25.887
  18  5.11431e-06
  19  15.6553
  20  5.15242e-06
  21  7.06476
  22  0.000144295
  23  2.94714
  24  0.258631
  25  0.200585
Done.

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

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  2.659e+00  1.034e+01  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.009e-01  2.006e-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.149e+00  2.586e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.07
Ra Dec: 335.391 -52.431
Photon Flux Upper Limit: 5.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.03e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/264236/likelihoodResults_293760001_294019201_4FGL_J2221.5-5225_daily_bin210.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) = 5674.28963402
delta logL = 0.369513674277

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5674.28449439
delta logL = 0.374653298037

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8375       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5540       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1317       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90028       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=   5674.284     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      256 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8378        8.7654        .15191E-03    .11301E-04
   2  alpha         2.5540        1.3513        .13301E-01    .13555E-04
   3  Normalizat    1.1317        .24142        .27287E-03    .37580E-04
   4  Prefactor     .90028        .19695        .24620E-03    .73696E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.83778
  alpha      = 2.55405
  Normalizat = 1.13168
  Prefactor  = 0.900278
 **********
 **   18 **HESSE 
 **********

 FCN=   5674.284     FROM HESSE     STATUS=OK            25 CALLS      281 TOTAL
                     EDM=   .88E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8378        6.3272        .60763E-05   -1.5371    
   2  alpha         2.5540        1.0011        .53203E-03    .21621E-01
   3  Normalizat    1.1317        .24042        .10915E-04   -.88741    
   4  Prefactor     .90028        .19613        .98482E-05   -.96131    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.84911e-12
Minuit parameter uncertainties:
  1  6.32865
  2  1.02997
  3  0.240655
  4  0.196287
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/264236': 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) = 5674.28449438
delta logL = 0.374653316512

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  2.838e+00  6.329e+00  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  2.554e+00  1.030e+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:  9.003e-01  1.963e-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.132e+00  2.407e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.07
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/264236/cmap_HighResolution_293760001_294019201_4FGL_J2221.5-5225_daily_bin210.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-04', job_status='DONE', photon_flux_upper_limit='5.09e-08', time_completed='2021-09-28 09:37:11.575838', job_id='264236', GAL2='0.90', fit_tolerance='1e-08', EG2='1.13', EG='1.15', time_epoch_completed='1632847031.58', return_code2='0', ts='0.07', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='3.75e-01', ts2='0.82', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='210' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:37:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 264236: <4FGL_J2221.5-5225_daily_bin210> in cluster <slac> Done

Job <4FGL_J2221.5-5225_daily_bin210> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 09:25:15 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:25:17 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:17 2021
Terminated at Tue Sep 28 09:37:11 2021
Results reported at Tue Sep 28 09:37:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin210 335.391 -52.4307 293760001 294019201 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 :                                   671.21 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   714 sec.
    Turnaround time :                            716 sec.

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

