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


Performing analysis on: 4FGL_J2301.0-0158_daily_bin68
RA = 345.263, Dec = -1.9758
tmin = 256953601, tmax = 257212801
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='639761', job_status='RUN', time_executed='2021-09-29 05:33:10.528566', time_epoch_executed='1632918790.53' WHERE source_name='4FGL J2301.0-0158' and cadence='daily' and bin_id='68'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/639761

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/639761/ft1_4FGL_J2301.0-0158_daily_bin68.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/639761/ft2_4FGL_J2301.0-0158_daily_bin68.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/639761/ft1_4FGL_J2301.0-0158_daily_bin68.fits outfile=/scratch/kocevski/639761/ft1_filteredMKT_4FGL_J2301.0-0158_daily_bin68.fits ra=345.263 dec=-1.9758 rad=12.0 tmin=256953601.0 tmax=257212801.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.46
user 1.26
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/639761/ft2_4FGL_J2301.0-0158_daily_bin68.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/639761/ft1_filteredMKT_4FGL_J2301.0-0158_daily_bin68.fits evtable="EVENTS" outfile="/scratch/kocevski/639761/ft1_filtered_4FGL_J2301.0-0158_daily_bin68.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/639761/ft1_filtered_4FGL_J2301.0-0158_daily_bin68.fits" evtable="EVENTS" scfile=/scratch/kocevski/639761/ft2_4FGL_J2301.0-0158_daily_bin68.fits sctable="SC_DATA" outfile=/scratch/kocevski/639761/ltcube_256953601_257212801_4FGL_J2301.0-0158_daily_bin68.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/639761/ft2_4FGL_J2301.0-0158_daily_bin68.fits
.....................!
real 12.69
user 12.34
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/639761/ft1_filtered_4FGL_J2301.0-0158_daily_bin68.fits evtable="EVENTS" scfile=/scratch/kocevski/639761/ft2_4FGL_J2301.0-0158_daily_bin68.fits sctable="SC_DATA" expcube=/scratch/kocevski/639761/ltcube_256953601_257212801_4FGL_J2301.0-0158_daily_bin68.fits outfile=/scratch/kocevski/639761/expmap_256953601_257212801_4FGL_J2301.0-0158_daily_bin68.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/639761/ltcube_256953601_257212801_4FGL_J2301.0-0158_daily_bin68.fits
.....................!
real 189.68
user 185.09
sys 4.25

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/639761/ft1_filtered_4FGL_J2301.0-0158_daily_bin68.fits scfile=/scratch/kocevski/639761/ft2_4FGL_J2301.0-0158_daily_bin68.fits outfile=/scratch/kocevski/639761/cmap_256953601_257212801_4FGL_J2301.0-0158_daily_bin68.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/639761/ft1_filtered_4FGL_J2301.0-0158_daily_bin68.fits scfile=/scratch/kocevski/639761/ft2_4FGL_J2301.0-0158_daily_bin68.fits outfile=/scratch/kocevski/639761/cmap_HighResolution_256953601_257212801_4FGL_J2301.0-0158_daily_bin68.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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/639761/ft1_filtered_4FGL_J2301.0-0158_daily_bin68.fits evtable="EVENTS" scfile=/scratch/kocevski/639761/ft2_4FGL_J2301.0-0158_daily_bin68.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/639761/Model_4FGL_J2301.0-0158_daily_bin68.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/639761/ft1_filtered_4FGL_J2301.0-0158_daily_bin68.fits.....................!
real 75.36
user 73.96
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/639761/ft1_filtered_4FGL_J2301.0-0158_daily_bin68.fits', '/scratch/kocevski/639761/ft2_4FGL_J2301.0-0158_daily_bin68.fits', expMap='/scratch/kocevski/639761/expmap_256953601_257212801_4FGL_J2301.0-0158_daily_bin68.fits', expCube='/scratch/kocevski/639761/ltcube_256953601_257212801_4FGL_J2301.0-0158_daily_bin68.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/639761/Model_4FGL_J2301.0-0158_daily_bin68.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/639761/ft1_filtered_4FGL_J2301.0-0158_daily_bin68.fits
Spacecraft file(s): /scratch/kocevski/639761/ft2_4FGL_J2301.0-0158_daily_bin68.fits
Exposure map: /scratch/kocevski/639761/expmap_256953601_257212801_4FGL_J2301.0-0158_daily_bin68.fits
Exposure cube: /scratch/kocevski/639761/ltcube_256953601_257212801_4FGL_J2301.0-0158_daily_bin68.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/639761/Model_4FGL_J2301.0-0158_daily_bin68.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) = 8081.22902018

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10271E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.740       1.0000         .10000E-03   10000.    
     3 'norm      '    47.328       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10402E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.2961       1.0000         .10000E-03   10000.    
     9 'norm      '    4.6486       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .27073       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.1937       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .19192E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.2053       1.0000         .10000E-03   10000.    
    20 'norm      '    .10548E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .42946E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    48.301       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1114       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0061       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=   8081.224     FROM MIGRAD    STATUS=CONVERGED    620 CALLS     2948 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    9.1888        .47786E-05** at limit **
   2  Prefactor     10.740        5.0426        .15507E-06   -.89048E-04
   3  norm          47.328        7.5108        .38636E-06    .11099E-03
   4  Prefactor     .10000E-03    23.770        .85079E-06** at limit **
   5  Prefactor     .10000E-03    5.1726       -.38050E-07** at limit **
   6  norm          .10000E-03    .39393       -.34926E-07** at limit **
   7  Prefactor     .10000E-03    49.001        .16626E-05** at limit **
   8  Prefactor     9.2966        11.224       -.66687E-07   -.40792E-04
   9  norm          4.6481        11.214        .31445E-05    .32612E-03
  10  Prefactor     .10000E-03    17.109       -.26374E-05** at limit **
  11  Prefactor     .10000E-03    6.3819        .26748E-07** at limit **
  12  Prefactor     .10000E-03    60.666       -.14872E-05** at limit **
  13  Prefactor     .10000E-03    4.2617        .51628E-10** at limit **
  14  norm          .27112        .77721        .28036E-06    .16839E-03
  15  norm          .10000E-03    1.3926        .11058E-09** at limit **
  16  Prefactor     7.1940        10.089        .11198E-05    .25724E-03
  17  Prefactor     .10000E-03    13.274        .27134E-05** at limit **
  18  Prefactor     .10000E-03    1628.3        .76340E-05** at limit **
  19  Prefactor     8.1909        8.6374       -.43745E-06   -.39221E-03
  20  norm          .10000E-03    15.622        .15298E-05** at limit **
  21  Prefactor     .10000E-03    15.948        .18159E-05** at limit **
  22  Prefactor     .10010E-03    2.0827        .83116E-06** at limit **
  23  Prefactor     48.302        37.869        .73291E-06   -.14470E-04
  24  Normalizat    1.1114        .19478       -.59364E-06   -.11665E-03
  25  Prefactor     1.0061        .12689       -.92844E-07   -.13020E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100007
  Prefactor  = 10.7399
  norm       = 47.328
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.29663
  norm       = 4.6481
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.271124
  norm       = 0.0001
  Prefactor  = 7.19396
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.19087
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100101
  Prefactor  = 48.3024
  Normalizat = 1.11144
  Prefactor  = 1.00612
 **********
 **   18 **HESSE 
 **********

 FCN=   8081.224     FROM HESSE     STATUS=OK           425 CALLS     3373 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    13.564        .33989E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.740        4.9592        .12226E-03   -1.5052    
   3  norm          47.328        7.5167        .58285E-04   -1.4331    
   4  Prefactor     .10000E-03    23.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.1874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .41047        .10997E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    49.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.2966        11.203        .13145E-03   -1.5098    
   9  norm          4.6481        12.341        .93332E-03   -1.5277    
  10  Prefactor     .10000E-03    17.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.3953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    61.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.2935        .18118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .27112        .77618        .12569E-03   -1.5604    
  15  norm          .10000E-03    1.3957        .10358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.1940        10.365        .74777E-03   -1.5171    
  17  Prefactor     .10000E-03    13.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1670.1        .36474E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.1909        8.2623        .13996E-03   -1.5135    
  20  norm          .10000E-03    15.714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    15.962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10010E-03    37.509        .22467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     48.302        37.891        .57697E-04   -1.4317    
  24  Normalizat    1.1114        .22495        .30972E-03   -.89385    
  25  Prefactor     1.0061        .14761        .21821E-03   -.92526    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.65884e-09
Minuit parameter uncertainties:
  1  0.000638
  2  4.9594
  3  7.51681
  4  6.22886e-06
  5  5.879e-06
  6  1.17685e-06
  7  1.36999e-05
  8  11.2053
  9  12.3475
  10  6.13724e-05
  11  3.38364e-07
  12  7.43383e-05
  13  5.15687e-07
  14  0.776211
  15  3.62715e-07
  16  10.3677
  17  6.00976e-05
  18  0.0017431
  19  8.2634
  20  6.49024e-05
  21  4.48262e-05
  22  0.00389248
  23  37.9102
  24  0.225141
  25  0.147674
Done.

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

Extracting fit parameters...

4FGL J2301.0-0158
   Spectrum: LogParabola
333         norm:  4.648e+00  1.235e+01  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:  1.006e+00  1.477e-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:  1.111e+00  2.251e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.18
Ra Dec: 345.263 -1.976
Photon Flux Upper Limit: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.38e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/639761/likelihoodResults_256953601_257212801_4FGL_J2301.0-0158_daily_bin68.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) = 8078.98255594
delta logL = 2.24190223532

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8078.97554826
delta logL = 2.24890991893

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4205       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .96885       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0684       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=   8078.976     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      258 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4204        3.8087        .90744E-02    .52780E-03
   2  alpha         5.0000        4.9136        .46267    ** at limit **
   3  Normalizat    .96884        .20303        .74272E-01   -.44997E-05
   4  Prefactor     1.0684        .12988        .38937E-01   -.44328E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.42043
  alpha      = 5
  Normalizat = 0.968844
  Prefactor  = 1.06835
 **********
 **   18 **HESSE 
 **********

 FCN=   8078.976     FROM HESSE     STATUS=OK            31 CALLS      289 TOTAL
                     EDM=   .29E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4204        .82165        .57591E-04   -1.5470    
   2  alpha         5.0000        .77706        .50998E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .96884        .22721        .32865E-03   -.94082    
   4  Prefactor     1.0684        .15035        .21248E-03   -.90485    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.94245e-12
Minuit parameter uncertainties:
  1  0.821654
  2  1.76024e-06
  3  0.227439
  4  0.150409
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/639761': 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) = 8078.97554825
delta logL = 2.24890992275

Extracting fit parameters...

4FGL J2301.0-0158
   Spectrum: LogParabola
333         norm:  1.420e+00  8.217e-01  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  5.000e+00  1.760e-06  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:  1.068e+00  1.504e-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:  9.688e-01  2.274e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.06
Ra Dec: 345.263 -1.976
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.12e-07 +/- 6.45e-08
Energy Flux (Free Index): 1.52e-05 +/- 8.78e-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/639761/cmap_HighResolution_256953601_257212801_4FGL_J2301.0-0158_daily_bin68.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.38e-05', comment='SUCCESS', energy_flux2='1.52e-05', dlogl='2.25e+00', photon_flux2='1.12e-07', job_status='DONE', time_completed='2021-09-29 05:46:13.657192', photon_index_error2='0.00', photon_index2='5.00', ts='0.18', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.04e-07', energy_flux_error2='8.78e-06', EG='1.11', time_epoch_completed='1632919573.66', return_code='0', job_id='639761', GAL2='1.07', EG2='0.97', return_code2='0', photon_flux_error2='6.45e-08', ts2='5.06', photon_index='2.32' WHERE bin_id='68' AND source_name='4FGL J2301.0-0158' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 05:46:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0011>
Subject: Job 639761: <4FGL_J2301.0-0158_daily_bin68> in cluster <slac> Done

Job <4FGL_J2301.0-0158_daily_bin68> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 05:30:46 2021
Job was executed on host(s) <bullet0011>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 05:30:48 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:48 2021
Terminated at Wed Sep 29 05:46:14 2021
Results reported at Wed Sep 29 05:46:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2301.0-0158_daily_bin68 345.263 -1.9758 256953601 257212801 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 :                                   781.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   925 sec.
    Turnaround time :                            928 sec.

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

