/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 51 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 = 7431
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2323.5-0317_daily_bin110
RA = 350.888, Dec = -3.29
tmin = 267840001, tmax = 268099201
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='807014', job_status='RUN', time_executed='2021-09-29 14:22:00.719999', time_epoch_executed='1632950520.72' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='110'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/807014

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/807014/ft1_4FGL_J2323.5-0317_daily_bin110.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/807014/ft2_4FGL_J2323.5-0317_daily_bin110.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/807014/ft1_4FGL_J2323.5-0317_daily_bin110.fits outfile=/scratch/kocevski/807014/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin110.fits ra=350.888 dec=-3.29 rad=12.0 tmin=267840001.0 tmax=268099201.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 1.47
user 1.27
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/807014/ft2_4FGL_J2323.5-0317_daily_bin110.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/807014/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin110.fits evtable="EVENTS" outfile="/scratch/kocevski/807014/ft1_filtered_4FGL_J2323.5-0317_daily_bin110.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/807014/ft1_filtered_4FGL_J2323.5-0317_daily_bin110.fits" evtable="EVENTS" scfile=/scratch/kocevski/807014/ft2_4FGL_J2323.5-0317_daily_bin110.fits sctable="SC_DATA" outfile=/scratch/kocevski/807014/ltcube_267840001_268099201_4FGL_J2323.5-0317_daily_bin110.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/807014/ft2_4FGL_J2323.5-0317_daily_bin110.fits
.....................!
real 13.01
user 12.67
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/807014/ft1_filtered_4FGL_J2323.5-0317_daily_bin110.fits evtable="EVENTS" scfile=/scratch/kocevski/807014/ft2_4FGL_J2323.5-0317_daily_bin110.fits sctable="SC_DATA" expcube=/scratch/kocevski/807014/ltcube_267840001_268099201_4FGL_J2323.5-0317_daily_bin110.fits outfile=/scratch/kocevski/807014/expmap_267840001_268099201_4FGL_J2323.5-0317_daily_bin110.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/807014/ltcube_267840001_268099201_4FGL_J2323.5-0317_daily_bin110.fits
.....................!
real 190.60
user 185.44
sys 4.77

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/807014/ft1_filtered_4FGL_J2323.5-0317_daily_bin110.fits scfile=/scratch/kocevski/807014/ft2_4FGL_J2323.5-0317_daily_bin110.fits outfile=/scratch/kocevski/807014/cmap_267840001_268099201_4FGL_J2323.5-0317_daily_bin110.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/807014/ft1_filtered_4FGL_J2323.5-0317_daily_bin110.fits scfile=/scratch/kocevski/807014/ft2_4FGL_J2323.5-0317_daily_bin110.fits outfile=/scratch/kocevski/807014/cmap_HighResolution_267840001_268099201_4FGL_J2323.5-0317_daily_bin110.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/807014/ft1_filtered_4FGL_J2323.5-0317_daily_bin110.fits evtable="EVENTS" scfile=/scratch/kocevski/807014/ft2_4FGL_J2323.5-0317_daily_bin110.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/807014/Model_4FGL_J2323.5-0317_daily_bin110.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/807014/ft1_filtered_4FGL_J2323.5-0317_daily_bin110.fits.....................!
real 77.75
user 76.05
sys 1.42

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/807014/ft1_filtered_4FGL_J2323.5-0317_daily_bin110.fits', '/scratch/kocevski/807014/ft2_4FGL_J2323.5-0317_daily_bin110.fits', expMap='/scratch/kocevski/807014/expmap_267840001_268099201_4FGL_J2323.5-0317_daily_bin110.fits', expCube='/scratch/kocevski/807014/ltcube_267840001_268099201_4FGL_J2323.5-0317_daily_bin110.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/807014/Model_4FGL_J2323.5-0317_daily_bin110.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/807014/ft1_filtered_4FGL_J2323.5-0317_daily_bin110.fits
Spacecraft file(s): /scratch/kocevski/807014/ft2_4FGL_J2323.5-0317_daily_bin110.fits
Exposure map: /scratch/kocevski/807014/expmap_267840001_268099201_4FGL_J2323.5-0317_daily_bin110.fits
Exposure cube: /scratch/kocevski/807014/ltcube_267840001_268099201_4FGL_J2323.5-0317_daily_bin110.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/807014/Model_4FGL_J2323.5-0317_daily_bin110.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 8512.25878519

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5460       1.0000         .10000E-03   10000.    
     2 'Prefactor '    62.309       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.2480       1.0000         .10000E-03   10000.    
     5 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    28.892       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.4395       1.0000         .10000E-03   10000.    
    11 'norm      '    .88141E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.8514       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .25045       1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.683       1.0000         .10000E-03   10000.    
    17 'norm      '    11.474       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.796       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.6604       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .40093E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.203       1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.0582       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .90022       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .88720       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=   8512.243     FROM MIGRAD    STATUS=CONVERGED    606 CALLS     3459 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5465        6.3760        .86599E-06   -.42901E-04
   2  Prefactor     62.308        43.289       -.37506E-06   -.32220E-04
   3  Prefactor     .10000E-03    6.9416        .34201E-07** at limit **
   4  Prefactor     6.2480        6.9291        .66758E-06    .46837E-04
   5  norm          .10000E-03    5.0058       -.40580E-07** at limit **
   6  Prefactor     .10000E-03    11.622       -.21442E-07** at limit **
   7  Prefactor     .10000E-03    3.8888        .60146E-08** at limit **
   8  Prefactor     28.864        34.666        .42143E-06    .42594E-04
   9  Prefactor     .10000E-03    6.4642        .67589E-08** at limit **
  10  norm          1.4401        .75216       -.11073E-06   -.15181E-03
  11  norm          .88275E-01    2.3760       -.31271E-06    .57033E-03
  12  Prefactor     9.8513        8.6699        .10516E-06   -.40230E-04
  13  Prefactor     .10000E-03    23.530        .20704E-06** at limit **
  14  Prefactor     .10000E-03    71.899        .29939E-05** at limit **
  15  Prefactor     .12380        7.1727        .21542E-05    .23507E-03
  16  Prefactor     14.682        14.754        .16429E-06   -.65417E-04
  17  norm          11.615        17.284       -.25076E-05   -.24701E-04
  18  Prefactor     .10000E-03    60.508       -.32001E-05** at limit **
  19  Prefactor     12.804        4.5652       -.66605E-06   -.35867E-03
  20  Prefactor     2.6268        89.222        .76282E-05    .58683E-04
  21  Prefactor     .10001E-03    11.591        .43117E-06** at limit **
  22  Prefactor     13.199        13.328        .16259E-06   -.49262E-04
  23  Prefactor     7.0575        5.2513        .12494E-05   -.89627E-03
  24  Normalizat    .90054        .16441       -.21984E-05   -.18163E-04
  25  Prefactor     .88703        .11451        .21731E-06   -.19011E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.54647
  Prefactor  = 62.3084
  Prefactor  = 0.0001
  Prefactor  = 6.24796
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.8642
  Prefactor  = 0.0001
  norm       = 1.44013
  norm       = 0.0882752
  Prefactor  = 9.85132
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.123796
  Prefactor  = 14.6817
  norm       = 11.6149
  Prefactor  = 0.0001
  Prefactor  = 12.804
  Prefactor  = 2.62685
  Prefactor  = 0.000100011
  Prefactor  = 13.1994
  Prefactor  = 7.05745
  Normalizat = 0.900543
  Prefactor  = 0.887027
 **********
 **   18 **HESSE 
 **********

 FCN=   8512.243     FROM HESSE     STATUS=OK           443 CALLS     3902 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5465        6.3354        .25592E-03   -1.5389    
   2  Prefactor     62.308        43.213        .50834E-04   -1.4128    
   3  Prefactor     .10000E-03    6.9493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.2480        6.9272        .16060E-03   -1.5208    
   5  norm          .10000E-03    5.0381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.8935        .17768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     28.864        34.296        .74536E-04   -1.4633    
   9  Prefactor     .10000E-03    6.5097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.4401        .75342        .54813E-04   -1.5468    
  11  norm          .88275E-01    15.326        .26778E-02   -1.5649    
  12  Prefactor     9.8513        8.6649        .12767E-03   -1.5080    
  13  Prefactor     .10000E-03    23.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    72.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .12380        33.676        .59886E-01   -1.5638    
  16  Prefactor     14.682        14.737        .52263E-03   -1.4941    
  17  norm          11.615        24.075        .11827E-03   -1.5026    
  18  Prefactor     .10000E-03    60.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.804        4.8861        .10552E-03   -1.4992    
  20  Prefactor     2.6268        90.769        .24990E-03   -1.5384    
  21  Prefactor     .10001E-03    77.424        .59701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     13.199        13.367        .11024E-03   -1.4981    
  23  Prefactor     7.0575        5.1663        .75498E-03   -1.5177    
  24  Normalizat    .90054        .19404        .27148E-03   -.96441    
  25  Prefactor     .88703        .13538        .20378E-03   -.96596    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.70402e-09
Minuit parameter uncertainties:
  1  6.33704
  2  43.2346
  3  2.84373e-06
  4  6.92806
  5  2.08088e-05
  6  1.64304e-05
  7  5.24237e-06
  8  34.3197
  9  3.28799e-05
  10  0.753421
  11  2.32559
  12  8.66604
  13  2.0108e-05
  14  0.000390143
  15  4.08425
  16  14.7407
  17  24.0947
  18  6.22424e-05
  19  4.88624
  20  30.9332
  21  0.00188559
  22  13.3699
  23  5.16664
  24  0.194187
  25  0.135436
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.440e+00  7.534e-01  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:  8.870e-01  1.354e-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:  9.005e-01  1.942e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.08
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 5.57e-08 +/- 2.92e-08
Energy Flux (Fixed Index): 2.28e-05 +/- 1.19e-05

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) = 8512.14677198
delta logL = 0.0961720886462

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8512.14168395
delta logL = 0.101260113641

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3904       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3632       1.0000          .0000       5.0000    
     3 'Normalizat'    .88904       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89190       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.

 FCN=   8512.142     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      198 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3904        12.437        .92136E-02   -.73003E-03
   2  alpha         2.3632        3.6268        .34530        .35164E-04
   3  Normalizat    .88901        .68086E-01    .44761E-01    .23715E-04
   4  Prefactor     .89192        .48635E-01    .44902E-01    .88505E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.39043
  alpha      = 2.36315
  Normalizat = 0.889014
  Prefactor  = 0.89192
 **********
 **   18 **HESSE 
 **********

 FCN=   8512.142     FROM HESSE     STATUS=OK            33 CALLS      231 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3904        .72815        .51773E-04   -1.5472    
   2  alpha         2.3632        .45902        .13287E-01   -.54767E-01
   3  Normalizat    .88901        .17869        .27298E-03   -.96847    
   4  Prefactor     .89192        .13265        .20326E-03   -.96424    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.10996e-11
Minuit parameter uncertainties:
  1  0.728157
  2  0.461646
  3  0.178807
  4  0.132701
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/807014': 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) = 8512.14168394
delta logL = 0.101260122634

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.390e+00  7.282e-01  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.363e+00  4.616e-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:  8.919e-01  1.327e-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:  8.890e-01  1.788e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.28
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 2.36 +/- 0.46
Photon Flux (Free Index): 6.59e-08 +/- 3.81e-08
Energy Flux (Free Index): 2.14e-05 +/- 1.10e-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/807014/cmap_HighResolution_267840001_268099201_4FGL_J2323.5-0317_daily_bin110.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.57e-08', energy_flux2='2.14e-05', photon_flux_error='2.92e-08', dlogl='1.01e-01', energy_flux='2.28e-05', photon_flux2='6.59e-08', job_status='DONE', time_completed='2021-09-29 14:34:43.094755', photon_index_error2='0.46', photon_index2='2.36', ts='7.08', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='1.10e-05', EG='0.90', time_epoch_completed='1632951283.09', return_code='0', job_id='807014', GAL2='0.89', EG2='0.89', return_code2='0', energy_flux_error='1.19e-05', photon_flux_error2='3.81e-08', ts2='7.28', photon_index='2.16' WHERE bin_id='110' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:34:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 807014: <4FGL_J2323.5-0317_daily_bin110> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin110> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 14:20:58 2021
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:21:00 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:21:00 2021
Terminated at Wed Sep 29 14:34:43 2021
Results reported at Wed Sep 29 14:34:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin110 350.888 -3.29 267840001 268099201 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 :                                   761.35 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             310.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   823 sec.
    Turnaround time :                            825 sec.

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

