/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 195 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 = 7388
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1391
RA = 215.577, Dec = 32.3911
tmin = 599875201, tmax = 600134401
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='384743', job_status='RUN', time_executed='2021-09-09 11:50:12.300033', time_epoch_executed='1631213412.3' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1391'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384743

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384743/ft1_4FGL_J1422.3+3223_daily_bin1391.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384743/ft2_4FGL_J1422.3+3223_daily_bin1391.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384743/ft1_4FGL_J1422.3+3223_daily_bin1391.fits outfile=/scratch/kocevski/384743/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1391.fits ra=215.577 dec=32.3911 rad=12.0 tmin=599875201.0 tmax=600134401.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 2.40
user 2.19
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/384743/ft2_4FGL_J1422.3+3223_daily_bin1391.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/384743/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1391.fits evtable="EVENTS" outfile="/scratch/kocevski/384743/ft1_filtered_4FGL_J1422.3+3223_daily_bin1391.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384743/ft1_filtered_4FGL_J1422.3+3223_daily_bin1391.fits evtable="EVENTS" scfile=/scratch/kocevski/384743/ft2_4FGL_J1422.3+3223_daily_bin1391.fits sctable="SC_DATA" expcube=/scratch/kocevski/384743/ltcube_599875201_600134401_4FGL_J1422.3+3223_daily_bin1391.fits outfile=/scratch/kocevski/384743/expmap_599875201_600134401_4FGL_J1422.3+3223_daily_bin1391.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/384743/ltcube_599875201_600134401_4FGL_J1422.3+3223_daily_bin1391.fits
.....................!
real 190.73
user 185.22
sys 5.15

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/384743/ft1_filtered_4FGL_J1422.3+3223_daily_bin1391.fits scfile=/scratch/kocevski/384743/ft2_4FGL_J1422.3+3223_daily_bin1391.fits outfile=/scratch/kocevski/384743/cmap_599875201_600134401_4FGL_J1422.3+3223_daily_bin1391.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.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/384743/ft1_filtered_4FGL_J1422.3+3223_daily_bin1391.fits scfile=/scratch/kocevski/384743/ft2_4FGL_J1422.3+3223_daily_bin1391.fits outfile=/scratch/kocevski/384743/cmap_HighResolution_599875201_600134401_4FGL_J1422.3+3223_daily_bin1391.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.54
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.1173       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.7901       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    11.906       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.7432       1.0000         .10000E-03   10000.    
    10 'Prefactor '    125.54       1.0000         .10000E-03   10000.    
    11 'norm      '    4.1361       1.0000         .10000E-03   10000.    
    12 'norm      '    8.0030       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.0314       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.1524       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.2631       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.3388       1.0000         .10000E-03   10000.    
    21 'norm      '    .29913       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .38410       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.4793       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=   9740.303     FROM MIGRAD    STATUS=CONVERGED    494 CALLS     2174 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.3417       -.22532E-05** at limit **
   2  Prefactor     8.1089        22.422       -.11229E-04   -.62067E-04
   3  Prefactor     3.7872        200.21       -.10859E-04   -.70164E-05
   4  Prefactor     .10000E-03    4.7449        .25331E-05** at limit **
   5  norm          11.905        10.556        .76069E-06    .11392E-04
   6  Prefactor     .10000E-03    6.8821        .92420E-06** at limit **
   7  norm          .10000E-03    .74145        .13477E-07** at limit **
   8  Prefactor     .10000E-03    3.4442        .14174E-05** at limit **
   9  Prefactor     2.7403        6.8658       -.51000E-06   -.12231E-03
  10  Prefactor     125.54        9.4189       -.14912E-06   -.18709E-03
  11  norm          4.1360        5.7101       -.42591E-08   -.15191E-03
  12  norm          8.0033        2.7317       -.23857E-07   -.29399E-04
  13  Prefactor     .10000E-03    4.8927        .26928E-05** at limit **
  14  norm          5.0312        4.0141        .40709E-08   -.10052E-02
  15  Prefactor     .10000E-03    41.093        .63030E-06** at limit **
  16  norm          2.1525        1.4922        .40551E-06   -.37990E-02
  17  Prefactor     4.2638        13.285       -.62413E-06   -.15312E-04
  18  norm          .10000E-03    5.3023       -.29056E-05** at limit **
  19  Prefactor     .10000E-03    3.6309       -.23366E-05** at limit **
  20  Prefactor     6.3393        5.7880       -.57615E-07    .97445E-04
  21  norm          .30005        .91473       -.10962E-06   -.28700E-03
  22  Normalizat    .38420        .16813        .19413E-05   -.50077E-04
  23  Prefactor     1.4792        .17331       -.21144E-06   -.22760E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.10885
  Prefactor  = 3.78719
  Prefactor  = 0.0001
  norm       = 11.9046
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.7403
  Prefactor  = 125.542
  norm       = 4.13599
  norm       = 8.00335
  Prefactor  = 0.0001
  norm       = 5.03119
  Prefactor  = 0.0001
  norm       = 2.15253
  Prefactor  = 4.26377
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.33932
  norm       = 0.300049
  Normalizat = 0.384204
  Prefactor  = 1.47923
 **********
 **   18 **HESSE 
 **********

 FCN=   9740.303     FROM HESSE     STATUS=OK           374 CALLS     2548 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.3099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.1089        22.512        .14072E-03   -1.5138    
   3  Prefactor     3.7872        200.11        .20735E-03   -1.5319    
   4  Prefactor     .10000E-03    4.9228        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          11.905        10.545        .11610E-03   -1.5018    
   6  Prefactor     .10000E-03    6.8967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .74273        .82985E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.4510        .17870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.7403        6.8378        .24581E-03   -1.5377    
  10  Prefactor     125.54        9.3872        .35926E-04   -1.3462    
  11  norm          4.1360        5.7077        .99100E-03   -1.5301    
  12  norm          8.0033        2.7375        .91900E-04   -1.5142    
  13  Prefactor     .10000E-03    4.8957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.0312        4.1024        .87396E-03   -1.5259    
  15  Prefactor     .10000E-03    41.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.1525        3.2905        .10660E-02   -1.5415    
  17  Prefactor     4.2638        13.266        .19514E-03   -1.5295    
  18  norm          .10000E-03    5.3523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.6425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.3393        5.7315        .15943E-03   -1.5204    
  21  norm          .30005        1.1332        .14686E-02   -1.5598    
  22  Normalizat    .38420        .18247        .40797E-03   -1.1813    
  23  Prefactor     1.4792        .19401        .23930E-03   -.78123    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.02104e-08
Minuit parameter uncertainties:
  1  1.91779e-05
  2  22.5353
  3  55.253
  4  1.14043e-05
  5  10.5466
  6  1.01428e-06
  7  1.7482e-07
  8  6.80607e-06
  9  6.83972
  10  9.38736
  11  5.70846
  12  2.73756
  13  1.34435e-05
  14  4.1026
  15  2.42872e-05
  16  3.29079
  17  13.2751
  18  1.2259e-05
  19  1.18583e-05
  20  5.73204
  21  1.13332
  22  0.182754
  23  0.194102
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.255e+02  9.387e+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:  1.479e+00  1.941e-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:  3.842e-01  1.828e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 690.26
Ra Dec: 215.577 32.391
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 1.13e-06 +/- 8.45e-08
Energy Flux (Fixed Index): 3.70e-04 +/- 2.77e-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) = 9736.72133151
delta logL = 3.58135049352

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9736.66226161
delta logL = 3.6404204007

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    148.73       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1958       1.0000          .0000       10.000    
     3 'Normalizat'    .47394       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4077       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=   9736.662     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      213 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     148.73        15.124        .82615E-03   -.77950E-02
   2  Index         2.1958        .81053E-01    .24772E-01    .12267E-03
   3  Normalizat    .47392        .15479        .83618E-01    .64676E-04
   4  Prefactor     1.4077        .16495        .55266E-01   -.24865E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 148.727
  Index      = 2.19575
  Normalizat = 0.473917
  Prefactor  = 1.40769
 **********
 **   18 **HESSE 
 **********

 FCN=   9736.662     FROM HESSE     STATUS=OK            29 CALLS      242 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     148.73        13.584        .33046E-04   -1.3263    
   2  Index         2.1958        .73104E-01    .13385E-03   -.59541    
   3  Normalizat    .47392        .17812        .37046E-03   -1.1364    
   4  Prefactor     1.4077        .19067        .24433E-03   -.80159    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.64489e-09
Minuit parameter uncertainties:
  1  13.5843
  2  0.0731077
  3  0.178332
  4  0.190761
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384743': 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) = 9736.66226148
delta logL = 3.64042052972

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.487e+02  1.358e+01  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.196e+00  7.311e-02  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.408e+00  1.908e-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:  4.739e-01  1.783e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 686.64
Ra Dec: 215.577 32.391
Photon Index (Free Index): 2.20 +/- 0.07
Photon Flux (Free Index): 1.04e-06 +/- 8.64e-08
Energy Flux (Free Index): 4.70e-04 +/- 5.94e-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/384743/cmap_HighResolution_599875201_600134401_4FGL_J1422.3+3223_daily_bin1391.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.13e-06', energy_flux2='4.70e-04', photon_flux_error='8.45e-08', dlogl='3.64e+00', energy_flux='3.70e-04', photon_flux2='1.04e-06', job_status='DONE', time_completed='2021-09-09 12:03:07.637533', photon_index_error2='0.07', photon_index2='2.20', ts='690.26', fit_tolerance='1e-08', GAL='1.48', photon_index_error='0.00', energy_flux_error2='5.94e-05', EG='0.38', time_epoch_completed='1631214187.64', return_code='0', job_id='384743', GAL2='1.41', EG2='0.47', return_code2='0', energy_flux_error='2.77e-05', photon_flux_error2='8.64e-08', ts2='686.64', photon_index='2.40' WHERE bin_id='1391' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:03:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 384743: <4FGL_J1422.3+3223_daily_bin1391> in cluster <slac> Done

Job <4FGL_J1422.3+3223_daily_bin1391> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  9 11:46:47 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 11:46:48 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:46:48 2021
Terminated at Thu Sep  9 12:03:08 2021
Results reported at Thu Sep  9 12:03:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin1391 215.577 32.3911 599875201 600134401 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 :                                   681.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   979 sec.
    Turnaround time :                            981 sec.

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

