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


Performing analysis on: 4FGL_J1023.8-4335_monthly_bin23
RA = 155.973, Dec = -43.5951
tmin = 296611201, tmax = 299203201
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='82383', job_status='RUN', time_executed='2021-10-21 16:16:30.509271', time_epoch_executed='1634858190.51' WHERE source_name='4FGL J1023.8-4335' and cadence='monthly' and bin_id='23'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/82383

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

Retrieving the FT1 file...

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

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

Retrieving 453 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/82383/ft1_4FGL_J1023.8-4335_monthly_bin23.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/82383/ft2_4FGL_J1023.8-4335_monthly_bin23.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/82383/ft1_4FGL_J1023.8-4335_monthly_bin23.fits outfile=/scratch/kocevski/82383/ft1_filteredMKT_4FGL_J1023.8-4335_monthly_bin23.fits ra=155.973 dec=-43.5951 rad=12.0 tmin=296611201.0 tmax=299203201.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 31.65
user 30.35
sys 0.82

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/82383/ft2_4FGL_J1023.8-4335_monthly_bin23.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/82383/ft2_4FGL_J1023.8-4335_monthly_bin23.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/82383/ft1_filteredMKT_4FGL_J1023.8-4335_monthly_bin23.fits evtable="EVENTS" outfile="/scratch/kocevski/82383/ft1_filtered_4FGL_J1023.8-4335_monthly_bin23.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 1.29
user 0.66
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/82383/ft1_filtered_4FGL_J1023.8-4335_monthly_bin23.fits" evtable="EVENTS" scfile=/scratch/kocevski/82383/ft2_4FGL_J1023.8-4335_monthly_bin23.fits sctable="SC_DATA" outfile=/scratch/kocevski/82383/ltcube_296611201_299203201_4FGL_J1023.8-4335_monthly_bin23.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/82383/ft2_4FGL_J1023.8-4335_monthly_bin23.fits
.....................!
real 121.14
user 120.25
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/82383/ft1_filtered_4FGL_J1023.8-4335_monthly_bin23.fits evtable="EVENTS" scfile=/scratch/kocevski/82383/ft2_4FGL_J1023.8-4335_monthly_bin23.fits sctable="SC_DATA" expcube=/scratch/kocevski/82383/ltcube_296611201_299203201_4FGL_J1023.8-4335_monthly_bin23.fits outfile=/scratch/kocevski/82383/expmap_296611201_299203201_4FGL_J1023.8-4335_monthly_bin23.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/82383/ltcube_296611201_299203201_4FGL_J1023.8-4335_monthly_bin23.fits
.....................!
real 192.59
user 186.62
sys 5.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
Extended source Vela Junior in ROI with RadialDisk spatial model.
Extended source Westerlund 2 in ROI with RadialDisk spatial model.
Extended source FGES J1036.3-5833 in ROI with RadialDisk spatial model.
Extended source Vela X in ROI with RadialDisk spatial model.
Extended source FGES J1109.4-6115 in ROI with RadialDisk spatial model.
Extended source G296.5+10.0 in ROI with RadialDisk spatial model.
Added 250 point sources and 6 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1023.8-4335 @ 155.973 -43.5951

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/82383/ft1_filtered_4FGL_J1023.8-4335_monthly_bin23.fits scfile=/scratch/kocevski/82383/ft2_4FGL_J1023.8-4335_monthly_bin23.fits outfile=/scratch/kocevski/82383/cmap_296611201_299203201_4FGL_J1023.8-4335_monthly_bin23.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=155.973 yref=-43.5951 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.81
user 0.64
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/82383/ft1_filtered_4FGL_J1023.8-4335_monthly_bin23.fits scfile=/scratch/kocevski/82383/ft2_4FGL_J1023.8-4335_monthly_bin23.fits outfile=/scratch/kocevski/82383/cmap_HighResolution_296611201_299203201_4FGL_J1023.8-4335_monthly_bin23.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=155.973 yref=-43.5951 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.82
user 0.66
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/82383/ft1_filtered_4FGL_J1023.8-4335_monthly_bin23.fits evtable="EVENTS" scfile=/scratch/kocevski/82383/ft2_4FGL_J1023.8-4335_monthly_bin23.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/82383/Model_4FGL_J1023.8-4335_monthly_bin23.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 FGES J1036.3-5833
adding source FGES J1109.4-6115
adding source G296.5+10.0
adding source GAL_V02
adding source Vela Junior
adding source Vela X
adding source Westerlund 2
Working on...
/scratch/kocevski/82383/ft1_filtered_4FGL_J1023.8-4335_monthly_bin23.fits.....................!
real 2582.18
user 2570.34
sys 1.47

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/82383/ft1_filtered_4FGL_J1023.8-4335_monthly_bin23.fits', '/scratch/kocevski/82383/ft2_4FGL_J1023.8-4335_monthly_bin23.fits', expMap='/scratch/kocevski/82383/expmap_296611201_299203201_4FGL_J1023.8-4335_monthly_bin23.fits', expCube='/scratch/kocevski/82383/ltcube_296611201_299203201_4FGL_J1023.8-4335_monthly_bin23.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/82383/Model_4FGL_J1023.8-4335_monthly_bin23.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1023.8-4335'

4FGL J1023.8-4335
   Spectrum: LogParabola
449         norm:  1.387e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
450        alpha:  1.605e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
451         beta:  1.128e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
452           Eb:  3.044e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/82383/ft1_filtered_4FGL_J1023.8-4335_monthly_bin23.fits
Spacecraft file(s): /scratch/kocevski/82383/ft2_4FGL_J1023.8-4335_monthly_bin23.fits
Exposure map: /scratch/kocevski/82383/expmap_296611201_299203201_4FGL_J1023.8-4335_monthly_bin23.fits
Exposure cube: /scratch/kocevski/82383/ltcube_296611201_299203201_4FGL_J1023.8-4335_monthly_bin23.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/82383/Model_4FGL_J1023.8-4335_monthly_bin23.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) = 193645.990095

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .67839       1.0000         .10000E-03   10000.    
     2 'norm      '    3.3981       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10530E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.4045       1.0000         .10000E-03   10000.    
     6 'norm      '    4.8073       1.0000         .10000E-03   10000.    
     7 'norm      '    5.7536       1.0000         .10000E-03   10000.    
     8 'norm      '    2.1933       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.4603       1.0000         .10000E-03   10000.    
    10 'norm      '    3.6290       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.9036       1.0000         .10000E-03   10000.    
    12 'norm      '    12.291       1.0000         .10000E-03   10000.    
    13 'Normalizat'    1.2875       1.0000         .10000E-01   10.000    
    14 'Prefactor '    .95225       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9040E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   193645.3     FROM MIGRAD    STATUS=CONVERGED    250 CALLS     1062 TOTAL
                     EDM=   .41E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .68628        1.4449         .0000        .46668    
   2  norm          3.3990        3.5333         .0000        .18027E-02
   3  Prefactor     .10000E-03    2.1413         .0000    ** at limit **
   4  Prefactor     .10000E-03    6.3763         .0000    ** at limit **
   5  norm          1.4048        1.8582         .0000        .22512    
   6  norm          4.8068        1.2874         .0000       -.22660E-01
   7  norm          5.7525        1.9104         .0000       -.38082E-02
   8  norm          2.1910        3.6707         .0000        .41922E-01
   9  Prefactor     3.4598        1.7838         .0000        .43341E-02
  10  norm          3.6289        .62169         .0000        .90458E-02
  11  Prefactor     2.9037        2.7024         .0000        .64584E-01
  12  norm          12.301        5.1749         .0000        .71848E-02
  13  Normalizat    1.2874        .62280E-01     .0000        .56979E-03
  14  Prefactor     .95225        .12683E-01     .0000       -.40922E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.686277
  norm       = 3.39902
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.40485
  norm       = 4.80677
  norm       = 5.75252
  norm       = 2.191
  Prefactor  = 3.45977
  norm       = 3.62889
  Prefactor  = 2.90365
  norm       = 12.3012
  Normalizat = 1.28742
  Prefactor  = 0.952252
 **********
 **   18 **HESSE 
 **********

 FCN=   193645.3     FROM HESSE     STATUS=OK           170 CALLS     1232 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .68628        1.4586        .23957E-02   -1.5542    
   2  norm          3.3990        3.5316        .21947E-03   -1.5339    
   3  Prefactor     .10000E-03    2.1614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.4060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.4048        1.8540        .18295E-02   -1.5471    
   6  norm          4.8068        1.2876        .91744E-03   -1.5269    
   7  norm          5.7525        1.9117        .16745E-03   -1.5228    
   8  norm          2.1910        3.6699        .13894E-02   -1.5412    
   9  Prefactor     3.4598        1.7823        .21740E-03   -1.5336    
  10  norm          3.6289        .62027        .13619E-03   -1.5327    
  11  Prefactor     2.9037        2.6939        .11923E-02   -1.5367    
  12  norm          12.301        5.1672        .11426E-03   -1.5006    
  13  Normalizat    1.2874        .65057E-01    .54968E-03   -.83943    
  14  Prefactor     .95225        .13344E-01    .13239E-03   -.94338    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21893e-07
Minuit parameter uncertainties:
  1  1.45872
  2  3.53181
  3  4.29269e-06
  4  9.47075e-05
  5  1.85403
  6  1.28765
  7  1.91169
  8  3.67023
  9  1.78232
  10  0.620272
  11  2.69406
  12  5.16737
  13  0.0650606
  14  0.0133441
Done.

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

Extracting fit parameters...

4FGL J1023.8-4335
   Spectrum: LogParabola
449         norm:  4.807e+00  1.288e+00  1.000e-04  1.000e+04 ( 1.000e-13)
450        alpha:  1.605e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
451         beta:  1.128e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
452           Eb:  3.044e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
892    Prefactor:  9.523e-01  1.334e-02  0.000e+00  1.000e+01 ( 1.000e+00)
893        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
894        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
881   Normalization:  1.287e+00  6.506e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 56.44
Ra Dec: 155.973 -43.595
Photon Index (Fixed Index): 1.60 +/- 0.00
Photon Flux (Fixed Index): 1.10e-08 +/- 2.95e-09
Energy Flux (Fixed Index): 2.62e-05 +/- 7.02e-06

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) = 193645.305466
delta logL = 0.0197400865145

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 193645.303448
delta logL = 0.0217586168437

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   193645.3     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      253 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.7673        1.3074        .18427E-03   -.52673E-02
   2  alpha         1.6524        .23177        .27012E-01   -.47963E-03
   3  Normalizat    1.2868        .62061E-01    .54978E-03   -.49629E-03
   4  Prefactor     .95225        .13188E-01    .13239E-03    .14234E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 4.76729
  alpha      = 1.65238
  Normalizat = 1.28685
  Prefactor  = 0.952253
 **********
 **   18 **HESSE 
 **********

 FCN=   193645.3     FROM HESSE     STATUS=OK            25 CALLS      278 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.7673        1.2908        .73709E-05   -1.5271    
   2  alpha         1.6524        .22903        .10805E-02   -.34591    
   3  Normalizat    1.2868        .62060E-01    .21991E-04   -.83960    
   4  Prefactor     .95225        .13191E-01    .52956E-05   -.94338    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.33895e-09
Minuit parameter uncertainties:
  1  1.29076
  2  0.229394
  3  0.0620639
  4  0.0131907
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/82383': 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) = 193645.303448
delta logL = 0.021758616931

Extracting fit parameters...

4FGL J1023.8-4335
   Spectrum: LogParabola
449         norm:  4.767e+00  1.291e+00  1.000e-04  1.000e+04 ( 1.000e-13)
450        alpha:  1.652e+00  2.294e-01  0.000e+00  5.000e+00 ( 1.000e+00)
451         beta:  1.128e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
452           Eb:  3.044e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
892    Prefactor:  9.523e-01  1.319e-02  0.000e+00  1.000e+01 ( 1.000e+00)
893        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
894        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
881   Normalization:  1.287e+00  6.206e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 56.49
Ra Dec: 155.973 -43.595
Photon Index (Free Index): 1.65 +/- 0.23
Photon Flux (Free Index): 1.17e-08 +/- 4.74e-09
Energy Flux (Free Index): 2.48e-05 +/- 9.30e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -3.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  3.330e+00 [aplpy.core]
Saving /scratch/kocevski/82383/cmap_HighResolution_296611201_299203201_4FGL_J1023.8-4335_monthly_bin23.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.10e-08', energy_flux2='2.48e-05', photon_flux_error='2.95e-09', dlogl='2.18e-02', energy_flux='2.62e-05', photon_flux2='1.17e-08', job_status='DONE', time_completed='2021-10-21 19:08:49.350167', photon_index_error2='0.23', photon_index2='1.65', ts='56.44', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='9.30e-06', EG='1.29', time_epoch_completed='1634868529.35', return_code='0', job_id='82383', GAL2='0.95', EG2='1.29', return_code2='0', energy_flux_error='7.02e-06', photon_flux_error2='4.74e-09', ts2='56.49', photon_index='1.60' WHERE bin_id='23' AND source_name='4FGL J1023.8-4335' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Thu Oct 21 19:08:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0134>
Subject: Job 82383: <4FGL_J1023.8-4335_monthly_bin23> in cluster <slac> Done

Job <4FGL_J1023.8-4335_monthly_bin23> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Oct 21 16:00:26 2021
Job was executed on host(s) <bullet0134>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Oct 21 16:13:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Oct 21 16:13:55 2021
Terminated at Thu Oct 21 19:08:51 2021
Results reported at Thu Oct 21 19:08:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.8-4335_monthly_bin23 155.973 -43.5951 296611201 299203201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1023.8-4335 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   9289.00 sec.
    Max Memory :                                 754 MB
    Average Memory :                             614.98 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   10496 sec.
    Turnaround time :                            11305 sec.

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

