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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1454
RA = 215.577, Dec = 32.3911
tmin = 616204801, tmax = 616464001
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='385808', job_status='RUN', time_executed='2021-09-09 11:51:24.600015', time_epoch_executed='1631213484.6' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1454'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/385808

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/385808/ft1_4FGL_J1422.3+3223_daily_bin1454.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/385808/ft2_4FGL_J1422.3+3223_daily_bin1454.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/385808/ft1_4FGL_J1422.3+3223_daily_bin1454.fits outfile=/scratch/kocevski/385808/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1454.fits ra=215.577 dec=32.3911 rad=12.0 tmin=616204801.0 tmax=616464001.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.97
user 3.73
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/385808/ft1_filtered_4FGL_J1422.3+3223_daily_bin1454.fits evtable="EVENTS" scfile=/scratch/kocevski/385808/ft2_4FGL_J1422.3+3223_daily_bin1454.fits sctable="SC_DATA" expcube=/scratch/kocevski/385808/ltcube_616204801_616464001_4FGL_J1422.3+3223_daily_bin1454.fits outfile=/scratch/kocevski/385808/expmap_616204801_616464001_4FGL_J1422.3+3223_daily_bin1454.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/385808/ltcube_616204801_616464001_4FGL_J1422.3+3223_daily_bin1454.fits
.....................!
real 191.51
user 185.57
sys 5.56

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/385808/ft1_filtered_4FGL_J1422.3+3223_daily_bin1454.fits scfile=/scratch/kocevski/385808/ft2_4FGL_J1422.3+3223_daily_bin1454.fits outfile=/scratch/kocevski/385808/cmap_616204801_616464001_4FGL_J1422.3+3223_daily_bin1454.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/385808/ft1_filtered_4FGL_J1422.3+3223_daily_bin1454.fits scfile=/scratch/kocevski/385808/ft2_4FGL_J1422.3+3223_daily_bin1454.fits outfile=/scratch/kocevski/385808/cmap_HighResolution_616204801_616464001_4FGL_J1422.3+3223_daily_bin1454.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.234       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10297E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.635       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.7416       1.0000         .10000E-03   10000.    
    10 'Prefactor '    45.066       1.0000         .10000E-03   10000.    
    11 'norm      '    6.2745       1.0000         .10000E-03   10000.    
    12 'norm      '    8.7670       1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.252       1.0000         .10000E-03   10000.    
    14 'norm      '    .32198E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.3529       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.178       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.6896       1.0000         .10000E-03   10000.    
    21 'norm      '    2.2644       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .65107       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.3166       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=   8231.537     FROM MIGRAD    STATUS=CONVERGED   1039 CALLS     3051 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.6366        .18142E-02** at limit **
   2  Prefactor     19.237        17.787        .91326E-04    .99588E-06
   3  Prefactor     .10000E-03    29.726        .18142E-02** at limit **
   4  Prefactor     .10000E-03    1.1275        .93609E-03** at limit **
   5  norm          .10000E-03    3.7998        .17228E-02** at limit **
   6  Prefactor     .10000E-03    17.183        .18142E-02** at limit **
   7  norm          .10000E-03    1.7345        .11570E-02** at limit **
   8  Prefactor     11.633        15.051        .11744E-03    .19360E-05
   9  Prefactor     3.7302        15.033        .20874E-03    .13071E-05
  10  Prefactor     45.065        6.3982        .59723E-04    .22843E-05
  11  norm          6.2668        12.484        .16025E-03    .99320E-06
  12  norm          8.7679        2.9323        .86731E-04   -.52432E-05
  13  Prefactor     16.250        14.526        .99351E-04    .11443E-05
  14  norm          .55490E-01    7.0177        .45265E-01    .41001E-03
  15  Prefactor     .10000E-03    11.110        .18142E-02** at limit **
  16  norm          6.3551        4.6611        .15925E-03   -.57112E-06
  17  Prefactor     .10000E-03    26.846        .18142E-02** at limit **
  18  norm          .10000E-03    2.5020        .14006E-02** at limit **
  19  Prefactor     12.165        13.684        .11479E-03   -.13866E-05
  20  Prefactor     5.6884        5.4490        .16840E-03    .13502E-05
  21  norm          2.2647        1.3937        .77743E-04    .14623E-05
  22  Normalizat    .65100        .18742        .29866E-03    .21316E-05
  23  Prefactor     1.3164        .19708        .23889E-03    .17133E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 19.2367
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.6332
  Prefactor  = 3.73017
  Prefactor  = 45.0653
  norm       = 6.26676
  norm       = 8.76791
  Prefactor  = 16.25
  norm       = 0.0554896
  Prefactor  = 0.0001
  norm       = 6.35507
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.165
  Prefactor  = 5.68841
  norm       = 2.26466
  Normalizat = 0.651
  Prefactor  = 1.31641
 **********
 **   18 **HESSE 
 **********

 FCN=   8231.537     FROM HESSE     STATUS=OK           356 CALLS     3407 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.6372        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.237        17.784        .36530E-05   -1.4830    
   3  Prefactor     .10000E-03    29.729        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.1276        .18722E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.8005        .34455E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    17.197        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.7349        .23141E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.633        15.036        .46977E-05   -1.5026    
   9  Prefactor     3.7302        14.998        .83496E-05   -1.5322    
  10  Prefactor     45.065        6.3981        .23889E-05   -1.4364    
  11  norm          6.2668        12.479        .64101E-05   -1.5207    
  12  norm          8.7679        2.9322        .34692E-05   -1.5116    
  13  Prefactor     16.250        14.527        .39740E-05   -1.4902    
  14  norm          .55490E-01    4.9357        .56077E-01   -1.5661    
  15  Prefactor     .10000E-03    11.111        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.3551        4.6608        .63699E-05   -1.5204    
  17  Prefactor     .10000E-03    26.851        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.5021        .28011E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.165        13.680        .45915E-05   -1.5010    
  20  Prefactor     5.6884        5.4482        .67360E-05   -1.5231    
  21  norm          2.2647        1.3936        .31097E-05   -1.5407    
  22  Normalizat    .65100        .18731        .11947E-04   -1.0586    
  23  Prefactor     1.3164        .19722        .95554E-05   -.82821    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66863e-10
Minuit parameter uncertainties:
  1  7.51277e-08
  2  17.7889
  3  7.59728e-07
  4  4.20435e-10
  5  5.41725e-08
  6  9.62716e-07
  7  2.51376e-08
  8  15.0409
  9  14.9657
  10  6.39824
  11  12.4838
  12  2.93222
  13  14.5306
  14  1.04581
  15  2.66501e-08
  16  4.66107
  17  2.35425e-06
  18  1.04933e-07
  19  13.6838
  20  5.44864
  21  1.39358
  22  0.187488
  23  0.197336
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  4.507e+01  6.398e+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.316e+00  1.973e-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:  6.510e-01  1.875e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 171.33
Ra Dec: 215.577 32.391
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 4.06e-07 +/- 5.76e-08
Energy Flux (Fixed Index): 1.33e-04 +/- 1.89e-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) = 8230.54004194
delta logL = 0.996895728576

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8229.9376764
delta logL = 1.5992612641

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    53.858       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1508       1.0000          .0000       10.000    
     3 'Normalizat'    .71515       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2679       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=   8229.938     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      216 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     53.866        11.351        .13664E-02   -.13379E-03
   2  Index         2.1507        .17171        .55697E-01   -.57015E-04
   3  Normalizat    .71540        .15160        .64760E-01    .18500E-03
   4  Prefactor     1.2677        .16292        .54903E-01    .19275E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 53.8661
  Index      = 2.15068
  Normalizat = 0.715396
  Prefactor  = 1.26771
 **********
 **   18 **HESSE 
 **********

 FCN=   8229.938     FROM HESSE     STATUS=OK            27 CALLS      243 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     53.866        8.7329        .54655E-04   -1.4239    
   2  Index         2.1507        .13399        .24307E-03   -.60634    
   3  Normalizat    .71540        .17976        .28651E-03   -1.0329    
   4  Prefactor     1.2677        .19339        .24275E-03   -.84272    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.97791e-11
Minuit parameter uncertainties:
  1  8.73307
  2  0.134013
  3  0.179907
  4  0.193495
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/385808': 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) = 8229.93767472
delta logL = 1.59926294312

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
539    Prefactor:  1.268e+00  1.935e-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:  7.154e-01  1.799e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 172.42
Ra Dec: 215.577 32.391
Photon Index (Free Index): 2.15 +/- 0.13
Photon Flux (Free Index): 3.57e-07 +/- 5.97e-08
Energy Flux (Free Index): 1.76e-04 +/- 4.15e-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/385808/cmap_HighResolution_616204801_616464001_4FGL_J1422.3+3223_daily_bin1454.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.06e-07', energy_flux2='1.76e-04', photon_flux_error='5.76e-08', dlogl='1.60e+00', energy_flux='1.33e-04', photon_flux2='3.57e-07', job_status='DONE', time_completed='2021-09-09 12:04:27.198402', photon_index_error2='0.13', photon_index2='2.15', ts='171.33', fit_tolerance='1e-08', GAL='1.32', photon_index_error='0.00', energy_flux_error2='4.15e-05', EG='0.65', time_epoch_completed='1631214267.2', return_code='0', job_id='385808', GAL2='1.27', EG2='0.72', return_code2='0', energy_flux_error='1.89e-05', photon_flux_error2='5.97e-08', ts2='172.42', photon_index='2.40' WHERE bin_id='1454' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:04:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 385808: <4FGL_J1422.3+3223_daily_bin1454> in cluster <slac> Done

Job <4FGL_J1422.3+3223_daily_bin1454> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  9 11:51:05 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 11:51:07 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:51:07 2021
Terminated at Thu Sep  9 12:04:27 2021
Results reported at Thu Sep  9 12:04:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin1454 215.577 32.3911 616204801 616464001 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 :                                   707.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   801 sec.
    Turnaround time :                            802 sec.

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

