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


Performing analysis on: 4FGL_J2225.7-0457_daily_bin51
RA = 336.432, Dec = -4.9537
tmin = 252547201, tmax = 252806401
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='294044', job_status='RUN', time_executed='2021-09-28 11:05:03.325024', time_epoch_executed='1632852303.33' WHERE source_name='4FGL J2225.7-0457' and cadence='daily' and bin_id='51'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/294044

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/294044/ft1_4FGL_J2225.7-0457_daily_bin51.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/294044/ft2_4FGL_J2225.7-0457_daily_bin51.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/294044/ft1_4FGL_J2225.7-0457_daily_bin51.fits outfile=/scratch/kocevski/294044/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin51.fits ra=336.432 dec=-4.9537 rad=12.0 tmin=252547201.0 tmax=252806401.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 1.39
user 1.21
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/294044/ft2_4FGL_J2225.7-0457_daily_bin51.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/294044/ft2_4FGL_J2225.7-0457_daily_bin51.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/294044/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin51.fits evtable="EVENTS" outfile="/scratch/kocevski/294044/ft1_filtered_4FGL_J2225.7-0457_daily_bin51.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/294044/ft1_filtered_4FGL_J2225.7-0457_daily_bin51.fits" evtable="EVENTS" scfile=/scratch/kocevski/294044/ft2_4FGL_J2225.7-0457_daily_bin51.fits sctable="SC_DATA" outfile=/scratch/kocevski/294044/ltcube_252547201_252806401_4FGL_J2225.7-0457_daily_bin51.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/294044/ft2_4FGL_J2225.7-0457_daily_bin51.fits
.....................!
real 12.59
user 12.25
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/294044/ft1_filtered_4FGL_J2225.7-0457_daily_bin51.fits evtable="EVENTS" scfile=/scratch/kocevski/294044/ft2_4FGL_J2225.7-0457_daily_bin51.fits sctable="SC_DATA" expcube=/scratch/kocevski/294044/ltcube_252547201_252806401_4FGL_J2225.7-0457_daily_bin51.fits outfile=/scratch/kocevski/294044/expmap_252547201_252806401_4FGL_J2225.7-0457_daily_bin51.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/294044/ltcube_252547201_252806401_4FGL_J2225.7-0457_daily_bin51.fits
.....................!
real 191.90
user 187.37
sys 4.20

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 148 point sources and 0 extended sources

Setting source of interest to:
4FGL J2225.7-0457 @ 336.432 -4.9537

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/294044/ft1_filtered_4FGL_J2225.7-0457_daily_bin51.fits scfile=/scratch/kocevski/294044/ft2_4FGL_J2225.7-0457_daily_bin51.fits outfile=/scratch/kocevski/294044/cmap_252547201_252806401_4FGL_J2225.7-0457_daily_bin51.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=336.432 yref=-4.9537 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.57
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/294044/ft1_filtered_4FGL_J2225.7-0457_daily_bin51.fits scfile=/scratch/kocevski/294044/ft2_4FGL_J2225.7-0457_daily_bin51.fits outfile=/scratch/kocevski/294044/cmap_HighResolution_252547201_252806401_4FGL_J2225.7-0457_daily_bin51.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=336.432 yref=-4.9537 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.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/294044/ft1_filtered_4FGL_J2225.7-0457_daily_bin51.fits evtable="EVENTS" scfile=/scratch/kocevski/294044/ft2_4FGL_J2225.7-0457_daily_bin51.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/294044/Model_4FGL_J2225.7-0457_daily_bin51.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/294044/ft1_filtered_4FGL_J2225.7-0457_daily_bin51.fits.....................!
real 79.06
user 77.72
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/294044/ft1_filtered_4FGL_J2225.7-0457_daily_bin51.fits', '/scratch/kocevski/294044/ft2_4FGL_J2225.7-0457_daily_bin51.fits', expMap='/scratch/kocevski/294044/expmap_252547201_252806401_4FGL_J2225.7-0457_daily_bin51.fits', expCube='/scratch/kocevski/294044/ltcube_252547201_252806401_4FGL_J2225.7-0457_daily_bin51.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/294044/Model_4FGL_J2225.7-0457_daily_bin51.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2225.7-0457'

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  2.714e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.425e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
238        Scale:  7.735e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/294044/ft1_filtered_4FGL_J2225.7-0457_daily_bin51.fits
Spacecraft file(s): /scratch/kocevski/294044/ft2_4FGL_J2225.7-0457_daily_bin51.fits
Exposure map: /scratch/kocevski/294044/expmap_252547201_252806401_4FGL_J2225.7-0457_daily_bin51.fits
Exposure cube: /scratch/kocevski/294044/ltcube_252547201_252806401_4FGL_J2225.7-0457_daily_bin51.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/294044/Model_4FGL_J2225.7-0457_daily_bin51.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) = 8499.56337873

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.6831       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.6851       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.396       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.6833       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.829       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.5806       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    33.516       1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.085       1.0000         .10000E-03   10000.    
    14 'norm      '    1.3021       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .45598E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.0865       1.0000         .10000E-03   10000.    
    19 'norm      '    22.577       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2361       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .85033       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8499.472     FROM MIGRAD    STATUS=CONVERGED    442 CALLS     1907 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    59.426       -.25885E-06** at limit **
   2  Prefactor     5.6823        5.9625        .16728E-06   -.45719E-04
   3  Prefactor     7.6831        12.129        .35581E-05   -.54098E-04
   4  Prefactor     .10000E-03    4.0220        .22290E-08** at limit **
   5  Prefactor     16.394        14.135       -.52396E-06   -.13959E-04
   6  Prefactor     .10000E-03    29.658       -.15123E-06** at limit **
   7  Prefactor     .10000E-03    3.8991       -.24453E-07** at limit **
   8  Prefactor     3.6826        7.7318        .49258E-06    .30032E-04
   9  Prefactor     13.804        48.932       -.41215E-05   -.79854E-04
  10  Prefactor     2.5808        2.9558        .16023E-06   -.32928E-04
  11  Prefactor     .10000E-03    26.529       -.12671E-06** at limit **
  12  norm          33.517        5.7936        .69570E-07   -.12362E-03
  13  Prefactor     17.062        46.312       -.34652E-05   -.89162E-04
  14  norm          1.3021        .68682        .57470E-08   -.16081E-03
  15  Prefactor     .10019E-03    4.6902        .70317E-06** at limit **
  16  norm          .10000E-03    .28683        .19305E-08** at limit **
  17  Prefactor     .10000E-03    25.751        .28723E-06** at limit **
  18  Prefactor     7.0872        6.3003        .23661E-07   -.21153E-04
  19  norm          22.575        14.157        .12457E-06   -.53525E-05
  20  Normalizat    1.2362        .19363       -.92200E-07   -.10236E-03
  21  Prefactor     .85032        .11570       -.44469E-06   -.78737E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.68232
  Prefactor  = 7.68306
  Prefactor  = 0.0001
  Prefactor  = 16.3943
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.68265
  Prefactor  = 13.804
  Prefactor  = 2.58077
  Prefactor  = 0.0001
  norm       = 33.5165
  Prefactor  = 17.0616
  norm       = 1.30214
  Prefactor  = 0.000100193
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.08717
  norm       = 22.5753
  Normalizat = 1.23621
  Prefactor  = 0.85032
 **********
 **   18 **HESSE 
 **********

 FCN=   8499.472     FROM HESSE     STATUS=OK           323 CALLS     2230 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    60.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.6823        5.9752        .16850E-03   -1.5231    
   3  Prefactor     7.6831        12.326        .72327E-03   -1.5154    
   4  Prefactor     .10000E-03    4.0235        .18057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.394        14.124        .98913E-04   -1.4898    
   6  Prefactor     .10000E-03    30.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.9150        .17776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.6826        7.6913        .21045E-03   -1.5324    
   9  Prefactor     13.804        50.225        .10771E-03   -1.4965    
  10  Prefactor     2.5808        2.9339        .16096E-03   -1.5387    
  11  Prefactor     .10000E-03    26.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          33.517        5.8116        .69217E-04   -1.4549    
  13  Prefactor     17.062        47.435        .96897E-04   -1.4882    
  14  norm          1.3021        .68281        .53715E-04   -1.5480    
  15  Prefactor     .10019E-03    62.697        .36142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .46846        .91403E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    26.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.0872        6.2977        .15069E-03   -1.5175    
  19  norm          22.575        14.183        .84300E-04   -1.4757    
  20  Normalizat    1.2362        .22735        .29573E-03   -.85491    
  21  Prefactor     .85032        .13592        .21603E-03   -.97899    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.10398e-09
Minuit parameter uncertainties:
  1  8.15198e-05
  2  5.97586
  3  12.3301
  4  8.42852e-07
  5  14.1271
  6  8.776e-05
  7  2.51667e-06
  8  7.69339
  9  50.3798
  10  2.93404
  11  1.82144e-05
  12  5.81172
  13  47.5405
  14  0.68281
  15  0.00696622
  16  4.8491e-06
  17  6.48921e-06
  18  6.29832
  19  14.1852
  20  0.227534
  21  0.135977
Done.

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

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  2.581e+00  2.934e+00  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.425e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
238        Scale:  7.735e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
473    Prefactor:  8.503e-01  1.360e-01  0.000e+00  1.000e+01 ( 1.000e+00)
474        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
475        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
472   Normalization:  1.236e+00  2.275e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.19
Ra Dec: 336.432 -4.954
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 2.59e-08 +/- 2.94e-08
Energy Flux (Fixed Index): 8.21e-06 +/- 9.33e-06

TS (Fixed Index): 1.19
Ra Dec: 336.432 -4.954
Photon Flux Upper Limit: 9.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/294044/likelihoodResults_252547201_252806401_4FGL_J2225.7-0457_daily_bin51.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) = 8499.44334852
delta logL = 0.0283713892677

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8499.43689175
delta logL = 0.0348281645347

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9444       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2314       1.0000          .0000       10.000    
     3 'Normalizat'    1.2398       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84865       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8499.437     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      207 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9451        130.65        .59174E-02    .46735E-03
   2  Index         2.2316        5.6808        .24608        .34014E-04
   3  Normalizat    1.2398        .83958E-01    .66767E-01    .13834E-04
   4  Prefactor     .84867        .48622E-01    .44347E-01    .13591E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.94514
  Index      = 2.23162
  Normalizat = 1.23976
  Prefactor  = 0.848669
 **********
 **   18 **HESSE 
 **********

 FCN=   8499.437     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .80E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9451        3.4090        .16852E-03   -1.5365    
   2  Index         2.2316        .71369        .11628E-01   -.58677    
   3  Normalizat    1.2398        .21777        .29538E-03   -.85383    
   4  Prefactor     .84867        .13546        .21621E-03   -.97959    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.95596e-13
Minuit parameter uncertainties:
  1  3.40925
  2  0.717236
  3  0.217931
  4  0.135511
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/294044': 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) = 8499.43689162
delta logL = 0.0348282903178

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  2.945e+00  3.409e+00  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.232e+00  7.172e-01  0.000e+00  1.000e+01 (-1.000e+00)
238        Scale:  7.735e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
473    Prefactor:  8.487e-01  1.355e-01  0.000e+00  1.000e+01 ( 1.000e+00)
474        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
475        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
472   Normalization:  1.240e+00  2.179e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.26
Ra Dec: 336.432 -4.954
Photon Index (Free Index): 2.23 +/- 0.72
Photon Flux (Free Index): 2.30e-08 +/- 2.78e-08
Energy Flux (Free Index): 9.75e-06 +/- 1.29e-05

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/294044/cmap_HighResolution_252547201_252806401_4FGL_J2225.7-0457_daily_bin51.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.55e-03', comment='SUCCESS', photon_flux='2.59e-08', energy_flux2='9.75e-06', photon_flux_error='2.94e-08', dlogl='3.48e-02', energy_flux='8.21e-06', photon_flux2='2.30e-08', job_status='DONE', time_completed='2021-09-28 11:15:43.051855', photon_index_error2='0.72', photon_index2='2.23', ts='1.19', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='9.75e-08', energy_flux_error2='1.29e-05', EG='1.24', time_epoch_completed='1632852943.05', return_code='0', job_id='294044', GAL2='0.85', EG2='1.24', return_code2='0', energy_flux_error='9.33e-06', photon_flux_error2='2.78e-08', ts2='1.26', photon_index='2.43' WHERE bin_id='51' AND source_name='4FGL J2225.7-0457' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:15:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 294044: <4FGL_J2225.7-0457_daily_bin51> in cluster <slac> Done

Job <4FGL_J2225.7-0457_daily_bin51> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 11:01:08 2021
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 11:01:09 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 11:01:09 2021
Terminated at Tue Sep 28 11:15:43 2021
Results reported at Tue Sep 28 11:15:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.7-0457_daily_bin51 336.432 -4.9537 252547201 252806401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2225.7-0457 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   641.05 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             237.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   874 sec.
    Turnaround time :                            875 sec.

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

