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


Performing analysis on: 4FGL_J1023.9-3236_daily_bin1116
RA = 155.996, Dec = -32.6034
tmin = 528595201, tmax = 528854401
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='865776', job_status='RUN', time_executed='2021-09-01 21:02:20.515489', time_epoch_executed='1630555340.52' WHERE source_name='4FGL J1023.9-3236' and cadence='daily' and bin_id='1116'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/865776

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/865776/ft1_4FGL_J1023.9-3236_daily_bin1116.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/865776/ft2_4FGL_J1023.9-3236_daily_bin1116.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/865776/ft1_4FGL_J1023.9-3236_daily_bin1116.fits outfile=/scratch/kocevski/865776/ft1_filteredMKT_4FGL_J1023.9-3236_daily_bin1116.fits ra=155.996 dec=-32.6034 rad=12.0 tmin=528595201.0 tmax=528854401.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.45
user 3.23
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/865776/ft1_filtered_4FGL_J1023.9-3236_daily_bin1116.fits" evtable="EVENTS" scfile=/scratch/kocevski/865776/ft2_4FGL_J1023.9-3236_daily_bin1116.fits sctable="SC_DATA" outfile=/scratch/kocevski/865776/ltcube_528595201_528854401_4FGL_J1023.9-3236_daily_bin1116.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/865776/ft2_4FGL_J1023.9-3236_daily_bin1116.fits
.....................!
real 16.23
user 15.83
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/865776/ft1_filtered_4FGL_J1023.9-3236_daily_bin1116.fits evtable="EVENTS" scfile=/scratch/kocevski/865776/ft2_4FGL_J1023.9-3236_daily_bin1116.fits sctable="SC_DATA" expcube=/scratch/kocevski/865776/ltcube_528595201_528854401_4FGL_J1023.9-3236_daily_bin1116.fits outfile=/scratch/kocevski/865776/expmap_528595201_528854401_4FGL_J1023.9-3236_daily_bin1116.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/865776/ltcube_528595201_528854401_4FGL_J1023.9-3236_daily_bin1116.fits
.....................!
real 191.58
user 186.92
sys 4.22

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/865776/ft1_filtered_4FGL_J1023.9-3236_daily_bin1116.fits scfile=/scratch/kocevski/865776/ft2_4FGL_J1023.9-3236_daily_bin1116.fits outfile=/scratch/kocevski/865776/cmap_528595201_528854401_4FGL_J1023.9-3236_daily_bin1116.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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/865776/ft1_filtered_4FGL_J1023.9-3236_daily_bin1116.fits scfile=/scratch/kocevski/865776/ft2_4FGL_J1023.9-3236_daily_bin1116.fits outfile=/scratch/kocevski/865776/cmap_HighResolution_528595201_528854401_4FGL_J1023.9-3236_daily_bin1116.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.59
user 0.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/865776/ft1_filtered_4FGL_J1023.9-3236_daily_bin1116.fits evtable="EVENTS" scfile=/scratch/kocevski/865776/ft2_4FGL_J1023.9-3236_daily_bin1116.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/865776/Model_4FGL_J1023.9-3236_daily_bin1116.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/865776/ft1_filtered_4FGL_J1023.9-3236_daily_bin1116.fits.....................!
real 99.89
user 98.28
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18506E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    7.1083       1.0000         .10000E-03   10000.    
     3 'norm      '    .13551E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.4906       1.0000         .10000E-03   10000.    
     5 'norm      '    1.6125       1.0000         .10000E-03   10000.    
     6 'norm      '    .10068E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.5443       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11143E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .20481E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    13.125       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .15869E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12388E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.3822       1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.352       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .21921E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .35320E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.0387       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .17269E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1500       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .99589       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=   9119.759     FROM MIGRAD    STATUS=CONVERGED    470 CALLS     1932 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    38.203       -.14250E-04** at limit **
   2  norm          7.0990        6.2403       -.52738E-07    .41329E-05
   3  norm          .10000E-03    8.0969        .15397E-06** at limit **
   4  norm          5.4864        5.2499        .10785E-06    .18455E-04
   5  norm          1.6120        1.4282       -.21605E-07   -.14228E-03
   6  norm          .10000E-03    3.8591       -.48120E-07** at limit **
   7  Prefactor     2.5794        34.801        .35311E-05   -.39180E-04
   8  Prefactor     .10000E-03    7.4515       -.67831E-06** at limit **
   9  norm          .10027E-03    6.7054        .21494E-05** at limit **
  10  norm          .10000E-03    1.6625        .56987E-08** at limit **
  11  norm          13.083        8.2347       -.13754E-05   -.79575E-03
  12  Prefactor     .10014E-03    7.2751       -.13656E-05** at limit **
  13  Prefactor     .10000E-03    7.4985        .46164E-06** at limit **
  14  norm          4.3810        2.1277        .23756E-06   -.26169E-02
  15  Prefactor     18.275        14.407        .33197E-06    .20763E-03
  16  Prefactor     .10000E-03    3.3331       -.13653E-07** at limit **
  17  Prefactor     .10000E-03    18.205       -.20614E-05** at limit **
  18  Prefactor     6.0269        5.8760        .17684E-07   -.71719E-03
  19  Prefactor     .10000E-03    3.3474        .24128E-06** at limit **
  20  Normalizat    1.1503        .22156        .42357E-06   -.84291E-04
  21  Prefactor     .99589        .87588E-01   -.63302E-07   -.11448E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  norm       = 7.09905
  norm       = 0.0001
  norm       = 5.48635
  norm       = 1.61197
  norm       = 0.0001
  Prefactor  = 2.57941
  Prefactor  = 0.0001
  norm       = 0.000100266
  norm       = 0.0001
  norm       = 13.0827
  Prefactor  = 0.000100143
  Prefactor  = 0.0001
  norm       = 4.38095
  Prefactor  = 18.2746
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.02688
  Prefactor  = 0.000100002
  Normalizat = 1.15034
  Prefactor  = 0.995887
 **********
 **   18 **HESSE 
 **********

 FCN=   9119.759     FROM HESSE     STATUS=OK           319 CALLS     2251 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    38.413        .20297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.0990        6.2367        .15046E-03   -1.5175    
   3  norm          .10000E-03    8.1493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.4864        5.2468        .17147E-03   -1.5239    
   5  norm          1.6120        1.4164        .10340E-03   -1.5454    
   6  norm          .10000E-03    3.8713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.5794        34.154        .25601E-03   -1.5387    
   8  Prefactor     .10000E-03    7.4774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10027E-03    44.466        .43564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.6640        .12025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          13.083        8.1183        .11056E-03   -1.4984    
  12  Prefactor     .10014E-03    61.015        .46983E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.5137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.3810        3.9898        .86063E-03   -1.5289    
  15  Prefactor     18.275        14.060        .93493E-04   -1.4853    
  16  Prefactor     .10000E-03    17.525        .32637E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    18.811        .42639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.0269        6.1584        .81695E-03   -1.5217    
  19  Prefactor     .10000E-03    14.861        .33857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1503        .25375        .36785E-03   -.88152    
  21  Prefactor     .99589        .10221        .16551E-03   -.92867    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12846e-08
Minuit parameter uncertainties:
  1  0.000826198
  2  6.2373
  3  2.32913e-06
  4  5.2472
  5  1.41645
  6  2.68301e-06
  7  18.7848
  8  2.88216e-05
  9  0.00688026
  10  2.1395e-08
  11  8.11902
  12  0.00591172
  13  1.29715e-05
  14  3.99006
  15  14.0627
  16  7.46321e-05
  17  5.75601e-05
  18  6.15901
  19  0.000327868
  20  0.254024
  21  0.102234
Done.

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

Extracting fit parameters...

4FGL J1023.9-3236
   Spectrum: LogParabola
345         norm:  1.308e+01  8.119e+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:  9.959e-01  1.022e-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.150e+00  2.540e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.87
Ra Dec: 155.996 -32.603
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 6.74e-08 +/- 4.18e-08
Energy Flux (Fixed Index): 2.08e-05 +/- 1.29e-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) = 9119.37742233
delta logL = 0.381882808293

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9119.3624609
delta logL = 0.396844239671

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.277       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8152       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1880       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98896       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=   9119.362     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      219 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.257        8.2842        .29825E-02    .11206E-03
   2  alpha         1.8130        .49622        .43296       -.40336E-04
   3  Normalizat    1.1882        .20654        .81938E-01    .15668E-03
   4  Prefactor     .98901        .86965E-01    .46129E-01    .33353E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 11.257
  alpha      = 1.81304
  Normalizat = 1.1882
  Prefactor  = 0.989011
 **********
 **   18 **HESSE 
 **********

 FCN=   9119.362     FROM HESSE     STATUS=OK            29 CALLS      248 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.257        10.191        .11930E-03   -1.5037    
   2  alpha         1.8130        .71943        .18732E-01   -.27837    
   3  Normalizat    1.1882        .24094        .36275E-03   -.86968    
   4  Prefactor     .98901        .10131        .16607E-03   -.93097    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.5801e-11
Minuit parameter uncertainties:
  1  10.1927
  2  0.730627
  3  0.241165
  4  0.101332
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/865776': 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) = 9119.36245527
delta logL = 0.396849870209

Extracting fit parameters...

4FGL J1023.9-3236
   Spectrum: LogParabola
345         norm:  1.126e+01  1.019e+01  1.000e-04  1.000e+04 ( 1.000e-12)
346        alpha:  1.813e+00  7.306e-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:  9.890e-01  1.013e-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.188e+00  2.412e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.64
Ra Dec: 155.996 -32.603
Photon Index (Free Index): 1.81 +/- 0.73
Photon Flux (Free Index): 3.34e-08 +/- 4.23e-08
Energy Flux (Free Index): 2.31e-05 +/- 1.79e-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/865776/cmap_HighResolution_528595201_528854401_4FGL_J1023.9-3236_daily_bin1116.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.74e-08', energy_flux2='2.31e-05', photon_flux_error='4.18e-08', dlogl='3.97e-01', energy_flux='2.08e-05', photon_flux2='3.34e-08', job_status='DONE', time_completed='2021-09-01 21:14:21.081210', photon_index_error2='0.73', photon_index2='1.81', ts='7.87', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='1.79e-05', EG='1.15', time_epoch_completed='1630556061.08', return_code='0', job_id='865776', GAL2='0.99', EG2='1.19', return_code2='0', energy_flux_error='1.29e-05', photon_flux_error2='4.23e-08', ts2='8.64', photon_index='2.42' WHERE bin_id='1116' AND source_name='4FGL J1023.9-3236' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 21:14:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 865776: <4FGL_J1023.9-3236_daily_bin1116> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.9-3236_daily_bin1116 155.996 -32.6034 528595201 528854401 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 :                                   712.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             373.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   774 sec.
    Turnaround time :                            831 sec.

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

