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


Performing analysis on: 4FGL_J1423.1+3738_daily_bin1601
RA = 215.792, Dec = 37.6452
tmin = 654307201, tmax = 654566401
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='542611', job_status='RUN', time_executed='2021-09-29 00:17:44.135075', time_epoch_executed='1632899864.14' WHERE source_name='4FGL J1423.1+3738' and cadence='daily' and bin_id='1601'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/542611

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/542611/ft1_4FGL_J1423.1+3738_daily_bin1601.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/542611/ft2_4FGL_J1423.1+3738_daily_bin1601.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/542611/ft1_4FGL_J1423.1+3738_daily_bin1601.fits outfile=/scratch/kocevski/542611/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin1601.fits ra=215.792 dec=37.6452 rad=12.0 tmin=654307201.0 tmax=654566401.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.20
user 3.97
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/542611/ft1_filtered_4FGL_J1423.1+3738_daily_bin1601.fits evtable="EVENTS" scfile=/scratch/kocevski/542611/ft2_4FGL_J1423.1+3738_daily_bin1601.fits sctable="SC_DATA" expcube=/scratch/kocevski/542611/ltcube_654307201_654566401_4FGL_J1423.1+3738_daily_bin1601.fits outfile=/scratch/kocevski/542611/expmap_654307201_654566401_4FGL_J1423.1+3738_daily_bin1601.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/542611/ltcube_654307201_654566401_4FGL_J1423.1+3738_daily_bin1601.fits
.....................!
real 192.44
user 186.24
sys 4.91

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/542611/ft1_filtered_4FGL_J1423.1+3738_daily_bin1601.fits scfile=/scratch/kocevski/542611/ft2_4FGL_J1423.1+3738_daily_bin1601.fits outfile=/scratch/kocevski/542611/cmap_654307201_654566401_4FGL_J1423.1+3738_daily_bin1601.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/542611/ft1_filtered_4FGL_J1423.1+3738_daily_bin1601.fits scfile=/scratch/kocevski/542611/ft2_4FGL_J1423.1+3738_daily_bin1601.fits outfile=/scratch/kocevski/542611/cmap_HighResolution_654307201_654566401_4FGL_J1423.1+3738_daily_bin1601.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=215.792 yref=37.6452 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .11449E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .93169       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    12.629       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.3269       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .48876E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    4.8186       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .32321       1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.071       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.6657       1.0000         .10000E-03   10000.    
    13 'norm      '    .11734E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.7447       1.0000         .10000E-03   10000.    
    15 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.239       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.052       1.0000         .10000E-03   10000.    
    18 'norm      '    3.6958       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.1561       1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.856       1.0000         .10000E-03   10000.    
    21 'norm      '    1.4394       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.5995       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10372E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .99894       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .99865       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=   5570.461     FROM MIGRAD    STATUS=CONVERGED    655 CALLS     3171 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.025       -.45793E-07** at limit **
   2  Prefactor     .10000E-03    109.29        .13801E-06** at limit **
   3  norm          .93131        1.6810        .25318E-07    .26856E-04
   4  Prefactor     .10000E-03    2.8258       -.13351E-06** at limit **
   5  norm          12.632        17.225       -.75329E-06    .73545E-04
   6  Prefactor     .10000E-03    10.319        .93727E-08** at limit **
   7  Prefactor     5.3292        4.8537        .24735E-06    .86273E-04
   8  Prefactor     .10001E-03    15.955        .44795E-06** at limit **
   9  norm          4.8246        5.1890        .40397E-07    .27698E-03
  10  Prefactor     .13328        29.604       -.26560E-05    .25753E-03
  11  Prefactor     24.206        28.052        .39347E-06    .42759E-03
  12  Prefactor     4.6650        3.8206        .56549E-07    .12366E-03
  13  norm          .10000E-03    17.700       -.47607E-07** at limit **
  14  Prefactor     6.7409        25.787       -.34172E-06    .32406E-04
  15  norm          .10000E-03    2.0096        .22620E-07** at limit **
  16  Prefactor     15.236        24.160       -.42546E-06    .15521E-04
  17  Prefactor     10.965        43.590       -.66002E-05   -.11407E-05
  18  norm          3.6970        7.8996        .25669E-05    .16810E-03
  19  Prefactor     8.1591        16.171        .64800E-07    .36811E-04
  20  Prefactor     15.852        9.5771       -.10048E-06    .41339E-04
  21  norm          1.4392        1.4958       -.53409E-08    .33928E-04
  22  Prefactor     4.5966        9.3409        .25000E-07    .10933E-04
  23  Prefactor     .10000E-03    33.911       -.15625E-07** at limit **
  24  Prefactor     .10000E-03    16.087       -.69030E-07** at limit **
  25  Normalizat    .99896        .18992        .18445E-06    .21921E-03
  26  Prefactor     .99886        .19969        .48044E-06    .19858E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.931305
  Prefactor  = 0.0001
  norm       = 12.6325
  Prefactor  = 0.0001
  Prefactor  = 5.32918
  Prefactor  = 0.00010001
  norm       = 4.82459
  Prefactor  = 0.13328
  Prefactor  = 24.2056
  Prefactor  = 4.66502
  norm       = 0.0001
  Prefactor  = 6.74092
  norm       = 0.0001
  Prefactor  = 15.2363
  Prefactor  = 10.9649
  norm       = 3.69697
  Prefactor  = 8.15913
  Prefactor  = 15.8523
  norm       = 1.43919
  Prefactor  = 4.5966
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.99896
  Prefactor  = 0.998863
 **********
 **   18 **HESSE 
 **********

 FCN=   5570.461     FROM HESSE     STATUS=OK           468 CALLS     3639 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    109.87        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .93131        1.6520        .11976E-03   -1.5515    
   4  Prefactor     .10000E-03    2.8834        .12249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          12.632        17.195        .11272E-03   -1.4997    
   6  Prefactor     .10000E-03    10.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.3292        4.8091        .75252E-03   -1.5246    
   8  Prefactor     .10001E-03    82.989        .55756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.8246        5.2007        .16352E-03   -1.5269    
  10  Prefactor     .13328        58.903        .75195E-01   -1.5635    
  11  Prefactor     24.206        32.129        .81646E-04   -1.4724    
  12  Prefactor     4.6650        3.8157        .12585E-03   -1.5276    
  13  norm          .10000E-03    17.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.7409        25.755        .15450E-03   -1.5189    
  15  norm          .10000E-03    2.0142        .10331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     15.236        24.152        .10260E-03   -1.4927    
  17  Prefactor     10.965        43.527        .12051E-03   -1.5046    
  18  norm          3.6970        7.9253        .10504E-02   -1.5323    
  19  Prefactor     8.1591        16.143        .14038E-03   -1.5137    
  20  Prefactor     15.852        9.5208        .10058E-03   -1.4911    
  21  norm          1.4392        1.4800        .86313E-04   -1.5468    
  22  Prefactor     4.5966        9.3300        .18768E-03   -1.5279    
  23  Prefactor     .10000E-03    33.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    16.119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .99896        .21996        .23673E-03   -.93065    
  26  Prefactor     .99886        .23434        .26826E-03   -.92767    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.16051e-09
Minuit parameter uncertainties:
  1  5.14547e-06
  2  7.08383e-05
  3  1.65212
  4  8.8477e-06
  5  17.2014
  6  8.40392e-06
  7  4.80949
  8  0.00183721
  9  5.20123
  10  5.60722
  11  32.1515
  12  3.81587
  13  3.44688e-05
  14  25.7971
  15  1.99843e-07
  16  24.1675
  17  43.6536
  18  7.92755
  19  16.1515
  20  9.52169
  21  1.48006
  22  9.33298
  23  8.98113e-06
  24  1.03125e-05
  25  0.220163
  26  0.23458
Done.

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

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  3.447e-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:  9.989e-01  2.346e-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:  9.990e-01  2.202e-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: 4.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.28e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/542611/likelihoodResults_654307201_654566401_4FGL_J1423.1+3738_daily_bin1601.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) = 5570.46101935
delta logL = -0.000267098586846

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5570.4592813
delta logL = 0.00147095152442

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .37310       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7724       1.0000          .0000       5.0000    
     3 'Normalizat'    .99801       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99876       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=   5570.459     FROM MIGRAD    STATUS=FAILED        85 CALLS      292 TOTAL
                     EDM=   .59E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .37338        7525.0        .37363E-02   -.71574E-03
   2  alpha         2.7722        3.5350        .83895E-01   -.42773E-04
   3  Normalizat    .99800        .14570        .23682E-03    .78345E-04
   4  Prefactor     .99876        .15752        .26826E-03    .93193E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5570.459     FROM SIMPLEX   STATUS=UNCHANGED     98 CALLS      390 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .37338        7525.0        .99209E-03   -.71574E-03
   2  alpha         2.7722        3.5350        .22800E-02   -.42773E-04
   3  Normalizat    .99800        .14570        .93943E-04    .78345E-04
   4  Prefactor     .99876        .15752        .51473E-04    .93193E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5570.459     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      425 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .37392        34.879        .14945E-03   -.41838E-05
   2  alpha         2.7724        3.8802        .33558E-02   -.13551E-06
   3  Normalizat    .99800        .20376        .94728E-05   -.58327E-04
   4  Prefactor     .99876        .23107        .10730E-04   -.85607E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.37392
  alpha      = 2.7724
  Normalizat = 0.998002
  Prefactor  = 0.998759
 **********
 **   18 **HESSE 
 **********

 FCN=   5570.459     FROM HESSE     STATUS=OK            23 CALLS      448 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .37392        34.289        .59781E-05   -1.5586    
   2  alpha         2.7724        3.8786        .13423E-03    .10918    
   3  Normalizat    .99800        .20376        .18946E-05   -.93097    
   4  Prefactor     .99876        .23107        .21461E-05   -.92771    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30744e-11
Minuit parameter uncertainties:
  1  7.16461
  2  3.90072
  3  0.203921
  4  0.231302
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/542611': 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) = 5570.4592813
delta logL = 0.00147095908687

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  3.739e-01  7.165e+00  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  2.772e+00  3.901e+00  0.000e+00  5.000e+00 ( 1.000e+00)
297         beta:  1.446e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  1.404e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  9.988e-01  2.313e-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:  9.980e-01  2.039e-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/542611/cmap_HighResolution_654307201_654566401_4FGL_J1423.1+3738_daily_bin1601.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.28e-05', job_status='DONE', photon_flux_upper_limit='4.22e-08', time_completed='2021-09-29 00:29:14.603951', job_id='542611', GAL2='1.00', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1632900554.6', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.47e-03', ts2='0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='1601' AND source_name='4FGL J1423.1+3738' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:29:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 542611: <4FGL_J1423.1+3738_daily_bin1601> in cluster <slac> Done

Job <4FGL_J1423.1+3738_daily_bin1601> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 00:15:38 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 00:15:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 00:15:39 2021
Terminated at Wed Sep 29 00:29:15 2021
Results reported at Wed Sep 29 00:29:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1423.1+3738_daily_bin1601 215.792 37.6452 654307201 654566401 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 :                                   692.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   815 sec.
    Turnaround time :                            817 sec.

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

