/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 125 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 = 7478
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2225.7-0457_daily_bin22
RA = 336.432, Dec = -4.9537
tmin = 245030401, tmax = 245289601
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='293999', job_status='RUN', time_executed='2021-09-28 11:03:19.659138', time_epoch_executed='1632852199.66' WHERE source_name='4FGL J2225.7-0457' and cadence='daily' and bin_id='22'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293999

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293999/ft1_4FGL_J2225.7-0457_daily_bin22.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293999/ft2_4FGL_J2225.7-0457_daily_bin22.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293999/ft1_4FGL_J2225.7-0457_daily_bin22.fits outfile=/scratch/kocevski/293999/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin22.fits ra=336.432 dec=-4.9537 rad=12.0 tmin=245030401.0 tmax=245289601.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 1.43
user 1.26
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/293999/ft2_4FGL_J2225.7-0457_daily_bin22.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/293999/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin22.fits evtable="EVENTS" outfile="/scratch/kocevski/293999/ft1_filtered_4FGL_J2225.7-0457_daily_bin22.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/293999/ft1_filtered_4FGL_J2225.7-0457_daily_bin22.fits" evtable="EVENTS" scfile=/scratch/kocevski/293999/ft2_4FGL_J2225.7-0457_daily_bin22.fits sctable="SC_DATA" outfile=/scratch/kocevski/293999/ltcube_245030401_245289601_4FGL_J2225.7-0457_daily_bin22.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/293999/ft2_4FGL_J2225.7-0457_daily_bin22.fits
.....................!
real 12.89
user 12.44
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293999/ft1_filtered_4FGL_J2225.7-0457_daily_bin22.fits evtable="EVENTS" scfile=/scratch/kocevski/293999/ft2_4FGL_J2225.7-0457_daily_bin22.fits sctable="SC_DATA" expcube=/scratch/kocevski/293999/ltcube_245030401_245289601_4FGL_J2225.7-0457_daily_bin22.fits outfile=/scratch/kocevski/293999/expmap_245030401_245289601_4FGL_J2225.7-0457_daily_bin22.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/293999/ltcube_245030401_245289601_4FGL_J2225.7-0457_daily_bin22.fits
.....................!
real 190.80
user 184.84
sys 5.66

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/293999/ft1_filtered_4FGL_J2225.7-0457_daily_bin22.fits scfile=/scratch/kocevski/293999/ft2_4FGL_J2225.7-0457_daily_bin22.fits outfile=/scratch/kocevski/293999/cmap_245030401_245289601_4FGL_J2225.7-0457_daily_bin22.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.52
user 0.37
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/293999/ft1_filtered_4FGL_J2225.7-0457_daily_bin22.fits evtable="EVENTS" scfile=/scratch/kocevski/293999/ft2_4FGL_J2225.7-0457_daily_bin22.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/293999/Model_4FGL_J2225.7-0457_daily_bin22.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/293999/ft1_filtered_4FGL_J2225.7-0457_daily_bin22.fits.....................!
real 75.10
user 73.65
sys 1.33

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.335       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.721       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.3868       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.3756       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.221       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.7474       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.6560       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    8.5818       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .23125E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.5747       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.8453       1.0000         .10000E-03   10000.    
    19 'norm      '    .59523E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .47012       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0477       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=   8321.147     FROM MIGRAD    STATUS=CONVERGED    436 CALLS     2230 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.335        35.986        .24049E-02   -.38433E-04
   2  Prefactor     11.721        6.4066        .29253E-02   -.76189E-03
   3  Prefactor     9.3859        10.425        .32701E-02    .21032E-02
   4  Prefactor     .10000E-03    14.280        .90712E-02** at limit **
   5  Prefactor     .10000E-03    7.3384        .90712E-02** at limit **
   6  Prefactor     7.3775        12.297        .36921E-02   -.40961E-03
   7  Prefactor     14.220        10.291        .26553E-02   -.22918E-03
   8  Prefactor     9.7469        8.1934        .32088E-02    .45876E-03
   9  Prefactor     .10003E-03    21.725        .90712E-02** at limit **
  10  Prefactor     8.6561        4.0552        .34061E-02    .19550E-02
  11  Prefactor     .10000E-03    23.323        .90712E-02** at limit **
  12  norm          8.5811        3.5063        .34209E-02   -.69302E-02
  13  Prefactor     .10001E-03    16.964        .90712E-02** at limit **
  14  norm          .35322E-02    .26375        .36452E-01   -.55682E-03
  15  Prefactor     .10000E-03    2.5114        .90712E-02** at limit **
  16  norm          .10000E-03    .18845        .90712E-02** at limit **
  17  Prefactor     2.5742        8.1727        .63591E-02    .28518E-03
  18  Prefactor     1.8453        3.3122        .76749E-02   -.14563E-02
  19  norm          .10000E-03    5.5628        .79146E-01** at limit **
  20  Normalizat    .47022        .17330        .83001E-01    .11019E-03
  21  Prefactor     1.0477        .10505        .40044E-01    .10633E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.335
  Prefactor  = 11.7206
  Prefactor  = 9.38589
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.37747
  Prefactor  = 14.2198
  Prefactor  = 9.74689
  Prefactor  = 0.000100028
  Prefactor  = 8.65611
  Prefactor  = 0.000100001
  norm       = 8.5811
  Prefactor  = 0.00010001
  norm       = 0.00353221
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.57423
  Prefactor  = 1.84528
  norm       = 0.000100001
  Normalizat = 0.470219
  Prefactor  = 1.04769
 **********
 **   18 **HESSE 
 **********

 FCN=   8321.147     FROM HESSE     STATUS=OK           327 CALLS     2557 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.335        35.966        .96195E-04   -1.4875    
   2  Prefactor     11.721        6.3922        .11701E-03   -1.5023    
   3  Prefactor     9.3859        10.415        .65403E-03   -1.5095    
   4  Prefactor     .10000E-03    14.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.3953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.3775        12.255        .14768E-03   -1.5165    
   7  Prefactor     14.220        10.276        .10621E-03   -1.4954    
   8  Prefactor     9.7469        8.1729        .12835E-03   -1.5083    
   9  Prefactor     .10003E-03    21.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.6561        4.0458        .11413E-03   -1.5119    
  11  Prefactor     .10000E-03    23.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          8.5811        3.4991        .10193E-03   -1.5122    
  13  Prefactor     .10001E-03    16.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .35322E-02    .93625        .15614E-01   -1.5696    
  15  Prefactor     .10000E-03    2.5184        .14112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .19332        .76931E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.5742        8.1041        .25436E-03   -1.5387    
  18  Prefactor     1.8453        3.2798        .21694E-03   -1.5436    
  19  norm          .10000E-03    31.532        .41094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .47022        .18918        .36764E-03   -1.1382    
  21  Prefactor     1.0477        .11793        .16484E-03   -.91156    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7681e-07
Minuit parameter uncertainties:
  1  36.0105
  2  6.39256
  3  10.4167
  4  1.80481e-05
  5  1.83144e-05
  6  12.2589
  7  10.2777
  8  8.17382
  9  0.00155113
  10  4.04595
  11  0.000264996
  12  3.49917
  13  0.000805765
  14  0.113376
  15  2.045e-06
  16  1.46415e-07
  17  8.10759
  18  3.2801
  19  0.00030756
  20  0.189438
  21  0.117959
Done.

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

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  8.656e+00  4.046e+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:  1.048e+00  1.180e-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:  4.702e-01  1.894e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.17
Ra Dec: 336.432 -4.954
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 8.68e-08 +/- 4.05e-08
Energy Flux (Fixed Index): 2.75e-05 +/- 1.29e-05

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) = 8321.14687063
delta logL = 0.000243494565439

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8321.14674541
delta logL = 0.000368712086129

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.7239       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4140       1.0000          .0000       10.000    
     3 'Normalizat'    .47102       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0473       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=   8321.147     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      205 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.7239        65.667        .33928E-02    .52559E-03
   2  Index         2.4141        3.2024        .16096        .10258E-03
   3  Normalizat    .47102        .89637E-01    .82935E-01    .57995E-04
   4  Prefactor     1.0474        .45415E-01    .40068E-01   -.52572E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.72393
  Index      = 2.41406
  Normalizat = 0.471018
  Prefactor  = 1.04735
 **********
 **   18 **HESSE 
 **********

 FCN=   8321.147     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.7239        4.7395        .11478E-03   -1.5117    
   2  Index         2.4141        .43127        .59413E-02   -.54356    
   3  Normalizat    .47102        .18051        .36735E-03   -1.1378    
   4  Prefactor     1.0474        .11727        .16487E-03   -.91167    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48703e-09
Minuit parameter uncertainties:
  1  4.73968
  2  0.432008
  3  0.180735
  4  0.117302
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293999': 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) = 8321.14674541
delta logL = 0.000368712446289

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  8.724e+00  4.740e+00  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.414e+00  4.320e-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.047e+00  1.173e-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:  4.710e-01  1.807e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.22
Ra Dec: 336.432 -4.954
Photon Index (Free Index): 2.41 +/- 0.43
Photon Flux (Free Index): 8.62e-08 +/- 4.48e-08
Energy Flux (Free Index): 2.77e-05 +/- 1.47e-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/293999/cmap_HighResolution_245030401_245289601_4FGL_J2225.7-0457_daily_bin22.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.68e-08', energy_flux2='2.77e-05', photon_flux_error='4.05e-08', dlogl='3.69e-04', energy_flux='2.75e-05', photon_flux2='8.62e-08', job_status='DONE', time_completed='2021-09-28 11:13:07.317339', photon_index_error2='0.43', photon_index2='2.41', ts='10.17', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='1.47e-05', EG='0.47', time_epoch_completed='1632852787.32', return_code='0', job_id='293999', GAL2='1.05', EG2='0.47', return_code2='0', energy_flux_error='1.29e-05', photon_flux_error2='4.48e-08', ts2='10.22', photon_index='2.43' WHERE bin_id='22' AND source_name='4FGL J2225.7-0457' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:13:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 293999: <4FGL_J2225.7-0457_daily_bin22> in cluster <slac> Done

Job <4FGL_J2225.7-0457_daily_bin22> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 11:01:03 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 11:01:05 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:01:05 2021
Terminated at Tue Sep 28 11:13:08 2021
Results reported at Tue Sep 28 11:13:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.7-0457_daily_bin22 336.432 -4.9537 245030401 245289601 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 :                                   589.31 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             280.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   722 sec.
    Turnaround time :                            725 sec.

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

