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


Performing analysis on: 4FGL_J2022.3-4513_daily_bin967
RA = 305.591, Dec = -45.2228
tmin = 489974401, tmax = 490233601
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='853367', job_status='RUN', time_executed='2021-09-25 01:02:30.867765', time_epoch_executed='1632556950.87' WHERE source_name='4FGL J2022.3-4513' and cadence='daily' and bin_id='967'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/853367

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/853367/ft1_4FGL_J2022.3-4513_daily_bin967.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/853367/ft2_4FGL_J2022.3-4513_daily_bin967.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/853367/ft1_4FGL_J2022.3-4513_daily_bin967.fits outfile=/scratch/kocevski/853367/ft1_filteredMKT_4FGL_J2022.3-4513_daily_bin967.fits ra=305.591 dec=-45.2228 rad=12.0 tmin=489974401.0 tmax=490233601.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.82
user 3.54
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/853367/ft1_filtered_4FGL_J2022.3-4513_daily_bin967.fits" evtable="EVENTS" scfile=/scratch/kocevski/853367/ft2_4FGL_J2022.3-4513_daily_bin967.fits sctable="SC_DATA" outfile=/scratch/kocevski/853367/ltcube_489974401_490233601_4FGL_J2022.3-4513_daily_bin967.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/853367/ft2_4FGL_J2022.3-4513_daily_bin967.fits
.....................!
real 15.19
user 14.67
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/853367/ft1_filtered_4FGL_J2022.3-4513_daily_bin967.fits evtable="EVENTS" scfile=/scratch/kocevski/853367/ft2_4FGL_J2022.3-4513_daily_bin967.fits sctable="SC_DATA" expcube=/scratch/kocevski/853367/ltcube_489974401_490233601_4FGL_J2022.3-4513_daily_bin967.fits outfile=/scratch/kocevski/853367/expmap_489974401_490233601_4FGL_J2022.3-4513_daily_bin967.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/853367/ltcube_489974401_490233601_4FGL_J2022.3-4513_daily_bin967.fits
.....................!
real 191.93
user 186.55
sys 4.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/853367/ft1_filtered_4FGL_J2022.3-4513_daily_bin967.fits scfile=/scratch/kocevski/853367/ft2_4FGL_J2022.3-4513_daily_bin967.fits outfile=/scratch/kocevski/853367/cmap_489974401_490233601_4FGL_J2022.3-4513_daily_bin967.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.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/853367/ft1_filtered_4FGL_J2022.3-4513_daily_bin967.fits scfile=/scratch/kocevski/853367/ft2_4FGL_J2022.3-4513_daily_bin967.fits outfile=/scratch/kocevski/853367/cmap_HighResolution_489974401_490233601_4FGL_J2022.3-4513_daily_bin967.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.56
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/853367/ft1_filtered_4FGL_J2022.3-4513_daily_bin967.fits evtable="EVENTS" scfile=/scratch/kocevski/853367/ft2_4FGL_J2022.3-4513_daily_bin967.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/853367/Model_4FGL_J2022.3-4513_daily_bin967.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/853367/ft1_filtered_4FGL_J2022.3-4513_daily_bin967.fits.....................!
real 79.83
user 78.40
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4749       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.324       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.1837       1.0000         .10000E-03   10000.    
     6 'norm      '    5.8399       1.0000         .10000E-03   10000.    
     7 'norm      '    24.654       1.0000         .10000E-03   10000.    
     8 'norm      '    .30555       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .49782       1.0000         .10000E-03   10000.    
    11 'norm      '    18.562       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .62192E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    34.744       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.8488       1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.048       1.0000         .10000E-03   10000.    
    16 'norm      '    .10939E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    141.66       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1706       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .92906       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=   10359.72     FROM MIGRAD    STATUS=CONVERGED    438 CALLS     2122 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4752        5.9473        .29427E-06   -.31720E-04
   2  Prefactor     .10000E-03    8.5952       -.25993E-06** at limit **
   3  Prefactor     11.323        8.1611        .27131E-06   -.21151E-04
   4  norm          .10000E-03    4.6198       -.10293E-07** at limit **
   5  norm          1.1837        .72666        .60446E-07    .47126E-05
   6  norm          5.8404        5.7818       -.25446E-07   -.66462E-04
   7  norm          24.650        17.098        .37551E-06   -.66410E-04
   8  norm          .30564        .81111        .54482E-06    .20779E-04
   9  Prefactor     .10000E-03    9.5998        .30999E-06** at limit **
  10  norm          .49895        2.2036        .22995E-05   -.62774E-05
  11  norm          18.570        16.930        .85154E-06    .13596E-03
  12  Prefactor     .10048E-03    14.306        .70621E-06** at limit **
  13  Prefactor     34.746        48.095       -.24656E-06   -.10055E-04
  14  Prefactor     2.8489        2.4958        .18369E-06   -.12244E-04
  15  Prefactor     24.051        18.714       -.56317E-06   -.88535E-04
  16  norm          .10001E-03    .58296        .59480E-07** at limit **
  17  Prefactor     141.67        80.940        .83488E-06    .55271E-07
  18  Prefactor     .10000E-03    6.3318        .68104E-08** at limit **
  19  Normalizat    1.1703        .19771       -.11597E-05   -.24605E-03
  20  Prefactor     .92916        .85884E-01   -.46203E-06   -.38296E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.47523
  Prefactor  = 0.0001
  Prefactor  = 11.3234
  norm       = 0.0001
  norm       = 1.18369
  norm       = 5.84041
  norm       = 24.65
  norm       = 0.305643
  Prefactor  = 0.0001
  norm       = 0.498948
  norm       = 18.5703
  Prefactor  = 0.000100475
  Prefactor  = 34.7463
  Prefactor  = 2.84894
  Prefactor  = 24.0506
  norm       = 0.000100011
  Prefactor  = 141.67
  Prefactor  = 0.0001
  Normalizat = 1.17034
  Prefactor  = 0.929161
 **********
 **   18 **HESSE 
 **********

 FCN=   10359.72     FROM HESSE     STATUS=OK           309 CALLS     2431 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4752        5.9448        .14669E-03   -1.5161    
   2  Prefactor     .10000E-03    8.6507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.323        8.1620        .11905E-03   -1.5035    
   4  norm          .10000E-03    4.6218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.1837        .71550        .65439E-04   -1.5490    
   6  norm          5.8404        5.7744        .16619E-03   -1.5225    
   7  norm          24.650        17.052        .80675E-04   -1.4715    
   8  norm          .30564        .80777        .14495E-03   -1.5597    
   9  Prefactor     .10000E-03    9.6076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .49895        2.1774        .29174E-03   -1.5567    
  11  norm          18.570        17.780        .92963E-04   -1.4846    
  12  Prefactor     .10048E-03    15.570        .12437       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     34.746        48.123        .67986E-04   -1.4528    
  14  Prefactor     2.8489        2.4886        .14527E-03   -1.5370    
  15  Prefactor     24.051        18.769        .81685E-04   -1.4727    
  16  norm          .10001E-03    14.470        .14776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     141.67        81.020        .33848E-04   -1.3322    
  18  Prefactor     .10000E-03    6.5112        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1703        .23189        .34647E-03   -.87524    
  20  Prefactor     .92916        .10183        .17108E-03   -.95129    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04368e-09
Minuit parameter uncertainties:
  1  5.94531
  2  3.44783e-06
  3  8.16276
  4  5.18138e-07
  5  0.7155
  6  5.7749
  7  17.0556
  8  0.807798
  9  1.30349e-05
  10  2.08456
  11  17.7852
  12  0.00544194
  13  48.1772
  14  2.48865
  15  18.7735
  16  0.000784038
  17  81.0838
  18  1.67593e-05
  19  0.232094
  20  0.101849
Done.

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

Extracting fit parameters...

4FGL J2022.3-4513
   Spectrum: LogParabola
302         norm:  4.989e-01  2.085e+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:  9.292e-01  1.018e-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.170e+00  2.321e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/853367/likelihoodResults_489974401_490233601_4FGL_J2022.3-4513_daily_bin967.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) = 10358.3420875
delta logL = 1.38191704776

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10358.3349773
delta logL = 1.38902733793

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .34178       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.9731       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0729       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95272       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=   10358.33     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      231 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .34159        2.7357        .86387E-02    .24598E-02
   2  alpha         3.9742        4.0465        .39056        .98958E-04
   3  Normalizat    1.0729        .45291E-01    .81239E-01    .29730E-04
   4  Prefactor     .95275        .20202E-01    .45673E-01    .87689E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.341594
  alpha      = 3.9742
  Normalizat = 1.07286
  Prefactor  = 0.952752
 **********
 **   18 **HESSE 
 **********

 FCN=   10358.33     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      266 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .34159        7.5457        .39622E-03   -1.5591    
   2  alpha         3.9742        4.4309        .15984E-01    .63066    
   3  Normalizat    1.0729        .19320        .35964E-03   -.90628    
   4  Prefactor     .95275        .84188E-01    .16906E-03   -.94321    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.20818e-10
Minuit parameter uncertainties:
  1  3.21095
  2  5.05252
  3  0.193329
  4  0.0841994
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/853367': 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): 102
logL (Free Index) = 10358.3349747
delta logL = 1.38902985941

Extracting fit parameters...

4FGL J2022.3-4513
   Spectrum: LogParabola
302         norm:  3.416e-01  3.211e+00  1.000e-04  1.000e+04 ( 1.000e-12)
303        alpha:  3.974e+00  5.053e+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.528e-01  8.420e-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.073e+00  1.933e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.00
Ra Dec: 305.591 -45.223
Photon Index (Free Index): 3.97 +/- 5.05
Photon Flux (Free Index): 7.72e-08 +/- 6.07e-08
Energy Flux (Free Index): 1.23e-05 +/- 1.08e-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/853367/cmap_HighResolution_489974401_490233601_4FGL_J2022.3-4513_daily_bin967.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.24e-05', comment='SUCCESS', energy_flux2='1.23e-05', dlogl='1.39e+00', photon_flux2='7.72e-08', job_status='DONE', time_completed='2021-09-25 01:16:09.298155', photon_index_error2='5.05', photon_index2='3.97', ts='0.07', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='5.59e-08', energy_flux_error2='1.08e-05', EG='1.17', time_epoch_completed='1632557769.3', return_code='0', job_id='853367', GAL2='0.95', EG2='1.07', return_code2='102', photon_flux_error2='6.07e-08', ts2='3.00', photon_index='2.02' WHERE bin_id='967' AND source_name='4FGL J2022.3-4513' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 01:16:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0194>
Subject: Job 853367: <4FGL_J2022.3-4513_daily_bin967> in cluster <slac> Done

Job <4FGL_J2022.3-4513_daily_bin967> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep 25 01:01:59 2021
Job was executed on host(s) <bullet0194>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 01:02: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 01:02:17 2021
Terminated at Sat Sep 25 01:16:10 2021
Results reported at Sat Sep 25 01:16:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2022.3-4513_daily_bin967 305.591 -45.2228 489974401 490233601 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 :                                   815.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             355.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   833 sec.
    Turnaround time :                            851 sec.

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

