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


Performing analysis on: 4FGL_J2023.6-1139_daily_bin542
RA = 305.903, Dec = -11.6585
tmin = 379814401, tmax = 380073601
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='876725', job_status='RUN', time_executed='2021-09-25 02:21:33.314047', time_epoch_executed='1632561693.31' WHERE source_name='4FGL J2023.6-1139' and cadence='daily' and bin_id='542'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/876725

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/876725/ft1_4FGL_J2023.6-1139_daily_bin542.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/876725/ft2_4FGL_J2023.6-1139_daily_bin542.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/876725/ft1_4FGL_J2023.6-1139_daily_bin542.fits outfile=/scratch/kocevski/876725/ft1_filteredMKT_4FGL_J2023.6-1139_daily_bin542.fits ra=305.903 dec=-11.6585 rad=12.0 tmin=379814401.0 tmax=380073601.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.46
user 3.20
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/876725/ft1_filtered_4FGL_J2023.6-1139_daily_bin542.fits" evtable="EVENTS" scfile=/scratch/kocevski/876725/ft2_4FGL_J2023.6-1139_daily_bin542.fits sctable="SC_DATA" outfile=/scratch/kocevski/876725/ltcube_379814401_380073601_4FGL_J2023.6-1139_daily_bin542.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/876725/ft2_4FGL_J2023.6-1139_daily_bin542.fits
.....................!
real 13.70
user 13.36
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/876725/ft1_filtered_4FGL_J2023.6-1139_daily_bin542.fits evtable="EVENTS" scfile=/scratch/kocevski/876725/ft2_4FGL_J2023.6-1139_daily_bin542.fits sctable="SC_DATA" expcube=/scratch/kocevski/876725/ltcube_379814401_380073601_4FGL_J2023.6-1139_daily_bin542.fits outfile=/scratch/kocevski/876725/expmap_379814401_380073601_4FGL_J2023.6-1139_daily_bin542.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/876725/ltcube_379814401_380073601_4FGL_J2023.6-1139_daily_bin542.fits
.....................!
real 191.49
user 185.78
sys 5.31

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/876725/ft1_filtered_4FGL_J2023.6-1139_daily_bin542.fits scfile=/scratch/kocevski/876725/ft2_4FGL_J2023.6-1139_daily_bin542.fits outfile=/scratch/kocevski/876725/cmap_379814401_380073601_4FGL_J2023.6-1139_daily_bin542.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/876725/ft1_filtered_4FGL_J2023.6-1139_daily_bin542.fits scfile=/scratch/kocevski/876725/ft2_4FGL_J2023.6-1139_daily_bin542.fits outfile=/scratch/kocevski/876725/cmap_HighResolution_379814401_380073601_4FGL_J2023.6-1139_daily_bin542.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.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/876725/ft1_filtered_4FGL_J2023.6-1139_daily_bin542.fits evtable="EVENTS" scfile=/scratch/kocevski/876725/ft2_4FGL_J2023.6-1139_daily_bin542.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/876725/Model_4FGL_J2023.6-1139_daily_bin542.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/876725/ft1_filtered_4FGL_J2023.6-1139_daily_bin542.fits.....................!
real 104.33
user 102.94
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/876725/ft1_filtered_4FGL_J2023.6-1139_daily_bin542.fits', '/scratch/kocevski/876725/ft2_4FGL_J2023.6-1139_daily_bin542.fits', expMap='/scratch/kocevski/876725/expmap_379814401_380073601_4FGL_J2023.6-1139_daily_bin542.fits', expCube='/scratch/kocevski/876725/ltcube_379814401_380073601_4FGL_J2023.6-1139_daily_bin542.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/876725/Model_4FGL_J2023.6-1139_daily_bin542.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/876725/ft1_filtered_4FGL_J2023.6-1139_daily_bin542.fits
Spacecraft file(s): /scratch/kocevski/876725/ft2_4FGL_J2023.6-1139_daily_bin542.fits
Exposure map: /scratch/kocevski/876725/expmap_379814401_380073601_4FGL_J2023.6-1139_daily_bin542.fits
Exposure cube: /scratch/kocevski/876725/ltcube_379814401_380073601_4FGL_J2023.6-1139_daily_bin542.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/876725/Model_4FGL_J2023.6-1139_daily_bin542.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) = 11243.4687772

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.990       1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.472       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    26.907       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.837       1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.870       1.0000         .10000E-03   10000.    
    10 'norm      '    .20099E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    96.087       1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    73.409       1.0000         .10000E-03   10000.    
    15 'norm      '    1.9250       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.444       1.0000         .10000E-03   10000.    
    17 'norm      '    .13839E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.2253       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.1021       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3206       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .93535       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=   11243.42     FROM MIGRAD    STATUS=CONVERGED    450 CALLS     2260 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.986        16.826       -.18820E-05   -.43411E-05
   2  Prefactor     21.470        13.952        .36147E-06   -.63828E-05
   3  Prefactor     .10000E-03    1.6807        .46518E-07** at limit **
   4  Prefactor     26.912        35.006        .61092E-05    .61853E-04
   5  Prefactor     .10000E-03    6.8116       -.21695E-07** at limit **
   6  Prefactor     .10000E-03    37.071        .25852E-06** at limit **
   7  Prefactor     .10000E-03    .76740       -.36375E-06** at limit **
   8  Prefactor     15.831        32.479       -.89927E-05   -.45000E-05
   9  Prefactor     27.886        15.183        .40339E-06    .22926E-03
  10  norm          .10002E-03    3.4694        .48639E-06** at limit **
  11  Prefactor     .10000E-03    10.128        .10174E-05** at limit **
  12  Prefactor     96.091        98.413        .37370E-05   -.72587E-05
  13  norm          .10000E-03    12.473       -.38761E-05** at limit **
  14  norm          73.416        34.792        .57640E-05    .10470E-04
  15  norm          1.9250        1.2527       -.10194E-06   -.55516E-03
  16  Prefactor     13.439        13.127        .71865E-06   -.22819E-04
  17  norm          .10000E-03    1.9278       -.71145E-07** at limit **
  18  Prefactor     3.2246        3.7804       -.35460E-06   -.91951E-03
  19  Prefactor     3.0992        13.622        .11284E-05   -.12910E-03
  20  Normalizat    1.3208        .23327       -.11586E-05    .71340E-04
  21  Prefactor     .93531        .76133E-01    .49880E-07    .11789E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.9865
  Prefactor  = 21.4699
  Prefactor  = 0.0001
  Prefactor  = 26.9119
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.8313
  Prefactor  = 27.8856
  norm       = 0.000100019
  Prefactor  = 0.0001
  Prefactor  = 96.091
  norm       = 0.0001
  norm       = 73.4155
  norm       = 1.92504
  Prefactor  = 13.4386
  norm       = 0.0001
  Prefactor  = 3.2246
  Prefactor  = 3.09921
  Normalizat = 1.32083
  Prefactor  = 0.935313
 **********
 **   18 **HESSE 
 **********

 FCN=   11243.42     FROM HESSE     STATUS=OK           321 CALLS     2581 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.986        16.865        .10345E-03   -1.4934    
   2  Prefactor     21.470        13.990        .86440E-04   -1.4781    
   3  Prefactor     .10000E-03    1.7438        .26833E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     26.912        34.714        .77230E-04   -1.4670    
   5  Prefactor     .10000E-03    6.8141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    37.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.9181        .16276E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.831        32.519        .10064E-03   -1.4912    
   9  Prefactor     27.886        13.992        .75887E-04   -1.4651    
  10  norm          .10002E-03    13.409        .37060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     96.091        97.941        .41004E-04   -1.3744    
  13  norm          .10000E-03    12.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          73.416        34.519        .46859E-04   -1.3992    
  15  norm          1.9250        1.2431        .87805E-04   -1.5430    
  16  Prefactor     13.439        13.112        .10924E-03   -1.4975    
  17  norm          .10000E-03    5.2722        .28445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.2246        3.8286        .21232E-03   -1.5349    
  19  Prefactor     3.0992        13.634        .23024E-03   -1.5356    
  20  Normalizat    1.3208        .26813        .40812E-03   -.82947    
  21  Prefactor     .93531        .89266E-01    .16209E-03   -.94918    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20925e-09
Minuit parameter uncertainties:
  1  16.8699
  2  13.9923
  3  3.61893e-06
  4  34.7397
  5  1.59613e-05
  6  5.40479e-05
  7  6.75471e-05
  8  32.5552
  9  13.9937
  10  0.00101802
  11  1.81137e-06
  12  98.1063
  13  2.13309e-06
  14  34.5289
  15  1.24312
  16  13.1144
  17  3.97709e-05
  18  3.82885
  19  13.0057
  20  0.268412
  21  0.0892801
Done.

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

Extracting fit parameters...

4FGL J2023.6-1139
   Spectrum: LogParabola
342         norm:  7.342e+01  3.453e+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:  9.353e-01  8.928e-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.321e+00  2.684e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.12
Ra Dec: 305.903 -11.659
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 7.17e-08 +/- 3.37e-08
Energy Flux (Fixed Index): 4.92e-05 +/- 2.32e-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) = 11242.9433874
delta logL = 0.473041608062

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11242.9391944
delta logL = 0.477234557282

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    53.714       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4861       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2668       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94485       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=   11242.94     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      293 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          53.699        41.885        .54727E-04    .63649E-03
   2  alpha         2.4858        .63569        .11608E-01    .13424E-03
   3  Normalizat    1.2666        .26150        .41524E-03   -.82604E-03
   4  Prefactor     .94505        .87012E-01    .16130E-03   -.34827E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 53.6987
  alpha      = 2.48583
  Normalizat = 1.26656
  Prefactor  = 0.945053
 **********
 **   18 **HESSE 
 **********

 FCN=   11242.94     FROM HESSE     STATUS=OK            25 CALLS      318 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          53.699        37.511        .10945E-04   -1.4241    
   2  alpha         2.4858        .56932        .46432E-03   -.56669E-02
   3  Normalizat    1.2666        .25952        .83047E-04   -.84570    
   4  Prefactor     .94505        .86724E-01    .32260E-04   -.94584    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.21994e-09
Minuit parameter uncertainties:
  1  37.5278
  2  0.574361
  3  0.259789
  4  0.0867371
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/876725': 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) = 11242.9391887
delta logL = 0.477240302855

Extracting fit parameters...

4FGL J2023.6-1139
   Spectrum: LogParabola
342         norm:  5.370e+01  3.753e+01  1.000e-04  1.000e+04 ( 1.000e-13)
343        alpha:  2.486e+00  5.744e-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:  9.451e-01  8.674e-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.267e+00  2.598e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.11
Ra Dec: 305.903 -11.659
Photon Index (Free Index): 2.49 +/- 0.57
Photon Flux (Free Index): 1.16e-07 +/- 6.96e-08
Energy Flux (Free Index): 3.96e-05 +/- 1.80e-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/876725/cmap_HighResolution_379814401_380073601_4FGL_J2023.6-1139_daily_bin542.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.17e-08', energy_flux2='3.96e-05', photon_flux_error='3.37e-08', dlogl='4.77e-01', energy_flux='4.92e-05', photon_flux2='1.16e-07', job_status='DONE', time_completed='2021-09-25 02:36:02.373476', photon_index_error2='0.57', photon_index2='2.49', ts='9.12', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='1.80e-05', EG='1.32', time_epoch_completed='1632562562.37', return_code='0', job_id='876725', GAL2='0.95', EG2='1.27', return_code2='0', energy_flux_error='2.32e-05', photon_flux_error2='6.96e-08', ts2='10.11', photon_index='1.96' WHERE bin_id='542' AND source_name='4FGL J2023.6-1139' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 02:36:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 876725: <4FGL_J2023.6-1139_daily_bin542> in cluster <slac> Done

Job <4FGL_J2023.6-1139_daily_bin542> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 25 02:21:04 2021
Job was executed on host(s) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 02:21:22 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:21:22 2021
Terminated at Sat Sep 25 02:36:03 2021
Results reported at Sat Sep 25 02:36:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2023.6-1139_daily_bin542 305.903 -11.6585 379814401 380073601 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 :                                   866.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             379.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            899 sec.

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

