aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 83 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 = 7483
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2225.6+2120_daily_bin1699
RA = 336.414, Dec = 21.3418
tmin = 679708801, tmax = 679968001
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='1375', job_status='RUN', time_executed='2022-07-20 00:37:12.354594', time_epoch_executed='1658302632.35' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='1699'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/1375

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/1375/ft1_4FGL_J2225.6+2120_daily_bin1699.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/1375/ft2_4FGL_J2225.6+2120_daily_bin1699.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/1375/ft1_4FGL_J2225.6+2120_daily_bin1699.fits outfile=/scratch/kocevski/1375/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1699.fits ra=336.414 dec=21.3418 rad=12.0 tmin=679708801.0 tmax=679968001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.83
user 3.58
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/1375/ft2_4FGL_J2225.6+2120_daily_bin1699.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/1375/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1699.fits evtable="EVENTS" outfile="/scratch/kocevski/1375/ft1_filtered_4FGL_J2225.6+2120_daily_bin1699.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.32
sys 0.16

Number of photons that the gtmktime cut: 919

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/1375/ft1_filtered_4FGL_J2225.6+2120_daily_bin1699.fits" evtable="EVENTS" scfile=/scratch/kocevski/1375/ft2_4FGL_J2225.6+2120_daily_bin1699.fits sctable="SC_DATA" outfile=/scratch/kocevski/1375/ltcube_679708801_679968001_4FGL_J2225.6+2120_daily_bin1699.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/1375/ft2_4FGL_J2225.6+2120_daily_bin1699.fits
.....................!
real 12.14
user 11.76
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/1375/ft1_filtered_4FGL_J2225.6+2120_daily_bin1699.fits evtable="EVENTS" scfile=/scratch/kocevski/1375/ft2_4FGL_J2225.6+2120_daily_bin1699.fits sctable="SC_DATA" expcube=/scratch/kocevski/1375/ltcube_679708801_679968001_4FGL_J2225.6+2120_daily_bin1699.fits outfile=/scratch/kocevski/1375/expmap_679708801_679968001_4FGL_J2225.6+2120_daily_bin1699.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/1375/ltcube_679708801_679968001_4FGL_J2225.6+2120_daily_bin1699.fits
.....................!
real 192.38
user 187.54
sys 4.45

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/1375/ft1_filtered_4FGL_J2225.6+2120_daily_bin1699.fits scfile=/scratch/kocevski/1375/ft2_4FGL_J2225.6+2120_daily_bin1699.fits outfile=/scratch/kocevski/1375/cmap_679708801_679968001_4FGL_J2225.6+2120_daily_bin1699.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/1375/ft1_filtered_4FGL_J2225.6+2120_daily_bin1699.fits scfile=/scratch/kocevski/1375/ft2_4FGL_J2225.6+2120_daily_bin1699.fits outfile=/scratch/kocevski/1375/cmap_HighResolution_679708801_679968001_4FGL_J2225.6+2120_daily_bin1699.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.291       1.0000         .10000E-03   10000.    
     2 'norm      '    .14554E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .76190       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .75578       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.7518       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.8727       1.0000         .10000E-03   10000.    
    10 'Prefactor '    236.37       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.6493       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .45260       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.2778       1.0000         .10000E-03   10000.    
    14 'norm      '    .68472       1.0000         .10000E-03   10000.    
    15 'Prefactor '    27.724       1.0000         .10000E-03   10000.    
    16 'norm      '    .15603E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    27.064       1.0000         .10000E-03   10000.    
    18 'Prefactor '    40.530       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.7316       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.2542       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.1822       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2644       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .82637       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=   9899.357     FROM MIGRAD    STATUS=CONVERGED    594 CALLS     3016 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.263        141.47        .10226E-04    .10286E-04
   2  norm          .28337E-01    1.0092        .29025E-06   -.43593E-03
   3  Prefactor     .10000E-03    15.604       -.58312E-06** at limit **
   4  norm          .76233        1.3229        .14189E-06   -.18692E-04
   5  Prefactor     .10000E-03    9.9312        .93112E-08** at limit **
   6  norm          .75550        .85383        .20466E-07   -.13898E-03
   7  Prefactor     .10000E-03    21.297        .35788E-06** at limit **
   8  norm          1.7525        4.0603        .48889E-06    .73432E-04
   9  Prefactor     8.8744        12.522       -.51442E-07    .26216E-04
  10  Prefactor     236.40        124.11       -.23575E-05   -.25170E-05
  11  Prefactor     2.6541        17.633        .63791E-06    .58608E-04
  12  Prefactor     .45264        .19924        .13109E-07    .66115E-03
  13  Prefactor     8.2786        9.4834        .35722E-06   -.82366E-05
  14  norm          .68609        1.2042        .52146E-06    .85026E-03
  15  Prefactor     27.716        18.655       -.64565E-06   -.54738E-04
  16  norm          .10000E-03    1.0313       -.49691E-06** at limit **
  17  Prefactor     27.080        33.593       -.15172E-05    .44619E-04
  18  Prefactor     40.555        15.266        .64493E-06    .65856E-03
  19  Prefactor     .10000E-03    8.7548        .38993E-07** at limit **
  20  Prefactor     1.7317        .23780       -.92120E-08   -.17961E-04
  21  Prefactor     2.2549        4.7302        .35858E-05   -.20133E-03
  22  Prefactor     3.1833        7.5295        .37574E-05   -.10635E-03
  23  Prefactor     .10000E-03    20.408        .27518E-06** at limit **
  24  Normalizat    1.2643        .23161       -.18489E-05    .28349E-03
  25  Prefactor     .82630        .10326        .94756E-06    .75633E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.2629
  norm       = 0.028337
  Prefactor  = 0.0001
  norm       = 0.762334
  Prefactor  = 0.0001
  norm       = 0.755498
  Prefactor  = 0.0001
  norm       = 1.75251
  Prefactor  = 8.87443
  Prefactor  = 236.395
  Prefactor  = 2.65409
  Prefactor  = 0.452637
  Prefactor  = 8.27863
  norm       = 0.686092
  Prefactor  = 27.7157
  norm       = 0.0001
  Prefactor  = 27.0797
  Prefactor  = 40.5548
  Prefactor  = 0.0001
  Prefactor  = 1.73166
  Prefactor  = 2.25488
  Prefactor  = 3.18334
  Prefactor  = 0.0001
  Normalizat = 1.26433
  Prefactor  = 0.826296
 **********
 **   18 **HESSE 
 **********

 FCN=   9899.357     FROM HESSE     STATUS=OK           447 CALLS     3463 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.263        142.78        .11922E-03   -1.5037    
   2  norm          .28337E-01    3.0769        .31773E-01   -1.5674    
   3  Prefactor     .10000E-03    15.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .76233        1.3035        .14231E-03   -1.5533    
   5  Prefactor     .10000E-03    9.9325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .75550        .74900        .92697E-03   -1.5534    
   7  Prefactor     .10000E-03    21.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.7525        4.0261        .29143E-03   -1.5443    
   9  Prefactor     8.8744        12.509        .13456E-03   -1.5112    
  10  Prefactor     236.40        124.06        .13165E-03   -1.2621    
  11  Prefactor     2.6541        17.838        .25046E-03   -1.5382    
  12  Prefactor     .45264        .19760        .27236E-04   -1.5573    
  13  Prefactor     8.2786        9.4938        .69671E-03   -1.5132    
  14  norm          .68609        1.1701        .12784E-03   -1.5542    
  15  Prefactor     27.716        18.499        .76086E-04   -1.4655    
  16  norm          .10000E-03    3.3981        .18688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     27.080        33.598        .77006E-04   -1.4667    
  18  Prefactor     40.555        14.793        .62963E-04   -1.4433    
  19  Prefactor     .10000E-03    8.7677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.7317        .23971        .16525E-04   -1.5445    
  21  Prefactor     2.2549        4.7498        .13682E-02   -1.5408    
  22  Prefactor     3.1833        7.5381        .11358E-02   -1.5351    
  23  Prefactor     .10000E-03    20.555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2643        .27561        .35180E-03   -.84637    
  25  Prefactor     .82630        .12433        .20649E-03   -.98766    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19013e-09
Minuit parameter uncertainties:
  1  80.4412
  2  0.589552
  3  0.000108329
  4  1.30354
  5  3.82691e-06
  6  0.749008
  7  0.000196832
  8  4.02676
  9  12.513
  10  124.195
  11  13.7669
  12  0.197598
  13  9.49555
  14  1.17018
  15  18.503
  16  1.65104e-06
  17  33.6214
  18  14.794
  19  8.86788e-06
  20  0.239715
  21  4.75056
  22  7.54036
  23  7.16795e-05
  24  0.275933
  25  0.124373
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  2.654e+00  1.377e+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.263e-01  1.244e-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.264e+00  2.759e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/1375/likelihoodResults_679708801_679968001_4FGL_J2225.6+2120_daily_bin1699.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): 102
logL (Free Index) = 9898.61948135
delta logL = 0.737855305701

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9898.58232395
delta logL = 0.775012706259

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1451       1.0000         .10000E-03   10000.    
     2 'Index     '    5.1348       1.0000          .0000       10.000    
     3 'Normalizat'    1.1770       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85527       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.

 FCN=   9898.582     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      230 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1415        17.562        .10838E-01    .10938E-02
   2  Index         5.1367        3.8729        .20144        .14560E-03
   3  Normalizat    1.1772        .52392E-01    .81932E-01    .16491E-04
   4  Prefactor     .85522        .25584E-01    .44432E-01    .21736E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.14151
  Index      = 5.13667
  Normalizat = 1.17721
  Prefactor  = 0.855218
 **********
 **   18 **HESSE 
 **********

 FCN=   9898.582     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      263 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1415        46.219        .92211E-04   -1.5494    
   2  Index         5.1367        7.5083        .97510E-02    .27337E-01
   3  Normalizat    1.1772        .22307        .36273E-03   -.87310    
   4  Prefactor     .85522        .10262        .20335E-03   -.97724    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.25713e-06
Minuit parameter uncertainties:
  1  14.5386
  2  9.08542
  3  0.223253
  4  0.102639
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/1375': 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): 102
logL (Free Index) = 9898.58232339
delta logL = 0.775013270091

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.142e+00  1.454e+01  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  5.137e+00  9.085e+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:  8.552e-01  1.026e-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.177e+00  2.233e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.73
Ra Dec: 336.414 21.342
Photon Index (Free Index): 5.14 +/- 9.09
Photon Flux (Free Index): 7.26e-08 +/- 9.55e-08
Energy Flux (Free Index): 9.55e-06 +/- 1.81e-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/1375/cmap_HighResolution_679708801_679968001_4FGL_J2225.6+2120_daily_bin1699.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', comment='SUCCESS', energy_flux2='9.55e-06', dlogl='7.75e-01', photon_flux2='7.26e-08', job_status='DONE', time_completed='2022-07-20 00:52:02.373366', photon_index_error2='9.09', photon_index2='5.14', ts='0.04', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='1.32e-07', energy_flux_error2='1.81e-05', EG='1.26', time_epoch_completed='1658303522.37', return_code='0', job_id='1375', GAL2='0.86', EG2='1.18', return_code2='102', photon_flux_error2='9.55e-08', ts2='1.73', photon_index='2.81' WHERE bin_id='1699' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jul 20 00:52:02 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0161>
Subject: Job 1375: <4FGL_J2225.6+2120_daily_bin1699> in cluster <slac> Done

Job <4FGL_J2225.6+2120_daily_bin1699> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Jul 20 00:35:40 2022
Job was executed on host(s) <bullet0161>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jul 20 00:35:41 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jul 20 00:35:41 2022
Terminated at Wed Jul 20 00:52:03 2022
Results reported at Wed Jul 20 00:52:03 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin1699 336.414 21.3418 679708801 679968001 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 :                                   892.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             313.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   981 sec.
    Turnaround time :                            983 sec.

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

