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 133 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J1422.3+3223_weekly_bin732
RA = 215.577, Dec = 32.3911
tmin = 681696001, tmax = 682300801
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='270815', job_status='RUN', time_executed='2022-09-17 01:18:05.576129', time_epoch_executed='1663402685.58' WHERE source_name='4FGL J1422.3+3223' and cadence='weekly' and bin_id='732'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/270815

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/270815/ft1_4FGL_J1422.3+3223_weekly_bin732.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/270815/ft2_4FGL_J1422.3+3223_weekly_bin732.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/270815/ft1_4FGL_J1422.3+3223_weekly_bin732.fits outfile=/scratch/kocevski/270815/ft1_filteredMKT_4FGL_J1422.3+3223_weekly_bin732.fits ra=215.577 dec=32.3911 rad=12.0 tmin=681696001.0 tmax=682300801.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 9.49
user 9.14
sys 0.32

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

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

Number of photons that the gtmktime cut: 1227

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/270815/ft1_filtered_4FGL_J1422.3+3223_weekly_bin732.fits" evtable="EVENTS" scfile=/scratch/kocevski/270815/ft2_4FGL_J1422.3+3223_weekly_bin732.fits sctable="SC_DATA" outfile=/scratch/kocevski/270815/ltcube_681696001_682300801_4FGL_J1422.3+3223_weekly_bin732.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/270815/ft2_4FGL_J1422.3+3223_weekly_bin732.fits
.....................!
real 36.98
user 36.25
sys 0.50

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/270815/ft1_filtered_4FGL_J1422.3+3223_weekly_bin732.fits evtable="EVENTS" scfile=/scratch/kocevski/270815/ft2_4FGL_J1422.3+3223_weekly_bin732.fits sctable="SC_DATA" expcube=/scratch/kocevski/270815/ltcube_681696001_682300801_4FGL_J1422.3+3223_weekly_bin732.fits outfile=/scratch/kocevski/270815/expmap_681696001_682300801_4FGL_J1422.3+3223_weekly_bin732.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/270815/ltcube_681696001_682300801_4FGL_J1422.3+3223_weekly_bin732.fits
.....................!
real 193.29
user 187.18
sys 5.60

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/270815/ft1_filtered_4FGL_J1422.3+3223_weekly_bin732.fits scfile=/scratch/kocevski/270815/ft2_4FGL_J1422.3+3223_weekly_bin732.fits outfile=/scratch/kocevski/270815/cmap_681696001_682300801_4FGL_J1422.3+3223_weekly_bin732.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.59
user 0.41
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/270815/ft1_filtered_4FGL_J1422.3+3223_weekly_bin732.fits scfile=/scratch/kocevski/270815/ft2_4FGL_J1422.3+3223_weekly_bin732.fits outfile=/scratch/kocevski/270815/cmap_HighResolution_681696001_682300801_4FGL_J1422.3+3223_weekly_bin732.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.62
user 0.44
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/270815/ft1_filtered_4FGL_J1422.3+3223_weekly_bin732.fits', '/scratch/kocevski/270815/ft2_4FGL_J1422.3+3223_weekly_bin732.fits', expMap='/scratch/kocevski/270815/expmap_681696001_682300801_4FGL_J1422.3+3223_weekly_bin732.fits', expCube='/scratch/kocevski/270815/ltcube_681696001_682300801_4FGL_J1422.3+3223_weekly_bin732.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/270815/Model_4FGL_J1422.3+3223_weekly_bin732.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  0.000e+00  1.000e+06 ( 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/270815/ft1_filtered_4FGL_J1422.3+3223_weekly_bin732.fits
Spacecraft file(s): /scratch/kocevski/270815/ft2_4FGL_J1422.3+3223_weekly_bin732.fits
Exposure map: /scratch/kocevski/270815/expmap_681696001_682300801_4FGL_J1422.3+3223_weekly_bin732.fits
Exposure cube: /scratch/kocevski/270815/ltcube_681696001_682300801_4FGL_J1422.3+3223_weekly_bin732.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/270815/Model_4FGL_J1422.3+3223_weekly_bin732.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) = 14030.652705

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.056       1.0000          .0000       .10000E+07
     2 'Prefactor '    .85146E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    7.5526       1.0000          .0000       .10000E+07
     4 'norm      '    .68018E-06   1.0000          .0000       .10000E+07
     5 'norm      '    .11435E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    .13832       1.0000          .0000       .10000E+07
     7 'Prefactor '    14.226       1.0000          .0000       .10000E+07
     8 'Prefactor '    5.8555       1.0000          .0000       .10000E+07
     9 'norm      '    .15419E-03   1.0000          .0000       .10000E+07
    10 'norm      '    5.4532       1.0000          .0000       .10000E+07
    11 'norm      '    10.158       1.0000          .0000       .10000E+07
    12 'norm      '    .10564E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    140.27       1.0000          .0000       .10000E+07
    14 'norm      '    6.1806       1.0000          .0000       .10000E+07
    15 'Prefactor '    .53901E-07   1.0000          .0000       .10000E+07
    16 'Prefactor '    .49888E-06   1.0000          .0000       .10000E+07
    17 'norm      '    1.3961       1.0000          .0000       .10000E+07
    18 'Normalizat'    1.1787       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .88196       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14028.66     FROM MIGRAD    STATUS=CONVERGED    130 CALLS      901 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.521        7.5828       -.12217E-05    .31586E-01
   2  Prefactor     .55511E-10    6.4469        .30815E-06** at limit **
   3  Prefactor     7.5644        3.4287        .83977E-07    .35115E-03
   4  norm          .55511E-10    3.9441        .40273E-06** at limit **
   5  norm           .0000        .77631        .80564E-07** at limit **
   6  Prefactor     .28866E-08    30.698       -.16053E-05** at limit **
   7  Prefactor     14.212        9.8280        .19419E-05    .18379E-01
   8  Prefactor     5.8419        3.2615        .28140E-07    .94139E-03
   9  norm          .44409E-09    9.7846        .23766E-06** at limit **
  10  norm          5.4530        1.8916       -.59899E-07   -.95911E-02
  11  norm          10.175        5.2655       -.15160E-06   -.23955E-02
  12  norm           .0000        .54387       -.11975E-07** at limit **
  13  Prefactor     141.42        34.371        .20483E-06   -.20889E-02
  14  norm          6.1716        4.3703       -.95311E-07   -.31776E-02
  15  Prefactor      .0000        4.2522       -.28564E-06** at limit **
  16  Prefactor      .0000        1.7927        .75945E-08** at limit **
  17  norm          1.3950        .94394        .30397E-07    .26036E-02
  18  Normalizat    1.1792        .14836       -.52382E-05   -.12092E-03
  19  Prefactor     .88151        .14426        .33058E-05   -.49592E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.5208
  Prefactor  = 5.55112e-11
  Prefactor  = 7.56435
  norm       = 5.55112e-11
  norm       = 0
  Prefactor  = 2.88658e-09
  Prefactor  = 14.2117
  Prefactor  = 5.84191
  norm       = 4.44089e-10
  norm       = 5.45301
  norm       = 10.1753
  norm       = 0
  Prefactor  = 141.424
  norm       = 6.17159
  Prefactor  = 0
  Prefactor  = 0
  norm       = 1.39499
  Normalizat = 1.17919
  Prefactor  = 0.88151
 **********
 **   18 **HESSE 
 **********

 FCN=   14028.66     FROM HESSE     STATUS=OK           312 CALLS     1213 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.521        13.775        .21799E-03   -1.5617    
   2  Prefactor     .55511E-10    6.4558        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.5644        3.4273        .36468E-03   -1.5653    
   4  norm          .55511E-10    3.9467        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        .77341        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .28866E-08    7.6452        .96820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.212        14.430        .26529E-03   -1.5633    
   8  Prefactor     5.8419        3.2630        .41478E-03   -1.5660    
   9  norm          .44409E-09    9.7671        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.4530        1.8900        .43006E-03   -1.5661    
  11  norm          10.175        5.2690        .31414E-03   -1.5644    
  12  norm           .0000        .54480        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     141.42        34.318        .84441E-04   -1.5470    
  14  norm          6.1716        4.3706        .40357E-03   -1.5658    
  15  Prefactor      .0000        4.2531        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        1.7925        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.3950        .94804        .91855E-03   -1.5684    
  18  Normalizat    1.1792        .12769        .55768E-01   -.87248    
  19  Prefactor     .88151        .12273        .44775E-01   -.96790    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91821e-08
Minuit parameter uncertainties:
  1  13.7751
  2  3.79107e-05
  3  3.42731
  4  2.37207e-05
  5  6.51105e-06
  6  0.000297707
  7  14.4304
  8  3.26295
  9  0.000132628
  10  1.88997
  11  5.26898
  12  1.44377e-06
  13  34.318
  14  4.37061
  15  1.80078e-05
  16  1.83928e-06
  17  0.948038
  18  0.127726
  19  0.122769
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  5.842e+00  3.263e+00  0.000e+00  1.000e+06 ( 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:  8.815e-01  1.228e-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.179e+00  1.277e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.99
Ra Dec: 215.577 32.391
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 5.26e-08 +/- 2.94e-08
Energy Flux (Fixed Index): 1.72e-05 +/- 9.62e-06

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) = 14028.4554304
delta logL = 0.205108498769

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14028.441888
delta logL = 0.21865091222

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6370       1.0000          .0000       .10000E+07
     2 'Index     '    2.7907       1.0000          .0000       10.000    
     3 'Normalizat'    1.1554       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89817       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.

 FCN=   14028.44     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      248 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6370        37.789        .46715E-03    .24856E-01
   2  Index         2.7907        3.2759        .14662        .24106E-03
   3  Normalizat    1.1555        .51723E-01    .56247E-01    .34811E-05
   4  Prefactor     .89816        .45366E-01    .44982E-01    .44000E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.63698
  Index      = 2.79069
  Normalizat = 1.15545
  Prefactor  = 0.898161
 **********
 **   18 **HESSE 
 **********

 FCN=   14028.44     FROM HESSE     STATUS=OK            33 CALLS      281 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6370        4.1530        .12377E-04   -1.5665    
   2  Index         2.7907        .72064        .82146E-02   -.45767    
   3  Normalizat    1.1555        .14877        .24873E-03   -.87991    
   4  Prefactor     .89816        .14592        .27965E-03   -.96205    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80245e-08
Minuit parameter uncertainties:
  1  4.15304
  2  0.723777
  3  0.148827
  4  0.145986
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/270815': 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) = 14028.4418879
delta logL = 0.218650916378

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  4.637e+00  4.153e+00  0.000e+00  1.000e+06 ( 1.000e-12)
260        Index:  2.791e+00  7.238e-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:  8.982e-01  1.460e-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.155e+00  1.488e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.49
Ra Dec: 215.577 32.391
Photon Index (Free Index): 2.79 +/- 0.72
Photon Flux (Free Index): 7.17e-08 +/- 4.41e-08
Energy Flux (Free Index): 1.62e-05 +/- 8.83e-06

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/270815/cmap_HighResolution_681696001_682300801_4FGL_J1422.3+3223_weekly_bin732.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.26e-08', energy_flux2='1.62e-05', photon_flux_error='2.94e-08', dlogl='2.19e-01', energy_flux='1.72e-05', photon_flux2='7.17e-08', job_status='DONE', time_completed='2022-09-17 01:29:54.820702', photon_index_error2='0.72', photon_index2='2.79', ts='4.99', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='8.83e-06', EG='1.18', time_epoch_completed='1663403394.82', return_code='0', job_id='270815', GAL2='0.90', EG2='1.16', return_code2='0', energy_flux_error='9.62e-06', photon_flux_error2='4.41e-08', ts2='5.49', photon_index='2.40' WHERE bin_id='732' AND source_name='4FGL J1422.3+3223' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Sep 17 01:29:54 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 270815: <4FGL_J1422.3+3223_weekly_bin732> in cluster <slac> Done

Job <4FGL_J1422.3+3223_weekly_bin732> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep 17 01:15:24 2022
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 17 01:15:42 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 17 01:15:42 2022
Terminated at Sat Sep 17 01:29:55 2022
Results reported at Sat Sep 17 01:29:55 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_weekly_bin732 215.577 32.3911 681696001 682300801 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 :                                   702.14 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             281.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            871 sec.

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

