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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin1414
RA = 350.888, Dec = -3.29
tmin = 605836801, tmax = 606096001
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='813099', job_status='RUN', time_executed='2021-09-29 14:41:36.284306', time_epoch_executed='1632951696.28' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='1414'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/813099

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/813099/ft1_4FGL_J2323.5-0317_daily_bin1414.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/813099/ft2_4FGL_J2323.5-0317_daily_bin1414.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/813099/ft1_4FGL_J2323.5-0317_daily_bin1414.fits outfile=/scratch/kocevski/813099/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin1414.fits ra=350.888 dec=-3.29 rad=12.0 tmin=605836801.0 tmax=606096001.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.59
user 3.38
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/813099/ft2_4FGL_J2323.5-0317_daily_bin1414.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/813099/ft2_4FGL_J2323.5-0317_daily_bin1414.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/813099/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin1414.fits evtable="EVENTS" outfile="/scratch/kocevski/813099/ft1_filtered_4FGL_J2323.5-0317_daily_bin1414.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.56
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/813099/ft1_filtered_4FGL_J2323.5-0317_daily_bin1414.fits" evtable="EVENTS" scfile=/scratch/kocevski/813099/ft2_4FGL_J2323.5-0317_daily_bin1414.fits sctable="SC_DATA" outfile=/scratch/kocevski/813099/ltcube_605836801_606096001_4FGL_J2323.5-0317_daily_bin1414.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/813099/ft2_4FGL_J2323.5-0317_daily_bin1414.fits
.....................!
real 11.85
user 11.49
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/813099/ft1_filtered_4FGL_J2323.5-0317_daily_bin1414.fits evtable="EVENTS" scfile=/scratch/kocevski/813099/ft2_4FGL_J2323.5-0317_daily_bin1414.fits sctable="SC_DATA" expcube=/scratch/kocevski/813099/ltcube_605836801_606096001_4FGL_J2323.5-0317_daily_bin1414.fits outfile=/scratch/kocevski/813099/expmap_605836801_606096001_4FGL_J2323.5-0317_daily_bin1414.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/813099/ltcube_605836801_606096001_4FGL_J2323.5-0317_daily_bin1414.fits
.....................!
real 191.88
user 187.41
sys 4.15

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

Setting source of interest to:
4FGL J2323.5-0317 @ 350.888 -3.29

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/813099/ft1_filtered_4FGL_J2323.5-0317_daily_bin1414.fits scfile=/scratch/kocevski/813099/ft2_4FGL_J2323.5-0317_daily_bin1414.fits outfile=/scratch/kocevski/813099/cmap_605836801_606096001_4FGL_J2323.5-0317_daily_bin1414.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.888 yref=-3.29 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/813099/ft1_filtered_4FGL_J2323.5-0317_daily_bin1414.fits scfile=/scratch/kocevski/813099/ft2_4FGL_J2323.5-0317_daily_bin1414.fits outfile=/scratch/kocevski/813099/cmap_HighResolution_605836801_606096001_4FGL_J2323.5-0317_daily_bin1414.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.888 yref=-3.29 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.54
user 0.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/813099/ft1_filtered_4FGL_J2323.5-0317_daily_bin1414.fits evtable="EVENTS" scfile=/scratch/kocevski/813099/ft2_4FGL_J2323.5-0317_daily_bin1414.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/813099/Model_4FGL_J2323.5-0317_daily_bin1414.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/813099/ft1_filtered_4FGL_J2323.5-0317_daily_bin1414.fits.....................!
real 55.08
user 53.79
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/813099/ft1_filtered_4FGL_J2323.5-0317_daily_bin1414.fits', '/scratch/kocevski/813099/ft2_4FGL_J2323.5-0317_daily_bin1414.fits', expMap='/scratch/kocevski/813099/expmap_605836801_606096001_4FGL_J2323.5-0317_daily_bin1414.fits', expCube='/scratch/kocevski/813099/ltcube_605836801_606096001_4FGL_J2323.5-0317_daily_bin1414.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/813099/Model_4FGL_J2323.5-0317_daily_bin1414.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2323.5-0317'

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.648e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.160e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
375         beta:  9.598e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
376           Eb:  6.247e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/813099/ft1_filtered_4FGL_J2323.5-0317_daily_bin1414.fits
Spacecraft file(s): /scratch/kocevski/813099/ft2_4FGL_J2323.5-0317_daily_bin1414.fits
Exposure map: /scratch/kocevski/813099/expmap_605836801_606096001_4FGL_J2323.5-0317_daily_bin1414.fits
Exposure cube: /scratch/kocevski/813099/ltcube_605836801_606096001_4FGL_J2323.5-0317_daily_bin1414.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/813099/Model_4FGL_J2323.5-0317_daily_bin1414.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) = 5622.69355709

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    15.763       1.0000         .10000E-03   10000.    
     3 'Prefactor '    67.418       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.9769       1.0000         .10000E-03   10000.    
     5 'norm      '    26.411       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.7521       1.0000         .10000E-03   10000.    
     8 'Prefactor '    95.261       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .11339E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.8787       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    145.32       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .18616E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    25.600       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.774       1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.571       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    37.476       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.9147       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .53555       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.3438       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5230E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5622.692     FROM MIGRAD    STATUS=CONVERGED    573 CALLS     3416 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.3269       -.97266E-08** at limit **
   2  Prefactor     15.762        44.405       -.46099E-06    .55696E-05
   3  Prefactor     67.422        54.857       -.13108E-06    .23146E-04
   4  Prefactor     9.9759        11.163       -.14177E-06    .16718E-04
   5  norm          26.412        19.284       -.33150E-07    .18102E-03
   6  Prefactor     .10000E-03    98.462       -.15903E-07** at limit **
   7  Prefactor     1.7505        17.332        .12397E-05    .56018E-04
   8  Prefactor     95.300        69.663        .11372E-05    .14603E-03
   9  Prefactor     .10000E-03    7.1987        .15679E-05** at limit **
  10  norm          .10000E-03    .70343       -.14798E-05** at limit **
  11  norm          .10000E-03    3.1562        .45778E-06** at limit **
  12  Prefactor     4.8775        7.3839       -.94339E-07    .47396E-04
  13  Prefactor     .10000E-03    23.843       -.29417E-06** at limit **
  14  Prefactor     144.98        284.45        .21756E-05    .46236E-04
  15  Prefactor     .10000E-03    14.398       -.64709E-05** at limit **
  16  Prefactor     .10000E-03    5.6205       -.81850E-08** at limit **
  17  norm          25.536        62.943       -.15973E-05    .15556E-03
  18  Prefactor     .10000E-03    48.986        .35922E-06** at limit **
  19  Prefactor     27.787        12.473        .62653E-06    .11329E-02
  20  Prefactor     14.564        43.008       -.57283E-06    .31448E-04
  21  Prefactor     .10000E-03    18.187       -.61835E-07** at limit **
  22  Prefactor     37.474        23.481       -.22024E-06    .60647E-04
  23  Prefactor     5.9169        8.6820        .23494E-06    .44599E-04
  24  Normalizat    .53502        .25800       -.58526E-05    .33543E-03
  25  Prefactor     1.3442        .18171        .37037E-05    .56393E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 15.7619
  Prefactor  = 67.4216
  Prefactor  = 9.97587
  norm       = 26.4121
  Prefactor  = 0.0001
  Prefactor  = 1.75048
  Prefactor  = 95.3004
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 4.87755
  Prefactor  = 0.0001
  Prefactor  = 144.98
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 25.5355
  Prefactor  = 0.0001
  Prefactor  = 27.7868
  Prefactor  = 14.5641
  Prefactor  = 0.0001
  Prefactor  = 37.4744
  Prefactor  = 5.91688
  Normalizat = 0.535023
  Prefactor  = 1.34416
 **********
 **   18 **HESSE 
 **********

 FCN=   5622.692     FROM HESSE     STATUS=OK           423 CALLS     3839 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.3558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     15.762        44.388        .10088E-03   -1.4914    
   3  Prefactor     67.422        54.784        .48883E-04   -1.4064    
   4  Prefactor     9.9759        11.157        .12686E-03   -1.5076    
   5  norm          26.412        19.266        .77951E-04   -1.4680    
   6  Prefactor     .10000E-03    99.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.7505        17.359        .31672E-03   -1.5443    
   8  Prefactor     95.300        69.516        .20590E-03   -1.3752    
   9  Prefactor     .10000E-03    7.2111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .89630        .10869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.1682        .13002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.8775        7.3791        .18211E-03   -1.5266    
  13  Prefactor     .10000E-03    23.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     144.98        284.68        .16713E-03   -1.3294    
  15  Prefactor     .10000E-03    15.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.6215        .17363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          25.536        62.824        .79174E-04   -1.4697    
  18  Prefactor     .10000E-03    49.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     27.787        12.508        .76018E-04   -1.4653    
  20  Prefactor     14.564        42.939        .10493E-03   -1.4945    
  21  Prefactor     .10000E-03    18.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     37.474        23.462        .65470E-04   -1.4483    
  23  Prefactor     5.9169        8.6672        .16512E-03   -1.5221    
  24  Normalizat    .53502        .27088        .41249E-03   -1.1082    
  25  Prefactor     1.3442        .19582        .20512E-03   -.82003    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32204e-09
Minuit parameter uncertainties:
  1  1.49127e-06
  2  44.4813
  3  54.8252
  4  11.1591
  5  19.2708
  6  2.89562e-05
  7  11.0286
  8  69.5755
  9  5.36002e-05
  10  4.37957e-05
  11  1.2109e-05
  12  7.38045
  13  1.53972e-05
  14  287.446
  15  0.000318902
  16  5.86926e-07
  17  62.9871
  18  2.64282e-06
  19  12.5092
  20  43.0305
  21  1.75535e-05
  22  23.4673
  23  8.66906
  24  0.271547
  25  0.195926
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.000e-04  4.380e-05  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.160e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
375         beta:  9.598e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
376           Eb:  6.247e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  1.344e+00  1.959e-01  0.000e+00  1.000e+01 ( 1.000e+00)
521        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
522        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
519   Normalization:  5.350e-01  2.715e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 350.888 -3.290
Photon Flux Upper Limit: 8.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.59e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/813099/likelihoodResults_605836801_606096001_4FGL_J2323.5-0317_daily_bin1414.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) = 5622.69711063
delta logL = -0.00529545828795

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5622.6918177
delta logL = -2.53274811257e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10250E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1578       1.0000          .0000       5.0000    
     3 'Normalizat'    .53512       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3442       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5230E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5622.692     FROM MIGRAD    STATUS=FAILED        99 CALLS      263 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10011E-03    1.1475        .10870E-02** at limit **
   2  alpha         2.1077        3.6598        .50000        .58474E-05
   3  Normalizat    .53502        .24751        .41252E-03   -.28606E-04
   4  Prefactor     1.3442        .18918        .10256E-02   -.43809E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5622.692     FROM SIMPLEX   STATUS=UNCHANGED    111 CALLS      374 TOTAL
                     EDM=   .76E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10011E-03    1.1475        .13180E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1077        3.6598        .76786E-03   -.15759    
   3  Normalizat    .53502        .24751        .11039E-03   -1.1082    
   4  Prefactor     1.3442        .18918        .70555E-04   -.82003    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5622.692     FROM MIGRAD    STATUS=CONVERGED      7 CALLS      381 TOTAL
                     EDM=   .11E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .90261        .77536E-06** at limit **
   2  alpha         2.0712        3.9042       -.11256E-01   -.10726E-06
   3  Normalizat    .53502        .24751        .35953E-07    .10774E-04
   4  Prefactor     1.3442        .18917       -.12212E-06    .44387E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.07117
  Normalizat = 0.535022
  Prefactor  = 1.34416
 **********
 **   18 **HESSE 
 **********

 FCN=   5622.692     FROM HESSE     STATUS=OK            29 CALLS      410 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .90884        .21741E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0712        3.6266        .50000       -.17239    
   3  Normalizat    .53502        .24824        .16501E-04   -1.1082    
   4  Prefactor     1.3442        .18973        .41023E-04   -.82003    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14799e-10
Minuit parameter uncertainties:
  1  1.81436e-06
  2  86.7033
  3  0.248757
  4  0.189829
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/813099': 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) = 5622.69181491
delta logL = 2.57355168287e-07

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.000e-04  1.814e-06  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.071e+00  8.670e+01  0.000e+00  5.000e+00 ( 1.000e+00)
375         beta:  9.598e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
376           Eb:  6.247e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  1.344e+00  1.898e-01  0.000e+00  1.000e+01 ( 1.000e+00)
521        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
522        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
519   Normalization:  5.350e-01  2.488e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 350.888 -3.290

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/813099/cmap_HighResolution_605836801_606096001_4FGL_J2323.5-0317_daily_bin1414.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.59e-05', job_status='DONE', photon_flux_upper_limit='8.76e-08', time_completed='2021-09-29 14:52:50.040681', job_id='813099', GAL2='1.34', fit_tolerance='1e-08', EG2='0.54', EG='0.54', time_epoch_completed='1632952370.04', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.34', dlogl='2.57e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='1414' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:52:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 813099: <4FGL_J2323.5-0317_daily_bin1414> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin1414> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 14:41:18 2021
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:41:20 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:41:20 2021
Terminated at Wed Sep 29 14:52:50 2021
Results reported at Wed Sep 29 14:52:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin1414 350.888 -3.29 605836801 606096001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2323.5-0317 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   659.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   690 sec.
    Turnaround time :                            692 sec.

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

