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


Performing analysis on: 4FGL_J2022.3-4513_daily_bin860
RA = 305.591, Dec = -45.2228
tmin = 462240001, tmax = 462499201
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='851768', job_status='RUN', time_executed='2021-09-25 00:57:57.761453', time_epoch_executed='1632556677.76' WHERE source_name='4FGL J2022.3-4513' and cadence='daily' and bin_id='860'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/851768

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/851768/ft1_4FGL_J2022.3-4513_daily_bin860.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/851768/ft2_4FGL_J2022.3-4513_daily_bin860.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/851768/ft1_4FGL_J2022.3-4513_daily_bin860.fits outfile=/scratch/kocevski/851768/ft1_filteredMKT_4FGL_J2022.3-4513_daily_bin860.fits ra=305.591 dec=-45.2228 rad=12.0 tmin=462240001.0 tmax=462499201.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.69
user 3.45
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/851768/ft2_4FGL_J2022.3-4513_daily_bin860.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/851768/ft2_4FGL_J2022.3-4513_daily_bin860.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/851768/ft1_filteredMKT_4FGL_J2022.3-4513_daily_bin860.fits evtable="EVENTS" outfile="/scratch/kocevski/851768/ft1_filtered_4FGL_J2022.3-4513_daily_bin860.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.52
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/851768/ft1_filtered_4FGL_J2022.3-4513_daily_bin860.fits" evtable="EVENTS" scfile=/scratch/kocevski/851768/ft2_4FGL_J2022.3-4513_daily_bin860.fits sctable="SC_DATA" outfile=/scratch/kocevski/851768/ltcube_462240001_462499201_4FGL_J2022.3-4513_daily_bin860.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/851768/ft2_4FGL_J2022.3-4513_daily_bin860.fits
.....................!
real 13.31
user 12.88
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/851768/ft1_filtered_4FGL_J2022.3-4513_daily_bin860.fits evtable="EVENTS" scfile=/scratch/kocevski/851768/ft2_4FGL_J2022.3-4513_daily_bin860.fits sctable="SC_DATA" expcube=/scratch/kocevski/851768/ltcube_462240001_462499201_4FGL_J2022.3-4513_daily_bin860.fits outfile=/scratch/kocevski/851768/expmap_462240001_462499201_4FGL_J2022.3-4513_daily_bin860.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/851768/ltcube_462240001_462499201_4FGL_J2022.3-4513_daily_bin860.fits
.....................!
real 193.26
user 186.52
sys 5.95

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

Setting source of interest to:
4FGL J2022.3-4513 @ 305.591 -45.2228

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/851768/ft1_filtered_4FGL_J2022.3-4513_daily_bin860.fits scfile=/scratch/kocevski/851768/ft2_4FGL_J2022.3-4513_daily_bin860.fits outfile=/scratch/kocevski/851768/cmap_462240001_462499201_4FGL_J2022.3-4513_daily_bin860.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.591 yref=-45.2228 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/851768/ft1_filtered_4FGL_J2022.3-4513_daily_bin860.fits scfile=/scratch/kocevski/851768/ft2_4FGL_J2022.3-4513_daily_bin860.fits outfile=/scratch/kocevski/851768/cmap_HighResolution_462240001_462499201_4FGL_J2022.3-4513_daily_bin860.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.591 yref=-45.2228 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.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/851768/ft1_filtered_4FGL_J2022.3-4513_daily_bin860.fits evtable="EVENTS" scfile=/scratch/kocevski/851768/ft2_4FGL_J2022.3-4513_daily_bin860.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/851768/Model_4FGL_J2022.3-4513_daily_bin860.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/851768/ft1_filtered_4FGL_J2022.3-4513_daily_bin860.fits.....................!
real 88.69
user 87.18
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/851768/ft1_filtered_4FGL_J2022.3-4513_daily_bin860.fits', '/scratch/kocevski/851768/ft2_4FGL_J2022.3-4513_daily_bin860.fits', expMap='/scratch/kocevski/851768/expmap_462240001_462499201_4FGL_J2022.3-4513_daily_bin860.fits', expCube='/scratch/kocevski/851768/ltcube_462240001_462499201_4FGL_J2022.3-4513_daily_bin860.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/851768/Model_4FGL_J2022.3-4513_daily_bin860.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2022.3-4513'

4FGL J2022.3-4513
   Spectrum: LogParabola
302         norm:  1.021e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
303        alpha:  2.021e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
304         beta:  1.015e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
305           Eb:  1.016e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/851768/ft1_filtered_4FGL_J2022.3-4513_daily_bin860.fits
Spacecraft file(s): /scratch/kocevski/851768/ft2_4FGL_J2022.3-4513_daily_bin860.fits
Exposure map: /scratch/kocevski/851768/expmap_462240001_462499201_4FGL_J2022.3-4513_daily_bin860.fits
Exposure cube: /scratch/kocevski/851768/ltcube_462240001_462499201_4FGL_J2022.3-4513_daily_bin860.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/851768/Model_4FGL_J2022.3-4513_daily_bin860.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) = 11865.3332408

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10232E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.461       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    10.580       1.0000         .10000E-03   10000.    
     5 'norm      '    1.9392       1.0000         .10000E-03   10000.    
     6 'norm      '    1.0363       1.0000         .10000E-03   10000.    
     7 'norm      '    17.895       1.0000         .10000E-03   10000.    
     8 'norm      '    1.4417       1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.976       1.0000         .10000E-03   10000.    
    10 'norm      '    1.6521       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10274E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .35186       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .79194       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.4024       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2146       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0012       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11865.33     FROM MIGRAD    STATUS=CONVERGED    464 CALLS     2098 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.7447        .64891E-07** at limit **
   2  Prefactor     13.478        17.603       -.55723E-07   -.34150E-04
   3  Prefactor     .10000E-03    4.2764        .22403E-07** at limit **
   4  norm          10.581        9.6910       -.24812E-06   -.82545E-04
   5  norm          1.9391        .81545       -.95884E-08   -.26743E-03
   6  norm          1.0365        7.9086        .35505E-05   -.23862E-03
   7  norm          17.890        14.368       -.14636E-05   -.33305E-03
   8  norm          1.4416        .96232        .61208E-08    .17951E-04
   9  Prefactor     22.969        25.671        .24074E-05    .22340E-03
  10  norm          1.6523        1.9885        .11205E-06   -.26401E-04
  11  norm          .10000E-03    5.5357        .20726E-07** at limit **
  12  Prefactor     .10000E-03    6.4956        .14927E-07** at limit **
  13  Prefactor     .10000E-03    28.241        .60324E-07** at limit **
  14  Prefactor     .35220        1.2865       -.18751E-07    .64362E-04
  15  Prefactor     .10000E-03    15.610        .27633E-07** at limit **
  16  norm          .10000E-03    .58111        .13973E-07** at limit **
  17  Prefactor     .58000        45.835       -.63538E-06    .40016E-04
  18  Prefactor     2.4020        6.6146        .14941E-06   -.15687E-03
  19  Normalizat    1.2147        .18344       -.10478E-06   -.84578E-04
  20  Prefactor     1.0012        .81241E-01   -.26918E-06   -.10128E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 13.4776
  Prefactor  = 0.0001
  norm       = 10.5807
  norm       = 1.93908
  norm       = 1.03654
  norm       = 17.8896
  norm       = 1.44161
  Prefactor  = 22.9688
  norm       = 1.65227
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.352203
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.579999
  Prefactor  = 2.402
  Normalizat = 1.21474
  Prefactor  = 1.00125
 **********
 **   18 **HESSE 
 **********

 FCN=   11865.33     FROM HESSE     STATUS=OK           305 CALLS     2403 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.8070        .34441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.478        17.492        .10917E-03   -1.4974    
   3  Prefactor     .10000E-03    4.3382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          10.581        9.7076        .12318E-03   -1.5057    
   5  norm          1.9391        .81283        .61198E-04   -1.5429    
   6  norm          1.0365        8.8460        .49465E-03   -1.5504    
   7  norm          17.890        14.573        .94679E-04   -1.4862    
   8  norm          1.4416        .96079        .85018E-04   -1.5468    
   9  Prefactor     22.969        26.568        .83565E-04   -1.4749    
  10  norm          1.6523        1.9761        .16303E-03   -1.5451    
  11  norm          .10000E-03    5.5587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.5035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    28.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .35220        5.5278        .22506E-02   -1.5589    
  15  Prefactor     .10000E-03    15.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .60356        .16199E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .58000        43.233        .21874       -1.5556    
  18  Prefactor     2.4020        6.7184        .26417E-03   -1.5398    
  19  Normalizat    1.2147        .21651        .34467E-03   -.86148    
  20  Prefactor     1.0012        .96425E-01    .16955E-03   -.92688    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.58607e-10
Minuit parameter uncertainties:
  1  3.47767e-05
  2  17.4991
  3  2.34538e-06
  4  9.70906
  5  0.81283
  6  6.05708
  7  14.5756
  8  0.960801
  9  26.582
  10  1.97615
  11  1.16879e-06
  12  8.15354e-07
  13  8.60031e-06
  14  2.79053
  15  1.52555e-05
  16  7.42873e-07
  17  10.0217
  18  6.72049
  19  0.216674
  20  0.0964418
Done.

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

Extracting fit parameters...

4FGL J2022.3-4513
   Spectrum: LogParabola
302         norm:  1.652e+00  1.976e+00  1.000e-04  1.000e+04 ( 1.000e-12)
303        alpha:  2.021e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
304         beta:  1.015e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
305           Eb:  1.016e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  1.001e+00  9.644e-02  0.000e+00  1.000e+01 ( 1.000e+00)
583        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
584        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
581   Normalization:  1.215e+00  2.167e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.43
Ra Dec: 305.591 -45.223
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 1.35e-08 +/- 1.62e-08
Energy Flux (Fixed Index): 7.82e-06 +/- 9.36e-06

TS (Fixed Index): 1.43
Ra Dec: 305.591 -45.223
Photon Flux Upper Limit: 5.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.42e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/851768/likelihoodResults_462240001_462499201_4FGL_J2022.3-4513_daily_bin860.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) = 11865.2575735
delta logL = 0.0745325973621

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11865.2566561
delta logL = 0.075450021046

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11865.26     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      206 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5770        3.4362        .84579E-02   -.78884E-03
   2  alpha         1.6703        1.2058        .44462       -.42979E-04
   3  Normalizat    1.2196        .17778        .77738E-01    .10684E-03
   4  Prefactor     1.0005        .80288E-01    .45691E-01    .12466E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.57704
  alpha      = 1.67027
  Normalizat = 1.21958
  Prefactor  = 1.00046
 **********
 **   18 **HESSE 
 **********

 FCN=   11865.26     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5770        1.9778        .16038E-03   -1.5457    
   2  alpha         1.6703        .86312        .31306E-01   -.33831    
   3  Normalizat    1.2196        .20858        .34409E-03   -.86000    
   4  Prefactor     1.0005        .94787E-01    .16961E-03   -.92714    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.26657e-10
Minuit parameter uncertainties:
  1  1.97792
  2  0.88365
  3  0.208725
  4  0.0948024
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/851768': 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) = 11865.2566561
delta logL = 0.0754500218954

Extracting fit parameters...

4FGL J2022.3-4513
   Spectrum: LogParabola
302         norm:  1.577e+00  1.978e+00  1.000e-04  1.000e+04 ( 1.000e-12)
303        alpha:  1.670e+00  8.837e-01  0.000e+00  5.000e+00 ( 1.000e+00)
304         beta:  1.015e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
305           Eb:  1.016e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  1.000e+00  9.480e-02  0.000e+00  1.000e+01 ( 1.000e+00)
583        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
584        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
581   Normalization:  1.220e+00  2.087e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.58
Ra Dec: 305.591 -45.223
Photon Index (Free Index): 1.67 +/- 0.88
Photon Flux (Free Index): 8.86e-09 +/- 1.46e-08
Energy Flux (Free Index): 1.03e-05 +/- 1.53e-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/851768/cmap_HighResolution_462240001_462499201_4FGL_J2022.3-4513_daily_bin860.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.42e-05', comment='SUCCESS', photon_flux='1.35e-08', energy_flux2='1.03e-05', photon_flux_error='1.62e-08', dlogl='7.55e-02', energy_flux='7.82e-06', photon_flux2='8.86e-09', job_status='DONE', time_completed='2021-09-25 01:12:39.466303', photon_index_error2='0.88', photon_index2='1.67', ts='1.43', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='5.91e-08', energy_flux_error2='1.53e-05', EG='1.21', time_epoch_completed='1632557559.47', return_code='0', job_id='851768', GAL2='1.00', EG2='1.22', return_code2='0', energy_flux_error='9.36e-06', photon_flux_error2='1.46e-08', ts2='1.58', photon_index='2.02' WHERE bin_id='860' AND source_name='4FGL J2022.3-4513' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 01:12:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 851768: <4FGL_J2022.3-4513_daily_bin860> in cluster <slac> Done

Job <4FGL_J2022.3-4513_daily_bin860> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 25 00:56:15 2021
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 00:57:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 25 00:57:39 2021
Terminated at Sat Sep 25 01:12:40 2021
Results reported at Sat Sep 25 01:12:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2022.3-4513_daily_bin860 305.591 -45.2228 462240001 462499201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2022.3-4513 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   878.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             341.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            985 sec.

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

