/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 = 7388
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1423.1+3738_daily_bin8
RA = 215.792, Dec = 37.6452
tmin = 241401601, tmax = 241660801
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='386045', job_status='RUN', time_executed='2021-09-09 11:51:43.302776', time_epoch_executed='1631213503.3' WHERE source_name='4FGL J1423.1+3738' and cadence='daily' and bin_id='8'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/386045

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/386045/ft1_4FGL_J1423.1+3738_daily_bin8.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/386045/ft2_4FGL_J1423.1+3738_daily_bin8.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/386045/ft1_4FGL_J1423.1+3738_daily_bin8.fits outfile=/scratch/kocevski/386045/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin8.fits ra=215.792 dec=37.6452 rad=12.0 tmin=241401601.0 tmax=241660801.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 1.46
user 1.28
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/386045/ft2_4FGL_J1423.1+3738_daily_bin8.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/386045/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin8.fits evtable="EVENTS" outfile="/scratch/kocevski/386045/ft1_filtered_4FGL_J1423.1+3738_daily_bin8.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/386045/ft1_filtered_4FGL_J1423.1+3738_daily_bin8.fits" evtable="EVENTS" scfile=/scratch/kocevski/386045/ft2_4FGL_J1423.1+3738_daily_bin8.fits sctable="SC_DATA" outfile=/scratch/kocevski/386045/ltcube_241401601_241660801_4FGL_J1423.1+3738_daily_bin8.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/386045/ft2_4FGL_J1423.1+3738_daily_bin8.fits
.....................!
real 16.33
user 15.93
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/386045/ft1_filtered_4FGL_J1423.1+3738_daily_bin8.fits evtable="EVENTS" scfile=/scratch/kocevski/386045/ft2_4FGL_J1423.1+3738_daily_bin8.fits sctable="SC_DATA" expcube=/scratch/kocevski/386045/ltcube_241401601_241660801_4FGL_J1423.1+3738_daily_bin8.fits outfile=/scratch/kocevski/386045/expmap_241401601_241660801_4FGL_J1423.1+3738_daily_bin8.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/386045/ltcube_241401601_241660801_4FGL_J1423.1+3738_daily_bin8.fits
.....................!
real 191.31
user 186.21
sys 4.71

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/386045/ft1_filtered_4FGL_J1423.1+3738_daily_bin8.fits scfile=/scratch/kocevski/386045/ft2_4FGL_J1423.1+3738_daily_bin8.fits outfile=/scratch/kocevski/386045/cmap_241401601_241660801_4FGL_J1423.1+3738_daily_bin8.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.35
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/386045/ft1_filtered_4FGL_J1423.1+3738_daily_bin8.fits scfile=/scratch/kocevski/386045/ft2_4FGL_J1423.1+3738_daily_bin8.fits outfile=/scratch/kocevski/386045/cmap_HighResolution_241401601_241660801_4FGL_J1423.1+3738_daily_bin8.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.210       1.0000         .10000E-03   10000.    
     2 'Prefactor '    92.847       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.774       1.0000         .10000E-03   10000.    
     5 'norm      '    .10131E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    36.047       1.0000         .10000E-03   10000.    
     9 'norm      '    2.8975       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15707E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.4203       1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.412       1.0000         .10000E-03   10000.    
    15 'norm      '    1.4988       1.0000         .10000E-03   10000.    
    16 'Prefactor '    28.465       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.9348       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.3120       1.0000         .10000E-03   10000.    
    21 'norm      '    .71616       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13084E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.9697       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0344       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1816       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=   8369.665     FROM MIGRAD    STATUS=CONVERGED    603 CALLS     3107 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.208        49.003       -.23620E-05    .48507E-04
   2  Prefactor     92.839        69.725       -.63127E-05    .23175E-03
   3  norm          .10000E-03    .60313       -.28901E-07** at limit **
   4  Prefactor     10.775        4.7052        .98527E-06   -.12299E-02
   5  norm          .10000E-03    14.068       -.32558E-06** at limit **
   6  Prefactor     .10000E-03    9.4137       -.35334E-05** at limit **
   7  Prefactor     .10000E-03    2.0208       -.99400E-07** at limit **
   8  Prefactor     36.047        22.011       -.76286E-06    .96866E-04
   9  norm          2.8987        3.9359       -.23795E-06   -.63349E-03
  10  Prefactor     .10000E-03    8.5438        .22670E-06** at limit **
  11  Prefactor     .10000E-03    33.072        .11830E-05** at limit **
  12  Prefactor     .10000E-03    1.2259        .11730E-06** at limit **
  13  norm          2.4241        8.2648       -.39152E-06   -.18909E-03
  14  Prefactor     27.421        24.275       -.93354E-06    .11190E-03
  15  norm          1.5000        4.6019       -.45031E-05   -.77943E-03
  16  Prefactor     28.470        26.585        .23207E-06    .66553E-04
  17  Prefactor     .10000E-03    9.6297        .33012E-05** at limit **
  18  norm          5.9348        4.8438        .97486E-06   -.24372E-03
  19  Prefactor     .10000E-03    3.5406       -.21426E-07** at limit **
  20  Prefactor     4.3118        5.3922        .56721E-07   -.19343E-03
  21  norm          .71500        1.2472       -.38455E-06   -.15578E-02
  22  Prefactor     .10000E-03    4.2181       -.19602E-06** at limit **
  23  Prefactor     .10000E-03    126.53       -.60162E-07** at limit **
  24  Prefactor     2.9678        38.221        .27643E-06   -.48827E-04
  25  Normalizat    1.0345        .16465        .14773E-05    .91510E-04
  26  Prefactor     1.1815        .17993       -.26452E-06    .18802E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.2078
  Prefactor  = 92.8394
  norm       = 0.0001
  Prefactor  = 10.7746
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 36.0473
  norm       = 2.89873
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.42406
  Prefactor  = 27.4208
  norm       = 1.49996
  Prefactor  = 28.4696
  Prefactor  = 0.000100001
  norm       = 5.93482
  Prefactor  = 0.0001
  Prefactor  = 4.31184
  norm       = 0.715005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.96785
  Normalizat = 1.03446
  Prefactor  = 1.18152
 **********
 **   18 **HESSE 
 **********

 FCN=   8369.665     FROM HESSE     STATUS=OK           456 CALLS     3563 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.208        48.993        .78249E-04   -1.4684    
   2  Prefactor     92.839        69.236        .41707E-04   -1.3778    
   3  norm          .10000E-03    .63135        .13858E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.775        4.6143        .12206E-03   -1.5051    
   5  norm          .10000E-03    14.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.2697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.0285        .12695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     36.047        22.152        .66750E-04   -1.4506    
   9  norm          2.8987        3.9395        .20108E-03   -1.5367    
  10  Prefactor     .10000E-03    8.5920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    33.916        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.2415        .98839E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.4241        8.2413        .26309E-03   -1.5397    
  14  Prefactor     27.421        24.266        .76518E-04   -1.4660    
  15  norm          1.5000        5.1730        .34984E-03   -1.5463    
  16  Prefactor     28.470        26.581        .75092E-04   -1.4640    
  17  Prefactor     .10000E-03    9.4988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.9348        4.8450        .16483E-03   -1.5221    
  19  Prefactor     .10000E-03    3.5461        .16810E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.3118        5.2797        .19400E-03   -1.5293    
  21  norm          .71500        1.1510        .12254E-02   -1.5539    
  22  Prefactor     .10000E-03    4.2318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    127.04        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     2.9678        38.134        .23562E-03   -1.5363    
  25  Normalizat    1.0345        .19959        .24835E-03   -.91885    
  26  Prefactor     1.1815        .21835        .26918E-03   -.86902    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69935e-09
Minuit parameter uncertainties:
  1  49.0684
  2  69.2968
  3  1.72216e-07
  4  4.61447
  5  4.4159e-05
  6  0.000208861
  7  3.75183e-06
  8  22.1568
  9  3.93984
  10  7.03509e-06
  11  2.78734e-06
  12  4.74389e-06
  13  8.24515
  14  24.2745
  15  5.17458
  16  26.5919
  17  0.000199432
  18  4.84531
  19  5.49404e-06
  20  5.28024
  21  1.15105
  22  4.27343e-06
  23  8.39544e-05
  24  21.2933
  25  0.19973
  26  0.218513
Done.

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

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  2.424e+00  8.245e+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

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  1.182e+00  2.185e-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.034e+00  1.997e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/386045/likelihoodResults_241401601_241660801_4FGL_J1423.1+3738_daily_bin8.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) = 8369.64626947
delta logL = 0.0182455892973

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8369.64606598
delta logL = 0.0184490773754

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4877       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3602       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0316       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1828       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=   8369.646     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      267 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4919        8.4491        .12958E-02   -.17757E-03
   2  alpha         2.3605        2.0575        .50084E-01   -.73455E-05
   3  Normalizat    1.0317        .18802        .24865E-03    .32836E-03
   4  Prefactor     1.1826        .21571        .26906E-03    .32980E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.49189
  alpha      = 2.36052
  Normalizat = 1.03166
  Prefactor  = 1.18264
 **********
 **   18 **HESSE 
 **********

 FCN=   8369.646     FROM HESSE     STATUS=OK            27 CALLS      294 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4919        7.7122        .51834E-04   -1.5392    
   2  alpha         2.3605        1.9344        .20033E-02   -.55821E-01
   3  Normalizat    1.0317        .18774        .49729E-04   -.91977    
   4  Prefactor     1.1826        .21562        .53812E-04   -.86867    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.72202e-10
Minuit parameter uncertainties:
  1  7.71524
  2  2.21322
  3  0.18786
  4  0.215777
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/386045': 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) = 8369.64606538
delta logL = 0.018449674355

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  2.492e+00  7.715e+00  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  2.361e+00  2.213e+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:  1.183e+00  2.158e-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.032e+00  1.879e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.11
Ra Dec: 215.792 37.645

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/386045/cmap_HighResolution_241401601_241660801_4FGL_J1423.1+3738_daily_bin8.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.67e-05', job_status='DONE', photon_flux_upper_limit='3.44e-08', time_completed='2021-09-09 12:06:09.888528', job_id='386045', GAL2='1.18', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1631214369.89', return_code2='0', ts='0.11', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='1.84e-02', ts2='0.14', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='8' AND source_name='4FGL J1423.1+3738' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:06:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 386045: <4FGL_J1423.1+3738_daily_bin8> in cluster <slac> Done

Job <4FGL_J1423.1+3738_daily_bin8> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  9 11:51:25 2021
Job was executed on host(s) <bullet0245>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 11:51:27 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:27 2021
Terminated at Thu Sep  9 12:06:10 2021
Results reported at Thu Sep  9 12:06:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1423.1+3738_daily_bin8 215.792 37.6452 241401601 241660801 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 :                                   864.34 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             330.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   883 sec.
    Turnaround time :                            885 sec.

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

