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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin1707
RA = 336.414, Dec = 21.3418
tmin = 681782401, tmax = 682041601
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='551487', job_status='RUN', time_executed='2022-08-13 00:37:38.121508', time_epoch_executed='1660376258.12' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='1707'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/551487

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/551487/ft1_4FGL_J2225.6+2120_daily_bin1707.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/551487/ft2_4FGL_J2225.6+2120_daily_bin1707.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/551487/ft1_4FGL_J2225.6+2120_daily_bin1707.fits outfile=/scratch/kocevski/551487/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1707.fits ra=336.414 dec=21.3418 rad=12.0 tmin=681782401.0 tmax=682041601.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.67
user 5.22
sys 0.27

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

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

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

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

Number of photons that the gtmktime cut: 717

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/551487/ft1_filtered_4FGL_J2225.6+2120_daily_bin1707.fits" evtable="EVENTS" scfile=/scratch/kocevski/551487/ft2_4FGL_J2225.6+2120_daily_bin1707.fits sctable="SC_DATA" outfile=/scratch/kocevski/551487/ltcube_681782401_682041601_4FGL_J2225.6+2120_daily_bin1707.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/551487/ft2_4FGL_J2225.6+2120_daily_bin1707.fits
.....................!
real 12.99
user 12.60
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/551487/ft1_filtered_4FGL_J2225.6+2120_daily_bin1707.fits evtable="EVENTS" scfile=/scratch/kocevski/551487/ft2_4FGL_J2225.6+2120_daily_bin1707.fits sctable="SC_DATA" expcube=/scratch/kocevski/551487/ltcube_681782401_682041601_4FGL_J2225.6+2120_daily_bin1707.fits outfile=/scratch/kocevski/551487/expmap_681782401_682041601_4FGL_J2225.6+2120_daily_bin1707.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/551487/ltcube_681782401_682041601_4FGL_J2225.6+2120_daily_bin1707.fits
.....................!
real 193.84
user 187.42
sys 5.71

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/551487/ft1_filtered_4FGL_J2225.6+2120_daily_bin1707.fits scfile=/scratch/kocevski/551487/ft2_4FGL_J2225.6+2120_daily_bin1707.fits outfile=/scratch/kocevski/551487/cmap_681782401_682041601_4FGL_J2225.6+2120_daily_bin1707.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/551487/ft1_filtered_4FGL_J2225.6+2120_daily_bin1707.fits scfile=/scratch/kocevski/551487/ft2_4FGL_J2225.6+2120_daily_bin1707.fits outfile=/scratch/kocevski/551487/cmap_HighResolution_681782401_682041601_4FGL_J2225.6+2120_daily_bin1707.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.3136       1.0000         .10000E-03   10000.    
     5 'Prefactor '    65.820       1.0000         .10000E-03   10000.    
     6 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.7002       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10691E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .80499       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.622       1.0000         .10000E-03   10000.    
    14 'norm      '    3.1352       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .20406       1.0000         .10000E-03   10000.    
    16 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    40.788       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.9848       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .87686       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.7770       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.2059       1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.760       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .88226       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .99486       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=   7807.931     FROM MIGRAD    STATUS=CONVERGED   1069 CALLS     3429 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    38.203        .18142E-02** at limit **
   2  norm          .10000E-03    1.6446        .21798E-03** at limit **
   3  Prefactor     .10000E-03    8.1784        .18142E-02** at limit **
   4  norm          1.3135        1.2932        .96109E-04    .67271E-03
   5  Prefactor     65.814        53.846        .49469E-04   -.59293E-04
   6  norm          .10000E-03    .36189        .10208E-03** at limit **
   7  Prefactor     .10000E-03    4.2488        .17781E-02** at limit **
   8  norm          1.7005        2.8043        .18666E-03    .40856E-03
   9  Prefactor     .10000E-03    6.2726        .18142E-02** at limit **
  10  Prefactor     .10000E-03    472.29        .18153E-02** at limit **
  11  Prefactor     .10000E-03    3.4022        .15906E-02** at limit **
  12  Prefactor     .80503        .27992        .24928E-04   -.21434E-03
  13  Prefactor     12.620        17.860        .11275E-03   -.43863E-04
  14  norm          3.1376        1.3495        .61720E-04    .11527E-02
  15  Prefactor     .10296E-03    23.159        .10070    ** at limit **
  16  norm          .10000E-03    1.7628        .15425E-02** at limit **
  17  Prefactor     .10000E-03    16.357        .18142E-02** at limit **
  18  Prefactor     40.789        15.798        .62765E-04   -.37549E-03
  19  Prefactor     2.9749        30.622        .23499E-03   -.44751E-04
  20  Prefactor     .87690        .21151        .18503E-04    .62672E-04
  21  Prefactor     8.7777        11.151        .13530E-03    .10243E-03
  22  Prefactor     8.2057        11.286        .13995E-03   -.21932E-04
  23  Prefactor     16.763        29.684        .97831E-04    .23474E-04
  24  Normalizat    .88215        .27225        .38781E-03   -.25126E-03
  25  Prefactor     .99487        .13371        .18482E-03   -.83939E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.31352
  Prefactor  = 65.8142
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.70051
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.805035
  Prefactor  = 12.6204
  norm       = 3.13758
  Prefactor  = 0.000102964
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.7891
  Prefactor  = 2.97493
  Prefactor  = 0.876897
  Prefactor  = 8.77768
  Prefactor  = 8.20568
  Prefactor  = 16.7629
  Normalizat = 0.882149
  Prefactor  = 0.994867
 **********
 **   18 **HESSE 
 **********

 FCN=   7807.931     FROM HESSE     STATUS=OK           411 CALLS     3840 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    38.203        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.6446        .43596E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.1786        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.3135        1.2931        .38444E-05   -1.5479    
   5  Prefactor     65.814        53.844        .98937E-05   -1.4084    
   6  norm          .10000E-03    .36190        .20415E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.2489        .35562E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.7005        2.8042        .74663E-05   -1.5447    
   9  Prefactor     .10000E-03    6.2731        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    472.61        .36306E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.4023        .31812E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .80503        .27990        .99714E-06   -1.5529    
  13  Prefactor     12.620        17.857        .45099E-05   -1.4997    
  14  norm          3.1376        1.3488        .24688E-05   -1.5354    
  15  Prefactor     .10296E-03    21.194        .10655       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.7723        .30850E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    16.358        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     40.789        15.796        .12553E-04   -1.4430    
  19  Prefactor     2.9749        30.616        .93995E-05   -1.5363    
  20  Prefactor     .87690        .21149        .74011E-06   -1.5521    
  21  Prefactor     8.7777        11.150        .54119E-05   -1.5115    
  22  Prefactor     8.2057        11.285        .55982E-05   -1.5135    
  23  Prefactor     16.763        29.679        .39133E-05   -1.4889    
  24  Normalizat    .88215        .27245        .15513E-04   -.97090    
  25  Prefactor     .99487        .13380        .36963E-04   -.92901    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36039e-09
Minuit parameter uncertainties:
  1  3.15075e-05
  2  4.11101e-05
  3  3.53515e-05
  4  1.29317
  5  53.8842
  6  1.12245e-05
  7  2.04866e-05
  8  2.80446
  9  2.19825e-05
  10  0.00174783
  11  8.71958e-06
  12  0.2799
  13  17.865
  14  1.34882
  15  0.0158571
  16  2.47032e-05
  17  3.45629e-05
  18  15.7981
  19  19.0995
  20  0.211494
  21  11.1524
  22  11.2884
  23  29.7049
  24  0.272874
  25  0.13384
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  8.720e-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.949e-01  1.338e-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:  8.821e-01  2.729e-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: 7.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/551487/likelihoodResults_681782401_682041601_4FGL_J2225.6+2120_daily_bin1707.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) = 7807.93259607
delta logL = -0.00139642616978

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7807.93119964
delta logL = 1.75532477442e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8093       1.0000          .0000       10.000    
     3 'Normalizat'    .88215       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99487       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=   7807.931     FROM MIGRAD    STATUS=FAILED        86 CALLS      242 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10012E-03    6.0708        .15908E-02** at limit **
   2  Index         2.7609        6.2201        .50000        .33268E-05
   3  Normalizat    .88215        .25981        .38782E-03    .64492E-06
   4  Prefactor     .99487        .13186        .18482E-03    .14719E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7807.931     FROM SIMPLEX   STATUS=UNCHANGED    127 CALLS      369 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10012E-03    6.0708        .22103E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7609        6.2201        .36602E-03   -.46432    
   3  Normalizat    .88215        .25981        .72338E-04   -.97090    
   4  Prefactor     .99487        .13186        .34471E-04   -.92901    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7807.931     FROM MIGRAD    STATUS=CONVERGED      7 CALLS      376 TOTAL
                     EDM=   .32E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 13.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.4360        .26021E-05** at limit **
   2  Index         2.6623        7.7667       -.11646E-01   -.95501E-08
   3  Normalizat    .88215        .25967       -.31864E-07    .20023E-04
   4  Prefactor     .99487        .13178        .12143E-07   -.13241E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.66228
  Normalizat = 0.882149
  Prefactor  = 0.994868
 **********
 **   18 **HESSE 
 **********

 FCN=   7807.931     FROM HESSE     STATUS=OK            29 CALLS      405 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.5024        .31816E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6623        8.5835        .50000       -.48651    
   3  Normalizat    .88215        .25999        .15513E-04   -.97090    
   4  Prefactor     .99487        .13195        .36963E-04   -.92901    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.45533e-11
Minuit parameter uncertainties:
  1  1.38553e-05
  2  211.915
  3  0.260357
  4  0.131993
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/551487': 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) = 7807.93119956
delta logL = 8.43292582431e-08

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  1.386e-05  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.662e+00  2.119e+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.949e-01  1.320e-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:  8.821e-01  2.604e-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/551487/cmap_HighResolution_681782401_682041601_4FGL_J2225.6+2120_daily_bin1707.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.61e-03', job_status='DONE', photon_flux_upper_limit='7.08e-08', time_completed='2022-08-13 00:51:27.844707', job_id='551487', GAL2='0.99', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1660377087.84', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='8.43e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.81' WHERE bin_id='1707' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 13 00:51:27 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 551487: <4FGL_J2225.6+2120_daily_bin1707> in cluster <slac> Done

Job <4FGL_J2225.6+2120_daily_bin1707> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Aug 13 00:35:20 2022
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 13 00:35:21 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 13 00:35:21 2022
Terminated at Sat Aug 13 00:51:28 2022
Results reported at Sat Aug 13 00:51:28 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin1707 336.414 21.3418 681782401 682041601 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 :                                   831.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             273.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   967 sec.
    Turnaround time :                            968 sec.

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

