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


Performing analysis on: 4FGL_J2225.7-0457_daily_bin554
RA = 336.432, Dec = -4.9537
tmin = 382924801, tmax = 383184001
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='298345', job_status='RUN', time_executed='2021-09-28 11:19:09.445758', time_epoch_executed='1632853149.45' WHERE source_name='4FGL J2225.7-0457' and cadence='daily' and bin_id='554'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/298345

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/298345/ft1_4FGL_J2225.7-0457_daily_bin554.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/298345/ft2_4FGL_J2225.7-0457_daily_bin554.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/298345/ft1_4FGL_J2225.7-0457_daily_bin554.fits outfile=/scratch/kocevski/298345/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin554.fits ra=336.432 dec=-4.9537 rad=12.0 tmin=382924801.0 tmax=383184001.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.44
user 4.21
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/298345/ft1_filtered_4FGL_J2225.7-0457_daily_bin554.fits" evtable="EVENTS" scfile=/scratch/kocevski/298345/ft2_4FGL_J2225.7-0457_daily_bin554.fits sctable="SC_DATA" outfile=/scratch/kocevski/298345/ltcube_382924801_383184001_4FGL_J2225.7-0457_daily_bin554.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/298345/ft2_4FGL_J2225.7-0457_daily_bin554.fits
.....................!
real 12.06
user 11.68
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/298345/ft1_filtered_4FGL_J2225.7-0457_daily_bin554.fits evtable="EVENTS" scfile=/scratch/kocevski/298345/ft2_4FGL_J2225.7-0457_daily_bin554.fits sctable="SC_DATA" expcube=/scratch/kocevski/298345/ltcube_382924801_383184001_4FGL_J2225.7-0457_daily_bin554.fits outfile=/scratch/kocevski/298345/expmap_382924801_383184001_4FGL_J2225.7-0457_daily_bin554.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/298345/ltcube_382924801_383184001_4FGL_J2225.7-0457_daily_bin554.fits
.....................!
real 191.22
user 185.45
sys 5.38

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/298345/ft1_filtered_4FGL_J2225.7-0457_daily_bin554.fits scfile=/scratch/kocevski/298345/ft2_4FGL_J2225.7-0457_daily_bin554.fits outfile=/scratch/kocevski/298345/cmap_382924801_383184001_4FGL_J2225.7-0457_daily_bin554.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.56
user 0.36
sys 0.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/298345/ft1_filtered_4FGL_J2225.7-0457_daily_bin554.fits scfile=/scratch/kocevski/298345/ft2_4FGL_J2225.7-0457_daily_bin554.fits outfile=/scratch/kocevski/298345/cmap_HighResolution_382924801_383184001_4FGL_J2225.7-0457_daily_bin554.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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/298345/ft1_filtered_4FGL_J2225.7-0457_daily_bin554.fits evtable="EVENTS" scfile=/scratch/kocevski/298345/ft2_4FGL_J2225.7-0457_daily_bin554.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/298345/Model_4FGL_J2225.7-0457_daily_bin554.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/298345/ft1_filtered_4FGL_J2225.7-0457_daily_bin554.fits.....................!
real 73.20
user 71.72
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.422       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.7245       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.540       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.353       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .88231E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    4.4219       1.0000         .10000E-03   10000.    
    13 'Prefactor '    46.520       1.0000         .10000E-03   10000.    
    14 'norm      '    2.3248       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14656E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    .13303       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.1268       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .98105       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1810       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=   8052.810     FROM MIGRAD    STATUS=CONVERGED    478 CALLS     2010 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.496        .89712E-08** at limit **
   2  Prefactor     23.422        8.3685        .75292E-07   -.20584E-04
   3  Prefactor     5.7244        5.2158        .19480E-06    .41550E-04
   4  Prefactor     14.540        13.467       -.25670E-06    .50196E-05
   5  Prefactor     .10000E-03    10.551        .12115E-06** at limit **
   6  Prefactor     .10000E-03    5.1176       -.12838E-07** at limit **
   7  Prefactor     18.353        13.976       -.16020E-06    .23980E-03
   8  Prefactor     .10000E-03    4.9946        .35688E-06** at limit **
   9  Prefactor     .10000E-03    121.42       -.27044E-05** at limit **
  10  Prefactor     .10000E-03    4.2835        .11644E-05** at limit **
  11  Prefactor     .10003E-03    357.92        .45044E-04** at limit **
  12  norm          4.4227        4.2026       -.50507E-06    .31359E-04
  13  Prefactor     46.497        50.922       -.12332E-05    .22268E-04
  14  norm          2.3249        .92511        .46512E-06    .15598E-02
  15  Prefactor     .10000E-03    140.39        .36824E-04** at limit **
  16  norm          .13475        .84414       -.15994E-05    .45063E-04
  17  Prefactor     3.1474        32.529       -.29715E-05   -.63727E-04
  18  Prefactor     .10000E-03    5.4337        .18281E-06** at limit **
  19  norm          .10000E-03    2.6840        .52755E-07** at limit **
  20  Normalizat    .98101        .21920        .71121E-05    .57794E-04
  21  Prefactor     1.1811        .13212       -.21339E-05    .73621E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 23.4218
  Prefactor  = 5.72441
  Prefactor  = 14.5403
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.3526
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.00010003
  norm       = 4.4227
  Prefactor  = 46.4975
  norm       = 2.3249
  Prefactor  = 0.000100001
  norm       = 0.134747
  Prefactor  = 3.14743
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.981012
  Prefactor  = 1.18108
 **********
 **   18 **HESSE 
 **********

 FCN=   8052.810     FROM HESSE     STATUS=OK           327 CALLS     2337 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     23.422        8.3731        .82767E-04   -1.4740    
   3  Prefactor     5.7244        5.2192        .16788E-03   -1.5229    
   4  Prefactor     14.540        13.468        .10504E-03   -1.4945    
   5  Prefactor     .10000E-03    10.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.1268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     18.353        14.021        .93490E-04   -1.4851    
   8  Prefactor     .10000E-03    5.0243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    121.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.4313        .36108E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10003E-03    364.63        .36609E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.4227        4.2028        .16533E-03   -1.5287    
  13  Prefactor     46.497        50.900        .58787E-04   -1.4343    
  14  norm          2.3249        .92884        .52603E-04   -1.5403    
  15  Prefactor     .10000E-03    18.509        .63890E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .13475        1.4916        .10934E-02   -1.5635    
  17  Prefactor     3.1474        37.641        .22928E-03   -1.5353    
  18  Prefactor     .10000E-03    5.4879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.6872        .14357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .98101        .24636        .33080E-03   -.93669    
  21  Prefactor     1.1811        .15055        .19771E-03   -.86916    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41829e-09
Minuit parameter uncertainties:
  1  3.19247e-05
  2  8.37353
  3  5.21958
  4  13.4711
  5  2.56359e-05
  6  9.20557e-06
  7  14.0232
  8  3.24818e-05
  9  0.000959437
  10  4.69661e-05
  11  0.00667964
  12  4.20308
  13  50.9477
  14  0.928848
  15  0.000330094
  16  0.896343
  17  21.7858
  18  7.17141e-06
  19  6.98251e-06
  20  0.246648
  21  0.150601
Done.

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

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  1.000e-04  4.697e-05  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.181e+00  1.506e-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.810e-01  2.466e-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: 8.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/298345/likelihoodResults_382924801_383184001_4FGL_J2225.7-0457_daily_bin554.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) = 8052.81141896
delta logL = -0.00106981307181

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8052.81034979
delta logL = -6.48115928925e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8052.810     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      215 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.6691        .90712E-02** at limit **
   2  Index         2.4236        6.4637        .50000        .16364E-05
   3  Normalizat    .98102        .57770E-02    .74757E-01    .56223E-04
   4  Prefactor     1.1811        .37655E-02    .35091E-01    .61397E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.42356
  Normalizat = 0.981018
  Prefactor  = 1.18108
 **********
 **   18 **HESSE 
 **********

 FCN=   8052.810     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      248 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.779        .36112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4236        5.1624        .50000       -.54134    
   3  Normalizat    .98102        .11855E-01    .33080E-03   -.93669    
   4  Prefactor     1.1811        .77409E-02    .19771E-03   -.86916    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.02688e-09
Minuit parameter uncertainties:
  1  0.000152703
  2  188.801
  3  0.011855
  4  0.00774094
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/298345': 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): 102
logL (Free Index) = 8052.81034914
delta logL = 1.15869625006e-09

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  1.000e-04  1.527e-04  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.424e+00  1.888e+02  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.181e+00  7.741e-03  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.810e-01  1.186e-02  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/298345/cmap_HighResolution_382924801_383184001_4FGL_J2225.7-0457_daily_bin554.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.42e-03', job_status='DONE', photon_flux_upper_limit='8.29e-08', time_completed='2021-09-28 11:30:00.604341', job_id='298345', GAL2='1.18', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1632853800.6', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='1.16e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='554' AND source_name='4FGL J2225.7-0457' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:30:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 298345: <4FGL_J2225.7-0457_daily_bin554> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.7-0457_daily_bin554 336.432 -4.9537 382924801 383184001 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 :                                   650.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             253.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            891 sec.

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

