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


Performing analysis on: 4FGL_J1423.1+3738_daily_bin815
RA = 215.792, Dec = 37.6452
tmin = 450576001, tmax = 450835201
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='389334', job_status='RUN', time_executed='2021-09-09 12:01:44.346443', time_epoch_executed='1631214104.35' WHERE source_name='4FGL J1423.1+3738' and cadence='daily' and bin_id='815'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/389334

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/389334/ft1_4FGL_J1423.1+3738_daily_bin815.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/389334/ft2_4FGL_J1423.1+3738_daily_bin815.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/389334/ft1_4FGL_J1423.1+3738_daily_bin815.fits outfile=/scratch/kocevski/389334/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin815.fits ra=215.792 dec=37.6452 rad=12.0 tmin=450576001.0 tmax=450835201.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.53
user 3.29
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/389334/ft2_4FGL_J1423.1+3738_daily_bin815.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/389334/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin815.fits evtable="EVENTS" outfile="/scratch/kocevski/389334/ft1_filtered_4FGL_J1423.1+3738_daily_bin815.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.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/389334/ft1_filtered_4FGL_J1423.1+3738_daily_bin815.fits" evtable="EVENTS" scfile=/scratch/kocevski/389334/ft2_4FGL_J1423.1+3738_daily_bin815.fits sctable="SC_DATA" outfile=/scratch/kocevski/389334/ltcube_450576001_450835201_4FGL_J1423.1+3738_daily_bin815.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/389334/ft2_4FGL_J1423.1+3738_daily_bin815.fits
.....................!
real 11.58
user 11.23
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/389334/ft1_filtered_4FGL_J1423.1+3738_daily_bin815.fits evtable="EVENTS" scfile=/scratch/kocevski/389334/ft2_4FGL_J1423.1+3738_daily_bin815.fits sctable="SC_DATA" expcube=/scratch/kocevski/389334/ltcube_450576001_450835201_4FGL_J1423.1+3738_daily_bin815.fits outfile=/scratch/kocevski/389334/expmap_450576001_450835201_4FGL_J1423.1+3738_daily_bin815.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/389334/ltcube_450576001_450835201_4FGL_J1423.1+3738_daily_bin815.fits
.....................!
real 190.75
user 185.05
sys 5.36

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/389334/ft1_filtered_4FGL_J1423.1+3738_daily_bin815.fits scfile=/scratch/kocevski/389334/ft2_4FGL_J1423.1+3738_daily_bin815.fits outfile=/scratch/kocevski/389334/cmap_450576001_450835201_4FGL_J1423.1+3738_daily_bin815.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/389334/ft1_filtered_4FGL_J1423.1+3738_daily_bin815.fits scfile=/scratch/kocevski/389334/ft2_4FGL_J1423.1+3738_daily_bin815.fits outfile=/scratch/kocevski/389334/cmap_HighResolution_450576001_450835201_4FGL_J1423.1+3738_daily_bin815.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.53
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.1920       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .70868       1.0000         .10000E-03   10000.    
     5 'norm      '    20.159       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.2038       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10218E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.3760       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .67128E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.4395       1.0000         .10000E-03   10000.    
    13 'norm      '    11.010       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.6822       1.0000         .10000E-03   10000.    
    18 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.2903       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.6400       1.0000         .10000E-03   10000.    
    21 'norm      '    2.5587       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .88895       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .95173       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=   5695.660     FROM MIGRAD    STATUS=CONVERGED    629 CALLS     2667 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    197.06       -.76885E-05** at limit **
   2  Prefactor     .10000E-03    62.682        .16092E-04** at limit **
   3  norm          7.1913        1.9346       -.68256E-08    .18701E-03
   4  Prefactor     .70898        2.1826       -.68743E-06   -.96803E-03
   5  norm          20.153        14.327       -.58322E-06   -.77853E-04
   6  Prefactor     .10000E-03    14.812        .16566E-04** at limit **
   7  Prefactor     2.2042        2.8836       -.21445E-07    .80223E-04
   8  Prefactor     .10000E-03    15.875       -.16225E-04** at limit **
   9  norm          3.3755        2.7887       -.78049E-07   -.25074E-03
  10  Prefactor     .10000E-03    23.966        .18519E-04** at limit **
  11  Prefactor     .10002E-03    7.7757       -.21016E-05** at limit **
  12  Prefactor     5.4388        3.3641       -.61458E-08   -.11598E-03
  13  norm          11.008        10.896       -.49716E-06   -.14571E-03
  14  Prefactor     .10000E-03    21.827       -.78745E-05** at limit **
  15  norm          .10000E-03    2.0503       -.24484E-07** at limit **
  16  Prefactor     .10000E-03    13.421       -.35018E-05** at limit **
  17  Prefactor     2.5638        98.040       -.15291E-04   -.22691E-04
  18  norm          .10000E-03    3.0386       -.86395E-07** at limit **
  19  Prefactor     5.2834        13.965       -.10329E-05   -.59639E-04
  20  Prefactor     2.6400        5.2456        .35091E-05   -.32643E-03
  21  norm          2.5584        1.5416       -.29350E-06   -.14538E-03
  22  Prefactor     .10000E-03    3.5637        .34463E-07** at limit **
  23  Prefactor     .10000E-03    35.063       -.14448E-04** at limit **
  24  Prefactor     .10000E-03    5.5414       -.49807E-07** at limit **
  25  Normalizat    .88939        .16657        .10326E-05    .14388E-03
  26  Prefactor     .95113        .18327       -.19153E-06    .14940E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.19131
  Prefactor  = 0.708978
  norm       = 20.1526
  Prefactor  = 0.0001
  Prefactor  = 2.20425
  Prefactor  = 0.0001
  norm       = 3.37549
  Prefactor  = 0.0001
  Prefactor  = 0.000100016
  Prefactor  = 5.43879
  norm       = 11.0079
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.56383
  norm       = 0.0001
  Prefactor  = 5.28339
  Prefactor  = 2.64
  norm       = 2.55844
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.889394
  Prefactor  = 0.951129
 **********
 **   18 **HESSE 
 **********

 FCN=   5695.660     FROM HESSE     STATUS=OK           458 CALLS     3125 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    197.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    62.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.1913        1.9395        .52029E-04   -1.5172    
   4  Prefactor     .70898        2.2495        .18811E-02   -1.5540    
   5  norm          20.153        14.363        .89206E-04   -1.4810    
   6  Prefactor     .10000E-03    14.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.2042        2.8734        .14270E-03   -1.5411    
   8  Prefactor     .10000E-03    16.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.3755        2.7831        .11083E-03   -1.5340    
  10  Prefactor     .10000E-03    24.311        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10002E-03    47.207        .39251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.4388        3.3668        .10433E-03   -1.5242    
  13  norm          11.008        10.758        .12074E-03   -1.5044    
  14  Prefactor     .10000E-03    22.398        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.0595        .10551E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    13.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.5638        98.505        .24880E-03   -1.5388    
  18  norm          .10000E-03    3.0420        .12848E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.2834        13.922        .17475E-03   -1.5248    
  20  Prefactor     2.6400        5.1728        .22535E-03   -1.5383    
  21  norm          2.5584        1.5319        .67276E-04   -1.5388    
  22  Prefactor     .10000E-03    3.5811        .13913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    35.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.5434        .17351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .88939        .19479        .22384E-03   -.96834    
  26  Prefactor     .95113        .21670        .25369E-03   -.94377    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1357e-09
Minuit parameter uncertainties:
  1  0.000113112
  2  6.43849e-05
  3  1.93955
  4  2.24974
  5  14.3655
  6  0.000161318
  7  2.87358
  8  5.21225e-05
  9  2.78318
  10  0.000187425
  11  0.00171348
  12  3.36696
  13  10.7602
  14  9.2023e-05
  15  8.27718e-07
  16  2.25721e-06
  17  31.8396
  18  9.20385e-07
  19  13.9306
  20  5.1737
  21  1.53195
  22  1.95287e-06
  23  9.12674e-06
  24  9.82414e-07
  25  0.194943
  26  0.2169
Done.

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

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.101e+01  1.076e+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:  9.511e-01  2.169e-01  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
575   Normalization:  8.894e-01  1.949e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.23
Ra Dec: 215.792 37.645
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 1.21e-08 +/- 1.19e-08
Energy Flux (Fixed Index): 9.44e-06 +/- 9.23e-06

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

Saving results to:
/scratch/kocevski/389334/likelihoodResults_450576001_450835201_4FGL_J1423.1+3738_daily_bin815.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) = 5695.62730108
delta logL = 0.0329400578885

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5695.62516342
delta logL = 0.0350777141875

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.351       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2234       1.0000          .0000       5.0000    
     3 'Normalizat'    .88292       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95433       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=   5695.625     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      232 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.352        10.883        .12454E-03   -.20897E-03
   2  alpha         2.2236        1.0750        .16115E-01   -.35913E-04
   3  Normalizat    .88278        .18581        .22457E-03    .12049E-03
   4  Prefactor     .95451        .21569        .25325E-03    .36489E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.3525
  alpha      = 2.2236
  Normalizat = 0.882781
  Prefactor  = 0.954515
 **********
 **   18 **HESSE 
 **********

 FCN=   5695.625     FROM HESSE     STATUS=OK            25 CALLS      257 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.352        10.568        .24908E-04   -1.5064    
   2  alpha         2.2236        1.0450        .64460E-03   -.11079    
   3  Normalizat    .88278        .18573        .89828E-05   -.97068    
   4  Prefactor     .95451        .21581        .50651E-04   -.94261    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.26846e-10
Minuit parameter uncertainties:
  1  10.5698
  2  1.0786
  3  0.185865
  4  0.216001
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/389334': 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) = 5695.62516304
delta logL = 0.0350781031739

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.035e+01  1.057e+01  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  2.224e+00  1.079e+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.545e-01  2.160e-01  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
575   Normalization:  8.828e-01  1.859e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.30
Ra Dec: 215.792 37.645
Photon Index (Free Index): 2.22 +/- 1.08
Photon Flux (Free Index): 1.77e-08 +/- 2.79e-08
Energy Flux (Free Index): 8.70e-06 +/- 8.10e-06

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/389334/cmap_HighResolution_450576001_450835201_4FGL_J1423.1+3738_daily_bin815.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.65e-05', comment='SUCCESS', photon_flux='1.21e-08', energy_flux2='8.70e-06', photon_flux_error='1.19e-08', dlogl='3.51e-02', energy_flux='9.44e-06', photon_flux2='1.77e-08', job_status='DONE', time_completed='2021-09-09 12:12:53.895868', photon_index_error2='1.08', photon_index2='2.22', ts='3.23', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='4.69e-08', energy_flux_error2='8.10e-06', EG='0.89', time_epoch_completed='1631214773.9', return_code='0', job_id='389334', GAL2='0.95', EG2='0.88', return_code2='0', energy_flux_error='9.23e-06', photon_flux_error2='2.79e-08', ts2='3.30', photon_index='1.93' WHERE bin_id='815' AND source_name='4FGL J1423.1+3738' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:12:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 389334: <4FGL_J1423.1+3738_daily_bin815> in cluster <slac> Done

Job <4FGL_J1423.1+3738_daily_bin815> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 12:01:28 2021
Job was executed on host(s) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 12:01:29 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:01:29 2021
Terminated at Thu Sep  9 12:12:54 2021
Results reported at Thu Sep  9 12:12:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1423.1+3738_daily_bin815 215.792 37.6452 450576001 450835201 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 :                                   659.34 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             353.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   685 sec.
    Turnaround time :                            686 sec.

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

