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


Performing analysis on: 4FGL_J2225.7-0457_daily_bin1318
RA = 336.432, Dec = -4.9537
tmin = 580953601, tmax = 581212801
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='300646', job_status='RUN', time_executed='2021-09-28 11:23:15.834578', time_epoch_executed='1632853395.83' WHERE source_name='4FGL J2225.7-0457' and cadence='daily' and bin_id='1318'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/300646

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/300646/ft1_4FGL_J2225.7-0457_daily_bin1318.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/300646/ft2_4FGL_J2225.7-0457_daily_bin1318.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/300646/ft1_4FGL_J2225.7-0457_daily_bin1318.fits outfile=/scratch/kocevski/300646/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin1318.fits ra=336.432 dec=-4.9537 rad=12.0 tmin=580953601.0 tmax=581212801.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 2.99
user 2.78
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/300646/ft2_4FGL_J2225.7-0457_daily_bin1318.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/300646/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin1318.fits evtable="EVENTS" outfile="/scratch/kocevski/300646/ft1_filtered_4FGL_J2225.7-0457_daily_bin1318.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/300646/ft1_filtered_4FGL_J2225.7-0457_daily_bin1318.fits" evtable="EVENTS" scfile=/scratch/kocevski/300646/ft2_4FGL_J2225.7-0457_daily_bin1318.fits sctable="SC_DATA" outfile=/scratch/kocevski/300646/ltcube_580953601_581212801_4FGL_J2225.7-0457_daily_bin1318.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/300646/ft2_4FGL_J2225.7-0457_daily_bin1318.fits
.....................!
real 12.58
user 12.19
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/300646/ft1_filtered_4FGL_J2225.7-0457_daily_bin1318.fits evtable="EVENTS" scfile=/scratch/kocevski/300646/ft2_4FGL_J2225.7-0457_daily_bin1318.fits sctable="SC_DATA" expcube=/scratch/kocevski/300646/ltcube_580953601_581212801_4FGL_J2225.7-0457_daily_bin1318.fits outfile=/scratch/kocevski/300646/expmap_580953601_581212801_4FGL_J2225.7-0457_daily_bin1318.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/300646/ltcube_580953601_581212801_4FGL_J2225.7-0457_daily_bin1318.fits
.....................!
real 190.80
user 186.02
sys 4.44

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/300646/ft1_filtered_4FGL_J2225.7-0457_daily_bin1318.fits scfile=/scratch/kocevski/300646/ft2_4FGL_J2225.7-0457_daily_bin1318.fits outfile=/scratch/kocevski/300646/cmap_580953601_581212801_4FGL_J2225.7-0457_daily_bin1318.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=336.432 yref=-4.9537 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/300646/ft1_filtered_4FGL_J2225.7-0457_daily_bin1318.fits scfile=/scratch/kocevski/300646/ft2_4FGL_J2225.7-0457_daily_bin1318.fits outfile=/scratch/kocevski/300646/cmap_HighResolution_580953601_581212801_4FGL_J2225.7-0457_daily_bin1318.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    28.411       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.0986       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.0454       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.811       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    54.120       1.0000         .10000E-03   10000.    
    12 'norm      '    4.3511       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.0353       1.0000         .10000E-03   10000.    
    15 'Prefactor '    52.630       1.0000         .10000E-03   10000.    
    16 'norm      '    1.6489       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.5136       1.0000         .10000E-03   10000.    
    19 'norm      '    17.930       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .61262       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1310       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=   9397.321     FROM MIGRAD    STATUS=CONVERGED    426 CALLS     2163 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.982       -.16556E-04** at limit **
   2  Prefactor     .10000E-03    2.8778       -.51339E-06** at limit **
   3  Prefactor     .10000E-03    2.8131        .72659E-06** at limit **
   4  Prefactor     28.410        17.308       -.64717E-06    .32849E-04
   5  Prefactor     5.0976        10.722       -.93742E-06   -.12403E-03
   6  Prefactor     5.0467        13.878        .13247E-05   -.11166E-03
   7  Prefactor     .10000E-03    2.6449       -.19889E-06** at limit **
   8  Prefactor     .10000E-03    6.8779        .20931E-05** at limit **
   9  Prefactor     12.812        44.659        .20807E-05   -.14984E-04
  10  Prefactor     .10000E-03    1.1582        .14527E-07** at limit **
  11  Prefactor     54.118        44.757       -.24682E-05    .51331E-04
  12  norm          4.3512        2.5654       -.10251E-06   -.39781E-03
  13  Prefactor     .10000E-03    21.188        .16317E-04** at limit **
  14  norm          3.0353        .88477       -.13464E-07   -.84153E-04
  15  Prefactor     52.633        22.056        .31992E-05   -.93646E-04
  16  norm          1.6486        1.6500       -.13242E-05   -.35569E-02
  17  Prefactor     .10000E-03    7.7816       -.27946E-05** at limit **
  18  Prefactor     4.5135        5.3550       -.87385E-06   -.13144E-02
  19  norm          17.929        10.734       -.13154E-06   -.18685E-04
  20  Normalizat    .61257        .16978       -.68761E-06   -.38628E-04
  21  Prefactor     1.1310        .10911        .29753E-06   -.62039E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.4105
  Prefactor  = 5.09757
  Prefactor  = 5.04668
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.8122
  Prefactor  = 0.0001
  Prefactor  = 54.1183
  norm       = 4.35117
  Prefactor  = 0.000100004
  norm       = 3.0353
  Prefactor  = 52.6328
  norm       = 1.64855
  Prefactor  = 0.0001
  Prefactor  = 4.51354
  norm       = 17.9295
  Normalizat = 0.612574
  Prefactor  = 1.131
 **********
 **   18 **HESSE 
 **********

 FCN=   9397.321     FROM HESSE     STATUS=OK           319 CALLS     2482 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.9520        .32093E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.8196        .15872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     28.410        17.298        .75163E-04   -1.4641    
   5  Prefactor     5.0976        10.615        .17806E-03   -1.5256    
   6  Prefactor     5.0467        13.707        .17902E-03   -1.5259    
   7  Prefactor     .10000E-03    2.6584        .15394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.0715        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.812        44.607        .11191E-03   -1.4992    
  10  Prefactor     .10000E-03    1.1792        .10182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     54.118        44.718        .54523E-04   -1.4235    
  12  norm          4.3512        2.5634        .11319E-03   -1.5291    
  13  Prefactor     .10000E-03    20.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.0353        .88379        .47116E-04   -1.5360    
  15  Prefactor     52.633        23.341        .55285E-04   -1.4256    
  16  norm          1.6486        1.7694        .16442E-03   -1.5451    
  17  Prefactor     .10000E-03    7.7689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.5135        5.4485        .94751E-03   -1.5283    
  19  norm          17.929        10.736        .94586E-04   -1.4861    
  20  Normalizat    .61257        .19082        .35683E-03   -1.0745    
  21  Prefactor     1.1310        .12380        .17849E-03   -.88482    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.7732e-09
Minuit parameter uncertainties:
  1  0.000623275
  2  1.04751e-05
  3  9.54918e-06
  4  17.3007
  5  10.6185
  6  13.7153
  7  2.93387e-06
  8  6.08836e-05
  9  44.7231
  10  7.67808e-07
  11  44.7456
  12  2.56344
  13  0.000569521
  14  0.883789
  15  23.3455
  16  1.76946
  17  5.07401e-05
  18  5.44909
  19  10.7367
  20  0.191025
  21  0.123834
Done.

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

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  1.000e-04  7.678e-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.131e+00  1.238e-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:  6.126e-01  1.910e-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.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/300646/likelihoodResults_580953601_581212801_4FGL_J2225.7-0457_daily_bin1318.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) = 9397.32459883
delta logL = -0.00403171982543

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9397.32056648
delta logL = 6.29490386928e-07

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 'Index     '    2.4062       1.0000          .0000       10.000    
     3 'Normalizat'    .61257       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1310       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=   9397.321     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      255 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.7039        .10332E-01** at limit **
   2  Index         2.0667        5.3264        .50000        .15558E-05
   3  Normalizat    .61257        .74848E-02    .35683E-03   -.91402E-03
   4  Prefactor     1.1310        .49982E-02    .17849E-03   -.18072E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.06675
  Normalizat = 0.612572
  Prefactor  = 1.13099
 **********
 **   18 **HESSE 
 **********

 FCN=   9397.321     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      284 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    50.616        .10999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0667        5.9289        .50000       -.62692    
   3  Normalizat    .61257        .25273E-01    .14273E-04   -1.0745    
   4  Prefactor     1.1310        .16877E-01    .35697E-04   -.88482    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.91213e-08
Minuit parameter uncertainties:
  1  3.08056e-05
  2  329.084
  3  0.0252737
  4  0.0168774
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/300646': 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) = 9397.3205611
delta logL = 6.0092570493e-06

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  1.000e-04  3.081e-05  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.067e+00  3.291e+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.131e+00  1.688e-02  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:  6.126e-01  2.527e-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/300646/cmap_HighResolution_580953601_581212801_4FGL_J2225.7-0457_daily_bin1318.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.70e-03', job_status='DONE', photon_flux_upper_limit='4.78e-08', time_completed='2021-09-28 11:35:06.805880', job_id='300646', GAL2='1.13', fit_tolerance='1e-08', EG2='0.61', EG='0.61', time_epoch_completed='1632854106.81', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='6.01e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1318' AND source_name='4FGL J2225.7-0457' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:35:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 300646: <4FGL_J2225.7-0457_daily_bin1318> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.7-0457_daily_bin1318 336.432 -4.9537 580953601 581212801 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 :                                   708.18 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             313.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            839 sec.

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

