/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 198 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 = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2225.7-0457_daily_bin924
RA = 336.432, Dec = -4.9537
tmin = 478828801, tmax = 479088001
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='300035', job_status='RUN', time_executed='2021-09-28 11:23:43.517410', time_epoch_executed='1632853423.52' WHERE source_name='4FGL J2225.7-0457' and cadence='daily' and bin_id='924'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/300035

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/300035/ft1_4FGL_J2225.7-0457_daily_bin924.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/300035/ft2_4FGL_J2225.7-0457_daily_bin924.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/300035/ft1_4FGL_J2225.7-0457_daily_bin924.fits outfile=/scratch/kocevski/300035/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin924.fits ra=336.432 dec=-4.9537 rad=12.0 tmin=478828801.0 tmax=479088001.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.46
user 3.23
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/300035/ft2_4FGL_J2225.7-0457_daily_bin924.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/300035/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin924.fits evtable="EVENTS" outfile="/scratch/kocevski/300035/ft1_filtered_4FGL_J2225.7-0457_daily_bin924.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/300035/ft1_filtered_4FGL_J2225.7-0457_daily_bin924.fits" evtable="EVENTS" scfile=/scratch/kocevski/300035/ft2_4FGL_J2225.7-0457_daily_bin924.fits sctable="SC_DATA" outfile=/scratch/kocevski/300035/ltcube_478828801_479088001_4FGL_J2225.7-0457_daily_bin924.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/300035/ft2_4FGL_J2225.7-0457_daily_bin924.fits
.....................!
real 12.38
user 12.03
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/300035/ft1_filtered_4FGL_J2225.7-0457_daily_bin924.fits evtable="EVENTS" scfile=/scratch/kocevski/300035/ft2_4FGL_J2225.7-0457_daily_bin924.fits sctable="SC_DATA" expcube=/scratch/kocevski/300035/ltcube_478828801_479088001_4FGL_J2225.7-0457_daily_bin924.fits outfile=/scratch/kocevski/300035/expmap_478828801_479088001_4FGL_J2225.7-0457_daily_bin924.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/300035/ltcube_478828801_479088001_4FGL_J2225.7-0457_daily_bin924.fits
.....................!
real 190.46
user 185.18
sys 4.95

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/300035/ft1_filtered_4FGL_J2225.7-0457_daily_bin924.fits scfile=/scratch/kocevski/300035/ft2_4FGL_J2225.7-0457_daily_bin924.fits outfile=/scratch/kocevski/300035/cmap_478828801_479088001_4FGL_J2225.7-0457_daily_bin924.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.36
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/300035/ft1_filtered_4FGL_J2225.7-0457_daily_bin924.fits evtable="EVENTS" scfile=/scratch/kocevski/300035/ft2_4FGL_J2225.7-0457_daily_bin924.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/300035/Model_4FGL_J2225.7-0457_daily_bin924.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/300035/ft1_filtered_4FGL_J2225.7-0457_daily_bin924.fits.....................!
real 74.39
user 73.00
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.911       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.9569       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.7606       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.8396       1.0000         .10000E-03   10000.    
     5 'Prefactor '    24.423       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11287E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.882       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    50.040       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.1467       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10372E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.454       1.0000         .10000E-03   10000.    
    14 'norm      '    .61938       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.0925       1.0000         .10000E-03   10000.    
    19 'norm      '    8.3025       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.5654       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .82331       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=   7822.595     FROM MIGRAD    STATUS=CONVERGED    431 CALLS     2190 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.909        42.341       -.35600E-06    .10882E-05
   2  Prefactor     6.9583        6.6595       -.10220E-06    .43407E-04
   3  Prefactor     5.7604        5.8546       -.11321E-06   -.53171E-05
   4  Prefactor     3.8353        25.197        .57200E-06    .56068E-05
   5  Prefactor     24.408        18.305       -.92360E-07   -.46914E-05
   6  Prefactor     .10000E-03    35.630        .36069E-06** at limit **
   7  Prefactor     14.890        13.111       -.52396E-06    .52510E-04
   8  Prefactor     .10000E-03    5.3111        .15937E-06** at limit **
   9  Prefactor     49.856        78.755       -.80733E-06   -.49084E-05
  10  Prefactor     4.1471        4.2406        .57303E-07    .20477E-03
  11  Prefactor     .10000E-03    15.833       -.78878E-07** at limit **
  12  norm          .10000E-03    2.4354       -.30985E-05** at limit **
  13  Prefactor     26.430        71.937       -.22702E-07    .29709E-04
  14  norm          .62013        .66430       -.31381E-06   -.84232E-03
  15  Prefactor     .10000E-03    2.7060        .19233E-07** at limit **
  16  norm          .10000E-03    .22863        .42910E-07** at limit **
  17  Prefactor     .10000E-03    13.807        .26626E-06** at limit **
  18  Prefactor     9.0946        9.2526       -.13200E-06    .13687E-04
  19  norm          8.3049        13.201       -.34667E-06    .15352E-04
  20  Normalizat    1.5650        .23126        .44315E-05    .11831E-04
  21  Prefactor     .82358        .13688       -.30149E-05    .36023E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.9092
  Prefactor  = 6.95834
  Prefactor  = 5.76035
  Prefactor  = 3.83533
  Prefactor  = 24.4085
  Prefactor  = 0.0001
  Prefactor  = 14.89
  Prefactor  = 0.0001
  Prefactor  = 49.8556
  Prefactor  = 4.14715
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 26.4298
  norm       = 0.62013
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.09456
  norm       = 8.30491
  Normalizat = 1.56499
  Prefactor  = 0.82358
 **********
 **   18 **HESSE 
 **********

 FCN=   7822.595     FROM HESSE     STATUS=OK           321 CALLS     2511 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.909        42.351        .83683E-04   -1.4750    
   2  Prefactor     6.9583        6.6626        .15210E-03   -1.5180    
   3  Prefactor     5.7604        5.8572        .16734E-03   -1.5228    
   4  Prefactor     3.8353        25.192        .20596E-03   -1.5316    
   5  Prefactor     24.408        18.282        .81055E-04   -1.4719    
   6  Prefactor     .10000E-03    37.048        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.890        13.126        .10382E-03   -1.4936    
   8  Prefactor     .10000E-03    5.3444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     49.856        78.860        .28345E-03   -1.4295    
  10  Prefactor     4.1471        4.2357        .17386E-03   -1.5301    
  11  Prefactor     .10000E-03    15.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.5761        .27296E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     26.430        71.917        .77887E-04   -1.4679    
  14  norm          .62013        .64083        .72860E-03   -1.5550    
  15  Prefactor     .10000E-03    2.7109        .14208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .23275        .41268E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.0946        9.2531        .13292E-03   -1.5105    
  19  norm          8.3049        13.215        .13913E-03   -1.5132    
  20  Normalizat    1.5650        .25356        .27995E-03   -.75968    
  21  Prefactor     .82358        .14935        .22681E-03   -.98865    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.93624e-10
Minuit parameter uncertainties:
  1  42.407
  2  6.66334
  3  5.85779
  4  19.6708
  5  18.2862
  6  3.64711e-06
  7  13.1288
  8  3.24124e-06
  9  79.0254
  10  4.23596
  11  6.73234e-06
  12  4.22942e-05
  13  72.154
  14  0.640841
  15  8.80742e-07
  16  4.4215e-08
  17  1.72415e-07
  18  9.25456
  19  13.2197
  20  0.253767
  21  0.14942
Done.

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

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  4.147e+00  4.236e+00  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.425e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
238        Scale:  7.735e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
473    Prefactor:  8.236e-01  1.494e-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:  1.565e+00  2.538e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.26
Ra Dec: 336.432 -4.954
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 4.16e-08 +/- 4.24e-08
Energy Flux (Fixed Index): 1.32e-05 +/- 1.35e-05

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

Saving results to:
/scratch/kocevski/300035/likelihoodResults_478828801_479088001_4FGL_J2225.7-0457_daily_bin924.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7822.37970788
delta logL = 0.215635142454

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7822.37659345
delta logL = 0.218749575016

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0861       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8737       1.0000          .0000       10.000    
     3 'Normalizat'    1.5475       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82944       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=   7822.377     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      279 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0863        4.0562        .12934E-03   -.43818E-03
   2  Index         2.8737        .78112        .81203E-02   -.60535E-04
   3  Normalizat    1.5475        .24355        .28119E-03    .20404E-03
   4  Prefactor     .82943        .14817        .22606E-03    .25794E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.08634
  Index      = 2.87371
  Normalizat = 1.54748
  Prefactor  = 0.829429
 **********
 **   18 **HESSE 
 **********

 FCN=   7822.377     FROM HESSE     STATUS=OK            25 CALLS      304 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0863        3.7020        .51735E-05   -1.5357    
   2  Index         2.8737        .71307        .32481E-03   -.43925    
   3  Normalizat    1.5475        .24377        .56239E-04   -.76453    
   4  Prefactor     .82943        .14824        .90423E-05   -.98652    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61036e-10
Minuit parameter uncertainties:
  1  3.70223
  2  0.716051
  3  0.243954
  4  0.148314
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/300035': 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) = 7822.37659344
delta logL = 0.218749586173

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  3.086e+00  3.702e+00  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.874e+00  7.161e-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:  8.294e-01  1.483e-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:  1.547e+00  2.440e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.70
Ra Dec: 336.432 -4.954
Photon Index (Free Index): 2.87 +/- 0.72
Photon Flux (Free Index): 5.90e-08 +/- 5.39e-08
Energy Flux (Free Index): 1.26e-05 +/- 1.12e-05

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/300035/cmap_HighResolution_478828801_479088001_4FGL_J2225.7-0457_daily_bin924.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', comment='SUCCESS', photon_flux='4.16e-08', energy_flux2='1.26e-05', photon_flux_error='4.24e-08', dlogl='2.19e-01', energy_flux='1.32e-05', photon_flux2='5.90e-08', job_status='DONE', time_completed='2021-09-28 11:34:32.490857', photon_index_error2='0.72', photon_index2='2.87', ts='1.26', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='1.32e-07', energy_flux_error2='1.12e-05', EG='1.56', time_epoch_completed='1632854072.49', return_code='0', job_id='300035', GAL2='0.83', EG2='1.55', return_code2='0', energy_flux_error='1.35e-05', photon_flux_error2='5.39e-08', ts2='1.70', photon_index='2.43' WHERE bin_id='924' AND source_name='4FGL J2225.7-0457' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:34:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 300035: <4FGL_J2225.7-0457_daily_bin924> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.7-0457_daily_bin924 336.432 -4.9537 478828801 479088001 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 :                                   648.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            860 sec.

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

