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


Performing analysis on: 4FGL_J1423.1+3738_daily_bin790
RA = 215.792, Dec = 37.6452
tmin = 444096001, tmax = 444355201
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='389299', job_status='RUN', time_executed='2021-09-09 12:01:40.781921', time_epoch_executed='1631214100.78' WHERE source_name='4FGL J1423.1+3738' and cadence='daily' and bin_id='790'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/389299

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/389299/ft1_4FGL_J1423.1+3738_daily_bin790.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/389299/ft2_4FGL_J1423.1+3738_daily_bin790.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/389299/ft1_4FGL_J1423.1+3738_daily_bin790.fits outfile=/scratch/kocevski/389299/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin790.fits ra=215.792 dec=37.6452 rad=12.0 tmin=444096001.0 tmax=444355201.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.77
user 3.52
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/389299/ft2_4FGL_J1423.1+3738_daily_bin790.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/389299/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin790.fits evtable="EVENTS" outfile="/scratch/kocevski/389299/ft1_filtered_4FGL_J1423.1+3738_daily_bin790.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/389299/ft1_filtered_4FGL_J1423.1+3738_daily_bin790.fits" evtable="EVENTS" scfile=/scratch/kocevski/389299/ft2_4FGL_J1423.1+3738_daily_bin790.fits sctable="SC_DATA" outfile=/scratch/kocevski/389299/ltcube_444096001_444355201_4FGL_J1423.1+3738_daily_bin790.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/389299/ft2_4FGL_J1423.1+3738_daily_bin790.fits
.....................!
real 12.16
user 11.82
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/389299/ft1_filtered_4FGL_J1423.1+3738_daily_bin790.fits evtable="EVENTS" scfile=/scratch/kocevski/389299/ft2_4FGL_J1423.1+3738_daily_bin790.fits sctable="SC_DATA" expcube=/scratch/kocevski/389299/ltcube_444096001_444355201_4FGL_J1423.1+3738_daily_bin790.fits outfile=/scratch/kocevski/389299/expmap_444096001_444355201_4FGL_J1423.1+3738_daily_bin790.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/389299/ltcube_444096001_444355201_4FGL_J1423.1+3738_daily_bin790.fits
.....................!
real 190.72
user 185.55
sys 4.81

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/389299/ft1_filtered_4FGL_J1423.1+3738_daily_bin790.fits scfile=/scratch/kocevski/389299/ft2_4FGL_J1423.1+3738_daily_bin790.fits outfile=/scratch/kocevski/389299/cmap_444096001_444355201_4FGL_J1423.1+3738_daily_bin790.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=215.792 yref=37.6452 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/389299/ft1_filtered_4FGL_J1423.1+3738_daily_bin790.fits scfile=/scratch/kocevski/389299/ft2_4FGL_J1423.1+3738_daily_bin790.fits outfile=/scratch/kocevski/389299/cmap_HighResolution_444096001_444355201_4FGL_J1423.1+3738_daily_bin790.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    94.844       1.0000         .10000E-03   10000.    
     3 'norm      '    15.901       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.0063       1.0000         .10000E-03   10000.    
     5 'norm      '    4.8143       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.9801       1.0000         .10000E-03   10000.    
     8 'Prefactor '    29.287       1.0000         .10000E-03   10000.    
     9 'norm      '    2.8809       1.0000         .10000E-03   10000.    
    10 'Prefactor '    37.359       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.9382       1.0000         .10000E-03   10000.    
    13 'norm      '    .10082E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10700E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .25358E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    40.982       1.0000         .10000E-03   10000.    
    18 'norm      '    8.8334       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.148       1.0000         .10000E-03   10000.    
    21 'norm      '    5.7896       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.7507       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .89674       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1000       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=   7586.154     FROM MIGRAD    STATUS=CONVERGED    594 CALLS     3126 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.923       -.59383E-06** at limit **
   2  Prefactor     94.730        71.538       -.96735E-06   -.99306E-04
   3  norm          15.902        2.5573       -.20034E-07   -.15018E-04
   4  Prefactor     3.0071        4.1658        .34487E-06    .31615E-04
   5  norm          4.8188        11.947        .30501E-07   -.31502E-05
   6  Prefactor     .10000E-03    8.5879        .63321E-07** at limit **
   7  Prefactor     7.9791        5.0436        .56518E-07   -.62942E-05
   8  Prefactor     29.300        21.458       -.17621E-06    .20455E-04
   9  norm          2.8807        2.6389       -.96406E-06   -.32135E-03
  10  Prefactor     37.366        15.532       -.29545E-07   -.46025E-04
  11  Prefactor     .10000E-03    6.9551        .11139E-06** at limit **
  12  Prefactor     6.9407        4.1671        .16600E-07    .52429E-05
  13  norm          .10000E-03    6.3116        .11889E-06** at limit **
  14  Prefactor     .10000E-03    37.394        .17259E-05** at limit **
  15  norm          .10000E-03    3.7708        .80896E-06** at limit **
  16  Prefactor     .10000E-03    9.8832        .82861E-07** at limit **
  17  Prefactor     40.988        28.622       -.12524E-06    .48534E-05
  18  norm          8.8332        6.3128       -.88222E-07   -.70002E-04
  19  Prefactor     .10000E-03    5.6755        .15467E-06** at limit **
  20  Prefactor     15.149        9.7754       -.88520E-07   -.88414E-04
  21  norm          5.7901        2.1487       -.18006E-07   -.14694E-03
  22  Prefactor     5.7513        6.4899        .18963E-05    .18449E-03
  23  Prefactor     .10000E-03    16.221       -.24228E-07** at limit **
  24  Prefactor     .10000E-03    18.623        .23333E-06** at limit **
  25  Normalizat    .89599        .18950        .28557E-05   -.21520E-03
  26  Prefactor     1.1008        .19887       -.30806E-05    .11628E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 94.7301
  norm       = 15.9018
  Prefactor  = 3.00714
  norm       = 4.81885
  Prefactor  = 0.0001
  Prefactor  = 7.97907
  Prefactor  = 29.2997
  norm       = 2.88074
  Prefactor  = 37.3656
  Prefactor  = 0.0001
  Prefactor  = 6.94071
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 40.9881
  norm       = 8.83325
  Prefactor  = 0.0001
  Prefactor  = 15.1494
  norm       = 5.79008
  Prefactor  = 5.75128
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.895987
  Prefactor  = 1.10083
 **********
 **   18 **HESSE 
 **********

 FCN=   7586.154     FROM HESSE     STATUS=OK           464 CALLS     3590 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    42.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     94.730        71.825        .20635E-03   -1.3758    
   3  norm          15.902        2.5593        .53583E-04   -1.4910    
   4  Prefactor     3.0071        4.1700        .19849E-03   -1.5361    
   5  norm          4.8188        11.937        .18335E-03   -1.5269    
   6  Prefactor     .10000E-03    8.6019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.9791        5.0420        .14194E-03   -1.5143    
   8  Prefactor     29.300        21.520        .74033E-04   -1.4625    
   9  norm          2.8807        2.6649        .65891E-03   -1.5368    
  10  Prefactor     37.366        15.530        .65571E-04   -1.4485    
  11  Prefactor     .10000E-03    6.9647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.9407        4.1819        .12982E-03   -1.5181    
  13  norm          .10000E-03    6.3203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    38.352        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    8.7496        .32045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.8841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     40.988        28.644        .62617E-04   -1.4427    
  18  norm          8.8332        6.3100        .13486E-03   -1.5113    
  19  Prefactor     .10000E-03    5.6886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     15.149        9.7801        .10291E-03   -1.4929    
  21  norm          5.7901        2.1522        .69534E-04   -1.5227    
  22  Prefactor     5.7513        6.5746        .83745E-03   -1.5228    
  23  Prefactor     .10000E-03    16.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    18.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .89599        .21255        .27483E-03   -.96601    
  26  Prefactor     1.1008        .22230        .28366E-03   -.89440    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.1609e-10
Minuit parameter uncertainties:
  1  9.54034e-05
  2  71.891
  3  2.55927
  4  4.17035
  5  11.9428
  6  3.35798e-06
  7  5.04224
  8  21.5253
  9  2.665
  10  15.5313
  11  4.11677e-06
  12  4.18212
  13  1.02314e-05
  14  9.85266e-05
  15  0.000240573
  16  6.80999e-06
  17  28.6532
  18  6.31052
  19  9.786e-07
  20  9.78112
  21  2.15221
  22  6.57544
  23  1.93342e-05
  24  1.37399e-05
  25  0.212749
  26  0.222492
Done.

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

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  1.023e-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.101e+00  2.225e-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.960e-01  2.127e-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.17e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.46e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/389299/likelihoodResults_444096001_444355201_4FGL_J1423.1+3738_daily_bin790.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) = 7586.15507543
delta logL = -0.000749174237171

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7586.15432625
delta logL = 9.09767550183e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9365       1.0000          .0000       5.0000    
     3 'Normalizat'    .89598       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1008       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=   7586.154     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      248 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    18.979        .18142E-01** at limit **
   2  alpha         2.5273        3.3606        .50000        .14325E-07
   3  Normalizat    .89599        .68746E-02    .27482E-03   -.39051E-04
   4  Prefactor     1.1008        .78165E-02    .28367E-03   -.43244E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.52734
  Normalizat = 0.895989
  Prefactor  = 1.10083
 **********
 **   18 **HESSE 
 **********

 FCN=   7586.154     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      277 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1142.2        .44310E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5273        2.5726        .50000        .10937E-01
   3  Normalizat    .89599        .72665E-01    .10993E-04   -.96601    
   4  Prefactor     1.1008        .82601E-01    .11347E-04   -.89440    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.104e-10
Minuit parameter uncertainties:
  1  4.19788e-05
  2  3785.54
  3  0.0726729
  4  0.0826109
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/389299': 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): 102
logL (Free Index) = 7586.15432541
delta logL = 8.46337570692e-07

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  4.198e-05  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  2.527e+00  3.786e+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:  1.101e+00  8.261e-02  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.960e-01  7.267e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/389299/cmap_HighResolution_444096001_444355201_4FGL_J1423.1+3738_daily_bin790.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.46e-05', job_status='DONE', photon_flux_upper_limit='3.17e-08', time_completed='2021-09-09 12:15:20.104272', job_id='389299', GAL2='1.10', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1631214920.1', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='8.46e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='790' AND source_name='4FGL J1423.1+3738' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:15:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 389299: <4FGL_J1423.1+3738_daily_bin790> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1423.1+3738_daily_bin790 215.792 37.6452 444096001 444355201 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 :                                   810.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             332.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   833 sec.
    Turnaround time :                            834 sec.

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

