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


Performing analysis on: 4FGL_J1423.1+3738_daily_bin4
RA = 215.792, Dec = 37.6452
tmin = 240364801, tmax = 240624001
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='386039', job_status='RUN', time_executed='2021-09-09 11:51:38.787912', time_epoch_executed='1631213498.79' WHERE source_name='4FGL J1423.1+3738' and cadence='daily' and bin_id='4'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/386039

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/386039/ft1_4FGL_J1423.1+3738_daily_bin4.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/386039/ft2_4FGL_J1423.1+3738_daily_bin4.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/386039/ft1_4FGL_J1423.1+3738_daily_bin4.fits outfile=/scratch/kocevski/386039/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin4.fits ra=215.792 dec=37.6452 rad=12.0 tmin=240364801.0 tmax=240624001.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.43
user 1.24
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/386039/ft1_filtered_4FGL_J1423.1+3738_daily_bin4.fits" evtable="EVENTS" scfile=/scratch/kocevski/386039/ft2_4FGL_J1423.1+3738_daily_bin4.fits sctable="SC_DATA" outfile=/scratch/kocevski/386039/ltcube_240364801_240624001_4FGL_J1423.1+3738_daily_bin4.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/386039/ft2_4FGL_J1423.1+3738_daily_bin4.fits
.....................!
real 12.74
user 12.35
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/386039/ft1_filtered_4FGL_J1423.1+3738_daily_bin4.fits evtable="EVENTS" scfile=/scratch/kocevski/386039/ft2_4FGL_J1423.1+3738_daily_bin4.fits sctable="SC_DATA" expcube=/scratch/kocevski/386039/ltcube_240364801_240624001_4FGL_J1423.1+3738_daily_bin4.fits outfile=/scratch/kocevski/386039/expmap_240364801_240624001_4FGL_J1423.1+3738_daily_bin4.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/386039/ltcube_240364801_240624001_4FGL_J1423.1+3738_daily_bin4.fits
.....................!
real 191.02
user 185.27
sys 5.27

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/386039/ft1_filtered_4FGL_J1423.1+3738_daily_bin4.fits scfile=/scratch/kocevski/386039/ft2_4FGL_J1423.1+3738_daily_bin4.fits outfile=/scratch/kocevski/386039/cmap_240364801_240624001_4FGL_J1423.1+3738_daily_bin4.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/386039/ft1_filtered_4FGL_J1423.1+3738_daily_bin4.fits scfile=/scratch/kocevski/386039/ft2_4FGL_J1423.1+3738_daily_bin4.fits outfile=/scratch/kocevski/386039/cmap_HighResolution_240364801_240624001_4FGL_J1423.1+3738_daily_bin4.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19616E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.8899       1.0000         .10000E-03   10000.    
     3 'norm      '    1.1437       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.0865       1.0000         .10000E-03   10000.    
     5 'norm      '    12.620       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10473E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.1972       1.0000         .10000E-03   10000.    
     9 'norm      '    5.2177       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10428E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.283       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11457E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10507E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .89790       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .15960E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13619E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .65795       1.0000         .10000E-03   10000.    
    21 'norm      '    .97269       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10449E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10209E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2973       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .53040       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=   5185.491     FROM MIGRAD    STATUS=CONVERGED    644 CALLS     3137 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    1031.3       -.26410E-05** at limit **
   2  Prefactor     8.8483        88.281        .44185E-05    .10281E-03
   3  norm          1.1447        1.4230        .20585E-06    .15027E-03
   4  Prefactor     5.0887        4.2240        .18048E-06    .26049E-04
   5  norm          12.615        10.801        .46533E-07   -.12010E-04
   6  Prefactor     .10000E-03    6.0807       -.11221E-06** at limit **
   7  Prefactor     .10000E-03    2.8754       -.25164E-07** at limit **
   8  Prefactor     8.1891        10.945        .13822E-06   -.25536E-04
   9  norm          5.2152        4.0747        .16454E-05    .57521E-03
  10  Prefactor     .10000E-03    20.552       -.61234E-06** at limit **
  11  Prefactor     12.281        13.570        .34409E-06   -.28678E-04
  12  Prefactor     .10000E-03    1.9791       -.26889E-06** at limit **
  13  norm          .10000E-03    6.0822       -.91408E-07** at limit **
  14  Prefactor     .90466        10.568        .72011E-06   -.12886E-03
  15  norm          .10000E-03    1.8178       -.48566E-07** at limit **
  16  Prefactor     .10000E-03    19.059       -.26845E-06** at limit **
  17  Prefactor     .10000E-03    23.228       -.33937E-06** at limit **
  18  norm          .10000E-03    3.1385       -.10579E-07** at limit **
  19  Prefactor     .10000E-03    6.4631       -.63711E-07** at limit **
  20  Prefactor     .63496        6.9501        .18217E-05   -.68487E-03
  21  norm          .97415        1.6604        .23796E-06   -.42008E-03
  22  Prefactor     .10000E-03    4.3373       -.31070E-07** at limit **
  23  Prefactor     .10000E-03    31.401       -.36684E-07** at limit **
  24  Prefactor     .10000E-03    10.453       -.55239E-07** at limit **
  25  Normalizat    1.2970        .18409       -.16663E-05   -.10451E-03
  26  Prefactor     .53040        .19272        .14973E-05   -.11982E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100031
  Prefactor  = 8.84833
  norm       = 1.14472
  Prefactor  = 5.08873
  norm       = 12.6155
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.18908
  norm       = 5.21519
  Prefactor  = 0.0001
  Prefactor  = 12.2811
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.904658
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.634964
  norm       = 0.974148
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.29697
  Prefactor  = 0.530396
 **********
 **   18 **HESSE 
 **********

 FCN=   5185.491     FROM HESSE     STATUS=OK           458 CALLS     3595 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    1056.8        .36483E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.8483        89.062        .13443E-03   -1.5113    
   3  norm          1.1447        1.3912        .91620E-04   -1.5494    
   4  Prefactor     5.0887        4.2239        .12904E-03   -1.5257    
   5  norm          12.615        10.799        .11276E-03   -1.4997    
   6  Prefactor     .10000E-03    6.0855        .17344E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.9093        .11922E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.1891        10.939        .14003E-03   -1.5136    
   9  norm          5.2152        4.1301        .62401E-03   -1.5251    
  10  Prefactor     .10000E-03    20.788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.281        13.502        .11430E-03   -1.5007    
  12  Prefactor     .10000E-03    13.267        .19169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.0901        .17346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .90466        53.970        .44560E-02   -1.5518    
  15  norm          .10000E-03    1.8244        .94811E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    19.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    23.295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.1437        .12459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.4856        .17875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .63496        19.747        .28368E-02   -1.5549    
  21  norm          .97415        1.4545        .10225E-02   -1.5511    
  22  Prefactor     .10000E-03    4.3503        .14646E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    31.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    10.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2970        .20410        .18943E-03   -.83657    
  26  Prefactor     .53040        .21810        .31570E-03   -1.1060    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.58872e-09
Minuit parameter uncertainties:
  1  0.0117199
  2  56.2528
  3  1.39123
  4  4.22415
  5  10.8005
  6  1.92377e-05
  7  5.67813e-07
  8  10.9417
  9  4.13035
  10  6.25727e-06
  11  13.5057
  12  0.00015668
  13  5.56273e-06
  14  13.9874
  15  3.39799e-06
  16  0.000102357
  17  0.000117571
  18  1.87634e-06
  19  1.15051e-05
  20  7.08394
  21  1.45453
  22  2.95525e-07
  23  2.31122e-06
  24  7.52504e-06
  25  0.204226
  26  0.218451
Done.

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

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  5.563e-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:  5.304e-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.297e+00  2.042e-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.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.55e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/386039/likelihoodResults_240364801_240624001_4FGL_J1423.1+3738_daily_bin4.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) = 5185.4917032
delta logL = -0.000772743897869

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5185.49093045
delta logL = 1.16961018648e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9256       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2970       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .53039       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=   5185.491     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      239 TOTAL
                     EDM=   .83E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1235.2        .17349E-02** at limit **
   2  alpha         1.8508        3.4245        .17046        .18007E-08
   3  Normalizat    1.2970        .10048        .18943E-03    .94223E-05
   4  Prefactor     .53040        .11185        .31569E-03    .61580E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.8508
  Normalizat = 1.29697
  Prefactor  = 0.530397
 **********
 **   18 **HESSE 
 **********

 FCN=   5185.491     FROM HESSE     STATUS=OK            23 CALLS      262 TOTAL
                     EDM=   .32E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.1109        .34699E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8508        3.6460        .68186E-02   -.26269    
   3  Normalizat    1.2970        .19309        .75773E-05   -.83657    
   4  Prefactor     .53040        .21479        .12628E-04   -1.1060    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.18881e-13
Minuit parameter uncertainties:
  1  5.37559e-06
  2  331.355
  3  0.1932
  4  0.21512
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/386039': 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) = 5185.49093043
delta logL = 2.68419171334e-08

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  5.376e-06  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  1.851e+00  3.314e+02  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:  5.304e-01  2.151e-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.297e+00  1.932e-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/386039/cmap_HighResolution_240364801_240624001_4FGL_J1423.1+3738_daily_bin4.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.55e-05', job_status='DONE', photon_flux_upper_limit='3.28e-08', time_completed='2021-09-09 12:02:28.713057', job_id='386039', GAL2='0.53', fit_tolerance='1e-08', EG2='1.30', EG='1.30', time_epoch_completed='1631214148.71', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.53', dlogl='2.68e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='4' AND source_name='4FGL J1423.1+3738' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:02:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 386039: <4FGL_J1423.1+3738_daily_bin4> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1423.1+3738_daily_bin4 215.792 37.6452 240364801 240624001 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 :                                   648.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             342.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   662 sec.
    Turnaround time :                            664 sec.

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

