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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1354
RA = 215.577, Dec = 32.3911
tmin = 590284801, tmax = 590544001
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='384649', job_status='RUN', time_executed='2021-09-09 11:50:40.452841', time_epoch_executed='1631213440.45' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1354'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384649

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384649/ft1_4FGL_J1422.3+3223_daily_bin1354.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384649/ft2_4FGL_J1422.3+3223_daily_bin1354.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384649/ft1_4FGL_J1422.3+3223_daily_bin1354.fits outfile=/scratch/kocevski/384649/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1354.fits ra=215.577 dec=32.3911 rad=12.0 tmin=590284801.0 tmax=590544001.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 3.69
user 3.44
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/384649/ft1_filtered_4FGL_J1422.3+3223_daily_bin1354.fits" evtable="EVENTS" scfile=/scratch/kocevski/384649/ft2_4FGL_J1422.3+3223_daily_bin1354.fits sctable="SC_DATA" outfile=/scratch/kocevski/384649/ltcube_590284801_590544001_4FGL_J1422.3+3223_daily_bin1354.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/384649/ft2_4FGL_J1422.3+3223_daily_bin1354.fits
.....................!
real 11.74
user 11.38
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384649/ft1_filtered_4FGL_J1422.3+3223_daily_bin1354.fits evtable="EVENTS" scfile=/scratch/kocevski/384649/ft2_4FGL_J1422.3+3223_daily_bin1354.fits sctable="SC_DATA" expcube=/scratch/kocevski/384649/ltcube_590284801_590544001_4FGL_J1422.3+3223_daily_bin1354.fits outfile=/scratch/kocevski/384649/expmap_590284801_590544001_4FGL_J1422.3+3223_daily_bin1354.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/384649/ltcube_590284801_590544001_4FGL_J1422.3+3223_daily_bin1354.fits
.....................!
real 190.10
user 184.43
sys 5.31

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/384649/ft1_filtered_4FGL_J1422.3+3223_daily_bin1354.fits scfile=/scratch/kocevski/384649/ft2_4FGL_J1422.3+3223_daily_bin1354.fits outfile=/scratch/kocevski/384649/cmap_590284801_590544001_4FGL_J1422.3+3223_daily_bin1354.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/384649/ft1_filtered_4FGL_J1422.3+3223_daily_bin1354.fits scfile=/scratch/kocevski/384649/ft2_4FGL_J1422.3+3223_daily_bin1354.fits outfile=/scratch/kocevski/384649/cmap_HighResolution_590284801_590544001_4FGL_J1422.3+3223_daily_bin1354.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/384649/ft1_filtered_4FGL_J1422.3+3223_daily_bin1354.fits evtable="EVENTS" scfile=/scratch/kocevski/384649/ft2_4FGL_J1422.3+3223_daily_bin1354.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/384649/Model_4FGL_J1422.3+3223_daily_bin1354.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/384649/ft1_filtered_4FGL_J1422.3+3223_daily_bin1354.fits.....................!
real 49.12
user 47.74
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.206       1.0000         .10000E-03   10000.    
     3 'Prefactor '    86.586       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.0725       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .70875       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    46.283       1.0000         .10000E-03   10000.    
    11 'norm      '    11.363       1.0000         .10000E-03   10000.    
    12 'norm      '    8.9804       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13872       1.0000         .10000E-03   10000.    
    14 'norm      '    .10075E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.9907       1.0000         .10000E-03   10000.    
    16 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12792E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    26.060       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.1193       1.0000         .10000E-03   10000.    
    21 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0192       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .93544       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=   6207.338     FROM MIGRAD    STATUS=CONVERGED    948 CALLS     2997 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.8051        .18142E-02** at limit **
   2  Prefactor     23.231        24.867        .83151E-04    .14493E-04
   3  Prefactor     86.610        76.417        .43175E-04    .12376E-04
   4  Prefactor     .10000E-03    2.6756        .12448E-02** at limit **
   5  norm          6.0719        12.606        .16293E-03    .29585E-04
   6  Prefactor     .10000E-03    6.0735        .18142E-02** at limit **
   7  norm          .70979        4.1595        .30060E-03    .87136E-04
   8  Prefactor     .10000E-03    13.801        .18142E-02** at limit **
   9  Prefactor     .10000E-03    11.751        .18142E-02** at limit **
  10  Prefactor     46.278        8.4030        .58936E-04    .11940E-03
  11  norm          11.359        16.923        .11885E-03    .14980E-03
  12  norm          8.9806        3.3866        .85681E-04    .10920E-03
  13  Prefactor     .28776E-01    26.373        .10112        .74198E-04
  14  norm          .10000E-03    9.4417        .36285E-03** at limit **
  15  Prefactor     9.9428        53.424        .12677E-03   -.40893E-04
  16  norm          .10000E-03    3.9473        .15145E-02** at limit **
  17  Prefactor     .10000E-03    47.676        .18142E-02** at limit **
  18  norm          .10000E-03    3.7830        .14955E-02** at limit **
  19  Prefactor     26.046        18.537        .78473E-04    .61716E-04
  20  Prefactor     8.1157        8.5473        .14070E-03   -.22139E-03
  21  norm          .10000E-03    1.3312        .13650E-02** at limit **
  22  Normalizat    1.0193        .22698        .25851E-03    .51763E-03
  23  Prefactor     .93539        .21842        .27248E-03    .98466E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 23.2311
  Prefactor  = 86.6101
  Prefactor  = 0.0001
  norm       = 6.07189
  Prefactor  = 0.0001
  norm       = 0.709791
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 46.2784
  norm       = 11.3594
  norm       = 8.98062
  Prefactor  = 0.0287763
  norm       = 0.0001
  Prefactor  = 9.94284
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 26.0457
  Prefactor  = 8.1157
  norm       = 0.0001
  Normalizat = 1.01932
  Prefactor  = 0.935394
 **********
 **   18 **HESSE 
 **********

 FCN=   6207.338     FROM HESSE     STATUS=OK           356 CALLS     3353 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.8056        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     23.231        24.866        .33261E-05   -1.4744    
   3  Prefactor     86.610        76.419        .86350E-05   -1.3844    
   4  Prefactor     .10000E-03    2.6767        .24895E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.0719        12.605        .65172E-05   -1.5215    
   6  Prefactor     .10000E-03    6.0737        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .70979        4.1559        .12024E-04   -1.5539    
   8  Prefactor     .10000E-03    13.805        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.752        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     46.278        8.4026        .11787E-04   -1.4346    
  11  norm          11.359        16.915        .47539E-05   -1.5034    
  12  norm          8.9806        3.3866        .34272E-05   -1.5109    
  13  Prefactor     .28776E-01    24.479        .10610       -1.5674    
  14  norm          .10000E-03    9.4423        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.9428        53.348        .50709E-05   -1.5077    
  16  norm          .10000E-03    3.9491        .30289E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    47.685        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.7831        .29910E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     26.046        18.536        .31389E-05   -1.4687    
  20  Prefactor     8.1157        8.5423        .56282E-05   -1.5138    
  21  norm          .10000E-03    1.3326        .27300E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0193        .22717        .51703E-04   -.92386    
  23  Prefactor     .93539        .21864        .10899E-04   -.94915    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55253e-09
Minuit parameter uncertainties:
  1  1.15676e-05
  2  24.8774
  3  76.5057
  4  2.60131e-05
  5  12.6107
  6  1.73814e-05
  7  3.43514
  8  0.000350073
  9  0.000182285
  10  8.40278
  11  16.9224
  12  3.38665
  13  1.67636
  14  6.18605e-05
  15  46.126
  16  6.30294e-05
  17  0.000490448
  18  1.48976e-05
  19  18.5404
  20  8.5436
  21  1.95962e-06
  22  0.227383
  23  0.218844
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  4.628e+01  8.403e+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.354e-01  2.188e-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.019e+00  2.274e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 97.42
Ra Dec: 215.577 32.391
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 4.17e-07 +/- 7.57e-08
Energy Flux (Fixed Index): 1.36e-04 +/- 2.48e-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) = 6207.3339925
delta logL = 0.00423227126248

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6207.33109216
delta logL = 0.00713261320379

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    45.612       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4231       1.0000          .0000       10.000    
     3 'Normalizat'    1.0128       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93984       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=   6207.331     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      195 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.612        22.188        .14842E-02   -.70796E-03
   2  Index         2.4231        .40707        .57290E-01    .92261E-04
   3  Normalizat    1.0128        .19721        .44754E-01   -.51156E-04
   4  Prefactor     .93984        .19193        .45511E-01    .51235E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.6117
  Index      = 2.42311
  Normalizat = 1.01279
  Prefactor  = 0.939838
 **********
 **   18 **HESSE 
 **********

 FCN=   6207.331     FROM HESSE     STATUS=OK            29 CALLS      224 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.612        9.9688        .59366E-04   -1.4356    
   2  Index         2.4231        .18626        .24912E-03   -.54145    
   3  Normalizat    1.0128        .22291        .25920E-03   -.92603    
   4  Prefactor     .93984        .21890        .27191E-03   -.94763    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5466e-10
Minuit parameter uncertainties:
  1  9.96912
  2  0.186319
  3  0.22312
  4  0.219106
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384649': 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) = 6207.33109216
delta logL = 0.00713261353212

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
539    Prefactor:  9.398e-01  2.191e-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.013e+00  2.231e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 96.69
Ra Dec: 215.577 32.391
Photon Index (Free Index): 2.42 +/- 0.19
Photon Flux (Free Index): 4.23e-07 +/- 9.10e-08
Energy Flux (Free Index): 1.35e-04 +/- 2.88e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/384649/cmap_HighResolution_590284801_590544001_4FGL_J1422.3+3223_daily_bin1354.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.17e-07', energy_flux2='1.35e-04', photon_flux_error='7.57e-08', dlogl='7.13e-03', energy_flux='1.36e-04', photon_flux2='4.23e-07', job_status='DONE', time_completed='2021-09-09 12:02:23.806834', photon_index_error2='0.19', photon_index2='2.42', ts='97.42', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='2.88e-05', EG='1.02', time_epoch_completed='1631214143.81', return_code='0', job_id='384649', GAL2='0.94', EG2='1.01', return_code2='0', energy_flux_error='2.48e-05', photon_flux_error2='9.10e-08', ts2='96.69', photon_index='2.40' WHERE bin_id='1354' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:02:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 384649: <4FGL_J1422.3+3223_daily_bin1354> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin1354 215.577 32.3911 590284801 590544001 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 :                                   596.41 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             214.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   941 sec.
    Turnaround time :                            943 sec.

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

