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


Performing analysis on: 4FGL_J1023.9-3236_daily_bin1030
RA = 155.996, Dec = -32.6034
tmin = 506304001, tmax = 506563201
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='865646', job_status='RUN', time_executed='2021-09-01 21:02:02.624556', time_epoch_executed='1630555322.62' WHERE source_name='4FGL J1023.9-3236' and cadence='daily' and bin_id='1030'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/865646

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/865646/ft1_4FGL_J1023.9-3236_daily_bin1030.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/865646/ft2_4FGL_J1023.9-3236_daily_bin1030.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/865646/ft1_4FGL_J1023.9-3236_daily_bin1030.fits outfile=/scratch/kocevski/865646/ft1_filteredMKT_4FGL_J1023.9-3236_daily_bin1030.fits ra=155.996 dec=-32.6034 rad=12.0 tmin=506304001.0 tmax=506563201.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.50
user 3.28
sys 0.20

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/865646/ft1_filtered_4FGL_J1023.9-3236_daily_bin1030.fits" evtable="EVENTS" scfile=/scratch/kocevski/865646/ft2_4FGL_J1023.9-3236_daily_bin1030.fits sctable="SC_DATA" outfile=/scratch/kocevski/865646/ltcube_506304001_506563201_4FGL_J1023.9-3236_daily_bin1030.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/865646/ft2_4FGL_J1023.9-3236_daily_bin1030.fits
.....................!
real 17.59
user 17.09
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/865646/ft1_filtered_4FGL_J1023.9-3236_daily_bin1030.fits evtable="EVENTS" scfile=/scratch/kocevski/865646/ft2_4FGL_J1023.9-3236_daily_bin1030.fits sctable="SC_DATA" expcube=/scratch/kocevski/865646/ltcube_506304001_506563201_4FGL_J1023.9-3236_daily_bin1030.fits outfile=/scratch/kocevski/865646/expmap_506304001_506563201_4FGL_J1023.9-3236_daily_bin1030.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/865646/ltcube_506304001_506563201_4FGL_J1023.9-3236_daily_bin1030.fits
.....................!
real 192.60
user 187.91
sys 4.19

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/865646/ft1_filtered_4FGL_J1023.9-3236_daily_bin1030.fits scfile=/scratch/kocevski/865646/ft2_4FGL_J1023.9-3236_daily_bin1030.fits outfile=/scratch/kocevski/865646/cmap_506304001_506563201_4FGL_J1023.9-3236_daily_bin1030.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/865646/ft1_filtered_4FGL_J1023.9-3236_daily_bin1030.fits scfile=/scratch/kocevski/865646/ft2_4FGL_J1023.9-3236_daily_bin1030.fits outfile=/scratch/kocevski/865646/cmap_HighResolution_506304001_506563201_4FGL_J1023.9-3236_daily_bin1030.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=155.996 yref=-32.6034 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/865646/ft1_filtered_4FGL_J1023.9-3236_daily_bin1030.fits evtable="EVENTS" scfile=/scratch/kocevski/865646/ft2_4FGL_J1023.9-3236_daily_bin1030.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/865646/Model_4FGL_J1023.9-3236_daily_bin1030.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/865646/ft1_filtered_4FGL_J1023.9-3236_daily_bin1030.fits.....................!
real 93.57
user 92.12
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.4071       1.0000         .10000E-03   10000.    
     6 'norm      '    13.252       1.0000         .10000E-03   10000.    
     7 'Prefactor '    72.375       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.548       1.0000         .10000E-03   10000.    
     9 'norm      '    21.337       1.0000         .10000E-03   10000.    
    10 'norm      '    1.8742       1.0000         .10000E-03   10000.    
    11 'norm      '    13.714       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.4888       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .70998E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.320       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12593E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.142       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0314       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1285       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6230E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8255.021     FROM MIGRAD    STATUS=CONVERGED     89 CALLS     1557 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.387       -.44662E-05** at limit **
   2  norm          .10000E-03    2.8697       -.10794E-06** at limit **
   3  norm          .10038E-03    10.532       -.22816E-04** at limit **
   4  norm          .10000E-03    3.1659       -.11750E-06** at limit **
   5  norm          3.4061        1.9990        .45388E-06   -.36496E-03
   6  norm          13.252        1.2476        .15181E-05   -.63915E-03
   7  Prefactor     72.336        6.2975       -.34342E-05    .88888E-02
   8  Prefactor     11.545        1.9289        .35446E-05   -.11571E-02
   9  norm          21.335        1.6733        .20598E-05    .11414E-03
  10  norm          1.8765        6.3100       -.11531E-04   -.23878E-03
  11  norm          13.712        1.0963       -.81390E-06    .60506E-05
  12  Prefactor     .10000E-03    5.4739        .36360E-06** at limit **
  13  Prefactor     .10010E-03    15.128       -.99518E-06** at limit **
  14  norm          5.4736        4.6626       -.19148E-05   -.51191E-03
  15  Prefactor     .10003E-03    16.959        .20143E-04** at limit **
  16  Prefactor     .88662E-02    7.0786        .33749E-04   -.16101E-02
  17  Prefactor     12.278        12.628        .24662E-04    .11338E-02
  18  Prefactor     .10235E-03    180.69       -.28194E-04** at limit **
  19  Prefactor     18.142        1.0186        .22087E-06   -.20733E-04
  20  Normalizat    1.0320        .30000       -.17505E-04   -.42293E-03
  21  Prefactor     1.1282        .11989        .28649E-05   -.88381E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100376
  norm       = 0.0001
  norm       = 3.40609
  norm       = 13.2517
  Prefactor  = 72.3355
  Prefactor  = 11.5453
  norm       = 21.3347
  norm       = 1.87652
  norm       = 13.7119
  Prefactor  = 0.0001
  Prefactor  = 0.000100096
  norm       = 5.47356
  Prefactor  = 0.000100028
  Prefactor  = 0.0088662
  Prefactor  = 12.2782
  Prefactor  = 0.000102352
  Prefactor  = 18.142
  Normalizat = 1.03204
  Prefactor  = 1.12821
 **********
 **   18 **HESSE 
 **********

 FCN=   8255.021     FROM HESSE     STATUS=OK           369 CALLS     1926 TOTAL
                     EDM=   .74E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.406        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.8539        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10038E-03    20.803        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.1652        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.4061        1.9982        .54793E-02   -1.5339    
   6  norm          13.252        13.324        .27508E-02   -1.4980    
   7  Prefactor     72.336        38.785        .11798E-02   -1.4005    
   8  Prefactor     11.545        19.011        .29472E-02   -1.5028    
   9  norm          21.335        13.433        .21678E-02   -1.4784    
  10  norm          1.8765        6.3216        .76046E-02   -1.5434    
  11  norm          13.712        10.038        .27040E-02   -1.4967    
  12  Prefactor     .10000E-03    5.4673        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10010E-03    22.690        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.4736        4.9971        .42875E-02   -1.5240    
  15  Prefactor     .10003E-03    17.464        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .88662E-02    6.1109        .62085E-01   -1.5689    
  17  Prefactor     12.278        14.741        .28532E-02   -1.5007    
  18  Prefactor     .10235E-03    3.2422        .90859E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     18.142        12.222        .23508E-02   -1.4856    
  20  Normalizat    1.0320        .27779        .99020E-01   -.91964    
  21  Prefactor     1.1282        .10661        .36593E-01   -.88570    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.4368e-07
Minuit parameter uncertainties:
  1  7.56492e-05
  2  2.61436e-05
  3  0.00559306
  4  3.32099e-05
  5  1.99828
  6  13.3269
  7  38.7981
  8  19.0213
  9  13.4345
  10  6.32387
  11  10.0389
  12  8.3004e-05
  13  0.00295656
  14  4.99748
  15  0.00140221
  16  0.462948
  17  14.7455
  18  0.00552308
  19  12.2236
  20  0.278181
  21  0.106631
Done.

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

Extracting fit parameters...

4FGL J1023.9-3236
   Spectrum: LogParabola
345         norm:  1.371e+01  1.004e+01  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.128e+00  1.066e-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.032e+00  2.782e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.37
Ra Dec: 155.996 -32.603
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 7.06e-08 +/- 5.17e-08
Energy Flux (Fixed Index): 2.18e-05 +/- 1.59e-05

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

Saving results to:
/scratch/kocevski/865646/likelihoodResults_506304001_506563201_4FGL_J1023.9-3236_daily_bin1030.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) = 8254.84187461
delta logL = 0.179238726381

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8254.83295587
delta logL = 0.188157457305

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.881       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0216       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0534       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1228       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=   8254.833     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      213 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 93.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.882        9.1939        .14376E-05   -.12921E-02
   2  alpha         2.0223        .48178       -.97604E-05   -.17661E-03
   3  Normalizat    1.0534        .25729        .35553E-06    .74393E-04
   4  Prefactor     1.1228        .10537       -.14349E-06    .15129E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 14.8815
  alpha      = 2.02227
  Normalizat = 1.05339
  Prefactor  = 1.12276
 **********
 **   18 **HESSE 
 **********

 FCN=   8254.833     FROM HESSE     STATUS=OK            29 CALLS      242 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.882        10.595        .10383E-03   -1.4936    
   2  alpha         2.0223        .61279        .18489E-01   -.19227    
   3  Normalizat    1.0534        .28777        .43488E-03   -.91263    
   4  Prefactor     1.1228        .11823        .17311E-03   -.88742    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.64292e-09
Minuit parameter uncertainties:
  1  10.5959
  2  0.619347
  3  0.288195
  4  0.118253
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/865646': 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) = 8254.83295525
delta logL = 0.188158077108

Extracting fit parameters...

4FGL J1023.9-3236
   Spectrum: LogParabola
345         norm:  1.488e+01  1.060e+01  1.000e-04  1.000e+04 ( 1.000e-12)
346        alpha:  2.022e+00  6.193e-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.123e+00  1.183e-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.053e+00  2.882e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.75
Ra Dec: 155.996 -32.603
Photon Index (Free Index): 2.02 +/- 0.62
Photon Flux (Free Index): 5.19e-08 +/- 4.77e-08
Energy Flux (Free Index): 2.55e-05 +/- 1.98e-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/865646/cmap_HighResolution_506304001_506563201_4FGL_J1023.9-3236_daily_bin1030.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.58e-05', comment='SUCCESS', photon_flux='7.06e-08', energy_flux2='2.55e-05', photon_flux_error='5.17e-08', dlogl='1.88e-01', energy_flux='2.18e-05', photon_flux2='5.19e-08', job_status='DONE', time_completed='2021-09-01 21:14:11.872789', photon_index_error2='0.62', photon_index2='2.02', ts='3.37', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='1.81e-07', energy_flux_error2='1.98e-05', EG='1.03', time_epoch_completed='1630556051.87', return_code='0', job_id='865646', GAL2='1.12', EG2='1.05', return_code2='0', energy_flux_error='1.59e-05', photon_flux_error2='4.77e-08', ts2='3.75', photon_index='2.42' WHERE bin_id='1030' AND source_name='4FGL J1023.9-3236' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 21:14:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0193>
Subject: Job 865646: <4FGL_J1023.9-3236_daily_bin1030> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.9-3236_daily_bin1030 155.996 -32.6034 506304001 506563201 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 :                                   727.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             297.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   809 sec.
    Turnaround time :                            833 sec.

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

