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


Performing analysis on: 4FGL_J1423.1+3738_daily_bin1165
RA = 215.792, Dec = 37.6452
tmin = 541296001, tmax = 541555201
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='390992', job_status='RUN', time_executed='2021-09-09 12:08:46.263633', time_epoch_executed='1631214526.26' WHERE source_name='4FGL J1423.1+3738' and cadence='daily' and bin_id='1165'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/390992

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/390992/ft1_4FGL_J1423.1+3738_daily_bin1165.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/390992/ft2_4FGL_J1423.1+3738_daily_bin1165.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/390992/ft1_4FGL_J1423.1+3738_daily_bin1165.fits outfile=/scratch/kocevski/390992/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin1165.fits ra=215.792 dec=37.6452 rad=12.0 tmin=541296001.0 tmax=541555201.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.71
user 3.49
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/390992/ft1_filtered_4FGL_J1423.1+3738_daily_bin1165.fits" evtable="EVENTS" scfile=/scratch/kocevski/390992/ft2_4FGL_J1423.1+3738_daily_bin1165.fits sctable="SC_DATA" outfile=/scratch/kocevski/390992/ltcube_541296001_541555201_4FGL_J1423.1+3738_daily_bin1165.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/390992/ft2_4FGL_J1423.1+3738_daily_bin1165.fits
.....................!
real 12.00
user 11.46
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/390992/ft1_filtered_4FGL_J1423.1+3738_daily_bin1165.fits evtable="EVENTS" scfile=/scratch/kocevski/390992/ft2_4FGL_J1423.1+3738_daily_bin1165.fits sctable="SC_DATA" expcube=/scratch/kocevski/390992/ltcube_541296001_541555201_4FGL_J1423.1+3738_daily_bin1165.fits outfile=/scratch/kocevski/390992/expmap_541296001_541555201_4FGL_J1423.1+3738_daily_bin1165.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/390992/ltcube_541296001_541555201_4FGL_J1423.1+3738_daily_bin1165.fits
.....................!
real 190.48
user 185.39
sys 4.59

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/390992/ft1_filtered_4FGL_J1423.1+3738_daily_bin1165.fits scfile=/scratch/kocevski/390992/ft2_4FGL_J1423.1+3738_daily_bin1165.fits outfile=/scratch/kocevski/390992/cmap_541296001_541555201_4FGL_J1423.1+3738_daily_bin1165.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.84
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/390992/ft1_filtered_4FGL_J1423.1+3738_daily_bin1165.fits scfile=/scratch/kocevski/390992/ft2_4FGL_J1423.1+3738_daily_bin1165.fits outfile=/scratch/kocevski/390992/cmap_HighResolution_541296001_541555201_4FGL_J1423.1+3738_daily_bin1165.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.79
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.134       1.0000         .10000E-03   10000.    
     3 'norm      '    3.9750       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .56980       1.0000         .10000E-03   10000.    
     5 'norm      '    17.009       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.5863       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .19637E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    32.943       1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.364       1.0000         .10000E-03   10000.    
    15 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.148       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.010       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.2065       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .27240E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2532       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .64924       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=   6180.107     FROM MIGRAD    STATUS=CONVERGED    615 CALLS     2709 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.580        .18481E-06** at limit **
   2  Prefactor     13.148        67.854        .11323E-05    .90953E-05
   3  norm          3.9751        1.7587        .69667E-07    .55106E-04
   4  Prefactor     .57049        4.2236        .38062E-05    .54667E-03
   5  norm          17.008        15.080        .24329E-06    .11827E-04
   6  Prefactor     .10000E-03    14.193        .87578E-07** at limit **
   7  Prefactor     2.5856        3.0893        .65048E-07    .15818E-04
   8  Prefactor     .10000E-03    68.948        .25461E-05** at limit **
   9  norm          .10000E-03    2.0717        .16307E-07** at limit **
  10  Prefactor     .10000E-03    25.606       -.34481E-06** at limit **
  11  Prefactor     .10000E-03    38.878       -.94403E-06** at limit **
  12  Prefactor     32.944        6.7231        .94329E-08   -.16476E-03
  13  norm          .10000E-03    6.8536       -.11751E-06** at limit **
  14  Prefactor     14.355        29.116        .33813E-06   -.16514E-04
  15  norm          .10000E-03    2.3862       -.68174E-06** at limit **
  16  Prefactor     17.080        49.020       -.59917E-06   -.75378E-04
  17  Prefactor     .10000E-03    34.600        .15668E-06** at limit **
  18  norm          .10000E-03    3.3988       -.91420E-07** at limit **
  19  Prefactor     12.013        15.631        .21704E-06    .20712E-05
  20  Prefactor     .10000E-03    2.8230       -.10801E-06** at limit **
  21  norm          2.2067        1.5739        .50196E-07    .14600E-03
  22  Prefactor     .23024E-02    10.992       -.28200E-05** at limit **
  23  Prefactor     .10000E-03    27.671       -.11667E-07** at limit **
  24  Prefactor     .10000E-03    10.386        .45338E-07** at limit **
  25  Normalizat    1.2530        .17991       -.12468E-05    .37890E-04
  26  Prefactor     .64939        .18860        .67555E-06   -.35067E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 13.1484
  norm       = 3.97513
  Prefactor  = 0.57049
  norm       = 17.0083
  Prefactor  = 0.0001
  Prefactor  = 2.58564
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.944
  norm       = 0.0001
  Prefactor  = 14.3549
  norm       = 0.0001
  Prefactor  = 17.0804
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.0129
  Prefactor  = 0.0001
  norm       = 2.20667
  Prefactor  = 0.0023024
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.25296
  Prefactor  = 0.649393
 **********
 **   18 **HESSE 
 **********

 FCN=   6180.107     FROM HESSE     STATUS=OK           462 CALLS     3171 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.148        68.733        .11053E-03   -1.4983    
   3  norm          3.9751        1.7623        .66361E-04   -1.5309    
   4  Prefactor     .57049        4.2755        .30666E-03   -1.5557    
   5  norm          17.008        15.108        .97113E-04   -1.4883    
   6  Prefactor     .10000E-03    14.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.5856        3.0854        .14703E-03   -1.5386    
   8  Prefactor     .10000E-03    71.852        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.0929        .11046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    26.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    39.866        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     32.944        6.7507        .69815E-04   -1.4559    
  13  norm          .10000E-03    6.8641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.355        29.216        .10568E-03   -1.4950    
  15  norm          .10000E-03    2.3920        .11845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     17.080        49.048        .96719E-04   -1.4881    
  17  Prefactor     .10000E-03    34.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.4025        .14152E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.013        15.629        .11559E-03   -1.5015    
  20  Prefactor     .10000E-03    2.8299        .12891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.2067        1.5665        .79006E-04   -1.5411    
  22  Prefactor     .23024E-02    8.6060        .61627E-01   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    27.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    10.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2530        .21556        .21639E-03   -.84982    
  26  Prefactor     .64939        .22281        .31914E-03   -1.0554    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.21798e-09
Minuit parameter uncertainties:
  1  5.4375e-05
  2  60.2328
  3  1.76235
  4  3.12357
  5  15.1113
  6  1.44122e-05
  7  3.08557
  8  0.000776132
  9  2.33688e-06
  10  1.28665e-05
  11  6.06697e-05
  12  6.75081
  13  5.53795e-06
  14  29.245
  15  2.6564e-05
  16  49.1636
  17  1.18929e-05
  18  4.32549e-06
  19  15.6344
  20  3.62518e-06
  21  1.56657
  22  0.275385
  23  2.27176e-05
  24  2.30955e-05
  25  0.215715
  26  0.22311
Done.

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

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  5.538e-06  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:  6.494e-01  2.231e-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.253e+00  2.157e-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.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.67e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/390992/likelihoodResults_541296001_541555201_4FGL_J1423.1+3738_daily_bin1165.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) = 6180.10817439
delta logL = -0.000691319815814

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6180.10748314
delta logL = -7.27395672584e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10162E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9125       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2530       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64935       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=   6180.107     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      205 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.0075        .90712E-02** at limit **
   2  alpha         1.8967        3.3832        .42688        .11474E-04
   3  Normalizat    1.2530        .16770        .48948E-01    .12966E-04
   4  Prefactor     .64939        .18465        .72099E-01    .11626E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.89668
  Normalizat = 1.25296
  Prefactor  = 0.649394
 **********
 **   18 **HESSE 
 **********

 FCN=   6180.107     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.9811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8967        3.3821        .50000       -.24373    
   3  Normalizat    1.2530        .19853        .21639E-03   -.84982    
   4  Prefactor     .64939        .21818        .31914E-03   -1.0554    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51641e-10
Minuit parameter uncertainties:
  1  5.84593e-05
  2  2.42634
  3  0.198649
  4  0.218463
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/390992': 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) = 6180.10748293
delta logL = 1.40671545523e-07

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  5.846e-05  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  1.897e+00  2.426e+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:  6.494e-01  2.185e-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.253e+00  1.986e-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/390992/cmap_HighResolution_541296001_541555201_4FGL_J1423.1+3738_daily_bin1165.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.67e-05', job_status='DONE', photon_flux_upper_limit='3.43e-08', time_completed='2021-09-09 12:20:30.166950', job_id='390992', GAL2='0.65', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1631215230.17', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='1.41e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='1165' AND source_name='4FGL J1423.1+3738' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:20:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 390992: <4FGL_J1423.1+3738_daily_bin1165> in cluster <slac> Done

Job <4FGL_J1423.1+3738_daily_bin1165> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Sep  9 12:06:34 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 12:06:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 12:06:36 2021
Terminated at Thu Sep  9 12:20:31 2021
Results reported at Thu Sep  9 12:20:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1423.1+3738_daily_bin1165 215.792 37.6452 541296001 541555201 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 :                                   688.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             260.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   835 sec.
    Turnaround time :                            837 sec.

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

