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


Performing analysis on: 4FGL_J2225.7-0457_daily_bin125
RA = 336.432, Dec = -4.9537
tmin = 271728001, tmax = 271987201
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='295385', job_status='RUN', time_executed='2021-09-28 11:08:55.360712', time_epoch_executed='1632852535.36' WHERE source_name='4FGL J2225.7-0457' and cadence='daily' and bin_id='125'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/295385

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/295385/ft1_4FGL_J2225.7-0457_daily_bin125.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/295385/ft2_4FGL_J2225.7-0457_daily_bin125.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/295385/ft1_4FGL_J2225.7-0457_daily_bin125.fits outfile=/scratch/kocevski/295385/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin125.fits ra=336.432 dec=-4.9537 rad=12.0 tmin=271728001.0 tmax=271987201.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.11
user 2.92
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/295385/ft1_filtered_4FGL_J2225.7-0457_daily_bin125.fits" evtable="EVENTS" scfile=/scratch/kocevski/295385/ft2_4FGL_J2225.7-0457_daily_bin125.fits sctable="SC_DATA" outfile=/scratch/kocevski/295385/ltcube_271728001_271987201_4FGL_J2225.7-0457_daily_bin125.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/295385/ft2_4FGL_J2225.7-0457_daily_bin125.fits
.....................!
real 12.89
user 11.90
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/295385/ft1_filtered_4FGL_J2225.7-0457_daily_bin125.fits evtable="EVENTS" scfile=/scratch/kocevski/295385/ft2_4FGL_J2225.7-0457_daily_bin125.fits sctable="SC_DATA" expcube=/scratch/kocevski/295385/ltcube_271728001_271987201_4FGL_J2225.7-0457_daily_bin125.fits outfile=/scratch/kocevski/295385/expmap_271728001_271987201_4FGL_J2225.7-0457_daily_bin125.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/295385/ltcube_271728001_271987201_4FGL_J2225.7-0457_daily_bin125.fits
.....................!
real 190.40
user 184.56
sys 5.41

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/295385/ft1_filtered_4FGL_J2225.7-0457_daily_bin125.fits scfile=/scratch/kocevski/295385/ft2_4FGL_J2225.7-0457_daily_bin125.fits outfile=/scratch/kocevski/295385/cmap_271728001_271987201_4FGL_J2225.7-0457_daily_bin125.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.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/295385/ft1_filtered_4FGL_J2225.7-0457_daily_bin125.fits scfile=/scratch/kocevski/295385/ft2_4FGL_J2225.7-0457_daily_bin125.fits outfile=/scratch/kocevski/295385/cmap_HighResolution_271728001_271987201_4FGL_J2225.7-0457_daily_bin125.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.57
user 0.38
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/295385/ft1_filtered_4FGL_J2225.7-0457_daily_bin125.fits evtable="EVENTS" scfile=/scratch/kocevski/295385/ft2_4FGL_J2225.7-0457_daily_bin125.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/295385/Model_4FGL_J2225.7-0457_daily_bin125.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/295385/ft1_filtered_4FGL_J2225.7-0457_daily_bin125.fits.....................!
real 67.93
user 66.02
sys 1.36

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10755E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.1070       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11586E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.1288       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11017E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10928E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .43204       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.457       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10430E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.863       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.5876       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .48394       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .83349E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .11866E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.332       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.5868       1.0000         .10000E-03   10000.    
    19 'norm      '    .48693E-02   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .67867       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0406       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=   7376.870     FROM MIGRAD    STATUS=FAILED       798 CALLS     2583 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.758        .18142E-02** at limit **
   2  Prefactor     2.1065        3.9198        .22497E-03    .52049E-05
   3  Prefactor     .10000E-03    20.468        .36285E-03** at limit **
   4  Prefactor     2.1357        43.352        .14130E-02    .38114E-04
   5  Prefactor     .10000E-03    12.828        .18142E-02** at limit **
   6  Prefactor     .10000E-03    7.8679        .18142E-02** at limit **
   7  Prefactor     .46164        24.203        .39225E-02    .22511E-02
   8  Prefactor     11.448        12.351        .11836E-03    .15186E-03
   9  Prefactor     .10000E-03    16.090        .18142E-02** at limit **
  10  Prefactor     12.864        5.2607        .10944E-03    .26375E-03
  11  Prefactor     .10000E-03    18.003        .18142E-02** at limit **
  12  norm          6.5880        3.2454        .10378E-03    .13616E-03
  13  Prefactor     .10000E-03    69.551        .18142E-02** at limit **
  14  norm          .48399        .45971        .53615E-03   -.24046E-04
  15  Prefactor     .10002E-03    47.032        .41127E-02** at limit **
  16  norm          .10000E-03    1.2237        .11830E-02** at limit **
  17  Prefactor     17.307        19.904        .96204E-04    .41951E-04
  18  Prefactor     1.5893        6.1122        .33697E-03   -.84380E-04
  19  norm          .10002E-03    63.563        .38827E-02** at limit **
  20  Normalizat    .67888        .21279        .32838E-03    .39132E-03
  21  Prefactor     1.0405        .13229        .17341E-03    .68658E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7376.870     FROM SIMPLEX   STATUS=UNCHANGED   1113 CALLS     3696 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    28.758        .71732E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.1065        3.9198        .60146E-06   -1.5418    
   3  Prefactor     .10000E-03    20.468        .54767E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.1357        43.352        .71054E-06   -1.5416    
   5  Prefactor     .10000E-03    12.828        .29735E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.8679        .39093E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .46164        24.203        .63223E-06   -1.5572    
   8  Prefactor     11.448        12.351        .59714E-06   -1.5031    
   9  Prefactor     .10000E-03    16.090        .50223E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.864        5.2607        .58704E-06   -1.4990    
  11  Prefactor     .10000E-03    18.003        .55292E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.5880        3.2454        .59525E-06   -1.5195    
  13  Prefactor     .10000E-03    69.551        .71603E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .48399        .45971        .60952E-06   -1.5569    
  15  Prefactor     .10002E-03    47.032        .15041E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.2237        .49085E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     17.307        19.904        .58361E-06   -1.4876    
  18  Prefactor     1.5893        6.1122        .60826E-06   -1.5456    
  19  norm          .10002E-03    63.563        .38083E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .67888        .21279        .41429E-06   -1.0473    
  21  Prefactor     1.0405        .13229        .35744E-06   -.91392    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7376.870     FROM MIGRAD    STATUS=CONVERGED    304 CALLS     4000 TOTAL
                     EDM=   .39E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.761        .36285E-03** at limit **
   2  Prefactor     2.1065        3.9191        .89990E-05   -.10107E-05
   3  Prefactor     .10000E-03    20.469        .72569E-04** at limit **
   4  Prefactor     2.1357        43.262        .56518E-04    .60345E-06
   5  Prefactor     .10000E-03    12.833        .36285E-03** at limit **
   6  Prefactor     .10000E-03    7.8689        .36285E-03** at limit **
   7  Prefactor     .46167        24.328        .78450E-03    .69270E-05
   8  Prefactor     11.448        12.348        .47342E-05   -.48028E-06
   9  Prefactor     .10000E-03    16.090        .36285E-03** at limit **
  10  Prefactor     12.864        5.2600        .43777E-05   -.10388E-05
  11  Prefactor     .10000E-03    18.003        .36285E-03** at limit **
  12  norm          6.5880        3.2451        .41513E-05    .38340E-05
  13  Prefactor     .10000E-03    69.562        .36285E-03** at limit **
  14  norm          .48399        .45968        .21446E-04    .30216E-04
  15  Prefactor     .10000E-03    47.946        .16451E-03** at limit **
  16  norm          .10000E-03    1.2271        .23661E-03** at limit **
  17  Prefactor     17.307        19.780        .38482E-05    .33679E-04
  18  Prefactor     1.5893        6.1111        .13479E-04    .33738E-05
  19  norm          .10000E-03    65.305        .15531E-03** at limit **
  20  Normalizat    .67887        .21245        .13135E-04   -.36352E-05
  21  Prefactor     1.0405        .13235        .34682E-04   -.97028E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.10653
  Prefactor  = 0.0001
  Prefactor  = 2.13568
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.46167
  Prefactor  = 11.4477
  Prefactor  = 0.0001
  Prefactor  = 12.864
  Prefactor  = 0.0001
  norm       = 6.58802
  Prefactor  = 0.0001
  norm       = 0.48399
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.3066
  Prefactor  = 1.5893
  norm       = 0.0001
  Normalizat = 0.678875
  Prefactor  = 1.04047
 **********
 **   18 **HESSE 
 **********

 FCN=   7376.870     FROM HESSE     STATUS=OK           297 CALLS     4297 TOTAL
                     EDM=   .34E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.761        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.1065        3.9190        .17998E-05   -1.5418    
   3  Prefactor     .10000E-03    20.468        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.1357        43.288        .22607E-05   -1.5416    
   5  Prefactor     .10000E-03    12.833        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.8689        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .46167        24.294        .31380E-04   -1.5572    
   8  Prefactor     11.448        12.356        .94684E-06   -1.5031    
   9  Prefactor     .10000E-03    16.090        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.864        5.2593        .87554E-06   -1.4990    
  11  Prefactor     .10000E-03    18.003        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.5880        3.2447        .83026E-06   -1.5195    
  13  Prefactor     .10000E-03    69.562        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .48399        .45969        .85784E-06   -1.5569    
  15  Prefactor     .10000E-03    47.947        .32901E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.2273        .47321E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     17.307        19.738        .76964E-06   -1.4876    
  18  Prefactor     1.5893        6.1096        .26957E-05   -1.5456    
  19  norm          .10000E-03    65.307        .31062E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .67887        .21220        .26270E-05   -1.0473    
  21  Prefactor     1.0405        .13230        .69364E-05   -.91392    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.38703e-12
Minuit parameter uncertainties:
  1  1.54317e-06
  2  3.91946
  3  1.37703e-06
  4  19.2455
  5  2.18046e-06
  6  1.06636e-06
  7  6.70021
  8  12.3592
  9  3.4017e-07
  10  5.25947
  11  3.44835e-07
  12  3.24478
  13  4.13722e-06
  14  0.459694
  15  6.69024e-05
  16  6.75414e-07
  17  19.7449
  18  6.11197
  19  1.94896e-05
  20  0.212452
  21  0.132339
Done.

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

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  1.286e+01  5.259e+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.040e+00  1.323e-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:  6.789e-01  2.125e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.64
Ra Dec: 336.432 -4.954
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 1.29e-07 +/- 5.27e-08
Energy Flux (Fixed Index): 4.09e-05 +/- 1.67e-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) = 7376.806057
delta logL = 0.0643180359639

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7376.789173
delta logL = 0.0812020335998

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.981       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2894       1.0000          .0000       10.000    
     3 'Normalizat'    .69214       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0351       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=   7376.789     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      267 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.981        5.8753        .10712E-03   -.18838E-03
   2  Index         2.2896        .33657        .52507E-02   -.81649E-04
   3  Normalizat    .69212        .20722        .32559E-03   -.11069E-04
   4  Prefactor     1.0351        .13241        .17384E-03    .68119E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.9812
  Index      = 2.28957
  Normalizat = 0.692121
  Prefactor  = 1.03507
 **********
 **   18 **HESSE 
 **********

 FCN=   7376.789     FROM HESSE     STATUS=OK            25 CALLS      292 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.981        5.7959        .42848E-05   -1.4960    
   2  Index         2.2896        .33183        .21003E-03   -.57292    
   3  Normalizat    .69212        .20729        .13024E-04   -1.0420    
   4  Prefactor     1.0351        .13247        .34767E-04   -.91570    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.71003e-11
Minuit parameter uncertainties:
  1  5.79617
  2  0.332176
  3  0.207527
  4  0.132513
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/295385': 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) = 7376.78917291
delta logL = 0.0812021264464

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
473    Prefactor:  1.035e+00  1.325e-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:  6.921e-01  2.075e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.92
Ra Dec: 336.432 -4.954
Photon Index (Free Index): 2.29 +/- 0.33
Photon Flux (Free Index): 1.17e-07 +/- 5.43e-08
Energy Flux (Free Index): 4.52e-05 +/- 2.11e-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/295385/cmap_HighResolution_271728001_271987201_4FGL_J2225.7-0457_daily_bin125.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.29e-07', energy_flux2='4.52e-05', photon_flux_error='5.27e-08', dlogl='8.12e-02', energy_flux='4.09e-05', photon_flux2='1.17e-07', job_status='DONE', time_completed='2021-09-28 11:20:20.077619', photon_index_error2='0.33', photon_index2='2.29', ts='15.64', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='2.11e-05', EG='0.68', time_epoch_completed='1632853220.08', return_code='0', job_id='295385', GAL2='1.04', EG2='0.69', return_code2='0', energy_flux_error='1.67e-05', photon_flux_error2='5.43e-08', ts2='15.92', photon_index='2.43' WHERE bin_id='125' AND source_name='4FGL J2225.7-0457' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:20:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 295385: <4FGL_J2225.7-0457_daily_bin125> in cluster <slac> Done

Job <4FGL_J2225.7-0457_daily_bin125> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 11:05:18 2021
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 11:05:20 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:05:20 2021
Terminated at Tue Sep 28 11:20:20 2021
Results reported at Tue Sep 28 11:20:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.7-0457_daily_bin125 336.432 -4.9537 271728001 271987201 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 :                                   683.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             242.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            902 sec.

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

