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


Performing analysis on: 4FGL_J1023.9-3236_daily_bin1494
RA = 155.996, Dec = -32.6034
tmin = 626572801, tmax = 626832001
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='867507', job_status='RUN', time_executed='2021-09-01 21:07:29.555870', time_epoch_executed='1630555649.56' WHERE source_name='4FGL J1023.9-3236' and cadence='daily' and bin_id='1494'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/867507

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/867507/ft1_4FGL_J1023.9-3236_daily_bin1494.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/867507/ft2_4FGL_J1023.9-3236_daily_bin1494.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/867507/ft1_4FGL_J1023.9-3236_daily_bin1494.fits outfile=/scratch/kocevski/867507/ft1_filteredMKT_4FGL_J1023.9-3236_daily_bin1494.fits ra=155.996 dec=-32.6034 rad=12.0 tmin=626572801.0 tmax=626832001.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.00
user 2.76
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/867507/ft1_filtered_4FGL_J1023.9-3236_daily_bin1494.fits" evtable="EVENTS" scfile=/scratch/kocevski/867507/ft2_4FGL_J1023.9-3236_daily_bin1494.fits sctable="SC_DATA" outfile=/scratch/kocevski/867507/ltcube_626572801_626832001_4FGL_J1023.9-3236_daily_bin1494.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/867507/ft2_4FGL_J1023.9-3236_daily_bin1494.fits
.....................!
real 17.25
user 16.89
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/867507/ft1_filtered_4FGL_J1023.9-3236_daily_bin1494.fits evtable="EVENTS" scfile=/scratch/kocevski/867507/ft2_4FGL_J1023.9-3236_daily_bin1494.fits sctable="SC_DATA" expcube=/scratch/kocevski/867507/ltcube_626572801_626832001_4FGL_J1023.9-3236_daily_bin1494.fits outfile=/scratch/kocevski/867507/expmap_626572801_626832001_4FGL_J1023.9-3236_daily_bin1494.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/867507/ltcube_626572801_626832001_4FGL_J1023.9-3236_daily_bin1494.fits
.....................!
real 191.14
user 186.69
sys 3.98

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/867507/ft1_filtered_4FGL_J1023.9-3236_daily_bin1494.fits scfile=/scratch/kocevski/867507/ft2_4FGL_J1023.9-3236_daily_bin1494.fits outfile=/scratch/kocevski/867507/cmap_626572801_626832001_4FGL_J1023.9-3236_daily_bin1494.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.57
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/867507/ft1_filtered_4FGL_J1023.9-3236_daily_bin1494.fits scfile=/scratch/kocevski/867507/ft2_4FGL_J1023.9-3236_daily_bin1494.fits outfile=/scratch/kocevski/867507/cmap_HighResolution_626572801_626832001_4FGL_J1023.9-3236_daily_bin1494.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.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/867507/ft1_filtered_4FGL_J1023.9-3236_daily_bin1494.fits evtable="EVENTS" scfile=/scratch/kocevski/867507/ft2_4FGL_J1023.9-3236_daily_bin1494.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/867507/Model_4FGL_J1023.9-3236_daily_bin1494.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/867507/ft1_filtered_4FGL_J1023.9-3236_daily_bin1494.fits.....................!
real 98.68
user 97.22
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    14.906       1.0000         .10000E-03   10000.    
     4 'norm      '    5.6811       1.0000         .10000E-03   10000.    
     5 'norm      '    4.2596       1.0000         .10000E-03   10000.    
     6 'norm      '    19.541       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.388       1.0000         .10000E-03   10000.    
     9 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    12.287       1.0000         .10000E-03   10000.    
    11 'norm      '    6.2347       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.123       1.0000         .10000E-03   10000.    
    14 'norm      '    2.1581       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.7469       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.0157       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .42459E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .98154       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0730       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=   9521.989     FROM MIGRAD    STATUS=CONVERGED    438 CALLS     1871 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.9189       -.19446E-05** at limit **
   2  norm          .10000E-03    1.8605        .26225E-06** at limit **
   3  norm          14.905        13.997       -.30355E-06    .27587E-05
   4  norm          5.6813        6.6438       -.10400E-07   -.98401E-05
   5  norm          4.2598        1.7010       -.23661E-07   -.11628E-03
   6  norm          19.543        11.031       -.27450E-06    .80184E-05
   7  Prefactor     .10000E-03    27.163        .25854E-05** at limit **
   8  Prefactor     23.392        15.400        .14289E-05   -.18792E-03
   9  norm          .10000E-03    3.9173        .20192E-06** at limit **
  10  norm          12.287        7.2237       -.77047E-08   -.21417E-05
  11  norm          6.2367        8.3296       -.54874E-06   -.11343E-03
  12  Prefactor     .10000E-03    5.5163        .89672E-06** at limit **
  13  Prefactor     22.126        15.204        .10877E-05   -.36080E-04
  14  norm          2.1577        2.6014        .17167E-06   -.31956E-03
  15  Prefactor     .10000E-03    4.7401       -.12007E-05** at limit **
  16  Prefactor     2.7460        3.6244       -.23617E-05   -.50917E-03
  17  Prefactor     .10000E-03    10.186        .14877E-05** at limit **
  18  Prefactor     2.0154        3.3649        .41942E-06   -.56695E-03
  19  Prefactor     .10009E-03    6.4206       -.99404E-06** at limit **
  20  Normalizat    .98135        .22868        .64483E-06    .61139E-04
  21  Prefactor     1.0731        .93873E-01   -.46850E-08    .22568E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 14.9049
  norm       = 5.68126
  norm       = 4.25977
  norm       = 19.5427
  Prefactor  = 0.0001
  Prefactor  = 23.392
  norm       = 0.0001
  norm       = 12.2866
  norm       = 6.2367
  Prefactor  = 0.0001
  Prefactor  = 22.1257
  norm       = 2.15769
  Prefactor  = 0.0001
  Prefactor  = 2.74605
  Prefactor  = 0.0001
  Prefactor  = 2.01537
  Prefactor  = 0.000100092
  Normalizat = 0.981351
  Prefactor  = 1.0731
 **********
 **   18 **HESSE 
 **********

 FCN=   9521.989     FROM HESSE     STATUS=OK           319 CALLS     2190 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.8502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.8685        .12991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          14.905        14.039        .10374E-03   -1.4936    
   4  norm          5.6813        6.6419        .16853E-03   -1.5231    
   5  norm          4.2598        1.7022        .77425E-04   -1.5295    
   6  norm          19.543        11.020        .90606E-04   -1.4824    
   7  Prefactor     .10000E-03    27.164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     23.392        15.259        .82827E-04   -1.4740    
   9  norm          .10000E-03    3.9251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          12.287        7.2268        .11428E-03   -1.5007    
  11  norm          6.2367        8.3481        .16077E-03   -1.5208    
  12  Prefactor     .10000E-03    5.5197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     22.126        15.257        .85159E-04   -1.4767    
  14  norm          2.1577        2.5760        .16179E-03   -1.5414    
  15  Prefactor     .10000E-03    4.7239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.7460        3.9467        .21608E-03   -1.5377    
  17  Prefactor     .10000E-03    10.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.0154        3.3155        .22332E-03   -1.5424    
  19  Prefactor     .10009E-03    40.446        .46562E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .98135        .25872        .41006E-03   -.93658    
  21  Prefactor     1.0731        .10787        .16712E-03   -.90331    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.6835e-09
Minuit parameter uncertainties:
  1  6.95114e-05
  2  5.3436e-06
  3  14.0418
  4  6.64275
  5  1.70224
  6  11.0216
  7  0.000217303
  8  15.2617
  9  6.19152e-06
  10  7.22736
  11  8.34966
  12  2.48089e-05
  13  15.2599
  14  2.57615
  15  3.22681e-05
  16  3.94711
  17  3.29261e-05
  18  3.31581
  19  0.00386567
  20  0.259046
  21  0.107894
Done.

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

Extracting fit parameters...

4FGL J1023.9-3236
   Spectrum: LogParabola
345         norm:  6.237e+00  8.350e+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.073e+00  1.079e-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.814e-01  2.590e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/867507/likelihoodResults_626572801_626832001_4FGL_J1023.9-3236_daily_bin1494.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) = 9521.91890461
delta logL = 0.0704697235797

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9521.89756773
delta logL = 0.0918066000759

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5196       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0236       1.0000          .0000       5.0000    
     3 'Normalizat'    .95689       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0801       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=   9521.898     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      250 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5172        14.518        .18937E-03   -.46970E-03
   2  alpha         3.0244        3.7269        .26953E-01   -.20314E-04
   3  Normalizat    .95691        .26339        .41469E-03    .20758E-03
   4  Prefactor     1.0800        .10993        .16664E-03    .80366E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.51721
  alpha      = 3.02444
  Normalizat = 0.95691
  Prefactor  = 1.08004
 **********
 **   18 **HESSE 
 **********

 FCN=   9521.898     FROM HESSE     STATUS=OK            25 CALLS      275 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5172        9.0122        .75749E-05   -1.5283    
   2  alpha         3.0244        1.5303        .10781E-02    .21134    
   3  Normalizat    .95691        .25817        .16588E-04   -.94488    
   4  Prefactor     1.0800        .10780        .66656E-05   -.90107    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.23566e-10
Minuit parameter uncertainties:
  1  9.01492
  2  1.6536
  3  0.25851
  4  0.107818
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/867507': 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) = 9521.89756754
delta logL = 0.0918067880139

Extracting fit parameters...

4FGL J1023.9-3236
   Spectrum: LogParabola
345         norm:  4.517e+00  9.015e+00  1.000e-04  1.000e+04 ( 1.000e-12)
346        alpha:  3.024e+00  1.654e+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.080e+00  1.078e-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.569e-01  2.585e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/867507/cmap_HighResolution_626572801_626832001_4FGL_J1023.9-3236_daily_bin1494.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.89e-05', job_status='DONE', photon_flux_upper_limit='1.26e-07', time_completed='2021-09-01 21:21:21.367687', job_id='867507', GAL2='1.08', fit_tolerance='1e-08', EG2='0.96', EG='0.98', time_epoch_completed='1630556481.37', return_code2='0', ts='0.70', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='9.18e-02', ts2='0.91', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='1494' AND source_name='4FGL J1023.9-3236' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 21:21:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 867507: <4FGL_J1023.9-3236_daily_bin1494> in cluster <slac> Done

Job <4FGL_J1023.9-3236_daily_bin1494> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 21:05:46 2021
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 21:05:48 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:48 2021
Terminated at Wed Sep  1 21:21:22 2021
Results reported at Wed Sep  1 21:21:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.9-3236_daily_bin1494 155.996 -32.6034 626572801 626832001 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 :                                   802.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             293.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            936 sec.

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

