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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1373
RA = 215.577, Dec = 32.3911
tmin = 595209601, tmax = 595468801
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='384693', job_status='RUN', time_executed='2021-09-09 11:49:07.233949', time_epoch_executed='1631213347.23' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1373'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384693

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384693/ft1_4FGL_J1422.3+3223_daily_bin1373.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384693/ft2_4FGL_J1422.3+3223_daily_bin1373.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384693/ft1_4FGL_J1422.3+3223_daily_bin1373.fits outfile=/scratch/kocevski/384693/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1373.fits ra=215.577 dec=32.3911 rad=12.0 tmin=595209601.0 tmax=595468801.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.94
user 2.66
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/384693/ft2_4FGL_J1422.3+3223_daily_bin1373.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/384693/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1373.fits evtable="EVENTS" outfile="/scratch/kocevski/384693/ft1_filtered_4FGL_J1422.3+3223_daily_bin1373.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.51
user 0.33
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384693/ft1_filtered_4FGL_J1422.3+3223_daily_bin1373.fits evtable="EVENTS" scfile=/scratch/kocevski/384693/ft2_4FGL_J1422.3+3223_daily_bin1373.fits sctable="SC_DATA" expcube=/scratch/kocevski/384693/ltcube_595209601_595468801_4FGL_J1422.3+3223_daily_bin1373.fits outfile=/scratch/kocevski/384693/expmap_595209601_595468801_4FGL_J1422.3+3223_daily_bin1373.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/384693/ltcube_595209601_595468801_4FGL_J1422.3+3223_daily_bin1373.fits
.....................!
real 191.92
user 187.14
sys 4.44

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/384693/ft1_filtered_4FGL_J1422.3+3223_daily_bin1373.fits scfile=/scratch/kocevski/384693/ft2_4FGL_J1422.3+3223_daily_bin1373.fits outfile=/scratch/kocevski/384693/cmap_595209601_595468801_4FGL_J1422.3+3223_daily_bin1373.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/384693/ft1_filtered_4FGL_J1422.3+3223_daily_bin1373.fits scfile=/scratch/kocevski/384693/ft2_4FGL_J1422.3+3223_daily_bin1373.fits outfile=/scratch/kocevski/384693/cmap_HighResolution_595209601_595468801_4FGL_J1422.3+3223_daily_bin1373.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/384693/ft1_filtered_4FGL_J1422.3+3223_daily_bin1373.fits evtable="EVENTS" scfile=/scratch/kocevski/384693/ft2_4FGL_J1422.3+3223_daily_bin1373.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/384693/Model_4FGL_J1422.3+3223_daily_bin1373.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/384693/ft1_filtered_4FGL_J1422.3+3223_daily_bin1373.fits.....................!
real 71.38
user 70.05
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.674       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10765E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    164.98       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.9819       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.3888       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.575       1.0000         .10000E-03   10000.    
    10 'Prefactor '    33.227       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.9464       1.0000         .10000E-03   10000.    
    13 'Prefactor '    59.575       1.0000         .10000E-03   10000.    
    14 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.2849       1.0000         .10000E-03   10000.    
    16 'norm      '    1.4411       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    11.649       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.7156       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.4522       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1866       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .88199       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=   10049.74     FROM MIGRAD    STATUS=CONVERGED    502 CALLS     2545 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.675        15.260       -.51549E-06   -.42064E-04
   2  Prefactor     .10000E-03    20.634        .69404E-07** at limit **
   3  Prefactor     165.02        69.709       -.19761E-05   -.22925E-03
   4  Prefactor     .10000E-03    1.8453        .20874E-06** at limit **
   5  norm          1.9825        4.6481       -.36419E-06   -.14241E-03
   6  Prefactor     .10000E-03    4.2359        .24308E-07** at limit **
   7  norm          1.3887        1.5232       -.17495E-08   -.32352E-04
   8  Prefactor     .10000E-03    3.8296        .62265E-08** at limit **
   9  Prefactor     11.577        10.700       -.33856E-06   -.43537E-04
  10  Prefactor     33.230        5.5407       -.11509E-06   -.11511E-03
  11  norm          .10000E-03    2.5387        .35609E-07** at limit **
  12  norm          7.9459        2.6550        .22501E-07   -.76925E-04
  13  Prefactor     59.583        24.233       -.49363E-06   -.13904E-03
  14  norm          .10000E-03    4.9243        .62866E-06** at limit **
  15  Prefactor     5.2828        44.140       -.12071E-07   -.12797E-04
  16  norm          1.4394        3.2163        .12383E-05   -.11457E-03
  17  Prefactor     .10000E-03    12.251        .37683E-06** at limit **
  18  norm          11.649        7.2764       -.28055E-07   -.86431E-04
  19  Prefactor     2.7170        8.6777       -.10855E-07   -.58580E-05
  20  Prefactor     .10000E-03    2.5700        .16500E-06** at limit **
  21  norm          1.4527        1.1402       -.14519E-08   -.10123E-03
  22  Normalizat    1.1860        .18518        .37048E-05   -.28318E-03
  23  Prefactor     .88258        .18315       -.44386E-05   -.10778E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.675
  Prefactor  = 0.0001
  Prefactor  = 165.019
  Prefactor  = 0.0001
  norm       = 1.9825
  Prefactor  = 0.0001
  norm       = 1.3887
  Prefactor  = 0.0001
  Prefactor  = 11.5774
  Prefactor  = 33.2304
  norm       = 0.0001
  norm       = 7.94595
  Prefactor  = 59.5827
  norm       = 0.0001
  Prefactor  = 5.28281
  norm       = 1.43941
  Prefactor  = 0.0001
  norm       = 11.6487
  Prefactor  = 2.71703
  Prefactor  = 0.0001
  norm       = 1.45273
  Normalizat = 1.18598
  Prefactor  = 0.882582
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.675        15.252        .11725E-03   -1.5024    
   2  Prefactor     .10000E-03    20.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     165.02        70.971        .15701E-03   -1.3132    
   4  Prefactor     .10000E-03    1.8869        .13290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.9825        4.6236        .29440E-03   -1.5426    
   6  Prefactor     .10000E-03    4.2400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.3887        1.5236        .12602E-03   -1.5472    
   8  Prefactor     .10000E-03    3.8356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.577        10.685        .11775E-03   -1.5027    
  10  Prefactor     33.230        5.5380        .69516E-04   -1.4554    
  11  norm          .10000E-03    2.5397        .15599E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.9459        2.6563        .91452E-04   -1.5144    
  13  Prefactor     59.583        24.258        .51980E-04   -1.4163    
  14  norm          .10000E-03    5.1558        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.2828        44.093        .17484E-03   -1.5248    
  16  norm          1.4394        3.2239        .12944E-02   -1.5468    
  17  Prefactor     .10000E-03    12.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          11.649        7.2642        .11737E-03   -1.5025    
  19  Prefactor     2.7170        8.6371        .24715E-03   -1.5378    
  20  Prefactor     .10000E-03    2.6004        .15690E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.4527        1.1262        .90898E-04   -1.5467    
  22  Normalizat    1.1860        .18488        .24842E-03   -.87037    
  23  Prefactor     .88258        .18409        .29463E-03   -.96752    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63531e-10
Minuit parameter uncertainties:
  1  15.2568
  2  1.06737e-05
  3  71.0073
  4  6.03291e-06
  5  4.62443
  6  1.95501e-06
  7  1.5236
  8  1.64889e-07
  9  10.6865
  10  5.53806
  11  2.3097e-06
  12  2.6563
  13  24.2619
  14  4.62342e-05
  15  30.5547
  16  3.22434
  17  4.54234e-05
  18  7.26478
  19  8.64104
  20  9.17469e-06
  21  1.12623
  22  0.184984
  23  0.184223
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  3.323e+01  5.538e+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:  8.826e-01  1.842e-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.186e+00  1.850e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 88.98
Ra Dec: 215.577 32.391
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 2.99e-07 +/- 4.99e-08
Energy Flux (Fixed Index): 9.80e-05 +/- 1.63e-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) = 10049.7260782
delta logL = 0.0152840995997

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10049.6998533
delta logL = 0.0415090629376

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.977       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4508       1.0000          .0000       10.000    
     3 'Normalizat'    1.1756       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89047       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=   10049.70     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      242 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.978        6.9378        .70858E-04   -.96587E-04
   2  Index         2.4508        .17482        .28046E-03   -.25862E-04
   3  Normalizat    1.1756        .17678        .24930E-03   -.63661E-04
   4  Prefactor     .89049        .18036        .29350E-03   -.12217E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.9785
  Index      = 2.45078
  Normalizat = 1.17561
  Prefactor  = 0.890486
 **********
 **   18 **HESSE 
 **********

 FCN=   10049.70     FROM HESSE     STATUS=OK            23 CALLS      265 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.978        6.9220        .28343E-05   -1.4576    
   2  Index         2.4508        .17443        .11218E-04   -.53500    
   3  Normalizat    1.1756        .17694        .99720E-05   -.87360    
   4  Prefactor     .89049        .18052        .11740E-04   -.96474    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.57391e-11
Minuit parameter uncertainties:
  1  6.9222
  2  0.174474
  3  0.177026
  4  0.180641
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384693': 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) = 10049.6998532
delta logL = 0.0415091244868

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
539    Prefactor:  8.905e-01  1.806e-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.176e+00  1.770e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 88.23
Ra Dec: 215.577 32.391
Photon Index (Free Index): 2.45 +/- 0.17
Photon Flux (Free Index): 3.08e-07 +/- 5.79e-08
Energy Flux (Free Index): 9.46e-05 +/- 1.93e-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/384693/cmap_HighResolution_595209601_595468801_4FGL_J1422.3+3223_daily_bin1373.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.99e-07', energy_flux2='9.46e-05', photon_flux_error='4.99e-08', dlogl='4.15e-02', energy_flux='9.80e-05', photon_flux2='3.08e-07', job_status='DONE', time_completed='2021-09-09 12:01:51.730515', photon_index_error2='0.17', photon_index2='2.45', ts='88.98', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='1.93e-05', EG='1.19', time_epoch_completed='1631214111.73', return_code='0', job_id='384693', GAL2='0.89', EG2='1.18', return_code2='0', energy_flux_error='1.63e-05', photon_flux_error2='5.79e-08', ts2='88.23', photon_index='2.40' WHERE bin_id='1373' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:01:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 384693: <4FGL_J1422.3+3223_daily_bin1373> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin1373 215.577 32.3911 595209601 595468801 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 :                                   728.30 sec.
    Max Memory :                                 1209 MB
    Average Memory :                             323.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            908 sec.

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

