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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin1553
RA = 336.414, Dec = 21.3418
tmin = 641865601, tmax = 642124801
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='293888', job_status='RUN', time_executed='2021-09-28 11:04:53.567164', time_epoch_executed='1632852293.57' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='1553'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293888

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293888/ft1_4FGL_J2225.6+2120_daily_bin1553.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293888/ft2_4FGL_J2225.6+2120_daily_bin1553.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293888/ft1_4FGL_J2225.6+2120_daily_bin1553.fits outfile=/scratch/kocevski/293888/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1553.fits ra=336.414 dec=21.3418 rad=12.0 tmin=641865601.0 tmax=642124801.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.42
user 4.15
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/293888/ft2_4FGL_J2225.6+2120_daily_bin1553.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/293888/ft2_4FGL_J2225.6+2120_daily_bin1553.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/293888/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1553.fits evtable="EVENTS" outfile="/scratch/kocevski/293888/ft1_filtered_4FGL_J2225.6+2120_daily_bin1553.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.51
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/293888/ft1_filtered_4FGL_J2225.6+2120_daily_bin1553.fits" evtable="EVENTS" scfile=/scratch/kocevski/293888/ft2_4FGL_J2225.6+2120_daily_bin1553.fits sctable="SC_DATA" outfile=/scratch/kocevski/293888/ltcube_641865601_642124801_4FGL_J2225.6+2120_daily_bin1553.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/293888/ft2_4FGL_J2225.6+2120_daily_bin1553.fits
.....................!
real 12.15
user 11.79
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293888/ft1_filtered_4FGL_J2225.6+2120_daily_bin1553.fits evtable="EVENTS" scfile=/scratch/kocevski/293888/ft2_4FGL_J2225.6+2120_daily_bin1553.fits sctable="SC_DATA" expcube=/scratch/kocevski/293888/ltcube_641865601_642124801_4FGL_J2225.6+2120_daily_bin1553.fits outfile=/scratch/kocevski/293888/expmap_641865601_642124801_4FGL_J2225.6+2120_daily_bin1553.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/293888/ltcube_641865601_642124801_4FGL_J2225.6+2120_daily_bin1553.fits
.....................!
real 190.78
user 185.55
sys 4.80

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 156 point sources and 0 extended sources

Setting source of interest to:
4FGL J2225.6+2120 @ 336.414 21.3418

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/293888/ft1_filtered_4FGL_J2225.6+2120_daily_bin1553.fits scfile=/scratch/kocevski/293888/ft2_4FGL_J2225.6+2120_daily_bin1553.fits outfile=/scratch/kocevski/293888/cmap_641865601_642124801_4FGL_J2225.6+2120_daily_bin1553.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.414 yref=21.3418 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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/293888/ft1_filtered_4FGL_J2225.6+2120_daily_bin1553.fits scfile=/scratch/kocevski/293888/ft2_4FGL_J2225.6+2120_daily_bin1553.fits outfile=/scratch/kocevski/293888/cmap_HighResolution_641865601_642124801_4FGL_J2225.6+2120_daily_bin1553.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.414 yref=21.3418 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/293888/ft1_filtered_4FGL_J2225.6+2120_daily_bin1553.fits evtable="EVENTS" scfile=/scratch/kocevski/293888/ft2_4FGL_J2225.6+2120_daily_bin1553.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/293888/Model_4FGL_J2225.6+2120_daily_bin1553.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/293888/ft1_filtered_4FGL_J2225.6+2120_daily_bin1553.fits.....................!
real 73.56
user 72.26
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/293888/ft1_filtered_4FGL_J2225.6+2120_daily_bin1553.fits', '/scratch/kocevski/293888/ft2_4FGL_J2225.6+2120_daily_bin1553.fits', expMap='/scratch/kocevski/293888/expmap_641865601_642124801_4FGL_J2225.6+2120_daily_bin1553.fits', expCube='/scratch/kocevski/293888/ltcube_641865601_642124801_4FGL_J2225.6+2120_daily_bin1553.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/293888/Model_4FGL_J2225.6+2120_daily_bin1553.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2225.6+2120'

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  3.284e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.811e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
275        Scale:  4.626e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/293888/ft1_filtered_4FGL_J2225.6+2120_daily_bin1553.fits
Spacecraft file(s): /scratch/kocevski/293888/ft2_4FGL_J2225.6+2120_daily_bin1553.fits
Exposure map: /scratch/kocevski/293888/expmap_641865601_642124801_4FGL_J2225.6+2120_daily_bin1553.fits
Exposure cube: /scratch/kocevski/293888/ltcube_641865601_642124801_4FGL_J2225.6+2120_daily_bin1553.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/293888/Model_4FGL_J2225.6+2120_daily_bin1553.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) = 7560.51037336

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    1.6517       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10194E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.0482       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.0250       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.5420       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .72203E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.4634       1.0000         .10000E-03   10000.    
    14 'norm      '    .43249       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.5126       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .61767       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.7355       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1041       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .88676       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7560.470     FROM MIGRAD    STATUS=CONVERGED    584 CALLS     2532 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.921        .27807E-05** at limit **
   2  norm          1.6520        1.8121        .11957E-06   -.36477E-04
   3  Prefactor     .10000E-03    26.619       -.30966E-05** at limit **
   4  norm          .10000E-03    .72475        .66481E-07** at limit **
   5  Prefactor     9.0486        21.688        .13588E-05   -.56388E-04
   6  norm          .10000E-03    .31295        .39884E-07** at limit **
   7  Prefactor     6.0240        14.997        .41534E-05   -.24300E-03
   8  norm          .10000E-03    1.9287        .16199E-07** at limit **
   9  Prefactor     .10000E-03    10.086        .10987E-05** at limit **
  10  Prefactor     .10000E-03    60.449       -.25256E-05** at limit **
  11  Prefactor     8.5422        10.030       -.56379E-07   -.38989E-04
  12  Prefactor     .72189E-01    .12335        .13669E-06    .13386E-03
  13  Prefactor     4.4634        4.6446       -.68913E-08    .12406E-03
  14  norm          .43255        .82572        .29869E-06   -.69557E-05
  15  Prefactor     .10000E-03    7.3910       -.35718E-07** at limit **
  16  norm          2.5127        1.8071        .73396E-08    .43557E-04
  17  Prefactor     .10000E-03    31.319       -.54401E-06** at limit **
  18  Prefactor     .10000E-03    10.462       -.15215E-05** at limit **
  19  Prefactor     .10000E-03    34.150        .23345E-05** at limit **
  20  Prefactor     .61756        .16982        .14496E-07   -.10050E-02
  21  Prefactor     3.7356        6.4593        .23725E-06   -.39058E-04
  22  Prefactor     .10000E-03    13.526        .79924E-06** at limit **
  23  Prefactor     .10000E-03    18.213        .20470E-06** at limit **
  24  Normalizat    1.1041        .20871       -.99592E-06   -.93401E-04
  25  Prefactor     .88676        .10410       -.19608E-06   -.14661E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  norm       = 1.65205
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 9.04863
  norm       = 0.0001
  Prefactor  = 6.02401
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  Prefactor  = 8.54215
  Prefactor  = 0.0721885
  Prefactor  = 4.46335
  norm       = 0.432545
  Prefactor  = 0.0001
  norm       = 2.51268
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 0.617557
  Prefactor  = 3.73557
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.10407
  Prefactor  = 0.886765
 **********
 **   18 **HESSE 
 **********

 FCN=   7560.470     FROM HESSE     STATUS=OK           431 CALLS     2963 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    35.917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.6520        1.7968        .11796E-03   -1.5451    
   3  Prefactor     .10000E-03    27.844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.7092        .14327E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.0486        21.732        .66621E-03   -1.5106    
   6  norm          .10000E-03    .47141        .94178E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.0240        15.386        .81789E-03   -1.5217    
   8  norm          .10000E-03    1.9520        .11790E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    61.268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.5422        10.057        .13716E-03   -1.5123    
  12  Prefactor     .72189E-01    .11544        .38822E-03   -1.5654    
  13  Prefactor     4.4634        4.6538        .18651E-03   -1.5285    
  14  norm          .43255        .76897        .10575E-02   -1.5576    
  15  Prefactor     .10000E-03    7.4147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.5127        1.8019        .96159E-04   -1.5391    
  17  Prefactor     .10000E-03    31.461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    35.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .61756        .16946        .17856E-04   -1.5551    
  21  Prefactor     3.7356        6.4482        .20892E-03   -1.5321    
  22  Prefactor     .10000E-03    14.022        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    18.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1041        .25114        .31282E-03   -.89621    
  25  Prefactor     .88676        .12635        .17719E-03   -.96605    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.95159e-09
Minuit parameter uncertainties:
  1  0.000762171
  2  1.79687
  3  0.000702256
  4  3.5256e-06
  5  21.7508
  6  1.9149e-06
  7  15.3961
  8  1.32115e-06
  9  0.000147937
  10  0.000888852
  11  10.0593
  12  0.115444
  13  4.65421
  14  0.768984
  15  4.12465e-06
  16  1.80194
  17  0.000136503
  18  0.000204337
  19  0.000587293
  20  0.169457
  21  6.44941
  22  0.000110286
  23  4.12432e-05
  24  0.251409
  25  0.126396
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  8.542e+00  1.006e+01  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.811e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
275        Scale:  4.626e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  8.868e-01  1.264e-01  0.000e+00  1.000e+01 ( 1.000e+00)
513        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
514        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
511   Normalization:  1.104e+00  2.514e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.04
Ra Dec: 336.414 21.342
Photon Index (Fixed Index): 2.81 +/- 0.00
Photon Flux (Fixed Index): 3.50e-08 +/- 4.12e-08
Energy Flux (Fixed Index): 7.78e-06 +/- 9.16e-06

TS (Fixed Index): 1.04
Ra Dec: 336.414 21.342
Photon Flux Upper Limit: 1.27e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.01e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/293888/likelihoodResults_641865601_642124801_4FGL_J2225.6+2120_daily_bin1553.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) = 7560.46889861
delta logL = 0.00133889068547

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7560.46851764
delta logL = 0.00171986160149

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.8366       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7533       1.0000          .0000       10.000    
     3 'Normalizat'    1.1055       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88619       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5150E+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=   7560.469     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      242 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.8361        11.776        .13484E-03    .60074E-03
   2  Index         2.7534        .99845        .13656E-01    .11290E-03
   3  Normalizat    1.1055        .24672        .31264E-03   -.31854E-04
   4  Prefactor     .88619        .12580        .17724E-03   -.13662E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.83606
  Index      = 2.75344
  Normalizat = 1.10546
  Prefactor  = 0.886194
 **********
 **   18 **HESSE 
 **********

 FCN=   7560.469     FROM HESSE     STATUS=OK            25 CALLS      267 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.8361        11.370        .53935E-05   -1.5113    
   2  Index         2.7534        .96420        .54623E-03   -.46600    
   3  Normalizat    1.1055        .24705        .12506E-04   -.89577    
   4  Prefactor     .88619        .12592        .70897E-05   -.96625    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.52413e-10
Minuit parameter uncertainties:
  1  11.3724
  2  0.971847
  3  0.247308
  4  0.125965
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293888': 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) = 7560.46851763
delta logL = 0.00171987121666

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  8.836e+00  1.137e+01  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.753e+00  9.718e-01  0.000e+00  1.000e+01 (-1.000e+00)
275        Scale:  4.626e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  8.862e-01  1.260e-01  0.000e+00  1.000e+01 ( 1.000e+00)
513        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
514        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
511   Normalization:  1.105e+00  2.473e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.03
Ra Dec: 336.414 21.342
Photon Index (Free Index): 2.75 +/- 0.97
Photon Flux (Free Index): 3.42e-08 +/- 4.26e-08
Energy Flux (Free Index): 7.92e-06 +/- 9.58e-06

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/293888/cmap_HighResolution_641865601_642124801_4FGL_J2225.6+2120_daily_bin1553.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', comment='SUCCESS', photon_flux='3.50e-08', energy_flux2='7.92e-06', photon_flux_error='4.12e-08', dlogl='1.72e-03', energy_flux='7.78e-06', photon_flux2='3.42e-08', job_status='DONE', time_completed='2021-09-28 11:17:03.499816', photon_index_error2='0.97', photon_index2='2.75', ts='1.04', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.27e-07', energy_flux_error2='9.58e-06', EG='1.10', time_epoch_completed='1632853023.5', return_code='0', job_id='293888', GAL2='0.89', EG2='1.11', return_code2='0', energy_flux_error='9.16e-06', photon_flux_error2='4.26e-08', ts2='1.03', photon_index='2.81' WHERE bin_id='1553' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:17:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 293888: <4FGL_J2225.6+2120_daily_bin1553> in cluster <slac> Done

Job <4FGL_J2225.6+2120_daily_bin1553> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 11:00:53 2021
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 11:00:55 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:00:55 2021
Terminated at Tue Sep 28 11:17:04 2021
Results reported at Tue Sep 28 11:17:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin1553 336.414 21.3418 641865601 642124801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2225.6+2120 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   727.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             269.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   968 sec.
    Turnaround time :                            971 sec.

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

