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


Performing analysis on: 4FGL_J2022.3-4513_daily_bin887
RA = 305.591, Dec = -45.2228
tmin = 469238401, tmax = 469497601
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='851810', job_status='RUN', time_executed='2021-09-25 00:58:12.660756', time_epoch_executed='1632556692.66' WHERE source_name='4FGL J2022.3-4513' and cadence='daily' and bin_id='887'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/851810

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/851810/ft1_4FGL_J2022.3-4513_daily_bin887.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/851810/ft2_4FGL_J2022.3-4513_daily_bin887.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/851810/ft1_4FGL_J2022.3-4513_daily_bin887.fits outfile=/scratch/kocevski/851810/ft1_filteredMKT_4FGL_J2022.3-4513_daily_bin887.fits ra=305.591 dec=-45.2228 rad=12.0 tmin=469238401.0 tmax=469497601.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.55
user 3.30
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/851810/ft1_filtered_4FGL_J2022.3-4513_daily_bin887.fits" evtable="EVENTS" scfile=/scratch/kocevski/851810/ft2_4FGL_J2022.3-4513_daily_bin887.fits sctable="SC_DATA" outfile=/scratch/kocevski/851810/ltcube_469238401_469497601_4FGL_J2022.3-4513_daily_bin887.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/851810/ft2_4FGL_J2022.3-4513_daily_bin887.fits
.....................!
real 16.19
user 15.84
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/851810/ft1_filtered_4FGL_J2022.3-4513_daily_bin887.fits evtable="EVENTS" scfile=/scratch/kocevski/851810/ft2_4FGL_J2022.3-4513_daily_bin887.fits sctable="SC_DATA" expcube=/scratch/kocevski/851810/ltcube_469238401_469497601_4FGL_J2022.3-4513_daily_bin887.fits outfile=/scratch/kocevski/851810/expmap_469238401_469497601_4FGL_J2022.3-4513_daily_bin887.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/851810/ltcube_469238401_469497601_4FGL_J2022.3-4513_daily_bin887.fits
.....................!
real 194.90
user 189.81
sys 4.72

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/851810/ft1_filtered_4FGL_J2022.3-4513_daily_bin887.fits scfile=/scratch/kocevski/851810/ft2_4FGL_J2022.3-4513_daily_bin887.fits outfile=/scratch/kocevski/851810/cmap_469238401_469497601_4FGL_J2022.3-4513_daily_bin887.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.57
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/851810/ft1_filtered_4FGL_J2022.3-4513_daily_bin887.fits scfile=/scratch/kocevski/851810/ft2_4FGL_J2022.3-4513_daily_bin887.fits outfile=/scratch/kocevski/851810/cmap_HighResolution_469238401_469497601_4FGL_J2022.3-4513_daily_bin887.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.57
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/851810/ft1_filtered_4FGL_J2022.3-4513_daily_bin887.fits evtable="EVENTS" scfile=/scratch/kocevski/851810/ft2_4FGL_J2022.3-4513_daily_bin887.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/851810/Model_4FGL_J2022.3-4513_daily_bin887.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/851810/ft1_filtered_4FGL_J2022.3-4513_daily_bin887.fits.....................!
real 67.73
user 66.23
sys 1.33

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .94178E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .78911       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.576       1.0000         .10000E-03   10000.    
     4 'norm      '    .18047E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    1.8127       1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10097E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.9383       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.8197       1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10605E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    42.644       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.3294       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.4586       1.0000         .10000E-03   10000.    
    16 'norm      '    5.5411       1.0000         .10000E-03   10000.    
    17 'Prefactor '    61.071       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.8711       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .64748       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=   7747.137     FROM MIGRAD    STATUS=CONVERGED    435 CALLS     2057 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    4.2518        .35212E-07** at limit **
   2  Prefactor     .78405        10.745       -.29422E-05    .48077E-04
   3  Prefactor     11.567        12.272       -.26018E-05   -.75836E-04
   4  norm          .10008E-03    9.4018        .10511E-05** at limit **
   5  norm          1.8127        1.1961       -.13505E-06   -.46766E-03
   6  norm          .10000E-03    4.7596       -.42088E-07** at limit **
   7  norm          .10000E-03    7.6175        .10677E-08** at limit **
   8  norm          1.9382        1.7239       -.19870E-06   -.27088E-03
   9  Prefactor     .10000E-03    47.269       -.32624E-05** at limit **
  10  norm          2.8190        2.5742       -.10840E-06   -.56173E-04
  11  norm          .10000E-03    6.2780       -.70646E-08** at limit **
  12  Prefactor     .10000E-03    10.399       -.39033E-07** at limit **
  13  Prefactor     42.631        72.040       -.17071E-04    .84753E-05
  14  Prefactor     5.3313        3.8772        .20930E-06   -.36188E-03
  15  Prefactor     3.4610        37.083        .15075E-04    .35312E-04
  16  norm          5.5410        2.2519       -.47235E-07   -.75343E-04
  17  Prefactor     60.994        61.960       -.76918E-04   -.14247E-04
  18  Prefactor     .10000E-03    4.0999       -.33138E-07** at limit **
  19  Normalizat    1.8709        .23805        .41349E-05   -.13425E-03
  20  Prefactor     .64755        .98281E-01   -.52071E-07    .24979E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100008
  Prefactor  = 0.784047
  Prefactor  = 11.567
  norm       = 0.000100083
  norm       = 1.81267
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.93822
  Prefactor  = 0.0001
  norm       = 2.81904
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.6314
  Prefactor  = 5.33126
  Prefactor  = 3.46101
  norm       = 5.54105
  Prefactor  = 60.9944
  Prefactor  = 0.0001
  Normalizat = 1.87095
  Prefactor  = 0.647552
 **********
 **   18 **HESSE 
 **********

 FCN=   7747.137     FROM HESSE     STATUS=OK           301 CALLS     2358 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    26.758        .34933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .78405        47.874        .55862E-02   -1.5531    
   3  Prefactor     11.567        12.223        .11775E-03   -1.5028    
   4  norm          .10008E-03    80.649        .52343E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.8127        1.1893        .74429E-04   -1.5439    
   6  norm          .10000E-03    4.8244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    7.6443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.9382        1.7171        .10536E-03   -1.5430    
   9  Prefactor     .10000E-03    47.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.8190        2.5701        .13119E-03   -1.5372    
  11  norm          .10000E-03    6.2801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     42.631        72.161        .61388E-04   -1.4401    
  14  Prefactor     5.3313        3.8623        .13863E-03   -1.5246    
  15  Prefactor     3.4610        37.223        .21746E-03   -1.5336    
  16  norm          5.5410        2.2582        .80246E-04   -1.5237    
  17  Prefactor     60.994        61.960        .25672E-03   -1.4144    
  18  Prefactor     .10000E-03    4.1236        .17403E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.8709        .28072        .29838E-03   -.67826    
  20  Prefactor     .64755        .11565        .20162E-03   -1.0562    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04555e-09
Minuit parameter uncertainties:
  1  0.000940519
  2  12.2627
  3  12.2256
  4  0.00519334
  5  1.18932
  6  1.04335e-05
  7  1.42498e-05
  8  1.71717
  9  7.70379e-05
  10  2.57018
  11  2.33747e-07
  12  4.76195e-06
  13  72.3092
  14  3.86249
  15  22.7182
  16  2.2582
  17  62.0254
  18  4.61211e-06
  19  0.280961
  20  0.11569
Done.

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

Extracting fit parameters...

4FGL J2022.3-4513
   Spectrum: LogParabola
302         norm:  2.819e+00  2.570e+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.476e-01  1.157e-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.871e+00  2.810e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.74
Ra Dec: 305.591 -45.223
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 2.31e-08 +/- 2.10e-08
Energy Flux (Fixed Index): 1.33e-05 +/- 1.22e-05

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

Saving results to:
/scratch/kocevski/851810/likelihoodResults_469238401_469497601_4FGL_J2022.3-4513_daily_bin887.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) = 7747.12904013
delta logL = 0.00791155218667

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7747.12870611
delta logL = 0.0082455798356

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8782       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9263       1.0000          .0000       5.0000    
     3 'Normalizat'    1.8732       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64710       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=   7747.129     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      193 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8787        113.06        .59894E-02    .55403E-04
   2  alpha         1.9260        3.4100        .42612        .73599E-05
   3  Normalizat    1.8732        .17368        .67430E-01    .31929E-05
   4  Prefactor     .64711        .53958E-01    .41693E-01    .23190E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.8787
  alpha      = 1.926
  Normalizat = 1.87317
  Prefactor  = 0.647106
 **********
 **   18 **HESSE 
 **********

 FCN=   7747.129     FROM HESSE     STATUS=OK            33 CALLS      226 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8787        2.6643        .13319E-03   -1.5369    
   2  alpha         1.9260        .72844        .21344E-01   -.23167    
   3  Normalizat    1.8732        .26295        .29824E-03   -.67769    
   4  Prefactor     .64711        .11228        .20169E-03   -1.0564    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.32798e-11
Minuit parameter uncertainties:
  1  2.66446
  2  0.739786
  3  0.263147
  4  0.112321
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/851810': 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) = 7747.12870601
delta logL = 0.00824567906511

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  6.471e-01  1.123e-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.873e+00  2.631e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.75
Ra Dec: 305.591 -45.223
Photon Index (Free Index): 1.93 +/- 0.74
Photon Flux (Free Index): 2.10e-08 +/- 2.44e-08
Energy Flux (Free Index): 1.44e-05 +/- 1.62e-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/851810/cmap_HighResolution_469238401_469497601_4FGL_J2022.3-4513_daily_bin887.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.67e-05', comment='SUCCESS', photon_flux='2.31e-08', energy_flux2='1.44e-05', photon_flux_error='2.10e-08', dlogl='8.25e-03', energy_flux='1.33e-05', photon_flux2='2.10e-08', job_status='DONE', time_completed='2021-09-25 01:09:43.745371', photon_index_error2='0.74', photon_index2='1.93', ts='2.74', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', photon_flux_upper_limit='8.06e-08', energy_flux_error2='1.62e-05', EG='1.87', time_epoch_completed='1632557383.75', return_code='0', job_id='851810', GAL2='0.65', EG2='1.87', return_code2='0', energy_flux_error='1.22e-05', photon_flux_error2='2.44e-08', ts2='2.75', photon_index='2.02' WHERE bin_id='887' AND source_name='4FGL J2022.3-4513' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 01:09:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 851810: <4FGL_J2022.3-4513_daily_bin887> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2022.3-4513_daily_bin887 305.591 -45.2228 469238401 469497601 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 :                                   689.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             378.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   706 sec.
    Turnaround time :                            805 sec.

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

