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


Performing analysis on: 4FGL_J2022.3-4513_daily_bin500
RA = 305.591, Dec = -45.2228
tmin = 368928001, tmax = 369187201
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='848989', job_status='RUN', time_executed='2021-09-25 00:48:39.524625', time_epoch_executed='1632556119.52' WHERE source_name='4FGL J2022.3-4513' and cadence='daily' and bin_id='500'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/848989

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/848989/ft1_4FGL_J2022.3-4513_daily_bin500.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/848989/ft2_4FGL_J2022.3-4513_daily_bin500.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/848989/ft1_4FGL_J2022.3-4513_daily_bin500.fits outfile=/scratch/kocevski/848989/ft1_filteredMKT_4FGL_J2022.3-4513_daily_bin500.fits ra=305.591 dec=-45.2228 rad=12.0 tmin=368928001.0 tmax=369187201.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.36
user 3.13
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/848989/ft1_filtered_4FGL_J2022.3-4513_daily_bin500.fits" evtable="EVENTS" scfile=/scratch/kocevski/848989/ft2_4FGL_J2022.3-4513_daily_bin500.fits sctable="SC_DATA" outfile=/scratch/kocevski/848989/ltcube_368928001_369187201_4FGL_J2022.3-4513_daily_bin500.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/848989/ft2_4FGL_J2022.3-4513_daily_bin500.fits
.....................!
real 13.72
user 13.29
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/848989/ft1_filtered_4FGL_J2022.3-4513_daily_bin500.fits evtable="EVENTS" scfile=/scratch/kocevski/848989/ft2_4FGL_J2022.3-4513_daily_bin500.fits sctable="SC_DATA" expcube=/scratch/kocevski/848989/ltcube_368928001_369187201_4FGL_J2022.3-4513_daily_bin500.fits outfile=/scratch/kocevski/848989/expmap_368928001_369187201_4FGL_J2022.3-4513_daily_bin500.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/848989/ltcube_368928001_369187201_4FGL_J2022.3-4513_daily_bin500.fits
.....................!
real 190.46
user 185.55
sys 4.35

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/848989/ft1_filtered_4FGL_J2022.3-4513_daily_bin500.fits scfile=/scratch/kocevski/848989/ft2_4FGL_J2022.3-4513_daily_bin500.fits outfile=/scratch/kocevski/848989/cmap_368928001_369187201_4FGL_J2022.3-4513_daily_bin500.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=305.591 yref=-45.2228 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/848989/ft1_filtered_4FGL_J2022.3-4513_daily_bin500.fits scfile=/scratch/kocevski/848989/ft2_4FGL_J2022.3-4513_daily_bin500.fits outfile=/scratch/kocevski/848989/cmap_HighResolution_368928001_369187201_4FGL_J2022.3-4513_daily_bin500.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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/848989/ft1_filtered_4FGL_J2022.3-4513_daily_bin500.fits evtable="EVENTS" scfile=/scratch/kocevski/848989/ft2_4FGL_J2022.3-4513_daily_bin500.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/848989/Model_4FGL_J2022.3-4513_daily_bin500.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/848989/ft1_filtered_4FGL_J2022.3-4513_daily_bin500.fits.....................!
real 74.45
user 73.04
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.3395       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.1709       1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .63687E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    6.6377       1.0000         .10000E-03   10000.    
     7 'norm      '    8.6745       1.0000         .10000E-03   10000.    
     8 'norm      '    1.9852       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .80118       1.0000         .10000E-03   10000.    
    11 'norm      '    6.0824       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10814E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    46.313       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .76953E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.0171       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .39762E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .74839       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1143       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=   10135.65     FROM MIGRAD    STATUS=CONVERGED    428 CALLS     2107 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.1292       -.62211E-07** at limit **
   2  Prefactor     7.3393        12.593       -.63381E-06   -.22704E-04
   3  Prefactor     9.1725        9.6679       -.72110E-06    .44748E-05
   4  norm          .10000E-03    7.1756        .82094E-06** at limit **
   5  norm          .24703E-02    .27111       -.28026E-06** at limit **
   6  norm          6.6378        6.0708       -.11309E-05    .46036E-04
   7  norm          8.6918        20.025        .12483E-04    .38804E-03
   8  norm          1.9854        1.4239       -.16769E-06    .85604E-04
   9  Prefactor     .10000E-03    36.338        .10072E-04** at limit **
  10  norm          .80219        2.9811       -.34484E-05   -.36713E-03
  11  norm          6.0828        11.829        .29192E-06   -.36626E-04
  12  Prefactor     .10000E-03    11.779        .10260E-05** at limit **
  13  Prefactor     46.262        44.833       -.58502E-04    .30420E-04
  14  Prefactor     .10000E-03    1.0238       -.25619E-06** at limit **
  15  Prefactor     .10000E-03    7.7587       -.14471E-05** at limit **
  16  norm          5.0170        1.8500        .17091E-06    .14938E-03
  17  Prefactor     .10000E-03    22.178       -.40589E-05** at limit **
  18  Prefactor     .10002E-03    3.0937        .62455E-06** at limit **
  19  Normalizat    .74830        .20868        .30677E-05    .42387E-03
  20  Prefactor     1.1143        .94264E-01    .43637E-06    .10116E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 7.33931
  Prefactor  = 9.17245
  norm       = 0.0001
  norm       = 0.00247028
  norm       = 6.63776
  norm       = 8.69179
  norm       = 1.98537
  Prefactor  = 0.0001
  norm       = 0.802195
  norm       = 6.0828
  Prefactor  = 0.0001
  Prefactor  = 46.262
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.01699
  Prefactor  = 0.0001
  Prefactor  = 0.000100017
  Normalizat = 0.748296
  Prefactor  = 1.11428
 **********
 **   18 **HESSE 
 **********

 FCN=   10135.65     FROM HESSE     STATUS=OK           307 CALLS     2414 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.1698        .17385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.3393        12.586        .14805E-03   -1.5166    
   3  Prefactor     9.1725        9.6690        .13234E-03   -1.5102    
   4  norm          .10000E-03    7.1950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .24703E-02    .97507        .17860E-01   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          6.6378        6.0579        .15575E-03   -1.5193    
   7  norm          8.6918        19.517        .13610E-03   -1.5118    
   8  norm          1.9854        1.4191        .98450E-04   -1.5426    
   9  Prefactor     .10000E-03    36.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .80219        4.9600        .28838E-02   -1.5529    
  11  norm          6.0828        11.821        .16279E-03   -1.5215    
  12  Prefactor     .10000E-03    11.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     46.262        44.636        .29459E-03   -1.4347    
  14  Prefactor     .10000E-03    5.2727        .19637E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.7891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.0170        1.8503        .78823E-04   -1.5260    
  17  Prefactor     .10000E-03    22.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10002E-03    12.908        .34371E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .74830        .23528        .40738E-03   -1.0202    
  20  Prefactor     1.1143        .10942        .15876E-03   -.89011    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.28119e-08
Minuit parameter uncertainties:
  1  1.64833e-05
  2  12.5907
  3  9.67064
  4  2.61881e-06
  5  0.0961512
  6  6.05845
  7  19.5312
  8  1.41913
  9  8.38694e-05
  10  3.98966
  11  11.8251
  12  0.000108901
  13  44.6679
  14  3.08362e-05
  15  1.47918e-05
  16  1.85029
  17  1.23754e-05
  18  0.000944832
  19  0.235597
  20  0.109441
Done.

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

Extracting fit parameters...

4FGL J2022.3-4513
   Spectrum: LogParabola
302         norm:  8.022e-01  3.990e+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:  1.114e+00  1.094e-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.483e-01  2.356e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/848989/likelihoodResults_368928001_369187201_4FGL_J2022.3-4513_daily_bin500.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) = 10133.4125753
delta logL = 2.23613248767

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10133.2322922
delta logL = 2.41641556637

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .62543       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.8581       1.0000          .0000       5.0000    
     3 'Normalizat'    .60218       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1511       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=   10133.23     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      225 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .62629        3.7704        .87653E-02    .17199E-02
   2  alpha         3.8573        3.8211        .27207        .10815E-03
   3  Normalizat    .60226        .53457E-01    .10156        .64394E-04
   4  Prefactor     1.1511        .24981E-01    .35903E-01   -.75658E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.626293
  alpha      = 3.85727
  Normalizat = 0.602265
  Prefactor  = 1.15112
 **********
 **   18 **HESSE 
 **********

 FCN=   10133.23     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      258 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .62629        7.8779        .39618E-04   -1.5550    
   2  alpha         3.8573        4.3331        .11357E-01    .57390    
   3  Normalizat    .60226        .22785        .45011E-03   -1.0789    
   4  Prefactor     1.1511        .10624        .15627E-03   -.87849    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.71727e-10
Minuit parameter uncertainties:
  1  4.44282
  2  3.67678
  3  0.228203
  4  0.106259
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/848989': 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) = 10133.2322917
delta logL = 2.41641604869

Extracting fit parameters...

4FGL J2022.3-4513
   Spectrum: LogParabola
302         norm:  6.263e-01  4.443e+00  1.000e-04  1.000e+04 ( 1.000e-12)
303        alpha:  3.857e+00  3.677e+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:  1.151e+00  1.063e-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:  6.023e-01  2.282e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.27
Ra Dec: 305.591 -45.223
Photon Index (Free Index): 3.86 +/- 3.68
Photon Flux (Free Index): 1.13e-07 +/- 5.88e-08
Energy Flux (Free Index): 1.84e-05 +/- 1.78e-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/848989/cmap_HighResolution_368928001_369187201_4FGL_J2022.3-4513_daily_bin500.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.46e-05', comment='SUCCESS', energy_flux2='1.84e-05', dlogl='2.42e+00', photon_flux2='1.13e-07', job_status='DONE', time_completed='2021-09-25 01:01:45.629044', photon_index_error2='3.68', photon_index2='3.86', ts='0.05', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='7.70e-08', energy_flux_error2='1.78e-05', EG='0.75', time_epoch_completed='1632556905.63', return_code='0', job_id='848989', GAL2='1.15', EG2='0.60', return_code2='102', photon_flux_error2='5.88e-08', ts2='5.27', photon_index='2.02' WHERE bin_id='500' AND source_name='4FGL J2022.3-4513' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 01:01:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 848989: <4FGL_J2022.3-4513_daily_bin500> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2022.3-4513_daily_bin500 305.591 -45.2228 368928001 369187201 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 :                                   785.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             341.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            929 sec.

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

