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


Performing analysis on: 4FGL_J1422.3+3223_weekly_bin726
RA = 215.577, Dec = 32.3911
tmin = 678067201, tmax = 678672001
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='706611', job_status='RUN', time_executed='2022-07-05 04:32:01.157225', time_epoch_executed='1657020721.16' WHERE source_name='4FGL J1422.3+3223' and cadence='weekly' and bin_id='726'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/706611

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/706611/ft1_4FGL_J1422.3+3223_weekly_bin726.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/706611/ft2_4FGL_J1422.3+3223_weekly_bin726.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/706611/ft1_4FGL_J1422.3+3223_weekly_bin726.fits outfile=/scratch/kocevski/706611/ft1_filteredMKT_4FGL_J1422.3+3223_weekly_bin726.fits ra=215.577 dec=32.3911 rad=12.0 tmin=678067201.0 tmax=678672001.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 8.28
user 6.95
sys 0.32

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/706611/ft2_4FGL_J1422.3+3223_weekly_bin726.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/706611/ft2_4FGL_J1422.3+3223_weekly_bin726.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/706611/ft1_filteredMKT_4FGL_J1422.3+3223_weekly_bin726.fits evtable="EVENTS" outfile="/scratch/kocevski/706611/ft1_filtered_4FGL_J1422.3+3223_weekly_bin726.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.58
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 1201

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/706611/ft1_filtered_4FGL_J1422.3+3223_weekly_bin726.fits" evtable="EVENTS" scfile=/scratch/kocevski/706611/ft2_4FGL_J1422.3+3223_weekly_bin726.fits sctable="SC_DATA" outfile=/scratch/kocevski/706611/ltcube_678067201_678672001_4FGL_J1422.3+3223_weekly_bin726.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/706611/ft2_4FGL_J1422.3+3223_weekly_bin726.fits
.....................!
real 33.73
user 30.50
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/706611/ft1_filtered_4FGL_J1422.3+3223_weekly_bin726.fits evtable="EVENTS" scfile=/scratch/kocevski/706611/ft2_4FGL_J1422.3+3223_weekly_bin726.fits sctable="SC_DATA" expcube=/scratch/kocevski/706611/ltcube_678067201_678672001_4FGL_J1422.3+3223_weekly_bin726.fits outfile=/scratch/kocevski/706611/expmap_678067201_678672001_4FGL_J1422.3+3223_weekly_bin726.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/706611/ltcube_678067201_678672001_4FGL_J1422.3+3223_weekly_bin726.fits
.....................!
real 160.95
user 153.06
sys 5.14

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 169 point sources and 0 extended sources

Setting source of interest to:
4FGL J1422.3+3223 @ 215.577 32.3911

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/706611/ft1_filtered_4FGL_J1422.3+3223_weekly_bin726.fits scfile=/scratch/kocevski/706611/ft2_4FGL_J1422.3+3223_weekly_bin726.fits outfile=/scratch/kocevski/706611/cmap_678067201_678672001_4FGL_J1422.3+3223_weekly_bin726.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=215.577 yref=32.3911 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.52
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/706611/ft1_filtered_4FGL_J1422.3+3223_weekly_bin726.fits scfile=/scratch/kocevski/706611/ft2_4FGL_J1422.3+3223_weekly_bin726.fits outfile=/scratch/kocevski/706611/cmap_HighResolution_678067201_678672001_4FGL_J1422.3+3223_weekly_bin726.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=215.577 yref=32.3911 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.51
user 0.35
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/706611/ft1_filtered_4FGL_J1422.3+3223_weekly_bin726.fits evtable="EVENTS" scfile=/scratch/kocevski/706611/ft2_4FGL_J1422.3+3223_weekly_bin726.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/706611/Model_4FGL_J1422.3+3223_weekly_bin726.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/706611/ft1_filtered_4FGL_J1422.3+3223_weekly_bin726.fits.....................!
real 78.32
user 76.96
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/706611/ft1_filtered_4FGL_J1422.3+3223_weekly_bin726.fits', '/scratch/kocevski/706611/ft2_4FGL_J1422.3+3223_weekly_bin726.fits', expMap='/scratch/kocevski/706611/expmap_678067201_678672001_4FGL_J1422.3+3223_weekly_bin726.fits', expCube='/scratch/kocevski/706611/ltcube_678067201_678672001_4FGL_J1422.3+3223_weekly_bin726.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/706611/Model_4FGL_J1422.3+3223_weekly_bin726.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1422.3+3223'

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.864e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.401e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
261        Scale:  7.500e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/706611/ft1_filtered_4FGL_J1422.3+3223_weekly_bin726.fits
Spacecraft file(s): /scratch/kocevski/706611/ft2_4FGL_J1422.3+3223_weekly_bin726.fits
Exposure map: /scratch/kocevski/706611/expmap_678067201_678672001_4FGL_J1422.3+3223_weekly_bin726.fits
Exposure cube: /scratch/kocevski/706611/ltcube_678067201_678672001_4FGL_J1422.3+3223_weekly_bin726.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/706611/Model_4FGL_J1422.3+3223_weekly_bin726.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) = 13517.7990176

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6340       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.7655       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.4613       1.0000         .10000E-03   10000.    
     5 'norm      '    .11475E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .27561       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.5123       1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.028       1.0000         .10000E-03   10000.    
    11 'norm      '    2.8029       1.0000         .10000E-03   10000.    
    12 'norm      '    2.8772       1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.994       1.0000         .10000E-03   10000.    
    14 'norm      '    6.2498       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    14.980       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10320E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13789E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.8276       1.0000         .10000E-03   10000.    
    21 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0933       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .92826       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13517.73     FROM MIGRAD    STATUS=CONVERGED    557 CALLS     2274 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6200        14.097        .12511E-05    .36163E-04
   2  Prefactor     .10000E-03    13.662        .11337E-06** at limit **
   3  Prefactor     2.6708        95.502        .11898E-04    .77771E-04
   4  Prefactor     2.4605        2.8360        .17560E-06   -.50822E-04
   5  norm          .10000E-03    10.592       -.10990E-05** at limit **
   6  Prefactor     .10000E-03    2.5544        .37749E-07** at limit **
   7  norm          .10000E-03    .64623        .93452E-08** at limit **
   8  Prefactor     .20090        11.577        .41902E-05   -.86015E-03
   9  Prefactor     4.5545        14.746       -.91203E-06   -.49340E-03
  10  Prefactor     20.028        4.0413        .37157E-07   -.51298E-03
  11  norm          2.8103        6.5910        .23479E-06   -.19172E-03
  12  norm          2.8771        1.5055        .49639E-07    .14135E-04
  13  Prefactor     23.985        18.404       -.16027E-06   -.22636E-03
  14  norm          6.2500        3.6574       -.78610E-07   -.46564E-03
  15  Prefactor     .10000E-03    10.806        .16805E-05** at limit **
  16  norm          14.979        4.4995        .88535E-07   -.68574E-04
  17  Prefactor     .10000E-03    33.203        .43227E-06** at limit **
  18  norm          .10000E-03    1.3464        .12217E-07** at limit **
  19  Prefactor     .10001E-03    5.1525       -.99641E-06** at limit **
  20  Prefactor     3.8292        3.8615        .19411E-05    .62536E-03
  21  norm          .10000E-03    .34560       -.20325E-06** at limit **
  22  Normalizat    1.0935        .12608       -.31090E-06   -.69012E-03
  23  Prefactor     .92817        .12236       -.76846E-06   -.65966E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.61998
  Prefactor  = 0.0001
  Prefactor  = 2.67083
  Prefactor  = 2.4605
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.200901
  Prefactor  = 4.55453
  Prefactor  = 20.0275
  norm       = 2.81028
  norm       = 2.87707
  Prefactor  = 23.9854
  norm       = 6.24995
  Prefactor  = 0.000100001
  norm       = 14.9791
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100014
  Prefactor  = 3.82924
  norm       = 0.0001
  Normalizat = 1.0935
  Prefactor  = 0.928168
 **********
 **   18 **HESSE 
 **********

 FCN=   13517.73     FROM HESSE     STATUS=OK           392 CALLS     2666 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6200        14.146        .21193E-03   -1.5327    
   2  Prefactor     .10000E-03    13.703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.6708        97.626        .24475E-03   -1.5381    
   4  Prefactor     2.4605        2.8236        .19847E-03   -1.5394    
   5  norm          .10000E-03    10.913        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.5553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .64932        .91239E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .20090        13.214        .74090E-01   -1.5618    
   9  Prefactor     4.5545        15.812        .18953E-03   -1.5281    
  10  Prefactor     20.028        4.0601        .89497E-04   -1.4813    
  11  norm          2.8103        6.6007        .24299E-03   -1.5373    
  12  norm          2.8771        1.5074        .99779E-04   -1.5369    
  13  Prefactor     23.985        18.451        .81775E-04   -1.4728    
  14  norm          6.2500        3.6557        .16057E-03   -1.5208    
  15  Prefactor     .10000E-03    10.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          14.979        4.5041        .10349E-03   -1.4934    
  17  Prefactor     .10000E-03    33.697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.3475        .13175E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    6.2371        .76564E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.8292        3.9987        .10315E-02   -1.5317    
  21  norm          .10000E-03    .73218        .13118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0935        .15104        .24215E-03   -.89961    
  23  Prefactor     .92817        .14554        .26829E-03   -.95164    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56594e-09
Minuit parameter uncertainties:
  1  14.1595
  2  7.54964e-06
  3  32.3515
  4  2.82379
  5  4.47642e-05
  6  3.01867e-07
  7  4.09109e-07
  8  3.25858
  9  15.8267
  10  4.06011
  11  6.60244
  12  1.50745
  13  18.4556
  14  3.65584
  15  0.000173466
  16  4.50417
  17  0.000139649
  18  9.37019e-07
  19  0.000583379
  20  3.99902
  21  1.23499e-05
  22  0.1511
  23  0.145606
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  2.003e+01  4.060e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.401e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
261        Scale:  7.500e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
539    Prefactor:  9.282e-01  1.456e-01  0.000e+00  1.000e+01 ( 1.000e+00)
540        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
541        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
538   Normalization:  1.093e+00  1.511e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 64.66
Ra Dec: 215.577 32.391
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 1.80e-07 +/- 3.66e-08
Energy Flux (Fixed Index): 5.91e-05 +/- 1.20e-05

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) = 13517.7313254
delta logL = 0.00192946138122

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13517.7303044
delta logL = 0.00295049550004

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.842       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4166       1.0000          .0000       10.000    
     3 'Normalizat'    1.0910       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92997       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5420E+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=   13517.73     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      244 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.842        4.7747        .89916E-04   -.22506E-04
   2  Index         2.4166        .20824        .40807E-02    .84364E-04
   3  Normalizat    1.0910        .14167        .24225E-03    .41111E-04
   4  Prefactor     .92989        .14255        .26807E-03    .10178E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.8419
  Index      = 2.41663
  Normalizat = 1.09103
  Prefactor  = 0.929891
 **********
 **   18 **HESSE 
 **********

 FCN=   13517.73     FROM HESSE     STATUS=OK            25 CALLS      269 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.842        4.6943        .35966E-05   -1.4817    
   2  Index         2.4166        .20455        .16323E-03   -.54296    
   3  Normalizat    1.0910        .14176        .96898E-05   -.90040    
   4  Prefactor     .92989        .14264        .10723E-04   -.95104    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.06076e-11
Minuit parameter uncertainties:
  1  4.6944
  2  0.204632
  3  0.141804
  4  0.142695
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/706611': 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) = 13517.7303042
delta logL = 0.00295071992514

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.984e+01  4.694e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.417e+00  2.046e-01  0.000e+00  1.000e+01 (-1.000e+00)
261        Scale:  7.500e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
539    Prefactor:  9.299e-01  1.427e-01  0.000e+00  1.000e+01 ( 1.000e+00)
540        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
541        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
538   Normalization:  1.091e+00  1.418e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 64.40
Ra Dec: 215.577 32.391
Photon Index (Free Index): 2.42 +/- 0.20
Photon Flux (Free Index): 1.83e-07 +/- 4.51e-08
Energy Flux (Free Index): 5.85e-05 +/- 1.37e-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/706611/cmap_HighResolution_678067201_678672001_4FGL_J1422.3+3223_weekly_bin726.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.80e-07', energy_flux2='5.85e-05', photon_flux_error='3.66e-08', dlogl='2.95e-03', energy_flux='5.91e-05', photon_flux2='1.83e-07', job_status='DONE', time_completed='2022-07-05 04:44:52.500756', photon_index_error2='0.20', photon_index2='2.42', ts='64.66', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='1.37e-05', EG='1.09', time_epoch_completed='1657021492.5', return_code='0', job_id='706611', GAL2='0.93', EG2='1.09', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='4.51e-08', ts2='64.40', photon_index='2.40' WHERE bin_id='726' AND source_name='4FGL J1422.3+3223' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul  5 04:44:52 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0026>
Subject: Job 706611: <4FGL_J1422.3+3223_weekly_bin726> in cluster <slac> Done

Job <4FGL_J1422.3+3223_weekly_bin726> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Jul  5 04:30:22 2022
Job was executed on host(s) <bullet0026>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul  5 04:31:30 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul  5 04:31:30 2022
Terminated at Tue Jul  5 04:44:53 2022
Results reported at Tue Jul  5 04:44:53 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_weekly_bin726 215.577 32.3911 678067201 678672001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1422.3+3223 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   760.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             358.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   805 sec.
    Turnaround time :                            871 sec.

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

