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


Performing analysis on: 4FGL_J1423.1+3738_daily_bin585
RA = 215.792, Dec = 37.6452
tmin = 390960001, tmax = 391219201
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='389005', job_status='RUN', time_executed='2021-09-09 12:01:16.996806', time_epoch_executed='1631214077.0' WHERE source_name='4FGL J1423.1+3738' and cadence='daily' and bin_id='585'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/389005

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/389005/ft1_4FGL_J1423.1+3738_daily_bin585.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/389005/ft2_4FGL_J1423.1+3738_daily_bin585.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/389005/ft1_4FGL_J1423.1+3738_daily_bin585.fits outfile=/scratch/kocevski/389005/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin585.fits ra=215.792 dec=37.6452 rad=12.0 tmin=390960001.0 tmax=391219201.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.48
user 4.22
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/389005/ft1_filtered_4FGL_J1423.1+3738_daily_bin585.fits" evtable="EVENTS" scfile=/scratch/kocevski/389005/ft2_4FGL_J1423.1+3738_daily_bin585.fits sctable="SC_DATA" outfile=/scratch/kocevski/389005/ltcube_390960001_391219201_4FGL_J1423.1+3738_daily_bin585.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/389005/ft2_4FGL_J1423.1+3738_daily_bin585.fits
.....................!
real 12.47
user 12.08
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/389005/ft1_filtered_4FGL_J1423.1+3738_daily_bin585.fits evtable="EVENTS" scfile=/scratch/kocevski/389005/ft2_4FGL_J1423.1+3738_daily_bin585.fits sctable="SC_DATA" expcube=/scratch/kocevski/389005/ltcube_390960001_391219201_4FGL_J1423.1+3738_daily_bin585.fits outfile=/scratch/kocevski/389005/expmap_390960001_391219201_4FGL_J1423.1+3738_daily_bin585.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/389005/ltcube_390960001_391219201_4FGL_J1423.1+3738_daily_bin585.fits
.....................!
real 192.42
user 186.92
sys 5.06

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/389005/ft1_filtered_4FGL_J1423.1+3738_daily_bin585.fits scfile=/scratch/kocevski/389005/ft2_4FGL_J1423.1+3738_daily_bin585.fits outfile=/scratch/kocevski/389005/cmap_390960001_391219201_4FGL_J1423.1+3738_daily_bin585.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/389005/ft1_filtered_4FGL_J1423.1+3738_daily_bin585.fits scfile=/scratch/kocevski/389005/ft2_4FGL_J1423.1+3738_daily_bin585.fits outfile=/scratch/kocevski/389005/cmap_HighResolution_390960001_391219201_4FGL_J1423.1+3738_daily_bin585.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.56
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10298E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    53.586       1.0000         .10000E-03   10000.    
     3 'norm      '    12.371       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.4073       1.0000         .10000E-03   10000.    
     5 'norm      '    2.4435       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10568E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11189E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .84859       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.8234       1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.234       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .72281E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    6.8357       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .80699E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    .68306       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.376       1.0000         .10000E-03   10000.    
    18 'norm      '    .11027E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.6450       1.0000         .10000E-03   10000.    
    21 'norm      '    4.0076       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11858E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.5249       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0647       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .84684       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6109.925     FROM MIGRAD    STATUS=CONVERGED    155 CALLS     2695 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.986        .48288E-05** at limit **
   2  Prefactor     53.530        10.339        .67415E-05   -.29949E-02
   3  norm          12.370        2.3552       -.31223E-06    .23513E-03
   4  Prefactor     5.4044        3.5381       -.81297E-06    .88106E-05
   5  norm          2.4467        7.8589       -.22528E-05   -.12042E-02
   6  Prefactor     .10003E-03    6.3799        .34015E-05** at limit **
   7  Prefactor     .10001E-03    12.205       -.48602E-05** at limit **
   8  Prefactor     .10000E-03    13.247       -.39939E-05** at limit **
   9  norm          .84799        2.3937       -.26961E-05   -.19076E-03
  10  Prefactor     6.8134        6.8213       -.26825E-05   -.32469E-02
  11  Prefactor     17.271        6.3943        .25393E-05    .15661E-02
  12  Prefactor     .10001E-03    78.851       -.51089E-04** at limit **
  13  norm          6.8411        8.5766       -.34682E-05   -.33468E-02
  14  Prefactor     .10458E-03    2129.1        .16903E-03** at limit **
  15  norm          .68036        2.6180        .13065E-05    .70701E-04
  16  Prefactor     .10001E-03    9.7214        .43591E-05** at limit **
  17  Prefactor     10.459        35.983       -.59229E-04    .36456E-03
  18  norm          .10033E-03    158.92        .22945E-04** at limit **
  19  Prefactor     .10000E-03    5.5690       -.14251E-05** at limit **
  20  Prefactor     2.6577        6.2726        .82907E-06   -.25706E-06
  21  norm          4.0055        1.8219       -.73726E-06   -.38710E-03
  22  Prefactor     .10000E-03    7.0382       -.88221E-06** at limit **
  23  Prefactor     .10000E-03    20.132       -.76941E-05** at limit **
  24  Prefactor     4.5274        1.9002       -.37104E-05    .24394E-03
  25  Normalizat    1.0650        .20081        .21015E-04   -.58921E-04
  26  Prefactor     .84671        .22183       -.93350E-05   -.61025E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 53.53
  norm       = 12.3703
  Prefactor  = 5.40445
  norm       = 2.44668
  Prefactor  = 0.000100027
  Prefactor  = 0.00010001
  Prefactor  = 0.000100002
  norm       = 0.847992
  Prefactor  = 6.81335
  Prefactor  = 17.2712
  Prefactor  = 0.000100007
  norm       = 6.84107
  Prefactor  = 0.000104578
  norm       = 0.680362
  Prefactor  = 0.000100013
  Prefactor  = 10.4592
  norm       = 0.000100335
  Prefactor  = 0.0001
  Prefactor  = 2.65768
  norm       = 4.00549
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 4.52743
  Normalizat = 1.06498
  Prefactor  = 0.84671
 **********
 **   18 **HESSE 
 **********

 FCN=   6109.925     FROM HESSE     STATUS=OK           540 CALLS     3235 TOTAL
                     EDM=   .35E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.074        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     53.530        53.365        .13698E-02   -1.4243    
   3  norm          12.370        2.3578        .28472E-02   -1.5004    
   4  Prefactor     5.4044        3.5458        .43203E-02   -1.5243    
   5  norm          2.4467        21.490        .65430E-02   -1.5395    
   6  Prefactor     .10003E-03    13.941        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    3.8025        .49808E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.503        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .84799        2.4779        .12620E-01   -1.5524    
  10  Prefactor     6.8134        17.056        .38400E-02   -1.5186    
  11  Prefactor     17.271        21.753        .24120E-02   -1.4877    
  12  Prefactor     .10001E-03    1.7856        .69336E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.8411        12.062        .38364E-02   -1.5185    
  14  Prefactor     .10458E-03    18.416        .11468       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .68036        2.4382        .56165E-01   -1.5543    
  16  Prefactor     .10001E-03    14.067        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.459        37.457        .31097E-02   -1.5061    
  18  norm          .10033E-03    4.7146        .65318E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.5349        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.6577        6.3271        .62671E-02   -1.5382    
  21  norm          4.0055        1.8334        .50363E-02   -1.5308    
  22  Prefactor     .10000E-03    7.0177        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    20.166        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.5274        38.119        .47315E-02   -1.5282    
  25  Normalizat    1.0650        .17700        .39666E-01   -.90884    
  26  Prefactor     .84671        .18784        .64056E-01   -.98029    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.45434e-07
Minuit parameter uncertainties:
  1  0.000101753
  2  53.4131
  3  2.35781
  4  3.5459
  5  14.509
  6  0.00123525
  7  0.000385262
  8  0.000330034
  9  2.47819
  10  17.0686
  11  21.7634
  12  0.000225922
  13  12.0659
  14  0.018369
  15  2.43857
  16  0.000857678
  17  37.5414
  18  0.0025135
  19  2.50913e-05
  20  6.32866
  21  1.83342
  22  1.71512e-05
  23  0.000273103
  24  26.2965
  25  0.177094
  26  0.187983
Done.

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

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  6.841e+00  1.207e+01  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.467e-01  1.880e-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.065e+00  1.771e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/389005/likelihoodResults_390960001_391219201_4FGL_J1423.1+3738_daily_bin585.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): 0
logL (Free Index) = 6109.37732381
delta logL = 0.548128424733

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6109.3657168
delta logL = 0.559735436887

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.2601       1.0000         .10000E-03   10000.    
     2 'alpha     '    .82803       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0672       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84622       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.

 FCN=   6109.366     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      208 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.2348        6.4551        .43814E-02   -.40048E-03
   2  alpha         .82595        .65199        .50000       -.39751E-04
   3  Normalizat    1.0671        .16173        .39530E-01   -.54934E-04
   4  Prefactor     .84629        .18670        .64060E-01    .76586E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.23483
  alpha      = 0.825945
  Normalizat = 1.06707
  Prefactor  = 0.846287
 **********
 **   18 **HESSE 
 **********

 FCN=   6109.366     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.2348        9.1849        .87627E-03   -1.5250    
   2  alpha         .82595        .86872        .27244E-01   -.73370    
   3  Normalizat    1.0671        .19139        .22228E-03   -.90816    
   4  Prefactor     .84629        .22069        .28335E-03   -.98044    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.15131e-11
Minuit parameter uncertainties:
  1  9.18735
  2  0.90402
  3  0.191516
  4  0.220921
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/389005': 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) = 6109.36571332
delta logL = 0.55973891536

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  5.235e+00  9.187e+00  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  8.259e-01  9.040e-01  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.463e-01  2.209e-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.067e+00  1.915e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.66
Ra Dec: 215.792 37.645
Photon Index (Free Index): 0.83 +/- 0.90
Photon Flux (Free Index): 3.38e-09 +/- 4.70e-09
Energy Flux (Free Index): 2.84e-05 +/- 4.85e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/389005/cmap_HighResolution_390960001_391219201_4FGL_J1423.1+3738_daily_bin585.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.44e-05', comment='SUCCESS', energy_flux2='2.84e-05', dlogl='5.60e-01', photon_flux2='3.38e-09', job_status='DONE', time_completed='2021-09-09 12:13:53.143979', photon_index_error2='0.90', photon_index2='0.83', ts='0.54', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='4.42e-08', energy_flux_error2='4.85e-05', EG='1.06', time_epoch_completed='1631214833.14', return_code='0', job_id='389005', GAL2='0.85', EG2='1.07', return_code2='0', photon_flux_error2='4.70e-09', ts2='1.66', photon_index='1.93' WHERE bin_id='585' AND source_name='4FGL J1423.1+3738' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:13:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 389005: <4FGL_J1423.1+3738_daily_bin585> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1423.1+3738_daily_bin585 215.792 37.6452 390960001 391219201 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 :                                   720.45 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             313.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            847 sec.

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

