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


Performing analysis on: 4FGL_J2023.6-1139_daily_bin499
RA = 305.903, Dec = -11.6585
tmin = 368668801, tmax = 368928001
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='875599', job_status='RUN', time_executed='2021-09-25 02:17:47.390705', time_epoch_executed='1632561467.39' WHERE source_name='4FGL J2023.6-1139' and cadence='daily' and bin_id='499'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/875599

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/875599/ft1_4FGL_J2023.6-1139_daily_bin499.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/875599/ft2_4FGL_J2023.6-1139_daily_bin499.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/875599/ft1_4FGL_J2023.6-1139_daily_bin499.fits outfile=/scratch/kocevski/875599/ft1_filteredMKT_4FGL_J2023.6-1139_daily_bin499.fits ra=305.903 dec=-11.6585 rad=12.0 tmin=368668801.0 tmax=368928001.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.32
user 3.07
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/875599/ft2_4FGL_J2023.6-1139_daily_bin499.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/875599/ft2_4FGL_J2023.6-1139_daily_bin499.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/875599/ft1_filteredMKT_4FGL_J2023.6-1139_daily_bin499.fits evtable="EVENTS" outfile="/scratch/kocevski/875599/ft1_filtered_4FGL_J2023.6-1139_daily_bin499.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.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/875599/ft1_filtered_4FGL_J2023.6-1139_daily_bin499.fits" evtable="EVENTS" scfile=/scratch/kocevski/875599/ft2_4FGL_J2023.6-1139_daily_bin499.fits sctable="SC_DATA" outfile=/scratch/kocevski/875599/ltcube_368668801_368928001_4FGL_J2023.6-1139_daily_bin499.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/875599/ft2_4FGL_J2023.6-1139_daily_bin499.fits
.....................!
real 12.86
user 12.50
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/875599/ft1_filtered_4FGL_J2023.6-1139_daily_bin499.fits evtable="EVENTS" scfile=/scratch/kocevski/875599/ft2_4FGL_J2023.6-1139_daily_bin499.fits sctable="SC_DATA" expcube=/scratch/kocevski/875599/ltcube_368668801_368928001_4FGL_J2023.6-1139_daily_bin499.fits outfile=/scratch/kocevski/875599/expmap_368668801_368928001_4FGL_J2023.6-1139_daily_bin499.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/875599/ltcube_368668801_368928001_4FGL_J2023.6-1139_daily_bin499.fits
.....................!
real 190.71
user 184.97
sys 5.40

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

Setting source of interest to:
4FGL J2023.6-1139 @ 305.903 -11.6585

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/875599/ft1_filtered_4FGL_J2023.6-1139_daily_bin499.fits scfile=/scratch/kocevski/875599/ft2_4FGL_J2023.6-1139_daily_bin499.fits outfile=/scratch/kocevski/875599/cmap_368668801_368928001_4FGL_J2023.6-1139_daily_bin499.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=305.903 yref=-11.6585 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/875599/ft1_filtered_4FGL_J2023.6-1139_daily_bin499.fits scfile=/scratch/kocevski/875599/ft2_4FGL_J2023.6-1139_daily_bin499.fits outfile=/scratch/kocevski/875599/cmap_HighResolution_368668801_368928001_4FGL_J2023.6-1139_daily_bin499.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=305.903 yref=-11.6585 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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/875599/ft1_filtered_4FGL_J2023.6-1139_daily_bin499.fits evtable="EVENTS" scfile=/scratch/kocevski/875599/ft2_4FGL_J2023.6-1139_daily_bin499.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/875599/Model_4FGL_J2023.6-1139_daily_bin499.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/875599/ft1_filtered_4FGL_J2023.6-1139_daily_bin499.fits.....................!
real 81.30
user 79.96
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/875599/ft1_filtered_4FGL_J2023.6-1139_daily_bin499.fits', '/scratch/kocevski/875599/ft2_4FGL_J2023.6-1139_daily_bin499.fits', expMap='/scratch/kocevski/875599/expmap_368668801_368928001_4FGL_J2023.6-1139_daily_bin499.fits', expCube='/scratch/kocevski/875599/ltcube_368668801_368928001_4FGL_J2023.6-1139_daily_bin499.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/875599/Model_4FGL_J2023.6-1139_daily_bin499.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2023.6-1139'

4FGL J2023.6-1139
   Spectrum: LogParabola
342         norm:  9.104e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
343        alpha:  1.962e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
344         beta:  1.303e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
345           Eb:  1.232e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/875599/ft1_filtered_4FGL_J2023.6-1139_daily_bin499.fits
Spacecraft file(s): /scratch/kocevski/875599/ft2_4FGL_J2023.6-1139_daily_bin499.fits
Exposure map: /scratch/kocevski/875599/expmap_368668801_368928001_4FGL_J2023.6-1139_daily_bin499.fits
Exposure cube: /scratch/kocevski/875599/ltcube_368668801_368928001_4FGL_J2023.6-1139_daily_bin499.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/875599/Model_4FGL_J2023.6-1139_daily_bin499.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) = 8385.42665388

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.298       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.2760       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .49421E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    30.666       1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.800       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.2263       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10815E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.323       1.0000         .10000E-03   10000.    
    10 'norm      '    4.3063       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11241E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    31.355       1.0000         .10000E-03   10000.    
    15 'norm      '    .77654       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .25930       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2608       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .84181       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8385.360     FROM MIGRAD    STATUS=CONVERGED    455 CALLS     2238 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.684        .32552E-06** at limit **
   2  Prefactor     16.302        24.023        .25568E-05    .35851E-04
   3  Prefactor     2.2751        1.7633        .11505E-06   -.14294E-02
   4  Prefactor     .10000E-03    81.529        .12021E-04** at limit **
   5  Prefactor     30.660        40.224       -.52679E-05    .78071E-04
   6  Prefactor     21.812        33.708        .90883E-05    .46812E-05
   7  Prefactor     1.2270        2.5691       -.28357E-06   -.30743E-03
   8  Prefactor     .10000E-03    127.53       -.24606E-04** at limit **
   9  Prefactor     10.321        20.464        .26114E-06   -.63348E-04
  10  norm          4.3048        9.0511        .92542E-07   -.26502E-03
  11  Prefactor     .10000E-03    13.770       -.81921E-06** at limit **
  12  Prefactor     .10000E-03    46.710       -.26291E-05** at limit **
  13  norm          .10000E-03    5.1239       -.72592E-08** at limit **
  14  norm          31.363        26.336        .23689E-05    .57076E-05
  15  norm          .77611        1.4598        .60594E-07   -.75927E-04
  16  Prefactor     .10000E-03    19.436        .32134E-06** at limit **
  17  norm          .23304        1.8757       -.30619E-07    .17639E-05
  18  Prefactor     .10000E-03    1.6006        .34407E-07** at limit **
  19  Prefactor     .10000E-03    13.961        .47794E-06** at limit **
  20  Normalizat    1.2610        .23680       -.87502E-06    .22537E-04
  21  Prefactor     .84184        .80684E-01   -.15906E-06    .75200E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 16.3025
  Prefactor  = 2.27507
  Prefactor  = 0.000100001
  Prefactor  = 30.6603
  Prefactor  = 21.8123
  Prefactor  = 1.22703
  Prefactor  = 0.000100004
  Prefactor  = 10.3209
  norm       = 4.30476
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 31.3625
  norm       = 0.776109
  Prefactor  = 0.0001
  norm       = 0.233038
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.26098
  Prefactor  = 0.841837
 **********
 **   18 **HESSE 
 **********

 FCN=   8385.360     FROM HESSE     STATUS=OK           317 CALLS     2555 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.302        24.161        .99211E-04   -1.4900    
   3  Prefactor     2.2751        4.9583        .13609E-02   -1.5406    
   4  Prefactor     .10000E-03    83.634        .38437E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     30.660        39.962        .72353E-04   -1.4600    
   6  Prefactor     21.812        34.460        .85787E-04   -1.4774    
   7  Prefactor     1.2270        2.3851        .15433E-03   -1.5486    
   8  Prefactor     .10000E-03    127.69        .41420E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.321        19.273        .62353E-03   -1.5065    
  10  norm          4.3048        9.2475        .97065E-03   -1.5293    
  11  Prefactor     .10000E-03    13.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    46.736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    5.1262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          31.363        26.333        .35778E-03   -1.4587    
  15  norm          .77611        1.4397        .14078E-03   -1.5532    
  16  Prefactor     .10000E-03    19.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .23304        12.105        .23990E-02   -1.5611    
  18  Prefactor     .10000E-03    1.6169        .11309E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2610        .27318        .38380E-03   -.84739    
  21  Prefactor     .84184        .96096E-01    .15569E-03   -.98204    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40589e-09
Minuit parameter uncertainties:
  1  6.11318e-06
  2  24.1754
  3  4.95922
  4  0.000500951
  5  39.9972
  6  34.4909
  7  2.38528
  8  0.0015143
  9  19.285
  10  9.25061
  11  1.85014e-06
  12  2.33698e-05
  13  5.30179e-07
  14  26.3425
  15  1.4398
  16  1.2045e-05
  17  3.35906
  18  1.56487e-06
  19  1.60148e-05
  20  0.273494
  21  0.0961152
Done.

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

Extracting fit parameters...

4FGL J2023.6-1139
   Spectrum: LogParabola
342         norm:  3.136e+01  2.634e+01  1.000e-04  1.000e+04 ( 1.000e-13)
343        alpha:  1.962e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
344         beta:  1.303e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
345           Eb:  1.232e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
639    Prefactor:  8.418e-01  9.612e-02  0.000e+00  1.000e+01 ( 1.000e+00)
640        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
641        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
638   Normalization:  1.261e+00  2.735e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.50
Ra Dec: 305.903 -11.659
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 3.06e-08 +/- 2.57e-08
Energy Flux (Fixed Index): 2.10e-05 +/- 1.77e-05

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) = 8385.31275337
delta logL = 0.0474747404423

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8385.30968294
delta logL = 0.0505451720073

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    29.225       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6908       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2695       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84126       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6420E+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=   8385.310     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      269 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          29.215        28.176        .74111E-04   -.98177E-06
   2  alpha         1.6905        .82699        .24566E-01   -.93385E-04
   3  Normalizat    1.2690        .26685        .38281E-03    .77808E-05
   4  Prefactor     .84147        .90927E-01    .15573E-03   -.20995E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 29.2155
  alpha      = 1.69047
  Normalizat = 1.26898
  Prefactor  = 0.841468
 **********
 **   18 **HESSE 
 **********

 FCN=   8385.310     FROM HESSE     STATUS=OK            25 CALLS      294 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          29.215        28.609        .14822E-04   -1.4626    
   2  alpha         1.6905        .83927        .49131E-02   -.32976    
   3  Normalizat    1.2690        .26697        .15312E-04   -.84497    
   4  Prefactor     .84147        .90983E-01    .31147E-04   -.98217    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.50019e-11
Minuit parameter uncertainties:
  1  28.6224
  2  0.857957
  3  0.267262
  4  0.0909992
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/875599': 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) = 8385.30968027
delta logL = 0.050547834082

Extracting fit parameters...

4FGL J2023.6-1139
   Spectrum: LogParabola
342         norm:  2.922e+01  2.862e+01  1.000e-04  1.000e+04 ( 1.000e-13)
343        alpha:  1.690e+00  8.580e-01  0.000e+00  5.000e+00 ( 1.000e+00)
344         beta:  1.303e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
345           Eb:  1.232e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
639    Prefactor:  8.415e-01  9.100e-02  0.000e+00  1.000e+01 ( 1.000e+00)
640        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
641        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
638   Normalization:  1.269e+00  2.673e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.60
Ra Dec: 305.903 -11.659
Photon Index (Free Index): 1.69 +/- 0.86
Photon Flux (Free Index): 2.08e-08 +/- 3.22e-08
Energy Flux (Free Index): 2.41e-05 +/- 2.50e-05

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/875599/cmap_HighResolution_368668801_368928001_4FGL_J2023.6-1139_daily_bin499.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.06e-08', energy_flux2='2.41e-05', photon_flux_error='2.57e-08', dlogl='5.05e-02', energy_flux='2.10e-05', photon_flux2='2.08e-08', job_status='DONE', time_completed='2021-09-25 02:29:51.946066', photon_index_error2='0.86', photon_index2='1.69', ts='7.50', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='2.50e-05', EG='1.26', time_epoch_completed='1632562191.95', return_code='0', job_id='875599', GAL2='0.84', EG2='1.27', return_code2='0', energy_flux_error='1.77e-05', photon_flux_error2='3.22e-08', ts2='7.60', photon_index='1.96' WHERE bin_id='499' AND source_name='4FGL J2023.6-1139' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 02:29:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 875599: <4FGL_J2023.6-1139_daily_bin499> in cluster <slac> Done

Job <4FGL_J2023.6-1139_daily_bin499> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 25 02:16:22 2021
Job was executed on host(s) <bullet0282>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 02:17:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 25 02:17:29 2021
Terminated at Sat Sep 25 02:29:52 2021
Results reported at Sat Sep 25 02:29:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2023.6-1139_daily_bin499 305.903 -11.6585 368668801 368928001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2023.6-1139 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   702.50 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             363.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   743 sec.
    Turnaround time :                            810 sec.

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

