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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin67
RA = 336.414, Dec = 21.3418
tmin = 256694401, tmax = 256953601
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='284637', job_status='RUN', time_executed='2021-09-28 10:38:18.764589', time_epoch_executed='1632850698.76' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='67'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/284637

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/284637/ft1_4FGL_J2225.6+2120_daily_bin67.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/284637/ft2_4FGL_J2225.6+2120_daily_bin67.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/284637/ft1_4FGL_J2225.6+2120_daily_bin67.fits outfile=/scratch/kocevski/284637/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin67.fits ra=336.414 dec=21.3418 rad=12.0 tmin=256694401.0 tmax=256953601.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.41
user 1.25
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/284637/ft2_4FGL_J2225.6+2120_daily_bin67.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/284637/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin67.fits evtable="EVENTS" outfile="/scratch/kocevski/284637/ft1_filtered_4FGL_J2225.6+2120_daily_bin67.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/284637/ft1_filtered_4FGL_J2225.6+2120_daily_bin67.fits" evtable="EVENTS" scfile=/scratch/kocevski/284637/ft2_4FGL_J2225.6+2120_daily_bin67.fits sctable="SC_DATA" outfile=/scratch/kocevski/284637/ltcube_256694401_256953601_4FGL_J2225.6+2120_daily_bin67.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/284637/ft2_4FGL_J2225.6+2120_daily_bin67.fits
.....................!
real 12.62
user 12.29
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/284637/ft1_filtered_4FGL_J2225.6+2120_daily_bin67.fits evtable="EVENTS" scfile=/scratch/kocevski/284637/ft2_4FGL_J2225.6+2120_daily_bin67.fits sctable="SC_DATA" expcube=/scratch/kocevski/284637/ltcube_256694401_256953601_4FGL_J2225.6+2120_daily_bin67.fits outfile=/scratch/kocevski/284637/expmap_256694401_256953601_4FGL_J2225.6+2120_daily_bin67.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/284637/ltcube_256694401_256953601_4FGL_J2225.6+2120_daily_bin67.fits
.....................!
real 192.67
user 187.75
sys 4.57

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/284637/ft1_filtered_4FGL_J2225.6+2120_daily_bin67.fits scfile=/scratch/kocevski/284637/ft2_4FGL_J2225.6+2120_daily_bin67.fits outfile=/scratch/kocevski/284637/cmap_256694401_256953601_4FGL_J2225.6+2120_daily_bin67.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/284637/ft1_filtered_4FGL_J2225.6+2120_daily_bin67.fits scfile=/scratch/kocevski/284637/ft2_4FGL_J2225.6+2120_daily_bin67.fits outfile=/scratch/kocevski/284637/cmap_HighResolution_256694401_256953601_4FGL_J2225.6+2120_daily_bin67.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.53
user 0.38
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/284637/ft1_filtered_4FGL_J2225.6+2120_daily_bin67.fits', '/scratch/kocevski/284637/ft2_4FGL_J2225.6+2120_daily_bin67.fits', expMap='/scratch/kocevski/284637/expmap_256694401_256953601_4FGL_J2225.6+2120_daily_bin67.fits', expCube='/scratch/kocevski/284637/ltcube_256694401_256953601_4FGL_J2225.6+2120_daily_bin67.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/284637/Model_4FGL_J2225.6+2120_daily_bin67.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/284637/ft1_filtered_4FGL_J2225.6+2120_daily_bin67.fits
Spacecraft file(s): /scratch/kocevski/284637/ft2_4FGL_J2225.6+2120_daily_bin67.fits
Exposure map: /scratch/kocevski/284637/expmap_256694401_256953601_4FGL_J2225.6+2120_daily_bin67.fits
Exposure cube: /scratch/kocevski/284637/ltcube_256694401_256953601_4FGL_J2225.6+2120_daily_bin67.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/284637/Model_4FGL_J2225.6+2120_daily_bin67.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) = 7313.72031158

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    11.531       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    35.120       1.0000         .10000E-03   10000.    
     8 'norm      '    .34724       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    46.613       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.0102       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .45727       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.1109       1.0000         .10000E-03   10000.    
    14 'norm      '    2.2637       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.7660       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .52369       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .21914E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2608       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .78982       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=   7313.716     FROM MIGRAD    STATUS=CONVERGED    572 CALLS     2922 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    37.508       -.35431E-05** at limit **
   2  norm          11.531        3.3248       -.12763E-07   -.34813E-04
   3  Prefactor     .10000E-03    13.177        .65270E-07** at limit **
   4  norm          .10000E-03    .62540        .54025E-07** at limit **
   5  Prefactor     .10000E-03    18.765       -.19432E-05** at limit **
   6  norm          .10000E-03    .24453       -.19985E-07** at limit **
   7  Prefactor     35.119        20.345        .20148E-07   -.37623E-04
   8  norm          .34722        4.2262        .30065E-05   -.12529E-03
   9  Prefactor     .10000E-03    6.4439       -.15413E-06** at limit **
  10  Prefactor     46.578        71.863       -.58848E-05   -.10017E-03
  11  Prefactor     5.0091        11.233       -.18426E-06   -.44037E-04
  12  Prefactor     .45727        .20884        .41771E-09   -.28248E-03
  13  Prefactor     4.1112        7.0631        .13126E-06   -.29718E-05
  14  norm          2.2635        1.2148        .69121E-07   -.54095E-04
  15  Prefactor     .10000E-03    28.512        .22328E-05** at limit **
  16  norm          2.7662        1.6575       -.11499E-07   -.30995E-04
  17  Prefactor     .10000E-03    28.474        .21776E-05** at limit **
  18  Prefactor     .10000E-03    6.6443        .10436E-06** at limit **
  19  Prefactor     .10000E-03    5.9828        .12327E-06** at limit **
  20  Prefactor     .52357        .16120        .36267E-08   -.17422E-02
  21  Prefactor     .10000E-03    3.5871        .39751E-07** at limit **
  22  Prefactor     .10008E-03    5.5556        .98248E-06** at limit **
  23  Prefactor     .10000E-03    12.901        .49522E-06** at limit **
  24  Normalizat    1.2609        .22423        .42110E-09   -.15820E-03
  25  Prefactor     .78972        .10901       -.16440E-06   -.20910E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 11.5313
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 35.119
  norm       = 0.34722
  Prefactor  = 0.0001
  Prefactor  = 46.5785
  Prefactor  = 5.00913
  Prefactor  = 0.457268
  Prefactor  = 4.11118
  norm       = 2.26346
  Prefactor  = 0.0001
  norm       = 2.76622
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.523569
  Prefactor  = 0.0001
  Prefactor  = 0.000100076
  Prefactor  = 0.0001
  Normalizat = 1.26092
  Prefactor  = 0.789716
 **********
 **   18 **HESSE 
 **********

 FCN=   7313.716     FROM HESSE     STATUS=OK           425 CALLS     3347 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    38.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          11.531        3.3252        .80350E-04   -1.5029    
   3  Prefactor     .10000E-03    13.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .98906        .13114E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .24948        .41274E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     35.119        20.348        .67622E-04   -1.4522    
   8  norm          .34722        4.6762        .35219E-03   -1.5590    
   9  Prefactor     .10000E-03    6.4647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     46.578        73.782        .58728E-04   -1.4342    
  11  Prefactor     5.0091        11.252        .17966E-03   -1.5260    
  12  Prefactor     .45727        .20651        .24988E-04   -1.5573    
  13  Prefactor     4.1112        7.0550        .19883E-03   -1.5302    
  14  norm          2.2635        1.2118        .66178E-04   -1.5407    
  15  Prefactor     .10000E-03    28.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.7662        1.6599        .82930E-04   -1.5375    
  17  Prefactor     .10000E-03    28.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.6850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.9855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .52357        .15990        .18021E-04   -1.5563    
  21  Prefactor     .10000E-03    3.5951        .15818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10008E-03    35.755        .37934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    12.957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2609        .26734        .31216E-03   -.84741    
  25  Prefactor     .78972        .12978        .19416E-03   -1.0011    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28883e-09
Minuit parameter uncertainties:
  1  0.000416241
  2  3.3253
  3  4.85349e-06
  4  5.16272e-07
  5  0.000160143
  6  3.78347e-07
  7  20.3517
  8  2.54834
  9  8.8341e-06
  10  73.9271
  11  11.2564
  12  0.20651
  13  7.05645
  14  1.21177
  15  0.000207075
  16  1.65996
  17  0.000205974
  18  3.44544e-06
  19  4.09417e-06
  20  0.159899
  21  1.00607e-06
  22  0.00328882
  23  3.08346e-05
  24  0.267637
  25  0.129826
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  5.009e+00  1.126e+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:  7.897e-01  1.298e-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.261e+00  2.676e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.23
Ra Dec: 336.414 21.342
Photon Flux Upper Limit: 1.24e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/284637/likelihoodResults_256694401_256953601_4FGL_J2225.6+2120_daily_bin67.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) = 7313.69540059
delta logL = 0.0203863984989

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7313.68914395
delta logL = 0.0266430426436

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3820       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4185       1.0000          .0000       10.000    
     3 'Normalizat'    1.2664       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78716       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=   7313.689     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      256 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3786        13.139        .15888E-03    .37559E-03
   2  Index         2.4191        1.5099        .10463E-01    .17054E-03
   3  Normalizat    1.2665        .25832        .31155E-03   -.10393E-02
   4  Prefactor     .78708        .12974        .19444E-03   -.14177E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.37864
  Index      = 2.41914
  Normalizat = 1.26652
  Prefactor  = 0.787079
 **********
 **   18 **HESSE 
 **********

 FCN=   7313.689     FROM HESSE     STATUS=OK            23 CALLS      279 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3786        13.053        .63552E-05   -1.5203    
   2  Index         2.4191        1.5005        .41853E-03   -.54238    
   3  Normalizat    1.2665        .25860        .62310E-04   -.84571    
   4  Prefactor     .78708        .12984        .38888E-04   -1.0021    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.17985e-09
Minuit parameter uncertainties:
  1  13.0591
  2  1.53306
  3  0.258861
  4  0.129892
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/284637': 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) = 7313.68914364
delta logL = 0.0266433488205

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  6.379e+00  1.306e+01  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.419e+00  1.533e+00  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:  7.871e-01  1.299e-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.267e+00  2.589e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.23
Ra Dec: 336.414 21.342

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/284637/cmap_HighResolution_256694401_256953601_4FGL_J2225.6+2120_daily_bin67.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.79e-03', job_status='DONE', photon_flux_upper_limit='1.24e-07', time_completed='2021-09-28 10:50:33.714692', job_id='284637', GAL2='0.79', fit_tolerance='1e-08', EG2='1.27', EG='1.26', time_epoch_completed='1632851433.71', return_code2='0', ts='0.23', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='2.66e-02', ts2='0.28', photon_index_error='0.00', photon_index='2.81' WHERE bin_id='67' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:50:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 284637: <4FGL_J2225.6+2120_daily_bin67> in cluster <slac> Done

Job <4FGL_J2225.6+2120_daily_bin67> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 10:35:19 2021
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 10:35:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 10:35:21 2021
Terminated at Tue Sep 28 10:50:34 2021
Results reported at Tue Sep 28 10:50:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin67 336.414 21.3418 256694401 256953601 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 :                                   736.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            915 sec.

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

