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


Performing analysis on: 4FGL_J2022.3-4513_daily_bin243
RA = 305.591, Dec = -45.2228
tmin = 302313601, tmax = 302572801
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='846335', job_status='RUN', time_executed='2021-09-25 00:39:19.719062', time_epoch_executed='1632555559.72' WHERE source_name='4FGL J2022.3-4513' and cadence='daily' and bin_id='243'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/846335

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/846335/ft1_4FGL_J2022.3-4513_daily_bin243.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/846335/ft2_4FGL_J2022.3-4513_daily_bin243.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/846335/ft1_4FGL_J2022.3-4513_daily_bin243.fits outfile=/scratch/kocevski/846335/ft1_filteredMKT_4FGL_J2022.3-4513_daily_bin243.fits ra=305.591 dec=-45.2228 rad=12.0 tmin=302313601.0 tmax=302572801.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.87
user 3.29
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/846335/ft1_filtered_4FGL_J2022.3-4513_daily_bin243.fits" evtable="EVENTS" scfile=/scratch/kocevski/846335/ft2_4FGL_J2022.3-4513_daily_bin243.fits sctable="SC_DATA" outfile=/scratch/kocevski/846335/ltcube_302313601_302572801_4FGL_J2022.3-4513_daily_bin243.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/846335/ft2_4FGL_J2022.3-4513_daily_bin243.fits
.....................!
real 13.24
user 12.74
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/846335/ft1_filtered_4FGL_J2022.3-4513_daily_bin243.fits evtable="EVENTS" scfile=/scratch/kocevski/846335/ft2_4FGL_J2022.3-4513_daily_bin243.fits sctable="SC_DATA" expcube=/scratch/kocevski/846335/ltcube_302313601_302572801_4FGL_J2022.3-4513_daily_bin243.fits outfile=/scratch/kocevski/846335/expmap_302313601_302572801_4FGL_J2022.3-4513_daily_bin243.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/846335/ltcube_302313601_302572801_4FGL_J2022.3-4513_daily_bin243.fits
.....................!
real 191.79
user 186.45
sys 4.79

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/846335/ft1_filtered_4FGL_J2022.3-4513_daily_bin243.fits scfile=/scratch/kocevski/846335/ft2_4FGL_J2022.3-4513_daily_bin243.fits outfile=/scratch/kocevski/846335/cmap_302313601_302572801_4FGL_J2022.3-4513_daily_bin243.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.59
user 0.41
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/846335/ft1_filtered_4FGL_J2022.3-4513_daily_bin243.fits scfile=/scratch/kocevski/846335/ft2_4FGL_J2022.3-4513_daily_bin243.fits outfile=/scratch/kocevski/846335/cmap_HighResolution_302313601_302572801_4FGL_J2022.3-4513_daily_bin243.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.58
user 0.42
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/846335/ft1_filtered_4FGL_J2022.3-4513_daily_bin243.fits evtable="EVENTS" scfile=/scratch/kocevski/846335/ft2_4FGL_J2022.3-4513_daily_bin243.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/846335/Model_4FGL_J2022.3-4513_daily_bin243.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/846335/ft1_filtered_4FGL_J2022.3-4513_daily_bin243.fits.....................!
real 67.20
user 65.88
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .36523E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    33.164       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.0517       1.0000         .10000E-03   10000.    
     4 'norm      '    6.3947       1.0000         .10000E-03   10000.    
     5 'norm      '    3.5900       1.0000         .10000E-03   10000.    
     6 'norm      '    29.992       1.0000         .10000E-03   10000.    
     7 'norm      '    9.5302       1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.252       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .92367E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.362       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.8784       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.6404       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    21.453       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.5849       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .76616       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=   7716.390     FROM MIGRAD    STATUS=CONVERGED    422 CALLS     2064 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    5.0816       -.48002E-06** at limit **
   2  Prefactor     33.143        27.584       -.32194E-05    .56226E-04
   3  Prefactor     8.0505        9.0855       -.23327E-05   -.47864E-04
   4  norm          6.3949        10.987        .97183E-06   -.26738E-04
   5  norm          3.5901        1.2997       -.12662E-06    .13798E-03
   6  norm          29.991        12.878       -.15801E-05    .13612E-03
   7  norm          9.5287        18.906       -.15257E-05    .49439E-04
   8  norm          .10000E-03    .85397       -.27967E-06** at limit **
   9  Prefactor     27.254        29.670       -.27837E-06    .23058E-04
  10  norm          .10000E-03    1.1045        .22976E-07** at limit **
  11  norm          .10005E-03    9.6355        .52684E-06** at limit **
  12  Prefactor     13.372        16.442        .32379E-05    .25123E-03
  13  Prefactor     1.7739        379.03       -.47881E-03    .11461E-03
  14  Prefactor     .10000E-03    1.6886       -.16970E-06** at limit **
  15  Prefactor     .10000E-03    13.177       -.32439E-06** at limit **
  16  norm          7.6407        2.4587        .16328E-06    .96790E-03
  17  Prefactor     .10000E-03    130.37        .32656E-04** at limit **
  18  Prefactor     21.453        10.715        .87517E-06    .10671E-03
  19  Normalizat    1.5849        .24193        .72362E-05    .49373E-03
  20  Prefactor     .76614        .10241        .72534E-06    .11996E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100008
  Prefactor  = 33.1432
  Prefactor  = 8.05052
  norm       = 6.39487
  norm       = 3.59008
  norm       = 29.9907
  norm       = 9.52868
  norm       = 0.0001
  Prefactor  = 27.2537
  norm       = 0.0001
  norm       = 0.000100049
  Prefactor  = 13.3716
  Prefactor  = 1.77392
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.64066
  Prefactor  = 0.000100001
  Prefactor  = 21.4533
  Normalizat = 1.58486
  Prefactor  = 0.766138
 **********
 **   18 **HESSE 
 **********

 FCN=   7716.390     FROM HESSE     STATUS=OK           295 CALLS     2359 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    19.537        .37671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     33.143        27.362        .69582E-04   -1.4556    
   3  Prefactor     8.0505        9.0933        .14130E-03   -1.5140    
   4  norm          6.3949        10.983        .15872E-03   -1.5202    
   5  norm          3.5901        1.2986        .57708E-04   -1.5329    
   6  norm          29.991        12.862        .73160E-04   -1.4612    
   7  norm          9.5287        18.894        .12981E-03   -1.5090    
   8  norm          .10000E-03    1.7477        .15772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     27.254        29.668        .76741E-04   -1.4663    
  10  norm          .10000E-03    1.1084        .90136E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10005E-03    59.042        .52687E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.372        16.307        .10958E-03   -1.4976    
  13  Prefactor     1.7739        390.33        .30378E-02   -1.5442    
  14  Prefactor     .10000E-03    1.7190        .11142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.6407        2.4637        .75024E-04   -1.5155    
  17  Prefactor     .10000E-03    130.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     21.453        10.730        .86478E-04   -1.4781    
  19  Normalizat    1.5849        .28694        .32667E-03   -.75421    
  20  Prefactor     .76614        .12172        .19185E-03   -1.0099    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.21826e-09
Minuit parameter uncertainties:
  1  0.000795731
  2  27.3723
  3  9.09485
  4  10.9861
  5  1.29857
  6  12.8627
  7  18.9063
  8  3.68863e-05
  9  29.6841
  10  2.62268e-06
  11  0.00338937
  12  16.3126
  13  52.9796
  14  2.1093e-05
  15  8.2099e-05
  16  2.46371
  17  0.000660427
  18  10.7307
  19  0.287235
  20  0.121758
Done.

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

Extracting fit parameters...

4FGL J2022.3-4513
   Spectrum: LogParabola
302         norm:  1.000e-04  2.623e-06  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:  7.661e-01  1.218e-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.585e+00  2.872e-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: 4.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.73e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/846335/likelihoodResults_302313601_302572801_4FGL_J2022.3-4513_daily_bin243.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) = 7716.39383801
delta logL = -0.00421567237208

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7716.38962305
delta logL = -7.16297108738e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0223       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5848       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76608       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=   7716.390     FROM MIGRAD    STATUS=FAILED        84 CALLS      227 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10003E-03    1.4610        .90139E-03** at limit **
   2  alpha         2.0456        2.6808        .16857       -.25306E-05
   3  Normalizat    1.5849        .27793        .32666E-03    .79002E-05
   4  Prefactor     .76614        .11941        .19185E-03    .14044E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7716.390     FROM SIMPLEX   STATUS=UNCHANGED    122 CALLS      349 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10003E-03    1.4610        .20138E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0456        2.6808        .83580E-03   -.18279    
   3  Normalizat    1.5849        .27793        .13435E-03   -.75421    
   4  Prefactor     .76614        .11941        .75430E-04   -1.0099    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7716.390     FROM MIGRAD    STATUS=CONVERGED     27 CALLS      376 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.1097        .18028E-03** at limit **
   2  alpha         2.0749        3.9342        .67430E-02    .13218E-06
   3  Normalizat    1.5849        .27819        .13067E-04   -.12007E-04
   4  Prefactor     .76614        .11953        .76741E-05   -.17185E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.07492
  Normalizat = 1.58486
  Prefactor  = 0.766136
 **********
 **   18 **HESSE 
 **********

 FCN=   7716.390     FROM HESSE     STATUS=OK            23 CALLS      399 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.1097        .36056E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0749        3.9196        .13486E-02   -.17086    
   3  Normalizat    1.5849        .27815        .26133E-05   -.75421    
   4  Prefactor     .76614        .11950        .15348E-05   -1.0099    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27466e-10
Minuit parameter uncertainties:
  1  2.71176e-05
  2  165.333
  3  0.278417
  4  0.119538
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/846335': 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) = 7716.38962228
delta logL = 5.06870492245e-08

Extracting fit parameters...

4FGL J2022.3-4513
   Spectrum: LogParabola
302         norm:  1.000e-04  2.712e-05  1.000e-04  1.000e+04 ( 1.000e-12)
303        alpha:  2.075e+00  1.653e+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:  7.661e-01  1.195e-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.585e+00  2.784e-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/846335/cmap_HighResolution_302313601_302572801_4FGL_J2022.3-4513_daily_bin243.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.73e-05', job_status='DONE', photon_flux_upper_limit='4.72e-08', time_completed='2021-09-25 00:50:55.341292', job_id='846335', GAL2='0.77', fit_tolerance='1e-08', EG2='1.58', EG='1.58', time_epoch_completed='1632556255.34', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='5.07e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='243' AND source_name='4FGL J2022.3-4513' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 00:50:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 846335: <4FGL_J2022.3-4513_daily_bin243> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2022.3-4513_daily_bin243 305.591 -45.2228 302313601 302572801 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 :                                   695.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             262.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   871 sec.
    Turnaround time :                            892 sec.

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

