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


Performing analysis on: 4FGL_J1023.9-3236_daily_bin1051
RA = 155.996, Dec = -32.6034
tmin = 511747201, tmax = 512006401
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='865677', job_status='RUN', time_executed='2021-09-01 21:03:18.669789', time_epoch_executed='1630555398.67' WHERE source_name='4FGL J1023.9-3236' and cadence='daily' and bin_id='1051'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/865677

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/865677/ft1_4FGL_J1023.9-3236_daily_bin1051.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/865677/ft2_4FGL_J1023.9-3236_daily_bin1051.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/865677/ft1_4FGL_J1023.9-3236_daily_bin1051.fits outfile=/scratch/kocevski/865677/ft1_filteredMKT_4FGL_J1023.9-3236_daily_bin1051.fits ra=155.996 dec=-32.6034 rad=12.0 tmin=511747201.0 tmax=512006401.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.59
user 3.34
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/865677/ft1_filtered_4FGL_J1023.9-3236_daily_bin1051.fits" evtable="EVENTS" scfile=/scratch/kocevski/865677/ft2_4FGL_J1023.9-3236_daily_bin1051.fits sctable="SC_DATA" outfile=/scratch/kocevski/865677/ltcube_511747201_512006401_4FGL_J1023.9-3236_daily_bin1051.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/865677/ft2_4FGL_J1023.9-3236_daily_bin1051.fits
.....................!
real 13.92
user 13.55
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/865677/ft1_filtered_4FGL_J1023.9-3236_daily_bin1051.fits evtable="EVENTS" scfile=/scratch/kocevski/865677/ft2_4FGL_J1023.9-3236_daily_bin1051.fits sctable="SC_DATA" expcube=/scratch/kocevski/865677/ltcube_511747201_512006401_4FGL_J1023.9-3236_daily_bin1051.fits outfile=/scratch/kocevski/865677/expmap_511747201_512006401_4FGL_J1023.9-3236_daily_bin1051.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/865677/ltcube_511747201_512006401_4FGL_J1023.9-3236_daily_bin1051.fits
.....................!
real 193.62
user 189.19
sys 4.01

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/865677/ft1_filtered_4FGL_J1023.9-3236_daily_bin1051.fits scfile=/scratch/kocevski/865677/ft2_4FGL_J1023.9-3236_daily_bin1051.fits outfile=/scratch/kocevski/865677/cmap_511747201_512006401_4FGL_J1023.9-3236_daily_bin1051.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.56
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/865677/ft1_filtered_4FGL_J1023.9-3236_daily_bin1051.fits scfile=/scratch/kocevski/865677/ft2_4FGL_J1023.9-3236_daily_bin1051.fits outfile=/scratch/kocevski/865677/cmap_HighResolution_511747201_512006401_4FGL_J1023.9-3236_daily_bin1051.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    58.803       1.0000         .10000E-03   10000.    
     2 'norm      '    7.4743       1.0000         .10000E-03   10000.    
     3 'norm      '    11.520       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .17654E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    2.4423       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.9865       1.0000         .10000E-03   10000.    
     9 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    11.717       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.720       1.0000         .10000E-03   10000.    
    14 'norm      '    3.0574       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.0691       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.3180       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2076       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .91948       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=   6393.103     FROM MIGRAD    STATUS=CONVERGED    450 CALLS     2196 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     58.789        60.000       -.10538E-04   -.19146E-03
   2  norm          7.4723        9.8495        .61018E-06   -.20478E-04
   3  norm          11.515        19.893       -.22407E-05   -.80345E-04
   4  norm          .10000E-03    5.1934       -.75997E-07** at limit **
   5  norm          .10000E-03    .95368       -.81349E-07** at limit **
   6  norm          2.4419        5.4585       -.31718E-07   -.12756E-03
   7  Prefactor     .10000E-03    39.132        .10974E-05** at limit **
   8  Prefactor     2.9852        8.2001        .92931E-06   -.11256E-02
   9  norm          .10000E-03    8.7002        .41895E-05** at limit **
  10  norm          .10000E-03    3.2783       -.27996E-07** at limit **
  11  norm          11.715        9.2572        .62059E-07   -.61691E-04
  12  Prefactor     .10000E-03    7.5151       -.29124E-05** at limit **
  13  Prefactor     12.716        21.574       -.35190E-05   -.87450E-04
  14  norm          3.0574        3.5578        .99436E-06   -.26693E-02
  15  Prefactor     .10000E-03    9.7123       -.23610E-05** at limit **
  16  Prefactor     .10000E-03    3.3852       -.71444E-08** at limit **
  17  Prefactor     4.0656        11.238        .12240E-05    .16435E-04
  18  Prefactor     2.3160        7.7966       -.98295E-06   -.13959E-03
  19  Prefactor     .10000E-03    6.4297        .10118E-05** at limit **
  20  Normalizat    1.2079        .26860        .51567E-06    .73184E-05
  21  Prefactor     .91945        .10535        .32885E-06   -.32287E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 58.789
  norm       = 7.47234
  norm       = 11.5147
  norm       = 0.0001
  norm       = 0.000100004
  norm       = 2.4419
  Prefactor  = 0.0001
  Prefactor  = 2.98521
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 11.7152
  Prefactor  = 0.0001
  Prefactor  = 12.7155
  norm       = 3.05741
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.06559
  Prefactor  = 2.31597
  Prefactor  = 0.0001
  Normalizat = 1.2079
  Prefactor  = 0.919454
 **********
 **   18 **HESSE 
 **********

 FCN=   6393.103     FROM HESSE     STATUS=OK           325 CALLS     2521 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     58.789        60.658        .52319E-04   -1.4173    
   2  norm          7.4723        9.8466        .14670E-03   -1.5161    
   3  norm          11.515        20.017        .11803E-03   -1.5029    
   4  norm          .10000E-03    5.2128        .17796E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.4451        .25951E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.4419        5.4315        .26179E-03   -1.5395    
   7  Prefactor     .10000E-03    39.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.9852        10.024        .11746E-02   -1.5362    
   9  norm          .10000E-03    8.7747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.2921        .14139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          11.715        9.2592        .11703E-03   -1.5023    
  12  Prefactor     .10000E-03    7.5450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     12.716        22.045        .11231E-03   -1.4995    
  14  norm          3.0574        4.4200        .87857E-03   -1.5358    
  15  Prefactor     .10000E-03    9.7476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.4370        .14342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.0656        11.227        .19988E-03   -1.5305    
  18  Prefactor     2.3160        7.8366        .26944E-03   -1.5404    
  19  Prefactor     .10000E-03    6.4809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2079        .32013        .36970E-03   -.86359    
  21  Prefactor     .91945        .12544        .16851E-03   -.95465    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.95545e-09
Minuit parameter uncertainties:
  1  60.7213
  2  9.84869
  3  20.0285
  4  3.49468e-06
  5  0.000227151
  6  5.43255
  7  6.62359e-05
  8  10.0294
  9  0.000133391
  10  1.79242e-06
  11  9.26035
  12  8.84098e-05
  13  22.0587
  14  4.42052
  15  7.97118e-05
  16  3.80898e-06
  17  11.2324
  18  7.84003
  19  1.95482e-05
  20  0.320656
  21  0.125483
Done.

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

Extracting fit parameters...

4FGL J1023.9-3236
   Spectrum: LogParabola
345         norm:  1.172e+01  9.260e+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.195e-01  1.255e-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.208e+00  3.207e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.49
Ra Dec: 155.996 -32.603
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 6.03e-08 +/- 4.77e-08
Energy Flux (Fixed Index): 1.86e-05 +/- 1.47e-05

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

Saving results to:
/scratch/kocevski/865677/likelihoodResults_511747201_512006401_4FGL_J1023.9-3236_daily_bin1051.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) = 6391.97821908
delta logL = 1.12512948543

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6391.96822287
delta logL = 1.13512569942

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.720       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3915       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2543       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90577       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=   6391.968     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      205 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.849        8.4364        .29254E-02    .63618E-05
   2  alpha         1.3955        .40471        .36710       -.43683E-04
   3  Normalizat    1.2542        .25411        .82154E-01    .12928E-04
   4  Prefactor     .90572        .10313        .45079E-01    .67324E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 11.8485
  alpha      = 1.39546
  Normalizat = 1.25419
  Prefactor  = 0.905722
 **********
 **   18 **HESSE 
 **********

 FCN=   6391.968     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .40E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.849        9.8043        .11701E-03   -1.5019    
   2  alpha         1.3955        .53860        .14135E-01   -.45762    
   3  Normalizat    1.2542        .29918        .36370E-03   -.84944    
   4  Prefactor     .90572        .12164        .16954E-03   -.95941    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.97669e-12
Minuit parameter uncertainties:
  1  9.80563
  2  0.543916
  3  0.299591
  4  0.12168
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/865677': 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) = 6391.96814036
delta logL = 1.13520820474

Extracting fit parameters...

4FGL J1023.9-3236
   Spectrum: LogParabola
345         norm:  1.185e+01  9.806e+00  1.000e-04  1.000e+04 ( 1.000e-12)
346        alpha:  1.395e+00  5.439e-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.057e-01  1.217e-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.254e+00  2.996e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.77
Ra Dec: 155.996 -32.603
Photon Index (Free Index): 1.40 +/- 0.54
Photon Flux (Free Index): 2.94e-08 +/- 2.55e-08
Energy Flux (Free Index): 4.98e-05 +/- 5.39e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/865677/cmap_HighResolution_511747201_512006401_4FGL_J1023.9-3236_daily_bin1051.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.34e-05', comment='SUCCESS', photon_flux='6.03e-08', energy_flux2='4.98e-05', photon_flux_error='4.77e-08', dlogl='1.14e+00', energy_flux='1.86e-05', photon_flux2='2.94e-08', job_status='DONE', time_completed='2021-09-01 21:14:19.513103', photon_index_error2='0.54', photon_index2='1.40', ts='3.49', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.73e-07', energy_flux_error2='5.39e-05', EG='1.21', time_epoch_completed='1630556059.51', return_code='0', job_id='865677', GAL2='0.91', EG2='1.25', return_code2='0', energy_flux_error='1.47e-05', photon_flux_error2='2.55e-08', ts2='5.77', photon_index='2.42' WHERE bin_id='1051' AND source_name='4FGL J1023.9-3236' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 21:14:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 865677: <4FGL_J1023.9-3236_daily_bin1051> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.9-3236_daily_bin1051 155.996 -32.6034 511747201 512006401 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 :                                   654.37 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             289.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            838 sec.

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

