/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 100 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 = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2225.7-0457_daily_bin15
RA = 336.432, Dec = -4.9537
tmin = 243216001, tmax = 243475201
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='293988', job_status='RUN', time_executed='2021-09-28 11:02:52.784192', time_epoch_executed='1632852172.78' WHERE source_name='4FGL J2225.7-0457' and cadence='daily' and bin_id='15'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293988

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293988/ft1_4FGL_J2225.7-0457_daily_bin15.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293988/ft2_4FGL_J2225.7-0457_daily_bin15.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293988/ft1_4FGL_J2225.7-0457_daily_bin15.fits outfile=/scratch/kocevski/293988/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin15.fits ra=336.432 dec=-4.9537 rad=12.0 tmin=243216001.0 tmax=243475201.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.35
user 1.20
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/293988/ft2_4FGL_J2225.7-0457_daily_bin15.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/293988/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin15.fits evtable="EVENTS" outfile="/scratch/kocevski/293988/ft1_filtered_4FGL_J2225.7-0457_daily_bin15.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/293988/ft1_filtered_4FGL_J2225.7-0457_daily_bin15.fits" evtable="EVENTS" scfile=/scratch/kocevski/293988/ft2_4FGL_J2225.7-0457_daily_bin15.fits sctable="SC_DATA" outfile=/scratch/kocevski/293988/ltcube_243216001_243475201_4FGL_J2225.7-0457_daily_bin15.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/293988/ft2_4FGL_J2225.7-0457_daily_bin15.fits
.....................!
real 12.32
user 11.96
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293988/ft1_filtered_4FGL_J2225.7-0457_daily_bin15.fits evtable="EVENTS" scfile=/scratch/kocevski/293988/ft2_4FGL_J2225.7-0457_daily_bin15.fits sctable="SC_DATA" expcube=/scratch/kocevski/293988/ltcube_243216001_243475201_4FGL_J2225.7-0457_daily_bin15.fits outfile=/scratch/kocevski/293988/expmap_243216001_243475201_4FGL_J2225.7-0457_daily_bin15.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/293988/ltcube_243216001_243475201_4FGL_J2225.7-0457_daily_bin15.fits
.....................!
real 189.42
user 184.94
sys 4.14

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/293988/ft1_filtered_4FGL_J2225.7-0457_daily_bin15.fits scfile=/scratch/kocevski/293988/ft2_4FGL_J2225.7-0457_daily_bin15.fits outfile=/scratch/kocevski/293988/cmap_243216001_243475201_4FGL_J2225.7-0457_daily_bin15.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.34
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/293988/ft1_filtered_4FGL_J2225.7-0457_daily_bin15.fits scfile=/scratch/kocevski/293988/ft2_4FGL_J2225.7-0457_daily_bin15.fits outfile=/scratch/kocevski/293988/cmap_HighResolution_243216001_243475201_4FGL_J2225.7-0457_daily_bin15.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/293988/ft1_filtered_4FGL_J2225.7-0457_daily_bin15.fits evtable="EVENTS" scfile=/scratch/kocevski/293988/ft2_4FGL_J2225.7-0457_daily_bin15.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/293988/Model_4FGL_J2225.7-0457_daily_bin15.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/293988/ft1_filtered_4FGL_J2225.7-0457_daily_bin15.fits.....................!
real 59.71
user 58.37
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    38.848       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.879       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .49020       1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.658       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .60722E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.2386       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    8.4375       1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.069       1.0000         .10000E-03   10000.    
    14 'norm      '    .87977       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.0364       1.0000         .10000E-03   10000.    
    16 'norm      '    .24563E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.692       1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.380       1.0000         .10000E-03   10000.    
    19 'norm      '    10.582       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .77751       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .83579       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6402.481     FROM MIGRAD    STATUS=FAILED       794 CALLS     2608 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.986        .18142E-02** at limit **
   2  Prefactor     .10000E-03    5.0577        .34468E-03** at limit **
   3  Prefactor     .10000E-03    4.4303        .16384E-02** at limit **
   4  Prefactor     38.855        27.403        .64307E-04    .10045E-03
   5  Prefactor     12.894        13.237        .11162E-03   -.69261E-05
   6  Prefactor     .45345        103.37        .46056E-02    .82598E-03
   7  Prefactor     17.654        13.160        .95312E-04   -.33517E-04
   8  Prefactor     .10000E-03    12.853        .33951E-02** at limit **
   9  Prefactor     .10000E-03    44.777        .18142E-02** at limit **
  10  Prefactor     4.2407        3.6514        .13464E-03    .97864E-04
  11  Prefactor     .10000E-03    26.396        .18142E-02** at limit **
  12  norm          8.4372        3.7005        .95689E-04    .42177E-04
  13  Prefactor     20.063        56.255        .89407E-04   -.31789E-04
  14  norm          .87970        .65236        .56202E-03    .93841E-03
  15  Prefactor     3.0369        15.502        .23286E-03   -.15130E-03
  16  norm          .10007E-03    12.125        .93433E-03** at limit **
  17  Prefactor     14.644        30.643        .10450E-03   -.36447E-04
  18  Prefactor     17.380        9.6572        .96071E-04    .23095E-03
  19  norm          10.580        10.143        .12317E-03   -.33229E-04
  20  Normalizat    .77752        .21633        .29356E-03   -.99258E-04
  21  Prefactor     .83585        .12960        .17907E-03    .47018E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6402.481     FROM SIMPLEX   STATUS=UNCHANGED   1074 CALLS     3682 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.986        .49806E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.0577        .38495E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.4303        .40194E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     38.855        27.403        .60015E-06   -1.4460    
   5  Prefactor     12.894        13.237        .62174E-06   -1.4990    
   6  Prefactor     .45345        103.37        .65477E-06   -1.5573    
   7  Prefactor     17.654        13.160        .61691E-06   -1.4867    
   8  Prefactor     .10000E-03    12.853        .17253E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    44.777        .64299E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.2407        3.6514        .63373E-06   -1.5296    
  11  Prefactor     .10000E-03    26.396        .99226E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          8.4372        3.7005        .62776E-06   -1.5127    
  13  Prefactor     20.063        56.255        .62173E-06   -1.4812    
  14  norm          .87970        .65236        .64484E-06   -1.5520    
  15  Prefactor     3.0369        15.502        .65000E-06   -1.5359    
  16  norm          .10007E-03    12.125        .11046E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     14.644        30.643        .62585E-06   -1.4942    
  18  Prefactor     17.380        9.6572        .61918E-06   -1.4874    
  19  norm          10.580        10.143        .62641E-06   -1.5057    
  20  Normalizat    .77752        .21633        .41971E-06   -1.0091    
  21  Prefactor     .83585        .12960        .40842E-06   -.98420    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6402.481     FROM MIGRAD    STATUS=CONVERGED    302 CALLS     3984 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.987        .36285E-03** at limit **
   2  Prefactor     .10000E-03    5.0580        .68935E-04** at limit **
   3  Prefactor     .10000E-03    4.4314        .32767E-03** at limit **
   4  Prefactor     38.855        27.367        .12861E-04   -.49501E-05
   5  Prefactor     12.894        13.091        .44647E-05   -.13750E-04
   6  Prefactor     .45355        102.10        .92112E-03    .16909E-05
   7  Prefactor     17.654        13.157        .38125E-05   -.65603E-05
   8  Prefactor     .10000E-03    12.950        .67903E-03** at limit **
   9  Prefactor     .10000E-03    44.778        .36285E-03** at limit **
  10  Prefactor     4.2407        3.6509        .53855E-05   -.18576E-04
  11  Prefactor     .10000E-03    26.397        .36285E-03** at limit **
  12  norm          8.4371        3.7001        .38275E-05   -.40989E-04
  13  Prefactor     20.063        56.190        .35763E-05   -.19073E-05
  14  norm          .87969        .65223        .22481E-04   -.12794E-03
  15  Prefactor     3.0369        15.212        .93144E-05   -.24167E-03
  16  norm          .10000E-03    12.282        .37373E-04** at limit **
  17  Prefactor     14.643        30.573        .41798E-05   -.18332E-03
  18  Prefactor     17.380        9.6569        .19214E-04   -.55855E-04
  19  norm          10.580        10.141        .49267E-05   -.18460E-05
  20  Normalizat    .77753        .21640        .11742E-04   -.80165E-04
  21  Prefactor     .83585        .12966        .35814E-04   -.12380E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.8546
  Prefactor  = 12.8943
  Prefactor  = 0.453554
  Prefactor  = 17.6544
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.24068
  Prefactor  = 0.0001
  norm       = 8.43714
  Prefactor  = 20.0635
  norm       = 0.879694
  Prefactor  = 3.03692
  norm       = 0.0001
  Prefactor  = 14.6433
  Prefactor  = 17.3801
  norm       = 10.5801
  Normalizat = 0.777531
  Prefactor  = 0.835848
 **********
 **   18 **HESSE 
 **********

 FCN=   6402.481     FROM HESSE     STATUS=OK           295 CALLS     4279 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.987        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.0580        .68935E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.4315        .65535E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     38.855        27.358        .25723E-05   -1.4460    
   5  Prefactor     12.894        13.043        .89294E-06   -1.4990    
   6  Prefactor     .45355        101.31        .36845E-04   -1.5573    
   7  Prefactor     17.654        13.164        .76249E-06   -1.4867    
   8  Prefactor     .10000E-03    12.954        .13581E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    44.778        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.2407        3.6499        .10771E-05   -1.5296    
  11  Prefactor     .10000E-03    26.397        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          8.4371        3.7006        .76551E-06   -1.5127    
  13  Prefactor     20.063        55.587        .71526E-06   -1.4812    
  14  norm          .87969        .65220        .89923E-06   -1.5520    
  15  Prefactor     3.0369        15.180        .18629E-05   -1.5359    
  16  norm          .10000E-03    12.283        .74746E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     14.643        30.536        .83596E-06   -1.4942    
  18  Prefactor     17.380        9.6559        .38428E-05   -1.4874    
  19  norm          10.580        10.143        .98535E-06   -1.5057    
  20  Normalizat    .77753        .21648        .23485E-05   -1.0091    
  21  Prefactor     .83585        .12962        .71627E-05   -.98420    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9755e-10
Minuit parameter uncertainties:
  1  1.93197e-07
  2  6.95609e-09
  3  7.43135e-08
  4  27.3669
  5  13.0456
  6  13.579
  7  13.1663
  8  7.11641e-07
  9  4.94828e-07
  10  3.65006
  11  4.57374e-07
  12  3.70074
  13  55.731
  14  0.652209
  15  13.5847
  16  5.1127e-05
  17  30.5688
  18  9.65673
  19  10.1443
  20  0.21672
  21  0.129668
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
473    Prefactor:  8.358e-01  1.297e-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:  7.775e-01  2.167e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.95
Ra Dec: 336.432 -4.954
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 4.25e-08 +/- 3.66e-08
Energy Flux (Fixed Index): 1.35e-05 +/- 1.16e-05

TS (Fixed Index): 1.95
Ra Dec: 336.432 -4.954
Photon Flux Upper Limit: 1.21e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/293988/likelihoodResults_243216001_243475201_4FGL_J2225.7-0457_daily_bin15.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6401.96231407
delta logL = 0.519035223492

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6401.93384006
delta logL = 0.547509233029

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2589       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7908       1.0000          .0000       10.000    
     3 'Normalizat'    .80288       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82438       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=   6401.934     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      213 TOTAL
                     EDM=   .78E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2611        5.1490        .43819E-02    .13786E-03
   2  Index         1.7908        .50496        .22603       -.48147E-04
   3  Normalizat    .80281        .17307        .65382E-01    .22122E-04
   4  Prefactor     .82441        .10960        .44034E-01    .12425E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.2611
  Index      = 1.79081
  Normalizat = 0.802813
  Prefactor  = 0.82441
 **********
 **   18 **HESSE 
 **********

 FCN=   6401.934     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2611        4.3716        .14053E-03   -1.5249    
   2  Index         1.7908        .51736        .82504E-02   -.69689    
   3  Normalizat    .80281        .20199        .28925E-03   -.99964    
   4  Prefactor     .82441        .12821        .18008E-03   -.98835    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.01493e-10
Minuit parameter uncertainties:
  1  4.37187
  2  0.518945
  3  0.202179
  4  0.128253
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293988': 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) = 6401.93383988
delta logL = 0.547509409336

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
473    Prefactor:  8.244e-01  1.283e-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.028e-01  2.022e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.05
Ra Dec: 336.432 -4.954
Photon Index (Free Index): 1.79 +/- 0.52
Photon Flux (Free Index): 2.58e-08 +/- 2.69e-08
Energy Flux (Free Index): 3.18e-05 +/- 3.78e-05

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/293988/cmap_HighResolution_243216001_243475201_4FGL_J2225.7-0457_daily_bin15.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.36e-03', comment='SUCCESS', photon_flux='4.25e-08', energy_flux2='3.18e-05', photon_flux_error='3.66e-08', dlogl='5.48e-01', energy_flux='1.35e-05', photon_flux2='2.58e-08', job_status='DONE', time_completed='2021-09-28 11:13:59.181505', photon_index_error2='0.52', photon_index2='1.79', ts='1.95', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='1.21e-07', energy_flux_error2='3.78e-05', EG='0.78', time_epoch_completed='1632852839.18', return_code='0', job_id='293988', GAL2='0.82', EG2='0.80', return_code2='0', energy_flux_error='1.16e-05', photon_flux_error2='2.69e-08', ts2='3.05', photon_index='2.43' WHERE bin_id='15' AND source_name='4FGL J2225.7-0457' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:13:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 293988: <4FGL_J2225.7-0457_daily_bin15> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.7-0457_daily_bin15 336.432 -4.9537 243216001 243475201 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 :                                   667.16 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             305.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   775 sec.
    Turnaround time :                            777 sec.

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

