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


Performing analysis on: 4FGL_J1423.1+3738_daily_bin1053
RA = 215.792, Dec = 37.6452
tmin = 512265601, tmax = 512524801
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='390824', job_status='RUN', time_executed='2021-09-09 12:09:35.931598', time_epoch_executed='1631214575.93' WHERE source_name='4FGL J1423.1+3738' and cadence='daily' and bin_id='1053'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/390824

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/390824/ft1_4FGL_J1423.1+3738_daily_bin1053.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/390824/ft2_4FGL_J1423.1+3738_daily_bin1053.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/390824/ft1_4FGL_J1423.1+3738_daily_bin1053.fits outfile=/scratch/kocevski/390824/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin1053.fits ra=215.792 dec=37.6452 rad=12.0 tmin=512265601.0 tmax=512524801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.69
user 3.35
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/390824/ft1_filtered_4FGL_J1423.1+3738_daily_bin1053.fits evtable="EVENTS" scfile=/scratch/kocevski/390824/ft2_4FGL_J1423.1+3738_daily_bin1053.fits sctable="SC_DATA" expcube=/scratch/kocevski/390824/ltcube_512265601_512524801_4FGL_J1423.1+3738_daily_bin1053.fits outfile=/scratch/kocevski/390824/expmap_512265601_512524801_4FGL_J1423.1+3738_daily_bin1053.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/390824/ltcube_512265601_512524801_4FGL_J1423.1+3738_daily_bin1053.fits
.....................!
real 194.34
user 187.26
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/390824/ft1_filtered_4FGL_J1423.1+3738_daily_bin1053.fits scfile=/scratch/kocevski/390824/ft2_4FGL_J1423.1+3738_daily_bin1053.fits outfile=/scratch/kocevski/390824/cmap_512265601_512524801_4FGL_J1423.1+3738_daily_bin1053.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 1.72
user 0.40
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/390824/ft1_filtered_4FGL_J1423.1+3738_daily_bin1053.fits scfile=/scratch/kocevski/390824/ft2_4FGL_J1423.1+3738_daily_bin1053.fits outfile=/scratch/kocevski/390824/cmap_HighResolution_512265601_512524801_4FGL_J1423.1+3738_daily_bin1053.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 1.56
user 0.40
sys 0.19

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.7676       1.0000         .10000E-03   10000.    
     3 'norm      '    8.2098       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10930E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.0602       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    28.803       1.0000         .10000E-03   10000.    
     9 'norm      '    2.8977       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.6030       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    32.928       1.0000         .10000E-03   10000.    
    15 'norm      '    11.630       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .51936       1.0000         .10000E-03   10000.    
    19 'Prefactor '    23.783       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.6787       1.0000         .10000E-03   10000.    
    21 'norm      '    .13489E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .89150       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0625       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=   6137.280     FROM MIGRAD    STATUS=CONVERGED    618 CALLS     3096 TOTAL
                     EDM=   .79E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.387       -.23483E-05** at limit **
   2  Prefactor     8.7258        72.784        .15566E-04    .19300E-04
   3  norm          8.2106        2.1277        .14635E-07   -.82245E-04
   4  Prefactor     .10000E-03    2.1693        .61057E-06** at limit **
   5  norm          6.0625        9.8115        .56563E-06   -.47088E-04
   6  Prefactor     .10000E-03    5.5306       -.37659E-07** at limit **
   7  Prefactor     .10000E-03    1.8315        .23409E-07** at limit **
   8  Prefactor     28.806        23.388        .18355E-06   -.22024E-04
   9  norm          2.8978        3.0907        .54257E-07   -.44310E-04
  10  Prefactor     .10000E-03    5.5341        .26976E-07** at limit **
  11  Prefactor     .10000E-03    25.824        .18327E-05** at limit **
  12  Prefactor     4.6042        3.7016        .14060E-06   -.51805E-04
  13  norm          .10000E-03    4.0015        .28810E-06** at limit **
  14  Prefactor     32.940        25.922       -.90663E-06   -.52321E-04
  15  norm          11.632        6.4839       -.56708E-08   -.65732E-04
  16  Prefactor     .10000E-03    17.525       -.13640E-05** at limit **
  17  Prefactor     .10000E-03    20.281        .22300E-05** at limit **
  18  norm          .52357        5.9853       -.12307E-06   -.10716E-04
  19  Prefactor     23.781        15.484       -.41231E-06   -.79064E-04
  20  Prefactor     2.6750        5.2016        .24533E-05   -.27922E-03
  21  norm          .10000E-03    .76901       -.33242E-06** at limit **
  22  Prefactor     .10000E-03    7.4107        .18863E-06** at limit **
  23  Prefactor     .10000E-03    49.260        .23723E-05** at limit **
  24  Prefactor     .10000E-03    32.720       -.15420E-05** at limit **
  25  Normalizat    .89089        .17559       -.74016E-06   -.17906E-03
  26  Prefactor     1.0632        .18948       -.75403E-06   -.16908E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.72582
  norm       = 8.21064
  Prefactor  = 0.0001
  norm       = 6.06246
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.8063
  norm       = 2.89776
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.60415
  norm       = 0.0001
  Prefactor  = 32.9402
  norm       = 11.6316
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.523566
  Prefactor  = 23.7813
  Prefactor  = 2.67503
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.890886
  Prefactor  = 1.06325
 **********
 **   18 **HESSE 
 **********

 FCN=   6137.280     FROM HESSE     STATUS=OK           458 CALLS     3554 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.7258        73.055        .13537E-03   -1.5117    
   3  norm          8.2106        2.1312        .55634E-04   -1.5135    
   4  Prefactor     .10000E-03    3.9514        .22122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.0625        9.7920        .81548E-03   -1.5215    
   6  Prefactor     .10000E-03    5.5336        .17993E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.8369        .10352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     28.806        23.526        .74651E-04   -1.4634    
   9  norm          2.8978        3.0824        .13751E-03   -1.5367    
  10  Prefactor     .10000E-03    5.5462        .17996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    26.330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.6042        3.7000        .12869E-03   -1.5279    
  13  norm          .10000E-03    4.0028        .15306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     32.940        25.991        .69830E-04   -1.4559    
  15  norm          11.632        6.4749        .11747E-03   -1.5026    
  16  Prefactor     .10000E-03    17.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    20.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .52357        16.569        .36562E-02   -1.5563    
  19  Prefactor     23.781        15.439        .82138E-04   -1.4732    
  20  Prefactor     2.6750        5.3140        .12259E-02   -1.5381    
  21  norm          .10000E-03    3.0099        .12716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.5115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    49.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    33.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .89089        .21072        .24690E-03   -.96781    
  26  Prefactor     1.0632        .22761        .26077E-03   -.90650    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.41136e-08
Minuit parameter uncertainties:
  1  7.95616e-05
  2  50.5799
  3  2.13125
  4  1.74352e-05
  5  9.79459
  6  3.23668e-07
  7  1.90468e-06
  8  23.5333
  9  3.08261
  10  4.27838e-06
  11  0.000104104
  12  3.70019
  13  3.90353e-06
  14  26.0003
  15  6.4753
  16  1.48676e-05
  17  6.64145e-05
  18  5.89196
  19  15.4412
  20  5.31493
  21  3.96265e-06
  22  1.61405e-05
  23  0.00010261
  24  2.46066e-05
  25  0.210913
  26  0.227822
Done.

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

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  3.904e-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:  1.063e+00  2.278e-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:  8.909e-01  2.109e-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: 2.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.97e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/390824/likelihoodResults_512265601_512524801_4FGL_J1423.1+3738_daily_bin1053.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) = 6137.28115672
delta logL = -0.00114808505077

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6137.28000861
delta logL = 2.29601937463e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9204       1.0000          .0000       5.0000    
     3 'Normalizat'    .89089       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0632       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=   6137.280     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      233 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    952.89        .15339E-02** at limit **
   2  alpha         1.6293        3.9823        .17058       -.25326E-08
   3  Normalizat    .89089        .13678        .24690E-03    .57097E-05
   4  Prefactor     1.0632        .15715        .26077E-03    .53623E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.62927
  Normalizat = 0.890886
  Prefactor  = 1.06325
 **********
 **   18 **HESSE 
 **********

 FCN=   6137.280     FROM HESSE     STATUS=OK            23 CALLS      256 TOTAL
                     EDM=   .13E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.1947        .30679E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6293        3.5572        .68231E-02   -.35575    
   3  Normalizat    .89089        .19505        .98760E-05   -.96781    
   4  Prefactor     1.0632        .22409        .10431E-04   -.90650    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32516e-13
Minuit parameter uncertainties:
  1  1.26203e-06
  2  272.789
  3  0.1952
  4  0.224288
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/390824': 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) = 6137.28000807
delta logL = 5.70374140807e-07

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  1.262e-06  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  1.629e+00  2.728e+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:  1.063e+00  2.243e-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:  8.909e-01  1.952e-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/390824/cmap_HighResolution_512265601_512524801_4FGL_J1423.1+3738_daily_bin1053.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.97e-05', job_status='DONE', photon_flux_upper_limit='2.54e-08', time_completed='2021-09-09 12:22:00.936820', job_id='390824', GAL2='1.06', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1631215320.94', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='5.70e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='1053' AND source_name='4FGL J1423.1+3738' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:22:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0138>
Subject: Job 390824: <4FGL_J1423.1+3738_daily_bin1053> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1423.1+3738_daily_bin1053 215.792 37.6452 512265601 512524801 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 :                                   729.32 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             274.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            939 sec.

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

