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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin80
RA = 215.577, Dec = 32.3911
tmin = 260064001, tmax = 260323201
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='379638', job_status='RUN', time_executed='2021-09-09 11:31:13.910920', time_epoch_executed='1631212273.91' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='80'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/379638

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/379638/ft1_4FGL_J1422.3+3223_daily_bin80.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/379638/ft2_4FGL_J1422.3+3223_daily_bin80.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/379638/ft1_4FGL_J1422.3+3223_daily_bin80.fits outfile=/scratch/kocevski/379638/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin80.fits ra=215.577 dec=32.3911 rad=12.0 tmin=260064001.0 tmax=260323201.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.79
user 1.30
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/379638/ft2_4FGL_J1422.3+3223_daily_bin80.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/379638/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin80.fits evtable="EVENTS" outfile="/scratch/kocevski/379638/ft1_filtered_4FGL_J1422.3+3223_daily_bin80.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.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/379638/ft1_filtered_4FGL_J1422.3+3223_daily_bin80.fits" evtable="EVENTS" scfile=/scratch/kocevski/379638/ft2_4FGL_J1422.3+3223_daily_bin80.fits sctable="SC_DATA" outfile=/scratch/kocevski/379638/ltcube_260064001_260323201_4FGL_J1422.3+3223_daily_bin80.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/379638/ft2_4FGL_J1422.3+3223_daily_bin80.fits
.....................!
real 16.07
user 15.71
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/379638/ft1_filtered_4FGL_J1422.3+3223_daily_bin80.fits evtable="EVENTS" scfile=/scratch/kocevski/379638/ft2_4FGL_J1422.3+3223_daily_bin80.fits sctable="SC_DATA" expcube=/scratch/kocevski/379638/ltcube_260064001_260323201_4FGL_J1422.3+3223_daily_bin80.fits outfile=/scratch/kocevski/379638/expmap_260064001_260323201_4FGL_J1422.3+3223_daily_bin80.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/379638/ltcube_260064001_260323201_4FGL_J1422.3+3223_daily_bin80.fits
.....................!
real 191.54
user 185.96
sys 4.98

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/379638/ft1_filtered_4FGL_J1422.3+3223_daily_bin80.fits scfile=/scratch/kocevski/379638/ft2_4FGL_J1422.3+3223_daily_bin80.fits outfile=/scratch/kocevski/379638/cmap_260064001_260323201_4FGL_J1422.3+3223_daily_bin80.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/379638/ft1_filtered_4FGL_J1422.3+3223_daily_bin80.fits scfile=/scratch/kocevski/379638/ft2_4FGL_J1422.3+3223_daily_bin80.fits outfile=/scratch/kocevski/379638/cmap_HighResolution_260064001_260323201_4FGL_J1422.3+3223_daily_bin80.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.6616       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.505       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.454       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10303E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.2020       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.0565       1.0000         .10000E-03   10000.    
    13 'Prefactor '    96.310       1.0000         .10000E-03   10000.    
    14 'norm      '    10.345       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10452E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.2340       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.975       1.0000         .10000E-03   10000.    
    18 'norm      '    6.1047       1.0000         .10000E-03   10000.    
    19 'Prefactor '    22.207       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.8518       1.0000         .10000E-03   10000.    
    21 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3685       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .73577       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=   8963.615     FROM MIGRAD    STATUS=CONVERGED    508 CALLS     2189 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.9102        .35850E-07** at limit **
   2  Prefactor     .10000E-03    8.2962        .64251E-06** at limit **
   3  Prefactor     .10000E-03    54.848       -.13087E-05** at limit **
   4  Prefactor     2.6612        2.6065       -.10531E-06   -.20998E-03
   5  norm          .10000E-03    7.9754       -.57017E-06** at limit **
   6  Prefactor     21.502        19.864       -.54516E-06    .10384E-05
   7  norm          .10000E-03    .95315       -.76003E-08** at limit **
   8  Prefactor     14.444        12.525       -.17383E-05   -.13449E-04
   9  Prefactor     .10000E-03    11.994        .23240E-06** at limit **
  10  Prefactor     2.2017        2.6794       -.22276E-06   -.63149E-03
  11  norm          .10000E-03    4.1737        .47171E-07** at limit **
  12  norm          5.0568        2.1849       -.23413E-07   -.31663E-04
  13  Prefactor     96.301        30.987       -.41171E-05    .32115E-05
  14  norm          10.344        6.7919        .24843E-06   -.12270E-03
  15  Prefactor     .10000E-03    43.350        .16089E-05** at limit **
  16  norm          6.2342        3.6117        .43188E-07   -.93590E-04
  17  Prefactor     13.972        23.711       -.23760E-05   -.54753E-05
  18  norm          6.1052        6.3640       -.40538E-07   -.17990E-04
  19  Prefactor     22.205        14.716        .16459E-06   -.22586E-04
  20  Prefactor     2.8509        4.2057        .17131E-05   -.25531E-03
  21  norm          .10000E-03    .53014       -.63978E-07** at limit **
  22  Normalizat    1.3688        .15364        .11201E-05   -.81630E-04
  23  Prefactor     .73548        .15105       -.47086E-06    .51224E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.6612
  norm       = 0.0001
  Prefactor  = 21.5022
  norm       = 0.0001
  Prefactor  = 14.4436
  Prefactor  = 0.0001
  Prefactor  = 2.20169
  norm       = 0.0001
  norm       = 5.05679
  Prefactor  = 96.3011
  norm       = 10.3438
  Prefactor  = 0.0001
  norm       = 6.23419
  Prefactor  = 13.9716
  norm       = 6.10519
  Prefactor  = 22.2049
  Prefactor  = 2.85087
  norm       = 0.0001
  Normalizat = 1.36878
  Prefactor  = 0.735476
 **********
 **   18 **HESSE 
 **********

 FCN=   8963.615     FROM HESSE     STATUS=OK           370 CALLS     2559 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.9171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.3053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    54.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.6612        2.6079        .14593E-03   -1.5382    
   5  norm          .10000E-03    8.0195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     21.502        19.852        .86372E-04   -1.4780    
   7  norm          .10000E-03    .95756        .90243E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.444        12.530        .10535E-03   -1.4948    
   9  Prefactor     .10000E-03    12.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.2017        2.6803        .16469E-03   -1.5411    
  11  norm          .10000E-03    4.1763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.0568        2.1870        .88831E-04   -1.5258    
  13  Prefactor     96.301        31.049        .40957E-04   -1.3742    
  14  norm          10.344        6.7860        .12457E-03   -1.5065    
  15  Prefactor     .10000E-03    43.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.2342        3.6109        .13211E-03   -1.5209    
  17  Prefactor     13.972        23.737        .10714E-03   -1.4960    
  18  norm          6.1052        6.3622        .16249E-03   -1.5214    
  19  Prefactor     22.205        14.716        .84999E-04   -1.4765    
  20  Prefactor     2.8509        4.1241        .22385E-03   -1.5370    
  21  norm          .10000E-03    .55109        .13449E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.3688        .18143        .22997E-03   -.81536    
  23  Prefactor     .73548        .17712        .30537E-03   -1.0215    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.61779e-10
Minuit parameter uncertainties:
  1  2.35216e-06
  2  3.62866e-06
  3  1.64099e-05
  4  2.60803
  5  8.39317e-06
  6  19.8577
  7  1.72648e-06
  8  12.5324
  9  9.76101e-05
  10  2.68047
  11  8.89585e-06
  12  2.18705
  13  31.0537
  14  6.78654
  15  8.07154e-05
  16  3.61099
  17  23.7534
  18  6.36294
  19  14.7185
  20  4.12449
  21  3.51735e-06
  22  0.181518
  23  0.17726
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  2.202e+00  2.680e+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:  7.355e-01  1.773e-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.369e+00  1.815e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.02
Ra Dec: 215.577 32.391
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 1.98e-08 +/- 2.41e-08
Energy Flux (Fixed Index): 6.49e-06 +/- 7.91e-06

TS (Fixed Index): 1.02
Ra Dec: 215.577 32.391
Photon Flux Upper Limit: 7.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.07e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/379638/likelihoodResults_260064001_260323201_4FGL_J1422.3+3223_daily_bin80.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8963.6135367
delta logL = 0.00159952276408

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8963.61314081
delta logL = 0.00199540795802

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2829       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3515       1.0000          .0000       10.000    
     3 'Normalizat'    1.3696       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73484       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=   8963.613     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      236 TOTAL
                     EDM=   .95E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2828        3.1141        .16763E-03    .12140E-03
   2  Index         2.3515        .79443        .12083E-01    .51196E-04
   3  Normalizat    1.3696        .17392        .22991E-03   -.80898E-04
   4  Prefactor     .73482        .17483        .30549E-03   -.10896E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.28284
  Index      = 2.35148
  Normalizat = 1.36959
  Prefactor  = 0.734825
 **********
 **   18 **HESSE 
 **********

 FCN=   8963.613     FROM HESSE     STATUS=OK            25 CALLS      261 TOTAL
                     EDM=   .72E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2828        3.0167        .67050E-05   -1.5406    
   2  Index         2.3515        .76986        .48333E-03   -.55825    
   3  Normalizat    1.3696        .17405        .45982E-04   -.81512    
   4  Prefactor     .73482        .17493        .12220E-04   -1.0218    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.17473e-11
Minuit parameter uncertainties:
  1  3.01695
  2  0.774148
  3  0.174126
  4  0.175057
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/379638': 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) = 8963.61314081
delta logL = 0.00199541194343

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  2.283e+00  3.017e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.351e+00  7.741e-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:  7.348e-01  1.751e-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.370e+00  1.741e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.02
Ra Dec: 215.577 32.391
Photon Index (Free Index): 2.35 +/- 0.77
Photon Flux (Free Index): 1.93e-08 +/- 2.51e-08
Energy Flux (Free Index): 6.76e-06 +/- 9.30e-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/379638/cmap_HighResolution_260064001_260323201_4FGL_J1422.3+3223_daily_bin80.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.07e-03', comment='SUCCESS', photon_flux='1.98e-08', energy_flux2='6.76e-06', photon_flux_error='2.41e-08', dlogl='2.00e-03', energy_flux='6.49e-06', photon_flux2='1.93e-08', job_status='DONE', time_completed='2021-09-09 11:43:28.127254', photon_index_error2='0.77', photon_index2='2.35', ts='1.02', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', photon_flux_upper_limit='7.85e-08', energy_flux_error2='9.30e-06', EG='1.37', time_epoch_completed='1631213008.13', return_code='0', job_id='379638', GAL2='0.73', EG2='1.37', return_code2='0', energy_flux_error='7.91e-06', photon_flux_error2='2.51e-08', ts2='1.02', photon_index='2.40' WHERE bin_id='80' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:43:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 379638: <4FGL_J1422.3+3223_daily_bin80> in cluster <slac> Done

Job <4FGL_J1422.3+3223_daily_bin80> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Thu Sep  9 11:31:01 2021
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 11:31:03 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:03 2021
Terminated at Thu Sep  9 11:43:28 2021
Results reported at Thu Sep  9 11:43:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin80 215.577 32.3911 260064001 260323201 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 :                                   731.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             373.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   745 sec.
    Turnaround time :                            747 sec.

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

