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


Performing analysis on: 4FGL_J1023.9-3236_daily_bin1050
RA = 155.996, Dec = -32.6034
tmin = 511488001, tmax = 511747201
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='865675', job_status='RUN', time_executed='2021-09-01 21:01:50.877329', time_epoch_executed='1630555310.88' WHERE source_name='4FGL J1023.9-3236' and cadence='daily' and bin_id='1050'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/865675

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/865675/ft1_4FGL_J1023.9-3236_daily_bin1050.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/865675/ft2_4FGL_J1023.9-3236_daily_bin1050.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/865675/ft1_4FGL_J1023.9-3236_daily_bin1050.fits outfile=/scratch/kocevski/865675/ft1_filteredMKT_4FGL_J1023.9-3236_daily_bin1050.fits ra=155.996 dec=-32.6034 rad=12.0 tmin=511488001.0 tmax=511747201.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 2.94
user 2.69
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/865675/ft1_filtered_4FGL_J1023.9-3236_daily_bin1050.fits" evtable="EVENTS" scfile=/scratch/kocevski/865675/ft2_4FGL_J1023.9-3236_daily_bin1050.fits sctable="SC_DATA" outfile=/scratch/kocevski/865675/ltcube_511488001_511747201_4FGL_J1023.9-3236_daily_bin1050.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/865675/ft2_4FGL_J1023.9-3236_daily_bin1050.fits
.....................!
real 9.85
user 9.36
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/865675/ft1_filtered_4FGL_J1023.9-3236_daily_bin1050.fits evtable="EVENTS" scfile=/scratch/kocevski/865675/ft2_4FGL_J1023.9-3236_daily_bin1050.fits sctable="SC_DATA" expcube=/scratch/kocevski/865675/ltcube_511488001_511747201_4FGL_J1023.9-3236_daily_bin1050.fits outfile=/scratch/kocevski/865675/expmap_511488001_511747201_4FGL_J1023.9-3236_daily_bin1050.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/865675/ltcube_511488001_511747201_4FGL_J1023.9-3236_daily_bin1050.fits
.....................!
real 155.61
user 150.94
sys 4.00

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/865675/ft1_filtered_4FGL_J1023.9-3236_daily_bin1050.fits scfile=/scratch/kocevski/865675/ft2_4FGL_J1023.9-3236_daily_bin1050.fits outfile=/scratch/kocevski/865675/cmap_511488001_511747201_4FGL_J1023.9-3236_daily_bin1050.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.48
user 0.32
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/865675/ft1_filtered_4FGL_J1023.9-3236_daily_bin1050.fits scfile=/scratch/kocevski/865675/ft2_4FGL_J1023.9-3236_daily_bin1050.fits outfile=/scratch/kocevski/865675/cmap_HighResolution_511488001_511747201_4FGL_J1023.9-3236_daily_bin1050.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.48
user 0.31
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/865675/ft1_filtered_4FGL_J1023.9-3236_daily_bin1050.fits evtable="EVENTS" scfile=/scratch/kocevski/865675/ft2_4FGL_J1023.9-3236_daily_bin1050.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/865675/Model_4FGL_J1023.9-3236_daily_bin1050.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/865675/ft1_filtered_4FGL_J1023.9-3236_daily_bin1050.fits.....................!
real 58.16
user 56.99
sys 1.02

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .17974E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    13.861       1.0000         .10000E-03   10000.    
     5 'norm      '    1.3299       1.0000         .10000E-03   10000.    
     6 'norm      '    8.6305       1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.102       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.782       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10460E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .18050E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3853       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .85346       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=   6195.246     FROM MIGRAD    STATUS=CONVERGED    446 CALLS     2184 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.940       -.25206E-06** at limit **
   2  norm          .10000E-03    4.8047        .11720E-05** at limit **
   3  norm          .10039E-03    14.483       -.50136E-06** at limit **
   4  norm          13.860        11.738       -.56997E-08   -.60853E-05
   5  norm          1.3290        2.0878       -.28498E-06   -.87275E-03
   6  norm          8.6288        10.645       -.13259E-05   -.10887E-02
   7  Prefactor     16.085        32.188       -.42837E-05    .33401E-04
   8  Prefactor     .10000E-03    5.9677        .40064E-05** at limit **
   9  norm          .10000E-03    5.5067        .31153E-05** at limit **
  10  norm          .10000E-03    2.7118        .23489E-07** at limit **
  11  norm          .10000E-03    5.3445       -.43912E-05** at limit **
  12  Prefactor     11.764        23.958        .71015E-05   -.12382E-03
  13  Prefactor     .10000E-03    7.8593        .16010E-06** at limit **
  14  norm          .10000E-03    2.7339       -.15759E-06** at limit **
  15  Prefactor     .10000E-03    41.540       -.12501E-06** at limit **
  16  Prefactor     .10000E-03    2.3437       -.40428E-07** at limit **
  17  Prefactor     .10000E-03    6.1519       -.40338E-05** at limit **
  18  Prefactor     .10000E-03    4.7864        .81014E-07** at limit **
  19  Prefactor     .10000E-03    4.0377        .67446E-08** at limit **
  20  Normalizat    1.3859        .26849       -.51952E-06    .72102E-04
  21  Prefactor     .85323        .10185        .14342E-06    .78541E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100386
  norm       = 13.8601
  norm       = 1.32902
  norm       = 8.62877
  Prefactor  = 16.0851
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 11.7638
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.38589
  Prefactor  = 0.853227
 **********
 **   18 **HESSE 
 **********

 FCN=   6195.246     FROM HESSE     STATUS=OK           317 CALLS     2501 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.8959        .16832E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10039E-03    17.506        .88785E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          13.860        11.739        .10759E-03   -1.4963    
   5  norm          1.3290        2.0950        .13670E-03   -1.5477    
   6  norm          8.6288        11.241        .68224E-03   -1.5120    
   7  Prefactor     16.085        32.380        .99812E-04   -1.4906    
   8  Prefactor     .10000E-03    5.9109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    5.4937        .17989E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.7159        .12659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    5.2501        .17571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.764        23.707        .11671E-03   -1.5022    
  13  Prefactor     .10000E-03    7.8685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.7596        .12697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    41.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.3793        .11763E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.0944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.9143        .33629E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.0458        .15446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.3859        .31975        .34384E-03   -.81038    
  21  Prefactor     .85323        .12143        .16952E-03   -.97795    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.61893e-09
Minuit parameter uncertainties:
  1  1.71224e-05
  2  2.10105e-05
  3  0.005199
  4  11.7406
  5  2.09507
  6  11.2442
  7  32.4154
  8  6.57005e-05
  9  4.31791e-05
  10  2.47533e-07
  11  8.68909e-05
  12  23.7255
  13  1.74003e-05
  14  3.07302e-05
  15  0.000635785
  16  5.01718e-06
  17  7.76488e-05
  18  1.12443e-05
  19  5.41655e-07
  20  0.320216
  21  0.121467
Done.

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

Extracting fit parameters...

4FGL J1023.9-3236
   Spectrum: LogParabola
345         norm:  1.000e-04  8.689e-05  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:  8.532e-01  1.215e-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.386e+00  3.202e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/865675/likelihoodResults_511488001_511747201_4FGL_J1023.9-3236_daily_bin1050.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) = 6195.24731873
delta logL = -0.000907755952539

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6195.2464126
delta logL = -1.6270641936e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4224       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3858       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85314       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6195.246     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      237 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1258.5        .17579E-02** at limit **
   2  alpha         2.5785        3.2625        .16471       -.49697E-08
   3  Normalizat    1.3859        .27640        .34384E-03    .17028E-04
   4  Prefactor     .85323        .11074        .16952E-03    .25953E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.57851
  Normalizat = 1.38589
  Prefactor  = 0.853227
 **********
 **   18 **HESSE 
 **********

 FCN=   6195.246     FROM HESSE     STATUS=OK            23 CALLS      260 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.3083        .35157E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5785        2.8692        .65883E-02    .31409E-01
   3  Normalizat    1.3859        .29475        .13754E-04   -.81038    
   4  Prefactor     .85323        .11816        .67810E-05   -.97795    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87601e-12
Minuit parameter uncertainties:
  1  1.01211e-05
  2  361.851
  3  0.295111
  4  0.1182
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/865675': 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) = 6195.24641088
delta logL = 1.02166268334e-07

Extracting fit parameters...

4FGL J1023.9-3236
   Spectrum: LogParabola
345         norm:  1.000e-04  1.012e-05  1.000e-04  1.000e+04 ( 1.000e-12)
346        alpha:  2.579e+00  3.619e+02  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:  8.532e-01  1.182e-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.386e+00  2.951e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 155.996 -32.603

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/865675/cmap_HighResolution_511488001_511747201_4FGL_J1023.9-3236_daily_bin1050.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.14e-05', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2021-09-01 21:10:40.025381', job_id='865675', GAL2='0.85', fit_tolerance='1e-08', EG2='1.39', EG='1.39', time_epoch_completed='1630555840.03', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='1.02e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='1050' AND source_name='4FGL J1023.9-3236' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 21:10:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 865675: <4FGL_J1023.9-3236_daily_bin1050> in cluster <slac> Done

Job <4FGL_J1023.9-3236_daily_bin1050> 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) <bullet0095>, 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:10:40 2021
Results reported at Wed Sep  1 21:10:40 2021

Your job looked like:

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

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

