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


Performing analysis on: 4FGL_J2225.7-0457_daily_bin1430
RA = 336.432, Dec = -4.9537
tmin = 609984001, tmax = 610243201
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='300822', job_status='RUN', time_executed='2021-09-28 11:23:19.558905', time_epoch_executed='1632853399.56' WHERE source_name='4FGL J2225.7-0457' and cadence='daily' and bin_id='1430'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/300822

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/300822/ft1_4FGL_J2225.7-0457_daily_bin1430.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/300822/ft2_4FGL_J2225.7-0457_daily_bin1430.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/300822/ft1_4FGL_J2225.7-0457_daily_bin1430.fits outfile=/scratch/kocevski/300822/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin1430.fits ra=336.432 dec=-4.9537 rad=12.0 tmin=609984001.0 tmax=610243201.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 5.23
user 4.97
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/300822/ft2_4FGL_J2225.7-0457_daily_bin1430.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/300822/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin1430.fits evtable="EVENTS" outfile="/scratch/kocevski/300822/ft1_filtered_4FGL_J2225.7-0457_daily_bin1430.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.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/300822/ft1_filtered_4FGL_J2225.7-0457_daily_bin1430.fits" evtable="EVENTS" scfile=/scratch/kocevski/300822/ft2_4FGL_J2225.7-0457_daily_bin1430.fits sctable="SC_DATA" outfile=/scratch/kocevski/300822/ltcube_609984001_610243201_4FGL_J2225.7-0457_daily_bin1430.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/300822/ft2_4FGL_J2225.7-0457_daily_bin1430.fits
.....................!
real 13.38
user 13.03
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/300822/ft1_filtered_4FGL_J2225.7-0457_daily_bin1430.fits evtable="EVENTS" scfile=/scratch/kocevski/300822/ft2_4FGL_J2225.7-0457_daily_bin1430.fits sctable="SC_DATA" expcube=/scratch/kocevski/300822/ltcube_609984001_610243201_4FGL_J2225.7-0457_daily_bin1430.fits outfile=/scratch/kocevski/300822/expmap_609984001_610243201_4FGL_J2225.7-0457_daily_bin1430.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/300822/ltcube_609984001_610243201_4FGL_J2225.7-0457_daily_bin1430.fits
.....................!
real 190.47
user 185.56
sys 4.59

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/300822/ft1_filtered_4FGL_J2225.7-0457_daily_bin1430.fits scfile=/scratch/kocevski/300822/ft2_4FGL_J2225.7-0457_daily_bin1430.fits outfile=/scratch/kocevski/300822/cmap_609984001_610243201_4FGL_J2225.7-0457_daily_bin1430.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.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.631       1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.676       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .56822E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.7608       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    89.558       1.0000         .10000E-03   10000.    
    12 'norm      '    7.7521       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13458E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.4737       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.6993       1.0000         .10000E-03   10000.    
    16 'norm      '    8.6501       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.334       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10489E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    33.488       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1526       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .85714       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=   6022.768     FROM MIGRAD    STATUS=CONVERGED    774 CALLS     2533 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.041        .18142E-02** at limit **
   2  Prefactor     .10000E-03    1.7652        .10055E-02** at limit **
   3  Prefactor     .10000E-03    5.0574        .16983E-02** at limit **
   4  Prefactor     .10000E-03    6.8865        .18142E-02** at limit **
   5  Prefactor     25.631        19.259        .79125E-04    .30748E-04
   6  Prefactor     22.676        18.997        .84115E-04    .25680E-04
   7  Prefactor     .10113E-03    115.49        .50273E-02** at limit **
   8  Prefactor     3.7613        12.157        .20819E-03   -.69626E-04
   9  Prefactor     .10000E-03    55.141        .18142E-02** at limit **
  10  Prefactor     .10000E-03    2.2016        .11194E-02** at limit **
  11  Prefactor     89.574        92.495        .42459E-04    .57836E-04
  12  norm          7.7507        4.9695        .12998E-03    .25898E-03
  13  Prefactor     .10000E-03    167.97        .18142E-02** at limit **
  14  norm          1.4737        1.1469        .68788E-04    .59580E-03
  15  Prefactor     2.5427        363.27        .24795E-03    .49564E-04
  16  norm          8.6600        4.7712        .54459E-04    .48181E-03
  17  Prefactor     14.374        63.957        .10579E-03    .72537E-04
  18  Prefactor     .10000E-03    14.269        .18142E-02** at limit **
  19  norm          33.489        18.282        .69245E-04    .39403E-04
  20  Normalizat    1.1528        .28045        .30314E-03    .12560E-03
  21  Prefactor     .85700        .16195        .21099E-03    .50416E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.6313
  Prefactor  = 22.6756
  Prefactor  = 0.000101129
  Prefactor  = 3.76128
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 89.5738
  norm       = 7.75071
  Prefactor  = 0.000100002
  norm       = 1.47374
  Prefactor  = 2.54273
  norm       = 8.65996
  Prefactor  = 14.3743
  Prefactor  = 0.0001
  norm       = 33.4887
  Normalizat = 1.1528
  Prefactor  = 0.856998
 **********
 **   18 **HESSE 
 **********

 FCN=   6022.768     FROM HESSE     STATUS=OK           295 CALLS     2828 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.041        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.7652        .20111E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.0586        .33965E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.8869        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     25.631        19.257        .31650E-05   -1.4695    
   6  Prefactor     22.676        18.995        .33646E-05   -1.4755    
   7  Prefactor     .10113E-03    119.12        .20109E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.7613        12.153        .83274E-05   -1.5320    
   9  Prefactor     .10000E-03    55.142        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.2017        .22387E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     89.574        92.487        .84918E-05   -1.3812    
  12  norm          7.7507        4.9694        .51992E-05   -1.5151    
  13  Prefactor     .10000E-03    168.00        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.4737        1.1465        .27515E-05   -1.5465    
  15  Prefactor     2.5427        351.84        .99181E-05   -1.5389    
  16  norm          8.6600        4.7158        .21783E-05   -1.5119    
  17  Prefactor     14.374        63.426        .42317E-05   -1.4950    
  18  Prefactor     .10000E-03    14.278        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          33.489        18.280        .27698E-05   -1.4550    
  20  Normalizat    1.1528        .28027        .12126E-04   -.88074    
  21  Prefactor     .85700        .16203        .42198E-04   -.97660    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03135e-08
Minuit parameter uncertainties:
  1  8.54443e-07
  2  7.44034e-08
  3  4.23563e-06
  4  2.41073e-06
  5  19.2612
  6  18.9998
  7  0.0232438
  8  12.1612
  9  5.68058e-05
  10  5.74505e-05
  11  92.6357
  12  4.9697
  13  0.00127946
  14  1.14647
  15  60.1839
  16  4.71603
  17  60.4966
  18  0.000103144
  19  18.2832
  20  0.280637
  21  0.162122
Done.

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

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  1.000e-04  5.745e-05  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.570e-01  1.621e-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.153e+00  2.806e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 336.432 -4.954
Photon Flux Upper Limit: 8.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/300822/likelihoodResults_609984001_610243201_4FGL_J2225.7-0457_daily_bin1430.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) = 6022.77001845
delta logL = -0.00216044727404

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6022.76785806
delta logL = -6.4750565798e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4267       1.0000          .0000       10.000    
     3 'Normalizat'    1.1528       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85702       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=   6022.768     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      238 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    181.03        .11195E-02** at limit **
   2  Index         2.4421        5.0433        .50000       -.37973E-05
   3  Normalizat    1.1528        .57347E-01    .30313E-03   -.31541E-04
   4  Prefactor     .85700        .35153E-01    .21099E-03   -.33246E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100027
  Index      = 2.44209
  Normalizat = 1.1528
  Prefactor  = 0.856995
 **********
 **   18 **HESSE 
 **********

 FCN=   6022.768     FROM HESSE     STATUS=OK            29 CALLS      267 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    13.280        .22390E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4421        6.5549        .50000       -.53702    
   3  Normalizat    1.1528        .26005        .12125E-04   -.88074    
   4  Prefactor     .85700        .15952        .84396E-05   -.97660    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28523e-08
Minuit parameter uncertainties:
  1  0.00119777
  2  308.595
  3  0.260343
  4  0.159611
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/300822': 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) = 6022.76785799
delta logL = 1.13541318569e-08

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
473    Prefactor:  8.570e-01  1.596e-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.153e+00  2.603e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 336.432 -4.954

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/300822/cmap_HighResolution_609984001_610243201_4FGL_J2225.7-0457_daily_bin1430.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.84e-03', job_status='DONE', photon_flux_upper_limit='8.84e-08', time_completed='2021-09-28 11:33:09.229255', job_id='300822', GAL2='0.86', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1632853989.23', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='1.14e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1430' AND source_name='4FGL J2225.7-0457' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:33:09 PDT 2021


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

Job <4FGL_J2225.7-0457_daily_bin1430> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 11:21:23 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 11:21:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 11:21:24 2021
Terminated at Tue Sep 28 11:33:16 2021
Results reported at Tue Sep 28 11:33:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.7-0457_daily_bin1430 336.432 -4.9537 609984001 610243201 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 :                                   586.21 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             286.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   703 sec.
    Turnaround time :                            713 sec.

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

