/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 77 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7384
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1023.9-3236_daily_bin1453
RA = 155.996, Dec = -32.6034
tmin = 615945601, tmax = 616204801
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='867447', job_status='RUN', time_executed='2021-09-01 21:07:07.927099', time_epoch_executed='1630555627.93' WHERE source_name='4FGL J1023.9-3236' and cadence='daily' and bin_id='1453'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/867447

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/867447/ft1_4FGL_J1023.9-3236_daily_bin1453.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/867447/ft2_4FGL_J1023.9-3236_daily_bin1453.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/867447/ft1_4FGL_J1023.9-3236_daily_bin1453.fits outfile=/scratch/kocevski/867447/ft1_filteredMKT_4FGL_J1023.9-3236_daily_bin1453.fits ra=155.996 dec=-32.6034 rad=12.0 tmin=615945601.0 tmax=616204801.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 4.28
user 4.01
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/867447/ft1_filtered_4FGL_J1023.9-3236_daily_bin1453.fits" evtable="EVENTS" scfile=/scratch/kocevski/867447/ft2_4FGL_J1023.9-3236_daily_bin1453.fits sctable="SC_DATA" outfile=/scratch/kocevski/867447/ltcube_615945601_616204801_4FGL_J1023.9-3236_daily_bin1453.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/867447/ft2_4FGL_J1023.9-3236_daily_bin1453.fits
.....................!
real 17.41
user 16.85
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/867447/ft1_filtered_4FGL_J1023.9-3236_daily_bin1453.fits evtable="EVENTS" scfile=/scratch/kocevski/867447/ft2_4FGL_J1023.9-3236_daily_bin1453.fits sctable="SC_DATA" expcube=/scratch/kocevski/867447/ltcube_615945601_616204801_4FGL_J1023.9-3236_daily_bin1453.fits outfile=/scratch/kocevski/867447/expmap_615945601_616204801_4FGL_J1023.9-3236_daily_bin1453.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/867447/ltcube_615945601_616204801_4FGL_J1023.9-3236_daily_bin1453.fits
.....................!
real 192.98
user 187.72
sys 4.65

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/867447/ft1_filtered_4FGL_J1023.9-3236_daily_bin1453.fits scfile=/scratch/kocevski/867447/ft2_4FGL_J1023.9-3236_daily_bin1453.fits outfile=/scratch/kocevski/867447/cmap_615945601_616204801_4FGL_J1023.9-3236_daily_bin1453.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.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/867447/ft1_filtered_4FGL_J1023.9-3236_daily_bin1453.fits scfile=/scratch/kocevski/867447/ft2_4FGL_J1023.9-3236_daily_bin1453.fits outfile=/scratch/kocevski/867447/cmap_HighResolution_615945601_616204801_4FGL_J1023.9-3236_daily_bin1453.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=155.996 yref=-32.6034 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.57
user 0.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.1975       1.0000         .10000E-03   10000.    
     6 'norm      '    8.1167       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10582E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10403E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.7021       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    21.275       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .46457       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.9778       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .47573       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3343       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0064       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=   7440.979     FROM MIGRAD    STATUS=CONVERGED    444 CALLS     1897 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    37.872        .33686E-04** at limit **
   2  norm          .10000E-03    2.2484       -.88298E-07** at limit **
   3  norm          .10000E-03    8.5870        .22178E-05** at limit **
   4  norm          .10000E-03    9.7255       -.30181E-05** at limit **
   5  norm          2.1975        1.7445       -.91776E-07   -.29473E-04
   6  norm          8.1162        8.3827        .24446E-06    .17784E-04
   7  Prefactor     .10000E-03    87.163       -.18030E-04** at limit **
   8  Prefactor     .10000E-03    15.484        .88668E-05** at limit **
   9  norm          3.7000        22.001       -.12732E-05    .66102E-05
  10  norm          .10000E-03    2.6866       -.61962E-07** at limit **
  11  norm          21.272        15.168       -.56961E-06    .29088E-03
  12  Prefactor     .10000E-03    16.477       -.56787E-05** at limit **
  13  Prefactor     .10000E-03    32.131       -.25709E-04** at limit **
  14  norm          .46938        2.5225       -.15467E-05    .14548E-02
  15  Prefactor     .10000E-03    7.1276       -.15508E-05** at limit **
  16  Prefactor     4.9784        6.0556       -.17012E-05    .52139E-03
  17  Prefactor     .10000E-03    7.3188        .16402E-05** at limit **
  18  Prefactor     .10000E-03    4.6538       -.20514E-06** at limit **
  19  Prefactor     .49439        6.3669       -.18596E-05    .26977E-03
  20  Normalizat    1.3343        .25920        .39772E-05    .40082E-03
  21  Prefactor     1.0063        .99440E-01   -.36313E-06    .88969E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.19746
  norm       = 8.11624
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.70005
  norm       = 0.0001
  norm       = 21.2715
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.469382
  Prefactor  = 0.0001
  Prefactor  = 4.97842
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.494392
  Normalizat = 1.33433
  Prefactor  = 1.0063
 **********
 **   18 **HESSE 
 **********

 FCN=   7440.979     FROM HESSE     STATUS=OK           313 CALLS     2210 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    38.060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.2523        .12631E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    8.6150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    9.8140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.1975        1.7493        .98093E-04   -1.5411    
   6  norm          8.1162        8.3744        .14073E-03   -1.5138    
   7  Prefactor     .10000E-03    88.542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.7000        21.110        .20989E-03   -1.5323    
  10  norm          .10000E-03    2.6913        .13808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          21.272        14.911        .86839E-04   -1.4785    
  12  Prefactor     .10000E-03    16.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    32.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .46938        8.7001        .24647E-02   -1.5571    
  15  Prefactor     .10000E-03    7.1398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.9784        5.9837        .18025E-03   -1.5262    
  17  Prefactor     .10000E-03    7.3567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.6783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .49439        63.542        .41220E-02   -1.5567    
  20  Normalizat    1.3343        .29978        .37559E-03   -.82547    
  21  Prefactor     1.0063        .11520        .17213E-03   -.92520    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02894e-08
Minuit parameter uncertainties:
  1  7.02438e-05
  2  3.92613e-06
  3  1.46239e-05
  4  6.70112e-06
  5  1.74933
  6  8.37563
  7  4.37806e-05
  8  3.66939e-06
  9  17.685
  10  1.24168e-06
  11  14.9138
  12  5.55447e-05
  13  0.000556853
  14  4.04187
  15  2.16796e-06
  16  5.98438
  17  2.83232e-05
  18  2.93868e-06
  19  11.2208
  20  0.300177
  21  0.115226
Done.

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

Extracting fit parameters...

4FGL J1023.9-3236
   Spectrum: LogParabola
345         norm:  2.127e+01  1.491e+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:  1.006e+00  1.152e-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.334e+00  3.002e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.31
Ra Dec: 155.996 -32.603
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 1.10e-07 +/- 7.68e-08
Energy Flux (Fixed Index): 3.38e-05 +/- 2.37e-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) = 7440.73141725
delta logL = 0.247462878866

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7440.72116061
delta logL = 0.25771951593

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.885       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8825       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2834       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0193       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7440.721     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      308 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.893        15.040        .48734E-03   -.21742E-04
   2  alpha         2.8832        .75499        .12947E-01    .23327E-03
   3  Normalizat    1.2834        .29518        .38159E-03    .44481E-04
   4  Prefactor     1.0192        .11683        .17114E-03    .90198E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 16.893
  alpha      = 2.88325
  Normalizat = 1.28337
  Prefactor  = 1.01923
 **********
 **   18 **HESSE 
 **********

 FCN=   7440.721     FROM HESSE     STATUS=OK            25 CALLS      333 TOTAL
                     EDM=   .66E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.893        13.785        .19494E-04   -1.4886    
   2  alpha         2.8832        .69298        .25894E-02    .15391    
   3  Normalizat    1.2834        .29481        .15264E-04   -.84064    
   4  Prefactor     1.0192        .11666        .34228E-04   -.92091    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.57291e-12
Minuit parameter uncertainties:
  1  13.7879
  2  0.702401
  3  0.295194
  4  0.116688
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/867447': 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) = 7440.72115763
delta logL = 0.257722493902

Extracting fit parameters...

4FGL J1023.9-3236
   Spectrum: LogParabola
345         norm:  1.689e+01  1.379e+01  1.000e-04  1.000e+04 ( 1.000e-12)
346        alpha:  2.883e+00  7.024e-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:  1.019e+00  1.167e-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.283e+00  2.952e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.94
Ra Dec: 155.996 -32.603
Photon Index (Free Index): 2.88 +/- 0.70
Photon Flux (Free Index): 1.51e-07 +/- 9.46e-08
Energy Flux (Free Index): 3.36e-05 +/- 1.88e-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/867447/cmap_HighResolution_615945601_616204801_4FGL_J1023.9-3236_daily_bin1453.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.10e-07', energy_flux2='3.36e-05', photon_flux_error='7.68e-08', dlogl='2.58e-01', energy_flux='3.38e-05', photon_flux2='1.51e-07', job_status='DONE', time_completed='2021-09-01 21:18:20.640103', photon_index_error2='0.70', photon_index2='2.88', ts='4.31', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='1.88e-05', EG='1.33', time_epoch_completed='1630556300.64', return_code='0', job_id='867447', GAL2='1.02', EG2='1.28', return_code2='0', energy_flux_error='2.37e-05', photon_flux_error2='9.46e-08', ts2='4.94', photon_index='2.42' WHERE bin_id='1453' AND source_name='4FGL J1023.9-3236' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 21:18:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 867447: <4FGL_J1023.9-3236_daily_bin1453> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.9-3236_daily_bin1453 155.996 -32.6034 615945601 616204801 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 :                                   646.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             319.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            761 sec.

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

