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


Performing analysis on: 4FGL_J2022.3-4513_daily_bin923
RA = 305.591, Dec = -45.2228
tmin = 478569601, tmax = 478828801
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='851869', job_status='RUN', time_executed='2021-09-25 00:59:53.413250', time_epoch_executed='1632556793.41' WHERE source_name='4FGL J2022.3-4513' and cadence='daily' and bin_id='923'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/851869

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/851869/ft1_4FGL_J2022.3-4513_daily_bin923.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/851869/ft2_4FGL_J2022.3-4513_daily_bin923.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/851869/ft1_4FGL_J2022.3-4513_daily_bin923.fits outfile=/scratch/kocevski/851869/ft1_filteredMKT_4FGL_J2022.3-4513_daily_bin923.fits ra=305.591 dec=-45.2228 rad=12.0 tmin=478569601.0 tmax=478828801.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.47
user 3.22
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/851869/ft1_filtered_4FGL_J2022.3-4513_daily_bin923.fits" evtable="EVENTS" scfile=/scratch/kocevski/851869/ft2_4FGL_J2022.3-4513_daily_bin923.fits sctable="SC_DATA" outfile=/scratch/kocevski/851869/ltcube_478569601_478828801_4FGL_J2022.3-4513_daily_bin923.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/851869/ft2_4FGL_J2022.3-4513_daily_bin923.fits
.....................!
real 12.93
user 12.56
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/851869/ft1_filtered_4FGL_J2022.3-4513_daily_bin923.fits evtable="EVENTS" scfile=/scratch/kocevski/851869/ft2_4FGL_J2022.3-4513_daily_bin923.fits sctable="SC_DATA" expcube=/scratch/kocevski/851869/ltcube_478569601_478828801_4FGL_J2022.3-4513_daily_bin923.fits outfile=/scratch/kocevski/851869/expmap_478569601_478828801_4FGL_J2022.3-4513_daily_bin923.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/851869/ltcube_478569601_478828801_4FGL_J2022.3-4513_daily_bin923.fits
.....................!
real 191.44
user 185.71
sys 5.27

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/851869/ft1_filtered_4FGL_J2022.3-4513_daily_bin923.fits scfile=/scratch/kocevski/851869/ft2_4FGL_J2022.3-4513_daily_bin923.fits outfile=/scratch/kocevski/851869/cmap_478569601_478828801_4FGL_J2022.3-4513_daily_bin923.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/851869/ft1_filtered_4FGL_J2022.3-4513_daily_bin923.fits scfile=/scratch/kocevski/851869/ft2_4FGL_J2022.3-4513_daily_bin923.fits outfile=/scratch/kocevski/851869/cmap_HighResolution_478569601_478828801_4FGL_J2022.3-4513_daily_bin923.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.58
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/851869/ft1_filtered_4FGL_J2022.3-4513_daily_bin923.fits evtable="EVENTS" scfile=/scratch/kocevski/851869/ft2_4FGL_J2022.3-4513_daily_bin923.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/851869/Model_4FGL_J2022.3-4513_daily_bin923.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/851869/ft1_filtered_4FGL_J2022.3-4513_daily_bin923.fits....................!
real 66.09
user 64.65
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/851869/ft1_filtered_4FGL_J2022.3-4513_daily_bin923.fits', '/scratch/kocevski/851869/ft2_4FGL_J2022.3-4513_daily_bin923.fits', expMap='/scratch/kocevski/851869/expmap_478569601_478828801_4FGL_J2022.3-4513_daily_bin923.fits', expCube='/scratch/kocevski/851869/ltcube_478569601_478828801_4FGL_J2022.3-4513_daily_bin923.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/851869/Model_4FGL_J2022.3-4513_daily_bin923.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/851869/ft1_filtered_4FGL_J2022.3-4513_daily_bin923.fits
Spacecraft file(s): /scratch/kocevski/851869/ft2_4FGL_J2022.3-4513_daily_bin923.fits
Exposure map: /scratch/kocevski/851869/expmap_478569601_478828801_4FGL_J2022.3-4513_daily_bin923.fits
Exposure cube: /scratch/kocevski/851869/ltcube_478569601_478828801_4FGL_J2022.3-4513_daily_bin923.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/851869/Model_4FGL_J2022.3-4513_daily_bin923.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) = 8213.90460661

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.038       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.096       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .42406       1.0000         .10000E-03   10000.    
     6 'norm      '    .10098E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    55.442       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    43.742       1.0000         .10000E-03   10000.    
    10 'norm      '    1.3765       1.0000         .10000E-03   10000.    
    11 'norm      '    .10084E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.0301       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.1451       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .12738E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.690       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.7165       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .68930       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=   8213.899     FROM MIGRAD    STATUS=CONVERGED    418 CALLS     2028 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.036        8.5563       -.31953E-06   -.18338E-03
   2  Prefactor     .10001E-03    30.524        .14023E-04** at limit **
   3  Prefactor     15.098        12.332       -.20302E-06    .81787E-05
   4  norm          .10000E-03    7.2658        .26558E-06** at limit **
   5  norm          .42355        .74761       -.23379E-06   -.20777E-02
   6  norm          .10000E-03    2.8274        .19327E-07** at limit **
   7  norm          55.439        26.153       -.15293E-05    .20636E-03
   8  norm          .10000E-03    .57778       -.92613E-08** at limit **
   9  Prefactor     43.741        42.888       -.20299E-05    .64211E-04
  10  norm          1.3733        3.5115       -.70451E-06   -.10674E-02
  11  norm          .10000E-03    7.7747       -.27557E-06** at limit **
  12  Prefactor     8.0227        21.795       -.69865E-05    .12769E-03
  13  Prefactor     .10000E-03    38.232       -.84516E-05** at limit **
  14  Prefactor     6.1448        2.8792       -.48316E-07    .30473E-04
  15  Prefactor     .10000E-03    13.854        .92038E-06** at limit **
  16  norm          .10000E-03    .69602       -.40700E-07** at limit **
  17  Prefactor     .10000E-03    22.629       -.70843E-05** at limit **
  18  Prefactor     11.687        7.7308       -.83123E-06   -.13127E-02
  19  Normalizat    1.7168        .22649        .13229E-05   -.46292E-05
  20  Prefactor     .68918        .96000E-01    .15262E-06    .56826E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.0363
  Prefactor  = 0.000100007
  Prefactor  = 15.0985
  norm       = 0.0001
  norm       = 0.423547
  norm       = 0.0001
  norm       = 55.439
  norm       = 0.0001
  Prefactor  = 43.7407
  norm       = 1.37332
  norm       = 0.0001
  Prefactor  = 8.02273
  Prefactor  = 0.000100002
  Prefactor  = 6.14485
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 11.6874
  Normalizat = 1.71677
  Prefactor  = 0.689183
 **********
 **   18 **HESSE 
 **********

 FCN=   8213.899     FROM HESSE     STATUS=OK           293 CALLS     2321 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.036        8.5713        .12647E-03   -1.5074    
   2  Prefactor     .10001E-03    29.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.098        12.311        .10308E-03   -1.4931    
   4  norm          .10000E-03    7.2681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .42355        .66916        .10119E-02   -1.5578    
   6  norm          .10000E-03    2.8364        .14879E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          55.439        25.763        .53872E-04   -1.4217    
   8  norm          .10000E-03    .58533        .67256E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     43.741        42.801        .60616E-04   -1.4384    
  10  norm          1.3733        3.5805        .26138E-03   -1.5474    
  11  norm          .10000E-03    7.7765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.0227        21.576        .14149E-03   -1.5141    
  13  Prefactor     .10000E-03    37.735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.1448        2.8839        .10209E-03   -1.5212    
  15  Prefactor     .10000E-03    13.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.0366        .14538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    22.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.687        8.0475        .58584E-03   -1.5024    
  19  Normalizat    1.7168        .26736        .30298E-03   -.71856    
  20  Prefactor     .68918        .11371        .19391E-03   -1.0395    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.07966e-09
Minuit parameter uncertainties:
  1  8.57238
  2  0.000909404
  3  12.3129
  4  7.77514e-06
  5  0.669171
  6  5.88405e-06
  7  25.768
  8  1.60454e-07
  9  42.8314
  10  3.58101
  11  3.96042e-05
  12  21.5974
  13  0.000611427
  14  2.88394
  15  5.79914e-05
  16  1.06447e-05
  17  0.000370015
  18  8.04822
  19  0.267584
  20  0.113745
Done.

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

Extracting fit parameters...

4FGL J2022.3-4513
   Spectrum: LogParabola
302         norm:  1.373e+00  3.581e+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:  6.892e-01  1.137e-01  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.717e+00  2.676e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/851869/likelihoodResults_478569601_478828801_4FGL_J2022.3-4513_daily_bin923.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): 102
logL (Free Index) = 8210.99304628
delta logL = 2.90594117495

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8210.89550788
delta logL = 3.00347958188

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .95785E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5135       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74463       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=   8210.896     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      277 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .95803E-01    1.0177        .28656E-02   -.11278E-02
   2  alpha         5.0000        2.5178        .46356    ** at limit **
   3  Normalizat    1.5135        .14053        .71805E-01   -.17030E-04
   4  Prefactor     .74471        .59472E-01    .42992E-01    .47364E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0958033
  alpha      = 5
  Normalizat = 1.51349
  Prefactor  = 0.74471
 **********
 **   18 **HESSE 
 **********

 FCN=   8210.896     FROM HESSE     STATUS=OK            35 CALLS      312 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .95803E-01    .62536E-01    .12862E-04   -1.5646    
   2  alpha         5.0000        .59504        .41275        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.5135        .27485        .31770E-03   -.77400    
   4  Prefactor     .74471        .11516        .18703E-03   -1.0180    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.95466e-11
Minuit parameter uncertainties:
  1  0.0625356
  2  2.77515e-06
  3  0.275123
  4  0.115195
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/851869': 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) = 8210.89550675
delta logL = 3.0034807058

Extracting fit parameters...

4FGL J2022.3-4513
   Spectrum: LogParabola
302         norm:  9.580e-02  6.254e-02  1.000e-04  1.000e+04 ( 1.000e-12)
303        alpha:  5.000e+00  2.775e-06  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:  7.447e-01  1.152e-01  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.513e+00  2.751e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.66
Ra Dec: 305.591 -45.223
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.69e-07 +/- 1.09e-07
Energy Flux (Free Index): 2.31e-05 +/- 1.51e-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/851869/cmap_HighResolution_478569601_478828801_4FGL_J2022.3-4513_daily_bin923.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.85e-05', comment='SUCCESS', energy_flux2='2.31e-05', dlogl='3.00e+00', photon_flux2='1.69e-07', job_status='DONE', time_completed='2021-09-25 01:11:31.593242', photon_index_error2='0.00', photon_index2='5.00', ts='0.18', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', photon_flux_upper_limit='8.38e-08', energy_flux_error2='1.51e-05', EG='1.72', time_epoch_completed='1632557491.59', return_code='0', job_id='851869', GAL2='0.74', EG2='1.51', return_code2='0', photon_flux_error2='1.09e-07', ts2='6.66', photon_index='2.02' WHERE bin_id='923' AND source_name='4FGL J2022.3-4513' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 01:11:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 851869: <4FGL_J2022.3-4513_daily_bin923> in cluster <slac> Done

Job <4FGL_J2022.3-4513_daily_bin923> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 25 00:56:24 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 00:58:17 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:58:17 2021
Terminated at Sat Sep 25 01:11:32 2021
Results reported at Sat Sep 25 01:11:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2022.3-4513_daily_bin923 305.591 -45.2228 478569601 478828801 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 :                                   696.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   794 sec.
    Turnaround time :                            908 sec.

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

