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


Performing analysis on: 4FGL_J2225.7-0457_daily_bin1406
RA = 336.432, Dec = -4.9537
tmin = 603763201, tmax = 604022401
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='300782', job_status='RUN', time_executed='2021-09-28 11:25:09.820012', time_epoch_executed='1632853509.82' WHERE source_name='4FGL J2225.7-0457' and cadence='daily' and bin_id='1406'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/300782

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/300782/ft1_4FGL_J2225.7-0457_daily_bin1406.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/300782/ft2_4FGL_J2225.7-0457_daily_bin1406.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/300782/ft1_4FGL_J2225.7-0457_daily_bin1406.fits outfile=/scratch/kocevski/300782/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin1406.fits ra=336.432 dec=-4.9537 rad=12.0 tmin=603763201.0 tmax=604022401.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 4.46
user 3.99
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/300782/ft2_4FGL_J2225.7-0457_daily_bin1406.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/300782/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin1406.fits evtable="EVENTS" outfile="/scratch/kocevski/300782/ft1_filtered_4FGL_J2225.7-0457_daily_bin1406.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.50
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/300782/ft1_filtered_4FGL_J2225.7-0457_daily_bin1406.fits" evtable="EVENTS" scfile=/scratch/kocevski/300782/ft2_4FGL_J2225.7-0457_daily_bin1406.fits sctable="SC_DATA" outfile=/scratch/kocevski/300782/ltcube_603763201_604022401_4FGL_J2225.7-0457_daily_bin1406.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/300782/ft2_4FGL_J2225.7-0457_daily_bin1406.fits
.....................!
real 12.13
user 11.71
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/300782/ft1_filtered_4FGL_J2225.7-0457_daily_bin1406.fits evtable="EVENTS" scfile=/scratch/kocevski/300782/ft2_4FGL_J2225.7-0457_daily_bin1406.fits sctable="SC_DATA" expcube=/scratch/kocevski/300782/ltcube_603763201_604022401_4FGL_J2225.7-0457_daily_bin1406.fits outfile=/scratch/kocevski/300782/expmap_603763201_604022401_4FGL_J2225.7-0457_daily_bin1406.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/300782/ltcube_603763201_604022401_4FGL_J2225.7-0457_daily_bin1406.fits
.....................!
real 191.25
user 185.67
sys 4.31

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/300782/ft1_filtered_4FGL_J2225.7-0457_daily_bin1406.fits scfile=/scratch/kocevski/300782/ft2_4FGL_J2225.7-0457_daily_bin1406.fits outfile=/scratch/kocevski/300782/cmap_603763201_604022401_4FGL_J2225.7-0457_daily_bin1406.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/300782/ft1_filtered_4FGL_J2225.7-0457_daily_bin1406.fits scfile=/scratch/kocevski/300782/ft2_4FGL_J2225.7-0457_daily_bin1406.fits outfile=/scratch/kocevski/300782/cmap_HighResolution_603763201_604022401_4FGL_J2225.7-0457_daily_bin1406.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.60
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/300782/ft1_filtered_4FGL_J2225.7-0457_daily_bin1406.fits evtable="EVENTS" scfile=/scratch/kocevski/300782/ft2_4FGL_J2225.7-0457_daily_bin1406.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/300782/Model_4FGL_J2225.7-0457_daily_bin1406.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/300782/ft1_filtered_4FGL_J2225.7-0457_daily_bin1406.fits.....................!
real 61.96
user 60.30
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8860       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.6648       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    135.16       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11999E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .20151E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.9974       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    10.015       1.0000         .10000E-03   10000.    
    13 'Prefactor '    68.635       1.0000         .10000E-03   10000.    
    14 'norm      '    1.2809       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    12.576       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    16.565       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .51356       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.4633       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=   6224.928     FROM MIGRAD    STATUS=CONVERGED    461 CALLS     2558 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9457        208.51        .11810E-03   -.20317E-05
   2  Prefactor     .10000E-03    12.351       -.24559E-06** at limit **
   3  Prefactor     .10000E-03    10.216        .13924E-06** at limit **
   4  Prefactor     .10000E-03    17.798        .51627E-06** at limit **
   5  Prefactor     8.6672        17.503        .14057E-05   -.31280E-04
   6  Prefactor     .10000E-03    11.892        .49516E-06** at limit **
   7  Prefactor     135.16        35.034        .23979E-05    .27315E-04
   8  Prefactor     .10021E-03    12.236        .50063E-06** at limit **
   9  Prefactor     .10000E-03    235.03        .29095E-04** at limit **
  10  Prefactor     8.9979        7.5841       -.44461E-05   -.29671E-03
  11  Prefactor     .10000E-03    55.624        .38788E-05** at limit **
  12  norm          10.013        7.8696       -.67519E-05   -.27208E-03
  13  Prefactor     68.795        123.36        .16864E-03    .10806E-04
  14  norm          1.2809        1.3857        .18666E-06   -.52053E-03
  15  Prefactor     .10000E-03    40.335        .38979E-05** at limit **
  16  norm          12.577        2.6351        .91663E-07   -.22533E-03
  17  Prefactor     .10000E-03    23.751       -.80577E-06** at limit **
  18  Prefactor     .10000E-03    4.3128        .31537E-07** at limit **
  19  norm          16.567        14.322        .38648E-06   -.27238E-03
  20  Normalizat    .51340        .32540       -.11948E-04   -.25099E-03
  21  Prefactor     1.4633        .18541       -.45557E-06   -.72514E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.94574
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.66723
  Prefactor  = 0.0001
  Prefactor  = 135.165
  Prefactor  = 0.000100207
  Prefactor  = 0.000100002
  Prefactor  = 8.99786
  Prefactor  = 0.0001
  norm       = 10.0127
  Prefactor  = 68.7953
  norm       = 1.28087
  Prefactor  = 0.0001
  norm       = 12.5766
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.567
  Normalizat = 0.513403
  Prefactor  = 1.46334
 **********
 **   18 **HESSE 
 **********

 FCN=   6224.928     FROM HESSE     STATUS=OK           317 CALLS     2875 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9457        206.86        .23923E-03   -1.5365    
   2  Prefactor     .10000E-03    12.555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.6672        17.443        .13617E-03   -1.5119    
   6  Prefactor     .10000E-03    11.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     135.16        34.733        .34641E-04   -1.3377    
   8  Prefactor     .10021E-03    51.650        .50030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    235.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.9979        7.2890        .13362E-03   -1.5108    
  11  Prefactor     .10000E-03    55.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          10.013        7.8250        .12662E-03   -1.5075    
  13  Prefactor     68.795        123.32        .24225E-03   -1.4047    
  14  norm          1.2809        1.3584        .92134E-04   -1.5482    
  15  Prefactor     .10000E-03    40.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          12.577        2.6198        .55877E-04   -1.4999    
  17  Prefactor     .10000E-03    23.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.3159        .16002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          16.567        14.297        .49203E-03   -1.4894    
  20  Normalizat    .51340        .33113        .53014E-03   -1.1180    
  21  Prefactor     1.4633        .19564        .20194E-03   -.78572    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.2668e-09
Minuit parameter uncertainties:
  1  49.5484
  2  7.62957e-05
  3  3.83783e-05
  4  8.68821e-05
  5  17.4533
  6  4.80401e-05
  7  34.7387
  8  0.00654378
  9  0.00136757
  10  7.2897
  11  3.78444e-05
  12  7.82575
  13  123.779
  14  1.35844
  15  4.47429e-05
  16  2.61982
  17  1.21474e-05
  18  1.76912e-06
  19  14.2997
  20  0.33241
  21  0.195744
Done.

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

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  8.998e+00  7.290e+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.463e+00  1.957e-01  0.000e+00  1.000e+01 ( 1.000e+00)
474        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
475        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
472   Normalization:  5.134e-01  3.324e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.38
Ra Dec: 336.432 -4.954
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 9.02e-08 +/- 7.31e-08
Energy Flux (Fixed Index): 2.86e-05 +/- 2.32e-05

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

Saving results to:
/scratch/kocevski/300782/likelihoodResults_603763201_604022401_4FGL_J2225.7-0457_daily_bin1406.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) = 6224.91900668
delta logL = 0.00895367807789

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6224.91692884
delta logL = 0.0110315214606

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.3344       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3132       1.0000          .0000       10.000    
     3 'Normalizat'    .52527       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4587       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=   6224.917     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      237 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.3339        7.6251        .13117E-03    .65079E-03
   2  Index         2.3132        .74696        .82767E-02    .14676E-03
   3  Normalizat    .52534        .32467        .52440E-03   -.96603E-04
   4  Prefactor     1.4586        .19659        .20221E-03   -.33409E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.33391
  Index      = 2.31322
  Normalizat = 0.525336
  Prefactor  = 1.45865
 **********
 **   18 **HESSE 
 **********

 FCN=   6224.917     FROM HESSE     STATUS=OK            23 CALLS      260 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.3339        7.5502        .52470E-05   -1.5097    
   2  Index         2.3132        .73823        .33107E-03   -.56730    
   3  Normalizat    .52534        .32427        .20976E-04   -1.1125    
   4  Prefactor     1.4586        .19642        .40441E-04   -.78704    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.11157e-10
Minuit parameter uncertainties:
  1  7.55097
  2  0.742058
  3  0.325449
  4  0.196519
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/300782': 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) = 6224.9169288
delta logL = 0.0110315625197

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  9.334e+00  7.551e+00  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.313e+00  7.421e-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.459e+00  1.965e-01  0.000e+00  1.000e+01 ( 1.000e+00)
474        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
475        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
472   Normalization:  5.253e-01  3.254e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.39
Ra Dec: 336.432 -4.954
Photon Index (Free Index): 2.31 +/- 0.74
Photon Flux (Free Index): 8.08e-08 +/- 9.10e-08
Energy Flux (Free Index): 2.99e-05 +/- 2.59e-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/300782/cmap_HighResolution_603763201_604022401_4FGL_J2225.7-0457_daily_bin1406.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.83e-02', comment='SUCCESS', photon_flux='9.02e-08', energy_flux2='2.99e-05', photon_flux_error='7.31e-08', dlogl='1.10e-02', energy_flux='2.86e-05', photon_flux2='8.08e-08', job_status='DONE', time_completed='2021-09-28 11:35:06.601138', photon_index_error2='0.74', photon_index2='2.31', ts='2.38', fit_tolerance='1e-08', GAL='1.46', photon_index_error='0.00', photon_flux_upper_limit='2.37e-07', energy_flux_error2='2.59e-05', EG='0.51', time_epoch_completed='1632854106.6', return_code='0', job_id='300782', GAL2='1.46', EG2='0.53', return_code2='0', energy_flux_error='2.32e-05', photon_flux_error2='9.10e-08', ts2='2.39', photon_index='2.43' WHERE bin_id='1406' AND source_name='4FGL J2225.7-0457' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:35:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 300782: <4FGL_J2225.7-0457_daily_bin1406> in cluster <slac> Done

Job <4FGL_J2225.7-0457_daily_bin1406> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 11:21:19 2021
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 11:21:22 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:22 2021
Terminated at Tue Sep 28 11:35:07 2021
Results reported at Tue Sep 28 11:35:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.7-0457_daily_bin1406 336.432 -4.9537 603763201 604022401 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 :                                   589.39 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             258.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   824 sec.
    Turnaround time :                            828 sec.

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

