/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 2 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 = 7424
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2022.3-4513_daily_bin306
RA = 305.591, Dec = -45.2228
tmin = 318643201, tmax = 318902401
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='846428', job_status='RUN', time_executed='2021-09-25 00:37:13.378419', time_epoch_executed='1632555433.38' WHERE source_name='4FGL J2022.3-4513' and cadence='daily' and bin_id='306'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/846428

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/846428/ft1_4FGL_J2022.3-4513_daily_bin306.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/846428/ft2_4FGL_J2022.3-4513_daily_bin306.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/846428/ft1_4FGL_J2022.3-4513_daily_bin306.fits outfile=/scratch/kocevski/846428/ft1_filteredMKT_4FGL_J2022.3-4513_daily_bin306.fits ra=305.591 dec=-45.2228 rad=12.0 tmin=318643201.0 tmax=318902401.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.45
user 3.15
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/846428/ft2_4FGL_J2022.3-4513_daily_bin306.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/846428/ft1_filteredMKT_4FGL_J2022.3-4513_daily_bin306.fits evtable="EVENTS" outfile="/scratch/kocevski/846428/ft1_filtered_4FGL_J2022.3-4513_daily_bin306.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.50
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/846428/ft1_filtered_4FGL_J2022.3-4513_daily_bin306.fits" evtable="EVENTS" scfile=/scratch/kocevski/846428/ft2_4FGL_J2022.3-4513_daily_bin306.fits sctable="SC_DATA" outfile=/scratch/kocevski/846428/ltcube_318643201_318902401_4FGL_J2022.3-4513_daily_bin306.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/846428/ft2_4FGL_J2022.3-4513_daily_bin306.fits
.....................!
real 12.50
user 12.12
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/846428/ft1_filtered_4FGL_J2022.3-4513_daily_bin306.fits evtable="EVENTS" scfile=/scratch/kocevski/846428/ft2_4FGL_J2022.3-4513_daily_bin306.fits sctable="SC_DATA" expcube=/scratch/kocevski/846428/ltcube_318643201_318902401_4FGL_J2022.3-4513_daily_bin306.fits outfile=/scratch/kocevski/846428/expmap_318643201_318902401_4FGL_J2022.3-4513_daily_bin306.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/846428/ltcube_318643201_318902401_4FGL_J2022.3-4513_daily_bin306.fits
.....................!
real 192.39
user 185.92
sys 5.73

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/846428/ft1_filtered_4FGL_J2022.3-4513_daily_bin306.fits scfile=/scratch/kocevski/846428/ft2_4FGL_J2022.3-4513_daily_bin306.fits outfile=/scratch/kocevski/846428/cmap_318643201_318902401_4FGL_J2022.3-4513_daily_bin306.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.36
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/846428/ft1_filtered_4FGL_J2022.3-4513_daily_bin306.fits evtable="EVENTS" scfile=/scratch/kocevski/846428/ft2_4FGL_J2022.3-4513_daily_bin306.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/846428/Model_4FGL_J2022.3-4513_daily_bin306.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/846428/ft1_filtered_4FGL_J2022.3-4513_daily_bin306.fits.....................!
real 83.24
user 81.87
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.2945       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.1330       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    16.344       1.0000         .10000E-03   10000.    
     5 'norm      '    .38291       1.0000         .10000E-03   10000.    
     6 'norm      '    8.1180       1.0000         .10000E-03   10000.    
     7 'norm      '    .13792E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.6195       1.0000         .10000E-03   10000.    
     9 'Prefactor '    31.598       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10712E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.307       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .78178E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12359E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.365       1.0000         .10000E-03   10000.    
    16 'norm      '    4.5656       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .21159E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.900       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .62432       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0722       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=   11240.52     FROM MIGRAD    STATUS=CONVERGED    449 CALLS     2102 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2970        5.6990       -.21554E-06   -.14552E-03
   2  Prefactor     3.1348        9.1315       -.78997E-06   -.11036E-03
   3  Prefactor     .10000E-03    2.7205       -.10538E-06** at limit **
   4  norm          16.353        14.339        .23917E-05   -.28277E-03
   5  norm          .38345        .57897       -.37428E-06   -.31716E-02
   6  norm          8.1197        7.8202        .18562E-05   -.41385E-03
   7  norm          .10000E-03    4.4314       -.31538E-06** at limit **
   8  norm          3.6199        1.5082        .17662E-07    .45373E-04
   9  Prefactor     31.573        32.386        .32812E-05   -.12103E-03
  10  norm          .10000E-03    1.3273       -.12342E-07** at limit **
  11  norm          .10000E-03    5.4600        .88342E-07** at limit **
  12  Prefactor     12.313        14.962        .17412E-06   -.18849E-04
  13  Prefactor     .10000E-03    250.46       -.43779E-05** at limit **
  14  Prefactor     .10000E-03    1.0129        .19727E-06** at limit **
  15  Prefactor     14.384        16.238       -.17194E-05    .88999E-04
  16  norm          4.5651        1.7660        .17867E-07   -.25289E-03
  17  Prefactor     .10000E-03    26.260       -.40690E-07** at limit **
  18  Prefactor     24.899        8.7386        .67005E-09    .29221E-05
  19  Normalizat    .62405        .19521       -.40773E-06    .97007E-05
  20  Prefactor     1.0722        .86452E-01   -.11574E-06    .26680E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.29695
  Prefactor  = 3.1348
  Prefactor  = 0.0001
  norm       = 16.3526
  norm       = 0.383451
  norm       = 8.11974
  norm       = 0.0001
  norm       = 3.61989
  Prefactor  = 31.5732
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 12.3134
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 14.3837
  norm       = 4.56507
  Prefactor  = 0.0001
  Prefactor  = 24.8986
  Normalizat = 0.624052
  Prefactor  = 1.07221
 **********
 **   18 **HESSE 
 **********

 FCN=   11240.52     FROM HESSE     STATUS=OK           297 CALLS     2399 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2970        5.7114        .14851E-03   -1.5168    
   2  Prefactor     3.1348        9.1737        .22904E-03   -1.5354    
   3  Prefactor     .10000E-03    8.0426        .33803E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          16.353        14.069        .99071E-04   -1.4899    
   5  norm          .38345        .61884        .10359E-03   -1.5584    
   6  norm          8.1197        7.6195        .14072E-03   -1.5138    
   7  norm          .10000E-03    15.938        .42967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.6199        1.5075        .81390E-04   -1.5327    
   9  Prefactor     31.573        32.147        .71281E-04   -1.4584    
  10  norm          .10000E-03    1.3798        .23844E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    5.4698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.313        14.948        .11419E-03   -1.5006    
  13  Prefactor     .10000E-03    257.40        .37033E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.4269        .20236E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.384        16.082        .10568E-03   -1.4949    
  16  norm          4.5651        1.7633        .82242E-04   -1.5281    
  17  Prefactor     .10000E-03    26.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     24.899        8.7389        .80277E-04   -1.4710    
  19  Normalizat    .62405        .21525        .42728E-03   -1.0697    
  20  Prefactor     1.0722        .97609E-01    .15478E-03   -.90360    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48749e-09
Minuit parameter uncertainties:
  1  5.71182
  2  9.17781
  3  3.68847e-05
  4  14.0723
  5  0.618851
  6  7.62044
  7  0.000118142
  8  1.50751
  9  32.1645
  10  7.3465e-07
  11  3.90279e-06
  12  14.9526
  13  0.00150778
  14  5.9002e-05
  15  16.0869
  16  1.76327
  17  2.09866e-05
  18  8.73938
  19  0.215539
  20  0.0976255
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  1.072e+00  9.763e-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:  6.241e-01  2.155e-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: 3.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.16e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/846428/likelihoodResults_318643201_318902401_4FGL_J2022.3-4513_daily_bin306.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) = 11240.5266153
delta logL = -0.00345742222817

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11240.5231577
delta logL = 2.01174771064e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0332       1.0000          .0000       5.0000    
     3 'Normalizat'    .62405       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0722       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   11240.52     FROM MIGRAD    STATUS=FAILED        98 CALLS      255 TOTAL
                     EDM=   .38E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    38.563        .23941E-02** at limit **
   2  alpha         2.2589        3.1092        .50000        .37886E-05
   3  Normalizat    .62405        .23336E-01    .42728E-03   -.25314E-03
   4  Prefactor     1.0722        .10934E-01    .15478E-03   -.70623E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   11240.52     FROM SIMPLEX   STATUS=UNCHANGED    206 CALLS      461 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    38.563        .21931E-03** at limit **
   2  alpha         2.2589        3.1092        .42298E-06    .37886E-05
   3  Normalizat    .62405        .23336E-01    .50318E-08   -.25314E-03
   4  Prefactor     1.0722        .10934E-01    .14082E-08   -.70623E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11240.52     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      497 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    162.16        .47883E-03** at limit **
   2  alpha         2.2590        3.3074        .50000        .11146E-06
   3  Normalizat    .62405        .54395E-01    .17091E-04   -.25250E-03
   4  Prefactor     1.0722        .25488E-01    .30957E-04   -.70408E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.25902
  Normalizat = 0.624052
  Prefactor  = 1.07221
 **********
 **   18 **HESSE 
 **********

 FCN=   11240.52     FROM HESSE     STATUS=OK            29 CALLS      526 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.8763        .95765E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2590        2.9120        .50000       -.96544E-01
   3  Normalizat    .62405        .20131        .34182E-05   -1.0697    
   4  Prefactor     1.0722        .94411E-01    .61913E-05   -.90360    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56943e-10
Minuit parameter uncertainties:
  1  5.30075e-06
  2  110.298
  3  0.20155
  4  0.0944259
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/846428': 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) = 11240.5231557
delta logL = 2.1775431378e-06

Extracting fit parameters...

4FGL J2022.3-4513
   Spectrum: LogParabola
302         norm:  1.000e-04  5.301e-06  1.000e-04  1.000e+04 ( 1.000e-12)
303        alpha:  2.259e+00  1.103e+02  0.000e+00  5.000e+00 ( 1.000e+00)
304         beta:  1.015e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
305           Eb:  1.016e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  1.072e+00  9.443e-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:  6.241e-01  2.015e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 305.591 -45.223

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/846428/cmap_HighResolution_318643201_318902401_4FGL_J2022.3-4513_daily_bin306.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.16e-05', job_status='DONE', photon_flux_upper_limit='3.74e-08', time_completed='2021-09-25 00:51:35.889672', job_id='846428', GAL2='1.07', fit_tolerance='1e-08', EG2='0.62', EG='0.62', time_epoch_completed='1632556295.89', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='2.18e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='306' AND source_name='4FGL J2022.3-4513' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 00:51:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 846428: <4FGL_J2022.3-4513_daily_bin306> in cluster <slac> Done

Job <4FGL_J2022.3-4513_daily_bin306> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep 25 00:36:09 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 00:37:00 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:37:00 2021
Terminated at Sat Sep 25 00:51:36 2021
Results reported at Sat Sep 25 00:51:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2022.3-4513_daily_bin306 305.591 -45.2228 318643201 318902401 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 :                                   860.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             357.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   878 sec.
    Turnaround time :                            927 sec.

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

