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


Performing analysis on: 4FGL_J2022.3-4513_daily_bin1046
RA = 305.591, Dec = -45.2228
tmin = 510451201, tmax = 510710401
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='853481', job_status='RUN', time_executed='2021-09-25 01:03:38.862165', time_epoch_executed='1632557018.86' WHERE source_name='4FGL J2022.3-4513' and cadence='daily' and bin_id='1046'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/853481

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/853481/ft1_4FGL_J2022.3-4513_daily_bin1046.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/853481/ft2_4FGL_J2022.3-4513_daily_bin1046.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/853481/ft1_4FGL_J2022.3-4513_daily_bin1046.fits outfile=/scratch/kocevski/853481/ft1_filteredMKT_4FGL_J2022.3-4513_daily_bin1046.fits ra=305.591 dec=-45.2228 rad=12.0 tmin=510451201.0 tmax=510710401.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.94
user 3.71
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/853481/ft1_filtered_4FGL_J2022.3-4513_daily_bin1046.fits" evtable="EVENTS" scfile=/scratch/kocevski/853481/ft2_4FGL_J2022.3-4513_daily_bin1046.fits sctable="SC_DATA" outfile=/scratch/kocevski/853481/ltcube_510451201_510710401_4FGL_J2022.3-4513_daily_bin1046.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/853481/ft2_4FGL_J2022.3-4513_daily_bin1046.fits
.....................!
real 13.25
user 12.88
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/853481/ft1_filtered_4FGL_J2022.3-4513_daily_bin1046.fits evtable="EVENTS" scfile=/scratch/kocevski/853481/ft2_4FGL_J2022.3-4513_daily_bin1046.fits sctable="SC_DATA" expcube=/scratch/kocevski/853481/ltcube_510451201_510710401_4FGL_J2022.3-4513_daily_bin1046.fits outfile=/scratch/kocevski/853481/expmap_510451201_510710401_4FGL_J2022.3-4513_daily_bin1046.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/853481/ltcube_510451201_510710401_4FGL_J2022.3-4513_daily_bin1046.fits
.....................!
real 191.26
user 186.43
sys 4.14

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/853481/ft1_filtered_4FGL_J2022.3-4513_daily_bin1046.fits scfile=/scratch/kocevski/853481/ft2_4FGL_J2022.3-4513_daily_bin1046.fits outfile=/scratch/kocevski/853481/cmap_510451201_510710401_4FGL_J2022.3-4513_daily_bin1046.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/853481/ft1_filtered_4FGL_J2022.3-4513_daily_bin1046.fits scfile=/scratch/kocevski/853481/ft2_4FGL_J2022.3-4513_daily_bin1046.fits outfile=/scratch/kocevski/853481/cmap_HighResolution_510451201_510710401_4FGL_J2022.3-4513_daily_bin1046.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.55
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/853481/ft1_filtered_4FGL_J2022.3-4513_daily_bin1046.fits evtable="EVENTS" scfile=/scratch/kocevski/853481/ft2_4FGL_J2022.3-4513_daily_bin1046.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/853481/Model_4FGL_J2022.3-4513_daily_bin1046.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/853481/ft1_filtered_4FGL_J2022.3-4513_daily_bin1046.fits....................!
real 60.86
user 58.95
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15471E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.1008       1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .73798E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    1.5377       1.0000         .10000E-03   10000.    
     7 'norm      '    11.279       1.0000         .10000E-03   10000.    
     8 'norm      '    .94775       1.0000         .10000E-03   10000.    
     9 'Prefactor '    44.112       1.0000         .10000E-03   10000.    
    10 'norm      '    1.6216       1.0000         .10000E-03   10000.    
    11 'norm      '    8.5337       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .58731E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10295E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .46940E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    48.272       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.5249       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .87017       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=   7304.081     FROM MIGRAD    STATUS=CONVERGED    446 CALLS     1864 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    11.083        .12935E-05** at limit **
   2  Prefactor     .10000E-03    10.441       -.13178E-05** at limit **
   3  Prefactor     1.1016        13.308        .20872E-05   -.13167E-03
   4  norm          .10000E-03    10.068        .13430E-05** at limit **
   5  norm          .68025E-01    .53727        .41358E-07   -.68684E-04
   6  norm          1.5381        6.9768        .94955E-07   -.12891E-04
   7  norm          11.281        17.899       -.49654E-07   -.14131E-04
   8  norm          .94769        .91998        .22341E-07    .16362E-05
   9  Prefactor     44.116        41.408       -.53938E-06   -.20902E-04
  10  norm          1.6212        2.3699        .29394E-07   -.14797E-04
  11  norm          8.5303        15.556       -.11295E-06   -.92892E-05
  12  Prefactor     .10000E-03    7.7665        .13273E-07** at limit **
  13  Prefactor     .10000E-03    79.648        .77395E-06** at limit **
  14  Prefactor     .10001E-03    3.1739       -.43099E-06** at limit **
  15  Prefactor     .10000E-03    17.907        .88014E-07** at limit **
  16  norm          .10001E-03    2.5351        .95112E-06** at limit **
  17  Prefactor     48.298        43.975       -.40611E-05   -.84648E-04
  18  Prefactor     .10000E-03    2.3437        .23389E-07** at limit **
  19  Normalizat    1.5245        .23931        .10175E-05   -.23446E-03
  20  Prefactor     .87040        .10684       -.94388E-06   -.17947E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 1.10157
  norm       = 0.0001
  norm       = 0.0680251
  norm       = 1.53806
  norm       = 11.2807
  norm       = 0.947686
  Prefactor  = 44.1155
  norm       = 1.62125
  norm       = 8.53032
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 0.000100006
  Prefactor  = 48.298
  Prefactor  = 0.0001
  Normalizat = 1.52454
  Prefactor  = 0.870397
 **********
 **   18 **HESSE 
 **********

 FCN=   7304.081     FROM HESSE     STATUS=OK           297 CALLS     2161 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    32.675        .39524E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.1016        31.806        .22643E-02   -1.5498    
   4  norm          .10000E-03    10.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .68025E-01    4.4994        .11808E-02   -1.5656    
   6  norm          1.5381        6.8669        .34393E-03   -1.5460    
   7  norm          11.281        17.843        .11929E-03   -1.5036    
   8  norm          .94769        .95976        .78721E-03   -1.5513    
   9  Prefactor     44.116        41.415        .60363E-04   -1.4379    
  10  norm          1.6212        2.3442        .15415E-03   -1.5453    
  11  norm          8.5303        15.559        .13722E-03   -1.5124    
  12  Prefactor     .10000E-03    7.7676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    79.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    7.8975        .20208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    18.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10001E-03    8.0635        .15016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     48.298        44.211        .28857E-03   -1.4317    
  18  Prefactor     .10000E-03    2.3470        .12777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.5245        .27404        .31792E-03   -.77091    
  20  Prefactor     .87040        .12549        .18029E-03   -.97183    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86281e-08
Minuit parameter uncertainties:
  1  0.00102663
  2  2.8508e-05
  3  11.8448
  4  3.50413e-05
  5  1.10575
  6  6.50078
  7  17.8517
  8  0.959774
  9  41.4418
  10  2.34434
  11  15.5663
  12  6.77793e-07
  13  5.56028e-05
  14  0.000418163
  15  4.13534e-06
  16  0.000441211
  17  44.2408
  18  2.89325e-08
  19  0.274304
  20  0.12553
Done.

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

Extracting fit parameters...

4FGL J2022.3-4513
   Spectrum: LogParabola
302         norm:  1.621e+00  2.344e+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:  8.704e-01  1.255e-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.525e+00  2.743e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/853481/likelihoodResults_510451201_510710401_4FGL_J2022.3-4513_daily_bin1046.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) = 7304.01981408
delta logL = 0.0616313690552

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7304.01686482
delta logL = 0.0645806334078

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4797       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5127       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5106       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87354       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=   7304.017     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      236 TOTAL
                     EDM=   .99E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4810        2.3891        .13417E-03    .33208E-03
   2  alpha         2.5149        1.4033        .27099E-01    .17129E-04
   3  Normalizat    1.5112        .27881        .31908E-03    .15474E-03
   4  Prefactor     .87333        .12268        .18001E-03    .31209E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.48098
  alpha      = 2.5149
  Normalizat = 1.51117
  Prefactor  = 0.873327
 **********
 **   18 **HESSE 
 **********

 FCN=   7304.017     FROM HESSE     STATUS=OK            25 CALLS      261 TOTAL
                     EDM=   .76E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4810        2.2524        .53667E-05   -1.5465    
   2  alpha         2.5149        1.3301        .10840E-02    .59618E-02
   3  Normalizat    1.5112        .27829        .12763E-04   -.77465    
   4  Prefactor     .87333        .12264        .36002E-04   -.97079    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.58341e-11
Minuit parameter uncertainties:
  1  2.25256
  2  1.40248
  3  0.278572
  4  0.122678
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/853481': 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) = 7304.0168589
delta logL = 0.0645865548559

Extracting fit parameters...

4FGL J2022.3-4513
   Spectrum: LogParabola
302         norm:  1.481e+00  2.253e+00  1.000e-04  1.000e+04 ( 1.000e-12)
303        alpha:  2.515e+00  1.402e+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:  8.733e-01  1.227e-01  0.000e+00  1.000e+01 ( 1.000e+00)
583        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
584        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
581   Normalization:  1.511e+00  2.786e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.03
Ra Dec: 305.591 -45.223
Photon Index (Free Index): 2.51 +/- 1.40
Photon Flux (Free Index): 2.44e-08 +/- 4.79e-08
Energy Flux (Free Index): 7.52e-06 +/- 1.00e-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/853481/cmap_HighResolution_510451201_510710401_4FGL_J2022.3-4513_daily_bin1046.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.33e-05', comment='SUCCESS', energy_flux2='7.52e-06', dlogl='6.46e-02', photon_flux2='2.44e-08', job_status='DONE', time_completed='2021-09-25 01:14:17.016851', photon_index_error2='1.40', photon_index2='2.51', ts='0.90', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='7.48e-08', energy_flux_error2='1.00e-05', EG='1.52', time_epoch_completed='1632557657.02', return_code='0', job_id='853481', GAL2='0.87', EG2='1.51', return_code2='0', photon_flux_error2='4.79e-08', ts2='1.03', photon_index='2.02' WHERE bin_id='1046' AND source_name='4FGL J2022.3-4513' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 01:14:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 853481: <4FGL_J2022.3-4513_daily_bin1046> in cluster <slac> Done

Job <4FGL_J2022.3-4513_daily_bin1046> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep 25 01:02:07 2021
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 01:02:58 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:58 2021
Terminated at Sat Sep 25 01:14:17 2021
Results reported at Sat Sep 25 01:14:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2022.3-4513_daily_bin1046 305.591 -45.2228 510451201 510710401 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 :                                   633.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             320.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   679 sec.
    Turnaround time :                            730 sec.

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

