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


Performing analysis on: 4FGL_J1423.1+3738_daily_bin1555
RA = 215.792, Dec = 37.6452
tmin = 642384001, tmax = 642643201
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='394115', job_status='RUN', time_executed='2021-09-09 12:19:08.663152', time_epoch_executed='1631215148.66' WHERE source_name='4FGL J1423.1+3738' and cadence='daily' and bin_id='1555'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/394115

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/394115/ft1_4FGL_J1423.1+3738_daily_bin1555.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/394115/ft2_4FGL_J1423.1+3738_daily_bin1555.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/394115/ft1_4FGL_J1423.1+3738_daily_bin1555.fits outfile=/scratch/kocevski/394115/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin1555.fits ra=215.792 dec=37.6452 rad=12.0 tmin=642384001.0 tmax=642643201.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.29
user 3.42
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/394115/ft1_filtered_4FGL_J1423.1+3738_daily_bin1555.fits evtable="EVENTS" scfile=/scratch/kocevski/394115/ft2_4FGL_J1423.1+3738_daily_bin1555.fits sctable="SC_DATA" expcube=/scratch/kocevski/394115/ltcube_642384001_642643201_4FGL_J1423.1+3738_daily_bin1555.fits outfile=/scratch/kocevski/394115/expmap_642384001_642643201_4FGL_J1423.1+3738_daily_bin1555.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/394115/ltcube_642384001_642643201_4FGL_J1423.1+3738_daily_bin1555.fits
.....................!
real 196.63
user 184.37
sys 4.32

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/394115/ft1_filtered_4FGL_J1423.1+3738_daily_bin1555.fits scfile=/scratch/kocevski/394115/ft2_4FGL_J1423.1+3738_daily_bin1555.fits outfile=/scratch/kocevski/394115/cmap_642384001_642643201_4FGL_J1423.1+3738_daily_bin1555.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 1.05
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/394115/ft1_filtered_4FGL_J1423.1+3738_daily_bin1555.fits scfile=/scratch/kocevski/394115/ft2_4FGL_J1423.1+3738_daily_bin1555.fits outfile=/scratch/kocevski/394115/cmap_HighResolution_642384001_642643201_4FGL_J1423.1+3738_daily_bin1555.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.71
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10116E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8467       1.0000         .10000E-03   10000.    
     5 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11153E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.1583       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.2059       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.3191       1.0000         .10000E-03   10000.    
    13 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.9328       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    60.056       1.0000         .10000E-03   10000.    
    18 'norm      '    13.201       1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.653       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.7630       1.0000         .10000E-03   10000.    
    21 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.9969       1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.415       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0292       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .81159       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=   5729.487     FROM MIGRAD    STATUS=CONVERGED    634 CALLS     2730 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    57.154       -.91731E-08** at limit **
   2  Prefactor     .10000E-03    263.59        .43848E-05** at limit **
   3  norm          .10000E-03    .62804       -.75402E-07** at limit **
   4  Prefactor     1.8461        3.4666       -.11963E-06   -.10003E-03
   5  norm          .10000E-03    6.8219        .26791E-06** at limit **
   6  Prefactor     .10000E-03    3.7137       -.38307E-07** at limit **
   7  Prefactor     .10000E-03    3.2893       -.22616E-06** at limit **
   8  Prefactor     .10000E-03    9.5369        .83441E-07** at limit **
   9  norm          2.1578        3.9700       -.39155E-06   -.13995E-03
  10  Prefactor     9.2052        9.8742        .11255E-05   -.34284E-05
  11  Prefactor     .10000E-03    5.5189       -.10859E-06** at limit **
  12  Prefactor     6.3189        3.9516       -.12189E-06   -.25607E-04
  13  norm          .10000E-03    13.955        .11645E-05** at limit **
  14  Prefactor     .10000E-03    7.1193       -.14545E-06** at limit **
  15  norm          1.9310        2.3527        .10091E-05   -.28893E-02
  16  Prefactor     .10000E-03    13.500       -.12531E-05** at limit **
  17  Prefactor     60.051        32.912        .10500E-06   -.98267E-05
  18  norm          13.201        9.3224       -.23773E-06   -.34730E-04
  19  Prefactor     17.653        17.439        .48557E-06   -.12455E-03
  20  Prefactor     6.7627        5.8779        .22428E-06   -.25588E-03
  21  norm          .10000E-03    .57316        .58725E-06** at limit **
  22  Prefactor     6.9974        7.0363        .41357E-07   -.24900E-03
  23  Prefactor     16.375        64.286       -.48857E-04   -.91632E-04
  24  Prefactor     .10000E-03    14.729       -.15000E-06** at limit **
  25  Normalizat    1.0292        .15866        .20070E-06   -.10596E-03
  26  Prefactor     .81167        .18014        .12829E-05   -.96811E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.84606
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.15782
  Prefactor  = 9.20521
  Prefactor  = 0.0001
  Prefactor  = 6.31893
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.931
  Prefactor  = 0.0001
  Prefactor  = 60.0512
  norm       = 13.2007
  Prefactor  = 17.6529
  Prefactor  = 6.76272
  norm       = 0.000100001
  Prefactor  = 6.99735
  Prefactor  = 16.3748
  Prefactor  = 0.0001
  Normalizat = 1.02917
  Prefactor  = 0.811668
 **********
 **   18 **HESSE 
 **********

 FCN=   5729.487     FROM HESSE     STATUS=OK           458 CALLS     3188 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    57.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    267.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.6045        .11534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.8461        3.4427        .18513E-03   -1.5436    
   5  norm          .10000E-03    6.8598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.7141        .14246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.8961        .26592E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.5805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.1578        3.9367        .19276E-03   -1.5414    
  10  Prefactor     9.2052        9.8387        .13209E-03   -1.5101    
  11  Prefactor     .10000E-03    5.5317        .17349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.3189        3.9437        .11273E-03   -1.5205    
  13  norm          .10000E-03    14.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.1323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.9310        5.7042        .14690E-02   -1.5430    
  16  Prefactor     .10000E-03    13.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     60.051        32.902        .51773E-04   -1.4157    
  18  norm          13.201        9.3436        .11025E-03   -1.4981    
  19  Prefactor     17.653        17.412        .95324E-04   -1.4867    
  20  Prefactor     6.7627        5.8262        .15429E-03   -1.5188    
  21  norm          .10000E-03    .96261        .10999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.9974        7.0429        .75831E-03   -1.5179    
  23  Prefactor     16.375        64.722        .98854E-04   -1.4898    
  24  Prefactor     .10000E-03    14.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0292        .18517        .20808E-03   -.92059    
  26  Prefactor     .81167        .20936        .26797E-03   -.99300    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53455e-08
Minuit parameter uncertainties:
  1  3.3288e-05
  2  0.000576198
  3  2.83611e-05
  4  3.44311
  5  9.45943e-06
  6  2.6017e-06
  7  3.45105e-05
  8  1.18725e-05
  9  3.93712
  10  9.84041
  11  2.44406e-05
  12  3.94388
  13  7.31866e-05
  14  6.94475e-06
  15  5.70578
  16  1.86305e-05
  17  32.9119
  18  9.34458
  19  17.4167
  20  5.8267
  21  7.15342e-05
  22  7.04371
  23  65.002
  24  1.1859e-05
  25  0.18529
  26  0.209561
Done.

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

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  7.319e-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.117e-01  2.096e-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.029e+00  1.853e-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.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.90e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/394115/likelihoodResults_642384001_642643201_4FGL_J1423.1+3738_daily_bin1555.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) = 5729.48709215
delta logL = -0.000339581455592

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5729.42169264
delta logL = 0.0650599229439

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .22899E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.9953       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0119       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82396       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.

 FCN=   5729.422     FROM MIGRAD    STATUS=CONVERGED     70 CALLS      321 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .22650E-01    1.8614        .70322E-02    .66535E-02
   2  alpha         5.0000        3.4408        .46384       -.27637E-05
   3  Normalizat    1.0123        .31574E-01    .45033E-01    .14364E-03
   4  Prefactor     .82370        .36146E-01    .44028E-01   -.29576E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0226502
  alpha      = 5
  Normalizat = 1.01226
  Prefactor  = 0.823695
 **********
 **   18 **HESSE 
 **********

 FCN=   5729.422     FROM HESSE     STATUS=OK            33 CALLS      354 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .22650E-01    .83437E-01    .26695E-03   -1.5678    
   2  alpha         5.0000        4.9556        .50000        1.5697    
   3  Normalizat    1.0123        .18670        .20954E-03   -.92621    
   4  Prefactor     .82370        .21182        .26618E-03   -.98861    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.72508e-10
Minuit parameter uncertainties:
  1  0.083437
  2  0.00908575
  3  0.18682
  4  0.21203
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/394115': 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) = 5729.4216866
delta logL = 0.0650659673693

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  2.265e-02  8.344e-02  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  5.000e+00  9.086e-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:  8.237e-01  2.120e-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.012e+00  1.868e-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/394115/cmap_HighResolution_642384001_642643201_4FGL_J1423.1+3738_daily_bin1555.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.90e-05', job_status='DONE', photon_flux_upper_limit='3.73e-08', time_completed='2021-09-09 12:30:43.746556', job_id='394115', GAL2='0.82', fit_tolerance='1e-08', EG2='1.01', EG='1.03', time_epoch_completed='1631215843.75', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='6.51e-02', ts2='0.14', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='1555' AND source_name='4FGL J1423.1+3738' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:30:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 394115: <4FGL_J1423.1+3738_daily_bin1555> in cluster <slac> Done

Job <4FGL_J1423.1+3738_daily_bin1555> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  9 12:17:10 2021
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 12:17:11 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:17:11 2021
Terminated at Thu Sep  9 12:30:44 2021
Results reported at Thu Sep  9 12:30:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1423.1+3738_daily_bin1555 215.792 37.6452 642384001 642643201 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 :                                   671.16 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             296.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            814 sec.

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

