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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin1666
RA = 336.414, Dec = 21.3418
tmin = 671155201, tmax = 671414401
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='414492', job_status='RUN', time_executed='2022-04-12 00:35:59.384170', time_epoch_executed='1649748959.38' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='1666'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/414492

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/414492/ft1_4FGL_J2225.6+2120_daily_bin1666.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/414492/ft2_4FGL_J2225.6+2120_daily_bin1666.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/414492/ft1_4FGL_J2225.6+2120_daily_bin1666.fits outfile=/scratch/kocevski/414492/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1666.fits ra=336.414 dec=21.3418 rad=12.0 tmin=671155201.0 tmax=671414401.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 5.28
user 5.03
sys 0.24

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

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

Number of photons that the gtmktime cut: 803

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/414492/ft1_filtered_4FGL_J2225.6+2120_daily_bin1666.fits evtable="EVENTS" scfile=/scratch/kocevski/414492/ft2_4FGL_J2225.6+2120_daily_bin1666.fits sctable="SC_DATA" expcube=/scratch/kocevski/414492/ltcube_671155201_671414401_4FGL_J2225.6+2120_daily_bin1666.fits outfile=/scratch/kocevski/414492/expmap_671155201_671414401_4FGL_J2225.6+2120_daily_bin1666.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/414492/ltcube_671155201_671414401_4FGL_J2225.6+2120_daily_bin1666.fits
.....................!
real 191.16
user 186.01
sys 4.82

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/414492/ft1_filtered_4FGL_J2225.6+2120_daily_bin1666.fits scfile=/scratch/kocevski/414492/ft2_4FGL_J2225.6+2120_daily_bin1666.fits outfile=/scratch/kocevski/414492/cmap_671155201_671414401_4FGL_J2225.6+2120_daily_bin1666.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/414492/ft1_filtered_4FGL_J2225.6+2120_daily_bin1666.fits scfile=/scratch/kocevski/414492/ft2_4FGL_J2225.6+2120_daily_bin1666.fits outfile=/scratch/kocevski/414492/cmap_HighResolution_671155201_671414401_4FGL_J2225.6+2120_daily_bin1666.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    221.64       1.0000         .10000E-03   10000.    
     2 'norm      '    1.6027       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.1880       1.0000         .10000E-03   10000.    
     4 'norm      '    .62608       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.2873       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.8704       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.4127       1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.186       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.7912       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.1604       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .34132       1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.311       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.4029       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0174       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .90907       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=   8857.179     FROM MIGRAD    STATUS=CONVERGED    569 CALLS     2901 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     221.63        152.06       -.23048E-05   -.54962E-05
   2  norm          1.6018        2.2385        .20985E-06   -.39552E-04
   3  Prefactor     7.1856        35.718       -.43820E-05   -.15817E-04
   4  norm          .62624        1.0077        .54478E-07   -.15597E-03
   5  Prefactor     .10000E-03    19.136       -.33826E-05** at limit **
   6  norm          .10000E-03    .46875        .41445E-07** at limit **
   7  Prefactor     .10000E-03    32.859        .87082E-05** at limit **
   8  norm          .10000E-03    3.6035        .59609E-07** at limit **
   9  Prefactor     .10000E-03    7.1799        .13397E-07** at limit **
  10  Prefactor     .10000E-03    36.520       -.90924E-05** at limit **
  11  Prefactor     .10000E-03    13.821        .18294E-05** at limit **
  12  Prefactor     1.2873        .25836       -.51949E-08   -.13603E-02
  13  Prefactor     .10000E-03    21.004        .51031E-05** at limit **
  14  norm          5.8705        1.6397       -.26020E-08   -.44720E-03
  15  Prefactor     .10000E-03    10.491       -.33803E-06** at limit **
  16  norm          4.4128        2.0361       -.37239E-08   -.11124E-04
  17  Prefactor     21.186        20.333       -.14667E-06   -.40617E-05
  18  Prefactor     4.7914        10.977        .10818E-06   -.36574E-03
  19  Prefactor     2.1601        5.2028        .47848E-06   -.68755E-03
  20  Prefactor     .34133        .13830       -.40430E-08   -.16405E-03
  21  Prefactor     14.311        11.910       -.43597E-07    .16713E-05
  22  Prefactor     2.4028        7.8330       -.45819E-07   -.43988E-04
  23  Prefactor     .10000E-03    18.987       -.35870E-05** at limit **
  24  Normalizat    1.0173        .21890        .10295E-06   -.10914E-03
  25  Prefactor     .90913        .10531        .84949E-07   -.18813E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 221.633
  norm       = 1.60181
  Prefactor  = 7.1856
  norm       = 0.626236
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.28732
  Prefactor  = 0.0001
  norm       = 5.87054
  Prefactor  = 0.0001
  norm       = 4.41276
  Prefactor  = 21.1859
  Prefactor  = 4.79138
  Prefactor  = 2.16009
  Prefactor  = 0.341328
  Prefactor  = 14.3114
  Prefactor  = 2.40282
  Prefactor  = 0.0001
  Normalizat = 1.01726
  Prefactor  = 0.909129
 **********
 **   18 **HESSE 
 **********

 FCN=   8857.179     FROM HESSE     STATUS=OK           433 CALLS     3334 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     221.63        151.84        .13586E-03   -1.2719    
   2  norm          1.6018        2.2049        .15453E-03   -1.5455    
   3  Prefactor     7.1856        35.048        .14961E-03   -1.5172    
   4  norm          .62624        .88491        .11557E-02   -1.5550    
   5  Prefactor     .10000E-03    19.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .73810        .12322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    33.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.6613        .17435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.2077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    36.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.2873        .25829        .20412E-04   -1.5481    
  13  Prefactor     .10000E-03    21.573        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.8705        1.6448        .30339E-03   -1.5223    
  15  Prefactor     .10000E-03    10.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.4128        2.0409        .86069E-04   -1.5288    
  17  Prefactor     21.186        20.336        .87020E-04   -1.4787    
  18  Prefactor     4.7914        11.753        .91901E-03   -1.5270    
  19  Prefactor     2.1601        11.690        .14012E-02   -1.5414    
  20  Prefactor     .34133        .13751        .20988E-04   -1.5591    
  21  Prefactor     14.311        11.903        .10588E-03   -1.4951    
  22  Prefactor     2.4028        7.8060        .26414E-03   -1.5398    
  23  Prefactor     .10000E-03    19.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0173        .25907        .36368E-03   -.92454    
  25  Prefactor     .90913        .12591        .18885E-03   -.95823    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.31846e-09
Minuit parameter uncertainties:
  1  152.108
  2  2.20506
  3  31.7687
  4  0.884925
  5  1.9702e-05
  6  3.98977e-06
  7  2.00363e-05
  8  1.62225e-06
  9  1.32964e-06
  10  0.000111403
  11  7.81392e-06
  12  0.258287
  13  4.56181e-05
  14  1.64485
  15  3.08315e-06
  16  2.04097
  17  20.3425
  18  11.7582
  19  10.053
  20  0.13751
  21  11.9053
  22  7.80927
  23  2.53824e-05
  24  0.259396
  25  0.125952
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  7.814e-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.091e-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.017e+00  2.594e-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: 1.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.46e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/414492/likelihoodResults_671155201_671414401_4FGL_J2225.6+2120_daily_bin1666.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) = 8857.17898603
delta logL = -0.000340245225743

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8857.1786458
delta logL = -1.60580384545e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7890       1.0000          .0000       10.000    
     3 'Normalizat'    1.0173       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90912       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=   8857.179     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      254 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10289E-03    1.6921        .83680E-01** at limit **
   2  Index         2.6910        7.4653        .50000        .10345E-04
   3  Normalizat    1.0173        .25752E-02    .36368E-03   -.16068E-04
   4  Prefactor     .90913        .12803E-02    .18885E-03   -.39251E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102894
  Index      = 2.69104
  Normalizat = 1.01726
  Prefactor  = 0.909129
 **********
 **   18 **HESSE 
 **********

 FCN=   8857.179     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      285 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10289E-03    143.49        .49285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6910        6.7603        .50000       -.48001    
   3  Normalizat    1.0173        .16394E-01    .14547E-04   -.92454    
   4  Prefactor     .90913        .81503E-02    .75539E-05   -.95823    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.79915e-08
Minuit parameter uncertainties:
  1  0.0408521
  2  498.366
  3  0.016394
  4  0.00815027
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/414492': 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) = 8857.17864554
delta logL = 2.41523594013e-07

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.029e-04  4.085e-02  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.691e+00  4.984e+02  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.091e-01  8.150e-03  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.017e+00  1.639e-02  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/414492/cmap_HighResolution_671155201_671414401_4FGL_J2225.6+2120_daily_bin1666.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.46e-03', job_status='DONE', photon_flux_upper_limit='1.07e-07', time_completed='2022-04-12 00:49:39.956934', job_id='414492', GAL2='0.91', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1649749779.96', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='2.42e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.81' WHERE bin_id='1666' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Apr 12 00:49:39 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 414492: <4FGL_J2225.6+2120_daily_bin1666> in cluster <slac> Done

Job <4FGL_J2225.6+2120_daily_bin1666> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Apr 12 00:35:37 2022
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 12 00:35:38 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 12 00:35:38 2022
Terminated at Tue Apr 12 00:49:40 2022
Results reported at Tue Apr 12 00:49:40 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin1666 336.414 21.3418 671155201 671414401 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 :                                   823.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             350.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            843 sec.

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

