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


Performing analysis on: 4FGL_J1023.9-3236_daily_bin1579
RA = 155.996, Dec = -32.6034
tmin = 648604801, tmax = 648864001
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='867634', job_status='RUN', time_executed='2021-09-01 21:06:43.290671', time_epoch_executed='1630555603.29' WHERE source_name='4FGL J1023.9-3236' and cadence='daily' and bin_id='1579'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/867634

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/867634/ft1_4FGL_J1023.9-3236_daily_bin1579.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/867634/ft2_4FGL_J1023.9-3236_daily_bin1579.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/867634/ft1_4FGL_J1023.9-3236_daily_bin1579.fits outfile=/scratch/kocevski/867634/ft1_filteredMKT_4FGL_J1023.9-3236_daily_bin1579.fits ra=155.996 dec=-32.6034 rad=12.0 tmin=648604801.0 tmax=648864001.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.02
user 2.79
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/867634/ft2_4FGL_J1023.9-3236_daily_bin1579.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/867634/ft1_filteredMKT_4FGL_J1023.9-3236_daily_bin1579.fits evtable="EVENTS" outfile="/scratch/kocevski/867634/ft1_filtered_4FGL_J1023.9-3236_daily_bin1579.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.52
user 0.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/867634/ft1_filtered_4FGL_J1023.9-3236_daily_bin1579.fits" evtable="EVENTS" scfile=/scratch/kocevski/867634/ft2_4FGL_J1023.9-3236_daily_bin1579.fits sctable="SC_DATA" outfile=/scratch/kocevski/867634/ltcube_648604801_648864001_4FGL_J1023.9-3236_daily_bin1579.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/867634/ft2_4FGL_J1023.9-3236_daily_bin1579.fits
.....................!
real 18.54
user 18.13
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/867634/ft1_filtered_4FGL_J1023.9-3236_daily_bin1579.fits evtable="EVENTS" scfile=/scratch/kocevski/867634/ft2_4FGL_J1023.9-3236_daily_bin1579.fits sctable="SC_DATA" expcube=/scratch/kocevski/867634/ltcube_648604801_648864001_4FGL_J1023.9-3236_daily_bin1579.fits outfile=/scratch/kocevski/867634/expmap_648604801_648864001_4FGL_J1023.9-3236_daily_bin1579.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/867634/ltcube_648604801_648864001_4FGL_J1023.9-3236_daily_bin1579.fits
.....................!
real 194.48
user 188.76
sys 5.13

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/867634/ft1_filtered_4FGL_J1023.9-3236_daily_bin1579.fits scfile=/scratch/kocevski/867634/ft2_4FGL_J1023.9-3236_daily_bin1579.fits outfile=/scratch/kocevski/867634/cmap_648604801_648864001_4FGL_J1023.9-3236_daily_bin1579.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.57
user 0.42
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/867634/ft1_filtered_4FGL_J1023.9-3236_daily_bin1579.fits scfile=/scratch/kocevski/867634/ft2_4FGL_J1023.9-3236_daily_bin1579.fits outfile=/scratch/kocevski/867634/cmap_HighResolution_648604801_648864001_4FGL_J1023.9-3236_daily_bin1579.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.58
user 0.43
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.015       1.0000         .10000E-03   10000.    
     2 'norm      '    8.7294       1.0000         .10000E-03   10000.    
     3 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.672       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    14.484       1.0000         .10000E-03   10000.    
    10 'norm      '    .16365       1.0000         .10000E-03   10000.    
    11 'norm      '    17.381       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.9340       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .96525E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.2814       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.8426       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.0507       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.7994       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .25530E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.5147       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .85867       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=   10077.16     FROM MIGRAD    STATUS=CONVERGED    458 CALLS     2580 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.009        47.110        .60202E-05    .12119E-03
   2  norm          8.7291        6.2790       -.88690E-07    .56347E-04
   3  norm          .10000E-03    4.5135        .62610E-06** at limit **
   4  norm          .10000E-03    3.8405        .17448E-07** at limit **
   5  norm          .10000E-03    .61325       -.58286E-07** at limit **
   6  norm          .10000E-03    9.3402       -.46845E-06** at limit **
   7  Prefactor     26.682        21.683       -.24435E-06    .54651E-04
   8  Prefactor     .10000E-03    4.4095       -.69727E-06** at limit **
   9  norm          14.479        11.273       -.36806E-06   -.70149E-04
  10  norm          .15061        8.5731        .29577E-05   -.72532E-03
  11  norm          17.379        10.062        .38133E-06    .72593E-04
  12  Prefactor     7.9364        15.265        .50189E-06    .13945E-04
  13  Prefactor     .10051E-03    17.017       -.69899E-06** at limit **
  14  norm          1.2802        2.8748       -.19740E-05    .80162E-04
  15  Prefactor     2.8362        27.480       -.44123E-05   -.62765E-04
  16  Prefactor     6.0504        4.2824       -.11912E-06   -.75914E-04
  17  Prefactor     .10000E-03    2.9137       -.52981E-07** at limit **
  18  Prefactor     8.7988        7.4171        .47801E-06    .18821E-03
  19  Prefactor     .10004E-03    17.442       -.24872E-05** at limit **
  20  Normalizat    1.5149        .22452       -.53528E-06   -.24466E-03
  21  Prefactor     .85862        .85160E-01    .70794E-07   -.56053E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.0095
  norm       = 8.72915
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 26.6825
  Prefactor  = 0.0001
  norm       = 14.4795
  norm       = 0.150612
  norm       = 17.3792
  Prefactor  = 7.93641
  Prefactor  = 0.000100509
  norm       = 1.2802
  Prefactor  = 2.83618
  Prefactor  = 6.05036
  Prefactor  = 0.0001
  Prefactor  = 8.79881
  Prefactor  = 0.000100044
  Normalizat = 1.51488
  Prefactor  = 0.858625
 **********
 **   18 **HESSE 
 **********

 FCN=   10077.16     FROM HESSE     STATUS=OK           333 CALLS     2913 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.009        47.585        .83494E-04   -1.4748    
   2  norm          8.7291        6.2738        .13567E-03   -1.5117    
   3  norm          .10000E-03    4.5263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.8502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.0229        .15251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    9.5545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     26.682        21.719        .38784E-03   -1.4674    
   8  Prefactor     .10000E-03    4.4145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          14.479        11.266        .10524E-03   -1.4947    
  10  norm          .15061        24.644        .33909E-02   -1.5630    
  11  norm          17.379        10.055        .96069E-04   -1.4874    
  12  Prefactor     7.9364        14.990        .14235E-03   -1.5144    
  13  Prefactor     .10051E-03    13.442        .98328E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.2802        2.9888        .24581E-03   -1.5482    
  15  Prefactor     2.8362        26.530        .24117E-03   -1.5371    
  16  Prefactor     6.0504        4.2825        .16106E-03   -1.5216    
  17  Prefactor     .10000E-03    2.9220        .16730E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.7988        7.4536        .13512E-03   -1.5115    
  19  Prefactor     .10004E-03    21.945        .41593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.5149        .26666        .34793E-03   -.77361    
  21  Prefactor     .85862        .10139        .17824E-03   -.97602    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.30374e-09
Minuit parameter uncertainties:
  1  47.6639
  2  6.2743
  3  2.83643e-05
  4  2.36117e-06
  5  1.31742e-05
  6  2.18583e-06
  7  21.7252
  8  2.55265e-05
  9  11.2674
  10  3.85344
  11  10.0557
  12  14.9972
  13  0.00523137
  14  2.98919
  15  17.3584
  16  4.28276
  17  3.11797e-06
  18  7.45435
  19  0.00196499
  20  0.266908
  21  0.10141
Done.

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

Extracting fit parameters...

4FGL J1023.9-3236
   Spectrum: LogParabola
345         norm:  1.738e+01  1.006e+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:  8.586e-01  1.014e-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.515e+00  2.669e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.34
Ra Dec: 155.996 -32.603
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 8.95e-08 +/- 5.17e-08
Energy Flux (Fixed Index): 2.76e-05 +/- 1.60e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10076.8615002
delta logL = 0.295277478646

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10076.8447769
delta logL = 0.312000763304

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    20.007       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0547       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5410       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85104       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=   10076.84     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      267 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          20.007        10.918        .89546E-04    .19628E-03
   2  alpha         2.0546        .43690        .14806E-01    .35430E-04
   3  Normalizat    1.5410        .24900        .34554E-03    .93046E-04
   4  Prefactor     .85104        .99346E-01    .17891E-03    .20947E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 20.0066
  alpha      = 2.05456
  Normalizat = 1.54103
  Prefactor  = 0.851037
 **********
 **   18 **HESSE 
 **********

 FCN=   10076.84     FROM HESSE     STATUS=OK            23 CALLS      290 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          20.007        10.900        .35818E-05   -1.4813    
   2  alpha         2.0546        .43607        .59226E-03   -.17913    
   3  Normalizat    1.5410        .24917        .13821E-04   -.76632    
   4  Prefactor     .85104        .99409E-01    .35782E-04   -.97874    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.71455e-11
Minuit parameter uncertainties:
  1  10.9009
  2  0.43839
  3  0.249368
  4  0.0994296
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/867634': 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) = 10076.8447769
delta logL = 0.312000798385

Extracting fit parameters...

4FGL J1023.9-3236
   Spectrum: LogParabola
345         norm:  2.001e+01  1.090e+01  1.000e-04  1.000e+04 ( 1.000e-12)
346        alpha:  2.055e+00  4.384e-01  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.510e-01  9.943e-02  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.541e+00  2.494e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.98
Ra Dec: 155.996 -32.603
Photon Index (Free Index): 2.05 +/- 0.44
Photon Flux (Free Index): 7.17e-08 +/- 4.69e-08
Energy Flux (Free Index): 3.36e-05 +/- 2.02e-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/867634/cmap_HighResolution_648604801_648864001_4FGL_J1023.9-3236_daily_bin1579.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.95e-08', energy_flux2='3.36e-05', photon_flux_error='5.17e-08', dlogl='3.12e-01', energy_flux='2.76e-05', photon_flux2='7.17e-08', job_status='DONE', time_completed='2021-09-01 21:20:54.195444', photon_index_error2='0.44', photon_index2='2.05', ts='5.34', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='2.02e-05', EG='1.51', time_epoch_completed='1630556454.2', return_code='0', job_id='867634', GAL2='0.85', EG2='1.54', return_code2='0', energy_flux_error='1.60e-05', photon_flux_error2='4.69e-08', ts2='5.98', photon_index='2.42' WHERE bin_id='1579' AND source_name='4FGL J1023.9-3236' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 21:20:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0005>
Subject: Job 867634: <4FGL_J1023.9-3236_daily_bin1579> in cluster <slac> Done

Job <4FGL_J1023.9-3236_daily_bin1579> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 21:05:56 2021
Job was executed on host(s) <bullet0005>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 21:05:58 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:58 2021
Terminated at Wed Sep  1 21:20:54 2021
Results reported at Wed Sep  1 21:20:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.9-3236_daily_bin1579 155.996 -32.6034 648604801 648864001 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 :                                   844.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             340.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   896 sec.
    Turnaround time :                            898 sec.

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

