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


Performing analysis on: 4FGL_J2022.3-4513_daily_bin482
RA = 305.591, Dec = -45.2228
tmin = 364262401, tmax = 364521601
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='848963', job_status='RUN', time_executed='2021-09-25 00:48:40.517947', time_epoch_executed='1632556120.52' WHERE source_name='4FGL J2022.3-4513' and cadence='daily' and bin_id='482'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/848963

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/848963/ft1_4FGL_J2022.3-4513_daily_bin482.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/848963/ft2_4FGL_J2022.3-4513_daily_bin482.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/848963/ft1_4FGL_J2022.3-4513_daily_bin482.fits outfile=/scratch/kocevski/848963/ft1_filteredMKT_4FGL_J2022.3-4513_daily_bin482.fits ra=305.591 dec=-45.2228 rad=12.0 tmin=364262401.0 tmax=364521601.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.25
user 3.01
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/848963/ft1_filtered_4FGL_J2022.3-4513_daily_bin482.fits" evtable="EVENTS" scfile=/scratch/kocevski/848963/ft2_4FGL_J2022.3-4513_daily_bin482.fits sctable="SC_DATA" outfile=/scratch/kocevski/848963/ltcube_364262401_364521601_4FGL_J2022.3-4513_daily_bin482.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/848963/ft2_4FGL_J2022.3-4513_daily_bin482.fits
.....................!
real 13.32
user 12.95
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/848963/ft1_filtered_4FGL_J2022.3-4513_daily_bin482.fits evtable="EVENTS" scfile=/scratch/kocevski/848963/ft2_4FGL_J2022.3-4513_daily_bin482.fits sctable="SC_DATA" expcube=/scratch/kocevski/848963/ltcube_364262401_364521601_4FGL_J2022.3-4513_daily_bin482.fits outfile=/scratch/kocevski/848963/expmap_364262401_364521601_4FGL_J2022.3-4513_daily_bin482.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/848963/ltcube_364262401_364521601_4FGL_J2022.3-4513_daily_bin482.fits
.....................!
real 192.96
user 186.97
sys 5.60

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/848963/ft1_filtered_4FGL_J2022.3-4513_daily_bin482.fits scfile=/scratch/kocevski/848963/ft2_4FGL_J2022.3-4513_daily_bin482.fits outfile=/scratch/kocevski/848963/cmap_364262401_364521601_4FGL_J2022.3-4513_daily_bin482.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/848963/ft1_filtered_4FGL_J2022.3-4513_daily_bin482.fits scfile=/scratch/kocevski/848963/ft2_4FGL_J2022.3-4513_daily_bin482.fits outfile=/scratch/kocevski/848963/cmap_HighResolution_364262401_364521601_4FGL_J2022.3-4513_daily_bin482.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.55
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/848963/ft1_filtered_4FGL_J2022.3-4513_daily_bin482.fits evtable="EVENTS" scfile=/scratch/kocevski/848963/ft2_4FGL_J2022.3-4513_daily_bin482.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/848963/Model_4FGL_J2022.3-4513_daily_bin482.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/848963/ft1_filtered_4FGL_J2022.3-4513_daily_bin482.fits.....................!
real 75.65
user 74.31
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1614       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    31.851       1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .67491       1.0000         .10000E-03   10000.    
     6 'norm      '    2.3410       1.0000         .10000E-03   10000.    
     7 'norm      '    9.5014       1.0000         .10000E-03   10000.    
     8 'norm      '    1.6155       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.7599       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10239E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13136E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.6515       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.2970       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.5944       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0834       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .94359       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=   9774.742     FROM MIGRAD    STATUS=CONVERGED    412 CALLS     1776 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1620        2.5111        .10713E-05   -.27079E-02
   2  Prefactor     .10000E-03    9.1317       -.29109E-06** at limit **
   3  Prefactor     31.860        12.123       -.58754E-06    .60843E-05
   4  norm          .10000E-03    7.7359       -.44463E-07** at limit **
   5  norm          .67494        .93504        .70509E-07   -.11056E-03
   6  norm          2.3471        7.8866       -.63111E-05   -.14714E-03
   7  norm          9.4979        14.732        .17384E-05    .84425E-04
   8  norm          1.6157        1.0390       -.12459E-07    .34035E-04
   9  Prefactor     .10000E-03    111.51        .12046E-04** at limit **
  10  norm          .10000E-03    1.6843        .70774E-07** at limit **
  11  norm          5.7601        9.1779        .96265E-06    .25594E-04
  12  Prefactor     .10000E-03    26.939        .56165E-07** at limit **
  13  Prefactor     .10000E-03    179.24       -.62900E-04** at limit **
  14  Prefactor     3.6523        2.3147       -.35826E-07   -.22536E-04
  15  Prefactor     .10000E-03    3.3801       -.12367E-06** at limit **
  16  norm          6.2967        2.0075       -.24251E-07    .28639E-03
  17  Prefactor     .10000E-03    17.057       -.22217E-06** at limit **
  18  Prefactor     4.5947        6.6659       -.40614E-06   -.42280E-04
  19  Normalizat    1.0830        .19873        .52734E-06    .20631E-03
  20  Prefactor     .94363        .89290E-01    .30050E-06    .29426E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.16203
  Prefactor  = 0.0001
  Prefactor  = 31.8603
  norm       = 0.0001
  norm       = 0.674936
  norm       = 2.34711
  norm       = 9.49794
  norm       = 1.61568
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.76015
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 3.65227
  Prefactor  = 0.0001
  norm       = 6.29668
  Prefactor  = 0.0001
  Prefactor  = 4.59468
  Normalizat = 1.08304
  Prefactor  = 0.943628
 **********
 **   18 **HESSE 
 **********

 FCN=   9774.742     FROM HESSE     STATUS=OK           293 CALLS     2069 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1620        6.1999        .14009E-02   -1.5414    
   2  Prefactor     .10000E-03    9.1491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     31.860        12.137        .70998E-04   -1.4578    
   4  norm          .10000E-03    7.7482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .67494        .92134        .10613E-03   -1.5544    
   6  norm          2.3471        7.8786        .26797E-03   -1.5402    
   7  norm          9.4979        14.674        .13001E-03   -1.5091    
   8  norm          1.6157        1.0390        .33312E-04   -1.5454    
   9  Prefactor     .10000E-03    112.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.7282        .25041E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.7601        9.1692        .16735E-03   -1.5228    
  12  Prefactor     .10000E-03    27.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    179.84        .20572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.6523        2.3147        .11609E-03   -1.5326    
  15  Prefactor     .10000E-03    3.3826        .17752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.2967        2.0175        .74890E-04   -1.5206    
  17  Prefactor     .10000E-03    17.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.5947        6.6799        .18779E-03   -1.5279    
  19  Normalizat    1.0830        .23783        .34911E-03   -.90298    
  20  Prefactor     .94363        .10751        .16899E-03   -.94633    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32854e-08
Minuit parameter uncertainties:
  1  6.2017
  2  5.72634e-06
  3  12.1379
  4  2.43609e-06
  5  0.921364
  6  7.88207
  7  14.6798
  8  1.03906
  9  7.0187e-05
  10  3.4574e-06
  11  9.17147
  12  4.53409e-05
  13  0.00135517
  14  2.31479
  15  1.74007e-06
  16  2.01756
  17  5.10661e-06
  18  6.68102
  19  0.23806
  20  0.107531
Done.

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

Extracting fit parameters...

4FGL J2022.3-4513
   Spectrum: LogParabola
302         norm:  1.000e-04  3.457e-06  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:  9.436e-01  1.075e-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.083e+00  2.381e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/848963/likelihoodResults_364262401_364521601_4FGL_J2022.3-4513_daily_bin482.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) = 9774.74438413
delta logL = -0.00275979058279

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9774.74162282
delta logL = 1.52404027176e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0575       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0830       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94362       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   9774.338     FROM MIGRAD    STATUS=FAILED       178 CALLS      332 TOTAL
                     EDM=   .47E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .34614E-01    2.3382        .21440E-03    .33029E-02
   2  alpha         4.8108        4.6517        .75312E-01   -.24553E-03
   3  Normalizat    1.0222        .15615        .35828E-03   -.88214E-05
   4  Prefactor     .95986        .69253E-01    .16770E-03   -.90652E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9774.338     FROM SIMPLEX   STATUS=UNCHANGED     94 CALLS      426 TOTAL
                     EDM=   .94E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .34614E-01    2.3382        .20294E-04    .33029E-02
   2  alpha         4.8108        4.6517        .42818E-02   -.24553E-03
   3  Normalizat    1.0222        .15615        .10344E-03   -.88214E-05
   4  Prefactor     .95986        .69253E-01    .30362E-04   -.90652E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9774.338     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      457 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .34613E-01    2.4436        .85760E-05    .15404E-02
   2  alpha         4.8108        4.7380        .15062E-01    .53272E-05
   3  Normalizat    1.0222        .23193        .14331E-04    .19039E-05
   4  Prefactor     .95986        .10384        .33540E-04   -.68063E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0346128
  alpha      = 4.81082
  Normalizat = 1.02221
  Prefactor  = 0.959861
 **********
 **   18 **HESSE 
 **********

 FCN=   9774.338     FROM HESSE     STATUS=OK            25 CALLS      482 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .34613E-01    .31167        .34304E-06   -1.5671    
   2  alpha         4.8108        4.8532        .60250E-03    1.1793    
   3  Normalizat    1.0222        .23713        .28662E-05   -.92290    
   4  Prefactor     .95986        .10608        .67080E-05   -.94080    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59146e-11
Minuit parameter uncertainties:
  1  0.207429
  2  2.90019
  3  0.237372
  4  0.106101
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/848963': 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) = 9774.33783862
delta logL = 0.403785719627

Extracting fit parameters...

4FGL J2022.3-4513
   Spectrum: LogParabola
302         norm:  3.461e-02  2.074e-01  1.000e-04  1.000e+04 ( 1.000e-12)
303        alpha:  4.811e+00  2.900e+00  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:  9.599e-01  1.061e-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.022e+00  2.374e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 305.591 -45.223

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/848963/cmap_HighResolution_364262401_364521601_4FGL_J2022.3-4513_daily_bin482.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.69e-05', job_status='DONE', photon_flux_upper_limit='4.65e-08', time_completed='2021-09-25 01:01:19.396458', job_id='848963', GAL2='0.96', fit_tolerance='1e-08', EG2='1.02', EG='1.08', time_epoch_completed='1632556879.4', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='4.04e-01', ts2='0.87', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='482' AND source_name='4FGL J2022.3-4513' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 01:01:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0140>
Subject: Job 848963: <4FGL_J2022.3-4513_daily_bin482> in cluster <slac> Done

Job <4FGL_J2022.3-4513_daily_bin482> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 25 00:46:15 2021
Job was executed on host(s) <bullet0140>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 00:46: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 00:46:29 2021
Terminated at Sat Sep 25 01:01:20 2021
Results reported at Sat Sep 25 01:01:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2022.3-4513_daily_bin482 305.591 -45.2228 364262401 364521601 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 :                                   759.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            905 sec.

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

