/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 228 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 = 7467
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1423.1+3738_daily_bin71
RA = 215.792, Dec = 37.6452
tmin = 257731201, tmax = 257990401
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='386144', job_status='RUN', time_executed='2021-09-09 11:55:30.960616', time_epoch_executed='1631213730.96' WHERE source_name='4FGL J1423.1+3738' and cadence='daily' and bin_id='71'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/386144

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/386144/ft1_4FGL_J1423.1+3738_daily_bin71.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/386144/ft2_4FGL_J1423.1+3738_daily_bin71.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/386144/ft1_4FGL_J1423.1+3738_daily_bin71.fits outfile=/scratch/kocevski/386144/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin71.fits ra=215.792 dec=37.6452 rad=12.0 tmin=257731201.0 tmax=257990401.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 1.39
user 1.22
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/386144/ft1_filtered_4FGL_J1423.1+3738_daily_bin71.fits evtable="EVENTS" scfile=/scratch/kocevski/386144/ft2_4FGL_J1423.1+3738_daily_bin71.fits sctable="SC_DATA" expcube=/scratch/kocevski/386144/ltcube_257731201_257990401_4FGL_J1423.1+3738_daily_bin71.fits outfile=/scratch/kocevski/386144/expmap_257731201_257990401_4FGL_J1423.1+3738_daily_bin71.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/386144/ltcube_257731201_257990401_4FGL_J1423.1+3738_daily_bin71.fits
.....................!
real 190.36
user 185.29
sys 4.70

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/386144/ft1_filtered_4FGL_J1423.1+3738_daily_bin71.fits scfile=/scratch/kocevski/386144/ft2_4FGL_J1423.1+3738_daily_bin71.fits outfile=/scratch/kocevski/386144/cmap_257731201_257990401_4FGL_J1423.1+3738_daily_bin71.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/386144/ft1_filtered_4FGL_J1423.1+3738_daily_bin71.fits scfile=/scratch/kocevski/386144/ft2_4FGL_J1423.1+3738_daily_bin71.fits outfile=/scratch/kocevski/386144/cmap_HighResolution_257731201_257990401_4FGL_J1423.1+3738_daily_bin71.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.56
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44089E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    26.754       1.0000         .10000E-03   10000.    
     3 'norm      '    7.8914       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .60599       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11708E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.2982       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .67575E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10247E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    48.702       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.3925       1.0000         .10000E-03   10000.    
    18 'norm      '    7.0002       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.4298       1.0000         .10000E-03   10000.    
    21 'norm      '    .38602E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    61.093       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.8286       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .92627       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0678       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=   4925.785     FROM MIGRAD    STATUS=CONVERGED    610 CALLS     3117 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    252.11        .14211E-04** at limit **
   2  Prefactor     26.732        51.134        .27534E-05    .24050E-05
   3  norm          7.8917        2.2053        .22921E-07   -.17939E-04
   4  Prefactor     .10000E-03    2.7936       -.19558E-07** at limit **
   5  norm          .10000E-03    11.478       -.17306E-06** at limit **
   6  Prefactor     .10000E-03    9.7486       -.96236E-07** at limit **
   7  Prefactor     .10000E-03    2.1555       -.11675E-07** at limit **
   8  Prefactor     .10000E-03    7.8759       -.12220E-06** at limit **
   9  norm          .60912        3.6530        .23194E-06   -.25579E-04
  10  Prefactor     .10000E-03    27.575       -.67662E-06** at limit **
  11  Prefactor     1.2921        91.662        .18970E-05    .89245E-05
  12  Prefactor     .10002E-03    2.3396       -.38110E-06** at limit **
  13  norm          .10000E-03    27.309       -.74039E-06** at limit **
  14  Prefactor     48.697        32.642        .29357E-06   -.13195E-05
  15  norm          .10000E-03    2.9627        .25253E-07** at limit **
  16  Prefactor     .10000E-03    21.397        .10767E-05** at limit **
  17  Prefactor     5.3939        18.841        .13681E-06    .25322E-05
  18  norm          7.0004        6.8293       -.36527E-06   -.45347E-04
  19  Prefactor     .10000E-03    8.9428        .65370E-06** at limit **
  20  Prefactor     3.4330        7.5387        .17667E-05    .10179E-03
  21  norm          .10028E-03    .94398       -.28763E-06** at limit **
  22  Prefactor     .10000E-03    10.155        .61013E-07** at limit **
  23  Prefactor     61.115        74.368       -.30938E-05   -.13804E-04
  24  Prefactor     2.8368        56.117       -.11483E-05    .95381E-06
  25  Normalizat    .92644        .19040       -.31901E-06   -.19507E-04
  26  Prefactor     1.0674        .20887       -.74990E-06   -.27742E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 26.7319
  norm       = 7.89169
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.60912
  Prefactor  = 0.0001
  Prefactor  = 1.2921
  Prefactor  = 0.000100024
  norm       = 0.0001
  Prefactor  = 48.6975
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.39391
  norm       = 7.00044
  Prefactor  = 0.0001
  Prefactor  = 3.43297
  norm       = 0.000100277
  Prefactor  = 0.0001
  Prefactor  = 61.1149
  Prefactor  = 2.83684
  Normalizat = 0.926444
  Prefactor  = 1.06736
 **********
 **   18 **HESSE 
 **********

 FCN=   4925.785     FROM HESSE     STATUS=OK           466 CALLS     3583 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    251.25        .21218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     26.732        51.307        .77451E-04   -1.4673    
   3  norm          7.8917        2.2072        .52927E-04   -1.5146    
   4  Prefactor     .10000E-03    2.8558        .11445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    11.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.7688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.1664        .10063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.8945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .60912        12.748        .23377E-02   -1.5552    
  10  Prefactor     .10000E-03    27.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.2921        86.636        .38800E-03   -1.5481    
  12  Prefactor     .10002E-03    18.427        .19534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    27.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     48.697        32.469        .57461E-04   -1.4311    
  15  norm          .10000E-03    2.9727        .11794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    21.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.3939        18.829        .17305E-03   -1.5243    
  18  norm          7.0004        6.8251        .75813E-03   -1.5179    
  19  Prefactor     .10000E-03    8.9966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.4330        7.8387        .10920E-02   -1.5337    
  21  norm          .10028E-03    2.1066        .22337E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    10.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     61.115        74.759        .51334E-04   -1.4143    
  24  Prefactor     2.8368        55.640        .24181E-03   -1.5371    
  25  Normalizat    .92644        .22982        .23237E-03   -.95537    
  26  Prefactor     1.0674        .25326        .25507E-03   -.90517    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28091e-08
Minuit parameter uncertainties:
  1  0.000254663
  2  51.392
  3  2.20717
  4  3.30027e-06
  5  4.73652e-06
  6  2.03014e-06
  7  7.29795e-07
  8  3.27178e-07
  9  5.57402
  10  3.27193e-05
  11  21.1917
  12  0.00133972
  13  1.66677e-05
  14  32.4806
  15  1.30351e-06
  16  1.76245e-05
  17  18.8499
  18  6.82585
  19  1.39609e-05
  20  7.84101
  21  0.00152654
  22  3.42644e-05
  23  74.8746
  24  25.1536
  25  0.230068
  26  0.253547
Done.

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

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  1.667e-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.067e+00  2.535e-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:  9.264e-01  2.301e-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: 5.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.19e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/386144/likelihoodResults_257731201_257990401_4FGL_J1423.1+3738_daily_bin71.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4925.78515661
delta logL = -0.000173265554622

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4925.78498387
delta logL = -5.3239546105e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10156E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8808       1.0000          .0000       5.0000    
     3 'Normalizat'    .92646       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0674       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=   4925.785     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      276 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10004E-03    61.857        .18142E-02** at limit **
   2  alpha         1.9908        3.4778        .50000       -.27398E-04
   3  Normalizat    .92644        .21052        .23237E-03    .53817E-04
   4  Prefactor     1.0674        .24731        .25507E-03    .48136E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100039
  alpha      = 1.99083
  Normalizat = 0.926445
  Prefactor  = 1.06736
 **********
 **   18 **HESSE 
 **********

 FCN=   4925.785     FROM HESSE     STATUS=OK            29 CALLS      305 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10004E-03    43.722        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9908        3.4156        .50000       -.20510    
   3  Normalizat    .92644        .21076        .92948E-05   -.95537    
   4  Prefactor     1.0674        .24759        .10203E-04   -.90517    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46819e-09
Minuit parameter uncertainties:
  1  0.00260819
  2  2.46315
  3  0.210951
  4  0.247858
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/386144': 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) = 4925.78498266
delta logL = 6.79286131344e-07

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  2.608e-03  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  1.991e+00  2.463e+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.067e+00  2.479e-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:  9.264e-01  2.110e-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/386144/cmap_HighResolution_257731201_257990401_4FGL_J1423.1+3738_daily_bin71.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.19e-05', job_status='DONE', photon_flux_upper_limit='5.38e-08', time_completed='2021-09-09 12:06:02.368908', job_id='386144', GAL2='1.07', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1631214362.37', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='6.79e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='71' AND source_name='4FGL J1423.1+3738' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:06:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 386144: <4FGL_J1423.1+3738_daily_bin71> in cluster <slac> Done

Job <4FGL_J1423.1+3738_daily_bin71> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  9 11:51:33 2021
Job was executed on host(s) <bullet0163>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 11:51:34 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:51:34 2021
Terminated at Thu Sep  9 12:06:03 2021
Results reported at Thu Sep  9 12:06:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1423.1+3738_daily_bin71 215.792 37.6452 257731201 257990401 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 :                                   630.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             251.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            870 sec.

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

