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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin1669
RA = 336.414, Dec = 21.3418
tmin = 671932801, tmax = 672192001
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='692203', job_status='RUN', time_executed='2022-04-21 00:36:07.130322', time_epoch_executed='1650526567.13' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='1669'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/692203

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/692203/ft1_4FGL_J2225.6+2120_daily_bin1669.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/692203/ft2_4FGL_J2225.6+2120_daily_bin1669.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/692203/ft1_4FGL_J2225.6+2120_daily_bin1669.fits outfile=/scratch/kocevski/692203/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1669.fits ra=336.414 dec=21.3418 rad=12.0 tmin=671932801.0 tmax=672192001.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.77
user 3.55
sys 0.20

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

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

Number of photons that the gtmktime cut: 962

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/692203/ft1_filtered_4FGL_J2225.6+2120_daily_bin1669.fits evtable="EVENTS" scfile=/scratch/kocevski/692203/ft2_4FGL_J2225.6+2120_daily_bin1669.fits sctable="SC_DATA" expcube=/scratch/kocevski/692203/ltcube_671932801_672192001_4FGL_J2225.6+2120_daily_bin1669.fits outfile=/scratch/kocevski/692203/expmap_671932801_672192001_4FGL_J2225.6+2120_daily_bin1669.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/692203/ltcube_671932801_672192001_4FGL_J2225.6+2120_daily_bin1669.fits
.....................!
real 190.59
user 185.80
sys 4.37

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/692203/ft1_filtered_4FGL_J2225.6+2120_daily_bin1669.fits scfile=/scratch/kocevski/692203/ft2_4FGL_J2225.6+2120_daily_bin1669.fits outfile=/scratch/kocevski/692203/cmap_671932801_672192001_4FGL_J2225.6+2120_daily_bin1669.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/692203/ft1_filtered_4FGL_J2225.6+2120_daily_bin1669.fits scfile=/scratch/kocevski/692203/ft2_4FGL_J2225.6+2120_daily_bin1669.fits outfile=/scratch/kocevski/692203/cmap_HighResolution_671932801_672192001_4FGL_J2225.6+2120_daily_bin1669.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .11347E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.417       1.0000         .10000E-03   10000.    
     4 'norm      '    .62172       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.385       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10741E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.2240       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.0245       1.0000         .10000E-03   10000.    
    14 'norm      '    2.5008       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.7315       1.0000         .10000E-03   10000.    
    16 'norm      '    1.9805       1.0000         .10000E-03   10000.    
    17 'Prefactor '    62.629       1.0000         .10000E-03   10000.    
    18 'Prefactor '    25.176       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .24838       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    30.346       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2569       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .96273       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=   10587.46     FROM MIGRAD    STATUS=CONVERGED    583 CALLS     2945 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.993       -.87873E-06** at limit **
   2  norm          .10000E-03    .85909       -.63665E-06** at limit **
   3  Prefactor     13.431        26.262        .10180E-04    .10668E-03
   4  norm          .62167        .69480        .11308E-07    .19075E-03
   5  Prefactor     .10000E-03    16.126        .17766E-05** at limit **
   6  norm          .10000E-03    .20820       -.31247E-07** at limit **
   7  Prefactor     .10000E-03    15.696       -.16833E-05** at limit **
   8  norm          .10000E-03    4.0423        .58113E-08** at limit **
   9  Prefactor     15.385        11.966       -.74030E-08   -.85488E-05
  10  Prefactor     .10000E-03    63.720        .25542E-05** at limit **
  11  Prefactor     .10000E-03    17.339       -.10690E-06** at limit **
  12  Prefactor     1.2240        .25601        .19988E-07   -.34053E-03
  13  Prefactor     7.0243        7.1113       -.20476E-06   -.35282E-04
  14  norm          2.5006        1.2931       -.49597E-08   -.43507E-03
  15  Prefactor     7.7290        20.048       -.43549E-06   -.28840E-04
  16  norm          1.9805        1.3488        .28643E-07    .10823E-03
  17  Prefactor     62.615        37.561       -.94872E-05   -.86992E-05
  18  Prefactor     25.174        12.341        .99699E-07   -.29826E-04
  19  Prefactor     .10000E-03    5.7679        .58024E-07** at limit **
  20  Prefactor     .24845        .13473        .15160E-06   -.90121E-04
  21  Prefactor     .10000E-03    6.6745        .47828E-07** at limit **
  22  Prefactor     .10000E-03    1.8860        .23506E-08** at limit **
  23  Prefactor     30.340        27.210       -.30827E-05   -.66762E-05
  24  Normalizat    1.2569        .21222        .10823E-06    .81240E-04
  25  Prefactor     .96278        .10164       -.20325E-07    .22846E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 13.4312
  norm       = 0.621667
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.3849
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.22399
  Prefactor  = 7.02433
  norm       = 2.50063
  Prefactor  = 7.729
  norm       = 1.98051
  Prefactor  = 62.615
  Prefactor  = 25.1743
  Prefactor  = 0.0001
  Prefactor  = 0.248452
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.3405
  Normalizat = 1.25685
  Prefactor  = 0.962784
 **********
 **   18 **HESSE 
 **********

 FCN=   10587.46     FROM HESSE     STATUS=OK           431 CALLS     3376 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    35.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.3898        .18324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.431        26.141        .10935E-03   -1.4975    
   4  norm          .62167        .68430        .88040E-04   -1.5550    
   5  Prefactor     .10000E-03    16.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .21738        .91649E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.2137        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.385        11.999        .10211E-03   -1.4923    
  10  Prefactor     .10000E-03    63.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    18.037        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.2240        .25657        .22227E-04   -1.5487    
  13  Prefactor     7.0243        7.1137        .15136E-03   -1.5178    
  14  norm          2.5006        1.2864        .76773E-04   -1.5392    
  15  Prefactor     7.7290        19.994        .14422E-03   -1.5152    
  16  norm          1.9805        1.3495        .94950E-04   -1.5426    
  17  Prefactor     62.615        37.120        .50705E-04   -1.4124    
  18  Prefactor     25.174        12.343        .79836E-04   -1.4704    
  19  Prefactor     .10000E-03    5.7728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .24845        .13015        .25456E-03   -1.5608    
  21  Prefactor     .10000E-03    6.7510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.8866        .13800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     30.340        27.242        .72732E-04   -1.4606    
  24  Normalizat    1.2569        .25290        .35878E-03   -.84864    
  25  Prefactor     .96278        .12158        .19893E-03   -.93981    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19195e-09
Minuit parameter uncertainties:
  1  4.86998e-05
  2  7.43151e-05
  3  26.1636
  4  0.684313
  5  2.25465e-05
  6  1.39846e-06
  7  4.74276e-06
  8  7.94864e-07
  9  12.0004
  10  8.87854e-07
  11  2.79992e-06
  12  0.256565
  13  7.11452
  14  1.28639
  15  20.0114
  16  1.34956
  17  37.1335
  18  12.3444
  19  1.11449e-05
  20  0.13015
  21  8.39565e-06
  22  2.90571e-07
  23  27.2529
  24  0.25315
  25  0.12161
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  2.800e-06  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:  9.628e-01  1.216e-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.257e+00  2.532e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 336.414 21.342
Photon Flux Upper Limit: 8.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/692203/likelihoodResults_671932801_672192001_4FGL_J2225.6+2120_daily_bin1669.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) = 10587.4574056
delta logL = -0.000262753146671

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10587.4571432
delta logL = -3.16171281156e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11420E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7247       1.0000          .0000       10.000    
     3 'Normalizat'    1.2572       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96265       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   10587.46     FROM MIGRAD    STATUS=FAILED       123 CALLS      289 TOTAL
                     EDM=   .68E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .23199E-03    16.180        .82474E-01** at limit **
   2  Index         1.9411        7.4890        .50000       -.27659E-04
   3  Normalizat    1.2569        .89626E-02    .35878E-03    .78013E-04
   4  Prefactor     .96278        .44459E-02    .19893E-03    .10310E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   10587.45     FROM SIMPLEX   STATUS=PROGRESS     109 CALLS      398 TOTAL
                     EDM=   .57E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .69489        16.180        .40553E-03   -.17729E-01
   2  Index         2.0909        7.4890        .23065E-02   -.27659E-04
   3  Normalizat    1.2569        .89626E-02    .10157E-04    .78013E-04
   4  Prefactor     .96280        .44459E-02    .16816E-05    .10310E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   10587.45     FROM MIGRAD    STATUS=FAILED        92 CALLS      490 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .70964        16.501        .19030E-03    .31304E-04
   2  Index         2.0937        2.3467        .26544E-01    .69383E-05
   3  Normalizat    1.2562        .24345        .28702E-05   -.14940E-02
   4  Prefactor     .96244        .12084        .15915E-05    .26117E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.709643
  Index      = 2.0937
  Normalizat = 1.25622
  Prefactor  = 0.962439
 **********
 **   18 **HESSE 
 **********

 FCN=   10587.45     FROM HESSE     STATUS=OK            25 CALLS      515 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .70964        16.807        .76119E-05   -1.5539    
   2  Index         2.0937        2.3722        .10618E-02   -.62028    
   3  Normalizat    1.2562        .24193        .57405E-06   -.84883    
   4  Prefactor     .96244        .11987        .31829E-06   -.93992    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.36049e-08
Minuit parameter uncertainties:
  1  6.90881
  2  2.53257
  3  0.242146
  4  0.119901
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/692203': 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): 1
logL (Free Index) = 10587.4513964
delta logL = 0.00574651783245

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  7.096e-01  6.909e+00  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.094e+00  2.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:  9.624e-01  1.199e-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.256e+00  2.421e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/692203/cmap_HighResolution_671932801_672192001_4FGL_J2225.6+2120_daily_bin1669.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.95e-03', job_status='DONE', photon_flux_upper_limit='8.78e-08', time_completed='2022-04-21 00:51:48.034442', job_id='692203', GAL2='0.96', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1650527508.03', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='5.75e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.81' WHERE bin_id='1669' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Apr 21 00:51:48 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0186>
Subject: Job 692203: <4FGL_J2225.6+2120_daily_bin1669> in cluster <slac> Done

Job <4FGL_J2225.6+2120_daily_bin1669> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Apr 21 00:35:37 2022
Job was executed on host(s) <bullet0186>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Apr 21 00:35:38 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Apr 21 00:35:38 2022
Terminated at Thu Apr 21 00:51:48 2022
Results reported at Thu Apr 21 00:51:48 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin1669 336.414 21.3418 671932801 672192001 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 :                                   942.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             362.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   970 sec.
    Turnaround time :                            971 sec.

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

