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


Performing analysis on: 4FGL_J1423.1+3738_daily_bin1011
RA = 215.792, Dec = 37.6452
tmin = 501379201, tmax = 501638401
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='390756', job_status='RUN', time_executed='2021-09-09 12:08:43.820799', time_epoch_executed='1631214523.82' WHERE source_name='4FGL J1423.1+3738' and cadence='daily' and bin_id='1011'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/390756

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/390756/ft1_4FGL_J1423.1+3738_daily_bin1011.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/390756/ft2_4FGL_J1423.1+3738_daily_bin1011.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/390756/ft1_4FGL_J1423.1+3738_daily_bin1011.fits outfile=/scratch/kocevski/390756/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin1011.fits ra=215.792 dec=37.6452 rad=12.0 tmin=501379201.0 tmax=501638401.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.78
user 3.32
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/390756/ft2_4FGL_J1423.1+3738_daily_bin1011.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/390756/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin1011.fits evtable="EVENTS" outfile="/scratch/kocevski/390756/ft1_filtered_4FGL_J1423.1+3738_daily_bin1011.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.56
user 0.34
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/390756/ft1_filtered_4FGL_J1423.1+3738_daily_bin1011.fits evtable="EVENTS" scfile=/scratch/kocevski/390756/ft2_4FGL_J1423.1+3738_daily_bin1011.fits sctable="SC_DATA" expcube=/scratch/kocevski/390756/ltcube_501379201_501638401_4FGL_J1423.1+3738_daily_bin1011.fits outfile=/scratch/kocevski/390756/expmap_501379201_501638401_4FGL_J1423.1+3738_daily_bin1011.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/390756/ltcube_501379201_501638401_4FGL_J1423.1+3738_daily_bin1011.fits
.....................!
real 191.52
user 186.41
sys 4.58

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/390756/ft1_filtered_4FGL_J1423.1+3738_daily_bin1011.fits scfile=/scratch/kocevski/390756/ft2_4FGL_J1423.1+3738_daily_bin1011.fits outfile=/scratch/kocevski/390756/cmap_501379201_501638401_4FGL_J1423.1+3738_daily_bin1011.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.87
user 0.37
sys 0.15

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

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

This is gtbin version HEAD
real 1.78
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    53.145       1.0000         .10000E-03   10000.    
     2 'Prefactor '    57.639       1.0000         .10000E-03   10000.    
     3 'norm      '    7.3584       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .24817E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.839       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .47917E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.2779       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.018       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    31.258       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.409       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.5340       1.0000         .10000E-03   10000.    
    21 'norm      '    .10179E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10895E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0150       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .88441       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=   5292.219     FROM MIGRAD    STATUS=CONVERGED    644 CALLS     3181 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     53.142        76.860       -.48641E-05   -.22305E-04
   2  Prefactor     57.724        77.384        .63917E-04   -.25241E-04
   3  norm          7.3586        2.0918       -.72341E-07   -.30948E-03
   4  Prefactor     .10001E-03    1.9528        .62545E-06** at limit **
   5  norm          .10000E-03    20.439       -.20803E-05** at limit **
   6  Prefactor     .10000E-03    5.7677        .27665E-07** at limit **
   7  Prefactor     .10000E-03    5.7558        .20589E-06** at limit **
   8  Prefactor     21.843        24.235        .23378E-06   -.58218E-04
   9  norm          .10000E-03    1.5938        .46182E-07** at limit **
  10  Prefactor     .10000E-03    8.1189        .21708E-06** at limit **
  11  Prefactor     .10000E-03    7.1937        .51370E-07** at limit **
  12  Prefactor     .10047E-03    1.5190        .12138E-05** at limit **
  13  norm          5.2774        11.469        .18125E-06   -.89731E-04
  14  Prefactor     18.023        26.840       -.12394E-05   -.47850E-04
  15  norm          .10000E-03    2.7904        .74362E-07** at limit **
  16  Prefactor     31.258        29.067        .16464E-06   -.16320E-04
  17  Prefactor     .10000E-03    36.131       -.16742E-05** at limit **
  18  norm          .10000E-03    3.9639        .27050E-07** at limit **
  19  Prefactor     25.407        14.047        .53212E-06   -.13549E-03
  20  Prefactor     4.5307        6.8179        .81113E-06   -.39446E-03
  21  norm          .10000E-03    1.1915        .29145E-06** at limit **
  22  Prefactor     .10000E-03    10.873       -.13902E-06** at limit **
  23  Prefactor     .10000E-03    406.96        .24066E-04** at limit **
  24  Prefactor     .10000E-03    12.020        .47677E-06** at limit **
  25  Normalizat    1.0148        .18193       -.70949E-05   -.21198E-03
  26  Prefactor     .88464        .19750        .19292E-05   -.62577E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 53.1419
  Prefactor  = 57.724
  norm       = 7.35856
  Prefactor  = 0.000100011
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.8434
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100468
  norm       = 5.2774
  Prefactor  = 18.023
  norm       = 0.0001
  Prefactor  = 31.2582
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 25.4072
  Prefactor  = 4.53071
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 1.01478
  Prefactor  = 0.884641
 **********
 **   18 **HESSE 
 **********

 FCN=   5292.219     FROM HESSE     STATUS=OK           452 CALLS     3633 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     53.142        76.891        .55018E-04   -1.4249    
   2  Prefactor     57.724        77.443        .52841E-04   -1.4187    
   3  norm          7.3586        2.0931        .53751E-04   -1.5165    
   4  Prefactor     .10001E-03    52.942        .19451E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    21.052        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.7719        .17063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.9514        .34048E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     21.843        24.260        .85710E-04   -1.4773    
   9  norm          .10000E-03    1.6110        .89652E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.1723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.2194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10047E-03    32.332        .17174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.2774        11.451        .17495E-03   -1.5248    
  14  Prefactor     18.023        26.888        .94356E-04   -1.4859    
  15  norm          .10000E-03    2.8128        .11865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     31.258        29.064        .71667E-04   -1.4589    
  17  Prefactor     .10000E-03    36.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.9694        .14145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     25.407        14.037        .79471E-04   -1.4699    
  20  Prefactor     4.5307        6.5597        .18907E-03   -1.5282    
  21  norm          .10000E-03    2.2192        .14727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    10.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    412.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    12.034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0148        .21198        .21918E-03   -.92537    
  26  Prefactor     .88464        .23261        .27014E-03   -.96680    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53746e-08
Minuit parameter uncertainties:
  1  77.0355
  2  77.5784
  3  2.09315
  4  0.00150886
  5  0.000311944
  6  2.14011e-06
  7  4.78378e-05
  8  24.2704
  9  5.97869e-06
  10  3.12121e-05
  11  2.41692e-05
  12  0.00778692
  13  11.4553
  14  26.9059
  15  1.43061e-05
  16  29.0774
  17  0.000191013
  18  3.88115e-06
  19  14.0389
  20  6.56077
  21  4.1846e-05
  22  7.12682e-05
  23  0.00147205
  24  2.87045e-05
  25  0.212155
  26  0.232869
Done.

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

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  5.277e+00  1.146e+01  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.846e-01  2.329e-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.015e+00  2.122e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.30
Ra Dec: 215.792 37.645
Photon Flux Upper Limit: 4.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.57e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/390756/likelihoodResults_501379201_501638401_4FGL_J1423.1+3738_daily_bin1011.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) = 5292.21542392
delta logL = 0.00388270724761

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5292.21521018
delta logL = 0.00409644087176

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.1047       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0420       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0142       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88484       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=   5292.215     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      256 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.1060        11.605        .17795E-03   -.93561E-03
   2  alpha         2.0415        1.2316        .27415E-01   -.12072E-03
   3  Normalizat    1.0141        .19746        .21925E-03    .25596E-03
   4  Prefactor     .88487        .23005        .27010E-03    .26924E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.10595
  alpha      = 2.04147
  Normalizat = 1.01407
  Prefactor  = 0.884865
 **********
 **   18 **HESSE 
 **********

 FCN=   5292.215     FROM HESSE     STATUS=OK            23 CALLS      279 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.1060        11.312        .71181E-05   -1.5256    
   2  alpha         2.0415        1.2039        .10966E-02   -.18446    
   3  Normalizat    1.0141        .19759        .43850E-04   -.92561    
   4  Prefactor     .88487        .23022        .54021E-04   -.96672    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.86785e-09
Minuit parameter uncertainties:
  1  11.3164
  2  1.2581
  3  0.197732
  4  0.23047
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/390756': 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) = 5292.21520973
delta logL = 0.0040968947269

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  5.106e+00  1.132e+01  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  2.041e+00  1.258e+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:  8.849e-01  2.305e-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.014e+00  1.977e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.30
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/390756/cmap_HighResolution_501379201_501638401_4FGL_J1423.1+3738_daily_bin1011.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.57e-05', job_status='DONE', photon_flux_upper_limit='4.59e-08', time_completed='2021-09-09 12:20:14.810668', job_id='390756', GAL2='0.88', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1631215214.81', return_code2='0', ts='0.30', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='4.10e-03', ts2='0.31', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='1011' AND source_name='4FGL J1423.1+3738' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:20:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 390756: <4FGL_J1423.1+3738_daily_bin1011> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1423.1+3738_daily_bin1011 215.792 37.6452 501379201 501638401 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 :                                   668.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            841 sec.

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

