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


Performing analysis on: 4FGL_J2022.3-4513_daily_bin1290
RA = 305.591, Dec = -45.2228
tmin = 573696001, tmax = 573955201
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='856882', job_status='RUN', time_executed='2021-09-25 01:14:39.467247', time_epoch_executed='1632557679.47' WHERE source_name='4FGL J2022.3-4513' and cadence='daily' and bin_id='1290'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/856882

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/856882/ft1_4FGL_J2022.3-4513_daily_bin1290.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/856882/ft2_4FGL_J2022.3-4513_daily_bin1290.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/856882/ft1_4FGL_J2022.3-4513_daily_bin1290.fits outfile=/scratch/kocevski/856882/ft1_filteredMKT_4FGL_J2022.3-4513_daily_bin1290.fits ra=305.591 dec=-45.2228 rad=12.0 tmin=573696001.0 tmax=573955201.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 4.43
user 4.20
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/856882/ft2_4FGL_J2022.3-4513_daily_bin1290.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/856882/ft1_filteredMKT_4FGL_J2022.3-4513_daily_bin1290.fits evtable="EVENTS" outfile="/scratch/kocevski/856882/ft1_filtered_4FGL_J2022.3-4513_daily_bin1290.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/856882/ft1_filtered_4FGL_J2022.3-4513_daily_bin1290.fits" evtable="EVENTS" scfile=/scratch/kocevski/856882/ft2_4FGL_J2022.3-4513_daily_bin1290.fits sctable="SC_DATA" outfile=/scratch/kocevski/856882/ltcube_573696001_573955201_4FGL_J2022.3-4513_daily_bin1290.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/856882/ft2_4FGL_J2022.3-4513_daily_bin1290.fits
.....................!
real 13.22
user 12.79
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/856882/ft1_filtered_4FGL_J2022.3-4513_daily_bin1290.fits evtable="EVENTS" scfile=/scratch/kocevski/856882/ft2_4FGL_J2022.3-4513_daily_bin1290.fits sctable="SC_DATA" expcube=/scratch/kocevski/856882/ltcube_573696001_573955201_4FGL_J2022.3-4513_daily_bin1290.fits outfile=/scratch/kocevski/856882/expmap_573696001_573955201_4FGL_J2022.3-4513_daily_bin1290.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/856882/ltcube_573696001_573955201_4FGL_J2022.3-4513_daily_bin1290.fits
.....................!
real 199.66
user 186.57
sys 5.01

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/856882/ft1_filtered_4FGL_J2022.3-4513_daily_bin1290.fits scfile=/scratch/kocevski/856882/ft2_4FGL_J2022.3-4513_daily_bin1290.fits outfile=/scratch/kocevski/856882/cmap_573696001_573955201_4FGL_J2022.3-4513_daily_bin1290.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/856882/ft1_filtered_4FGL_J2022.3-4513_daily_bin1290.fits scfile=/scratch/kocevski/856882/ft2_4FGL_J2022.3-4513_daily_bin1290.fits outfile=/scratch/kocevski/856882/cmap_HighResolution_573696001_573955201_4FGL_J2022.3-4513_daily_bin1290.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/856882/ft1_filtered_4FGL_J2022.3-4513_daily_bin1290.fits evtable="EVENTS" scfile=/scratch/kocevski/856882/ft2_4FGL_J2022.3-4513_daily_bin1290.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/856882/Model_4FGL_J2022.3-4513_daily_bin1290.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/856882/ft1_filtered_4FGL_J2022.3-4513_daily_bin1290.fits.....................!
real 62.80
user 61.41
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.2204       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .55170       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .30038       1.0000         .10000E-03   10000.    
     6 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    35.828       1.0000         .10000E-03   10000.    
     8 'norm      '    1.0874       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .45866E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.953       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .29679E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .93807       1.0000         .10000E-03   10000.    
    16 'norm      '    19.816       1.0000         .10000E-03   10000.    
    17 'Prefactor '    38.835       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10228E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .99942       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0627       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=   7531.715     FROM MIGRAD    STATUS=CONVERGED    427 CALLS     2052 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.2231        8.5391        .53591E-07    .16760E-04
   2  Prefactor     .10000E-03    12.680       -.13028E-06** at limit **
   3  Prefactor     .62310        9.4394       -.17520E-05    .38399E-03
   4  norm          .10000E-03    11.869        .51317E-07** at limit **
   5  norm          .30071        .90353        .84963E-06    .51474E-03
   6  norm          .10000E-03    4.3122       -.48978E-07** at limit **
   7  norm          35.832        22.333       -.16644E-06   -.79595E-04
   8  norm          1.0884        1.7127        .58406E-06    .77721E-03
   9  Prefactor     .10000E-03    14.479        .19132E-06** at limit **
  10  norm          .10000E-03    2.2854       -.52897E-07** at limit **
  11  norm          .10000E-03    33.066       -.25214E-05** at limit **
  12  Prefactor     13.850        33.259       -.12117E-05   -.47928E-04
  13  Prefactor     .10001E-03    175.27        .14677E-05** at limit **
  14  Prefactor     .10000E-03    1.3338       -.85419E-08** at limit **
  15  Prefactor     .93712        20.462       -.18367E-05    .22035E-03
  16  norm          19.815        3.8031        .28618E-07    .14174E-03
  17  Prefactor     38.814        70.303       -.48477E-06   -.23135E-04
  18  Prefactor     .10000E-03    15.383        .91658E-07** at limit **
  19  Normalizat    .99923        .27514        .33669E-06    .20603E-04
  20  Prefactor     1.0626        .11647       -.67934E-06    .10576E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.22309
  Prefactor  = 0.0001
  Prefactor  = 0.623096
  norm       = 0.0001
  norm       = 0.300706
  norm       = 0.0001
  norm       = 35.8317
  norm       = 1.0884
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 13.85
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.937118
  norm       = 19.8147
  Prefactor  = 38.8139
  Prefactor  = 0.0001
  Normalizat = 0.999232
  Prefactor  = 1.06261
 **********
 **   18 **HESSE 
 **********

 FCN=   7531.715     FROM HESSE     STATUS=OK           295 CALLS     2347 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.2231        8.5367        .13199E-03   -1.5100    
   2  Prefactor     .10000E-03    12.714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .62310        47.082        .46021E-02   -1.5550    
   4  norm          .10000E-03    11.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .30071        .90433        .13530E-03   -1.5598    
   6  norm          .10000E-03    4.3342        .17596E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          35.832        22.365        .66953E-04   -1.4510    
   8  norm          1.0884        1.6246        .14662E-02   -1.5499    
   9  Prefactor     .10000E-03    14.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.3198        .12804E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    32.739        .21200E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.850        32.946        .10723E-03   -1.4963    
  13  Prefactor     .10001E-03    178.92        .21394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.3430        .97806E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .93712        167.05        .69057E-02   -1.5514    
  16  norm          19.815        3.8141        .70091E-04   -1.4817    
  17  Prefactor     38.814        70.680        .64318E-04   -1.4461    
  18  Prefactor     .10000E-03    15.808        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .99923        .32435        .41202E-03   -.93056    
  20  Prefactor     1.0626        .13700        .17429E-03   -.90671    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.73692e-09
Minuit parameter uncertainties:
  1  8.53784
  2  5.28439e-05
  3  10.8407
  4  2.52701e-05
  5  0.904371
  6  2.97206e-07
  7  22.3702
  8  1.62464
  9  6.864e-05
  10  8.17535e-07
  11  0.00035827
  12  32.9891
  13  0.00221795
  14  2.39589e-06
  15  25.0938
  16  3.8141
  17  70.8334
  18  5.59202e-06
  19  0.324989
  20  0.137043
Done.

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

Extracting fit parameters...

4FGL J2022.3-4513
   Spectrum: LogParabola
302         norm:  1.000e-04  8.175e-07  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.063e+00  1.370e-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:  9.992e-01  3.250e-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: 6.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.92e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/856882/likelihoodResults_573696001_573955201_4FGL_J2022.3-4513_daily_bin1290.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) = 7531.71663352
delta logL = -0.00205298046058

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7531.71458061
delta logL = -7.17227521818e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0086       1.0000          .0000       5.0000    
     3 'Normalizat'    .99922       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0626       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=   7531.715     FROM MIGRAD    STATUS=FAILED        98 CALLS      245 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    34.209        .12883E-01** at limit **
   2  alpha         1.6678        3.2747        .50000       -.96641E-06
   3  Normalizat    .99923        .24531E-01    .41202E-03   -.61780E-04
   4  Prefactor     1.0626        .10745E-01    .17429E-03   -.13510E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7531.715     FROM SIMPLEX   STATUS=UNCHANGED    191 CALLS      436 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    34.209        .31441E-03** at limit **
   2  alpha         1.6678        3.2747        .38731E-06   -.96641E-06
   3  Normalizat    .99923        .24531E-01    .54652E-08   -.61780E-04
   4  Prefactor     1.0626        .10745E-01    .50287E-09   -.13510E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7531.715     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      472 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.6469        .26522E-03** at limit **
   2  alpha         1.6678        3.3197        .50000       -.96641E-06
   3  Normalizat    .99923        .29866        .16481E-04   -.61946E-04
   4  Prefactor     1.0626        .13099        .34857E-04   -.13496E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.66781
  Normalizat = 0.999233
  Prefactor  = 1.06261
 **********
 **   18 **HESSE 
 **********

 FCN=   7531.715     FROM HESSE     STATUS=OK            27 CALLS      499 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.6069        .53044E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6678        2.5853        .50000       -.33935    
   3  Normalizat    .99923        .29869        .32961E-05   -.93056    
   4  Prefactor     1.0626        .13100        .69714E-05   -.90671    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62195e-09
Minuit parameter uncertainties:
  1  3.36804e-06
  2  124.472
  3  0.299194
  4  0.131044
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/856882': 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) = 7531.71457852
delta logL = 2.01513284992e-06

Extracting fit parameters...

4FGL J2022.3-4513
   Spectrum: LogParabola
302         norm:  1.000e-04  3.368e-06  1.000e-04  1.000e+04 ( 1.000e-12)
303        alpha:  1.668e+00  1.245e+02  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.063e+00  1.310e-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:  9.992e-01  2.992e-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/856882/cmap_HighResolution_573696001_573955201_4FGL_J2022.3-4513_daily_bin1290.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.92e-05', job_status='DONE', photon_flux_upper_limit='6.77e-08', time_completed='2021-09-25 01:26:10.157924', job_id='856882', GAL2='1.06', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1632558370.16', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='2.02e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='1290' AND source_name='4FGL J2022.3-4513' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 01:26:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0005>
Subject: Job 856882: <4FGL_J2022.3-4513_daily_bin1290> in cluster <slac> Done

Job <4FGL_J2022.3-4513_daily_bin1290> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep 25 01:10:58 2021
Job was executed on host(s) <bullet0005>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 01:14:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 25 01:14:30 2021
Terminated at Sat Sep 25 01:26:10 2021
Results reported at Sat Sep 25 01:26:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2022.3-4513_daily_bin1290 305.591 -45.2228 573696001 573955201 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 :                                   676.42 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             333.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   700 sec.
    Turnaround time :                            912 sec.

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

