/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 62 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 = 7534
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1423.1+3738_daily_bin1293
RA = 215.792, Dec = 37.6452
tmin = 574473601, tmax = 574732801
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='392442', job_status='RUN', time_executed='2021-09-09 12:12:49.203305', time_epoch_executed='1631214769.2' WHERE source_name='4FGL J1423.1+3738' and cadence='daily' and bin_id='1293'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/392442

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/392442/ft1_4FGL_J1423.1+3738_daily_bin1293.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/392442/ft2_4FGL_J1423.1+3738_daily_bin1293.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/392442/ft1_4FGL_J1423.1+3738_daily_bin1293.fits outfile=/scratch/kocevski/392442/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin1293.fits ra=215.792 dec=37.6452 rad=12.0 tmin=574473601.0 tmax=574732801.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 4.13
user 3.81
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/392442/ft2_4FGL_J1423.1+3738_daily_bin1293.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/392442/ft2_4FGL_J1423.1+3738_daily_bin1293.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/392442/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin1293.fits evtable="EVENTS" outfile="/scratch/kocevski/392442/ft1_filtered_4FGL_J1423.1+3738_daily_bin1293.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.74
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/392442/ft1_filtered_4FGL_J1423.1+3738_daily_bin1293.fits" evtable="EVENTS" scfile=/scratch/kocevski/392442/ft2_4FGL_J1423.1+3738_daily_bin1293.fits sctable="SC_DATA" outfile=/scratch/kocevski/392442/ltcube_574473601_574732801_4FGL_J1423.1+3738_daily_bin1293.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/392442/ft2_4FGL_J1423.1+3738_daily_bin1293.fits
.....................!
real 11.82
user 11.27
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/392442/ft1_filtered_4FGL_J1423.1+3738_daily_bin1293.fits evtable="EVENTS" scfile=/scratch/kocevski/392442/ft2_4FGL_J1423.1+3738_daily_bin1293.fits sctable="SC_DATA" expcube=/scratch/kocevski/392442/ltcube_574473601_574732801_4FGL_J1423.1+3738_daily_bin1293.fits outfile=/scratch/kocevski/392442/expmap_574473601_574732801_4FGL_J1423.1+3738_daily_bin1293.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/392442/ltcube_574473601_574732801_4FGL_J1423.1+3738_daily_bin1293.fits
.....................!
real 193.08
user 185.25
sys 4.92

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 180 point sources and 0 extended sources

Setting source of interest to:
4FGL J1423.1+3738 @ 215.792 37.6452

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/392442/ft1_filtered_4FGL_J1423.1+3738_daily_bin1293.fits scfile=/scratch/kocevski/392442/ft2_4FGL_J1423.1+3738_daily_bin1293.fits outfile=/scratch/kocevski/392442/cmap_574473601_574732801_4FGL_J1423.1+3738_daily_bin1293.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.792 yref=37.6452 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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/392442/ft1_filtered_4FGL_J1423.1+3738_daily_bin1293.fits scfile=/scratch/kocevski/392442/ft2_4FGL_J1423.1+3738_daily_bin1293.fits outfile=/scratch/kocevski/392442/cmap_HighResolution_574473601_574732801_4FGL_J1423.1+3738_daily_bin1293.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.792 yref=37.6452 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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/392442/ft1_filtered_4FGL_J1423.1+3738_daily_bin1293.fits evtable="EVENTS" scfile=/scratch/kocevski/392442/ft2_4FGL_J1423.1+3738_daily_bin1293.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/392442/Model_4FGL_J1423.1+3738_daily_bin1293.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/392442/ft1_filtered_4FGL_J1423.1+3738_daily_bin1293.fits.....................!
real 51.13
user 49.67
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/392442/ft1_filtered_4FGL_J1423.1+3738_daily_bin1293.fits', '/scratch/kocevski/392442/ft2_4FGL_J1423.1+3738_daily_bin1293.fits', expMap='/scratch/kocevski/392442/expmap_574473601_574732801_4FGL_J1423.1+3738_daily_bin1293.fits', expCube='/scratch/kocevski/392442/ltcube_574473601_574732801_4FGL_J1423.1+3738_daily_bin1293.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/392442/Model_4FGL_J1423.1+3738_daily_bin1293.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1423.1+3738'

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  3.465e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  1.928e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
297         beta:  1.446e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  1.404e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/392442/ft1_filtered_4FGL_J1423.1+3738_daily_bin1293.fits
Spacecraft file(s): /scratch/kocevski/392442/ft2_4FGL_J1423.1+3738_daily_bin1293.fits
Exposure map: /scratch/kocevski/392442/expmap_574473601_574732801_4FGL_J1423.1+3738_daily_bin1293.fits
Exposure cube: /scratch/kocevski/392442/ltcube_574473601_574732801_4FGL_J1423.1+3738_daily_bin1293.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/392442/Model_4FGL_J1423.1+3738_daily_bin1293.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) = 6263.43846081

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    72.887       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    33.079       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1475       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.8179       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11105E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.6355       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    37.023       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.179       1.0000         .10000E-03   10000.    
    15 'norm      '    3.7829       1.0000         .10000E-03   10000.    
    16 'Prefactor '    32.198       1.0000         .10000E-03   10000.    
    17 'Prefactor '    38.254       1.0000         .10000E-03   10000.    
    18 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.4600       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .21093E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .11881E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.2702       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    16.469       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1632       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .60881       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6263.430     FROM MIGRAD    STATUS=CONVERGED    620 CALLS     3099 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     72.887        67.292       -.51859E-06    .51332E-05
   2  Prefactor     .10000E-03    19.203       -.53480E-05** at limit **
   3  norm          33.079        3.5661       -.26265E-07    .75891E-04
   4  Prefactor     1.1490        4.7052       -.23849E-06   -.15806E-03
   5  norm          .10000E-03    3.3630        .63554E-08** at limit **
   6  Prefactor     1.8194        6.2537       -.15823E-07   -.65254E-03
   7  Prefactor     .10000E-03    3.5815        .58946E-07** at limit **
   8  Prefactor     .10000E-03    7.5540       -.22644E-05** at limit **
   9  norm          .10000E-03    .79250       -.10059E-07** at limit **
  10  Prefactor     8.6377        8.9408       -.11688E-06   -.10412E-04
  11  Prefactor     .10000E-03    6.4017       -.14399E-05** at limit **
  12  Prefactor     37.023        6.8241        .46185E-07    .75962E-06
  13  norm          .10000E-03    6.7410        .29274E-05** at limit **
  14  Prefactor     20.179        19.462        .27644E-07   -.41089E-06
  15  norm          3.7829        4.8019        .30496E-06   -.81009E-03
  16  Prefactor     32.193        50.145       -.66548E-05   -.26143E-04
  17  Prefactor     38.246        35.394       -.64980E-05   -.32265E-04
  18  norm          .10000E-03    8.8570        .84219E-06** at limit **
  19  Prefactor     5.4522        9.8878       -.21575E-06   -.96147E-04
  20  Prefactor     .10004E-03    5.8236        .14638E-05** at limit **
  21  norm          .10000E-03    1.2071       -.12928E-06** at limit **
  22  Prefactor     3.2711        6.8251        .40265E-06   -.56385E-03
  23  Prefactor     .10000E-03    71.020       -.18411E-07** at limit **
  24  Prefactor     16.459        23.322       -.43460E-05   -.28511E-04
  25  Normalizat    1.1633        .18790        .11467E-05   -.18603E-03
  26  Prefactor     .60842        .19763        .25570E-06   -.36931E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 72.8867
  Prefactor  = 0.0001
  norm       = 33.0789
  Prefactor  = 1.14902
  norm       = 0.0001
  Prefactor  = 1.81943
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.63765
  Prefactor  = 0.0001
  Prefactor  = 37.023
  norm       = 0.0001
  Prefactor  = 20.179
  norm       = 3.78294
  Prefactor  = 32.1926
  Prefactor  = 38.2458
  norm       = 0.0001
  Prefactor  = 5.45216
  Prefactor  = 0.000100036
  norm       = 0.0001
  Prefactor  = 3.27111
  Prefactor  = 0.0001
  Prefactor  = 16.4593
  Normalizat = 1.16332
  Prefactor  = 0.608424
 **********
 **   18 **HESSE 
 **********

 FCN=   6263.430     FROM HESSE     STATUS=OK           462 CALLS     3561 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     72.887        67.431        .47026E-04   -1.3998    
   2  Prefactor     .10000E-03    19.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          33.079        3.5716        .47219E-04   -1.4557    
   4  Prefactor     1.1490        4.8610        .31906E-03   -1.5494    
   5  norm          .10000E-03    3.3654        .14174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.8194        15.539        .15488E-02   -1.5438    
   7  Prefactor     .10000E-03    14.736        .29019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.5785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .79321        .68802E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.6377        8.9910        .13641E-03   -1.5120    
  11  Prefactor     .10000E-03    6.4121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     37.023        6.8440        .65867E-04   -1.4490    
  13  norm          .10000E-03    6.7605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     20.179        19.501        .89163E-04   -1.4809    
  15  norm          3.7829        5.0612        .98381E-03   -1.5319    
  16  Prefactor     32.193        50.154        .70615E-04   -1.4573    
  17  Prefactor     38.246        35.476        .64803E-04   -1.4470    
  18  norm          .10000E-03    9.0642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.4522        9.8165        .17196E-03   -1.5241    
  20  Prefactor     .10004E-03    20.746        .34908E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.6725        .16141E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.2711        7.3251        .11197E-02   -1.5346    
  23  Prefactor     .10000E-03    71.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     16.459        23.333        .98692E-04   -1.4896    
  25  Normalizat    1.1633        .22631        .23281E-03   -.87744    
  26  Prefactor     .60842        .23691        .34847E-03   -1.0723    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.43122e-09
Minuit parameter uncertainties:
  1  67.5022
  2  3.57007e-05
  3  3.57167
  4  4.72715
  5  1.24268e-06
  6  10.6378
  7  0.000288495
  8  1.24893e-05
  9  1.93494e-07
  10  8.99243
  11  1.66727e-06
  12  6.84418
  13  8.14504e-06
  14  19.5067
  15  5.06181
  16  50.2197
  17  35.496
  18  8.59475e-06
  19  9.81943
  20  0.00173638
  21  2.84869e-05
  22  7.32715
  23  2.41212e-05
  24  23.3462
  25  0.226498
  26  0.237304
Done.

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

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  8.145e-06  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  1.928e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
297         beta:  1.446e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  1.404e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  6.084e-01  2.373e-01  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
575   Normalization:  1.163e+00  2.265e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 215.792 37.645
Photon Flux Upper Limit: 3.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.44e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/392442/likelihoodResults_574473601_574732801_4FGL_J1423.1+3738_daily_bin1293.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): 102
logL (Free Index) = 6263.43117492
delta logL = -0.000698708269738

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6263.43047627
delta logL = -5.5501004681e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10090E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9096       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1632       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60852       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+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=   6263.430     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      247 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    173.94        .18142E-01** at limit **
   2  alpha         1.5823        3.1637        .17082       -.62561E-08
   3  Normalizat    1.1633        .21109E-01    .23281E-03   -.20949E-04
   4  Prefactor     .60842        .23610E-01    .34847E-03   -.11680E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.58228
  Normalizat = 1.16332
  Prefactor  = 0.608422
 **********
 **   18 **HESSE 
 **********

 FCN=   6263.430     FROM HESSE     STATUS=OK            23 CALLS      270 TOTAL
                     EDM=   .97E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.7546        .21310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5823        3.9154        .68327E-02   -.37588    
   3  Normalizat    1.1633        .20953        .93126E-05   -.87744    
   4  Prefactor     .60842        .23414        .13939E-04   -1.0723    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.74274e-12
Minuit parameter uncertainties:
  1  4.46277e-05
  2  260.103
  3  0.209677
  4  0.234512
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/392442': 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) = 6263.43047532
delta logL = 8.96814526641e-07

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  4.463e-05  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  1.582e+00  2.601e+02  0.000e+00  5.000e+00 ( 1.000e+00)
297         beta:  1.446e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  1.404e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  6.084e-01  2.345e-01  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
575   Normalization:  1.163e+00  2.097e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 215.792 37.645

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/392442/cmap_HighResolution_574473601_574732801_4FGL_J1423.1+3738_daily_bin1293.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.44e-05', job_status='DONE', photon_flux_upper_limit='3.14e-08', time_completed='2021-09-09 12:25:26.987340', job_id='392442', GAL2='0.61', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1631215526.99', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.61', dlogl='8.97e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='1293' AND source_name='4FGL J1423.1+3738' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:25:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 392442: <4FGL_J1423.1+3738_daily_bin1293> in cluster <slac> Done

Job <4FGL_J1423.1+3738_daily_bin1293> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  9 12:11:28 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 12:11:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 12:11:29 2021
Terminated at Thu Sep  9 12:25:29 2021
Results reported at Thu Sep  9 12:25:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1423.1+3738_daily_bin1293 215.792 37.6452 574473601 574732801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1423.1+3738 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   748.47 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             312.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   839 sec.
    Turnaround time :                            841 sec.

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

