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


Performing analysis on: 4FGL_J1423.1+3738_daily_bin1180
RA = 215.792, Dec = 37.6452
tmin = 545184001, tmax = 545443201
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='544664', job_status='RUN', time_executed='2021-09-09 20:39:52.679420', time_epoch_executed='1631245192.68' WHERE source_name='4FGL J1423.1+3738' and cadence='daily' and bin_id='1180'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/544664

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/544664/ft1_4FGL_J1423.1+3738_daily_bin1180.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/544664/ft2_4FGL_J1423.1+3738_daily_bin1180.fits


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

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

Done.
real 4.02
user 3.77
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/544664/ft1_filtered_4FGL_J1423.1+3738_daily_bin1180.fits" evtable="EVENTS" scfile=/scratch/kocevski/544664/ft2_4FGL_J1423.1+3738_daily_bin1180.fits sctable="SC_DATA" outfile=/scratch/kocevski/544664/ltcube_545184001_545443201_4FGL_J1423.1+3738_daily_bin1180.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/544664/ft2_4FGL_J1423.1+3738_daily_bin1180.fits
.....................!
real 12.18
user 11.59
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/544664/ft1_filtered_4FGL_J1423.1+3738_daily_bin1180.fits evtable="EVENTS" scfile=/scratch/kocevski/544664/ft2_4FGL_J1423.1+3738_daily_bin1180.fits sctable="SC_DATA" expcube=/scratch/kocevski/544664/ltcube_545184001_545443201_4FGL_J1423.1+3738_daily_bin1180.fits outfile=/scratch/kocevski/544664/expmap_545184001_545443201_4FGL_J1423.1+3738_daily_bin1180.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/544664/ltcube_545184001_545443201_4FGL_J1423.1+3738_daily_bin1180.fits
.....................!
real 191.44
user 186.26
sys 4.82

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/544664/ft1_filtered_4FGL_J1423.1+3738_daily_bin1180.fits scfile=/scratch/kocevski/544664/ft2_4FGL_J1423.1+3738_daily_bin1180.fits outfile=/scratch/kocevski/544664/cmap_545184001_545443201_4FGL_J1423.1+3738_daily_bin1180.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.53
user 0.38
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    40.308       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .26393E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.566       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.130       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.3446       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    56.420       1.0000         .10000E-03   10000.    
    18 'norm      '    20.106       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    120.37       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .88863       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .87464       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=   2302.775     FROM MIGRAD    STATUS=CONVERGED    606 CALLS     3620 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    69.276        .65785E-05** at limit **
   2  Prefactor     .10001E-03    49.935       -.48706E-05** at limit **
   3  norm          .10006E-03    6.5536       -.14420E-05** at limit **
   4  Prefactor     .10000E-03    4.6952        .35453E-07** at limit **
   5  norm          .10000E-03    13.563       -.18602E-07** at limit **
   6  Prefactor     40.307        36.657       -.44178E-07    .73676E-05
   7  Prefactor     .10000E-03    274.54        .70792E-05** at limit **
   8  Prefactor     11.611        382.28        .89262E-05    .49441E-04
   9  norm          .10000E-03    3.2915       -.87865E-07** at limit **
  10  Prefactor     .10000E-03    9.9977       -.14749E-06** at limit **
  11  Prefactor     .10000E-03    13.112        .43011E-06** at limit **
  12  Prefactor     10.130        7.2916        .84115E-06   -.13441E-03
  13  norm          .10000E-03    12.075       -.58929E-06** at limit **
  14  Prefactor     .10000E-03    25.309        .15774E-05** at limit **
  15  norm          5.3445        14.679        .65916E-05   -.11558E-03
  16  Prefactor     .10000E-03    37.660        .17465E-05** at limit **
  17  Prefactor     56.424        68.738        .10942E-05   -.65579E-05
  18  norm          20.107        18.208       -.92211E-06   -.22935E-04
  19  Prefactor     .10000E-03    10.405        .18328E-06** at limit **
  20  Prefactor     .10000E-03    5.5397       -.24769E-07** at limit **
  21  norm          .10000E-03    .96078        .96035E-08** at limit **
  22  Prefactor     .10000E-03    194.77       -.42999E-05** at limit **
  23  Prefactor     120.39        121.76        .33897E-05    .81296E-04
  24  Prefactor     .10000E-03    60.114       -.14868E-05** at limit **
  25  Normalizat    .88859        .29557       -.33225E-05    .10231E-03
  26  Prefactor     .87464        .29377       -.30244E-06    .26503E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100014
  Prefactor  = 0.000100007
  norm       = 0.000100062
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 40.3065
  Prefactor  = 0.000100001
  Prefactor  = 11.6107
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.1301
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 5.34451
  Prefactor  = 0.000100001
  Prefactor  = 56.4237
  norm       = 20.107
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 120.395
  Prefactor  = 0.000100001
  Normalizat = 0.888592
  Prefactor  = 0.874641
 **********
 **   18 **HESSE 
 **********

 FCN=   2302.775     FROM HESSE     STATUS=OK           444 CALLS     4064 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    71.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    51.252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10006E-03    24.075        .22426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.8047        .20287E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    13.567        .17263E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     40.307        36.651        .63136E-04   -1.4437    
   7  Prefactor     .10000E-03    277.40        .21443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.611        379.54        .11779E-03   -1.5026    
   9  norm          .10000E-03    3.3087        .85007E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.003        .14821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.122        .16979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.130        7.3138        .50660E-03   -1.5071    
  13  norm          .10000E-03    12.105        .16303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    25.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.3445        15.033        .86920E-03   -1.5246    
  16  Prefactor     .10000E-03    37.823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     56.424        68.861        .53406E-04   -1.4204    
  18  norm          20.107        18.224        .89325E-04   -1.4811    
  19  Prefactor     .10000E-03    10.412        .15119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.5500        .11031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .96284        .45929E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    198.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     120.39        122.75        .18341E-03   -1.3509    
  24  Prefactor     .10000E-03    60.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .88859        .35124        .24464E-03   -.96862    
  26  Prefactor     .87464        .35185        .25791E-03   -.97033    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.49757e-09
Minuit parameter uncertainties:
  1  0.00197901
  2  0.0011931
  3  0.00244682
  4  2.85169e-05
  5  1.27932e-07
  6  36.6715
  7  0.00102245
  8  133.7
  9  4.54673e-06
  10  1.82787e-05
  11  4.86569e-05
  12  7.31446
  13  7.52412e-05
  14  0.000254505
  15  15.0433
  16  0.00035943
  17  68.9586
  18  18.2295
  19  1.66346e-05
  20  5.01514e-06
  21  1.46059e-06
  22  0.00187436
  23  123.007
  24  0.000393812
  25  0.352145
  26  0.352766
Done.

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

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  7.524e-05  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.746e-01  3.528e-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.886e-01  3.521e-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: 6.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.99e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/544664/likelihoodResults_545184001_545443201_4FGL_J1423.1+3738_daily_bin1180.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) = 2302.77570758
delta logL = -0.000389931696645

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2302.77531763
delta logL = 1.77965375769e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9167       1.0000          .0000       5.0000    
     3 'Normalizat'    .88859       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87465       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=   2302.775     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      233 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    380.41        .16378E-01** at limit **
   2  alpha         1.6366        2.8379        .17066        .43534E-07
   3  Normalizat    .88859        .37211E-01    .24464E-03    .37176E-05
   4  Prefactor     .87464        .39173E-01    .25791E-03    .38350E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.63665
  Normalizat = 0.888589
  Prefactor  = 0.874644
 **********
 **   18 **HESSE 
 **********

 FCN=   2302.775     FROM HESSE     STATUS=OK            23 CALLS      256 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    13.019        .16840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6366        4.1740        .68264E-02   -.35260    
   3  Normalizat    .88859        .33275        .97858E-05   -.96862    
   4  Prefactor     .87464        .35020        .10316E-04   -.97033    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.04656e-11
Minuit parameter uncertainties:
  1  6.57663e-05
  2  407.992
  3  0.333526
  4  0.351102
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/544664': 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) = 2302.77531739
delta logL = 2.63508354692e-07

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  6.577e-05  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  1.637e+00  4.080e+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.746e-01  3.511e-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.886e-01  3.335e-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/544664/cmap_HighResolution_545184001_545443201_4FGL_J1423.1+3738_daily_bin1180.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.99e-05', job_status='DONE', photon_flux_upper_limit='6.41e-08', time_completed='2021-09-09 20:47:54.339585', job_id='544664', GAL2='0.87', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1631245674.34', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='2.64e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='1180' AND source_name='4FGL J1423.1+3738' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 20:47:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 544664: <4FGL_J1423.1+3738_daily_bin1180> in cluster <slac> Done

Job <4FGL_J1423.1+3738_daily_bin1180> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  9 20:36:10 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 20:36:12 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 20:36:12 2021
Terminated at Thu Sep  9 20:47:55 2021
Results reported at Thu Sep  9 20:47:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1423.1+3738_daily_bin1180 215.792 37.6452 545184001 545443201 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 :                                   470.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             265.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   702 sec.
    Turnaround time :                            705 sec.

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

