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


Performing analysis on: 4FGL_J1023.9-3236_daily_bin1074
RA = 155.996, Dec = -32.6034
tmin = 517708801, tmax = 517968001
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='865712', job_status='RUN', time_executed='2021-09-01 21:01:34.636670', time_epoch_executed='1630555294.64' WHERE source_name='4FGL J1023.9-3236' and cadence='daily' and bin_id='1074'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/865712

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/865712/ft1_4FGL_J1023.9-3236_daily_bin1074.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/865712/ft2_4FGL_J1023.9-3236_daily_bin1074.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/865712/ft1_4FGL_J1023.9-3236_daily_bin1074.fits outfile=/scratch/kocevski/865712/ft1_filteredMKT_4FGL_J1023.9-3236_daily_bin1074.fits ra=155.996 dec=-32.6034 rad=12.0 tmin=517708801.0 tmax=517968001.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.72
user 3.51
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/865712/ft2_4FGL_J1023.9-3236_daily_bin1074.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/865712/ft1_filteredMKT_4FGL_J1023.9-3236_daily_bin1074.fits evtable="EVENTS" outfile="/scratch/kocevski/865712/ft1_filtered_4FGL_J1023.9-3236_daily_bin1074.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.50
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/865712/ft1_filtered_4FGL_J1023.9-3236_daily_bin1074.fits" evtable="EVENTS" scfile=/scratch/kocevski/865712/ft2_4FGL_J1023.9-3236_daily_bin1074.fits sctable="SC_DATA" outfile=/scratch/kocevski/865712/ltcube_517708801_517968001_4FGL_J1023.9-3236_daily_bin1074.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/865712/ft2_4FGL_J1023.9-3236_daily_bin1074.fits
.....................!
real 13.18
user 12.81
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/865712/ft1_filtered_4FGL_J1023.9-3236_daily_bin1074.fits evtable="EVENTS" scfile=/scratch/kocevski/865712/ft2_4FGL_J1023.9-3236_daily_bin1074.fits sctable="SC_DATA" expcube=/scratch/kocevski/865712/ltcube_517708801_517968001_4FGL_J1023.9-3236_daily_bin1074.fits outfile=/scratch/kocevski/865712/expmap_517708801_517968001_4FGL_J1023.9-3236_daily_bin1074.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/865712/ltcube_517708801_517968001_4FGL_J1023.9-3236_daily_bin1074.fits
.....................!
real 190.85
user 186.55
sys 3.90

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/865712/ft1_filtered_4FGL_J1023.9-3236_daily_bin1074.fits scfile=/scratch/kocevski/865712/ft2_4FGL_J1023.9-3236_daily_bin1074.fits outfile=/scratch/kocevski/865712/cmap_517708801_517968001_4FGL_J1023.9-3236_daily_bin1074.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.55
user 0.40
sys 0.13

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

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/865712/ft1_filtered_4FGL_J1023.9-3236_daily_bin1074.fits evtable="EVENTS" scfile=/scratch/kocevski/865712/ft2_4FGL_J1023.9-3236_daily_bin1074.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/865712/Model_4FGL_J1023.9-3236_daily_bin1074.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/865712/ft1_filtered_4FGL_J1023.9-3236_daily_bin1074.fits.....................!
real 112.18
user 110.69
sys 1.07

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27632       1.0000         .10000E-03   10000.    
     2 'norm      '    .11709E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10178E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.2255       1.0000         .10000E-03   10000.    
     6 'norm      '    2.9474       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10290E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    40.469       1.0000         .10000E-03   10000.    
    10 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    10.813       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10824E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.3297       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .89764       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0421       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=   11054.59     FROM MIGRAD    STATUS=CONVERGED    494 CALLS     1910 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .60093E-01    25.087        .15787        .70150E-04
   2  norm          .10000E-03    2.7072        .64627E-01** at limit **
   3  norm          .10000E-03    4.3499        .90712E-02** at limit **
   4  norm          .10000E-03    2.9068        .90712E-02** at limit **
   5  norm          1.2254        .85218        .10171E-01    .17010E-03
   6  norm          2.9397        7.7783        .59141E-02    .43339E-03
   7  Prefactor     .10000E-03    9.5367        .90712E-02** at limit **
   8  Prefactor     .10000E-03    3.6252        .90712E-02** at limit **
   9  norm          40.472        11.852        .15753E-02    .67334E-04
  10  norm          .10000E-03    1.4762        .90712E-02** at limit **
  11  norm          10.810        8.3986        .30460E-02    .26867E-02
  12  Prefactor     .10000E-03    10.544        .90712E-02** at limit **
  13  Prefactor     .10000E-03    11.910        .90712E-02** at limit **
  14  norm          6.3284        3.1070        .39886E-02    .22572E-03
  15  Prefactor     .10001E-03    8.2350        .90712E-02** at limit **
  16  Prefactor     .10000E-03    1.2470        .40530E-01** at limit **
  17  Prefactor     .10000E-03    2.0081        .90712E-02** at limit **
  18  Prefactor     .10000E-03    1.3926        .90712E-02** at limit **
  19  Prefactor     .10000E-03    3.3336        .90712E-02** at limit **
  20  Normalizat    .89766        .19100        .87846E-01    .43262E-04
  21  Prefactor     1.0421        .81196E-01    .40399E-01   -.22172E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.060093
  norm       = 0.000100005
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.22537
  norm       = 2.93966
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 40.4721
  norm       = 0.0001
  norm       = 10.8105
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 6.32837
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.897657
  Prefactor  = 1.04209
 **********
 **   18 **HESSE 
 **********

 FCN=   11054.59     FROM HESSE     STATUS=OK           323 CALLS     2233 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .60093E-01    25.079        .15691       -1.5659    
   2  norm          .10000E-03    8.1568        .33375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.3586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.9103        .17506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.2254        .84471        .78809E-04   -1.5487    
   6  norm          2.9397        7.7585        .23656E-03   -1.5365    
   7  Prefactor     .10000E-03    9.5741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.6296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          40.472        11.847        .63011E-04   -1.4435    
  10  norm          .10000E-03    1.4776        .12476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          10.810        8.3893        .60919E-03   -1.5050    
  12  Prefactor     .10000E-03    10.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.3284        3.0819        .12350E-03   -1.5205    
  15  Prefactor     .10001E-03    8.3468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.9352        .22570E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.0148        .14548E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.4061        .12116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.3554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .89766        .21865        .38901E-03   -.96542    
  21  Prefactor     1.0421        .93899E-01    .15875E-03   -.91339    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83903e-09
Minuit parameter uncertainties:
  1  2.45425
  2  0.000383871
  3  4.92485e-08
  4  1.79273e-06
  5  0.844716
  6  7.7612
  7  0.000266647
  8  1.85123e-07
  9  11.8473
  10  5.78932e-07
  11  8.39024
  12  0.000223487
  13  7.89064e-05
  14  3.08201
  15  0.000500845
  16  8.29494e-07
  17  1.13591e-07
  18  5.9568e-07
  19  1.56671e-06
  20  0.218867
  21  0.0939139
Done.

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

Extracting fit parameters...

4FGL J1023.9-3236
   Spectrum: LogParabola
345         norm:  1.081e+01  8.390e+00  1.000e-04  1.000e+04 ( 1.000e-12)
346        alpha:  2.419e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
347         beta:  1.106e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
348           Eb:  6.383e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
620    Prefactor:  1.042e+00  9.391e-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:  8.977e-01  2.189e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.44
Ra Dec: 155.996 -32.603
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 5.57e-08 +/- 4.32e-08
Energy Flux (Fixed Index): 1.72e-05 +/- 1.33e-05

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

Saving results to:
/scratch/kocevski/865712/likelihoodResults_517708801_517968001_4FGL_J1023.9-3236_daily_bin1074.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) = 11054.1914054
delta logL = 0.394875870059

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11054.1769469
delta logL = 0.409334395788

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.5936       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2983       1.0000          .0000       5.0000    
     3 'Normalizat'    .85170       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0561       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=   11054.18     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      251 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.5988        53.064        .42466E-02    .65431E-03
   2  alpha         3.2991        4.0994        .44180        .90120E-04
   3  Normalizat    .85135        .60805E-01    .89880E-01    .45591E-04
   4  Prefactor     1.0563        .25250E-01    .39564E-01   -.72230E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.59884
  alpha      = 3.29912
  Normalizat = 0.851349
  Prefactor  = 1.0563
 **********
 **   18 **HESSE 
 **********

 FCN=   11054.18     FROM HESSE     STATUS=OK            33 CALLS      284 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.5988        17.820        .14620E-03   -1.5235    
   2  alpha         3.2991        3.7024        .16130E-01    .32536    
   3  Normalizat    .85135        .22815        .39808E-03   -.98191    
   4  Prefactor     1.0563        .98377E-01    .15777E-03   -.90876    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36585e-07
Minuit parameter uncertainties:
  1  17.8367
  2  2.42279
  3  0.22841
  4  0.0983936
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/865712': 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) = 11054.1769409
delta logL = 0.409340427383

Extracting fit parameters...

4FGL J1023.9-3236
   Spectrum: LogParabola
345         norm:  5.599e+00  1.784e+01  1.000e-04  1.000e+04 ( 1.000e-12)
346        alpha:  3.299e+00  2.423e+00  0.000e+00  5.000e+00 ( 1.000e+00)
347         beta:  1.106e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
348           Eb:  6.383e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
620    Prefactor:  1.056e+00  9.839e-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:  8.513e-01  2.284e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.41
Ra Dec: 155.996 -32.603
Photon Index (Free Index): 3.30 +/- 2.42
Photon Flux (Free Index): 8.70e-08 +/- 5.73e-08
Energy Flux (Free Index): 1.62e-05 +/- 1.43e-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/865712/cmap_HighResolution_517708801_517968001_4FGL_J1023.9-3236_daily_bin1074.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.24e-05', comment='SUCCESS', photon_flux='5.57e-08', energy_flux2='1.62e-05', photon_flux_error='4.32e-08', dlogl='4.09e-01', energy_flux='1.72e-05', photon_flux2='8.70e-08', job_status='DONE', time_completed='2021-09-01 21:16:34.365453', photon_index_error2='2.42', photon_index2='3.30', ts='2.44', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='1.38e-07', energy_flux_error2='1.43e-05', EG='0.90', time_epoch_completed='1630556194.37', return_code='0', job_id='865712', GAL2='1.06', EG2='0.85', return_code2='0', energy_flux_error='1.33e-05', photon_flux_error2='5.73e-08', ts2='3.41', photon_index='2.42' WHERE bin_id='1074' AND source_name='4FGL J1023.9-3236' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 21:16:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0291>
Subject: Job 865712: <4FGL_J1023.9-3236_daily_bin1074> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.9-3236_daily_bin1074 155.996 -32.6034 517708801 517968001 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 :                                   896.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             346.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            969 sec.

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

