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


Performing analysis on: 4FGL_J2022.3-4513_daily_bin278
RA = 305.591, Dec = -45.2228
tmin = 311385601, tmax = 311644801
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='846387', job_status='RUN', time_executed='2021-09-25 00:40:14.306138', time_epoch_executed='1632555614.31' WHERE source_name='4FGL J2022.3-4513' and cadence='daily' and bin_id='278'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/846387

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/846387/ft1_4FGL_J2022.3-4513_daily_bin278.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/846387/ft2_4FGL_J2022.3-4513_daily_bin278.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/846387/ft1_4FGL_J2022.3-4513_daily_bin278.fits outfile=/scratch/kocevski/846387/ft1_filteredMKT_4FGL_J2022.3-4513_daily_bin278.fits ra=305.591 dec=-45.2228 rad=12.0 tmin=311385601.0 tmax=311644801.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.57
user 3.31
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/846387/ft1_filtered_4FGL_J2022.3-4513_daily_bin278.fits" evtable="EVENTS" scfile=/scratch/kocevski/846387/ft2_4FGL_J2022.3-4513_daily_bin278.fits sctable="SC_DATA" outfile=/scratch/kocevski/846387/ltcube_311385601_311644801_4FGL_J2022.3-4513_daily_bin278.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/846387/ft2_4FGL_J2022.3-4513_daily_bin278.fits
.....................!
real 15.46
user 15.09
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/846387/ft1_filtered_4FGL_J2022.3-4513_daily_bin278.fits evtable="EVENTS" scfile=/scratch/kocevski/846387/ft2_4FGL_J2022.3-4513_daily_bin278.fits sctable="SC_DATA" expcube=/scratch/kocevski/846387/ltcube_311385601_311644801_4FGL_J2022.3-4513_daily_bin278.fits outfile=/scratch/kocevski/846387/expmap_311385601_311644801_4FGL_J2022.3-4513_daily_bin278.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/846387/ltcube_311385601_311644801_4FGL_J2022.3-4513_daily_bin278.fits
.....................!
real 193.09
user 188.47
sys 4.18

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/846387/ft1_filtered_4FGL_J2022.3-4513_daily_bin278.fits scfile=/scratch/kocevski/846387/ft2_4FGL_J2022.3-4513_daily_bin278.fits outfile=/scratch/kocevski/846387/cmap_311385601_311644801_4FGL_J2022.3-4513_daily_bin278.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.57
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/846387/ft1_filtered_4FGL_J2022.3-4513_daily_bin278.fits scfile=/scratch/kocevski/846387/ft2_4FGL_J2022.3-4513_daily_bin278.fits outfile=/scratch/kocevski/846387/cmap_HighResolution_311385601_311644801_4FGL_J2022.3-4513_daily_bin278.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.59
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.3399       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.8654       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    27.411       1.0000         .10000E-03   10000.    
     5 'norm      '    1.3670       1.0000         .10000E-03   10000.    
     6 'norm      '    1.9599       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .82035       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.7763       1.0000         .10000E-03   10000.    
    11 'norm      '    .39098       1.0000         .10000E-03   10000.    
    12 'Prefactor '    28.689       1.0000         .10000E-03   10000.    
    13 'Prefactor '    110.98       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.4539       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.503       1.0000         .10000E-03   10000.    
    16 'norm      '    4.6294       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13143E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.9726       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .94607       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1463       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9720.207     FROM MIGRAD    STATUS=CONVERGED    441 CALLS     2071 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.3406        7.3139         .0000        .50740E-02
   2  Prefactor     3.8657        14.033         .0000        .82061E-03
   3  Prefactor     .10000E-03    4.7878         .0000    ** at limit **
   4  norm          27.409        19.394         .0000       -.17096E-03
   5  norm          1.3669        1.0060         .0000        .91214E-03
   6  norm          1.9607        7.7400         .0000        .10618E-01
   7  norm          .10000E-03    8.8816         .0000    ** at limit **
   8  norm          .82039        .88795         .0000       -.25444E-03
   9  Prefactor     .10000E-03    54.838         .0000    ** at limit **
  10  norm          7.7775        4.7414         .0000        .48526E-03
  11  norm          .23789        9.3110         .0000        .31883E-03
  12  Prefactor     28.746        24.863         .0000        .39815E-03
  13  Prefactor     110.99        82.253         .0000       -.17293E-04
  14  Prefactor     1.4536        1.8373         .0000        .46156E-03
  15  Prefactor     11.500        14.751         .0000       -.39300E-03
  16  norm          4.6293        2.1289         .0000        .28012E-03
  17  Prefactor     .10010E-03    93.639         .0000    ** at limit **
  18  Prefactor     6.9737        10.094         .0000        .19404E-02
  19  Normalizat    .94590        .23653         .0000        .54103E-04
  20  Prefactor     1.1464        .10261         .0000        .39200E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.3406
  Prefactor  = 3.86574
  Prefactor  = 0.0001
  norm       = 27.409
  norm       = 1.36688
  norm       = 1.96071
  norm       = 0.0001
  norm       = 0.820386
  Prefactor  = 0.000100001
  norm       = 7.77752
  norm       = 0.237888
  Prefactor  = 28.7456
  Prefactor  = 110.987
  Prefactor  = 1.45364
  Prefactor  = 11.4998
  norm       = 4.62934
  Prefactor  = 0.000100103
  Prefactor  = 6.97368
  Normalizat = 0.945897
  Prefactor  = 1.14637
 **********
 **   18 **HESSE 
 **********

 FCN=   9720.207     FROM HESSE     STATUS=OK           303 CALLS     2374 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.3406        7.3066        .13882E-03   -1.5130    
   2  Prefactor     3.8657        14.021        .20525E-03   -1.5315    
   3  Prefactor     .10000E-03    4.8190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          27.409        19.413        .76518E-04   -1.4660    
   5  norm          1.3669        .99237        .80695E-04   -1.5474    
   6  norm          1.9607        7.7371        .14815E-02   -1.5428    
   7  norm          .10000E-03    8.9036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .82039        .88688        .94058E-04   -1.5527    
   9  Prefactor     .10000E-03    55.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.7775        4.7404        .14380E-03   -1.5150    
  11  norm          .23789        13.443        .11047       -1.5610    
  12  Prefactor     28.746        24.996        .74799E-04   -1.4635    
  13  Prefactor     110.99        82.290        .38182E-04   -1.3597    
  14  Prefactor     1.4536        1.8154        .14591E-03   -1.5467    
  15  Prefactor     11.500        14.759        .11812E-03   -1.5030    
  16  norm          4.6293        2.1303        .92482E-04   -1.5278    
  17  Prefactor     .10010E-03    94.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.9737        10.114        .15193E-03   -1.5180    
  19  Normalizat    .94590        .26905        .41556E-03   -.94866    
  20  Prefactor     1.1464        .11799        .17139E-03   -.87998    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.72632e-08
Minuit parameter uncertainties:
  1  7.30736
  2  14.0328
  3  1.04597e-05
  4  19.4172
  5  0.992385
  6  7.741
  7  3.73846e-07
  8  0.886893
  9  0.000350458
  10  4.74063
  11  3.57661
  12  25.0052
  13  82.375
  14  1.81547
  15  14.7634
  16  2.13035
  17  0.00624985
  18  10.1167
  19  0.269437
  20  0.118013
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  1.146e+00  1.180e-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:  9.459e-01  2.694e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.86
Ra Dec: 305.591 -45.223
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 6.36e-08 +/- 3.88e-08
Energy Flux (Fixed Index): 3.68e-05 +/- 2.24e-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) = 9717.7239448
delta logL = 2.48329065902

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9717.57139456
delta logL = 2.63584090131

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1941       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2760       1.0000          .0000       5.0000    
     3 'Normalizat'    .76597       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1930       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=   9717.571     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      245 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1959        14.357        .56680E-02    .55564E-03
   2  alpha         3.2763        1.9697        .19072        .12087E-03
   3  Normalizat    .76580        .95032E-01    .10300        .49398E-04
   4  Prefactor     1.1930        .39319E-01    .34797E-01   -.70876E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.19588
  alpha      = 3.27633
  Normalizat = 0.765802
  Prefactor  = 1.19303
 **********
 **   18 **HESSE 
 **********

 FCN=   9717.571     FROM HESSE     STATUS=OK            33 CALLS      278 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1959        5.5833        .61743E-04   -1.5350    
   2  alpha         3.2763        1.0016        .79288E-02    .31575    
   3  Normalizat    .76580        .27240        .45650E-03   -1.0135    
   4  Prefactor     1.1930        .11954        .16823E-03   -.86546    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.3993e-08
Minuit parameter uncertainties:
  1  5.58424
  2  1.03389
  3  0.272887
  4  0.119565
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/846387': 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) = 9717.57138983
delta logL = 2.63584562656

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  1.193e+00  1.196e-01  0.000e+00  1.000e+01 ( 1.000e+00)
583        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
584        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
581   Normalization:  7.658e-01  2.729e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.76
Ra Dec: 305.591 -45.223
Photon Index (Free Index): 3.28 +/- 1.03
Photon Flux (Free Index): 1.94e-07 +/- 8.08e-08
Energy Flux (Free Index): 3.74e-05 +/- 1.65e-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/846387/cmap_HighResolution_311385601_311644801_4FGL_J2022.3-4513_daily_bin278.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.36e-08', energy_flux2='3.74e-05', photon_flux_error='3.88e-08', dlogl='2.64e+00', energy_flux='3.68e-05', photon_flux2='1.94e-07', job_status='DONE', time_completed='2021-09-25 00:51:49.248397', photon_index_error2='1.03', photon_index2='3.28', ts='4.86', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='1.65e-05', EG='0.95', time_epoch_completed='1632556309.25', return_code='0', job_id='846387', GAL2='1.19', EG2='0.77', return_code2='0', energy_flux_error='2.24e-05', photon_flux_error2='8.08e-08', ts2='10.76', photon_index='2.02' WHERE bin_id='278' AND source_name='4FGL J2022.3-4513' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 00:51:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 846387: <4FGL_J2022.3-4513_daily_bin278> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2022.3-4513_daily_bin278 305.591 -45.2228 311385601 311644801 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 :                                   694.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             254.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   906 sec.
    Turnaround time :                            944 sec.

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

