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


Performing analysis on: 4FGL_J2301.0-0158_daily_bin55
RA = 345.263, Dec = -1.9758
tmin = 253584001, tmax = 253843201
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='639741', job_status='RUN', time_executed='2021-09-29 05:30:57.887508', time_epoch_executed='1632918657.89' WHERE source_name='4FGL J2301.0-0158' and cadence='daily' and bin_id='55'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/639741

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/639741/ft1_4FGL_J2301.0-0158_daily_bin55.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/639741/ft2_4FGL_J2301.0-0158_daily_bin55.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/639741/ft1_4FGL_J2301.0-0158_daily_bin55.fits outfile=/scratch/kocevski/639741/ft1_filteredMKT_4FGL_J2301.0-0158_daily_bin55.fits ra=345.263 dec=-1.9758 rad=12.0 tmin=253584001.0 tmax=253843201.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.42
user 1.26
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/639741/ft2_4FGL_J2301.0-0158_daily_bin55.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/639741/ft2_4FGL_J2301.0-0158_daily_bin55.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/639741/ft1_filteredMKT_4FGL_J2301.0-0158_daily_bin55.fits evtable="EVENTS" outfile="/scratch/kocevski/639741/ft1_filtered_4FGL_J2301.0-0158_daily_bin55.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.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/639741/ft1_filtered_4FGL_J2301.0-0158_daily_bin55.fits" evtable="EVENTS" scfile=/scratch/kocevski/639741/ft2_4FGL_J2301.0-0158_daily_bin55.fits sctable="SC_DATA" outfile=/scratch/kocevski/639741/ltcube_253584001_253843201_4FGL_J2301.0-0158_daily_bin55.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/639741/ft2_4FGL_J2301.0-0158_daily_bin55.fits
.....................!
real 12.94
user 12.53
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/639741/ft1_filtered_4FGL_J2301.0-0158_daily_bin55.fits evtable="EVENTS" scfile=/scratch/kocevski/639741/ft2_4FGL_J2301.0-0158_daily_bin55.fits sctable="SC_DATA" expcube=/scratch/kocevski/639741/ltcube_253584001_253843201_4FGL_J2301.0-0158_daily_bin55.fits outfile=/scratch/kocevski/639741/expmap_253584001_253843201_4FGL_J2301.0-0158_daily_bin55.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/639741/ltcube_253584001_253843201_4FGL_J2301.0-0158_daily_bin55.fits
.....................!
real 192.43
user 187.06
sys 5.03

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 163 point sources and 0 extended sources

Setting source of interest to:
4FGL J2301.0-0158 @ 345.263 -1.9758

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/639741/ft1_filtered_4FGL_J2301.0-0158_daily_bin55.fits scfile=/scratch/kocevski/639741/ft2_4FGL_J2301.0-0158_daily_bin55.fits outfile=/scratch/kocevski/639741/cmap_253584001_253843201_4FGL_J2301.0-0158_daily_bin55.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=345.263 yref=-1.9758 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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/639741/ft1_filtered_4FGL_J2301.0-0158_daily_bin55.fits scfile=/scratch/kocevski/639741/ft2_4FGL_J2301.0-0158_daily_bin55.fits outfile=/scratch/kocevski/639741/cmap_HighResolution_253584001_253843201_4FGL_J2301.0-0158_daily_bin55.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=345.263 yref=-1.9758 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/639741/ft1_filtered_4FGL_J2301.0-0158_daily_bin55.fits evtable="EVENTS" scfile=/scratch/kocevski/639741/ft2_4FGL_J2301.0-0158_daily_bin55.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/639741/Model_4FGL_J2301.0-0158_daily_bin55.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/639741/ft1_filtered_4FGL_J2301.0-0158_daily_bin55.fits....................!
real 79.33
user 78.03
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/639741/ft1_filtered_4FGL_J2301.0-0158_daily_bin55.fits', '/scratch/kocevski/639741/ft2_4FGL_J2301.0-0158_daily_bin55.fits', expMap='/scratch/kocevski/639741/expmap_253584001_253843201_4FGL_J2301.0-0158_daily_bin55.fits', expCube='/scratch/kocevski/639741/ltcube_253584001_253843201_4FGL_J2301.0-0158_daily_bin55.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/639741/Model_4FGL_J2301.0-0158_daily_bin55.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2301.0-0158'

4FGL J2301.0-0158
   Spectrum: LogParabola
333         norm:  6.486e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  2.316e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
335         beta:  1.074e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  5.227e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/639741/ft1_filtered_4FGL_J2301.0-0158_daily_bin55.fits
Spacecraft file(s): /scratch/kocevski/639741/ft2_4FGL_J2301.0-0158_daily_bin55.fits
Exposure map: /scratch/kocevski/639741/expmap_253584001_253843201_4FGL_J2301.0-0158_daily_bin55.fits
Exposure cube: /scratch/kocevski/639741/ltcube_253584001_253843201_4FGL_J2301.0-0158_daily_bin55.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/639741/Model_4FGL_J2301.0-0158_daily_bin55.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) = 8675.04319461

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4830       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.5725       1.0000         .10000E-03   10000.    
     3 'norm      '    16.067       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.7872       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.2944       1.0000         .10000E-03   10000.    
    10 'Prefactor '    48.851       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.0835       1.0000         .10000E-03   10000.    
    14 'norm      '    .77980       1.0000         .10000E-03   10000.    
    15 'norm      '    3.3852       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.625       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    81.044       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .44270E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.3984       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10250E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .69357       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .93838       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5300E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8675.013     FROM MIGRAD    STATUS=CONVERGED    603 CALLS     2970 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4827        7.7297        .12654E-06   -.17654E-04
   2  Prefactor     5.5724        3.5509        .11734E-06   -.35408E-04
   3  norm          16.067        4.0864        .58203E-07   -.45974E-04
   4  Prefactor     .10000E-03    67.700        .10102E-05** at limit **
   5  Prefactor     .10000E-03    5.8274       -.82026E-07** at limit **
   6  norm          .10000E-03    .26327       -.35862E-07** at limit **
   7  Prefactor     5.7731        15.925        .49677E-06   -.65848E-05
   8  Prefactor     .10000E-03    4.2756       -.87859E-08** at limit **
   9  norm          5.2943        5.8792        .14155E-06   -.73833E-05
  10  Prefactor     48.846        30.953        .22211E-06    .65587E-06
  11  Prefactor     .10000E-03    5.6030        .20506E-07** at limit **
  12  Prefactor     .10000E-03    25.142        .34438E-06** at limit **
  13  Prefactor     1.0831        6.7522        .49258E-05   -.32529E-04
  14  norm          .77971        .56374        .33771E-07    .58086E-04
  15  norm          3.3852        4.4781       -.87567E-06   -.43622E-03
  16  Prefactor     10.626        8.5487        .62333E-07    .39053E-05
  17  Prefactor     .10000E-03    13.508        .16651E-07** at limit **
  18  Prefactor     81.085        150.64       -.24161E-06    .52886E-04
  19  Prefactor     .10000E-03    7.1047        .12255E-06** at limit **
  20  norm          .10099E-03    14.459       -.14926E-05** at limit **
  21  Prefactor     .10000E-03    23.608       -.66797E-06** at limit **
  22  Prefactor     3.4052        4.4625        .37680E-06    .56090E-03
  23  Prefactor     .10000E-03    45.182       -.92655E-06** at limit **
  24  Normalizat    .69368        .15621       -.71003E-06    .43081E-05
  25  Prefactor     .93831        .10099       -.10379E-06    .10881E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.48274
  Prefactor  = 5.57238
  norm       = 16.0671
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.77308
  Prefactor  = 0.0001
  norm       = 5.29431
  Prefactor  = 48.8461
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 1.08305
  norm       = 0.779712
  norm       = 3.38518
  Prefactor  = 10.626
  Prefactor  = 0.0001
  Prefactor  = 81.0847
  Prefactor  = 0.0001
  norm       = 0.000100994
  Prefactor  = 0.000100001
  Prefactor  = 3.40523
  Prefactor  = 0.000100001
  Normalizat = 0.693676
  Prefactor  = 0.938305
 **********
 **   18 **HESSE 
 **********

 FCN=   8675.013     FROM HESSE     STATUS=OK           439 CALLS     3409 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4827        7.7114        .14661E-03   -1.5161    
   2  Prefactor     5.5724        3.5404        .12952E-03   -1.5236    
   3  norm          16.067        4.0851        .90754E-04   -1.4906    
   4  Prefactor     .10000E-03    67.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.8410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .26586        .92250E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.7731        15.766        .16695E-03   -1.5227    
   8  Prefactor     .10000E-03    4.2948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.2943        5.8731        .17468E-03   -1.5248    
  10  Prefactor     48.846        30.974        .57373E-04   -1.4309    
  11  Prefactor     .10000E-03    5.6267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    25.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.0831        6.7228        .42435E-03   -1.5500    
  14  norm          .77971        .54285        .56351E-03   -1.5531    
  15  norm          3.3852        4.4557        .19764E-03   -1.5340    
  16  Prefactor     10.626        8.5505        .12291E-03   -1.5056    
  17  Prefactor     .10000E-03    13.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     81.085        150.11        .44614E-04   -1.3905    
  19  Prefactor     .10000E-03    7.1544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10099E-03    17.499        .94968E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    23.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.4052        4.5210        .17690E-03   -1.5339    
  23  Prefactor     .10000E-03    45.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .69368        .18070        .30849E-03   -1.0414    
  25  Prefactor     .93831        .11769        .18303E-03   -.94815    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.46294e-10
Minuit parameter uncertainties:
  1  7.71238
  2  3.5405
  3  4.08516
  4  0.000769304
  5  1.4337e-06
  6  1.7334e-07
  7  15.7772
  8  8.62619e-07
  9  5.87376
  10  30.9842
  11  3.05104e-06
  12  0.000261704
  13  5.39737
  14  0.542858
  15  4.45611
  16  8.55146
  17  7.08516e-06
  18  150.824
  19  5.44004e-06
  20  0.00834381
  21  0.000308261
  22  4.5214
  23  0.000406092
  24  0.180857
  25  0.117723
Done.

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

Extracting fit parameters...

4FGL J2301.0-0158
   Spectrum: LogParabola
333         norm:  5.294e+00  5.874e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  2.316e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
335         beta:  1.074e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  5.227e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  9.383e-01  1.177e-01  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  6.937e-01  1.809e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.38
Ra Dec: 345.263 -1.976
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 1.61e-08 +/- 1.79e-08
Energy Flux (Fixed Index): 5.26e-06 +/- 5.83e-06

TS (Fixed Index): 1.38
Ra Dec: 345.263 -1.976
Photon Flux Upper Limit: 6.37e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.08e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/639741/likelihoodResults_253584001_253843201_4FGL_J2301.0-0158_daily_bin55.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) = 8674.82062264
delta logL = 0.192533538793

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8674.81781178
delta logL = 0.195344403937

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.9376       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7393       1.0000          .0000       5.0000    
     3 'Normalizat'    .70209       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93495       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5300E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8674.818     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      206 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.9376        5.1730        .45250E-02    .16070E-02
   2  alpha         1.7395        .64491        .43864       -.42177E-04
   3  Normalizat    .70196        .14623        .69312E-01    .36097E-04
   4  Prefactor     .93491        .10024        .45449E-01    .17601E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.93756
  alpha      = 1.7395
  Normalizat = 0.701955
  Prefactor  = 0.934911
 **********
 **   18 **HESSE 
 **********

 FCN=   8674.818     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.9376        5.5413        .18100E-03   -1.5264    
   2  alpha         1.7395        .81652        .24607E-01   -.30910    
   3  Normalizat    .70196        .16933        .30673E-03   -1.0382    
   4  Prefactor     .93491        .11630        .18328E-03   -.94932    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.23297e-09
Minuit parameter uncertainties:
  1  5.5419
  2  0.83343
  3  0.169459
  4  0.116333
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/639741': 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) = 8674.81780935
delta logL = 0.195346834871

Extracting fit parameters...

4FGL J2301.0-0158
   Spectrum: LogParabola
333         norm:  4.938e+00  5.542e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  1.739e+00  8.334e-01  0.000e+00  5.000e+00 ( 1.000e+00)
335         beta:  1.074e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  5.227e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  9.349e-01  1.163e-01  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  7.020e-01  1.695e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.77
Ra Dec: 345.263 -1.976
Photon Index (Free Index): 1.74 +/- 0.83
Photon Flux (Free Index): 1.01e-08 +/- 1.33e-08
Energy Flux (Free Index): 7.50e-06 +/- 9.69e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/639741/cmap_HighResolution_253584001_253843201_4FGL_J2301.0-0158_daily_bin55.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.08e-05', comment='SUCCESS', photon_flux='1.61e-08', energy_flux2='7.50e-06', photon_flux_error='1.79e-08', dlogl='1.95e-01', energy_flux='5.26e-06', photon_flux2='1.01e-08', job_status='DONE', time_completed='2021-09-29 05:44:33.386858', photon_index_error2='0.83', photon_index2='1.74', ts='1.38', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='6.37e-08', energy_flux_error2='9.69e-06', EG='0.69', time_epoch_completed='1632919473.39', return_code='0', job_id='639741', GAL2='0.93', EG2='0.70', return_code2='0', energy_flux_error='5.83e-06', photon_flux_error2='1.33e-08', ts2='1.77', photon_index='2.32' WHERE bin_id='55' AND source_name='4FGL J2301.0-0158' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 05:44:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0013>
Subject: Job 639741: <4FGL_J2301.0-0158_daily_bin55> in cluster <slac> Done

Job <4FGL_J2301.0-0158_daily_bin55> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 05:30:45 2021
Job was executed on host(s) <bullet0013>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 05:30:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 05:30:46 2021
Terminated at Wed Sep 29 05:44:34 2021
Results reported at Wed Sep 29 05:44:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2301.0-0158_daily_bin55 345.263 -1.9758 253584001 253843201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2301.0-0158 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   812.27 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             314.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            829 sec.

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

