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


Performing analysis on: 4FGL_J2225.7-0457_daily_bin1249
RA = 336.432, Dec = -4.9537
tmin = 563068801, tmax = 563328001
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='300539', job_status='RUN', time_executed='2021-09-28 11:23:20.512136', time_epoch_executed='1632853400.51' WHERE source_name='4FGL J2225.7-0457' and cadence='daily' and bin_id='1249'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/300539

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/300539/ft1_4FGL_J2225.7-0457_daily_bin1249.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/300539/ft2_4FGL_J2225.7-0457_daily_bin1249.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/300539/ft1_4FGL_J2225.7-0457_daily_bin1249.fits outfile=/scratch/kocevski/300539/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin1249.fits ra=336.432 dec=-4.9537 rad=12.0 tmin=563068801.0 tmax=563328001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.56
user 3.27
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/300539/ft2_4FGL_J2225.7-0457_daily_bin1249.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/300539/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin1249.fits evtable="EVENTS" outfile="/scratch/kocevski/300539/ft1_filtered_4FGL_J2225.7-0457_daily_bin1249.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/300539/ft1_filtered_4FGL_J2225.7-0457_daily_bin1249.fits" evtable="EVENTS" scfile=/scratch/kocevski/300539/ft2_4FGL_J2225.7-0457_daily_bin1249.fits sctable="SC_DATA" outfile=/scratch/kocevski/300539/ltcube_563068801_563328001_4FGL_J2225.7-0457_daily_bin1249.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/300539/ft2_4FGL_J2225.7-0457_daily_bin1249.fits
.....................!
real 15.38
user 15.02
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/300539/ft1_filtered_4FGL_J2225.7-0457_daily_bin1249.fits evtable="EVENTS" scfile=/scratch/kocevski/300539/ft2_4FGL_J2225.7-0457_daily_bin1249.fits sctable="SC_DATA" expcube=/scratch/kocevski/300539/ltcube_563068801_563328001_4FGL_J2225.7-0457_daily_bin1249.fits outfile=/scratch/kocevski/300539/expmap_563068801_563328001_4FGL_J2225.7-0457_daily_bin1249.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/300539/ltcube_563068801_563328001_4FGL_J2225.7-0457_daily_bin1249.fits
.....................!
real 190.72
user 185.36
sys 5.05

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/300539/ft1_filtered_4FGL_J2225.7-0457_daily_bin1249.fits scfile=/scratch/kocevski/300539/ft2_4FGL_J2225.7-0457_daily_bin1249.fits outfile=/scratch/kocevski/300539/cmap_563068801_563328001_4FGL_J2225.7-0457_daily_bin1249.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.40
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/300539/ft1_filtered_4FGL_J2225.7-0457_daily_bin1249.fits evtable="EVENTS" scfile=/scratch/kocevski/300539/ft2_4FGL_J2225.7-0457_daily_bin1249.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/300539/Model_4FGL_J2225.7-0457_daily_bin1249.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/300539/ft1_filtered_4FGL_J2225.7-0457_daily_bin1249.fits.....................!
real 75.51
user 74.19
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .28647       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12263E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    40.005       1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.370       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10529E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.0989       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12220E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .95657E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .39559E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    2.2531       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10713E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    8.1108       1.0000         .10000E-03   10000.    
    17 'Prefactor '    53.368       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10745E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    10.075       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .73221       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0614       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=   8425.553     FROM MIGRAD    STATUS=CONVERGED    476 CALLS     2261 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.439        .11425E-07** at limit **
   2  Prefactor     .27863        2.1956       -.76023E-06    .22046E-03
   3  Prefactor     .10000E-03    21.688       -.40839E-06** at limit **
   4  Prefactor     40.006        20.534       -.69633E-07    .78307E-05
   5  Prefactor     25.409        19.183       -.42755E-05    .13479E-04
   6  Prefactor     .10000E-03    8.8090       -.72698E-07** at limit **
   7  Prefactor     5.0983        9.7546       -.52111E-06   -.80198E-04
   8  Prefactor     .10000E-03    3.7958       -.88280E-08** at limit **
   9  Prefactor     .10000E-03    33.845        .10977E-04** at limit **
  10  Prefactor     .10000E-03    .91886       -.18638E-07** at limit **
  11  Prefactor     .10000E-03    63.779       -.17222E-05** at limit **
  12  norm          .13379        1.3008       -.35979E-06    .13681E-03
  13  Prefactor     .10000E-03    248.51       -.10372E-04** at limit **
  14  norm          2.2534        .88827        .17908E-07    .36259E-03
  15  Prefactor     .10000E-03    36.110       -.10152E-04** at limit **
  16  norm          8.1111        2.0331        .26297E-06    .18461E-02
  17  Prefactor     53.358        43.260       -.28744E-05    .23387E-03
  18  Prefactor     .10000E-03    9.6512       -.21768E-06** at limit **
  19  norm          10.075        9.1763        .13580E-05   -.83279E-05
  20  Normalizat    .73128        .19077        .11426E-05    .26161E-03
  21  Prefactor     1.0617        .11445        .31063E-06    .42861E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.278633
  Prefactor  = 0.000100001
  Prefactor  = 40.0059
  Prefactor  = 25.4092
  Prefactor  = 0.0001
  Prefactor  = 5.09826
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.133794
  Prefactor  = 0.0001
  norm       = 2.25341
  Prefactor  = 0.0001
  norm       = 8.11107
  Prefactor  = 53.3583
  Prefactor  = 0.0001
  norm       = 10.0754
  Normalizat = 0.73128
  Prefactor  = 1.06165
 **********
 **   18 **HESSE 
 **********

 FCN=   8425.553     FROM HESSE     STATUS=OK           315 CALLS     2576 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .27863        17.320        .25517E-02   -1.5602    
   3  Prefactor     .10000E-03    22.538        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     40.006        20.546        .63374E-04   -1.4442    
   5  Prefactor     25.409        19.317        .79531E-04   -1.4699    
   6  Prefactor     .10000E-03    8.8290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.0983        9.7793        .17806E-03   -1.5256    
   8  Prefactor     .10000E-03    3.8184        .17458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    33.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .92277        .85891E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    64.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .13379        18.198        .19430E-02   -1.5635    
  13  Prefactor     .10000E-03    256.30        .39016E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.2534        .88847        .52131E-04   -1.5408    
  15  Prefactor     .10000E-03    36.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.1111        2.0732        .49322E-04   -1.5138    
  17  Prefactor     53.358        43.894        .54903E-04   -1.4246    
  18  Prefactor     .10000E-03    9.9307        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          10.075        9.1642        .12624E-03   -1.5073    
  20  Normalizat    .73128        .22458        .34260E-03   -1.0267    
  21  Prefactor     1.0617        .13401        .18534E-03   -.90702    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00604e-09
Minuit parameter uncertainties:
  1  1.23501e-06
  2  4.39411
  3  0.000216378
  4  20.5501
  5  19.3219
  6  7.94131e-05
  7  9.78238
  8  8.09335e-06
  9  7.85794e-06
  10  3.67732e-07
  11  3.07346e-05
  12  3.12058
  13  0.000364723
  14  0.888471
  15  8.94361e-05
  16  2.07325
  17  43.9202
  18  1.35944e-05
  19  9.16544
  20  0.224868
  21  0.134047
Done.

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

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  1.000e-04  3.677e-07  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.062e+00  1.340e-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.313e-01  2.249e-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: 4.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/300539/likelihoodResults_563068801_563328001_4FGL_J2225.7-0457_daily_bin1249.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) = 8425.55801251
delta logL = -0.00511220971021

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8425.55290575
delta logL = -5.45214061276e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4119       1.0000          .0000       10.000    
     3 'Normalizat'    .73114       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0615       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=   8425.553     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      253 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.6875        .86573E-02** at limit **
   2  Index         1.4130        5.7693        .20000E-01    .29218E-06
   3  Normalizat    .73128        .20435        .34260E-03    .37571E-03
   4  Prefactor     1.0617        .13210        .18534E-03    .76031E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.41305
  Normalizat = 0.73128
  Prefactor  = 1.06165
 **********
 **   18 **HESSE 
 **********

 FCN=   8425.553     FROM HESSE     STATUS=OK            23 CALLS      276 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.4547        .21265E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.4130        8.8024        .80000E-03   -.80005    
   3  Normalizat    .73128        .20451        .13704E-04   -1.0267    
   4  Prefactor     1.0617        .13220        .37067E-04   -.90702    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.23672e-10
Minuit parameter uncertainties:
  1  8.0622e-06
  2  98.9536
  3  0.204728
  4  0.132237
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/300539': 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) = 8425.55288049
delta logL = 1.98117213586e-05

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  1.000e-04  8.062e-06  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  1.413e+00  9.895e+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.062e+00  1.322e-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.313e-01  2.047e-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/300539/cmap_HighResolution_563068801_563328001_4FGL_J2225.7-0457_daily_bin1249.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.69e-03', job_status='DONE', photon_flux_upper_limit='4.76e-08', time_completed='2021-09-28 11:34:34.948905', job_id='300539', GAL2='1.06', fit_tolerance='1e-08', EG2='0.73', EG='0.73', time_epoch_completed='1632854074.95', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='1.98e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1249' AND source_name='4FGL J2225.7-0457' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:34:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 300539: <4FGL_J2225.7-0457_daily_bin1249> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.7-0457_daily_bin1249 336.432 -4.9537 563068801 563328001 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 :                                   671.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   815 sec.
    Turnaround time :                            816 sec.

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

