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


Performing analysis on: 4FGL_J1023.9-3236_daily_bin1138
RA = 155.996, Dec = -32.6034
tmin = 534297601, tmax = 534556801
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='865809', job_status='RUN', time_executed='2021-09-01 21:02:09.523937', time_epoch_executed='1630555329.52' WHERE source_name='4FGL J1023.9-3236' and cadence='daily' and bin_id='1138'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/865809

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/865809/ft1_4FGL_J1023.9-3236_daily_bin1138.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/865809/ft2_4FGL_J1023.9-3236_daily_bin1138.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/865809/ft1_4FGL_J1023.9-3236_daily_bin1138.fits outfile=/scratch/kocevski/865809/ft1_filteredMKT_4FGL_J1023.9-3236_daily_bin1138.fits ra=155.996 dec=-32.6034 rad=12.0 tmin=534297601.0 tmax=534556801.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.54
user 3.32
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/865809/ft2_4FGL_J1023.9-3236_daily_bin1138.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/865809/ft1_filteredMKT_4FGL_J1023.9-3236_daily_bin1138.fits evtable="EVENTS" outfile="/scratch/kocevski/865809/ft1_filtered_4FGL_J1023.9-3236_daily_bin1138.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/865809/ft1_filtered_4FGL_J1023.9-3236_daily_bin1138.fits" evtable="EVENTS" scfile=/scratch/kocevski/865809/ft2_4FGL_J1023.9-3236_daily_bin1138.fits sctable="SC_DATA" outfile=/scratch/kocevski/865809/ltcube_534297601_534556801_4FGL_J1023.9-3236_daily_bin1138.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/865809/ft2_4FGL_J1023.9-3236_daily_bin1138.fits
.....................!
real 16.56
user 16.13
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/865809/ft1_filtered_4FGL_J1023.9-3236_daily_bin1138.fits evtable="EVENTS" scfile=/scratch/kocevski/865809/ft2_4FGL_J1023.9-3236_daily_bin1138.fits sctable="SC_DATA" expcube=/scratch/kocevski/865809/ltcube_534297601_534556801_4FGL_J1023.9-3236_daily_bin1138.fits outfile=/scratch/kocevski/865809/expmap_534297601_534556801_4FGL_J1023.9-3236_daily_bin1138.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/865809/ltcube_534297601_534556801_4FGL_J1023.9-3236_daily_bin1138.fits
.....................!
real 191.11
user 186.25
sys 4.36

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/865809/ft1_filtered_4FGL_J1023.9-3236_daily_bin1138.fits scfile=/scratch/kocevski/865809/ft2_4FGL_J1023.9-3236_daily_bin1138.fits outfile=/scratch/kocevski/865809/cmap_534297601_534556801_4FGL_J1023.9-3236_daily_bin1138.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/865809/ft1_filtered_4FGL_J1023.9-3236_daily_bin1138.fits scfile=/scratch/kocevski/865809/ft2_4FGL_J1023.9-3236_daily_bin1138.fits outfile=/scratch/kocevski/865809/cmap_HighResolution_534297601_534556801_4FGL_J1023.9-3236_daily_bin1138.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/865809/ft1_filtered_4FGL_J1023.9-3236_daily_bin1138.fits evtable="EVENTS" scfile=/scratch/kocevski/865809/ft2_4FGL_J1023.9-3236_daily_bin1138.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/865809/Model_4FGL_J1023.9-3236_daily_bin1138.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/865809/ft1_filtered_4FGL_J1023.9-3236_daily_bin1138.fits.....................!
real 86.05
user 84.46
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.798       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    9.3954       1.0000         .10000E-03   10000.    
     6 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    16.878       1.0000         .10000E-03   10000.    
    10 'norm      '    7.1768       1.0000         .10000E-03   10000.    
    11 'norm      '    6.7692       1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.922       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10192E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.0694       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10366E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.4108       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .91999       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1193       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=   7883.200     FROM MIGRAD    STATUS=CONVERGED    442 CALLS     2165 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.808        62.941        .64863E-05    .13913E-03
   2  norm          .10000E-03    9.4032        .43079E-06** at limit **
   3  norm          .10000E-03    8.4951       -.12867E-05** at limit **
   4  norm          .10000E-03    8.6991       -.14841E-05** at limit **
   5  norm          9.3953        2.5151        .44256E-09    .25814E-03
   6  norm          .10000E-03    9.6736        .14751E-05** at limit **
   7  Prefactor     .10000E-03    24.776        .25068E-06** at limit **
   8  Prefactor     .10000E-03    3.7738       -.12918E-08** at limit **
   9  norm          16.874        13.006        .24865E-06    .18158E-04
  10  norm          7.1771        6.0673       -.11211E-06    .29525E-03
  11  norm          6.7668        7.4543        .21050E-06   -.35071E-03
  12  Prefactor     17.920        17.259        .12528E-06   -.19506E-04
  13  Prefactor     .10000E-03    64.811       -.45258E-07** at limit **
  14  norm          6.0520        5.3595       -.15038E-06   -.32857E-03
  15  Prefactor     .10000E-03    13.536       -.63373E-06** at limit **
  16  Prefactor     .10000E-03    7.6861        .10625E-05** at limit **
  17  Prefactor     6.4045        8.7225        .14472E-05   -.73815E-03
  18  Prefactor     .10000E-03    3.3761       -.29793E-09** at limit **
  19  Prefactor     .10000E-03    4.5169        .17717E-07** at limit **
  20  Normalizat    .92001        .26404       -.94228E-06   -.44540E-04
  21  Prefactor     1.1192        .10441       -.78688E-07   -.52730E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.8078
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 9.39532
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.8736
  norm       = 7.17707
  norm       = 6.76675
  Prefactor  = 17.9205
  Prefactor  = 0.0001
  norm       = 6.05202
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.40452
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.92001
  Prefactor  = 1.11924
 **********
 **   18 **HESSE 
 **********

 FCN=   7883.200     FROM HESSE     STATUS=OK           313 CALLS     2478 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.808        64.198        .63537E-04   -1.4445    
   2  norm          .10000E-03    9.6094        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    8.5866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    8.8033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          9.3953        2.5195        .35163E-03   -1.5095    
   6  norm          .10000E-03    9.8572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    25.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.7742        .16845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          16.874        13.008        .97490E-04   -1.4886    
  10  norm          7.1771        6.1303        .74866E-03   -1.5172    
  11  norm          6.7668        7.5914        .77109E-03   -1.5188    
  12  Prefactor     17.920        17.261        .94606E-04   -1.4861    
  13  Prefactor     .10000E-03    65.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.0520        5.3336        .16297E-03   -1.5216    
  15  Prefactor     .10000E-03    13.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.0529        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.4045        11.601        .79259E-03   -1.5202    
  18  Prefactor     .10000E-03    3.3951        .15930E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.5368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .92001        .29635        .43866E-03   -.95761    
  21  Prefactor     1.1192        .11744        .16776E-03   -.88854    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51343e-09
Minuit parameter uncertainties:
  1  64.3093
  2  2.66387e-05
  3  8.72206e-05
  4  0.000100714
  5  2.51958
  6  0.000102297
  7  2.80539e-05
  8  6.07273e-07
  9  13.0105
  10  6.13082
  11  7.5925
  12  17.266
  13  6.55128e-05
  14  5.33402
  15  4.8174e-05
  16  7.14984e-05
  17  11.6046
  18  1.56267e-06
  19  2.8875e-06
  20  0.296878
  21  0.117466
Done.

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

Extracting fit parameters...

4FGL J1023.9-3236
   Spectrum: LogParabola
345         norm:  6.767e+00  7.593e+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.119e+00  1.175e-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:  9.200e-01  2.969e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.89
Ra Dec: 155.996 -32.603
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 3.48e-08 +/- 3.91e-08
Energy Flux (Fixed Index): 1.07e-05 +/- 1.21e-05

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

Saving results to:
/scratch/kocevski/865809/likelihoodResults_534297601_534556801_4FGL_J1023.9-3236_daily_bin1138.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) = 7883.19083482
delta logL = 0.00876598240575

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7883.19056488
delta logL = 0.00903592461327

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.7604       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2739       1.0000          .0000       5.0000    
     3 'Normalizat'    .92544       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1181       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=   7883.191     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      271 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.7548        394.38        .77160E-03   -.60409E-05
   2  alpha         2.2729        3.8615        .50000        .23308E-06
   3  Normalizat    .92549        .29556        .43750E-03   -.29364E-04
   4  Prefactor     1.1181        .76797E-01    .16784E-03   -.13466E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.75481
  alpha      = 2.27291
  Normalizat = 0.925491
  Prefactor  = 1.11811
 **********
 **   18 **HESSE 
 **********

 FCN=   7883.191     FROM HESSE     STATUS=OK            27 CALLS      298 TOTAL
                     EDM=   .98E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.7548        7.4996        .30864E-04   -1.5188    
   2  alpha         2.2729        1.0502        .28563E-01   -.90961E-01
   3  Normalizat    .92549        .27929        .17500E-04   -.95570    
   4  Prefactor     1.1181        .11639        .33568E-04   -.88890    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.82011e-12
Minuit parameter uncertainties:
  1  7.50068
  2  1.08418
  3  0.279728
  4  0.116414
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/865809': 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) = 7883.19056429
delta logL = 0.00903651402314

Extracting fit parameters...

4FGL J1023.9-3236
   Spectrum: LogParabola
345         norm:  6.755e+00  7.501e+00  1.000e-04  1.000e+04 ( 1.000e-12)
346        alpha:  2.273e+00  1.084e+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.118e+00  1.164e-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:  9.255e-01  2.797e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.91
Ra Dec: 155.996 -32.603
Photon Index (Free Index): 2.27 +/- 1.08
Photon Flux (Free Index): 2.98e-08 +/- 4.81e-08
Energy Flux (Free Index): 1.06e-05 +/- 1.18e-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/865809/cmap_HighResolution_534297601_534556801_4FGL_J1023.9-3236_daily_bin1138.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.23e-05', comment='SUCCESS', photon_flux='3.48e-08', energy_flux2='1.06e-05', photon_flux_error='3.91e-08', dlogl='9.04e-03', energy_flux='1.07e-05', photon_flux2='2.98e-08', job_status='DONE', time_completed='2021-09-01 21:14:42.405236', photon_index_error2='1.08', photon_index2='2.27', ts='1.89', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='1.37e-07', energy_flux_error2='1.18e-05', EG='0.92', time_epoch_completed='1630556082.41', return_code='0', job_id='865809', GAL2='1.12', EG2='0.93', return_code2='0', energy_flux_error='1.21e-05', photon_flux_error2='4.81e-08', ts2='1.91', photon_index='2.42' WHERE bin_id='1138' AND source_name='4FGL J1023.9-3236' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 21:14:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 865809: <4FGL_J1023.9-3236_daily_bin1138> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.9-3236_daily_bin1138 155.996 -32.6034 534297601 534556801 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 :                                   749.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             352.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   772 sec.
    Turnaround time :                            850 sec.

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

