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


Performing analysis on: 4FGL_J2225.7-0457_daily_bin1045
RA = 336.432, Dec = -4.9537
tmin = 510192001, tmax = 510451201
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='300223', job_status='RUN', time_executed='2021-09-28 11:23:17.869328', time_epoch_executed='1632853397.87' WHERE source_name='4FGL J2225.7-0457' and cadence='daily' and bin_id='1045'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/300223

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/300223/ft1_4FGL_J2225.7-0457_daily_bin1045.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/300223/ft2_4FGL_J2225.7-0457_daily_bin1045.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/300223/ft1_4FGL_J2225.7-0457_daily_bin1045.fits outfile=/scratch/kocevski/300223/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin1045.fits ra=336.432 dec=-4.9537 rad=12.0 tmin=510192001.0 tmax=510451201.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 4.74
user 4.10
sys 0.62

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/300223/ft2_4FGL_J2225.7-0457_daily_bin1045.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/300223/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin1045.fits evtable="EVENTS" outfile="/scratch/kocevski/300223/ft1_filtered_4FGL_J2225.7-0457_daily_bin1045.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.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/300223/ft1_filtered_4FGL_J2225.7-0457_daily_bin1045.fits" evtable="EVENTS" scfile=/scratch/kocevski/300223/ft2_4FGL_J2225.7-0457_daily_bin1045.fits sctable="SC_DATA" outfile=/scratch/kocevski/300223/ltcube_510192001_510451201_4FGL_J2225.7-0457_daily_bin1045.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/300223/ft2_4FGL_J2225.7-0457_daily_bin1045.fits
.....................!
real 11.96
user 11.60
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/300223/ft1_filtered_4FGL_J2225.7-0457_daily_bin1045.fits evtable="EVENTS" scfile=/scratch/kocevski/300223/ft2_4FGL_J2225.7-0457_daily_bin1045.fits sctable="SC_DATA" expcube=/scratch/kocevski/300223/ltcube_510192001_510451201_4FGL_J2225.7-0457_daily_bin1045.fits outfile=/scratch/kocevski/300223/expmap_510192001_510451201_4FGL_J2225.7-0457_daily_bin1045.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/300223/ltcube_510192001_510451201_4FGL_J2225.7-0457_daily_bin1045.fits
.....................!
real 192.49
user 185.88
sys 6.16

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/300223/ft1_filtered_4FGL_J2225.7-0457_daily_bin1045.fits scfile=/scratch/kocevski/300223/ft2_4FGL_J2225.7-0457_daily_bin1045.fits outfile=/scratch/kocevski/300223/cmap_510192001_510451201_4FGL_J2225.7-0457_daily_bin1045.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/300223/ft1_filtered_4FGL_J2225.7-0457_daily_bin1045.fits scfile=/scratch/kocevski/300223/ft2_4FGL_J2225.7-0457_daily_bin1045.fits outfile=/scratch/kocevski/300223/cmap_HighResolution_510192001_510451201_4FGL_J2225.7-0457_daily_bin1045.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.1732       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.2750       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.295       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.906       1.0000         .10000E-03   10000.    
     9 'Prefactor '    52.336       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .50385       1.0000         .10000E-03   10000.    
    11 'Prefactor '    44.274       1.0000         .10000E-03   10000.    
    12 'norm      '    3.1256       1.0000         .10000E-03   10000.    
    13 'Prefactor '    30.348       1.0000         .10000E-03   10000.    
    14 'norm      '    2.5394       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10398E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    16.522       1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.088       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.108       1.0000         .10000E-03   10000.    
    19 'norm      '    46.374       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .96730       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2128       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=   7256.632     FROM MIGRAD    STATUS=CONVERGED    442 CALLS     2591 TOTAL
                     EDM=   .86E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.781        .92658E-07** at limit **
   2  Prefactor     1.1744        7.7757        .96680E-06    .16830E-04
   3  Prefactor     .10000E-03    8.7841        .76140E-07** at limit **
   4  Prefactor     7.2760        27.843        .14818E-06   -.27080E-05
   5  Prefactor     .10000E-03    7.9590       -.85888E-08** at limit **
   6  Prefactor     10.292        24.870        .48086E-06   -.48875E-05
   7  Prefactor     .10000E-03    6.3077       -.42687E-07** at limit **
   8  Prefactor     14.900        13.036       -.18828E-06   -.62346E-04
   9  Prefactor     52.338        61.354       -.31597E-06   -.38804E-05
  10  Prefactor     .51150        3.3642        .28443E-06   -.35830E-03
  11  Prefactor     44.275        49.640       -.78383E-07   -.13839E-05
  12  norm          3.1253        3.7978        .69747E-06    .47546E-04
  13  Prefactor     30.293        114.91        .63252E-05   -.24656E-05
  14  norm          2.5393        1.0819       -.10502E-07   -.51381E-04
  15  Prefactor     .10000E-03    51.416       -.80150E-06** at limit **
  16  norm          16.523        3.5705       -.28708E-06    .17133E-03
  17  Prefactor     21.026        76.613        .85175E-05    .75609E-05
  18  Prefactor     15.110        20.634       -.64347E-06   -.14549E-04
  19  norm          46.375        22.601        .66371E-07   -.11532E-04
  20  Normalizat    .96745        .26934        .53569E-06   -.44171E-04
  21  Prefactor     1.2126        .15650       -.88974E-06   -.55243E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.17443
  Prefactor  = 0.0001
  Prefactor  = 7.27597
  Prefactor  = 0.0001
  Prefactor  = 10.2921
  Prefactor  = 0.0001
  Prefactor  = 14.8997
  Prefactor  = 52.338
  Prefactor  = 0.511499
  Prefactor  = 44.2746
  norm       = 3.12526
  Prefactor  = 30.2927
  norm       = 2.53934
  Prefactor  = 0.0001
  norm       = 16.5231
  Prefactor  = 21.0258
  Prefactor  = 15.1096
  norm       = 46.3751
  Normalizat = 0.967447
  Prefactor  = 1.21262
 **********
 **   18 **HESSE 
 **********

 FCN=   7256.632     FROM HESSE     STATUS=OK           321 CALLS     2912 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.1744        7.8361        .42327E-03   -1.5491    
   3  Prefactor     .10000E-03    8.8303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.2760        27.792        .14871E-03   -1.5168    
   5  Prefactor     .10000E-03    7.9644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.292        24.863        .12488E-03   -1.5066    
   7  Prefactor     .10000E-03    6.3381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.900        12.913        .10374E-03   -1.4936    
   9  Prefactor     52.338        61.363        .55439E-04   -1.4260    
  10  Prefactor     .51150        15.264        .26408E-02   -1.5565    
  11  Prefactor     44.275        49.637        .60253E-04   -1.4376    
  12  norm          3.1253        3.8479        .87332E-03   -1.5354    
  13  Prefactor     30.293        115.72        .72731E-04   -1.4607    
  14  norm          2.5393        1.0838        .55818E-04   -1.5389    
  15  Prefactor     .10000E-03    51.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          16.523        3.5701        .51983E-04   -1.4895    
  17  Prefactor     21.026        77.076        .87222E-04   -1.4791    
  18  Prefactor     15.110        20.616        .10304E-03   -1.4930    
  19  norm          46.375        22.634        .58879E-04   -1.4345    
  20  Normalizat    .96745        .31181        .39296E-03   -.94129    
  21  Prefactor     1.2126        .18172        .21890E-03   -.85944    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.73751e-10
Minuit parameter uncertainties:
  1  2.39756e-06
  2  6.06817
  3  3.94795e-06
  4  27.8419
  5  3.24751e-07
  6  24.8876
  7  1.00886e-06
  8  12.9152
  9  61.4374
  10  5.58935
  11  49.6836
  12  3.84824
  13  116.594
  14  1.08384
  15  0.000162626
  16  3.57018
  17  77.4446
  18  20.6252
  19  22.6384
  20  0.312401
  21  0.181811
Done.

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

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  5.115e-01  5.589e+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:  1.213e+00  1.818e-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:  9.674e-01  3.124e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/300223/likelihoodResults_510192001_510451201_4FGL_J2225.7-0457_daily_bin1045.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) = 7256.6185271
delta logL = 0.0133419263439

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7256.60933382
delta logL = 0.0225352063089

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2471       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9688       1.0000          .0000       10.000    
     3 'Normalizat'    .97100       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2089       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7256.609     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      275 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2468        6.2305        .40082E-03    .24361E-03
   2  Index         1.9690        1.5862        .13124E-01    .73540E-04
   3  Normalizat    .97100        .29001        .39230E-03   -.14530E-03
   4  Prefactor     1.2089        .18070        .21919E-03   -.33758E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.24678
  Index      = 1.96903
  Normalizat = 0.971
  Prefactor  = 1.20892
 **********
 **   18 **HESSE 
 **********

 FCN=   7256.609     FROM HESSE     STATUS=OK            23 CALLS      298 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2468        6.2901        .16033E-04   -1.5485    
   2  Index         1.9690        1.5949        .52498E-03   -.65127    
   3  Normalizat    .97100        .29020        .15692E-04   -.94008    
   4  Prefactor     1.2089        .18079        .43838E-04   -.86057    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33581e-09
Minuit parameter uncertainties:
  1  5.60154
  2  1.6411
  3  0.290675
  4  0.180879
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/300223': 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) = 7256.60933381
delta logL = 0.0225352160469

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  1.247e+00  5.602e+00  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  1.969e+00  1.641e+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:  1.209e+00  1.809e-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:  9.710e-01  2.907e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/300223/cmap_HighResolution_510192001_510451201_4FGL_J2225.7-0457_daily_bin1045.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-02', job_status='DONE', photon_flux_upper_limit='1.34e-07', time_completed='2021-09-28 11:34:03.247074', job_id='300223', GAL2='1.21', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1632854043.25', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='2.25e-02', ts2='0.06', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1045' AND source_name='4FGL J2225.7-0457' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:34:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0196>
Subject: Job 300223: <4FGL_J2225.7-0457_daily_bin1045> in cluster <slac> Done

Job <4FGL_J2225.7-0457_daily_bin1045> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 11:20:31 2021
Job was executed on host(s) <bullet0196>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 11:20:33 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:20:33 2021
Terminated at Tue Sep 28 11:34:04 2021
Results reported at Tue Sep 28 11:34:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.7-0457_daily_bin1045 336.432 -4.9537 510192001 510451201 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 :                                   643.12 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             279.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            813 sec.

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

