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


Performing analysis on: 4FGL_J1023.9-3236_daily_bin1315
RA = 155.996, Dec = -32.6034
tmin = 580176001, tmax = 580435201
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='866090', job_status='RUN', time_executed='2021-09-01 21:03:07.855172', time_epoch_executed='1630555387.86' WHERE source_name='4FGL J1023.9-3236' and cadence='daily' and bin_id='1315'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/866090

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/866090/ft1_4FGL_J1023.9-3236_daily_bin1315.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/866090/ft2_4FGL_J1023.9-3236_daily_bin1315.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/866090/ft1_4FGL_J1023.9-3236_daily_bin1315.fits outfile=/scratch/kocevski/866090/ft1_filteredMKT_4FGL_J1023.9-3236_daily_bin1315.fits ra=155.996 dec=-32.6034 rad=12.0 tmin=580176001.0 tmax=580435201.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 4.67
user 4.41
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/866090/ft1_filtered_4FGL_J1023.9-3236_daily_bin1315.fits" evtable="EVENTS" scfile=/scratch/kocevski/866090/ft2_4FGL_J1023.9-3236_daily_bin1315.fits sctable="SC_DATA" outfile=/scratch/kocevski/866090/ltcube_580176001_580435201_4FGL_J1023.9-3236_daily_bin1315.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/866090/ft2_4FGL_J1023.9-3236_daily_bin1315.fits
.....................!
real 14.48
user 14.12
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/866090/ft1_filtered_4FGL_J1023.9-3236_daily_bin1315.fits evtable="EVENTS" scfile=/scratch/kocevski/866090/ft2_4FGL_J1023.9-3236_daily_bin1315.fits sctable="SC_DATA" expcube=/scratch/kocevski/866090/ltcube_580176001_580435201_4FGL_J1023.9-3236_daily_bin1315.fits outfile=/scratch/kocevski/866090/expmap_580176001_580435201_4FGL_J1023.9-3236_daily_bin1315.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/866090/ltcube_580176001_580435201_4FGL_J1023.9-3236_daily_bin1315.fits
.....................!
real 191.32
user 186.14
sys 4.59

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/866090/ft1_filtered_4FGL_J1023.9-3236_daily_bin1315.fits scfile=/scratch/kocevski/866090/ft2_4FGL_J1023.9-3236_daily_bin1315.fits outfile=/scratch/kocevski/866090/cmap_580176001_580435201_4FGL_J1023.9-3236_daily_bin1315.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.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/866090/ft1_filtered_4FGL_J1023.9-3236_daily_bin1315.fits evtable="EVENTS" scfile=/scratch/kocevski/866090/ft2_4FGL_J1023.9-3236_daily_bin1315.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/866090/Model_4FGL_J1023.9-3236_daily_bin1315.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/866090/ft1_filtered_4FGL_J1023.9-3236_daily_bin1315.fits.....................!
real 69.42
user 68.05
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    4.1009       1.0000         .10000E-03   10000.    
     3 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    20.477       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    8.8479       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.1782       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.9466       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.6137       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2926       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0480       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=   5815.111     FROM MIGRAD    STATUS=CONVERGED    443 CALLS     1832 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.258       -.19039E-05** at limit **
   2  norm          4.1008        6.2432        .25628E-05   -.75578E-03
   3  norm          .10000E-03    45.433       -.16423E-05** at limit **
   4  norm          20.476        14.456       -.14243E-06   -.10708E-04
   5  norm          .10000E-03    .65619        .78030E-08** at limit **
   6  norm          .10000E-03    3.5852        .60365E-07** at limit **
   7  Prefactor     .10000E-03    31.369        .34354E-05** at limit **
   8  Prefactor     .10000E-03    9.1872       -.80481E-06** at limit **
   9  norm          8.8476        8.8626       -.31971E-06    .10391E-03
  10  norm          .10000E-03    2.5499       -.59176E-08** at limit **
  11  norm          .10000E-03    4.3364        .65496E-06** at limit **
  12  Prefactor     2.1429        38.603       -.44650E-05   -.12537E-03
  13  Prefactor     .10000E-03    6.8717        .10617E-05** at limit **
  14  norm          2.9456        4.2669        .14778E-07   -.14776E-03
  15  Prefactor     .10000E-03    8.3388       -.16587E-05** at limit **
  16  Prefactor     1.6137        4.5221        .55618E-06   -.23356E-03
  17  Prefactor     .10000E-03    10.180        .21258E-05** at limit **
  18  Prefactor     .10000E-03    4.9453       -.58450E-06** at limit **
  19  Prefactor     .10000E-03    4.0008       -.37555E-06** at limit **
  20  Normalizat    1.2927        .29659        .11628E-06   -.11919E-04
  21  Prefactor     1.0480        .11686       -.12994E-06    .43175E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 4.10083
  norm       = 0.000100001
  norm       = 20.4763
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 8.8476
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.1429
  Prefactor  = 0.0001
  norm       = 2.94561
  Prefactor  = 0.000100001
  Prefactor  = 1.61369
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.29269
  Prefactor  = 1.04796
 **********
 **   18 **HESSE 
 **********

 FCN=   5815.111     FROM HESSE     STATUS=OK           309 CALLS     2141 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.1008        6.7464        .99537E-03   -1.5303    
   3  norm          .10000E-03    46.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          20.476        14.459        .88513E-04   -1.4803    
   5  norm          .10000E-03    .65919        .60316E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.5874        .14102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    32.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.2497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          8.8476        8.8836        .67375E-03   -1.5113    
  10  norm          .10000E-03    2.5507        .11893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.3723        .15555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.1429        40.760        .27896E-03   -1.5415    
  13  Prefactor     .10000E-03    6.9581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.9456        4.2321        .17909E-03   -1.5365    
  15  Prefactor     .10000E-03    8.4715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.6137        4.5120        .25851E-03   -1.5454    
  17  Prefactor     .10000E-03    10.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.0069        .16588E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.0181        .14916E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2927        .34376        .38900E-03   -.83785    
  21  Prefactor     1.0480        .13591        .17145E-03   -.91147    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48006e-09
Minuit parameter uncertainties:
  1  0.000296852
  2  6.74761
  3  0.000388765
  4  14.4615
  5  3.77014e-07
  6  3.23067e-06
  7  0.000674736
  8  8.6368e-05
  9  8.88497
  10  6.31158e-07
  11  4.66219e-05
  12  18.7059
  13  0.000102094
  14  4.23255
  15  0.000148597
  16  4.51292
  17  0.000229856
  18  4.14822e-05
  19  2.74527e-05
  20  0.344368
  21  0.13595
Done.

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

Extracting fit parameters...

4FGL J1023.9-3236
   Spectrum: LogParabola
345         norm:  1.000e-04  4.662e-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:  1.048e+00  1.359e-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.293e+00  3.444e-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.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.19e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/866090/likelihoodResults_580176001_580435201_4FGL_J1023.9-3236_daily_bin1315.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) = 5815.11175547
delta logL = -0.00108708800508

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5815.11066839
delta logL = -5.75255398871e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4193       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2927       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0480       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=   5815.057     FROM MIGRAD    STATUS=CONVERGED    131 CALLS      275 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .15309        .41087        .15555E-01   -.44665E-02
   2  alpha         5.0000        4.1731        .16472    ** at limit **
   3  Normalizat    1.2566        .33553        .38900E-03    .10027E-03
   4  Prefactor     1.0568        .13585        .17145E-03    .15705E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.153092
  alpha      = 5
  Normalizat = 1.25661
  Prefactor  = 1.05683
 **********
 **   18 **HESSE 
 **********

 FCN=   5815.057     FROM HESSE     STATUS=OK            27 CALLS      302 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .15309        .48533        .78230E-03   -1.5786    
   2  alpha         5.0000        4.1699        .32943E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.2566        .35042        .15560E-04   -.84871    
   4  Prefactor     1.0568        .13814        .34289E-04   -.90858    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0859e-09
Minuit parameter uncertainties:
  1  0.485343
  2  0.000126902
  3  0.351078
  4  0.138191
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/866090': 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) = 5815.05676538
delta logL = 0.0539029975489

Extracting fit parameters...

4FGL J1023.9-3236
   Spectrum: LogParabola
345         norm:  1.531e-01  4.853e-01  1.000e-04  1.000e+04 ( 1.000e-12)
346        alpha:  5.000e+00  1.269e-04  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.057e+00  1.382e-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.257e+00  3.511e-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/866090/cmap_HighResolution_580176001_580435201_4FGL_J1023.9-3236_daily_bin1315.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.19e-05', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-09-01 21:13:28.960652', job_id='866090', GAL2='1.06', fit_tolerance='1e-08', EG2='1.26', EG='1.29', time_epoch_completed='1630556008.96', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='5.39e-02', ts2='0.12', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='1315' AND source_name='4FGL J1023.9-3236' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 21:13:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0293>
Subject: Job 866090: <4FGL_J1023.9-3236_daily_bin1315> in cluster <slac> Done

Job <4FGL_J1023.9-3236_daily_bin1315> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 21:00:55 2021
Job was executed on host(s) <bullet0293>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 21:02:30 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:02:30 2021
Terminated at Wed Sep  1 21:13:29 2021
Results reported at Wed Sep  1 21:13:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.9-3236_daily_bin1315 155.996 -32.6034 580176001 580435201 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 :                                   616.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             361.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   659 sec.
    Turnaround time :                            754 sec.

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

