/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 62 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 = 7619
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1423.1+3738_daily_bin1474
RA = 215.792, Dec = 37.6452
tmin = 621388801, tmax = 621648001
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='392698', job_status='RUN', time_executed='2021-09-09 12:14:32.702420', time_epoch_executed='1631214872.7' WHERE source_name='4FGL J1423.1+3738' and cadence='daily' and bin_id='1474'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/392698

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/392698/ft1_4FGL_J1423.1+3738_daily_bin1474.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/392698/ft2_4FGL_J1423.1+3738_daily_bin1474.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/392698/ft1_4FGL_J1423.1+3738_daily_bin1474.fits outfile=/scratch/kocevski/392698/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin1474.fits ra=215.792 dec=37.6452 rad=12.0 tmin=621388801.0 tmax=621648001.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.81
user 3.00
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/392698/ft1_filtered_4FGL_J1423.1+3738_daily_bin1474.fits" evtable="EVENTS" scfile=/scratch/kocevski/392698/ft2_4FGL_J1423.1+3738_daily_bin1474.fits sctable="SC_DATA" outfile=/scratch/kocevski/392698/ltcube_621388801_621648001_4FGL_J1423.1+3738_daily_bin1474.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/392698/ft2_4FGL_J1423.1+3738_daily_bin1474.fits
.....................!
real 12.58
user 11.86
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/392698/ft1_filtered_4FGL_J1423.1+3738_daily_bin1474.fits evtable="EVENTS" scfile=/scratch/kocevski/392698/ft2_4FGL_J1423.1+3738_daily_bin1474.fits sctable="SC_DATA" expcube=/scratch/kocevski/392698/ltcube_621388801_621648001_4FGL_J1423.1+3738_daily_bin1474.fits outfile=/scratch/kocevski/392698/expmap_621388801_621648001_4FGL_J1423.1+3738_daily_bin1474.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/392698/ltcube_621388801_621648001_4FGL_J1423.1+3738_daily_bin1474.fits
.....................!
real 191.31
user 185.04
sys 4.72

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/392698/ft1_filtered_4FGL_J1423.1+3738_daily_bin1474.fits scfile=/scratch/kocevski/392698/ft2_4FGL_J1423.1+3738_daily_bin1474.fits outfile=/scratch/kocevski/392698/cmap_621388801_621648001_4FGL_J1423.1+3738_daily_bin1474.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.78
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/392698/ft1_filtered_4FGL_J1423.1+3738_daily_bin1474.fits scfile=/scratch/kocevski/392698/ft2_4FGL_J1423.1+3738_daily_bin1474.fits outfile=/scratch/kocevski/392698/cmap_HighResolution_621388801_621648001_4FGL_J1423.1+3738_daily_bin1474.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.62
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    74.444       1.0000         .10000E-03   10000.    
     2 'Prefactor '    89.373       1.0000         .10000E-03   10000.    
     3 'norm      '    .18365E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10325       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.7049       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10231E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.411       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.0900       1.0000         .10000E-03   10000.    
    13 'norm      '    .13582E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    41.839       1.0000         .10000E-03   10000.    
    15 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.5966       1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.754       1.0000         .10000E-03   10000.    
    18 'norm      '    2.0436       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10265E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.6245       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0233       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1472       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=   6565.223     FROM MIGRAD    STATUS=CONVERGED   1141 CALLS     3661 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     74.126        84.943        .23267E-03    .40555E-04
   2  Prefactor     89.364        114.05        .42502E-04    .64463E-04
   3  norm          .10000E-03    7.8352        .13037E-02** at limit **
   4  Prefactor     .10000E-03    2.0944        .11389E-02** at limit **
   5  norm          .50927E-01    12.018        .84017E-01    .15235E-03
   6  Prefactor     .10000E-03    3.8421        .15511E-02** at limit **
   7  Prefactor     1.7044        2.6473        .16165E-03    .20838E-03
   8  Prefactor     .10000E-03    27.424        .36285E-03** at limit **
   9  norm          .10000E-03    1.0956        .82615E-03** at limit **
  10  Prefactor     .10000E-03    4.1721        .16148E-02** at limit **
  11  Prefactor     13.408        12.435        .54687E-03    .58869E-03
  12  Prefactor     4.0901        2.9913        .11559E-03    .10445E-03
  13  norm          .10000E-03    18.206        .18142E-02** at limit **
  14  Prefactor     41.850        28.581        .61974E-04    .17610E-04
  15  norm          .10000E-03    1.2901        .89791E-03** at limit **
  16  Prefactor     2.5724        39.026        .25320E-03    .34528E-04
  17  Prefactor     16.748        29.232        .97851E-04    .85976E-05
  18  norm          2.0431        4.2348        .23584E-03    .21230E-03
  19  Prefactor     .10000E-03    4.4324        .16626E-02** at limit **
  20  Prefactor     .10000E-03    20.134        .34082E-02** at limit **
  21  norm          1.6253        1.2801        .78550E-04   -.15450E-02
  22  Prefactor     .10000E-03    3.8232        .15447E-02** at limit **
  23  Prefactor     .10000E-03    11.746        .18142E-02** at limit **
  24  Prefactor     .10000E-03    8.5147        .18142E-02** at limit **
  25  Normalizat    1.0225        .21498        .24102E-03    .26824E-03
  26  Prefactor     1.1482        .23539        .26256E-03    .49814E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 74.1265
  Prefactor  = 89.364
  norm       = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.0509269
  Prefactor  = 0.0001
  Prefactor  = 1.70444
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.4077
  Prefactor  = 4.09012
  norm       = 0.000100001
  Prefactor  = 41.8496
  norm       = 0.0001
  Prefactor  = 2.57239
  Prefactor  = 16.7478
  norm       = 2.0431
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.62531
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.02253
  Prefactor  = 1.14822
 **********
 **   18 **HESSE 
 **********

 FCN=   6565.223     FROM HESSE     STATUS=OK           440 CALLS     4101 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     74.126        84.938        .93070E-05   -1.3984    
   2  Prefactor     89.364        114.04        .85005E-05   -1.3814    
   3  norm          .10000E-03    7.9427        .26073E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.0947        .22779E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .50927E-01    11.687        .85991E-01   -1.5663    
   6  Prefactor     .10000E-03    3.8421        .31022E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.7044        2.6473        .64660E-05   -1.5447    
   8  Prefactor     .10000E-03    27.425        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.0956        .16523E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.1722        .32297E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.408        12.434        .21875E-04   -1.4975    
  12  Prefactor     4.0901        2.9912        .46236E-05   -1.5303    
  13  norm          .10000E-03    18.218        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     41.850        28.576        .24790E-05   -1.4413    
  15  norm          .10000E-03    1.2902        .17958E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.5724        39.025        .10128E-04   -1.5387    
  17  Prefactor     16.748        29.229        .39140E-05   -1.4889    
  18  norm          2.0431        4.2348        .94336E-05   -1.5422    
  19  Prefactor     .10000E-03    4.4329        .33253E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    20.329        .68164E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.6253        1.2782        .31420E-05   -1.5453    
  22  Prefactor     .10000E-03    3.8236        .30895E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    11.746        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    8.5152        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0225        .21518        .48204E-04   -.92279    
  26  Prefactor     1.1482        .23564        .52511E-04   -.87940    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9811e-09
Minuit parameter uncertainties:
  1  85.0776
  2  114.323
  3  0.000285203
  4  5.12622e-05
  5  1.54174
  6  2.33362e-07
  7  2.64744
  8  0.000144336
  9  1.03133e-06
  10  4.86017e-05
  11  12.4361
  12  2.99136
  13  0.000321268
  14  28.585
  15  6.43568e-06
  16  20.0539
  17  29.2537
  18  4.23539
  19  1.55938e-06
  20  0.0003435
  21  1.27823
  22  1.20311e-05
  23  1.6303e-06
  24  1.43688e-05
  25  0.215362
  26  0.23585
Done.

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

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  3.213e-04  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.148e+00  2.359e-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.023e+00  2.154e-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: 3.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.74e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/392698/likelihoodResults_621388801_621648001_4FGL_J1423.1+3738_daily_bin1474.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) = 6565.22296262
delta logL = -0.000261766735093

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6565.22270052
delta logL = 3.39910911862e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7138       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0225       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1482       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6565.223     FROM MIGRAD    STATUS=FAILED       102 CALLS      292 TOTAL
                     EDM=   .47E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10401E-03    301.34        .33941E-02** at limit **
   2  alpha         2.4759        3.5776        .50000        .20493E-05
   3  Normalizat    1.0225        .13965E-01    .24102E-03   -.57970E-04
   4  Prefactor     1.1482        .16079E-01    .26256E-03   -.67851E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6565.223     FROM SIMPLEX   STATUS=UNCHANGED    126 CALLS      418 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10401E-03    301.34        .98895E-03** at limit **
   2  alpha         2.4759        3.5776        .88982E-04    .20493E-05
   3  Normalizat    1.0225        .13965E-01    .87484E-06   -.57970E-04
   4  Prefactor     1.1482        .16079E-01    .63187E-06   -.67851E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6565.223     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      462 TOTAL
                     EDM=   .76E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1549.7        .67882E-03** at limit **
   2  alpha         2.4030        2.8491        .50000        .28353E-07
   3  Normalizat    1.0225        .33875E-01    .96408E-05    .24622E-03
   4  Prefactor     1.1482        .39004E-01    .10502E-04    .21780E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.40299
  Normalizat = 1.02253
  Prefactor  = 1.14821
 **********
 **   18 **HESSE 
 **********

 FCN=   6565.223     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      491 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7299.4        .13576E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4030        2.8097        .50000       -.38815E-01
   3  Normalizat    1.0225        .93700E-01    .19282E-05   -.92279    
   4  Prefactor     1.1482        .10786        .21004E-05   -.87940    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.53507e-10
Minuit parameter uncertainties:
  1  0.00130148
  2  3351.55
  3  0.0937151
  4  0.107878
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/392698': 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): 102
logL (Free Index) = 6565.22269992
delta logL = 9.32790499064e-07

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  1.301e-03  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  2.403e+00  3.352e+03  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.148e+00  1.079e-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.023e+00  9.372e-02  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/392698/cmap_HighResolution_621388801_621648001_4FGL_J1423.1+3738_daily_bin1474.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.74e-05', job_status='DONE', photon_flux_upper_limit='3.52e-08', time_completed='2021-09-09 12:28:07.320527', job_id='392698', GAL2='1.15', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1631215687.32', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='9.33e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='1474' AND source_name='4FGL J1423.1+3738' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:28:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 392698: <4FGL_J1423.1+3738_daily_bin1474> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1423.1+3738_daily_bin1474 215.792 37.6452 621388801 621648001 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 :                                   792.38 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             301.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   979 sec.
    Turnaround time :                            982 sec.

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

