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


Performing analysis on: 4FGL_J1023.9-3236_daily_bin1346
RA = 155.996, Dec = -32.6034
tmin = 588211201, tmax = 588470401
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='867288', job_status='RUN', time_executed='2021-09-01 21:07:11.355818', time_epoch_executed='1630555631.36' WHERE source_name='4FGL J1023.9-3236' and cadence='daily' and bin_id='1346'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/867288

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/867288/ft1_4FGL_J1023.9-3236_daily_bin1346.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/867288/ft2_4FGL_J1023.9-3236_daily_bin1346.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/867288/ft1_4FGL_J1023.9-3236_daily_bin1346.fits outfile=/scratch/kocevski/867288/ft1_filteredMKT_4FGL_J1023.9-3236_daily_bin1346.fits ra=155.996 dec=-32.6034 rad=12.0 tmin=588211201.0 tmax=588470401.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.84
user 3.56
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/867288/ft1_filtered_4FGL_J1023.9-3236_daily_bin1346.fits" evtable="EVENTS" scfile=/scratch/kocevski/867288/ft2_4FGL_J1023.9-3236_daily_bin1346.fits sctable="SC_DATA" outfile=/scratch/kocevski/867288/ltcube_588211201_588470401_4FGL_J1023.9-3236_daily_bin1346.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/867288/ft2_4FGL_J1023.9-3236_daily_bin1346.fits
.....................!
real 17.16
user 16.78
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/867288/ft1_filtered_4FGL_J1023.9-3236_daily_bin1346.fits evtable="EVENTS" scfile=/scratch/kocevski/867288/ft2_4FGL_J1023.9-3236_daily_bin1346.fits sctable="SC_DATA" expcube=/scratch/kocevski/867288/ltcube_588211201_588470401_4FGL_J1023.9-3236_daily_bin1346.fits outfile=/scratch/kocevski/867288/expmap_588211201_588470401_4FGL_J1023.9-3236_daily_bin1346.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/867288/ltcube_588211201_588470401_4FGL_J1023.9-3236_daily_bin1346.fits
.....................!
real 194.97
user 189.87
sys 4.69

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/867288/ft1_filtered_4FGL_J1023.9-3236_daily_bin1346.fits scfile=/scratch/kocevski/867288/ft2_4FGL_J1023.9-3236_daily_bin1346.fits outfile=/scratch/kocevski/867288/cmap_588211201_588470401_4FGL_J1023.9-3236_daily_bin1346.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/867288/ft1_filtered_4FGL_J1023.9-3236_daily_bin1346.fits scfile=/scratch/kocevski/867288/ft2_4FGL_J1023.9-3236_daily_bin1346.fits outfile=/scratch/kocevski/867288/cmap_HighResolution_588211201_588470401_4FGL_J1023.9-3236_daily_bin1346.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.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/867288/ft1_filtered_4FGL_J1023.9-3236_daily_bin1346.fits evtable="EVENTS" scfile=/scratch/kocevski/867288/ft2_4FGL_J1023.9-3236_daily_bin1346.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/867288/Model_4FGL_J1023.9-3236_daily_bin1346.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/867288/ft1_filtered_4FGL_J1023.9-3236_daily_bin1346.fits.....................!
real 94.98
user 92.95
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    9.0666       1.0000         .10000E-03   10000.    
     3 'norm      '    .10063E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    15.013       1.0000         .10000E-03   10000.    
     5 'norm      '    7.2526       1.0000         .10000E-03   10000.    
     6 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.774       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .64371       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.7336       1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.276       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.3182       1.0000         .10000E-03   10000.    
    14 'norm      '    5.3374       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11476E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.2085       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.9576       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .88944       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0797       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=   8864.434     FROM MIGRAD    STATUS=CONVERGED    435 CALLS     2194 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.972       -.52571E-06** at limit **
   2  norm          9.0665        6.6216        .17324E-06   -.19700E-03
   3  norm          .10001E-03    16.871        .15740E-05** at limit **
   4  norm          15.013        11.087        .42785E-07   -.51605E-05
   5  norm          7.2529        2.2052        .51943E-07   -.42069E-05
   6  norm          .10000E-03    8.4384        .53281E-06** at limit **
   7  Prefactor     11.781        25.134        .18731E-05    .18487E-03
   8  Prefactor     .10000E-03    4.7473        .33854E-06** at limit **
   9  norm          .57972        34.572       -.15594E-04   -.10485E-03
  10  norm          .10000E-03    4.7013       -.19614E-06** at limit **
  11  norm          1.7428        3.7189        .30439E-05   -.15108E-02
  12  Prefactor     15.283        15.792        .78900E-06    .27330E-03
  13  Prefactor     8.3236        12.642        .12390E-06   -.71595E-04
  14  norm          5.3382        3.9334       -.24402E-06   -.11412E-02
  15  Prefactor     .10000E-03    8.7277        .35668E-06** at limit **
  16  Prefactor     .10000E-03    5.0106       -.50392E-06** at limit **
  17  Prefactor     7.2120        12.036        .36846E-06   -.11638E-03
  18  Prefactor     .10000E-03    1.9406        .27213E-07** at limit **
  19  Prefactor     4.9573        5.3219        .28389E-07   -.11501E-06
  20  Normalizat    .88904        .24341       -.43415E-05   -.47573E-03
  21  Prefactor     1.0798        .95064E-01    .11958E-05   -.47031E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 9.06648
  norm       = 0.000100006
  norm       = 15.0128
  norm       = 7.25291
  norm       = 0.000100001
  Prefactor  = 11.7806
  Prefactor  = 0.0001
  norm       = 0.579715
  norm       = 0.0001
  norm       = 1.74283
  Prefactor  = 15.2831
  Prefactor  = 8.32357
  norm       = 5.33823
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.21201
  Prefactor  = 0.0001
  Prefactor  = 4.95728
  Normalizat = 0.889042
  Prefactor  = 1.07985
 **********
 **   18 **HESSE 
 **********

 FCN=   8864.434     FROM HESSE     STATUS=OK           321 CALLS     2515 TOTAL
                     EDM=   .90E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.0665        6.6531        .66553E-03   -1.5106    
   3  norm          .10001E-03    17.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          15.013        11.087        .10337E-03   -1.4933    
   5  norm          7.2529        2.2103        .74321E-04   -1.5169    
   6  norm          .10000E-03    8.6037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.781        25.470        .11675E-03   -1.5021    
   8  Prefactor     .10000E-03    4.7645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .57972        37.805        .44760E-02   -1.5556    
  10  norm          .10000E-03    4.7768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.7428        11.404        .15939E-02   -1.5444    
  12  Prefactor     15.283        15.964        .10248E-03   -1.4926    
  13  Prefactor     8.3236        12.616        .13900E-03   -1.5131    
  14  norm          5.3382        3.9522        .14813E-03   -1.5246    
  15  Prefactor     .10000E-03    8.7779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.1654        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.2120        12.082        .14940E-03   -1.5171    
  18  Prefactor     .10000E-03    1.9467        .12808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.9573        5.3222        .18063E-03   -1.5263    
  20  Normalizat    .88904        .28423        .42250E-03   -.96846    
  21  Prefactor     1.0798        .10879        .16230E-03   -.90113    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.0336e-08
Minuit parameter uncertainties:
  1  0.000198505
  2  6.65366
  3  0.000663924
  4  11.0883
  5  2.21034
  6  0.000169309
  7  25.4933
  8  7.1465e-05
  9  9.36835
  10  4.02654e-05
  11  8.91846
  12  15.9687
  13  12.6196
  14  3.95237
  15  7.08251e-05
  16  8.06886e-05
  17  12.0857
  18  4.20123e-06
  19  5.32273
  20  0.284706
  21  0.108813
Done.

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

Extracting fit parameters...

4FGL J1023.9-3236
   Spectrum: LogParabola
345         norm:  1.743e+00  8.918e+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.080e+00  1.088e-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:  8.890e-01  2.847e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/867288/likelihoodResults_588211201_588470401_4FGL_J1023.9-3236_daily_bin1346.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) = 8863.03511141
delta logL = 1.39902751295

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8863.03361193
delta logL = 1.40052698909

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8423       1.0000         .10000E-03   10000.    
     2 'alpha     '    .67527       1.0000          .0000       5.0000    
     3 'Normalizat'    .89803       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0750       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=   8863.034     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      212 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8424        1.7621        .76823E-02   -.21049E-02
   2  alpha         .67519        .37435        .41940       -.78399E-04
   3  Normalizat    .89803        .22168        .94847E-01    .37399E-03
   4  Prefactor     1.0750        .93484E-01    .38626E-01    .10481E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 1.84235
  alpha      = 0.67519
  Normalizat = 0.89803
  Prefactor  = 1.07498
 **********
 **   18 **HESSE 
 **********

 FCN=   8863.034     FROM HESSE     STATUS=OK            29 CALLS      241 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8424        2.6858        .11492E-03   -1.5436    
   2  alpha         .67519        .53800        .19551E-01   -.81821    
   3  Normalizat    .89803        .24990        .42017E-03   -.96529    
   4  Prefactor     1.0750        .10571        .16248E-03   -.90270    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.6e-09
Minuit parameter uncertainties:
  1  2.68596
  2  0.547305
  3  0.250221
  4  0.105731
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/867288': 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) = 8863.0336119
delta logL = 1.40052701983

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
620    Prefactor:  1.075e+00  1.057e-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:  8.980e-01  2.502e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.85
Ra Dec: 155.996 -32.603
Photon Index (Free Index): 0.68 +/- 0.55
Photon Flux (Free Index): 7.12e-09 +/- 6.88e-09
Energy Flux (Free Index): 6.98e-05 +/- 8.81e-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/867288/cmap_HighResolution_588211201_588470401_4FGL_J1023.9-3236_daily_bin1346.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.33e-05', comment='SUCCESS', energy_flux2='6.98e-05', dlogl='1.40e+00', photon_flux2='7.12e-09', job_status='DONE', time_completed='2021-09-01 21:21:10.958165', photon_index_error2='0.55', photon_index2='0.68', ts='0.05', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='1.08e-07', energy_flux_error2='8.81e-05', EG='0.89', time_epoch_completed='1630556470.96', return_code='0', job_id='867288', GAL2='1.07', EG2='0.90', return_code2='0', photon_flux_error2='6.88e-09', ts2='2.85', photon_index='2.42' WHERE bin_id='1346' AND source_name='4FGL J1023.9-3236' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 21:21:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0131>
Subject: Job 867288: <4FGL_J1023.9-3236_daily_bin1346> in cluster <slac> Done

Job <4FGL_J1023.9-3236_daily_bin1346> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 21:05:26 2021
Job was executed on host(s) <bullet0131>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 21:05:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 21:05:28 2021
Terminated at Wed Sep  1 21:21:11 2021
Results reported at Wed Sep  1 21:21:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.9-3236_daily_bin1346 155.996 -32.6034 588211201 588470401 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 :                                   813.30 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             332.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   943 sec.
    Turnaround time :                            945 sec.

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

