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


Performing analysis on: 4FGL_J2225.7-0457_daily_bin41
RA = 336.432, Dec = -4.9537
tmin = 249955201, tmax = 250214401
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='294028', job_status='RUN', time_executed='2021-09-28 11:05:01.457192', time_epoch_executed='1632852301.46' WHERE source_name='4FGL J2225.7-0457' and cadence='daily' and bin_id='41'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/294028

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/294028/ft1_4FGL_J2225.7-0457_daily_bin41.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/294028/ft2_4FGL_J2225.7-0457_daily_bin41.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/294028/ft1_4FGL_J2225.7-0457_daily_bin41.fits outfile=/scratch/kocevski/294028/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin41.fits ra=336.432 dec=-4.9537 rad=12.0 tmin=249955201.0 tmax=250214401.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.44
user 1.28
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/294028/ft1_filtered_4FGL_J2225.7-0457_daily_bin41.fits" evtable="EVENTS" scfile=/scratch/kocevski/294028/ft2_4FGL_J2225.7-0457_daily_bin41.fits sctable="SC_DATA" outfile=/scratch/kocevski/294028/ltcube_249955201_250214401_4FGL_J2225.7-0457_daily_bin41.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/294028/ft2_4FGL_J2225.7-0457_daily_bin41.fits
.....................!
real 13.15
user 12.80
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/294028/ft1_filtered_4FGL_J2225.7-0457_daily_bin41.fits evtable="EVENTS" scfile=/scratch/kocevski/294028/ft2_4FGL_J2225.7-0457_daily_bin41.fits sctable="SC_DATA" expcube=/scratch/kocevski/294028/ltcube_249955201_250214401_4FGL_J2225.7-0457_daily_bin41.fits outfile=/scratch/kocevski/294028/expmap_249955201_250214401_4FGL_J2225.7-0457_daily_bin41.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/294028/ltcube_249955201_250214401_4FGL_J2225.7-0457_daily_bin41.fits
.....................!
real 191.07
user 185.40
sys 5.32

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/294028/ft1_filtered_4FGL_J2225.7-0457_daily_bin41.fits scfile=/scratch/kocevski/294028/ft2_4FGL_J2225.7-0457_daily_bin41.fits outfile=/scratch/kocevski/294028/cmap_249955201_250214401_4FGL_J2225.7-0457_daily_bin41.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/294028/ft1_filtered_4FGL_J2225.7-0457_daily_bin41.fits scfile=/scratch/kocevski/294028/ft2_4FGL_J2225.7-0457_daily_bin41.fits outfile=/scratch/kocevski/294028/cmap_HighResolution_249955201_250214401_4FGL_J2225.7-0457_daily_bin41.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.804       1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.692       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .57003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.3054       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .24063E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.488       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.3000       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    29.312       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.5418       1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10387E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.425       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.476       1.0000         .10000E-03   10000.    
    19 'norm      '    6.8939       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3572       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .69209       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9883.785     FROM MIGRAD    STATUS=CONVERGED    453 CALLS     2316 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.768        29.422       -.28237E-06   -.40798E-04
   2  Prefactor     15.692        6.4576       -.50717E-07    .27052E-05
   3  Prefactor     .10000E-03    4.2257        .12167E-06** at limit **
   4  Prefactor     .10000E-03    3.6954        .48613E-07** at limit **
   5  Prefactor     .10387E-03    6.0669        .19730E-05** at limit **
   6  Prefactor     .10000E-03    3.4306        .67186E-07** at limit **
   7  Prefactor     9.3052        9.8010       -.53928E-07    .31691E-04
   8  Prefactor     .10000E-03    14.117        .90005E-06** at limit **
   9  Prefactor     11.428        64.736       -.90664E-06   -.27769E-04
  10  Prefactor     9.2992        4.3803       -.51242E-07   -.63412E-04
  11  Prefactor     .10000E-03    21.784       -.30966E-07** at limit **
  12  norm          29.312        5.3966       -.51066E-07    .21272E-03
  13  Prefactor     8.5132        202.80       -.46358E-06   -.44792E-05
  14  norm          .10000E-03    .23384       -.17570E-06** at limit **
  15  Prefactor     .10000E-03    11.014       -.11784E-05** at limit **
  16  norm          .10000E-03    .32241       -.73130E-06** at limit **
  17  Prefactor     10.438        15.638        .29340E-05    .57941E-03
  18  Prefactor     10.476        7.6662        .31644E-07    .15620E-03
  19  norm          6.8918        10.485       -.90165E-08    .16570E-04
  20  Normalizat    1.3575        .17730        .12657E-05    .13163E-03
  21  Prefactor     .69195        .10157       -.87913E-06    .16296E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.7682
  Prefactor  = 15.6919
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000103873
  Prefactor  = 0.0001
  Prefactor  = 9.3052
  Prefactor  = 0.0001
  Prefactor  = 11.4281
  Prefactor  = 9.29916
  Prefactor  = 0.0001
  norm       = 29.312
  Prefactor  = 8.51324
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.438
  Prefactor  = 10.4762
  norm       = 6.8918
  Normalizat = 1.35751
  Prefactor  = 0.691945
 **********
 **   18 **HESSE 
 **********

 FCN=   9883.785     FROM HESSE     STATUS=OK           331 CALLS     2647 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.768        29.442        .10781E-03   -1.4966    
   2  Prefactor     15.692        6.4734        .10111E-03   -1.4915    
   3  Prefactor     .10000E-03    4.3253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.6984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10387E-03    7.1531        .75722E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.4380        .17979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.3052        9.8157        .13138E-03   -1.5098    
   8  Prefactor     .10000E-03    14.608        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.428        64.838        .11820E-03   -1.5032    
  10  Prefactor     9.2992        4.3727        .13142E-03   -1.5098    
  11  Prefactor     .10000E-03    21.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          29.312        5.3936        .74001E-04   -1.4625    
  13  Prefactor     8.5132        202.60        .13716E-03   -1.5124    
  14  norm          .10000E-03    .30707        .92221E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .42004        .10207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.438        17.608        .12409E-03   -1.5062    
  18  Prefactor     10.476        7.6640        .12379E-03   -1.5061    
  19  norm          6.8918        10.518        .15280E-03   -1.5183    
  20  Normalizat    1.3575        .20681        .26940E-03   -.81866    
  21  Prefactor     .69195        .11743        .22027E-03   -1.0384    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.39792e-09
Minuit parameter uncertainties:
  1  29.4734
  2  6.47366
  3  2.13647e-06
  4  6.14223e-07
  5  0.0105285
  6  4.19755e-06
  7  9.81741
  8  4.94049e-06
  9  54.5317
  10  4.37287
  11  4.2462e-06
  12  5.39371
  13  83.3795
  14  2.79156e-06
  15  6.28265e-05
  16  7.08752e-07
  17  17.6171
  18  7.6647
  19  10.5206
  20  0.20694
  21  0.117473
Done.

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

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  9.299e+00  4.373e+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:  6.919e-01  1.175e-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.358e+00  2.069e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.00
Ra Dec: 336.432 -4.954
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 9.33e-08 +/- 4.38e-08
Energy Flux (Fixed Index): 2.96e-05 +/- 1.39e-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) = 9883.09058262
delta logL = 0.69453884949

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9883.06295617
delta logL = 0.722165300855

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3777       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9749       1.0000          .0000       10.000    
     3 'Normalizat'    1.3027       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71268       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=   9883.063     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      286 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3778        4.6115        .92270E-04    .20207E-04
   2  Index         2.9749        .53392        .48875E-02    .40004E-04
   3  Normalizat    1.3027        .19870        .27369E-03    .63470E-04
   4  Prefactor     .71269        .11780        .21724E-03    .65937E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.37777
  Index      = 2.97486
  Normalizat = 1.3027
  Prefactor  = 0.712686
 **********
 **   18 **HESSE 
 **********

 FCN=   9883.063     FROM HESSE     STATUS=OK            25 CALLS      311 TOTAL
                     EDM=   .34E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3778        4.1546        .36908E-05   -1.5203    
   2  Index         2.9749        .48061        .19550E-03   -.41701    
   3  Normalizat    1.3027        .19831        .10948E-04   -.83486    
   4  Prefactor     .71269        .11764        .86898E-05   -1.0303    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.4002e-12
Minuit parameter uncertainties:
  1  4.15481
  2  0.481504
  3  0.198429
  4  0.117681
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/294028': 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) = 9883.06295616
delta logL = 0.722165305013

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  6.378e+00  4.155e+00  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.975e+00  4.815e-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:  7.127e-01  1.177e-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.303e+00  1.984e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.61
Ra Dec: 336.432 -4.954
Photon Index (Free Index): 2.97 +/- 0.48
Photon Flux (Free Index): 1.42e-07 +/- 6.38e-08
Energy Flux (Free Index): 2.87e-05 +/- 1.13e-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/294028/cmap_HighResolution_249955201_250214401_4FGL_J2225.7-0457_daily_bin41.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.33e-08', energy_flux2='2.87e-05', photon_flux_error='4.38e-08', dlogl='7.22e-01', energy_flux='2.96e-05', photon_flux2='1.42e-07', job_status='DONE', time_completed='2021-09-28 11:16:19.304921', photon_index_error2='0.48', photon_index2='2.97', ts='10.00', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', energy_flux_error2='1.13e-05', EG='1.36', time_epoch_completed='1632852979.3', return_code='0', job_id='294028', GAL2='0.71', EG2='1.30', return_code2='0', energy_flux_error='1.39e-05', photon_flux_error2='6.38e-08', ts2='11.61', photon_index='2.43' WHERE bin_id='41' AND source_name='4FGL J2225.7-0457' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:16:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 294028: <4FGL_J2225.7-0457_daily_bin41> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.7-0457_daily_bin41 336.432 -4.9537 249955201 250214401 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 :                                   679.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            914 sec.

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

