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


Performing analysis on: 4FGL_J2225.7-0457_daily_bin716
RA = 336.432, Dec = -4.9537
tmin = 424915201, tmax = 425174401
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='298589', job_status='RUN', time_executed='2021-09-28 11:18:29.377688', time_epoch_executed='1632853109.38' WHERE source_name='4FGL J2225.7-0457' and cadence='daily' and bin_id='716'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/298589

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/298589/ft1_4FGL_J2225.7-0457_daily_bin716.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/298589/ft2_4FGL_J2225.7-0457_daily_bin716.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/298589/ft1_4FGL_J2225.7-0457_daily_bin716.fits outfile=/scratch/kocevski/298589/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin716.fits ra=336.432 dec=-4.9537 rad=12.0 tmin=424915201.0 tmax=425174401.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.48
user 3.26
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/298589/ft2_4FGL_J2225.7-0457_daily_bin716.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/298589/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin716.fits evtable="EVENTS" outfile="/scratch/kocevski/298589/ft1_filtered_4FGL_J2225.7-0457_daily_bin716.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/298589/ft1_filtered_4FGL_J2225.7-0457_daily_bin716.fits" evtable="EVENTS" scfile=/scratch/kocevski/298589/ft2_4FGL_J2225.7-0457_daily_bin716.fits sctable="SC_DATA" outfile=/scratch/kocevski/298589/ltcube_424915201_425174401_4FGL_J2225.7-0457_daily_bin716.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/298589/ft2_4FGL_J2225.7-0457_daily_bin716.fits
.....................!
real 12.43
user 12.04
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/298589/ft1_filtered_4FGL_J2225.7-0457_daily_bin716.fits evtable="EVENTS" scfile=/scratch/kocevski/298589/ft2_4FGL_J2225.7-0457_daily_bin716.fits sctable="SC_DATA" expcube=/scratch/kocevski/298589/ltcube_424915201_425174401_4FGL_J2225.7-0457_daily_bin716.fits outfile=/scratch/kocevski/298589/expmap_424915201_425174401_4FGL_J2225.7-0457_daily_bin716.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/298589/ltcube_424915201_425174401_4FGL_J2225.7-0457_daily_bin716.fits
.....................!
real 190.86
user 185.81
sys 4.47

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/298589/ft1_filtered_4FGL_J2225.7-0457_daily_bin716.fits scfile=/scratch/kocevski/298589/ft2_4FGL_J2225.7-0457_daily_bin716.fits outfile=/scratch/kocevski/298589/cmap_424915201_425174401_4FGL_J2225.7-0457_daily_bin716.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/298589/ft1_filtered_4FGL_J2225.7-0457_daily_bin716.fits scfile=/scratch/kocevski/298589/ft2_4FGL_J2225.7-0457_daily_bin716.fits outfile=/scratch/kocevski/298589/cmap_HighResolution_424915201_425174401_4FGL_J2225.7-0457_daily_bin716.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.59
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/298589/ft1_filtered_4FGL_J2225.7-0457_daily_bin716.fits evtable="EVENTS" scfile=/scratch/kocevski/298589/ft2_4FGL_J2225.7-0457_daily_bin716.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/298589/Model_4FGL_J2225.7-0457_daily_bin716.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/298589/ft1_filtered_4FGL_J2225.7-0457_daily_bin716.fits.....................!
real 70.41
user 68.91
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3587       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.0808       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.7010       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.3037       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.6565       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.0790       1.0000         .10000E-03   10000.    
     9 'Prefactor '    33.632       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.6734       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.5501       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.4957       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 '    21.665       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .54664       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0325       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8059.080     FROM MIGRAD    STATUS=CONVERGED    103 CALLS     1840 TOTAL
                     EDM=   .30E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3607        1.4876       -.74345E-06   -.32875E-03
   2  Prefactor     5.0808        4.4975       -.32738E-05    .10607E-04
   3  Prefactor     .10000E-03    5.2203        .55813E-05** at limit **
   4  Prefactor     6.7007        1.0231       -.35798E-06   -.39225E-03
   5  Prefactor     .10000E-03    7.8898       -.10455E-04** at limit **
   6  Prefactor     8.3040        1.1898       -.96363E-06    .16995E-02
   7  Prefactor     2.6538        5.8998        .10558E-04    .47806E-04
   8  Prefactor     3.0766        9.6316        .24509E-04    .88702E-04
   9  Prefactor     33.457        46.029       -.13021E-04    .41579E-04
  10  Prefactor     5.6740        4.2333       -.44806E-05    .12051E-04
  11  Prefactor     .10000E-03    39.126       -.13247E-04** at limit **
  12  norm          6.5499        3.1252        .25804E-05    .34931E-04
  13  Prefactor     .10000E-03    95.940        .37677E-04** at limit **
  14  norm          1.4954        .73908        .22074E-06    .11464E-04
  15  Prefactor     .10000E-03    1.7881       -.21740E-05** at limit **
  16  norm          .10000E-03    .14195        .20434E-05** at limit **
  17  Prefactor     21.666        1.1305       -.48511E-06    .60189E-03
  18  Prefactor     .10000E-03    4.0313        .20659E-05** at limit **
  19  norm          .10000E-03    5.0861        .28481E-05** at limit **
  20  Normalizat    .54666        .18094       -.12989E-04    .45628E-05
  21  Prefactor     1.0325        .11639        .58969E-05    .22990E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.36072
  Prefactor  = 5.08077
  Prefactor  = 0.0001
  Prefactor  = 6.70072
  Prefactor  = 0.0001
  Prefactor  = 8.30399
  Prefactor  = 2.65381
  Prefactor  = 3.07664
  Prefactor  = 33.4574
  Prefactor  = 5.674
  Prefactor  = 0.0001
  norm       = 6.5499
  Prefactor  = 0.0001
  norm       = 1.4954
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 21.6658
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.546661
  Prefactor  = 1.03254
 **********
 **   18 **HESSE 
 **********

 FCN=   8059.080     FROM HESSE     STATUS=OK           361 CALLS     2201 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3607        77.125        .93700E-02   -1.5475    
   2  Prefactor     5.0808        4.5100        .44595E-02   -1.5257    
   3  Prefactor     .10000E-03    5.1732        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.7007        8.5178        .38752E-02   -1.5190    
   5  Prefactor     .10000E-03    7.8587        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.3040        11.594        .34781E-02   -1.5132    
   7  Prefactor     2.6538        5.9333        .62524E-02   -1.5382    
   8  Prefactor     3.0766        9.8914        .57787E-02   -1.5357    
   9  Prefactor     33.457        46.124        .17274E-02   -1.4550    
  10  Prefactor     5.6740        4.3296        .42161E-02   -1.5232    
  11  Prefactor     .10000E-03    38.905        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.5499        3.1327        .39201E-02   -1.5196    
  13  Prefactor     .10000E-03    95.558        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.4954        .74126        .87583E-02   -1.5463    
  15  Prefactor     .10000E-03    1.7858        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .14019        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     21.666        13.263        .21513E-02   -1.4777    
  18  Prefactor     .10000E-03    3.9978        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    5.0545        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .54666        .16212        .76374E-01   -1.1030    
  21  Prefactor     1.0325        .10250        .41063E-01   -.91652    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.02999e-09
Minuit parameter uncertainties:
  1  20.5157
  2  4.51028
  3  3.91748e-06
  4  8.51932
  5  3.14718e-06
  6  11.5975
  7  5.93458
  8  9.8967
  9  46.1732
  10  4.32983
  11  4.18896e-05
  12  3.13279
  13  0.000436899
  14  0.741268
  15  1.13311e-06
  16  1.50402e-07
  17  13.2647
  18  3.01748e-07
  19  9.30236e-07
  20  0.162258
  21  0.102515
Done.

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

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  5.674e+00  4.330e+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.033e+00  1.025e-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:  5.467e-01  1.623e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.32
Ra Dec: 336.432 -4.954
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 5.69e-08 +/- 4.34e-08
Energy Flux (Fixed Index): 1.80e-05 +/- 1.38e-05

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

Saving results to:
/scratch/kocevski/298589/likelihoodResults_424915201_425174401_4FGL_J2225.7-0457_daily_bin716.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) = 8051.91860692
delta logL = 7.16096077705

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8051.48894231
delta logL = 7.59062539061

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11442E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    7.9040       1.0000          .0000       10.000    
     3 'Normalizat'    .37002       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1181       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=   8051.489     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      293 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11400E-02    .44769E-02    .27109E-03** at limit **
   2  Index         7.9061        1.8387        .78158E-01    .20438E-03
   3  Normalizat    .37030        .60997E-01    .91362E-01    .82513E-04
   4  Prefactor     1.1180        .40605E-01    .36936E-01    .12317E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00113999
  Index      = 7.90614
  Normalizat = 0.370299
  Prefactor  = 1.11799
 **********
 **   18 **HESSE 
 **********

 FCN=   8051.489     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      324 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11400E-02    .64570E-02    .97009E-06   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.9061        2.2355        .33974E-03    .62024    
   3  Normalizat    .37030        .17800        .40473E-03   -1.1887    
   4  Prefactor     1.1180        .11754        .16053E-03   -.88894    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.49873e-11
Minuit parameter uncertainties:
  1  0.00518273
  2  2.36667
  3  0.178273
  4  0.117564
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/298589': 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) = 8051.48893815
delta logL = 7.59062954839

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  1.140e-03  5.183e-03  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  7.906e+00  2.367e+00  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.118e+00  1.176e-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:  3.703e-01  1.783e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 20.04
Ra Dec: 336.432 -4.954
Photon Index (Free Index): 7.91 +/- 2.37
Photon Flux (Free Index): 1.78e-07 +/- 5.63e-08
Energy Flux (Free Index): 2.07e-05 +/- 6.81e-06

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/298589/cmap_HighResolution_424915201_425174401_4FGL_J2225.7-0457_daily_bin716.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.00e-02', comment='SUCCESS', photon_flux='5.69e-08', energy_flux2='2.07e-05', photon_flux_error='4.34e-08', dlogl='7.59e+00', energy_flux='1.80e-05', photon_flux2='1.78e-07', job_status='DONE', time_completed='2021-09-28 11:28:57.516968', photon_index_error2='2.37', photon_index2='7.91', ts='3.32', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.30e-07', energy_flux_error2='6.81e-06', EG='0.55', time_epoch_completed='1632853737.52', return_code='0', job_id='298589', GAL2='1.12', EG2='0.37', return_code2='102', energy_flux_error='1.38e-05', photon_flux_error2='5.63e-08', ts2='20.04', photon_index='2.43' WHERE bin_id='716' AND source_name='4FGL J2225.7-0457' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:28:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 298589: <4FGL_J2225.7-0457_daily_bin716> in cluster <slac> Done

Job <4FGL_J2225.7-0457_daily_bin716> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 11:15:32 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 11:15:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 11:15:33 2021
Terminated at Tue Sep 28 11:28:58 2021
Results reported at Tue Sep 28 11:28:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.7-0457_daily_bin716 336.432 -4.9537 424915201 425174401 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 :                                   627.43 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             274.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   804 sec.
    Turnaround time :                            806 sec.

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

