/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 141 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 = 7445
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1422.3+3223_daily_bin65
RA = 215.577, Dec = 32.3911
tmin = 256176001, tmax = 256435201
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='379623', job_status='RUN', time_executed='2021-09-09 11:33:30.026708', time_epoch_executed='1631212410.03' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='65'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/379623

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/379623/ft1_4FGL_J1422.3+3223_daily_bin65.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/379623/ft2_4FGL_J1422.3+3223_daily_bin65.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/379623/ft1_4FGL_J1422.3+3223_daily_bin65.fits outfile=/scratch/kocevski/379623/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin65.fits ra=215.577 dec=32.3911 rad=12.0 tmin=256176001.0 tmax=256435201.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 1.49
user 1.26
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/379623/ft2_4FGL_J1422.3+3223_daily_bin65.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/379623/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin65.fits evtable="EVENTS" outfile="/scratch/kocevski/379623/ft1_filtered_4FGL_J1422.3+3223_daily_bin65.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.49
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/379623/ft1_filtered_4FGL_J1422.3+3223_daily_bin65.fits" evtable="EVENTS" scfile=/scratch/kocevski/379623/ft2_4FGL_J1422.3+3223_daily_bin65.fits sctable="SC_DATA" outfile=/scratch/kocevski/379623/ltcube_256176001_256435201_4FGL_J1422.3+3223_daily_bin65.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/379623/ft2_4FGL_J1422.3+3223_daily_bin65.fits
.....................!
real 13.28
user 12.92
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/379623/ft1_filtered_4FGL_J1422.3+3223_daily_bin65.fits evtable="EVENTS" scfile=/scratch/kocevski/379623/ft2_4FGL_J1422.3+3223_daily_bin65.fits sctable="SC_DATA" expcube=/scratch/kocevski/379623/ltcube_256176001_256435201_4FGL_J1422.3+3223_daily_bin65.fits outfile=/scratch/kocevski/379623/expmap_256176001_256435201_4FGL_J1422.3+3223_daily_bin65.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/379623/ltcube_256176001_256435201_4FGL_J1422.3+3223_daily_bin65.fits
.....................!
real 190.20
user 185.20
sys 4.64

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/379623/ft1_filtered_4FGL_J1422.3+3223_daily_bin65.fits scfile=/scratch/kocevski/379623/ft2_4FGL_J1422.3+3223_daily_bin65.fits outfile=/scratch/kocevski/379623/cmap_256176001_256435201_4FGL_J1422.3+3223_daily_bin65.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/379623/ft1_filtered_4FGL_J1422.3+3223_daily_bin65.fits scfile=/scratch/kocevski/379623/ft2_4FGL_J1422.3+3223_daily_bin65.fits outfile=/scratch/kocevski/379623/cmap_HighResolution_256176001_256435201_4FGL_J1422.3+3223_daily_bin65.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.57
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/379623/ft1_filtered_4FGL_J1422.3+3223_daily_bin65.fits', '/scratch/kocevski/379623/ft2_4FGL_J1422.3+3223_daily_bin65.fits', expMap='/scratch/kocevski/379623/expmap_256176001_256435201_4FGL_J1422.3+3223_daily_bin65.fits', expCube='/scratch/kocevski/379623/ltcube_256176001_256435201_4FGL_J1422.3+3223_daily_bin65.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/379623/Model_4FGL_J1422.3+3223_daily_bin65.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/379623/ft1_filtered_4FGL_J1422.3+3223_daily_bin65.fits
Spacecraft file(s): /scratch/kocevski/379623/ft2_4FGL_J1422.3+3223_daily_bin65.fits
Exposure map: /scratch/kocevski/379623/expmap_256176001_256435201_4FGL_J1422.3+3223_daily_bin65.fits
Exposure cube: /scratch/kocevski/379623/ltcube_256176001_256435201_4FGL_J1422.3+3223_daily_bin65.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/379623/Model_4FGL_J1422.3+3223_daily_bin65.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) = 8647.33843265

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.388       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10223E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.6798       1.0000         .10000E-03   10000.    
     5 'norm      '    13.982       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.1063       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.9413       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.1302       1.0000         .10000E-03   10000.    
    11 'norm      '    .71199E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    3.8187       1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.479       1.0000         .10000E-03   10000.    
    14 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.4244       1.0000         .10000E-03   10000.    
    18 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.346       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.8355       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1377       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .97357       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=   8647.303     FROM MIGRAD    STATUS=CONVERGED    528 CALLS     2206 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.3317        .29110E-09** at limit **
   2  Prefactor     18.389        20.082       -.37401E-07    .16128E-03
   3  Prefactor     .10000E-03    66.293       -.35405E-08** at limit **
   4  Prefactor     2.6796        3.0767       -.21095E-07   -.34573E-04
   5  norm          13.984        11.740        .12947E-07   -.52048E-04
   6  Prefactor     .10000E-03    3.5316       -.47220E-09** at limit **
   7  norm          2.1070        2.1979        .79035E-08   -.35975E-04
   8  Prefactor     5.9673        3.8164       -.46560E-06   -.32325E-03
   9  Prefactor     .10000E-03    5.9786        .23829E-07** at limit **
  10  Prefactor     7.1306        3.4309       -.24694E-08   -.22863E-04
  11  norm          .10000E-03    9.9459        .34102E-06** at limit **
  12  norm          3.8186        1.8055       -.30497E-09    .19498E-05
  13  Prefactor     17.454        24.871       -.39338E-07    .16402E-03
  14  norm          .10000E-03    1.6889        .80291E-09** at limit **
  15  Prefactor     .10000E-03    15.705       -.10246E-08** at limit **
  16  norm          .10000E-03    1.3995       -.58641E-09** at limit **
  17  Prefactor     9.4246        18.538       -.15939E-06   -.55660E-04
  18  norm          .10000E-03    3.1057       -.21024E-08** at limit **
  19  Prefactor     19.347        14.085        .10841E-06   -.13316E-02
  20  Prefactor     .10000E-03    3.6084        .15399E-08** at limit **
  21  norm          2.8353        1.5816       -.66504E-08   -.23005E-03
  22  Normalizat    1.1375        .15380        .61833E-07   -.85706E-04
  23  Prefactor     .97379        .15363       -.19126E-07   -.57608E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 18.3887
  Prefactor  = 0.0001
  Prefactor  = 2.67958
  norm       = 13.984
  Prefactor  = 0.0001
  norm       = 2.10702
  Prefactor  = 5.96731
  Prefactor  = 0.0001
  Prefactor  = 7.13061
  norm       = 0.0001
  norm       = 3.81856
  Prefactor  = 17.4541
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.42457
  norm       = 0.0001
  Prefactor  = 19.3472
  Prefactor  = 0.0001
  norm       = 2.8353
  Normalizat = 1.13751
  Prefactor  = 0.973785
 **********
 **   18 **HESSE 
 **********

 FCN=   8647.303     FROM HESSE     STATUS=OK           380 CALLS     2586 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.3428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     18.389        20.101        .93401E-04   -1.4850    
   3  Prefactor     .10000E-03    66.494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.6796        3.0854        .16788E-03   -1.5381    
   5  norm          13.984        11.756        .10712E-03   -1.4960    
   6  Prefactor     .10000E-03    3.5322        .17067E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.1070        2.1972        .13563E-03   -1.5418    
   8  Prefactor     5.9673        11.033        .82372E-03   -1.5219    
   9  Prefactor     .10000E-03    5.9946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.1306        3.4434        .11397E-03   -1.5174    
  11  norm          .10000E-03    13.007        .89615E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.8186        1.8071        .83397E-04   -1.5317    
  13  Prefactor     17.454        24.963        .95798E-04   -1.4872    
  14  norm          .10000E-03    1.6952        .11799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.4089        .10740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.4246        18.999        .65271E-03   -1.5094    
  18  norm          .10000E-03    3.1101        .15997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     19.347        14.035        .91060E-04   -1.4828    
  20  Prefactor     .10000E-03    3.6235        .17232E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.8353        1.5785        .83504E-04   -1.5371    
  22  Normalizat    1.1375        .18525        .23956E-03   -.88556    
  23  Prefactor     .97379        .18251        .26550E-03   -.93609    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11528e-09
Minuit parameter uncertainties:
  1  1.68535e-07
  2  20.1083
  3  1.54578e-05
  4  3.08561
  5  11.7583
  6  9.69091e-06
  7  2.19728
  8  11.0365
  9  3.36783e-06
  10  3.44354
  11  6.88181e-06
  12  1.80708
  13  24.9777
  14  1.38266e-06
  15  8.05132e-06
  16  5.46502e-08
  17  19.0116
  18  4.54494e-06
  19  14.0375
  20  9.36856e-06
  21  1.57848
  22  0.185359
  23  0.182621
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  7.131e+00  3.444e+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.738e-01  1.826e-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.138e+00  1.854e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.49
Ra Dec: 215.577 32.391
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 6.43e-08 +/- 3.10e-08
Energy Flux (Fixed Index): 2.10e-05 +/- 1.02e-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) = 8646.95377714
delta logL = 0.349654055823

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8646.9196455
delta logL = 0.383785700787

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2942       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8935       1.0000          .0000       10.000    
     3 'Normalizat'    1.0938       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0039       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=   8646.920     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      243 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2939        29.554        .43670E-02    .30394E-03
   2  Index         2.8935        2.9581        .15303        .15608E-03
   3  Normalizat    1.0938        .72283E-01    .55074E-01    .21362E-04
   4  Prefactor     1.0039        .58059E-01    .44439E-01    .10744E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.29385
  Index      = 2.89354
  Normalizat = 1.09377
  Prefactor  = 1.00393
 **********
 **   18 **HESSE 
 **********

 FCN=   8646.920     FROM HESSE     STATUS=OK            33 CALLS      276 TOTAL
                     EDM=   .79E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2939        3.9535        .84650E-04   -1.5248    
   2  Index         2.8935        .64673        .54945E-02   -.43487    
   3  Normalizat    1.0938        .18530        .24353E-03   -.89952    
   4  Prefactor     1.0039        .18621        .26192E-03   -.92599    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.9123e-12
Minuit parameter uncertainties:
  1  3.95372
  2  0.648939
  3  0.185414
  4  0.186325
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/379623': 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) = 8646.91964547
delta logL = 0.383785725277

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  5.294e+00  3.954e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.894e+00  6.489e-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:  1.004e+00  1.863e-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.094e+00  1.854e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.39
Ra Dec: 215.577 32.391
Photon Index (Free Index): 2.89 +/- 0.65
Photon Flux (Free Index): 9.53e-08 +/- 5.19e-08
Energy Flux (Free Index): 2.01e-05 +/- 8.47e-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/379623/cmap_HighResolution_256176001_256435201_4FGL_J1422.3+3223_daily_bin65.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.43e-08', energy_flux2='2.01e-05', photon_flux_error='3.10e-08', dlogl='3.84e-01', energy_flux='2.10e-05', photon_flux2='9.53e-08', job_status='DONE', time_completed='2021-09-09 11:44:09.319208', photon_index_error2='0.65', photon_index2='2.89', ts='10.49', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='8.47e-06', EG='1.14', time_epoch_completed='1631213049.32', return_code='0', job_id='379623', GAL2='1.00', EG2='1.09', return_code2='0', energy_flux_error='1.02e-05', photon_flux_error2='5.19e-08', ts2='11.39', photon_index='2.40' WHERE bin_id='65' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:44:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 379623: <4FGL_J1422.3+3223_daily_bin65> in cluster <slac> Done

Job <4FGL_J1422.3+3223_daily_bin65> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Thu Sep  9 11:31:00 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 11:31:01 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 11:31:01 2021
Terminated at Thu Sep  9 11:44:10 2021
Results reported at Thu Sep  9 11:44:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin65 215.577 32.3911 256176001 256435201 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 :                                   638.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             315.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   788 sec.
    Turnaround time :                            790 sec.

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

