/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 237 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 = 7410
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1423.1+3738_daily_bin390
RA = 215.792, Dec = 37.6452
tmin = 340416001, tmax = 340675201
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='387635', job_status='RUN', time_executed='2021-09-09 12:00:32.737752', time_epoch_executed='1631214032.74' WHERE source_name='4FGL J1423.1+3738' and cadence='daily' and bin_id='390'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/387635

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

Retrieving the FT1 file...

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

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

Retrieving 53 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/387635/ft1_4FGL_J1423.1+3738_daily_bin390.fits


Retrieving the FT1 file...

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

Retrieving 53 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/387635/ft2_4FGL_J1423.1+3738_daily_bin390.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/387635/ft1_4FGL_J1423.1+3738_daily_bin390.fits outfile=/scratch/kocevski/387635/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin390.fits ra=215.792 dec=37.6452 rad=12.0 tmin=340416001.0 tmax=340675201.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 6.91
user 6.62
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/387635/ft1_filtered_4FGL_J1423.1+3738_daily_bin390.fits" evtable="EVENTS" scfile=/scratch/kocevski/387635/ft2_4FGL_J1423.1+3738_daily_bin390.fits sctable="SC_DATA" outfile=/scratch/kocevski/387635/ltcube_340416001_340675201_4FGL_J1423.1+3738_daily_bin390.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/387635/ft2_4FGL_J1423.1+3738_daily_bin390.fits
.....................!
real 11.11
user 10.74
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/387635/ft1_filtered_4FGL_J1423.1+3738_daily_bin390.fits evtable="EVENTS" scfile=/scratch/kocevski/387635/ft2_4FGL_J1423.1+3738_daily_bin390.fits sctable="SC_DATA" expcube=/scratch/kocevski/387635/ltcube_340416001_340675201_4FGL_J1423.1+3738_daily_bin390.fits outfile=/scratch/kocevski/387635/expmap_340416001_340675201_4FGL_J1423.1+3738_daily_bin390.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/387635/ltcube_340416001_340675201_4FGL_J1423.1+3738_daily_bin390.fits
.....................!
real 191.12
user 185.20
sys 5.34

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/387635/ft1_filtered_4FGL_J1423.1+3738_daily_bin390.fits scfile=/scratch/kocevski/387635/ft2_4FGL_J1423.1+3738_daily_bin390.fits outfile=/scratch/kocevski/387635/cmap_340416001_340675201_4FGL_J1423.1+3738_daily_bin390.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/387635/ft1_filtered_4FGL_J1423.1+3738_daily_bin390.fits scfile=/scratch/kocevski/387635/ft2_4FGL_J1423.1+3738_daily_bin390.fits outfile=/scratch/kocevski/387635/cmap_HighResolution_340416001_340675201_4FGL_J1423.1+3738_daily_bin390.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/387635/ft1_filtered_4FGL_J1423.1+3738_daily_bin390.fits evtable="EVENTS" scfile=/scratch/kocevski/387635/ft2_4FGL_J1423.1+3738_daily_bin390.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/387635/Model_4FGL_J1423.1+3738_daily_bin390.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/387635/ft1_filtered_4FGL_J1423.1+3738_daily_bin390.fits.....................!
real 43.41
user 41.85
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.998       1.0000         .10000E-03   10000.    
     3 'norm      '    12.536       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .99885       1.0000         .10000E-03   10000.    
     5 'norm      '    .10163E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.613       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    25.267       1.0000         .10000E-03   10000.    
     9 'norm      '    4.0351       1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.272       1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.346       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    34.217       1.0000         .10000E-03   10000.    
    17 'Prefactor '    46.054       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.6348       1.0000         .10000E-03   10000.    
    21 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.0974       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .73863       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0939       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=   5174.350     FROM MIGRAD    STATUS=CONVERGED    605 CALLS     3061 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.800        .54396E-06** at limit **
   2  Prefactor     20.209        75.776        .14167E-04    .12724E-03
   3  norm          12.536        2.5174        .10663E-06    .32003E-03
   4  Prefactor     1.0008        3.4186        .22225E-05    .37082E-03
   5  norm          .10001E-03    33.641        .48331E-05** at limit **
   6  Prefactor     18.615        20.995       -.59111E-08    .21005E-04
   7  Prefactor     .10000E-03    3.5722       -.21125E-06** at limit **
   8  Prefactor     25.282        23.666        .35638E-05    .15898E-03
   9  norm          4.0354        3.8220        .24492E-06    .15661E-03
  10  Prefactor     20.285        21.980        .56076E-06    .13190E-03
  11  Prefactor     18.348        25.997        .23165E-05    .14540E-03
  12  Prefactor     .10000E-03    .93485       -.26575E-06** at limit **
  13  norm          .10000E-03    7.9186       -.24199E-06** at limit **
  14  Prefactor     .10000E-03    96.761       -.30552E-05** at limit **
  15  norm          .10000E-03    2.6118       -.57667E-06** at limit **
  16  Prefactor     34.210        34.890        .11406E-05    .81778E-04
  17  Prefactor     46.077        39.018        .22438E-05    .88845E-04
  18  norm          .10000E-03    3.0569       -.12135E-06** at limit **
  19  Prefactor     .10000E-03    5.5634       -.38547E-06** at limit **
  20  Prefactor     5.6352        6.0946        .44995E-06    .28764E-03
  21  norm          .10000E-03    .71659       -.62335E-06** at limit **
  22  Prefactor     .10000E-03    3.6963       -.36765E-06** at limit **
  23  Prefactor     .10001E-03    124.17       -.40048E-05** at limit **
  24  Prefactor     9.1006        17.008        .68929E-06    .34759E-04
  25  Normalizat    .73763        .23452       -.21479E-04    .42585E-03
  26  Prefactor     1.0949        .24583        .19165E-04    .20120E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 20.2088
  norm       = 12.5362
  Prefactor  = 1.00076
  norm       = 0.000100005
  Prefactor  = 18.6153
  Prefactor  = 0.0001
  Prefactor  = 25.2819
  norm       = 4.03542
  Prefactor  = 20.2852
  Prefactor  = 18.3476
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 34.2102
  Prefactor  = 46.0774
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.63523
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 9.10057
  Normalizat = 0.737629
  Prefactor  = 1.09494
 **********
 **   18 **HESSE 
 **********

 FCN=   5174.350     FROM HESSE     STATUS=OK           446 CALLS     3507 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     20.209        75.971        .89565E-04   -1.4809    
   3  norm          12.536        2.5170        .49003E-04   -1.5000    
   4  Prefactor     1.0008        3.4163        .23085E-03   -1.5508    
   5  norm          .10001E-03    34.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.615        20.977        .92835E-04   -1.4845    
   7  Prefactor     .10000E-03    3.6108        .13257E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     25.282        23.633        .79693E-04   -1.4702    
   9  norm          4.0354        3.8152        .13071E-03   -1.5306    
  10  Prefactor     20.285        21.940        .88959E-04   -1.4807    
  11  Prefactor     18.348        25.954        .93509E-04   -1.4851    
  12  Prefactor     .10000E-03    .93831        .67922E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    7.9285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    99.444        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.6262        .11355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     34.210        34.902        .68506E-04   -1.4538    
  17  Prefactor     46.077        39.030        .59082E-04   -1.4349    
  18  norm          .10000E-03    3.0588        .12283E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.5915        .16572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.6352        6.0807        .16923E-03   -1.5233    
  21  norm          .10000E-03    .74505        .11875E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.7057        .13506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    124.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     9.1006        17.000        .13288E-03   -1.5105    
  25  Normalizat    .73763        .23394        .25341E-03   -1.0243    
  26  Prefactor     1.0949        .24591        .24893E-03   -.89628    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15391e-09
Minuit parameter uncertainties:
  1  9.74803e-05
  2  76.338
  3  2.51698
  4  3.41696
  5  0.000864799
  6  20.9855
  7  2.1255e-05
  8  23.642
  9  3.81546
  10  21.949
  11  25.97
  12  5.33828e-06
  13  2.547e-05
  14  0.000214619
  15  2.19217e-05
  16  34.9231
  17  39.0516
  18  6.94839e-06
  19  2.83863e-05
  20  6.08136
  21  1.32685e-05
  22  1.47537e-05
  23  0.0022054
  24  17.0094
  25  0.234258
  26  0.246169
Done.

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

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  2.547e-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:  1.095e+00  2.462e-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:  7.376e-01  2.343e-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.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.11e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/387635/likelihoodResults_340416001_340675201_4FGL_J1423.1+3738_daily_bin390.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) = 5174.35077754
delta logL = -0.00059930461066

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5174.35017845
delta logL = -2.11635779124e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10354E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9435       1.0000          .0000       5.0000    
     3 'Normalizat'    .73769       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0949       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=   5174.350     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      197 TOTAL
                     EDM=   .96E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.7863        .90712E-02** at limit **
   2  alpha         1.9594        3.4209        .42520       -.96997E-05
   3  Normalizat    .73763        .16858        .42791E-01    .30928E-04
   4  Prefactor     1.0949        .19915        .56294E-01    .16811E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.95938
  Normalizat = 0.737625
  Prefactor  = 1.09494
 **********
 **   18 **HESSE 
 **********

 FCN=   5174.350     FROM HESSE     STATUS=OK            33 CALLS      230 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.1081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9594        3.4039        .50000       -.21797    
   3  Normalizat    .73763        .19889        .25344E-03   -1.0243    
   4  Prefactor     1.0949        .23496        .24892E-03   -.89628    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.99477e-11
Minuit parameter uncertainties:
  1  4.98366e-05
  2  2.44773
  3  0.199088
  4  0.235179
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/387635': 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) = 5174.35017811
delta logL = 1.25192855194e-07

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  4.984e-05  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  1.959e+00  2.448e+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:  1.095e+00  2.352e-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:  7.376e-01  1.991e-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/387635/cmap_HighResolution_340416001_340675201_4FGL_J1423.1+3738_daily_bin390.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.11e-05', job_status='DONE', photon_flux_upper_limit='4.00e-08', time_completed='2021-09-09 12:11:42.046234', job_id='387635', GAL2='1.09', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1631214702.05', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='1.25e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='390' AND source_name='4FGL J1423.1+3738' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:11:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 387635: <4FGL_J1423.1+3738_daily_bin390> in cluster <slac> Done

Job <4FGL_J1423.1+3738_daily_bin390> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  9 11:56:25 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 11:56:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 11:56:26 2021
Terminated at Thu Sep  9 12:11:42 2021
Results reported at Thu Sep  9 12:11:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1423.1+3738_daily_bin390 215.792 37.6452 340416001 340675201 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 :                                   665.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             224.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            917 sec.

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

