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


Performing analysis on: 4FGL_J2221.5-5225_daily_bin886
RA = 335.391, Dec = -52.4307
tmin = 468979201, tmax = 469238401
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='265977', job_status='RUN', time_executed='2021-09-28 09:33:35.371127', time_epoch_executed='1632846815.37' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='886'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/265977

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/265977/ft1_4FGL_J2221.5-5225_daily_bin886.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/265977/ft2_4FGL_J2221.5-5225_daily_bin886.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/265977/ft1_4FGL_J2221.5-5225_daily_bin886.fits outfile=/scratch/kocevski/265977/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin886.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=468979201.0 tmax=469238401.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.39
user 3.20
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/265977/ft1_filtered_4FGL_J2221.5-5225_daily_bin886.fits" evtable="EVENTS" scfile=/scratch/kocevski/265977/ft2_4FGL_J2221.5-5225_daily_bin886.fits sctable="SC_DATA" outfile=/scratch/kocevski/265977/ltcube_468979201_469238401_4FGL_J2221.5-5225_daily_bin886.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/265977/ft2_4FGL_J2221.5-5225_daily_bin886.fits
.....................!
real 11.75
user 11.35
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/265977/ft1_filtered_4FGL_J2221.5-5225_daily_bin886.fits evtable="EVENTS" scfile=/scratch/kocevski/265977/ft2_4FGL_J2221.5-5225_daily_bin886.fits sctable="SC_DATA" expcube=/scratch/kocevski/265977/ltcube_468979201_469238401_4FGL_J2221.5-5225_daily_bin886.fits outfile=/scratch/kocevski/265977/expmap_468979201_469238401_4FGL_J2221.5-5225_daily_bin886.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/265977/ltcube_468979201_469238401_4FGL_J2221.5-5225_daily_bin886.fits
.....................!
real 192.01
user 186.70
sys 4.95

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/265977/ft1_filtered_4FGL_J2221.5-5225_daily_bin886.fits scfile=/scratch/kocevski/265977/ft2_4FGL_J2221.5-5225_daily_bin886.fits outfile=/scratch/kocevski/265977/cmap_468979201_469238401_4FGL_J2221.5-5225_daily_bin886.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.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.679       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .58229       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.0094       1.0000         .10000E-03   10000.    
     5 'Prefactor '    95.763       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10340E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    30.548       1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.5917       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.406       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.083       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    46.299       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.1038       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.9630       1.0000         .10000E-03   10000.    
    23 'norm      '    3.7818       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .80393       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .92958       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=   5326.349     FROM MIGRAD    STATUS=CONVERGED    570 CALLS     3308 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.687        31.660        .21188E-05    .81479E-05
   2  Prefactor     .58867        6.2453        .94088E-06   -.18044E-03
   3  Prefactor     .10000E-03    11.100        .35705E-06** at limit **
   4  Prefactor     5.0092        4.4468       -.17010E-06   -.52713E-05
   5  Prefactor     95.761        52.971       -.34452E-05    .12715E-03
   6  Prefactor     .10014E-03    5.9924        .93044E-06** at limit **
   7  Prefactor     .10000E-03    .90318        .33528E-07** at limit **
   8  Prefactor     30.592        117.21       -.51840E-05    .57388E-04
   9  norm          .10000E-03    2.6382        .69749E-07** at limit **
  10  Prefactor     8.5912        4.7638        .89823E-07    .12743E-04
  11  Prefactor     .10000E-03    63.767       -.71033E-06** at limit **
  12  Prefactor     13.404        8.2215       -.85883E-07    .88200E-04
  13  Prefactor     11.079        29.261       -.14069E-05    .20814E-04
  14  Prefactor     .10000E-03    2.6630        .23083E-07** at limit **
  15  Prefactor     .10000E-03    28.814        .50123E-05** at limit **
  16  Prefactor     .10000E-03    6.1056        .14804E-05** at limit **
  17  Prefactor     46.303        50.313        .11460E-05    .96235E-05
  18  Prefactor     .10000E-03    6.4944       -.12623E-05** at limit **
  19  norm          .10000E-03    5.2808       -.39274E-06** at limit **
  20  norm          .10000E-03    4.7467        .22350E-06** at limit **
  21  Prefactor     9.1098        8.7216        .32804E-06    .30707E-03
  22  Prefactor     1.9357        100.31       -.62984E-05   -.26258E-04
  23  norm          3.7822        1.5937        .35925E-07    .47788E-03
  24  Normalizat    .80419        .19127       -.13187E-05    .96772E-04
  25  Prefactor     .92936        .14987       -.49648E-07    .26358E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.6874
  Prefactor  = 0.588665
  Prefactor  = 0.0001
  Prefactor  = 5.00916
  Prefactor  = 95.7608
  Prefactor  = 0.000100142
  Prefactor  = 0.0001
  Prefactor  = 30.5919
  norm       = 0.0001
  Prefactor  = 8.59125
  Prefactor  = 0.0001
  Prefactor  = 13.4045
  Prefactor  = 11.0795
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 46.3025
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 9.10985
  Prefactor  = 1.93569
  norm       = 3.7822
  Normalizat = 0.804192
  Prefactor  = 0.929361
 **********
 **   18 **HESSE 
 **********

 FCN=   5326.349     FROM HESSE     STATUS=OK           429 CALLS     3737 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.687        31.606        .88080E-04   -1.4798    
   2  Prefactor     .58867        14.931        .34826E-02   -1.5555    
   3  Prefactor     .10000E-03    11.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.0092        4.4350        .13839E-03   -1.5260    
   5  Prefactor     95.761        53.044        .41073E-04   -1.3748    
   6  Prefactor     .10014E-03    25.217        .31865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    .90625        .67732E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     30.592        116.87        .72492E-04   -1.4601    
   9  norm          .10000E-03    2.6418        .11577E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.5912        4.7721        .11289E-03   -1.5122    
  11  Prefactor     .10000E-03    63.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.404        8.2102        .10940E-03   -1.4976    
  13  Prefactor     11.079        29.265        .12034E-03   -1.5042    
  14  Prefactor     .10000E-03    2.6654        .11628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    28.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.1765        .17587E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     46.303        50.283        .58926E-04   -1.4346    
  18  Prefactor     .10000E-03    6.4777        .18116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    5.2881        .16373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    4.8662        .31036E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.1098        8.4067        .13283E-03   -1.5104    
  22  Prefactor     1.9357        95.835        .29604E-03   -1.5430    
  23  norm          3.7822        1.5863        .54796E-04   -1.5319    
  24  Normalizat    .80419        .22287        .26403E-03   -.99913    
  25  Prefactor     .92936        .17520        .20784E-03   -.95123    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.63451e-08
Minuit parameter uncertainties:
  1  31.6317
  2  5.9305
  3  8.15825e-06
  4  4.43533
  5  53.0698
  6  0.00378902
  7  1.78962e-06
  8  117.761
  9  1.46197e-06
  10  4.77231
  11  4.30012e-05
  12  8.21092
  13  29.3029
  14  5.73163e-06
  15  6.31537e-05
  16  1.05876e-05
  17  50.3294
  18  6.93413e-06
  19  4.19442e-06
  20  1.36338e-07
  21  8.40781
  22  27.2859
  23  1.58632
  24  0.223126
  25  0.175308
Done.

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

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.000e-04  1.462e-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:  9.294e-01  1.753e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  8.042e-01  2.231e-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.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.81e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/265977/likelihoodResults_468979201_469238401_4FGL_J2221.5-5225_daily_bin886.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) = 5326.35053041
delta logL = -0.00175811002646

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5326.3487723
delta logL = -6.12817530055e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6104       1.0000          .0000       5.0000    
     3 'Normalizat'    .80418       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92936       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=   5326.197     FROM MIGRAD    STATUS=CONVERGED    150 CALLS      293 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .14169E-01    .66829        .36954E-02    .18315E-01
   2  alpha         4.4623        4.4074        .18022        .11467E-03
   3  Normalizat    .77879        .33822E-01    .26403E-03    .55123E-03
   4  Prefactor     .94050        .28573E-01    .20784E-03    .62399E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0141693
  alpha      = 4.46226
  Normalizat = 0.778787
  Prefactor  = 0.940502
 **********
 **   18 **HESSE 
 **********

 FCN=   5326.197     FROM HESSE     STATUS=OK            27 CALLS      320 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .14169E-01    2.2968        .16392E-04   -1.5684    
   2  alpha         4.4623        2.6498        .32185E-02    13.469    
   3  Normalizat    .77879        .20883        .52805E-04   -1.0086    
   4  Prefactor     .94050        .17343        .41567E-04   -.94740    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11388e-09
Minuit parameter uncertainties:
  1  0.359539
  2  9.3795
  3  0.209041
  4  0.173536
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/265977': 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.19688519
delta logL = 0.151887104457

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.417e-02  3.595e-01  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  4.462e+00  9.380e+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.405e-01  1.735e-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.788e-01  2.090e-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/265977/cmap_HighResolution_468979201_469238401_4FGL_J2221.5-5225_daily_bin886.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.81e-05', job_status='DONE', photon_flux_upper_limit='2.38e-08', time_completed='2021-09-28 09:44:53.999770', job_id='265977', GAL2='0.94', fit_tolerance='1e-08', EG2='0.78', EG='0.80', time_epoch_completed='1632847494.0', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='1.52e-01', ts2='0.32', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='886' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:44:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 265977: <4FGL_J2221.5-5225_daily_bin886> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin886 335.391 -52.4307 468979201 469238401 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 :                                   678.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   823 sec.
    Turnaround time :                            825 sec.

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

