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


Performing analysis on: 4FGL_J1423.1+3738_daily_bin950
RA = 215.792, Dec = 37.6452
tmin = 485568001, tmax = 485827201
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='390651', job_status='RUN', time_executed='2021-09-09 12:06:28.151351', time_epoch_executed='1631214388.15' WHERE source_name='4FGL J1423.1+3738' and cadence='daily' and bin_id='950'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/390651

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/390651/ft1_4FGL_J1423.1+3738_daily_bin950.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/390651/ft2_4FGL_J1423.1+3738_daily_bin950.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/390651/ft1_4FGL_J1423.1+3738_daily_bin950.fits outfile=/scratch/kocevski/390651/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin950.fits ra=215.792 dec=37.6452 rad=12.0 tmin=485568001.0 tmax=485827201.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.91
user 3.68
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/390651/ft2_4FGL_J1423.1+3738_daily_bin950.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/390651/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin950.fits evtable="EVENTS" outfile="/scratch/kocevski/390651/ft1_filtered_4FGL_J1423.1+3738_daily_bin950.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/390651/ft1_filtered_4FGL_J1423.1+3738_daily_bin950.fits" evtable="EVENTS" scfile=/scratch/kocevski/390651/ft2_4FGL_J1423.1+3738_daily_bin950.fits sctable="SC_DATA" outfile=/scratch/kocevski/390651/ltcube_485568001_485827201_4FGL_J1423.1+3738_daily_bin950.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/390651/ft2_4FGL_J1423.1+3738_daily_bin950.fits
.....................!
real 11.53
user 11.16
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/390651/ft1_filtered_4FGL_J1423.1+3738_daily_bin950.fits evtable="EVENTS" scfile=/scratch/kocevski/390651/ft2_4FGL_J1423.1+3738_daily_bin950.fits sctable="SC_DATA" expcube=/scratch/kocevski/390651/ltcube_485568001_485827201_4FGL_J1423.1+3738_daily_bin950.fits outfile=/scratch/kocevski/390651/expmap_485568001_485827201_4FGL_J1423.1+3738_daily_bin950.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/390651/ltcube_485568001_485827201_4FGL_J1423.1+3738_daily_bin950.fits
.....................!
real 192.45
user 187.29
sys 4.54

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/390651/ft1_filtered_4FGL_J1423.1+3738_daily_bin950.fits scfile=/scratch/kocevski/390651/ft2_4FGL_J1423.1+3738_daily_bin950.fits outfile=/scratch/kocevski/390651/cmap_485568001_485827201_4FGL_J1423.1+3738_daily_bin950.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.90
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/390651/ft1_filtered_4FGL_J1423.1+3738_daily_bin950.fits scfile=/scratch/kocevski/390651/ft2_4FGL_J1423.1+3738_daily_bin950.fits outfile=/scratch/kocevski/390651/cmap_HighResolution_485568001_485827201_4FGL_J1423.1+3738_daily_bin950.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.76
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    72.188       1.0000         .10000E-03   10000.    
     3 'norm      '    4.9035       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.5003       1.0000         .10000E-03   10000.    
     5 'norm      '    16.547       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14265E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .57206       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.6717       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.3126       1.0000         .10000E-03   10000.    
    15 'norm      '    .10106E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.556       1.0000         .10000E-03   10000.    
    17 'Prefactor '    41.919       1.0000         .10000E-03   10000.    
    18 'norm      '    .88555       1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.804       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .17845E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.3100       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.0302       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    21.533       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0596       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .93139       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=   5463.595     FROM MIGRAD    STATUS=CONVERGED    619 CALLS     3114 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.394        .57091E-06** at limit **
   2  Prefactor     72.128        72.868        .29492E-05    .11672E-03
   3  norm          4.9034        1.8393        .77360E-07    .36106E-03
   4  Prefactor     2.5001        4.3365       -.79796E-07    .31238E-04
   5  norm          16.542        17.403        .30757E-06    .74044E-04
   6  Prefactor     .10000E-03    24.076       -.73518E-06** at limit **
   7  Prefactor     .10000E-03    1.5921       -.25007E-06** at limit **
   8  Prefactor     .10000E-03    55.265       -.48228E-05** at limit **
   9  norm          .57299        3.7499       -.23491E-06    .98152E-04
  10  Prefactor     2.6664        9.8941        .47423E-06    .83116E-05
  11  Prefactor     .10000E-03    8.2924       -.42149E-06** at limit **
  12  Prefactor     .10000E-03    3.2531       -.32409E-06** at limit **
  13  norm          .10000E-03    6.6617       -.17571E-06** at limit **
  14  Prefactor     5.3195        33.919        .99126E-06    .25858E-04
  15  norm          .10000E-03    8.2384        .63123E-06** at limit **
  16  Prefactor     17.550        49.869        .20787E-05    .64343E-04
  17  Prefactor     41.896        45.745        .14356E-05    .10713E-03
  18  norm          .88462        8.0259        .33336E-05   -.65922E-04
  19  Prefactor     18.797        15.317        .24263E-06    .16355E-03
  20  Prefactor     .10000E-03    4.6786       -.35546E-06** at limit **
  21  norm          1.3102        1.7510       -.17407E-07    .29216E-03
  22  Prefactor     4.0307        7.1588        .11871E-06    .12570E-04
  23  Prefactor     .10000E-03    51.277       -.87180E-06** at limit **
  24  Prefactor     21.529        21.707        .14973E-06    .37660E-04
  25  Normalizat    1.0599        .22017       -.42267E-05    .64205E-03
  26  Prefactor     .93105        .23347        .59712E-05    .32515E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 72.1281
  norm       = 4.90344
  Prefactor  = 2.50014
  norm       = 16.5415
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.572995
  Prefactor  = 2.66642
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.31954
  norm       = 0.0001
  Prefactor  = 17.5502
  Prefactor  = 41.896
  norm       = 0.884615
  Prefactor  = 18.7974
  Prefactor  = 0.0001
  norm       = 1.31016
  Prefactor  = 4.03068
  Prefactor  = 0.0001
  Prefactor  = 21.5287
  Normalizat = 1.05991
  Prefactor  = 0.931048
 **********
 **   18 **HESSE 
 **********

 FCN=   5463.595     FROM HESSE     STATUS=OK           458 CALLS     3572 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     72.128        73.102        .23625E-03   -1.4007    
   3  norm          4.9034        1.8384        .58869E-04   -1.5265    
   4  Prefactor     2.5001        4.3229        .19334E-03   -1.5392    
   5  norm          16.542        17.394        .98461E-04   -1.4894    
   6  Prefactor     .10000E-03    24.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.5976        .91144E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    57.375        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .57299        7.7003        .26763E-02   -1.5557    
  10  Prefactor     2.6664        9.8468        .12466E-02   -1.5381    
  11  Prefactor     .10000E-03    8.3084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.3254        .13012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.6761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.3195        33.779        .17437E-03   -1.5247    
  15  norm          .10000E-03    8.5657        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     17.550        49.908        .95588E-04   -1.4870    
  17  Prefactor     41.896        45.775        .61915E-04   -1.4413    
  18  norm          .88462        8.0782        .20345E-02   -1.5520    
  19  Prefactor     18.797        15.296        .92363E-04   -1.4841    
  20  Prefactor     .10000E-03    11.117        .30203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.3102        1.6905        .10492E-03   -1.5479    
  22  Prefactor     4.0307        7.1456        .10043E-02   -1.5306    
  23  Prefactor     .10000E-03    51.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     21.529        21.697        .86317E-04   -1.4780    
  25  Normalizat    1.0599        .22387        .23257E-03   -.91050    
  26  Prefactor     .93105        .23720        .27447E-03   -.95064    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.11073e-09
Minuit parameter uncertainties:
  1  7.68544e-05
  2  73.1931
  3  1.83838
  4  4.32342
  5  17.3997
  6  0.000101464
  7  6.90262e-06
  8  0.000693231
  9  4.20136
  10  9.85276
  11  3.08062e-05
  12  1.02083e-05
  13  1.46222e-05
  14  26.8316
  15  8.42555e-06
  16  50.0266
  17  45.8136
  18  5.34709
  19  15.2993
  20  8.86119e-05
  21  1.69057
  22  7.14715
  23  0.00022014
  24  21.7051
  25  0.224074
  26  0.237469
Done.

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

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  1.462e-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:  9.310e-01  2.375e-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.060e+00  2.241e-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.32e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.58e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/390651/likelihoodResults_485568001_485827201_4FGL_J1423.1+3738_daily_bin950.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) = 5463.59612904
delta logL = -0.000712189176738

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5463.59541712
delta logL = -2.73879777524e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10189E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9082       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0598       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93121       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=   5463.595     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      235 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    237.67        .18142E-01** at limit **
   2  alpha         1.3725        4.2757        .17085        .49241E-07
   3  Normalizat    1.0599        .24266E-01    .23256E-03    .67998E-04
   4  Prefactor     .93105        .27159E-01    .27447E-03    .57243E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.37246
  Normalizat = 1.0599
  Prefactor  = 0.931051
 **********
 **   18 **HESSE 
 **********

 FCN=   5463.595     FROM HESSE     STATUS=OK            27 CALLS      262 TOTAL
                     EDM=   .72E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    21.582        .20932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.3725        2.7301        .68340E-01   -.46790    
   3  Normalizat    1.0599        .20868        .93025E-05   -.91050    
   4  Prefactor     .93105        .23347        .10979E-04   -.95064    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.22786e-11
Minuit parameter uncertainties:
  1  6.08544e-05
  2  482.03
  3  0.208841
  4  0.233721
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/390651': 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) = 5463.59541525
delta logL = 1.59974115377e-06

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  6.085e-05  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  1.372e+00  4.820e+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:  9.311e-01  2.337e-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.060e+00  2.088e-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/390651/cmap_HighResolution_485568001_485827201_4FGL_J1423.1+3738_daily_bin950.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.58e-05', job_status='DONE', photon_flux_upper_limit='3.32e-08', time_completed='2021-09-09 12:17:39.381293', job_id='390651', GAL2='0.93', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1631215059.38', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='1.60e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='950' AND source_name='4FGL J1423.1+3738' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:17:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 390651: <4FGL_J1423.1+3738_daily_bin950> in cluster <slac> Done

Job <4FGL_J1423.1+3738_daily_bin950> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Sep  9 12:06:09 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 12:06:11 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:11 2021
Terminated at Thu Sep  9 12:17:40 2021
Results reported at Thu Sep  9 12:17:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1423.1+3738_daily_bin950 215.792 37.6452 485568001 485827201 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 :                                   664.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             372.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   688 sec.
    Turnaround time :                            691 sec.

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

