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


Performing analysis on: 4FGL_J2225.7-0457_daily_bin1014
RA = 336.432, Dec = -4.9537
tmin = 502156801, tmax = 502416001
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='300173', job_status='RUN', time_executed='2021-09-28 11:23:14.525343', time_epoch_executed='1632853394.53' WHERE source_name='4FGL J2225.7-0457' and cadence='daily' and bin_id='1014'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/300173

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/300173/ft1_4FGL_J2225.7-0457_daily_bin1014.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/300173/ft2_4FGL_J2225.7-0457_daily_bin1014.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/300173/ft1_4FGL_J2225.7-0457_daily_bin1014.fits outfile=/scratch/kocevski/300173/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin1014.fits ra=336.432 dec=-4.9537 rad=12.0 tmin=502156801.0 tmax=502416001.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.03
user 3.79
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/300173/ft1_filtered_4FGL_J2225.7-0457_daily_bin1014.fits" evtable="EVENTS" scfile=/scratch/kocevski/300173/ft2_4FGL_J2225.7-0457_daily_bin1014.fits sctable="SC_DATA" outfile=/scratch/kocevski/300173/ltcube_502156801_502416001_4FGL_J2225.7-0457_daily_bin1014.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/300173/ft2_4FGL_J2225.7-0457_daily_bin1014.fits
.....................!
real 11.89
user 11.55
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/300173/ft1_filtered_4FGL_J2225.7-0457_daily_bin1014.fits evtable="EVENTS" scfile=/scratch/kocevski/300173/ft2_4FGL_J2225.7-0457_daily_bin1014.fits sctable="SC_DATA" expcube=/scratch/kocevski/300173/ltcube_502156801_502416001_4FGL_J2225.7-0457_daily_bin1014.fits outfile=/scratch/kocevski/300173/expmap_502156801_502416001_4FGL_J2225.7-0457_daily_bin1014.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/300173/ltcube_502156801_502416001_4FGL_J2225.7-0457_daily_bin1014.fits
.....................!
real 190.60
user 185.10
sys 5.19

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/300173/ft1_filtered_4FGL_J2225.7-0457_daily_bin1014.fits scfile=/scratch/kocevski/300173/ft2_4FGL_J2225.7-0457_daily_bin1014.fits outfile=/scratch/kocevski/300173/cmap_502156801_502416001_4FGL_J2225.7-0457_daily_bin1014.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.54
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/300173/ft1_filtered_4FGL_J2225.7-0457_daily_bin1014.fits scfile=/scratch/kocevski/300173/ft2_4FGL_J2225.7-0457_daily_bin1014.fits outfile=/scratch/kocevski/300173/cmap_HighResolution_502156801_502416001_4FGL_J2225.7-0457_daily_bin1014.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/300173/ft1_filtered_4FGL_J2225.7-0457_daily_bin1014.fits evtable="EVENTS" scfile=/scratch/kocevski/300173/ft2_4FGL_J2225.7-0457_daily_bin1014.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/300173/Model_4FGL_J2225.7-0457_daily_bin1014.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/300173/ft1_filtered_4FGL_J2225.7-0457_daily_bin1014.fits.....................!
real 73.46
user 72.06
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.1471       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.9321       1.0000         .10000E-03   10000.    
     5 'Prefactor '    26.388       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10515E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.5810       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    103.44       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10395E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.9806       1.0000         .10000E-03   10000.    
    13 'Prefactor '    61.653       1.0000         .10000E-03   10000.    
    14 'norm      '    .10095E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    56.809       1.0000         .10000E-03   10000.    
    16 'norm      '    8.8699       1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.844       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10242E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    23.529       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .70086       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0346       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=   8175.288     FROM MIGRAD    STATUS=CONVERGED    466 CALLS     2225 TOTAL
                     EDM=   .26E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.506       -.12470E-06** at limit **
   2  Prefactor     5.1474        5.8914       -.11996E-06    .57842E-05
   3  Prefactor     .10000E-03    2.4983       -.45782E-07** at limit **
   4  Prefactor     4.9291        15.571       -.36792E-06    .25715E-05
   5  Prefactor     26.400        14.428        .41759E-07    .16302E-04
   6  Prefactor     .10000E-03    12.109       -.12877E-06** at limit **
   7  Prefactor     2.5829        9.3041        .72286E-05   -.46579E-05
   8  Prefactor     .10000E-03    3.7781       -.83176E-08** at limit **
   9  Prefactor     103.48        62.446       -.20054E-05    .92385E-05
  10  Prefactor     .10000E-03    1.1773        .13977E-06** at limit **
  11  Prefactor     .10000E-03    15.069        .20820E-07** at limit **
  12  norm          1.9801        2.4529        .46821E-06    .22105E-03
  13  Prefactor     61.760        63.793       -.58542E-05    .14502E-04
  14  norm          .10000E-03    .23908       -.81622E-07** at limit **
  15  Prefactor     56.874        39.311        .10978E-05    .91443E-04
  16  norm          8.8671        3.5547       -.56606E-07    .74842E-04
  17  Prefactor     19.713        45.343       -.27161E-05    .81885E-05
  18  Prefactor     .10000E-03    2.5060        .20429E-07** at limit **
  19  norm          23.533        11.924       -.87910E-07    .20257E-04
  20  Normalizat    .70055        .19601       -.22161E-05    .47277E-04
  21  Prefactor     1.0348        .11870        .95253E-06    .35449E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.14741
  Prefactor  = 0.0001
  Prefactor  = 4.92908
  Prefactor  = 26.4004
  Prefactor  = 0.0001
  Prefactor  = 2.58285
  Prefactor  = 0.0001
  Prefactor  = 103.483
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.98013
  Prefactor  = 61.7598
  norm       = 0.0001
  Prefactor  = 56.8735
  norm       = 8.86706
  Prefactor  = 19.7129
  Prefactor  = 0.0001
  norm       = 23.5328
  Normalizat = 0.700555
  Prefactor  = 1.03483
 **********
 **   18 **HESSE 
 **********

 FCN=   8175.288     FROM HESSE     STATUS=OK           317 CALLS     2542 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.1474        5.8895        .17720E-03   -1.5254    
   3  Prefactor     .10000E-03    2.5032        .13957E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.9291        15.560        .18110E-03   -1.5264    
   5  Prefactor     26.400        14.422        .77985E-04   -1.4680    
   6  Prefactor     .10000E-03    12.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.5829        9.3231        .12701E-02   -1.5387    
   8  Prefactor     .10000E-03    3.8006        .17159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     103.48        62.410        .39534E-04   -1.3670    
  10  Prefactor     .10000E-03    1.1886        .95794E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.9801        2.4345        .14861E-03   -1.5427    
  13  Prefactor     61.760        63.751        .51102E-04   -1.4135    
  14  norm          .10000E-03    .33701        .85593E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     56.874        42.359        .53224E-04   -1.4198    
  16  norm          8.8671        3.9088        .50205E-04   -1.5112    
  17  Prefactor     19.713        45.399        .89911E-04   -1.4820    
  18  Prefactor     .10000E-03    2.5093        .13978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          23.533        11.930        .82579E-04   -1.4737    
  20  Normalizat    .70055        .22508        .34862E-03   -1.0387    
  21  Prefactor     1.0348        .13825        .18894E-03   -.91577    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.10434e-10
Minuit parameter uncertainties:
  1  1.33971e-05
  2  5.89019
  3  2.34127e-06
  4  15.5731
  5  14.4242
  6  1.27949e-05
  7  9.32832
  8  1.29015e-06
  9  62.4492
  10  7.55785e-06
  11  3.41292e-06
  12  2.43465
  13  63.8216
  14  1.47542e-06
  15  42.3816
  16  3.90889
  17  45.4783
  18  1.67337e-06
  19  11.9313
  20  0.225376
  21  0.138299
Done.

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

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  1.000e-04  7.558e-06  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.035e+00  1.383e-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:  7.006e-01  2.254e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/300173/likelihoodResults_502156801_502416001_4FGL_J2225.7-0457_daily_bin1014.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) = 8175.29196231
delta logL = -0.00399210675096

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8175.28797102
delta logL = -8.15479324956e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4172       1.0000          .0000       10.000    
     3 'Normalizat'    .70061       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0347       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8175.288     FROM MIGRAD    STATUS=FAILED        84 CALLS      235 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10082E-03    69.821        .96067E-03** at limit **
   2  Index         2.3410        6.6485        .50000        .41624E-04
   3  Normalizat    .70055        .36164E-01    .34862E-03   -.10106E-03
   4  Prefactor     1.0348        .23608E-01    .18894E-03   -.11163E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8175.288     FROM SIMPLEX   STATUS=UNCHANGED    140 CALLS      375 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10082E-03    69.821        .22156E-03** at limit **
   2  Index         2.3410        6.6485        .13494E-03    .41624E-04
   3  Normalizat    .70055        .36164E-01    .22260E-05   -.10106E-03
   4  Prefactor     1.0348        .23608E-01    .95916E-06   -.11163E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8175.288     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      423 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    296.70        .19213E-03** at limit **
   2  Index         2.1647        5.5059        .50000       -.14463E-06
   3  Normalizat    .70055        .16532        .13945E-04    .28192E-03
   4  Prefactor     1.0348        .10769        .37789E-04    .56030E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.16465
  Normalizat = 0.700555
  Prefactor  = 1.03483
 **********
 **   18 **HESSE 
 **********

 FCN=   8175.288     FROM HESSE     STATUS=OK            29 CALLS      452 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.3049        .38427E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1647        5.1742        .50000       -.60294    
   3  Normalizat    .70055        .20801        .27890E-05   -1.0387    
   4  Prefactor     1.0348        .13592        .75578E-05   -.91577    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53597e-10
Minuit parameter uncertainties:
  1  1.24052e-06
  2  77.2899
  3  0.208246
  4  0.135967
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/300173': 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) = 8175.28796833
delta logL = 1.87792284123e-06

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  1.000e-04  1.241e-06  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.165e+00  7.729e+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:  1.035e+00  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:  7.006e-01  2.082e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/300173/cmap_HighResolution_502156801_502416001_4FGL_J2225.7-0457_daily_bin1014.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.14e-03', job_status='DONE', photon_flux_upper_limit='5.35e-08', time_completed='2021-09-28 11:34:30.726851', job_id='300173', GAL2='1.03', fit_tolerance='1e-08', EG2='0.70', EG='0.70', time_epoch_completed='1632854070.73', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='1.88e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1014' AND source_name='4FGL J2225.7-0457' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:34:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 300173: <4FGL_J2225.7-0457_daily_bin1014> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.7-0457_daily_bin1014 336.432 -4.9537 502156801 502416001 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 :                                   675.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            844 sec.

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

