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


Performing analysis on: 4FGL_J1023.9-3236_daily_bin1053
RA = 155.996, Dec = -32.6034
tmin = 512265601, tmax = 512524801
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='865680', job_status='RUN', time_executed='2021-09-01 21:03:24.057482', time_epoch_executed='1630555404.06' WHERE source_name='4FGL J1023.9-3236' and cadence='daily' and bin_id='1053'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/865680

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/865680/ft1_4FGL_J1023.9-3236_daily_bin1053.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/865680/ft2_4FGL_J1023.9-3236_daily_bin1053.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/865680/ft1_4FGL_J1023.9-3236_daily_bin1053.fits outfile=/scratch/kocevski/865680/ft1_filteredMKT_4FGL_J1023.9-3236_daily_bin1053.fits ra=155.996 dec=-32.6034 rad=12.0 tmin=512265601.0 tmax=512524801.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.53
user 3.30
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/865680/ft2_4FGL_J1023.9-3236_daily_bin1053.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/865680/ft1_filteredMKT_4FGL_J1023.9-3236_daily_bin1053.fits evtable="EVENTS" outfile="/scratch/kocevski/865680/ft1_filtered_4FGL_J1023.9-3236_daily_bin1053.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.55
user 0.33
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/865680/ft1_filtered_4FGL_J1023.9-3236_daily_bin1053.fits" evtable="EVENTS" scfile=/scratch/kocevski/865680/ft2_4FGL_J1023.9-3236_daily_bin1053.fits sctable="SC_DATA" outfile=/scratch/kocevski/865680/ltcube_512265601_512524801_4FGL_J1023.9-3236_daily_bin1053.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/865680/ft2_4FGL_J1023.9-3236_daily_bin1053.fits
.....................!
real 12.62
user 12.26
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/865680/ft1_filtered_4FGL_J1023.9-3236_daily_bin1053.fits evtable="EVENTS" scfile=/scratch/kocevski/865680/ft2_4FGL_J1023.9-3236_daily_bin1053.fits sctable="SC_DATA" expcube=/scratch/kocevski/865680/ltcube_512265601_512524801_4FGL_J1023.9-3236_daily_bin1053.fits outfile=/scratch/kocevski/865680/expmap_512265601_512524801_4FGL_J1023.9-3236_daily_bin1053.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/865680/ltcube_512265601_512524801_4FGL_J1023.9-3236_daily_bin1053.fits
.....................!
real 190.00
user 185.87
sys 3.79

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/865680/ft1_filtered_4FGL_J1023.9-3236_daily_bin1053.fits scfile=/scratch/kocevski/865680/ft2_4FGL_J1023.9-3236_daily_bin1053.fits outfile=/scratch/kocevski/865680/cmap_512265601_512524801_4FGL_J1023.9-3236_daily_bin1053.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.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/865680/ft1_filtered_4FGL_J1023.9-3236_daily_bin1053.fits scfile=/scratch/kocevski/865680/ft2_4FGL_J1023.9-3236_daily_bin1053.fits outfile=/scratch/kocevski/865680/cmap_HighResolution_512265601_512524801_4FGL_J1023.9-3236_daily_bin1053.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.54
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/865680/ft1_filtered_4FGL_J1023.9-3236_daily_bin1053.fits evtable="EVENTS" scfile=/scratch/kocevski/865680/ft2_4FGL_J1023.9-3236_daily_bin1053.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/865680/Model_4FGL_J1023.9-3236_daily_bin1053.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/865680/ft1_filtered_4FGL_J1023.9-3236_daily_bin1053.fits.....................!
real 81.82
user 80.52
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.095       1.0000         .10000E-03   10000.    
     2 'norm      '    4.6415       1.0000         .10000E-03   10000.    
     3 'norm      '    .10198E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.9942       1.0000         .10000E-03   10000.    
     5 'norm      '    .67387       1.0000         .10000E-03   10000.    
     6 'norm      '    4.2105       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.440       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    11.013       1.0000         .10000E-03   10000.    
    10 'norm      '    .55247       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.861       1.0000         .10000E-03   10000.    
    14 'norm      '    5.4941       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.0388       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.1152       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.8664       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.4024       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .87688       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=   6883.647     FROM MIGRAD    STATUS=CONVERGED    438 CALLS     2211 TOTAL
                     EDM=   .99E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.035        61.809        .11357E-05    .16296E-04
   2  norm          4.6437        9.0339        .19250E-05    .11729E-03
   3  norm          .10000E-03    62.349        .99037E-06** at limit **
   4  norm          3.9942        7.9650       -.76118E-07    .38251E-05
   5  norm          .67357        2.0278       -.48221E-06   -.62510E-04
   6  norm          4.2093        9.0054        .22195E-06    .15177E-04
   7  Prefactor     14.436        20.778        .40020E-06    .16997E-04
   8  Prefactor     .10000E-03    5.3542       -.24702E-07** at limit **
   9  norm          11.013        9.3143        .97961E-07    .21534E-04
  10  norm          .55323        10.027        .16742E-05   -.32956E-04
  11  norm          .10000E-03    2.1447       -.69266E-07** at limit **
  12  Prefactor     .10000E-03    6.6480       -.30148E-06** at limit **
  13  Prefactor     13.866        14.906        .17514E-06    .21019E-04
  14  norm          5.4958        4.0746        .14088E-06    .62522E-04
  15  Prefactor     .10000E-03    4.8891       -.23547E-06** at limit **
  16  Prefactor     1.0360        3.7828        .78123E-07    .14490E-04
  17  Prefactor     .10000E-03    6.6755       -.90635E-06** at limit **
  18  Prefactor     2.1155        5.8484       -.11353E-06   -.16264E-05
  19  Prefactor     1.8670        14.225       -.11497E-05   -.10216E-04
  20  Normalizat    1.4027        .27666       -.18793E-05    .17949E-03
  21  Prefactor     .87676        .10916        .13810E-05    .39743E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.0348
  norm       = 4.64372
  norm       = 0.0001
  norm       = 3.99425
  norm       = 0.673569
  norm       = 4.2093
  Prefactor  = 14.436
  Prefactor  = 0.0001
  norm       = 11.0128
  norm       = 0.55323
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.8655
  norm       = 5.49584
  Prefactor  = 0.0001
  Prefactor  = 1.03601
  Prefactor  = 0.0001
  Prefactor  = 2.11548
  Prefactor  = 1.867
  Normalizat = 1.40268
  Prefactor  = 0.876764
 **********
 **   18 **HESSE 
 **********

 FCN=   6883.647     FROM HESSE     STATUS=OK           325 CALLS     2536 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.035        61.853        .94155E-04   -1.4858    
   2  norm          4.6437        9.1067        .18681E-03   -1.5277    
   3  norm          .10000E-03    63.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.9942        7.9494        .20180E-03   -1.5308    
   5  norm          .67357        2.0569        .19511E-03   -1.5544    
   6  norm          4.2093        8.9843        .19639E-03   -1.5298    
   7  Prefactor     14.436        20.772        .10540E-03   -1.4948    
   8  Prefactor     .10000E-03    5.3597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          11.013        9.3106        .12072E-03   -1.5044    
  10  norm          .55323        10.031        .22966E-02   -1.5559    
  11  norm          .10000E-03    2.1473        .11866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.6771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.866        14.841        .10759E-03   -1.4963    
  14  norm          5.4958        4.0478        .13249E-03   -1.5239    
  15  Prefactor     .10000E-03    4.8955        .17920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.0360        3.7285        .28404E-03   -1.5504    
  17  Prefactor     .10000E-03    6.7609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.1155        5.8361        .28362E-03   -1.5417    
  19  Prefactor     1.8670        14.318        .30494E-03   -1.5435    
  20  Normalizat    1.4027        .30552        .34704E-03   -.80551    
  21  Prefactor     .87676        .11955        .17246E-03   -.96958    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.34593e-09
Minuit parameter uncertainties:
  1  62.0744
  2  9.10945
  3  0.000166844
  4  7.95155
  5  2.05716
  6  8.98718
  7  20.7828
  8  2.91944e-06
  9  9.31186
  10  4.71205
  11  1.50649e-06
  12  7.49852e-06
  13  14.8446
  14  4.04797
  15  4.3179e-06
  16  3.72936
  17  2.04247e-05
  18  5.83771
  19  10.3437
  20  0.305923
  21  0.119583
Done.

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

Extracting fit parameters...

4FGL J1023.9-3236
   Spectrum: LogParabola
345         norm:  1.000e-04  1.506e-06  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:  8.768e-01  1.196e-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.403e+00  3.059e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 155.996 -32.603
Photon Flux Upper Limit: 6.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.85e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/865680/likelihoodResults_512265601_512524801_4FGL_J1023.9-3236_daily_bin1053.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) = 6883.64880309
delta logL = -0.00218875119754

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6883.64661446
delta logL = -1.1674092093e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4145       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4027       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87674       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=   6883.647     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      234 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.3449        .11876E-02** at limit **
   2  alpha         2.1445        3.0995        .16473       -.34024E-07
   3  Normalizat    1.4027        .28881        .34704E-03    .25356E-04
   4  Prefactor     .87677        .11755        .17246E-03    .58274E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.14452
  Normalizat = 1.40267
  Prefactor  = 0.876766
 **********
 **   18 **HESSE 
 **********

 FCN=   6883.647     FROM HESSE     STATUS=OK            23 CALLS      257 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.2034        .23752E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1445        2.6645        .65891E-02   -.14267    
   3  Normalizat    1.4027        .28904        .13881E-04   -.80551    
   4  Prefactor     .87677        .11764        .68984E-05   -.96958    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.82854e-11
Minuit parameter uncertainties:
  1  1.71032e-05
  2  248.447
  3  0.289381
  4  0.117676
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/865680': 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) = 6883.64661375
delta logL = 5.91628122493e-07

Extracting fit parameters...

4FGL J1023.9-3236
   Spectrum: LogParabola
345         norm:  1.000e-04  1.710e-05  1.000e-04  1.000e+04 ( 1.000e-12)
346        alpha:  2.145e+00  2.484e+02  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:  8.768e-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.403e+00  2.894e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/865680/cmap_HighResolution_512265601_512524801_4FGL_J1023.9-3236_daily_bin1053.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.85e-05', job_status='DONE', photon_flux_upper_limit='6.00e-08', time_completed='2021-09-01 21:15:04.711731', job_id='865680', GAL2='0.88', fit_tolerance='1e-08', EG2='1.40', EG='1.40', time_epoch_completed='1630556104.71', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='5.92e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='1053' AND source_name='4FGL J1023.9-3236' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 21:15:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 865680: <4FGL_J1023.9-3236_daily_bin1053> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.9-3236_daily_bin1053 155.996 -32.6034 512265601 512524801 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 :                                   692.10 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             297.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            883 sec.

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

