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


Performing analysis on: 4FGL_J1023.9-3236_daily_bin1559
RA = 155.996, Dec = -32.6034
tmin = 643420801, tmax = 643680001
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='867604', job_status='RUN', time_executed='2021-09-01 21:07:00.087694', time_epoch_executed='1630555620.09' WHERE source_name='4FGL J1023.9-3236' and cadence='daily' and bin_id='1559'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/867604

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/867604/ft1_4FGL_J1023.9-3236_daily_bin1559.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/867604/ft2_4FGL_J1023.9-3236_daily_bin1559.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/867604/ft1_4FGL_J1023.9-3236_daily_bin1559.fits outfile=/scratch/kocevski/867604/ft1_filteredMKT_4FGL_J1023.9-3236_daily_bin1559.fits ra=155.996 dec=-32.6034 rad=12.0 tmin=643420801.0 tmax=643680001.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.50
user 3.25
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/867604/ft2_4FGL_J1023.9-3236_daily_bin1559.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/867604/ft2_4FGL_J1023.9-3236_daily_bin1559.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/867604/ft1_filteredMKT_4FGL_J1023.9-3236_daily_bin1559.fits evtable="EVENTS" outfile="/scratch/kocevski/867604/ft1_filtered_4FGL_J1023.9-3236_daily_bin1559.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.65
user 0.35
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/867604/ft1_filtered_4FGL_J1023.9-3236_daily_bin1559.fits" evtable="EVENTS" scfile=/scratch/kocevski/867604/ft2_4FGL_J1023.9-3236_daily_bin1559.fits sctable="SC_DATA" outfile=/scratch/kocevski/867604/ltcube_643420801_643680001_4FGL_J1023.9-3236_daily_bin1559.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/867604/ft2_4FGL_J1023.9-3236_daily_bin1559.fits
.....................!
real 16.36
user 15.97
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/867604/ft1_filtered_4FGL_J1023.9-3236_daily_bin1559.fits evtable="EVENTS" scfile=/scratch/kocevski/867604/ft2_4FGL_J1023.9-3236_daily_bin1559.fits sctable="SC_DATA" expcube=/scratch/kocevski/867604/ltcube_643420801_643680001_4FGL_J1023.9-3236_daily_bin1559.fits outfile=/scratch/kocevski/867604/expmap_643420801_643680001_4FGL_J1023.9-3236_daily_bin1559.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/867604/ltcube_643420801_643680001_4FGL_J1023.9-3236_daily_bin1559.fits
.....................!
real 195.40
user 189.69
sys 5.31

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 186 point sources and 0 extended sources

Setting source of interest to:
4FGL J1023.9-3236 @ 155.996 -32.6034

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/867604/ft1_filtered_4FGL_J1023.9-3236_daily_bin1559.fits scfile=/scratch/kocevski/867604/ft2_4FGL_J1023.9-3236_daily_bin1559.fits outfile=/scratch/kocevski/867604/cmap_643420801_643680001_4FGL_J1023.9-3236_daily_bin1559.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.996 yref=-32.6034 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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/867604/ft1_filtered_4FGL_J1023.9-3236_daily_bin1559.fits scfile=/scratch/kocevski/867604/ft2_4FGL_J1023.9-3236_daily_bin1559.fits outfile=/scratch/kocevski/867604/cmap_HighResolution_643420801_643680001_4FGL_J1023.9-3236_daily_bin1559.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.996 yref=-32.6034 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/867604/ft1_filtered_4FGL_J1023.9-3236_daily_bin1559.fits evtable="EVENTS" scfile=/scratch/kocevski/867604/ft2_4FGL_J1023.9-3236_daily_bin1559.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/867604/Model_4FGL_J1023.9-3236_daily_bin1559.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/867604/ft1_filtered_4FGL_J1023.9-3236_daily_bin1559.fits.....................!
real 83.35
user 81.90
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/867604/ft1_filtered_4FGL_J1023.9-3236_daily_bin1559.fits', '/scratch/kocevski/867604/ft2_4FGL_J1023.9-3236_daily_bin1559.fits', expMap='/scratch/kocevski/867604/expmap_643420801_643680001_4FGL_J1023.9-3236_daily_bin1559.fits', expCube='/scratch/kocevski/867604/ltcube_643420801_643680001_4FGL_J1023.9-3236_daily_bin1559.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/867604/Model_4FGL_J1023.9-3236_daily_bin1559.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1023.9-3236'

4FGL J1023.9-3236
   Spectrum: LogParabola
345         norm:  3.622e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
346        alpha:  2.419e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
347         beta:  1.106e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
348           Eb:  6.383e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/867604/ft1_filtered_4FGL_J1023.9-3236_daily_bin1559.fits
Spacecraft file(s): /scratch/kocevski/867604/ft2_4FGL_J1023.9-3236_daily_bin1559.fits
Exposure map: /scratch/kocevski/867604/expmap_643420801_643680001_4FGL_J1023.9-3236_daily_bin1559.fits
Exposure cube: /scratch/kocevski/867604/ltcube_643420801_643680001_4FGL_J1023.9-3236_daily_bin1559.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/867604/Model_4FGL_J1023.9-3236_daily_bin1559.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) = 7112.24515324

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.8597       1.0000         .10000E-03   10000.    
     2 'norm      '    3.7120       1.0000         .10000E-03   10000.    
     3 'norm      '    21.814       1.0000         .10000E-03   10000.    
     4 'norm      '    7.5417       1.0000         .10000E-03   10000.    
     5 'norm      '    .41183       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .67041E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.878       1.0000         .10000E-03   10000.    
     9 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.4553       1.0000         .10000E-03   10000.    
    11 'norm      '    7.2166       1.0000         .10000E-03   10000.    
    12 'Prefactor '    41.408       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.9708       1.0000         .10000E-03   10000.    
    14 'norm      '    .43667E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.4542       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.843       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.9858       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2183       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .92134       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6230E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7112.243     FROM MIGRAD    STATUS=CONVERGED    491 CALLS     2671 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.7435        101.26       -.40863E-05   -.77200E-05
   2  norm          3.7141        7.1771        .12011E-06    .35583E-04
   3  norm          21.822        21.653        .10023E-05    .17943E-04
   4  norm          7.5430        8.0624       -.24581E-06   -.14029E-04
   5  norm          .41162        1.3689        .17697E-06   -.88018E-04
   6  norm          .10000E-03    7.3431        .42614E-07** at limit **
   7  Prefactor     .13003E-03    30.379       -.32509E-05** at limit **
   8  Prefactor     14.886        16.303       -.71704E-07    .42370E-04
   9  norm          .10000E-03    6.9273        .20549E-06** at limit **
  10  norm          1.4550        4.8808        .34943E-05    .55793E-04
  11  norm          7.2174        10.955        .11700E-05    .30161E-04
  12  Prefactor     41.412        30.637       -.10755E-05   -.14568E-03
  13  Prefactor     4.9386        20.029       -.61981E-05   -.14647E-03
  14  norm          .10000E-03    2.7848        .88374E-06** at limit **
  15  Prefactor     1.4331        104.14        .10930E-04   -.81707E-04
  16  Prefactor     .10000E-03    2.2322        .10405E-06** at limit **
  17  Prefactor     16.833        13.947       -.12917E-06   -.87090E-04
  18  Prefactor     7.9866        7.8239        .13085E-06   -.40411E-04
  19  Prefactor     .10000E-03    18.630        .17650E-06** at limit **
  20  Normalizat    1.2183        .27518       -.14062E-05   -.92013E-05
  21  Prefactor     .92135        .10153       -.47674E-06   -.35887E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.74348
  norm       = 3.71405
  norm       = 21.822
  norm       = 7.54302
  norm       = 0.411617
  norm       = 0.0001
  Prefactor  = 0.00013003
  Prefactor  = 14.8856
  norm       = 0.0001
  norm       = 1.45497
  norm       = 7.2174
  Prefactor  = 41.412
  Prefactor  = 4.93864
  norm       = 0.000100001
  Prefactor  = 1.43307
  Prefactor  = 0.0001
  Prefactor  = 16.8332
  Prefactor  = 7.98663
  Prefactor  = 0.0001
  Normalizat = 1.21829
  Prefactor  = 0.921347
 **********
 **   18 **HESSE 
 **********

 FCN=   7112.243     FROM HESSE     STATUS=OK           335 CALLS     3006 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.7435        100.66        .13466E-03   -1.5116    
   2  norm          3.7141        7.1536        .20960E-03   -1.5323    
   3  norm          21.822        21.716        .85759E-04   -1.4773    
   4  norm          7.5430        8.0625        .14603E-03   -1.5159    
   5  norm          .41162        1.8139        .16939E-02   -1.5580    
   6  norm          .10000E-03    7.4362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .13003E-03    29.136        .11471       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.886        16.301        .10384E-03   -1.4936    
   9  norm          .10000E-03    6.9424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.4550        4.9072        .16809E-02   -1.5467    
  11  norm          7.2174        10.929        .14931E-03   -1.5171    
  12  Prefactor     41.412        30.910        .62295E-04   -1.4420    
  13  Prefactor     4.9386        19.610        .18038E-03   -1.5263    
  14  norm          .10000E-03    7.6250        .25184E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.4331        99.180        .35710E-03   -1.5469    
  16  Prefactor     .10000E-03    2.2434        .12291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     16.833        13.996        .97590E-04   -1.4887    
  18  Prefactor     7.9866        7.8277        .14188E-03   -1.5143    
  19  Prefactor     .10000E-03    19.317        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2183        .31881        .37335E-03   -.86039    
  21  Prefactor     .92135        .11847        .17040E-03   -.95399    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.41184e-08
Minuit parameter uncertainties:
  1  59.4586
  2  7.15521
  3  21.7237
  4  8.06365
  5  1.72802
  6  6.33832e-06
  7  0.0591885
  8  16.3058
  9  3.48416e-05
  10  4.90858
  11  10.9318
  12  30.9215
  13  19.636
  14  0.000170063
  15  23.8843
  16  2.5099e-05
  17  13.999
  18  7.82875
  19  0.000127033
  20  0.31932
  21  0.118499
Done.

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

Extracting fit parameters...

4FGL J1023.9-3236
   Spectrum: LogParabola
345         norm:  7.217e+00  1.093e+01  1.000e-04  1.000e+04 ( 1.000e-12)
346        alpha:  2.419e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
347         beta:  1.106e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
348           Eb:  6.383e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
620    Prefactor:  9.213e-01  1.185e-01  0.000e+00  1.000e+01 ( 1.000e+00)
621        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
622        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
619   Normalization:  1.218e+00  3.193e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.54
Ra Dec: 155.996 -32.603
Photon Flux Upper Limit: 1.59e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.89e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/867604/likelihoodResults_643420801_643680001_4FGL_J1023.9-3236_daily_bin1559.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) = 7112.01517614
delta logL = 0.227999917694

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7111.9085291
delta logL = 0.334646966135

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7111.909     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      326 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .44474        16.945        .11043E-01    .16988E-02
   2  alpha         5.0000        2.8480        .46428    ** at limit **
   3  Normalizat    1.1395        .12913        .86802E-01    .21610E-04
   4  Prefactor     .94640        .45552E-01    .45594E-01    .33025E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.44474
  alpha      = 5
  Normalizat = 1.13951
  Prefactor  = 0.946401
 **********
 **   18 **HESSE 
 **********

 FCN=   7111.909     FROM HESSE     STATUS=OK            35 CALLS      361 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .44474        .55571        .54783E-03   -1.5575    
   2  alpha         5.0000        3.4756        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1395        .30081        .38438E-03   -.88493    
   4  Prefactor     .94640        .11768        .16841E-03   -.94538    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26527e-11
Minuit parameter uncertainties:
  1  0.555717
  2  4.85973e-05
  3  0.301268
  4  0.117711
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/867604': 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) = 7111.90852906
delta logL = 0.334647000624

Extracting fit parameters...

4FGL J1023.9-3236
   Spectrum: LogParabola
345         norm:  4.447e-01  5.557e-01  1.000e-04  1.000e+04 ( 1.000e-12)
346        alpha:  5.000e+00  4.860e-05  0.000e+00  5.000e+00 ( 1.000e+00)
347         beta:  1.106e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
348           Eb:  6.383e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
620    Prefactor:  9.464e-01  1.177e-01  0.000e+00  1.000e+01 ( 1.000e+00)
621        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
622        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
619   Normalization:  1.140e+00  3.013e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.32
Ra Dec: 155.996 -32.603
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 8.88e-08 +/- 1.10e-07
Energy Flux (Free Index): 1.21e-05 +/- 1.51e-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/867604/cmap_HighResolution_643420801_643680001_4FGL_J1023.9-3236_daily_bin1559.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.89e-05', comment='SUCCESS', energy_flux2='1.21e-05', dlogl='3.35e-01', photon_flux2='8.88e-08', job_status='DONE', time_completed='2021-09-01 21:20:02.689315', photon_index_error2='0.00', photon_index2='5.00', ts='0.54', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.59e-07', energy_flux_error2='1.51e-05', EG='1.22', time_epoch_completed='1630556402.69', return_code='0', job_id='867604', GAL2='0.95', EG2='1.14', return_code2='0', photon_flux_error2='1.10e-07', ts2='1.32', photon_index='2.42' WHERE bin_id='1559' AND source_name='4FGL J1023.9-3236' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 21:20:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 867604: <4FGL_J1023.9-3236_daily_bin1559> in cluster <slac> Done

Job <4FGL_J1023.9-3236_daily_bin1559> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 21:05:53 2021
Job was executed on host(s) <bullet0069>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 21:05:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 21:05:55 2021
Terminated at Wed Sep  1 21:20:03 2021
Results reported at Wed Sep  1 21:20:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.9-3236_daily_bin1559 155.996 -32.6034 643420801 643680001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1023.9-3236 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   778.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             323.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   847 sec.
    Turnaround time :                            850 sec.

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

