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


Performing analysis on: 4FGL_J1023.9-3236_daily_bin1154
RA = 155.996, Dec = -32.6034
tmin = 538444801, tmax = 538704001
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='865833', job_status='RUN', time_executed='2021-09-01 21:02:41.044898', time_epoch_executed='1630555361.04' WHERE source_name='4FGL J1023.9-3236' and cadence='daily' and bin_id='1154'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/865833

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/865833/ft1_4FGL_J1023.9-3236_daily_bin1154.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/865833/ft2_4FGL_J1023.9-3236_daily_bin1154.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/865833/ft1_4FGL_J1023.9-3236_daily_bin1154.fits outfile=/scratch/kocevski/865833/ft1_filteredMKT_4FGL_J1023.9-3236_daily_bin1154.fits ra=155.996 dec=-32.6034 rad=12.0 tmin=538444801.0 tmax=538704001.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.26
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/865833/ft2_4FGL_J1023.9-3236_daily_bin1154.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/865833/ft1_filteredMKT_4FGL_J1023.9-3236_daily_bin1154.fits evtable="EVENTS" outfile="/scratch/kocevski/865833/ft1_filtered_4FGL_J1023.9-3236_daily_bin1154.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/865833/ft1_filtered_4FGL_J1023.9-3236_daily_bin1154.fits" evtable="EVENTS" scfile=/scratch/kocevski/865833/ft2_4FGL_J1023.9-3236_daily_bin1154.fits sctable="SC_DATA" outfile=/scratch/kocevski/865833/ltcube_538444801_538704001_4FGL_J1023.9-3236_daily_bin1154.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/865833/ft2_4FGL_J1023.9-3236_daily_bin1154.fits
.....................!
real 16.36
user 15.96
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/865833/ft1_filtered_4FGL_J1023.9-3236_daily_bin1154.fits evtable="EVENTS" scfile=/scratch/kocevski/865833/ft2_4FGL_J1023.9-3236_daily_bin1154.fits sctable="SC_DATA" expcube=/scratch/kocevski/865833/ltcube_538444801_538704001_4FGL_J1023.9-3236_daily_bin1154.fits outfile=/scratch/kocevski/865833/expmap_538444801_538704001_4FGL_J1023.9-3236_daily_bin1154.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/865833/ltcube_538444801_538704001_4FGL_J1023.9-3236_daily_bin1154.fits
.....................!
real 191.19
user 186.23
sys 4.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/865833/ft1_filtered_4FGL_J1023.9-3236_daily_bin1154.fits scfile=/scratch/kocevski/865833/ft2_4FGL_J1023.9-3236_daily_bin1154.fits outfile=/scratch/kocevski/865833/cmap_538444801_538704001_4FGL_J1023.9-3236_daily_bin1154.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/865833/ft1_filtered_4FGL_J1023.9-3236_daily_bin1154.fits scfile=/scratch/kocevski/865833/ft2_4FGL_J1023.9-3236_daily_bin1154.fits outfile=/scratch/kocevski/865833/cmap_HighResolution_538444801_538704001_4FGL_J1023.9-3236_daily_bin1154.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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/865833/ft1_filtered_4FGL_J1023.9-3236_daily_bin1154.fits evtable="EVENTS" scfile=/scratch/kocevski/865833/ft2_4FGL_J1023.9-3236_daily_bin1154.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/865833/Model_4FGL_J1023.9-3236_daily_bin1154.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/865833/ft1_filtered_4FGL_J1023.9-3236_daily_bin1154.fits.....................!
real 89.76
user 88.37
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/865833/ft1_filtered_4FGL_J1023.9-3236_daily_bin1154.fits', '/scratch/kocevski/865833/ft2_4FGL_J1023.9-3236_daily_bin1154.fits', expMap='/scratch/kocevski/865833/expmap_538444801_538704001_4FGL_J1023.9-3236_daily_bin1154.fits', expCube='/scratch/kocevski/865833/ltcube_538444801_538704001_4FGL_J1023.9-3236_daily_bin1154.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/865833/Model_4FGL_J1023.9-3236_daily_bin1154.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/865833/ft1_filtered_4FGL_J1023.9-3236_daily_bin1154.fits
Spacecraft file(s): /scratch/kocevski/865833/ft2_4FGL_J1023.9-3236_daily_bin1154.fits
Exposure map: /scratch/kocevski/865833/expmap_538444801_538704001_4FGL_J1023.9-3236_daily_bin1154.fits
Exposure cube: /scratch/kocevski/865833/ltcube_538444801_538704001_4FGL_J1023.9-3236_daily_bin1154.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/865833/Model_4FGL_J1023.9-3236_daily_bin1154.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) = 8335.07493461

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10192E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.1331       1.0000         .10000E-03   10000.    
     6 'norm      '    1.1774       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.222       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .69600E-01   1.0000         .10000E-03   10000.    
     9 'norm      '    13.783       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.1837       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.1676       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.4242       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.7123       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.6850       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.575       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3813       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0519       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=   8335.063     FROM MIGRAD    STATUS=CONVERGED    480 CALLS     2270 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    97.273        .16575E-06** at limit **
   2  norm          .10000E-03    4.1979        .16321E-06** at limit **
   3  norm          .10000E-03    7.9763       -.40942E-07** at limit **
   4  norm          .10000E-03    27.501        .26589E-06** at limit **
   5  norm          4.1330        2.1764        .20860E-07   -.11153E-03
   6  norm          1.1771        16.467        .25791E-05   -.15064E-03
   7  Prefactor     14.223        19.610       -.71227E-06   -.12986E-03
   8  Prefactor     .10104E-03    13.479       -.45046E-06** at limit **
   9  norm          13.785        11.141       -.11755E-05   -.47761E-03
  10  norm          .10000E-03    2.6850       -.53813E-07** at limit **
  11  norm          3.1829        8.4294        .15850E-05    .99113E-04
  12  Prefactor     7.1182        23.618        .49446E-05   -.17838E-03
  13  Prefactor     5.4202        26.064       -.23189E-05   -.36445E-04
  14  norm          .10000E-03    3.2552       -.13743E-06** at limit **
  15  Prefactor     2.6840        46.163       -.59326E-05   -.10706E-03
  16  Prefactor     1.6843        5.0258        .10914E-05   -.31706E-03
  17  Prefactor     10.574        11.364        .67770E-06    .20897E-03
  18  Prefactor     .10000E-03    3.0822        .24067E-07** at limit **
  19  Prefactor     .10000E-03    3.6538        .33673E-07** at limit **
  20  Normalizat    1.3815        .26276       -.55439E-06   -.11755E-04
  21  Prefactor     1.0519        .10109        .42344E-07   -.26879E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.13299
  norm       = 1.17715
  Prefactor  = 14.2234
  Prefactor  = 0.000101043
  norm       = 13.7854
  norm       = 0.0001
  norm       = 3.18288
  Prefactor  = 7.11819
  Prefactor  = 5.42021
  norm       = 0.0001
  Prefactor  = 2.68405
  Prefactor  = 1.68434
  Prefactor  = 10.5739
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.38149
  Prefactor  = 1.05189
 **********
 **   18 **HESSE 
 **********

 FCN=   8335.063     FROM HESSE     STATUS=OK           327 CALLS     2597 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    98.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.2436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    8.0096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    28.437        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.1330        2.1774        .94141E-04   -1.5301    
   6  norm          1.1771        17.120        .42184E-03   -1.5491    
   7  Prefactor     14.223        19.785        .10621E-03   -1.4954    
   8  Prefactor     .10104E-03    16.589        .99879E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          13.785        11.735        .10789E-03   -1.4965    
  10  norm          .10000E-03    2.6894        .14611E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.1829        8.4661        .22711E-03   -1.5351    
  12  Prefactor     7.1182        23.791        .74914E-03   -1.5174    
  13  Prefactor     5.4202        24.627        .17254E-03   -1.5242    
  14  norm          .10000E-03    3.2916        .31927E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.6840        45.097        .24731E-03   -1.5380    
  16  Prefactor     1.6843        4.9678        .29468E-03   -1.5448    
  17  Prefactor     10.574        11.482        .12321E-03   -1.5058    
  18  Prefactor     .10000E-03    3.0961        .15652E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.6685        .17042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.3815        .30524        .38706E-03   -.81166    
  21  Prefactor     1.0519        .11732        .17742E-03   -.91019    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14752e-09
Minuit parameter uncertainties:
  1  4.46208e-05
  2  1.08041e-05
  3  5.06359e-06
  4  3.62319e-05
  5  2.17741
  6  8.98098
  7  19.7937
  8  0.00832292
  9  11.7374
  10  3.33447e-06
  11  8.46932
  12  23.8231
  13  23.1225
  14  2.52272e-06
  15  22.0229
  16  4.96902
  17  11.4844
  18  3.79318e-06
  19  3.09268e-07
  20  0.305647
  21  0.11735
Done.

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

Extracting fit parameters...

4FGL J1023.9-3236
   Spectrum: LogParabola
345         norm:  3.183e+00  8.469e+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

GAL_V02
   Spectrum: PowerLaw
620    Prefactor:  1.052e+00  1.173e-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.381e+00  3.056e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/865833/likelihoodResults_538444801_538704001_4FGL_J1023.9-3236_daily_bin1154.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) = 8335.05629035
delta logL = 0.00683446876428

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8335.05557643
delta logL = 0.00754838243665

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9500       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6928       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3759       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0533       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8335.056     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      260 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9494        9.2920        .23645E-03    .14722E-03
   2  alpha         2.6930        3.6343        .58342E-01    .85412E-05
   3  Normalizat    1.3762        .28912        .38768E-03   -.17237E-03
   4  Prefactor     1.0532        .11673        .17732E-03   -.41872E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.94941
  alpha      = 2.69299
  Normalizat = 1.37615
  Prefactor  = 1.05318
 **********
 **   18 **HESSE 
 **********

 FCN=   8335.056     FROM HESSE     STATUS=OK            25 CALLS      285 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9494        8.1883        .94581E-05   -1.5364    
   2  alpha         2.6930        1.9989        .23337E-02    .77275E-01
   3  Normalizat    1.3762        .28868        .15507E-04   -.81321    
   4  Prefactor     1.0532        .11656        .35464E-04   -.90977    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3239e-10
Minuit parameter uncertainties:
  1  8.19143
  2  2.31945
  3  0.289017
  4  0.116584
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/865833': 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) = 8335.05557602
delta logL = 0.00754879403939

Extracting fit parameters...

4FGL J1023.9-3236
   Spectrum: LogParabola
345         norm:  2.949e+00  8.191e+00  1.000e-04  1.000e+04 ( 1.000e-12)
346        alpha:  2.693e+00  2.319e+00  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:  1.053e+00  1.166e-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.376e+00  2.890e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.18
Ra Dec: 155.996 -32.603

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/865833/cmap_HighResolution_538444801_538704001_4FGL_J1023.9-3236_daily_bin1154.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.94e-05', job_status='DONE', photon_flux_upper_limit='1.28e-07', time_completed='2021-09-01 21:15:58.282148', job_id='865833', GAL2='1.05', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1630556158.28', return_code2='0', ts='0.18', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='7.55e-03', ts2='0.19', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='1154' AND source_name='4FGL J1023.9-3236' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 21:15:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 865833: <4FGL_J1023.9-3236_daily_bin1154> in cluster <slac> Done

Job <4FGL_J1023.9-3236_daily_bin1154> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 21:00:35 2021
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 21:01:52 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:01:52 2021
Terminated at Wed Sep  1 21:15:58 2021
Results reported at Wed Sep  1 21:15:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.9-3236_daily_bin1154 155.996 -32.6034 538444801 538704001 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 :                                   786.10 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             349.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   846 sec.
    Turnaround time :                            923 sec.

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

