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


Performing analysis on: 4FGL_J2225.7-0457_daily_bin724
RA = 336.432, Dec = -4.9537
tmin = 426988801, tmax = 427248001
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='298601', job_status='RUN', time_executed='2021-09-28 11:18:16.618903', time_epoch_executed='1632853096.62' WHERE source_name='4FGL J2225.7-0457' and cadence='daily' and bin_id='724'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/298601

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/298601/ft1_4FGL_J2225.7-0457_daily_bin724.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/298601/ft2_4FGL_J2225.7-0457_daily_bin724.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/298601/ft1_4FGL_J2225.7-0457_daily_bin724.fits outfile=/scratch/kocevski/298601/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin724.fits ra=336.432 dec=-4.9537 rad=12.0 tmin=426988801.0 tmax=427248001.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 5.79
user 5.53
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/298601/ft1_filtered_4FGL_J2225.7-0457_daily_bin724.fits" evtable="EVENTS" scfile=/scratch/kocevski/298601/ft2_4FGL_J2225.7-0457_daily_bin724.fits sctable="SC_DATA" outfile=/scratch/kocevski/298601/ltcube_426988801_427248001_4FGL_J2225.7-0457_daily_bin724.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/298601/ft2_4FGL_J2225.7-0457_daily_bin724.fits
.....................!
real 12.05
user 11.69
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/298601/ft1_filtered_4FGL_J2225.7-0457_daily_bin724.fits evtable="EVENTS" scfile=/scratch/kocevski/298601/ft2_4FGL_J2225.7-0457_daily_bin724.fits sctable="SC_DATA" expcube=/scratch/kocevski/298601/ltcube_426988801_427248001_4FGL_J2225.7-0457_daily_bin724.fits outfile=/scratch/kocevski/298601/expmap_426988801_427248001_4FGL_J2225.7-0457_daily_bin724.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/298601/ltcube_426988801_427248001_4FGL_J2225.7-0457_daily_bin724.fits
.....................!
real 189.96
user 184.48
sys 5.17

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/298601/ft1_filtered_4FGL_J2225.7-0457_daily_bin724.fits scfile=/scratch/kocevski/298601/ft2_4FGL_J2225.7-0457_daily_bin724.fits outfile=/scratch/kocevski/298601/cmap_426988801_427248001_4FGL_J2225.7-0457_daily_bin724.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/298601/ft1_filtered_4FGL_J2225.7-0457_daily_bin724.fits scfile=/scratch/kocevski/298601/ft2_4FGL_J2225.7-0457_daily_bin724.fits outfile=/scratch/kocevski/298601/cmap_HighResolution_426988801_427248001_4FGL_J2225.7-0457_daily_bin724.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/298601/ft1_filtered_4FGL_J2225.7-0457_daily_bin724.fits evtable="EVENTS" scfile=/scratch/kocevski/298601/ft2_4FGL_J2225.7-0457_daily_bin724.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/298601/Model_4FGL_J2225.7-0457_daily_bin724.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/298601/ft1_filtered_4FGL_J2225.7-0457_daily_bin724.fits.....................!
real 49.48
user 48.05
sys 1.33

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/298601/ft1_filtered_4FGL_J2225.7-0457_daily_bin724.fits', '/scratch/kocevski/298601/ft2_4FGL_J2225.7-0457_daily_bin724.fits', expMap='/scratch/kocevski/298601/expmap_426988801_427248001_4FGL_J2225.7-0457_daily_bin724.fits', expCube='/scratch/kocevski/298601/ltcube_426988801_427248001_4FGL_J2225.7-0457_daily_bin724.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/298601/Model_4FGL_J2225.7-0457_daily_bin724.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/298601/ft1_filtered_4FGL_J2225.7-0457_daily_bin724.fits
Spacecraft file(s): /scratch/kocevski/298601/ft2_4FGL_J2225.7-0457_daily_bin724.fits
Exposure map: /scratch/kocevski/298601/expmap_426988801_427248001_4FGL_J2225.7-0457_daily_bin724.fits
Exposure cube: /scratch/kocevski/298601/ltcube_426988801_427248001_4FGL_J2225.7-0457_daily_bin724.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/298601/Model_4FGL_J2225.7-0457_daily_bin724.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) = 4439.96327553

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5192       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.4572       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10297E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.773       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.264       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.2655       1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.021       1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.143       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.6295       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    13.969       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10304E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.2529       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.4340       1.0000         .10000E-03   10000.    
    16 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.620       1.0000         .10000E-03   10000.    
    19 'norm      '    82.260       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0973       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .92109       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=   4439.946     FROM MIGRAD    STATUS=CONVERGED    433 CALLS     2205 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5166        164.99       -.19409E-06   -.47043E-05
   2  Prefactor     8.4563        8.9405       -.10229E-05   -.92050E-04
   3  Prefactor     .10000E-03    24.264        .10254E-06** at limit **
   4  Prefactor     19.774        18.796       -.47644E-07    .27469E-06
   5  Prefactor     .10000E-03    32.477        .19538E-06** at limit **
   6  Prefactor     15.272        23.618       -.19480E-06   -.12993E-05
   7  Prefactor     1.2621        35.929        .14956E-05   -.52713E-04
   8  Prefactor     24.024        21.395       -.38523E-06   -.82552E-05
   9  Prefactor     28.133        52.837       -.33774E-05   -.18569E-04
  10  Prefactor     6.6233        11.263       -.46795E-06   -.46254E-04
  11  Prefactor     .10000E-03    32.726       -.34015E-06** at limit **
  12  norm          13.966        7.5916        .10109E-06    .63234E-04
  13  Prefactor     .10000E-03    141.02       -.10755E-05** at limit **
  14  norm          1.2527        1.2523       -.23002E-07    .22348E-03
  15  Prefactor     1.4549        67.700        .48047E-05    .56254E-04
  16  norm          .10000E-03    .99788       -.77915E-06** at limit **
  17  Prefactor     .10000E-03    49.811       -.51874E-06** at limit **
  18  Prefactor     16.619        16.489        .15298E-06    .43192E-04
  19  norm          82.261        36.666        .31061E-06    .23518E-04
  20  Normalizat    1.0974        .30392        .10301E-05    .38527E-04
  21  Prefactor     .92107        .16713       -.23630E-06    .12247E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.51656
  Prefactor  = 8.45633
  Prefactor  = 0.0001
  Prefactor  = 19.7735
  Prefactor  = 0.0001
  Prefactor  = 15.2719
  Prefactor  = 1.26208
  Prefactor  = 24.0235
  Prefactor  = 28.1333
  Prefactor  = 6.62327
  Prefactor  = 0.0001
  norm       = 13.9657
  Prefactor  = 0.0001
  norm       = 1.25274
  Prefactor  = 1.45492
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.6194
  norm       = 82.2613
  Normalizat = 1.09741
  Prefactor  = 0.921075
 **********
 **   18 **HESSE 
 **********

 FCN=   4439.946     FROM HESSE     STATUS=OK           321 CALLS     2526 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5166        166.15        .25739E-03   -1.5391    
   2  Prefactor     8.4563        9.0421        .13785E-03   -1.5126    
   3  Prefactor     .10000E-03    24.735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     19.774        18.794        .90072E-04   -1.4818    
   5  Prefactor     .10000E-03    32.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.272        23.669        .10252E-03   -1.4926    
   7  Prefactor     1.2621        37.013        .39600E-03   -1.5483    
   8  Prefactor     24.024        21.266        .81730E-04   -1.4727    
   9  Prefactor     28.133        53.079        .75518E-04   -1.4647    
  10  Prefactor     6.6233        11.251        .15585E-03   -1.5193    
  11  Prefactor     .10000E-03    32.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          13.966        7.6001        .10717E-03   -1.4960    
  13  Prefactor     .10000E-03    141.10        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.2527        1.2378        .71130E-04   -1.5484    
  15  Prefactor     1.4549        81.317        .36058E-03   -1.5467    
  16  norm          .10000E-03    1.5164        .12047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    50.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.619        16.487        .98243E-04   -1.4892    
  19  norm          82.261        36.677        .44286E-04   -1.3892    
  20  Normalizat    1.0974        .36250        .32790E-03   -.89835    
  21  Prefactor     .92107        .20058        .21006E-03   -.95409    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.40056e-10
Minuit parameter uncertainties:
  1  41.0147
  2  9.04351
  3  2.99631e-05
  4  18.7997
  5  6.20614e-06
  6  23.6832
  7  13.6782
  8  21.2729
  9  53.1686
  10  11.255
  11  1.47786e-05
  12  7.60062
  13  4.85161e-05
  14  1.23784
  15  21.7845
  16  3.83554e-05
  17  4.27225e-05
  18  16.4913
  19  36.6872
  20  0.363328
  21  0.20074
Done.

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

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  6.623e+00  1.126e+01  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:  9.211e-01  2.007e-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.097e+00  3.633e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.50
Ra Dec: 336.432 -4.954
Photon Flux Upper Limit: 2.70e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.09e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/298601/likelihoodResults_426988801_427248001_4FGL_J2225.7-0457_daily_bin724.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) = 4439.74647288
delta logL = 0.199299845775

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4439.7378805
delta logL = 0.207892220875

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6401       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0642       1.0000          .0000       10.000    
     3 'Normalizat'    1.0496       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93963       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4439.738     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      286 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6511        11.935        .73735E-03   -.18536E-03
   2  Index         3.0631        1.5572        .75136E-02   -.24000E-04
   3  Normalizat    1.0496        .34702        .33402E-03   -.10858E-04
   4  Prefactor     .93964        .20410        .20810E-03   -.14750E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.6511
  Index      = 3.0631
  Normalizat = 1.04958
  Prefactor  = 0.939641
 **********
 **   18 **HESSE 
 **********

 FCN=   4439.738     FROM HESSE     STATUS=OK            27 CALLS      313 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6511        8.5934        .29494E-04   -1.5277    
   2  Index         3.0631        1.1302        .30055E-03   -.39779    
   3  Normalizat    1.0496        .34579        .13361E-04   -.91388    
   4  Prefactor     .93964        .20208        .83241E-05   -.94769    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.99105e-11
Minuit parameter uncertainties:
  1  8.59572
  2  1.14181
  3  0.346532
  4  0.202246
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/298601': 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) = 4439.73787965
delta logL = 0.20789307193

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  4.651e+00  8.596e+00  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  3.063e+00  1.142e+00  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:  9.396e-01  2.022e-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.050e+00  3.465e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.50
Ra Dec: 336.432 -4.954

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/298601/cmap_HighResolution_426988801_427248001_4FGL_J2225.7-0457_daily_bin724.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.09e-02', job_status='DONE', photon_flux_upper_limit='2.70e-07', time_completed='2021-09-28 11:26:42.747058', job_id='298601', GAL2='0.94', fit_tolerance='1e-08', EG2='1.05', EG='1.10', time_epoch_completed='1632853602.75', return_code2='0', ts='0.50', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='2.08e-01', ts2='0.95', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='724' AND source_name='4FGL J2225.7-0457' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:26:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 298601: <4FGL_J2225.7-0457_daily_bin724> in cluster <slac> Done

Job <4FGL_J2225.7-0457_daily_bin724> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 11:15:33 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 11:15:34 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:15:34 2021
Terminated at Tue Sep 28 11:26:43 2021
Results reported at Tue Sep 28 11:26:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.7-0457_daily_bin724 336.432 -4.9537 426988801 427248001 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 :                                   505.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   669 sec.
    Turnaround time :                            670 sec.

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

