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


Performing analysis on: 4FGL_J2022.3-4513_daily_bin1020
RA = 305.591, Dec = -45.2228
tmin = 503712001, tmax = 503971201
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='853441', job_status='RUN', time_executed='2021-09-25 01:04:27.526728', time_epoch_executed='1632557067.53' WHERE source_name='4FGL J2022.3-4513' and cadence='daily' and bin_id='1020'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/853441

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/853441/ft1_4FGL_J2022.3-4513_daily_bin1020.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/853441/ft2_4FGL_J2022.3-4513_daily_bin1020.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/853441/ft1_4FGL_J2022.3-4513_daily_bin1020.fits outfile=/scratch/kocevski/853441/ft1_filteredMKT_4FGL_J2022.3-4513_daily_bin1020.fits ra=305.591 dec=-45.2228 rad=12.0 tmin=503712001.0 tmax=503971201.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.55
user 5.31
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/853441/ft1_filtered_4FGL_J2022.3-4513_daily_bin1020.fits" evtable="EVENTS" scfile=/scratch/kocevski/853441/ft2_4FGL_J2022.3-4513_daily_bin1020.fits sctable="SC_DATA" outfile=/scratch/kocevski/853441/ltcube_503712001_503971201_4FGL_J2022.3-4513_daily_bin1020.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/853441/ft2_4FGL_J2022.3-4513_daily_bin1020.fits
.....................!
real 13.27
user 12.92
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/853441/ft1_filtered_4FGL_J2022.3-4513_daily_bin1020.fits evtable="EVENTS" scfile=/scratch/kocevski/853441/ft2_4FGL_J2022.3-4513_daily_bin1020.fits sctable="SC_DATA" expcube=/scratch/kocevski/853441/ltcube_503712001_503971201_4FGL_J2022.3-4513_daily_bin1020.fits outfile=/scratch/kocevski/853441/expmap_503712001_503971201_4FGL_J2022.3-4513_daily_bin1020.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/853441/ltcube_503712001_503971201_4FGL_J2022.3-4513_daily_bin1020.fits
.....................!
real 191.79
user 186.00
sys 5.28

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/853441/ft1_filtered_4FGL_J2022.3-4513_daily_bin1020.fits scfile=/scratch/kocevski/853441/ft2_4FGL_J2022.3-4513_daily_bin1020.fits outfile=/scratch/kocevski/853441/cmap_503712001_503971201_4FGL_J2022.3-4513_daily_bin1020.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/853441/ft1_filtered_4FGL_J2022.3-4513_daily_bin1020.fits scfile=/scratch/kocevski/853441/ft2_4FGL_J2022.3-4513_daily_bin1020.fits outfile=/scratch/kocevski/853441/cmap_HighResolution_503712001_503971201_4FGL_J2022.3-4513_daily_bin1020.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.54
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/853441/ft1_filtered_4FGL_J2022.3-4513_daily_bin1020.fits evtable="EVENTS" scfile=/scratch/kocevski/853441/ft2_4FGL_J2022.3-4513_daily_bin1020.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/853441/Model_4FGL_J2022.3-4513_daily_bin1020.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/853441/ft1_filtered_4FGL_J2022.3-4513_daily_bin1020.fits.....................!
real 51.16
user 49.76
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.019       1.0000         .10000E-03   10000.    
     4 'norm      '    38.108       1.0000         .10000E-03   10000.    
     5 'norm      '    .13126E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    7.9611       1.0000         .10000E-03   10000.    
     7 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.9245       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.421       1.0000         .10000E-03   10000.    
    10 'norm      '    5.6709       1.0000         .10000E-03   10000.    
    11 'norm      '    7.4925       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .18758E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .74905       1.0000         .10000E-03   10000.    
    16 'norm      '    .12543E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.6033       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .78350       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.

 FCN=   5360.638     FROM MIGRAD    STATUS=CONVERGED    762 CALLS     2407 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.1748        .18142E-02** at limit **
   2  Prefactor     .10000E-03    10.835        .18142E-02** at limit **
   3  Prefactor     12.009        14.821        .11555E-03    .22856E-03
   4  norm          38.103        29.528        .64926E-04    .44231E-04
   5  norm          .10000E-03    4.5252        .11287E-02** at limit **
   6  norm          7.9542        11.352        .14211E-03    .17184E-03
   7  norm          .10000E-03    16.959        .18142E-02** at limit **
   8  norm          3.9234        3.5997        .12878E-03    .12686E-03
   9  Prefactor     13.442        56.739        .10934E-03    .43048E-04
  10  norm          5.6710        4.2750        .12768E-03    .15347E-03
  11  norm          7.4900        16.691        .14652E-03   -.25295E-04
  12  Prefactor     .10000E-03    18.927        .18142E-02** at limit **
  13  Prefactor     .10010E-03    313.10        .18142E-02** at limit **
  14  Prefactor     .10000E-03    5.6286        .16863E-02** at limit **
  15  Prefactor     .39563        49.700        .13042        .11174E-03
  16  norm          .10001E-03    5.5289        .18488E-02** at limit **
  17  Prefactor     .10000E-03    66.758        .18142E-02** at limit **
  18  Prefactor     .10000E-03    6.0470        .17558E-02** at limit **
  19  Normalizat    1.6040        .34657        .33007E-03    .75992E-03
  20  Prefactor     .78345        .14360        .18544E-03    .13766E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.0089
  norm       = 38.1035
  norm       = 0.0001
  norm       = 7.95425
  norm       = 0.0001
  norm       = 3.92338
  Prefactor  = 13.4424
  norm       = 5.67098
  norm       = 7.49
  Prefactor  = 0.000100001
  Prefactor  = 0.000100097
  Prefactor  = 0.0001
  Prefactor  = 0.395627
  norm       = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.60395
  Prefactor  = 0.78345
 **********
 **   18 **HESSE 
 **********

 FCN=   5360.638     FROM HESSE     STATUS=OK           281 CALLS     2688 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.1760        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.835        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.009        14.819        .46220E-05   -1.5015    
   4  norm          38.103        29.528        .12985E-04   -1.4473    
   5  norm          .10000E-03    4.5653        .22574E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          7.9542        11.351        .56842E-05   -1.5144    
   7  norm          .10000E-03    16.968        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.9234        3.5996        .51513E-05   -1.5312    
   9  Prefactor     13.442        56.691        .43734E-05   -1.4975    
  10  norm          5.6710        4.2749        .25535E-04   -1.5232    
  11  norm          7.4900        16.690        .58606E-05   -1.5161    
  12  Prefactor     .10000E-03    18.928        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10010E-03    313.18        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.6307        .33726E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .39563        46.593        .13601       -1.5582    
  16  norm          .10001E-03    5.5497        .36976E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    66.758        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.0476        .35116E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.6040        .34666        .66015E-04   -.74898    
  20  Prefactor     .78345        .14370        .37088E-04   -1.0034    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.25058e-09
Minuit parameter uncertainties:
  1  4.33148e-05
  2  7.05989e-06
  3  14.8235
  4  29.5389
  5  7.7535e-05
  6  11.3545
  7  9.3591e-05
  8  3.59985
  9  55.3007
  10  4.27514
  11  16.7007
  12  0.000203695
  13  0.0110959
  14  3.07931e-05
  15  8.59259
  16  0.00041164
  17  3.39567e-05
  18  3.13229e-05
  19  0.347183
  20  0.143773
Done.

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

Extracting fit parameters...

4FGL J2022.3-4513
   Spectrum: LogParabola
302         norm:  5.671e+00  4.275e+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:  7.834e-01  1.438e-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.604e+00  3.472e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.03
Ra Dec: 305.591 -45.223
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 4.64e-08 +/- 3.50e-08
Energy Flux (Fixed Index): 2.69e-05 +/- 2.02e-05

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) = 5359.85006442
delta logL = 0.788025734838

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5359.80057447
delta logL = 0.837515686125

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.2531       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.1855       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6280       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77954       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=   5359.801     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      203 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.2531        3.3005        .48844E-02    .44671E-02
   2  alpha         1.1855        .44196        .35402       -.49427E-04
   3  Normalizat    1.6279        .28316        .74159E-01    .13238E-04
   4  Prefactor     .77956        .11688        .43450E-01    .44389E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.25307
  alpha      = 1.18547
  Normalizat = 1.62794
  Prefactor  = 0.779556
 **********
 **   18 **HESSE 
 **********

 FCN=   5359.801     FROM HESSE     STATUS=OK            31 CALLS      234 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.2531        4.1378        .11204E-03   -1.5295    
   2  alpha         1.1855        .58844        .14656E-01   -.55367    
   3  Normalizat    1.6279        .33803        .32812E-03   -.74244    
   4  Prefactor     .77956        .13968        .18583E-03   -1.0049    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.69821e-09
Minuit parameter uncertainties:
  1  4.13811
  2  0.596219
  3  0.338505
  4  0.139739
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/853441': 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) = 5359.80057446
delta logL = 0.837515697644

Extracting fit parameters...

4FGL J2022.3-4513
   Spectrum: LogParabola
302         norm:  4.253e+00  4.138e+00  1.000e-04  1.000e+04 ( 1.000e-12)
303        alpha:  1.185e+00  5.962e-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:  7.796e-01  1.397e-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.628e+00  3.385e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.71
Ra Dec: 305.591 -45.223
Photon Index (Free Index): 1.19 +/- 0.60
Photon Flux (Free Index): 1.91e-08 +/- 1.84e-08
Energy Flux (Free Index): 7.52e-05 +/- 9.15e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/853441/cmap_HighResolution_503712001_503971201_4FGL_J2022.3-4513_daily_bin1020.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.64e-08', energy_flux2='7.52e-05', photon_flux_error='3.50e-08', dlogl='8.38e-01', energy_flux='2.69e-05', photon_flux2='1.91e-08', job_status='DONE', time_completed='2021-09-25 01:13:41.793596', photon_index_error2='0.60', photon_index2='1.19', ts='5.03', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='9.15e-05', EG='1.60', time_epoch_completed='1632557621.79', return_code='0', job_id='853441', GAL2='0.78', EG2='1.63', return_code2='0', energy_flux_error='2.02e-05', photon_flux_error2='1.84e-08', ts2='6.71', photon_index='2.02' WHERE bin_id='1020' AND source_name='4FGL J2022.3-4513' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 01:13:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0152>
Subject: Job 853441: <4FGL_J2022.3-4513_daily_bin1020> in cluster <slac> Done

Job <4FGL_J2022.3-4513_daily_bin1020> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep 25 01:02:05 2021
Job was executed on host(s) <bullet0152>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 01:02:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 25 01:02:42 2021
Terminated at Sat Sep 25 01:13:42 2021
Results reported at Sat Sep 25 01:13:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2022.3-4513_daily_bin1020 305.591 -45.2228 503712001 503971201 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 :                                   538.32 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             283.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   660 sec.
    Turnaround time :                            697 sec.

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

