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


Performing analysis on: 4FGL_J2323.6-0617_daily_bin535
RA = 350.916, Dec = -6.2953
tmin = 378000001, tmax = 378259201
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='816269', job_status='RUN', time_executed='2021-09-29 14:52:54.527254', time_epoch_executed='1632952374.53' WHERE source_name='4FGL J2323.6-0617' and cadence='daily' and bin_id='535'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/816269

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/816269/ft1_4FGL_J2323.6-0617_daily_bin535.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/816269/ft2_4FGL_J2323.6-0617_daily_bin535.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/816269/ft1_4FGL_J2323.6-0617_daily_bin535.fits outfile=/scratch/kocevski/816269/ft1_filteredMKT_4FGL_J2323.6-0617_daily_bin535.fits ra=350.916 dec=-6.2953 rad=12.0 tmin=378000001.0 tmax=378259201.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.52
user 3.22
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/816269/ft2_4FGL_J2323.6-0617_daily_bin535.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/816269/ft2_4FGL_J2323.6-0617_daily_bin535.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/816269/ft1_filteredMKT_4FGL_J2323.6-0617_daily_bin535.fits evtable="EVENTS" outfile="/scratch/kocevski/816269/ft1_filtered_4FGL_J2323.6-0617_daily_bin535.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.49
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/816269/ft1_filtered_4FGL_J2323.6-0617_daily_bin535.fits" evtable="EVENTS" scfile=/scratch/kocevski/816269/ft2_4FGL_J2323.6-0617_daily_bin535.fits sctable="SC_DATA" outfile=/scratch/kocevski/816269/ltcube_378000001_378259201_4FGL_J2323.6-0617_daily_bin535.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/816269/ft2_4FGL_J2323.6-0617_daily_bin535.fits
.....................!
real 11.85
user 11.48
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/816269/ft1_filtered_4FGL_J2323.6-0617_daily_bin535.fits evtable="EVENTS" scfile=/scratch/kocevski/816269/ft2_4FGL_J2323.6-0617_daily_bin535.fits sctable="SC_DATA" expcube=/scratch/kocevski/816269/ltcube_378000001_378259201_4FGL_J2323.6-0617_daily_bin535.fits outfile=/scratch/kocevski/816269/expmap_378000001_378259201_4FGL_J2323.6-0617_daily_bin535.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/816269/ltcube_378000001_378259201_4FGL_J2323.6-0617_daily_bin535.fits
.....................!
real 190.94
user 185.91
sys 4.72

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 162 point sources and 0 extended sources

Setting source of interest to:
4FGL J2323.6-0617 @ 350.916 -6.2953

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/816269/ft1_filtered_4FGL_J2323.6-0617_daily_bin535.fits scfile=/scratch/kocevski/816269/ft2_4FGL_J2323.6-0617_daily_bin535.fits outfile=/scratch/kocevski/816269/cmap_378000001_378259201_4FGL_J2323.6-0617_daily_bin535.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=350.916 yref=-6.2953 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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/816269/ft1_filtered_4FGL_J2323.6-0617_daily_bin535.fits scfile=/scratch/kocevski/816269/ft2_4FGL_J2323.6-0617_daily_bin535.fits outfile=/scratch/kocevski/816269/cmap_HighResolution_378000001_378259201_4FGL_J2323.6-0617_daily_bin535.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=350.916 yref=-6.2953 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.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/816269/ft1_filtered_4FGL_J2323.6-0617_daily_bin535.fits evtable="EVENTS" scfile=/scratch/kocevski/816269/ft2_4FGL_J2323.6-0617_daily_bin535.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/816269/Model_4FGL_J2323.6-0617_daily_bin535.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/816269/ft1_filtered_4FGL_J2323.6-0617_daily_bin535.fits.....................!
real 58.84
user 57.60
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/816269/ft1_filtered_4FGL_J2323.6-0617_daily_bin535.fits', '/scratch/kocevski/816269/ft2_4FGL_J2323.6-0617_daily_bin535.fits', expMap='/scratch/kocevski/816269/expmap_378000001_378259201_4FGL_J2323.6-0617_daily_bin535.fits', expCube='/scratch/kocevski/816269/ltcube_378000001_378259201_4FGL_J2323.6-0617_daily_bin535.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/816269/Model_4FGL_J2323.6-0617_daily_bin535.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2323.6-0617'

4FGL J2323.6-0617
   Spectrum: LogParabola
388         norm:  1.612e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
389        alpha:  2.239e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
390         beta:  1.822e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
391           Eb:  7.592e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/816269/ft1_filtered_4FGL_J2323.6-0617_daily_bin535.fits
Spacecraft file(s): /scratch/kocevski/816269/ft2_4FGL_J2323.6-0617_daily_bin535.fits
Exposure map: /scratch/kocevski/816269/expmap_378000001_378259201_4FGL_J2323.6-0617_daily_bin535.fits
Exposure cube: /scratch/kocevski/816269/ltcube_378000001_378259201_4FGL_J2323.6-0617_daily_bin535.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/816269/Model_4FGL_J2323.6-0617_daily_bin535.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) = 6535.19682728

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6218       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.6539       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.4725       1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.790       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.7464       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.4084       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.8308       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    42.033       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10288E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10466E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.913       1.0000         .10000E-03   10000.    
    20 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.5494       1.0000         .10000E-03   10000.    
    23 'Prefactor '    50.396       1.0000         .10000E-03   10000.    
    24 'norm      '    1.4890       1.0000         .10000E-03   10000.    
    25 'norm      '    1.6745       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    6.1064       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2336       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .65238       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5310E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6535.192     FROM MIGRAD    STATUS=CONVERGED    718 CALLS     3684 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6213        7.7328       -.58275E-07   -.66713E-04
   2  Prefactor     .10000E-03    17.069        .41943E-05** at limit **
   3  Prefactor     .10000E-03    3.7161        .16557E-08** at limit **
   4  norm          .10000E-03    .20247        .15848E-09** at limit **
   5  Prefactor     .10000E-03    4.6608        .31576E-07** at limit **
   6  Prefactor     2.6533        5.7332        .30355E-06   -.95273E-03
   7  Prefactor     .10000E-03    15.791       -.12215E-04** at limit **
   8  norm          3.4717        8.7064       -.17107E-06   -.46466E-03
   9  Prefactor     23.788        20.419        .12148E-05    .62102E-05
  10  Prefactor     5.7391        25.754        .51365E-05    .17928E-06
  11  Prefactor     8.4131        19.713       -.46444E-05   -.13394E-04
  12  Prefactor     .10000E-03    2.5053       -.81690E-07** at limit **
  13  norm          1.8300        1.0607       -.24804E-07   -.74572E-04
  14  norm          .10000E-03    2.1551       -.61491E-07** at limit **
  15  Prefactor     42.032        53.110       -.64840E-06   -.84330E-06
  16  Prefactor     .10000E-03    24.452       -.15830E-04** at limit **
  17  Prefactor     .10000E-03    32.769        .87372E-05** at limit **
  18  Prefactor     .10000E-03    186.97       -.98381E-05** at limit **
  19  Prefactor     15.911        15.025        .12188E-06   -.10641E-03
  20  norm          .10000E-03    11.893        .80201E-06** at limit **
  21  Prefactor     .10000E-03    18.370        .16157E-04** at limit **
  22  Prefactor     1.5459        4.7361       -.12414E-06   -.12559E-03
  23  Prefactor     50.394        39.198       -.61836E-06   -.17135E-05
  24  norm          1.4889        .59843       -.12713E-07   -.21654E-03
  25  norm          1.6759        2.6042        .30377E-06   -.23165E-02
  26  Prefactor     .10000E-03    3.6494        .29687E-07** at limit **
  27  Prefactor     6.1052        5.5914       -.55363E-06   -.54650E-04
  28  Normalizat    1.2337        .17307        .18191E-06    .53224E-04
  29  Prefactor     .65234        .13378       -.84169E-07    .85597E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.62134
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.65329
  Prefactor  = 0.0001
  norm       = 3.4717
  Prefactor  = 23.7876
  Prefactor  = 5.73908
  Prefactor  = 8.41308
  Prefactor  = 0.0001
  norm       = 1.83004
  norm       = 0.0001
  Prefactor  = 42.0317
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.9113
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.54594
  Prefactor  = 50.3944
  norm       = 1.48892
  norm       = 1.67587
  Prefactor  = 0.0001
  Prefactor  = 6.10518
  Normalizat = 1.23366
  Prefactor  = 0.652342
 **********
 **   18 **HESSE 
 **********

 FCN=   6535.192     FROM HESSE     STATUS=OK           555 CALLS     4239 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6213        7.6935        .33231E-03   -1.5453    
   2  Prefactor     .10000E-03    17.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.7589        .15218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .20252        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.6647        .17045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.6533        6.0666        .12511E-02   -1.5382    
   7  Prefactor     .10000E-03    16.085        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.4717        8.9050        .10850E-02   -1.5335    
   9  Prefactor     23.788        20.423        .82126E-04   -1.4732    
  10  Prefactor     5.7391        25.711        .16755E-03   -1.5229    
  11  Prefactor     8.4131        19.730        .13825E-03   -1.5128    
  12  Prefactor     .10000E-03    2.5127        .12483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.8300        1.0512        .58530E-04   -1.5437    
  14  norm          .10000E-03    2.1822        .11584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     42.032        53.082        .61832E-04   -1.4410    
  16  Prefactor     .10000E-03    24.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    33.606        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    187.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     15.911        14.434        .50201E-03   -1.4910    
  20  norm          .10000E-03    11.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    18.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.5459        4.5357        .24276E-03   -1.5459    
  23  Prefactor     50.394        39.212        .56491E-04   -1.4287    
  24  norm          1.4889        .69227        .36345E-04   -1.5464    
  25  norm          1.6759        5.6720        .14005E-02   -1.5449    
  26  Prefactor     .10000E-03    3.6527        .15082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     6.1052        5.5823        .16247E-03   -1.5214    
  28  Normalizat    1.2337        .20300        .23157E-03   -.85569    
  29  Prefactor     .65234        .15552        .24086E-03   -1.0543    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18343e-08
Minuit parameter uncertainties:
  1  7.0649
  2  1.31274e-05
  3  8.72622e-07
  4  1.0097e-08
  5  7.10731e-07
  6  6.06799
  7  0.000127954
  8  8.9084
  9  20.4288
  10  24.3118
  11  19.7455
  12  1.22913e-05
  13  1.05124
  14  5.37619e-06
  15  53.1421
  16  4.02706e-05
  17  7.61522e-05
  18  9.76408e-05
  19  14.4369
  20  2.20128e-06
  21  4.15742e-05
  22  4.53675
  23  39.2318
  24  0.692269
  25  5.67386
  26  1.95226e-08
  27  5.58277
  28  0.203126
  29  0.155627
Done.

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

Extracting fit parameters...

4FGL J2323.6-0617
   Spectrum: LogParabola
388         norm:  1.000e-04  5.376e-06  1.000e-04  1.000e+04 ( 1.000e-12)
389        alpha:  2.239e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
390         beta:  1.822e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
391           Eb:  7.592e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
528    Prefactor:  6.523e-01  1.556e-01  0.000e+00  1.000e+01 ( 1.000e+00)
529        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
530        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
527   Normalization:  1.234e+00  2.031e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 350.916 -6.295
Photon Flux Upper Limit: 4.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.70e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/816269/likelihoodResults_378000001_378259201_4FGL_J2323.6-0617_daily_bin535.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) = 6535.19392802
delta logL = -0.00217458460156

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6535.1917537
delta logL = -2.65208655037e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2425       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2338       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65226       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5310E+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=   6535.192     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      231 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    517.65        .11588E-02** at limit **
   2  alpha         2.3702        3.3261        .16572        .65719E-07
   3  Normalizat    1.2337        .15096        .23156E-03   -.94557E-04
   4  Prefactor     .65234        .11837        .24086E-03   -.93172E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.37019
  Normalizat = 1.23366
  Prefactor  = 0.652342
 **********
 **   18 **HESSE 
 **********

 FCN=   6535.192     FROM HESSE     STATUS=OK            23 CALLS      254 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.2046        .23177E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3702        3.4052        .66289E-02   -.51946E-01
   3  Normalizat    1.2337        .19510        .46313E-04   -.85569    
   4  Prefactor     .65234        .15299        .96346E-05   -1.0543    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.14538e-11
Minuit parameter uncertainties:
  1  1.45554e-06
  2  190.33
  3  0.195219
  4  0.153085
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/816269': 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) = 6535.19175321
delta logL = 2.26110387302e-07

Extracting fit parameters...

4FGL J2323.6-0617
   Spectrum: LogParabola
388         norm:  1.000e-04  1.456e-06  1.000e-04  1.000e+04 ( 1.000e-12)
389        alpha:  2.370e+00  1.903e+02  0.000e+00  5.000e+00 ( 1.000e+00)
390         beta:  1.822e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
391           Eb:  7.592e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
528    Prefactor:  6.523e-01  1.531e-01  0.000e+00  1.000e+01 ( 1.000e+00)
529        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
530        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
527   Normalization:  1.234e+00  1.952e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 350.916 -6.295

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/816269/cmap_HighResolution_378000001_378259201_4FGL_J2323.6-0617_daily_bin535.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.70e-05', job_status='DONE', photon_flux_upper_limit='4.36e-08', time_completed='2021-09-29 15:05:53.424291', job_id='816269', GAL2='0.65', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1632953153.42', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='2.26e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='535' AND source_name='4FGL J2323.6-0617' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 15:05:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 816269: <4FGL_J2323.6-0617_daily_bin535> in cluster <slac> Done

Job <4FGL_J2323.6-0617_daily_bin535> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 14:50:40 2021
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:50:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 14:50:42 2021
Terminated at Wed Sep 29 15:05:54 2021
Results reported at Wed Sep 29 15:05:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.6-0617_daily_bin535 350.916 -6.2953 378000001 378259201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2323.6-0617 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   775.08 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             287.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            914 sec.

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

