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


Performing analysis on: 4FGL_J1423.1+3738_daily_bin1037
RA = 215.792, Dec = 37.6452
tmin = 508118401, tmax = 508377601
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='390800', job_status='RUN', time_executed='2021-09-09 12:06:35.917977', time_epoch_executed='1631214395.92' WHERE source_name='4FGL J1423.1+3738' and cadence='daily' and bin_id='1037'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/390800

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/390800/ft1_4FGL_J1423.1+3738_daily_bin1037.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/390800/ft2_4FGL_J1423.1+3738_daily_bin1037.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/390800/ft1_4FGL_J1423.1+3738_daily_bin1037.fits outfile=/scratch/kocevski/390800/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin1037.fits ra=215.792 dec=37.6452 rad=12.0 tmin=508118401.0 tmax=508377601.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.72
user 3.41
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/390800/ft1_filtered_4FGL_J1423.1+3738_daily_bin1037.fits evtable="EVENTS" scfile=/scratch/kocevski/390800/ft2_4FGL_J1423.1+3738_daily_bin1037.fits sctable="SC_DATA" expcube=/scratch/kocevski/390800/ltcube_508118401_508377601_4FGL_J1423.1+3738_daily_bin1037.fits outfile=/scratch/kocevski/390800/expmap_508118401_508377601_4FGL_J1423.1+3738_daily_bin1037.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/390800/ltcube_508118401_508377601_4FGL_J1423.1+3738_daily_bin1037.fits
.....................!
real 191.93
user 185.84
sys 5.41

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/390800/ft1_filtered_4FGL_J1423.1+3738_daily_bin1037.fits scfile=/scratch/kocevski/390800/ft2_4FGL_J1423.1+3738_daily_bin1037.fits outfile=/scratch/kocevski/390800/cmap_508118401_508377601_4FGL_J1423.1+3738_daily_bin1037.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.58
user 0.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    78.217       1.0000         .10000E-03   10000.    
     3 'norm      '    3.6697       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13231E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    7.7238       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.709       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.5197       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.249       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.6443       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.031       1.0000         .10000E-03   10000.    
    15 'norm      '    10.982       1.0000         .10000E-03   10000.    
    16 'Prefactor '    20.890       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12446E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.1260       1.0000         .10000E-03   10000.    
    21 'norm      '    2.7438       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.5013       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .83345       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=   6674.025     FROM MIGRAD    STATUS=CONVERGED    603 CALLS     3075 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.310       -.48108E-05** at limit **
   2  Prefactor     78.212        77.645       -.25431E-05   -.34201E-04
   3  norm          3.6697        1.6728       -.20385E-07   -.50339E-05
   4  Prefactor     .10001E-03    4.3235       -.14705E-05** at limit **
   5  norm          7.7235        13.732        .12584E-06    .87369E-05
   6  Prefactor     18.710        18.519        .11900E-06    .24535E-04
   7  Prefactor     2.5198        2.4977       -.37776E-07    .87335E-04
   8  Prefactor     .10000E-03    15.483       -.18263E-05** at limit **
   9  norm          .10000E-03    1.1904        .13002E-06** at limit **
  10  Prefactor     .10000E-03    6.7870       -.11090E-06** at limit **
  11  Prefactor     14.247        18.387       -.11772E-06    .13509E-04
  12  Prefactor     6.6436        3.6312        .72422E-06   -.22453E-02
  13  norm          .10000E-03    4.6723       -.12903E-06** at limit **
  14  Prefactor     14.028        28.612       -.20884E-05   -.50496E-04
  15  norm          10.980        7.5829        .43464E-08    .29165E-04
  16  Prefactor     20.888        33.378       -.11684E-05   -.35420E-04
  17  Prefactor     .10000E-03    12.942        .28815E-05** at limit **
  18  norm          .10000E-03    3.1698       -.22011E-06** at limit **
  19  Prefactor     .10000E-03    48.142       -.18956E-05** at limit **
  20  Prefactor     8.1217        11.636        .20136E-07    .46455E-04
  21  norm          2.7434        2.7025        .16390E-06    .53708E-04
  22  Prefactor     .10000E-03    5.1336       -.16234E-06** at limit **
  23  Prefactor     .10000E-03    25.714        .58007E-05** at limit **
  24  Prefactor     .10000E-03    12.312        .99411E-06** at limit **
  25  Normalizat    1.5014        .19814        .74998E-06    .34024E-03
  26  Prefactor     .83333        .20701       -.33087E-06    .25708E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 78.2117
  norm       = 3.66968
  Prefactor  = 0.000100013
  norm       = 7.7235
  Prefactor  = 18.7099
  Prefactor  = 2.51976
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.247
  Prefactor  = 6.64363
  norm       = 0.0001
  Prefactor  = 14.0281
  norm       = 10.9803
  Prefactor  = 20.8876
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.12169
  norm       = 2.74345
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Normalizat = 1.5014
  Prefactor  = 0.833325
 **********
 **   18 **HESSE 
 **********

 FCN=   6674.025     FROM HESSE     STATUS=OK           456 CALLS     3531 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     78.212        78.559        .45407E-04   -1.3937    
   3  norm          3.6697        1.6758        .68700E-04   -1.5325    
   4  Prefactor     .10001E-03    11.608        .31083E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.7235        13.728        .14429E-03   -1.5152    
   6  Prefactor     18.710        18.508        .92596E-04   -1.4843    
   7  Prefactor     2.5198        2.5097        .12544E-03   -1.5390    
   8  Prefactor     .10000E-03    15.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.1958        .87032E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.7929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.247        18.451        .10611E-03   -1.4953    
  12  Prefactor     6.6436        5.5197        .77838E-03   -1.5192    
  13  norm          .10000E-03    4.6746        .17246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.028        28.867        .10693E-03   -1.4959    
  15  norm          10.980        7.5777        .12090E-03   -1.5045    
  16  Prefactor     20.888        33.416        .87634E-04   -1.4794    
  17  Prefactor     .10000E-03    13.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.1744        .14207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    50.319        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.1217        11.549        .14065E-03   -1.5138    
  21  norm          2.7434        2.6777        .10219E-03   -1.5377    
  22  Prefactor     .10000E-03    5.1511        .18080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    26.249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    12.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.5014        .24286        .23547E-03   -.77739    
  26  Prefactor     .83333        .24867        .33360E-03   -.98511    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.15639e-09
Minuit parameter uncertainties:
  1  0.000378988
  2  78.6631
  3  1.67585
  4  0.000780534
  5  13.7338
  6  18.5137
  7  2.50981
  8  0.000125372
  9  1.71417e-06
  10  4.98569e-06
  11  18.4579
  12  5.52015
  13  4.87084e-06
  14  28.8955
  15  7.57839
  16  33.4458
  17  0.000166048
  18  7.11792e-06
  19  0.000308358
  20  11.5521
  21  2.67781
  22  9.74482e-06
  23  0.000482933
  24  5.14376e-05
  25  0.243048
  26  0.249003
Done.

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

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  4.871e-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:  8.333e-01  2.490e-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.501e+00  2.430e-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.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.20e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/390800/likelihoodResults_508118401_508377601_4FGL_J1423.1+3738_daily_bin1037.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) = 6674.02625475
delta logL = -0.000986256085525

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6674.02526849
delta logL = 2.0008883439e-11

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.9283       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5014       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83332       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=   6674.025     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      228 TOTAL
                     EDM=   .82E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.1419        .17246E-02** at limit **
   2  alpha         2.0012        2.5908        .17040       -.17346E-08
   3  Normalizat    1.5014        .22407        .23547E-03   -.35670E-04
   4  Prefactor     .83332        .24590        .33360E-03   -.51424E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.00118
  Normalizat = 1.5014
  Prefactor  = 0.833323
 **********
 **   18 **HESSE 
 **********

 FCN=   6674.025     FROM HESSE     STATUS=OK            23 CALLS      251 TOTAL
                     EDM=   .82E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.6797        .34493E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0012        2.9689        .68162E-02   -.20087    
   3  Normalizat    1.5014        .22428        .47094E-04   -.77739    
   4  Prefactor     .83332        .24613        .13344E-04   -.98511    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.24821e-12
Minuit parameter uncertainties:
  1  5.41047e-06
  2  513.644
  3  0.224431
  4  0.246456
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/390800': 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) = 6674.02526848
delta logL = 1.10012479126e-08

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  5.410e-06  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  2.001e+00  5.136e+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:  8.333e-01  2.465e-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.501e+00  2.244e-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/390800/cmap_HighResolution_508118401_508377601_4FGL_J1423.1+3738_daily_bin1037.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.20e-05', job_status='DONE', photon_flux_upper_limit='2.83e-08', time_completed='2021-09-09 12:19:23.624519', job_id='390800', GAL2='0.83', fit_tolerance='1e-08', EG2='1.50', EG='1.50', time_epoch_completed='1631215163.62', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='1.10e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='1037' AND source_name='4FGL J1423.1+3738' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:19:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0136>
Subject: Job 390800: <4FGL_J1423.1+3738_daily_bin1037> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1423.1+3738_daily_bin1037 215.792 37.6452 508118401 508377601 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 :                                   758.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             325.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            783 sec.

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

