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


Performing analysis on: 4FGL_J2022.3-4513_daily_bin473
RA = 305.591, Dec = -45.2228
tmin = 361929601, tmax = 362188801
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='848949', job_status='RUN', time_executed='2021-09-25 00:49:00.172120', time_epoch_executed='1632556140.17' WHERE source_name='4FGL J2022.3-4513' and cadence='daily' and bin_id='473'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/848949

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

Retrieving the FT1 file...

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

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

Retrieving 51 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/848949/ft1_4FGL_J2022.3-4513_daily_bin473.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/848949/ft2_4FGL_J2022.3-4513_daily_bin473.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/848949/ft1_4FGL_J2022.3-4513_daily_bin473.fits outfile=/scratch/kocevski/848949/ft1_filteredMKT_4FGL_J2022.3-4513_daily_bin473.fits ra=305.591 dec=-45.2228 rad=12.0 tmin=361929601.0 tmax=362188801.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 5.61
user 5.27
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/848949/ft2_4FGL_J2022.3-4513_daily_bin473.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/848949/ft1_filteredMKT_4FGL_J2022.3-4513_daily_bin473.fits evtable="EVENTS" outfile="/scratch/kocevski/848949/ft1_filtered_4FGL_J2022.3-4513_daily_bin473.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.72
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/848949/ft1_filtered_4FGL_J2022.3-4513_daily_bin473.fits" evtable="EVENTS" scfile=/scratch/kocevski/848949/ft2_4FGL_J2022.3-4513_daily_bin473.fits sctable="SC_DATA" outfile=/scratch/kocevski/848949/ltcube_361929601_362188801_4FGL_J2022.3-4513_daily_bin473.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/848949/ft2_4FGL_J2022.3-4513_daily_bin473.fits
.....................!
real 14.03
user 13.66
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/848949/ft1_filtered_4FGL_J2022.3-4513_daily_bin473.fits evtable="EVENTS" scfile=/scratch/kocevski/848949/ft2_4FGL_J2022.3-4513_daily_bin473.fits sctable="SC_DATA" expcube=/scratch/kocevski/848949/ltcube_361929601_362188801_4FGL_J2022.3-4513_daily_bin473.fits outfile=/scratch/kocevski/848949/expmap_361929601_362188801_4FGL_J2022.3-4513_daily_bin473.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/848949/ltcube_361929601_362188801_4FGL_J2022.3-4513_daily_bin473.fits
.....................!
real 192.21
user 185.86
sys 5.57

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/848949/ft1_filtered_4FGL_J2022.3-4513_daily_bin473.fits scfile=/scratch/kocevski/848949/ft2_4FGL_J2022.3-4513_daily_bin473.fits outfile=/scratch/kocevski/848949/cmap_361929601_362188801_4FGL_J2022.3-4513_daily_bin473.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.58
user 0.39
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/848949/ft1_filtered_4FGL_J2022.3-4513_daily_bin473.fits evtable="EVENTS" scfile=/scratch/kocevski/848949/ft2_4FGL_J2022.3-4513_daily_bin473.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/848949/Model_4FGL_J2022.3-4513_daily_bin473.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/848949/ft1_filtered_4FGL_J2022.3-4513_daily_bin473.fits.....................!
real 70.70
user 69.35
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.4207       1.0000         .10000E-03   10000.    
     6 'norm      '    2.4245       1.0000         .10000E-03   10000.    
     7 'norm      '    4.2351       1.0000         .10000E-03   10000.    
     8 'norm      '    2.7419       1.0000         .10000E-03   10000.    
     9 'Prefactor '    33.065       1.0000         .10000E-03   10000.    
    10 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.432       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.1540       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.875       1.0000         .10000E-03   10000.    
    16 'norm      '    6.3941       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.3468       1.0000         .10000E-03   10000.    
    18 'Prefactor '    30.343       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .70045       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1091       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=   8795.543     FROM MIGRAD    STATUS=CONVERGED    402 CALLS     2052 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.3876       -.11361E-06** at limit **
   2  Prefactor     .10000E-03    29.246       -.10389E-04** at limit **
   3  Prefactor     .10000E-03    3.0878       -.17607E-07** at limit **
   4  norm          .10000E-03    5.7249        .76411E-07** at limit **
   5  norm          5.4208        1.3089       -.37756E-07   -.88727E-04
   6  norm          2.4292        8.5176        .45231E-05   -.23531E-03
   7  norm          4.2227        18.968       -.17164E-04   -.10453E-03
   8  norm          2.7419        1.8667       -.55047E-07   -.25278E-03
   9  Prefactor     33.063        43.194       -.32548E-05   -.12298E-05
  10  norm          .10000E-03    2.0238        .21276E-06** at limit **
  11  norm          .10000E-03    19.825       -.25010E-05** at limit **
  12  Prefactor     16.418        22.670       -.16329E-04    .37582E-05
  13  Prefactor     .10000E-03    26.664        .14456E-04** at limit **
  14  Prefactor     3.1548        3.1251       -.43719E-06   -.64068E-03
  15  Prefactor     11.875        13.246       -.55855E-06   -.67882E-05
  16  norm          6.3941        2.2871       -.10976E-06   -.18354E-03
  17  Prefactor     7.3463        34.214       -.17984E-05   -.10617E-04
  18  Prefactor     30.343        10.742       -.30577E-06   -.25419E-05
  19  Normalizat    .70050        .24792        .48307E-05   -.29182E-05
  20  Prefactor     1.1091        .10708       -.98381E-07    .17430E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.4208
  norm       = 2.42917
  norm       = 4.22272
  norm       = 2.74192
  Prefactor  = 33.0626
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 16.4177
  Prefactor  = 0.0001
  Prefactor  = 3.15483
  Prefactor  = 11.8746
  norm       = 6.39406
  Prefactor  = 7.34631
  Prefactor  = 30.3426
  Normalizat = 0.700505
  Prefactor  = 1.10912
 **********
 **   18 **HESSE 
 **********

 FCN=   8795.543     FROM HESSE     STATUS=OK           295 CALLS     2347 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.4865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    29.527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.0997        .16093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    5.7279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.4208        1.3085        .50540E-04   -1.5242    
   6  norm          2.4292        8.3881        .26284E-03   -1.5396    
   7  norm          4.2227        18.806        .19580E-03   -1.5297    
   8  norm          2.7419        1.8621        .10189E-03   -1.5377    
   9  Prefactor     33.063        43.193        .69686E-04   -1.4557    
  10  norm          .10000E-03    2.0509        .13022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    19.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.418        22.629        .98804E-04   -1.4897    
  13  Prefactor     .10000E-03    26.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.1548        3.1216        .15829E-03   -1.5353    
  15  Prefactor     11.875        13.237        .11625E-03   -1.5019    
  16  norm          6.3941        2.2905        .80065E-04   -1.5202    
  17  Prefactor     7.3463        34.202        .14797E-03   -1.5166    
  18  Prefactor     30.343        10.749        .72736E-04   -1.4606    
  19  Normalizat    .70050        .27769        .44678E-03   -1.0387    
  20  Prefactor     1.1091        .12183        .16320E-03   -.89176    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.30488e-10
Minuit parameter uncertainties:
  1  1.43422e-05
  2  4.35434e-06
  3  5.71704e-06
  4  1.89588e-06
  5  1.3085
  6  8.39218
  7  17.8321
  8  1.86213
  9  43.2339
  10  3.27442e-05
  11  0.000331112
  12  22.6404
  13  2.08813e-05
  14  3.12179
  15  13.2404
  16  2.2905
  17  31.7319
  18  10.7499
  19  0.278245
  20  0.121858
Done.

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

Extracting fit parameters...

4FGL J2022.3-4513
   Spectrum: LogParabola
302         norm:  1.000e-04  3.274e-05  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.109e+00  1.219e-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:  7.005e-01  2.782e-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.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.55e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/848949/likelihoodResults_361929601_362188801_4FGL_J2022.3-4513_daily_bin473.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) = 8795.54492979
delta logL = -0.00232530971698

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8795.54260256
delta logL = 1.92177867575e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0657       1.0000          .0000       5.0000    
     3 'Normalizat'    .70049       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1091       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=   8794.955     FROM MIGRAD    STATUS=CONVERGED    154 CALLS      300 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .28477        .48132        .90712E-02    .29804E-02
   2  alpha         4.0078        .67284        .41965       -.84375E-04
   3  Normalizat    .59578        .26805        .10883        .28262E-04
   4  Prefactor     1.1362        .11290        .37250E-01    .19746E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.284766
  alpha      = 4.00784
  Normalizat = 0.595778
  Prefactor  = 1.13622
 **********
 **   18 **HESSE 
 **********

 FCN=   8794.955     FROM HESSE     STATUS=OK            33 CALLS      333 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .28477        .55315        .46113E-04   -1.5601    
   2  alpha         4.0078        .92663        .19239E-01    2.4942    
   3  Normalizat    .59578        .28014        .48243E-03   -1.0816    
   4  Prefactor     1.1362        .12263        .16144E-03   -.88317    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.75382e-08
Minuit parameter uncertainties:
  1  0.553163
  2  0.96371
  3  0.280806
  4  0.122664
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/848949': 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) = 8794.95488976
delta logL = 0.587714725778

Extracting fit parameters...

4FGL J2022.3-4513
   Spectrum: LogParabola
302         norm:  2.848e-01  5.532e-01  1.000e-04  1.000e+04 ( 1.000e-12)
303        alpha:  4.008e+00  9.637e-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:  1.136e+00  1.227e-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:  5.958e-01  2.808e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.31
Ra Dec: 305.591 -45.223
Photon Index (Free Index): 4.01 +/- 0.96
Photon Flux (Free Index): 6.87e-08 +/- 2.52e-07
Energy Flux (Free Index): 1.08e-05 +/- 3.79e-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/848949/cmap_HighResolution_361929601_362188801_4FGL_J2022.3-4513_daily_bin473.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.55e-05', comment='SUCCESS', energy_flux2='1.08e-05', dlogl='5.88e-01', photon_flux2='6.87e-08', job_status='DONE', time_completed='2021-09-25 01:01:20.300823', photon_index_error2='0.96', photon_index2='4.01', ts='-0.00', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='6.12e-08', energy_flux_error2='3.79e-05', EG='0.70', time_epoch_completed='1632556880.3', return_code='0', job_id='848949', GAL2='1.14', EG2='0.60', return_code2='0', photon_flux_error2='2.52e-07', ts2='1.31', photon_index='2.02' WHERE bin_id='473' AND source_name='4FGL J2022.3-4513' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 01:01:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 848949: <4FGL_J2022.3-4513_daily_bin473> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2022.3-4513_daily_bin473 305.591 -45.2228 361929601 362188801 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 :                                   738.56 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             255.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   895 sec.
    Turnaround time :                            907 sec.

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

