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


Performing analysis on: 4FGL_J2225.7-0457_daily_bin56
RA = 336.432, Dec = -4.9537
tmin = 253843201, tmax = 254102401
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='294052', job_status='RUN', time_executed='2021-09-28 11:01:18.347775', time_epoch_executed='1632852078.35' WHERE source_name='4FGL J2225.7-0457' and cadence='daily' and bin_id='56'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/294052

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/294052/ft1_4FGL_J2225.7-0457_daily_bin56.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/294052/ft2_4FGL_J2225.7-0457_daily_bin56.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/294052/ft1_4FGL_J2225.7-0457_daily_bin56.fits outfile=/scratch/kocevski/294052/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin56.fits ra=336.432 dec=-4.9537 rad=12.0 tmin=253843201.0 tmax=254102401.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.47
user 1.30
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/294052/ft2_4FGL_J2225.7-0457_daily_bin56.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/294052/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin56.fits evtable="EVENTS" outfile="/scratch/kocevski/294052/ft1_filtered_4FGL_J2225.7-0457_daily_bin56.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.48
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/294052/ft1_filtered_4FGL_J2225.7-0457_daily_bin56.fits" evtable="EVENTS" scfile=/scratch/kocevski/294052/ft2_4FGL_J2225.7-0457_daily_bin56.fits sctable="SC_DATA" outfile=/scratch/kocevski/294052/ltcube_253843201_254102401_4FGL_J2225.7-0457_daily_bin56.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/294052/ft2_4FGL_J2225.7-0457_daily_bin56.fits
.....................!
real 13.34
user 12.93
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/294052/ft1_filtered_4FGL_J2225.7-0457_daily_bin56.fits evtable="EVENTS" scfile=/scratch/kocevski/294052/ft2_4FGL_J2225.7-0457_daily_bin56.fits sctable="SC_DATA" expcube=/scratch/kocevski/294052/ltcube_253843201_254102401_4FGL_J2225.7-0457_daily_bin56.fits outfile=/scratch/kocevski/294052/expmap_253843201_254102401_4FGL_J2225.7-0457_daily_bin56.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/294052/ltcube_253843201_254102401_4FGL_J2225.7-0457_daily_bin56.fits
.....................!
real 191.53
user 185.56
sys 5.63

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

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

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/294052/ft1_filtered_4FGL_J2225.7-0457_daily_bin56.fits scfile=/scratch/kocevski/294052/ft2_4FGL_J2225.7-0457_daily_bin56.fits outfile=/scratch/kocevski/294052/cmap_HighResolution_253843201_254102401_4FGL_J2225.7-0457_daily_bin56.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.53
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .48553E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.4530       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12701E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.573       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .16884E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10315E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.2231       1.0000         .10000E-03   10000.    
     9 'Prefactor '    86.245       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.4395       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.2659       1.0000         .10000E-03   10000.    
    12 'norm      '    5.0618       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.237       1.0000         .10000E-03   10000.    
    14 'norm      '    .96987       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.0128       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.8704       1.0000         .10000E-03   10000.    
    19 'norm      '    6.1713       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .80207       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0029       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=   9259.649     FROM MIGRAD    STATUS=CONVERGED    478 CALLS     2312 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.118       -.96275E-07** at limit **
   2  Prefactor     .70259E-01    3.7986       -.40765E-06    .97182E-04
   3  Prefactor     4.4520        8.0220       -.11499E-05   -.42436E-04
   4  Prefactor     .10000E-03    29.807        .21134E-06** at limit **
   5  Prefactor     21.577        14.962        .79125E-06    .28930E-04
   6  Prefactor     .10000E-03    19.316       -.15209E-06** at limit **
   7  Prefactor     .10000E-03    5.1698        .46161E-08** at limit **
   8  Prefactor     3.2243        3.0413        .33499E-06   -.11661E-02
   9  Prefactor     86.051        64.416       -.48690E-06    .52408E-05
  10  Prefactor     8.4393        3.8024        .98914E-07    .36170E-04
  11  Prefactor     6.2663        39.675       -.10308E-04   -.10307E-04
  12  norm          5.0665        3.5862        .39222E-06    .41662E-04
  13  Prefactor     11.223        139.55       -.24814E-04   -.69516E-05
  14  norm          .97084        .73089        .18501E-07    .52124E-04
  15  Prefactor     .10000E-03    5.7087       -.47555E-08** at limit **
  16  norm          1.0130        .67848       -.15122E-07   -.47052E-04
  17  Prefactor     .10000E-03    10.320        .13712E-06** at limit **
  18  Prefactor     3.8707        4.7601       -.10076E-06   -.53960E-03
  19  norm          6.1737        9.3867       -.11915E-05   -.24303E-04
  20  Normalizat    .80184        .16867        .86882E-06    .72191E-04
  21  Prefactor     1.0030        .10310        .12216E-06    .13414E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0702594
  Prefactor  = 4.45199
  Prefactor  = 0.0001
  Prefactor  = 21.5771
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.22426
  Prefactor  = 86.0505
  Prefactor  = 8.43934
  Prefactor  = 6.26626
  norm       = 5.06646
  Prefactor  = 11.2225
  norm       = 0.970842
  Prefactor  = 0.0001
  norm       = 1.01299
  Prefactor  = 0.0001
  Prefactor  = 3.87072
  norm       = 6.17372
  Normalizat = 0.801841
  Prefactor  = 1.00297
 **********
 **   18 **HESSE 
 **********

 FCN=   9259.649     FROM HESSE     STATUS=OK           333 CALLS     2645 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .70259E-01    4.7754        .50184E-01   -1.5655    
   3  Prefactor     4.4520        8.0150        .19082E-03   -1.5286    
   4  Prefactor     .10000E-03    30.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     21.577        14.956        .86237E-04   -1.4779    
   6  Prefactor     .10000E-03    19.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.2332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.2243        7.6833        .11282E-02   -1.5349    
   9  Prefactor     86.051        64.366        .43260E-04   -1.3850    
  10  Prefactor     8.4393        3.9167        .11710E-03   -1.5127    
  11  Prefactor     6.2663        39.632        .16036E-03   -1.5207    
  12  norm          5.0665        3.5752        .13682E-03   -1.5258    
  13  Prefactor     11.223        139.77        .11951E-03   -1.5038    
  14  norm          .97084        .70100        .68229E-03   -1.5511    
  15  Prefactor     .10000E-03    5.7415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.0130        .65240        .62454E-03   -1.5507    
  17  Prefactor     .10000E-03    10.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.8707        4.9162        .10256E-02   -1.5314    
  19  norm          6.1737        9.4041        .16160E-03   -1.5211    
  20  Normalizat    .80184        .20013        .31489E-03   -1.0000    
  21  Prefactor     1.0030        .12267        .18243E-03   -.92630    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.27934e-09
Minuit parameter uncertainties:
  1  2.61459e-06
  2  1.15775
  3  8.01695
  4  5.67411e-05
  5  14.9589
  6  8.38918e-05
  7  2.60983e-06
  8  7.68561
  9  64.418
  10  3.91685
  11  31.5484
  12  3.57538
  13  79.4412
  14  0.701006
  15  7.59103e-07
  16  0.652407
  17  1.91635e-06
  18  4.91675
  19  9.40632
  20  0.200311
  21  0.122701
Done.

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

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  8.439e+00  3.917e+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.003e+00  1.227e-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:  8.018e-01  2.003e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.43
Ra Dec: 336.432 -4.954
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 8.46e-08 +/- 3.93e-08
Energy Flux (Fixed Index): 2.68e-05 +/- 1.25e-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) = 9259.61790756
delta logL = 0.030990429279

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9259.60924322
delta logL = 0.0396547691307

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.9412       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3159       1.0000          .0000       10.000    
     3 'Normalizat'    .81046       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99955       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=   9259.609     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      210 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.9421        71.872        .33511E-02    .18443E-03
   2  Index         2.3159        3.2803        .17673        .93962E-04
   3  Normalizat    .81024        .10425        .70834E-01    .91244E-04
   4  Prefactor     .99971        .49749E-01    .46262E-01    .93608E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.94212
  Index      = 2.31592
  Normalizat = 0.810244
  Prefactor  = 0.999707
 **********
 **   18 **HESSE 
 **********

 FCN=   9259.609     FROM HESSE     STATUS=OK            31 CALLS      241 TOTAL
                     EDM=   .62E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.9421        4.3053        .12302E-03   -1.5110    
   2  Index         2.3159        .39046        .64053E-02   -.56666    
   3  Normalizat    .81024        .19222        .31344E-03   -.99690    
   4  Prefactor     .99971        .12263        .18271E-03   -.92739    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.21058e-12
Minuit parameter uncertainties:
  1  4.30542
  2  0.391021
  3  0.192383
  4  0.122665
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/294052': 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) = 9259.60924241
delta logL = 0.0396555823118

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  8.942e+00  4.305e+00  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.316e+00  3.910e-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:  9.997e-01  1.227e-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:  8.102e-01  1.924e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.52
Ra Dec: 336.432 -4.954
Photon Index (Free Index): 2.32 +/- 0.39
Photon Flux (Free Index): 7.76e-08 +/- 4.26e-08
Energy Flux (Free Index): 2.87e-05 +/- 1.50e-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/294052/cmap_HighResolution_253843201_254102401_4FGL_J2225.7-0457_daily_bin56.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.46e-08', energy_flux2='2.87e-05', photon_flux_error='3.93e-08', dlogl='3.97e-02', energy_flux='2.68e-05', photon_flux2='7.76e-08', job_status='DONE', time_completed='2021-09-28 11:11:52.881536', photon_index_error2='0.39', photon_index2='2.32', ts='11.43', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='1.50e-05', EG='0.80', time_epoch_completed='1632852712.88', return_code='0', job_id='294052', GAL2='1.00', EG2='0.81', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='4.26e-08', ts2='11.52', photon_index='2.43' WHERE bin_id='56' AND source_name='4FGL J2225.7-0457' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:11:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 294052: <4FGL_J2225.7-0457_daily_bin56> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.7-0457_daily_bin56 336.432 -4.9537 253843201 254102401 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 :                                   634.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             391.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   642 sec.
    Turnaround time :                            645 sec.

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

