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


Performing analysis on: 4FGL_J1423.1+3738_daily_bin807
RA = 215.792, Dec = 37.6452
tmin = 448502401, tmax = 448761601
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='389323', job_status='RUN', time_executed='2021-09-09 12:01:44.454192', time_epoch_executed='1631214104.45' WHERE source_name='4FGL J1423.1+3738' and cadence='daily' and bin_id='807'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/389323

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/389323/ft1_4FGL_J1423.1+3738_daily_bin807.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/389323/ft2_4FGL_J1423.1+3738_daily_bin807.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/389323/ft1_4FGL_J1423.1+3738_daily_bin807.fits outfile=/scratch/kocevski/389323/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin807.fits ra=215.792 dec=37.6452 rad=12.0 tmin=448502401.0 tmax=448761601.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 5.98
user 5.74
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/389323/ft2_4FGL_J1423.1+3738_daily_bin807.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/389323/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin807.fits evtable="EVENTS" outfile="/scratch/kocevski/389323/ft1_filtered_4FGL_J1423.1+3738_daily_bin807.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.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/389323/ft1_filtered_4FGL_J1423.1+3738_daily_bin807.fits" evtable="EVENTS" scfile=/scratch/kocevski/389323/ft2_4FGL_J1423.1+3738_daily_bin807.fits sctable="SC_DATA" outfile=/scratch/kocevski/389323/ltcube_448502401_448761601_4FGL_J1423.1+3738_daily_bin807.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/389323/ft2_4FGL_J1423.1+3738_daily_bin807.fits
.....................!
real 11.72
user 11.36
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/389323/ft1_filtered_4FGL_J1423.1+3738_daily_bin807.fits evtable="EVENTS" scfile=/scratch/kocevski/389323/ft2_4FGL_J1423.1+3738_daily_bin807.fits sctable="SC_DATA" expcube=/scratch/kocevski/389323/ltcube_448502401_448761601_4FGL_J1423.1+3738_daily_bin807.fits outfile=/scratch/kocevski/389323/expmap_448502401_448761601_4FGL_J1423.1+3738_daily_bin807.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/389323/ltcube_448502401_448761601_4FGL_J1423.1+3738_daily_bin807.fits
.....................!
real 191.19
user 185.64
sys 5.13

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/389323/ft1_filtered_4FGL_J1423.1+3738_daily_bin807.fits scfile=/scratch/kocevski/389323/ft2_4FGL_J1423.1+3738_daily_bin807.fits outfile=/scratch/kocevski/389323/cmap_448502401_448761601_4FGL_J1423.1+3738_daily_bin807.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/389323/ft1_filtered_4FGL_J1423.1+3738_daily_bin807.fits scfile=/scratch/kocevski/389323/ft2_4FGL_J1423.1+3738_daily_bin807.fits outfile=/scratch/kocevski/389323/cmap_HighResolution_448502401_448761601_4FGL_J1423.1+3738_daily_bin807.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.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/389323/ft1_filtered_4FGL_J1423.1+3738_daily_bin807.fits', '/scratch/kocevski/389323/ft2_4FGL_J1423.1+3738_daily_bin807.fits', expMap='/scratch/kocevski/389323/expmap_448502401_448761601_4FGL_J1423.1+3738_daily_bin807.fits', expCube='/scratch/kocevski/389323/ltcube_448502401_448761601_4FGL_J1423.1+3738_daily_bin807.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/389323/Model_4FGL_J1423.1+3738_daily_bin807.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/389323/ft1_filtered_4FGL_J1423.1+3738_daily_bin807.fits
Spacecraft file(s): /scratch/kocevski/389323/ft2_4FGL_J1423.1+3738_daily_bin807.fits
Exposure map: /scratch/kocevski/389323/expmap_448502401_448761601_4FGL_J1423.1+3738_daily_bin807.fits
Exposure cube: /scratch/kocevski/389323/ltcube_448502401_448761601_4FGL_J1423.1+3738_daily_bin807.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/389323/Model_4FGL_J1423.1+3738_daily_bin807.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) = 3584.38045818

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    179.55       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .32055E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    14.432       1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.662       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.6137       1.0000         .10000E-03   10000.    
     8 'Prefactor '    40.272       1.0000         .10000E-03   10000.    
     9 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.4552       1.0000         .10000E-03   10000.    
    13 'norm      '    .32486E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10709E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    51.729       1.0000         .10000E-03   10000.    
    17 'Prefactor '    29.319       1.0000         .10000E-03   10000.    
    18 'norm      '    9.9515       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10457E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    50.838       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .92729       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .82287       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=   3584.366     FROM MIGRAD    STATUS=CONVERGED   1099 CALLS     4030 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     179.52        136.46        .15062E-03   -.60385E-06
   2  Prefactor     .10001E-03    108.83        .18005    ** at limit **
   3  norm          14.431        3.7592        .56618E-04    .49500E-03
   4  Prefactor     19.661        8.9730        .90326E-04    .14053E-03
   5  norm          .10000E-03    9.0162        .17546E-02** at limit **
   6  Prefactor     .10000E-03    37.368        .18142E-02** at limit **
   7  Prefactor     1.6210        11.659        .16668E-02    .42392E-03
   8  Prefactor     40.216        41.336        .63164E-04   -.79410E-04
   9  norm          .10000E-03    3.7336        .11239E-02** at limit **
  10  Prefactor     .10000E-03    24.350        .18142E-02** at limit **
  11  Prefactor     .10000E-03    9.8450        .18142E-02** at limit **
  12  Prefactor     7.4529        6.8355        .69172E-03    .28076E-03
  13  norm          .10044E-03    115.25        .51722E-02** at limit **
  14  Prefactor     .10000E-03    98.232        .36285E-03** at limit **
  15  norm          .10000E-03    2.7050        .96055E-03** at limit **
  16  Prefactor     51.680        53.500        .55762E-04   -.69298E-04
  17  Prefactor     29.311        46.275        .73992E-04   -.33034E-04
  18  norm          9.9528        8.8691        .12702E-03   -.11116E-03
  19  Prefactor     .10000E-03    3.2800        .10589E-02** at limit **
  20  Prefactor     .10000E-03    4.9463        .12950E-02** at limit **
  21  norm          .10000E-03    2.1349        .12690E-02** at limit **
  22  Prefactor     .10000E-03    4.8069        .12815E-02** at limit **
  23  Prefactor     50.937        72.547        .28123E-03   -.13265E-03
  24  Prefactor     .10000E-03    11.817        .18142E-02** at limit **
  25  Normalizat    .92717        .29301        .24546E-03    .84087E-04
  26  Prefactor     .82306        .29406        .27837E-03    .53910E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 179.52
  Prefactor  = 0.000100013
  norm       = 14.431
  Prefactor  = 19.6613
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 1.62099
  Prefactor  = 40.2165
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.45286
  norm       = 0.000100435
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 51.6797
  Prefactor  = 29.3114
  norm       = 9.95278
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 50.937
  Prefactor  = 0.0001
  Normalizat = 0.927168
  Prefactor  = 0.823059
 **********
 **   18 **HESSE 
 **********

 FCN=   3584.366     FROM HESSE     STATUS=OK           442 CALLS     4472 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     179.52        136.46        .60246E-05   -1.3020    
   2  Prefactor     .10001E-03    114.31        .17404       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          14.431        3.7593        .11324E-04   -1.4948    
   4  Prefactor     19.661        8.9731        .36130E-05   -1.4821    
   5  norm          .10000E-03    9.0167        .35092E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    37.379        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.6210        11.607        .33336E-03   -1.5453    
   8  Prefactor     40.216        41.270        .12633E-04   -1.4439    
   9  norm          .10000E-03    3.7341        .22478E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    24.363        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.8455        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.4529        6.8342        .27669E-04   -1.5162    
  13  norm          .10044E-03    117.00        .10344E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    98.237        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.7050        .19211E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     51.680        53.498        .11152E-04   -1.4269    
  17  Prefactor     29.311        46.278        .29597E-05   -1.4625    
  18  norm          9.9528        8.8691        .50809E-05   -1.5077    
  19  Prefactor     .10000E-03    3.2800        .21177E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.9471        .25900E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.1395        .25380E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.8069        .25630E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     50.937        72.539        .11249E-04   -1.4279    
  24  Prefactor     .10000E-03    11.817        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .92717        .29343        .98184E-05   -.95512    
  26  Prefactor     .82306        .29444        .11135E-04   -.98884    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.35483e-09
Minuit parameter uncertainties:
  1  136.698
  2  0.00247571
  3  3.75935
  4  8.97376
  5  6.0014e-05
  6  0.000504066
  7  8.67746
  8  41.2997
  9  1.1976e-05
  10  3.59803e-05
  11  3.56025e-06
  12  6.83487
  13  0.0142982
  14  0.000411784
  15  3.94969e-05
  16  53.5477
  17  46.3351
  18  8.87026
  19  6.15822e-06
  20  4.31883e-05
  21  5.13015e-05
  22  1.50102e-05
  23  72.6655
  24  5.09352e-05
  25  0.293942
  26  0.295009
Done.

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

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.004e-04  1.430e-02  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:  8.231e-01  2.950e-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:  9.272e-01  2.939e-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: 6.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.10e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/389323/likelihoodResults_448502401_448761601_4FGL_J1423.1+3738_daily_bin807.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) = 3584.36633213
delta logL = -4.06601848226e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3584.30816989
delta logL = 0.0581215824959

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1386       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6769       1.0000          .0000       5.0000    
     3 'Normalizat'    .91968       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82179       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=   3584.308     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      298 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1351        14.206        .22882E-03    .63316E-03
   2  alpha         2.6774        1.5883        .20462E-01    .10348E-03
   3  Normalizat    .91973        .26320        .24635E-03   -.84270E-03
   4  Prefactor     .82182        .28309        .27852E-03   -.73138E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.1351
  alpha      = 2.67737
  Normalizat = 0.919727
  Prefactor  = 0.82182
 **********
 **   18 **HESSE 
 **********

 FCN=   3584.308     FROM HESSE     STATUS=OK            23 CALLS      321 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1351        11.861        .91529E-05   -1.5354    
   2  alpha         2.6774        1.4371        .81848E-03    .71007E-01
   3  Normalizat    .91973        .26346        .49270E-04   -.95770    
   4  Prefactor     .82182        .28327        .55704E-04   -.98929    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.44893e-09
Minuit parameter uncertainties:
  1  11.8704
  2  1.53159
  3  0.26383
  4  0.283773
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/389323': 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) = 3584.30816964
delta logL = 0.0581218288462

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  3.135e+00  1.187e+01  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  2.677e+00  1.532e+00  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:  8.218e-01  2.838e-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:  9.197e-01  2.638e-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/389323/cmap_HighResolution_448502401_448761601_4FGL_J1423.1+3738_daily_bin807.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.10e-05', job_status='DONE', photon_flux_upper_limit='6.56e-08', time_completed='2021-09-09 12:11:55.127600', job_id='389323', GAL2='0.82', fit_tolerance='1e-08', EG2='0.92', EG='0.93', time_epoch_completed='1631214715.13', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='5.81e-02', ts2='0.12', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='807' AND source_name='4FGL J1423.1+3738' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:11:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 389323: <4FGL_J1423.1+3738_daily_bin807> in cluster <slac> Done

Job <4FGL_J1423.1+3738_daily_bin807> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 12:01:28 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 12:01: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:01:29 2021
Terminated at Thu Sep  9 12:11:56 2021
Results reported at Thu Sep  9 12:11:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1423.1+3738_daily_bin807 215.792 37.6452 448502401 448761601 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 :                                   600.17 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             334.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   626 sec.
    Turnaround time :                            628 sec.

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

