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


Performing analysis on: 4FGL_J1423.1+3738_daily_bin266
RA = 215.792, Dec = 37.6452
tmin = 308275201, tmax = 308534401
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='386432', job_status='RUN', time_executed='2021-09-09 11:52:09.277314', time_epoch_executed='1631213529.28' WHERE source_name='4FGL J1423.1+3738' and cadence='daily' and bin_id='266'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/386432

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/386432/ft1_4FGL_J1423.1+3738_daily_bin266.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/386432/ft2_4FGL_J1423.1+3738_daily_bin266.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/386432/ft1_4FGL_J1423.1+3738_daily_bin266.fits outfile=/scratch/kocevski/386432/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin266.fits ra=215.792 dec=37.6452 rad=12.0 tmin=308275201.0 tmax=308534401.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.37
user 3.15
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/386432/ft2_4FGL_J1423.1+3738_daily_bin266.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/386432/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin266.fits evtable="EVENTS" outfile="/scratch/kocevski/386432/ft1_filtered_4FGL_J1423.1+3738_daily_bin266.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/386432/ft1_filtered_4FGL_J1423.1+3738_daily_bin266.fits" evtable="EVENTS" scfile=/scratch/kocevski/386432/ft2_4FGL_J1423.1+3738_daily_bin266.fits sctable="SC_DATA" outfile=/scratch/kocevski/386432/ltcube_308275201_308534401_4FGL_J1423.1+3738_daily_bin266.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/386432/ft2_4FGL_J1423.1+3738_daily_bin266.fits
.....................!
real 11.70
user 11.35
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/386432/ft1_filtered_4FGL_J1423.1+3738_daily_bin266.fits evtable="EVENTS" scfile=/scratch/kocevski/386432/ft2_4FGL_J1423.1+3738_daily_bin266.fits sctable="SC_DATA" expcube=/scratch/kocevski/386432/ltcube_308275201_308534401_4FGL_J1423.1+3738_daily_bin266.fits outfile=/scratch/kocevski/386432/expmap_308275201_308534401_4FGL_J1423.1+3738_daily_bin266.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/386432/ltcube_308275201_308534401_4FGL_J1423.1+3738_daily_bin266.fits
.....................!
real 191.82
user 187.27
sys 4.18

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/386432/ft1_filtered_4FGL_J1423.1+3738_daily_bin266.fits scfile=/scratch/kocevski/386432/ft2_4FGL_J1423.1+3738_daily_bin266.fits outfile=/scratch/kocevski/386432/cmap_308275201_308534401_4FGL_J1423.1+3738_daily_bin266.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/386432/ft1_filtered_4FGL_J1423.1+3738_daily_bin266.fits scfile=/scratch/kocevski/386432/ft2_4FGL_J1423.1+3738_daily_bin266.fits outfile=/scratch/kocevski/386432/cmap_HighResolution_308275201_308534401_4FGL_J1423.1+3738_daily_bin266.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.51
user 0.39
sys 0.12

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .62548       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.4191       1.0000         .10000E-03   10000.    
     5 'norm      '    .12856E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10821E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.9664       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .85103E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .42710       1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.871       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13220E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .50422       1.0000         .10000E-03   10000.    
    13 'norm      '    .11013E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .51612       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11073E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11584E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.8840       1.0000         .10000E-03   10000.    
    21 'norm      '    .23699       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .14330E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2285       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .75770       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=   5797.091     FROM MIGRAD    STATUS=CONVERGED    624 CALLS     2683 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    69.127       -.59106E-05** at limit **
   2  Prefactor     .10000E-03    22.212        .24207E-06** at limit **
   3  norm          .62326        .98038        .19175E-06    .24011E-03
   4  Prefactor     8.4192        4.5742        .86320E-06   -.10368E-02
   5  norm          .10000E-03    13.752       -.11663E-05** at limit **
   6  Prefactor     .10000E-03    9.5607        .14789E-06** at limit **
   7  Prefactor     1.9665        3.8758        .32890E-06   -.15702E-03
   8  Prefactor     .10001E-03    11.178        .67925E-06** at limit **
   9  norm          .42338        2.1271        .89504E-06   -.31925E-03
  10  Prefactor     22.893        13.862       -.15114E-06   -.15508E-03
  11  Prefactor     .10000E-03    8.6313        .54733E-07** at limit **
  12  Prefactor     .50185        2.9806        .12296E-05   -.38746E-03
  13  norm          .10000E-03    7.1340        .40901E-07** at limit **
  14  Prefactor     .10000E-03    8.6793        .23823E-06** at limit **
  15  norm          .52493        3.2649       -.44914E-07   -.79551E-04
  16  Prefactor     .10002E-03    28.919       -.53296E-05** at limit **
  17  Prefactor     .10000E-03    13.540       -.18311E-05** at limit **
  18  norm          .10000E-03    9.1695        .77724E-06** at limit **
  19  Prefactor     .10001E-03    14.499        .36215E-05** at limit **
  20  Prefactor     1.8830        3.1896        .45791E-07   -.14696E-03
  21  norm          .23642        .75518        .23670E-06   -.61511E-03
  22  Prefactor     .10051E-03    7.3707        .29669E-05** at limit **
  23  Prefactor     .10000E-03    66.843        .12626E-05** at limit **
  24  Prefactor     .10000E-03    8.4442       -.77728E-06** at limit **
  25  Normalizat    1.2283        .16922       -.83306E-06   -.49594E-03
  26  Prefactor     .75806        .19117       -.34468E-06   -.30689E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100027
  Prefactor  = 0.0001
  norm       = 0.623255
  Prefactor  = 8.41923
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 1.96646
  Prefactor  = 0.00010001
  norm       = 0.423381
  Prefactor  = 22.8926
  Prefactor  = 0.0001
  Prefactor  = 0.501849
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.524927
  Prefactor  = 0.000100021
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 1.88299
  norm       = 0.236415
  Prefactor  = 0.000100507
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Normalizat = 1.22828
  Prefactor  = 0.758055
 **********
 **   18 **HESSE 
 **********

 FCN=   5797.091     FROM HESSE     STATUS=OK           460 CALLS     3143 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    71.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    22.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .62326        .85752        .91789E-03   -1.5550    
   4  Prefactor     8.4192        4.8730        .61040E-03   -1.5128    
   5  norm          .10000E-03    13.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.5974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.9665        3.8424        .20330E-03   -1.5427    
   8  Prefactor     .10001E-03    84.415        .48341E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .42338        2.1127        .21937E-03   -1.5578    
  10  Prefactor     22.893        13.845        .83757E-04   -1.4751    
  11  Prefactor     .10000E-03    8.6510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .50185        3.2180        .25805E-03   -1.5566    
  13  norm          .10000E-03    7.1424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.6937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .52493        13.293        .26074E-02   -1.5563    
  16  Prefactor     .10002E-03    30.841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    9.3652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    15.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.8830        3.1457        .17089E-03   -1.5434    
  21  norm          .23642        .84644        .11346E-02   -1.5611    
  22  Prefactor     .10051E-03    41.848        .34986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    67.051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    8.4935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2283        .19710        .20086E-03   -.85733    
  26  Prefactor     .75806        .22594        .28848E-03   -1.0129    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.92448e-08
Minuit parameter uncertainties:
  1  0.00277678
  2  6.48105e-05
  3  0.857539
  4  4.87324
  5  0.000234621
  6  2.83826e-05
  7  3.84289
  8  0.0018172
  9  1.89143
  10  13.8468
  11  1.57148e-05
  12  2.54157
  13  1.03793e-05
  14  3.91202e-05
  15  5.28395
  16  0.00162745
  17  0.000377766
  18  0.00012107
  19  0.000768228
  20  3.146
  21  0.846479
  22  0.00921497
  23  0.000578193
  24  0.000137867
  25  0.197218
  26  0.226213
Done.

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

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  1.038e-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:  7.581e-01  2.262e-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.228e+00  1.972e-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.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.69e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/386432/likelihoodResults_308275201_308534401_4FGL_J1423.1+3738_daily_bin266.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) = 5797.09135536
delta logL = -0.000662520628794

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5797.09069294
delta logL = -9.74532667897e-08

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.9403       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2283       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75800       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=   5797.091     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      198 TOTAL
                     EDM=   .78E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.0353        .90712E-02** at limit **
   2  alpha         1.9529        3.4230        .42537       -.86268E-05
   3  Normalizat    1.2283        .16304        .34230E-01    .76230E-05
   4  Prefactor     .75806        .18945        .65209E-01    .18893E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.95294
  Normalizat = 1.22828
  Prefactor  = 0.758055
 **********
 **   18 **HESSE 
 **********

 FCN=   5797.091     FROM HESSE     STATUS=OK            33 CALLS      231 TOTAL
                     EDM=   .75E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.2738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9529        3.4024        .50000       -.22061    
   3  Normalizat    1.2283        .19144        .20086E-03   -.85733    
   4  Prefactor     .75806        .22207        .28848E-03   -1.0129    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.49642e-11
Minuit parameter uncertainties:
  1  1.85525e-05
  2  2.44969
  3  0.191548
  4  0.222329
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/386432': 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) = 5797.09069275
delta logL = 8.88821887202e-08

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  1.855e-05  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  1.953e+00  2.450e+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:  7.581e-01  2.223e-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.228e+00  1.915e-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/386432/cmap_HighResolution_308275201_308534401_4FGL_J1423.1+3738_daily_bin266.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.69e-05', job_status='DONE', photon_flux_upper_limit='3.46e-08', time_completed='2021-09-09 12:03:23.608594', job_id='386432', GAL2='0.76', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1631214203.61', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='8.89e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='266' AND source_name='4FGL J1423.1+3738' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:03:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 386432: <4FGL_J1423.1+3738_daily_bin266> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1423.1+3738_daily_bin266 215.792 37.6452 308275201 308534401 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 :                                   668.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             345.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   683 sec.
    Turnaround time :                            686 sec.

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

