/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 225 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 = 7399
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2323.5-0317_daily_bin245
RA = 350.888, Dec = -3.29
tmin = 302832001, tmax = 303091201
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='808212', job_status='RUN', time_executed='2021-09-29 14:29:17.865539', time_epoch_executed='1632950957.87' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='245'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/808212

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/808212/ft1_4FGL_J2323.5-0317_daily_bin245.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/808212/ft2_4FGL_J2323.5-0317_daily_bin245.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/808212/ft1_4FGL_J2323.5-0317_daily_bin245.fits outfile=/scratch/kocevski/808212/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin245.fits ra=350.888 dec=-3.29 rad=12.0 tmin=302832001.0 tmax=303091201.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.58
user 3.28
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/808212/ft1_filtered_4FGL_J2323.5-0317_daily_bin245.fits" evtable="EVENTS" scfile=/scratch/kocevski/808212/ft2_4FGL_J2323.5-0317_daily_bin245.fits sctable="SC_DATA" outfile=/scratch/kocevski/808212/ltcube_302832001_303091201_4FGL_J2323.5-0317_daily_bin245.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/808212/ft2_4FGL_J2323.5-0317_daily_bin245.fits
.....................!
real 12.40
user 12.01
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/808212/ft1_filtered_4FGL_J2323.5-0317_daily_bin245.fits evtable="EVENTS" scfile=/scratch/kocevski/808212/ft2_4FGL_J2323.5-0317_daily_bin245.fits sctable="SC_DATA" expcube=/scratch/kocevski/808212/ltcube_302832001_303091201_4FGL_J2323.5-0317_daily_bin245.fits outfile=/scratch/kocevski/808212/expmap_302832001_303091201_4FGL_J2323.5-0317_daily_bin245.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/808212/ltcube_302832001_303091201_4FGL_J2323.5-0317_daily_bin245.fits
.....................!
real 192.58
user 187.34
sys 4.49

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/808212/ft1_filtered_4FGL_J2323.5-0317_daily_bin245.fits scfile=/scratch/kocevski/808212/ft2_4FGL_J2323.5-0317_daily_bin245.fits outfile=/scratch/kocevski/808212/cmap_302832001_303091201_4FGL_J2323.5-0317_daily_bin245.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/808212/ft1_filtered_4FGL_J2323.5-0317_daily_bin245.fits scfile=/scratch/kocevski/808212/ft2_4FGL_J2323.5-0317_daily_bin245.fits outfile=/scratch/kocevski/808212/cmap_HighResolution_302832001_303091201_4FGL_J2323.5-0317_daily_bin245.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/808212/ft1_filtered_4FGL_J2323.5-0317_daily_bin245.fits evtable="EVENTS" scfile=/scratch/kocevski/808212/ft2_4FGL_J2323.5-0317_daily_bin245.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/808212/Model_4FGL_J2323.5-0317_daily_bin245.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/808212/ft1_filtered_4FGL_J2323.5-0317_daily_bin245.fits.....................!
real 46.35
user 44.93
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/808212/ft1_filtered_4FGL_J2323.5-0317_daily_bin245.fits', '/scratch/kocevski/808212/ft2_4FGL_J2323.5-0317_daily_bin245.fits', expMap='/scratch/kocevski/808212/expmap_302832001_303091201_4FGL_J2323.5-0317_daily_bin245.fits', expCube='/scratch/kocevski/808212/ltcube_302832001_303091201_4FGL_J2323.5-0317_daily_bin245.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/808212/Model_4FGL_J2323.5-0317_daily_bin245.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/808212/ft1_filtered_4FGL_J2323.5-0317_daily_bin245.fits
Spacecraft file(s): /scratch/kocevski/808212/ft2_4FGL_J2323.5-0317_daily_bin245.fits
Exposure map: /scratch/kocevski/808212/expmap_302832001_303091201_4FGL_J2323.5-0317_daily_bin245.fits
Exposure cube: /scratch/kocevski/808212/ltcube_302832001_303091201_4FGL_J2323.5-0317_daily_bin245.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/808212/Model_4FGL_J2323.5-0317_daily_bin245.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) = 4477.62224342

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    9.3184       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10654E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.450       1.0000         .10000E-03   10000.    
    10 'norm      '    2.3890       1.0000         .10000E-03   10000.    
    11 'norm      '    .11196E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.613       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .27096E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .95633E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11369E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .49860E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.6091       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    28.892       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.7297       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.4435       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .95428       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .87383       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.

 FCN=   4477.617     FROM MIGRAD    STATUS=CONVERGED   1026 CALLS     3331 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.221        .18142E-02** at limit **
   2  Prefactor     .10000E-03    16.010        .18142E-02** at limit **
   3  Prefactor     .10000E-03    13.198        .18142E-02** at limit **
   4  Prefactor     .10000E-03    4.5491        .13930E-02** at limit **
   5  norm          9.3213        12.974        .65643E-03   -.17700E-04
   6  Prefactor     .10000E-03    18.451        .18142E-02** at limit **
   7  Prefactor     .10000E-03    6.2478        .16330E-02** at limit **
   8  Prefactor     .10000E-03    96.516        .18142E-02** at limit **
   9  Prefactor     12.438        12.167        .11353E-03   -.49459E-03
  10  norm          2.3889        1.3311        .54298E-04    .25094E-02
  11  norm          .10003E-03    5.1945        .48382E-01** at limit **
  12  Prefactor     10.610        9.5230        .12299E-03   -.13200E-03
  13  Prefactor     .10007E-03    73.398        .15204    ** at limit **
  14  Prefactor     .10004E-03    2110.6        .18157E-02** at limit **
  15  Prefactor     .10000E-03    19.352        .18142E-02** at limit **
  16  Prefactor     .10032E-03    116.12        .50092E-02** at limit **
  17  norm          .10000E-03    9.3737        .18142E-02** at limit **
  18  Prefactor     .10000E-03    26.197        .18142E-02** at limit **
  19  Prefactor     3.6122        4.9423        .16204E-03    .62659E-03
  20  Prefactor     .10000E-03    19.562        .18142E-02** at limit **
  21  Prefactor     28.884        27.397        .74536E-04   -.84194E-04
  22  Prefactor     2.7303        7.4889        .12323E-02    .24069E-04
  23  Prefactor     3.4452        11.036        .10898E-02    .96998E-04
  24  Normalizat    .95420        .26285        .26973E-03    .34014E-04
  25  Prefactor     .87376        .17862        .20393E-03    .11904E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.32129
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 12.4382
  norm       = 2.38894
  norm       = 0.000100031
  Prefactor  = 10.6099
  Prefactor  = 0.000100073
  Prefactor  = 0.000100042
  Prefactor  = 0.0001
  Prefactor  = 0.000100315
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.61224
  Prefactor  = 0.0001
  Prefactor  = 28.8837
  Prefactor  = 2.73025
  Prefactor  = 3.44521
  Normalizat = 0.954205
  Prefactor  = 0.873762
 **********
 **   18 **HESSE 
 **********

 FCN=   4477.617     FROM HESSE     STATUS=OK           427 CALLS     3758 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.229        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.010        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.198        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.5492        .27860E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          9.3213        12.972        .26257E-04   -1.5097    
   6  Prefactor     .10000E-03    18.453        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.2480        .32659E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    96.523        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.438        12.166        .45412E-05   -1.5002    
  10  norm          2.3889        1.3310        .21719E-05   -1.5399    
  11  norm          .10003E-03    5.2030        .48310E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.610        9.5211        .49195E-05   -1.5056    
  13  Prefactor     .10007E-03    75.732        .14901       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10004E-03    2112.4        .36313E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    19.360        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10032E-03    117.72        .10018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    9.3738        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    26.197        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.6122        4.9408        .64816E-05   -1.5328    
  20  Prefactor     .10000E-03    19.563        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     28.884        27.397        .29815E-05   -1.4633    
  22  Prefactor     2.7303        7.4875        .49293E-04   -1.5377    
  23  Prefactor     3.4452        11.027        .43591E-04   -1.5337    
  24  Normalizat    .95420        .26292        .10789E-04   -.94581    
  25  Prefactor     .87376        .17876        .40785E-04   -.97064    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.85726e-09
Minuit parameter uncertainties:
  1  0.000112579
  2  2.26153e-05
  3  6.5095e-05
  4  1.03052e-05
  5  12.9757
  6  4.7914e-05
  7  1.68127e-05
  8  0.00119932
  9  12.1688
  10  1.33103
  11  0.000807305
  12  9.52249
  13  0.00471273
  14  0.0195498
  15  0.000172172
  16  0.0122071
  17  1.48593e-05
  18  7.09007e-05
  19  4.94135
  20  9.16725e-05
  21  27.4087
  22  7.4901
  23  11.0335
  24  0.263272
  25  0.178883
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  2.389e+00  1.331e+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

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  8.738e-01  1.789e-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.542e-01  2.633e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.16
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 9.25e-08 +/- 5.15e-08
Energy Flux (Fixed Index): 3.79e-05 +/- 2.11e-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) = 4475.30595715
delta logL = 2.31068472336

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4475.27342233
delta logL = 2.3432195365

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1628       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4796       1.0000          .0000       5.0000    
     3 'Normalizat'    .79172       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95162       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=   4475.273     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      212 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1625        6.2980        .59476E-02    .30021E-03
   2  alpha         3.4798        4.1126        .18372        .38180E-04
   3  Normalizat    .79176        .98228E-01    .66077E-01    .15428E-04
   4  Prefactor     .95160        .68128E-01    .45660E-01    .20138E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.16246
  alpha      = 3.47975
  Normalizat = 0.791757
  Prefactor  = 0.9516
 **********
 **   18 **HESSE 
 **********

 FCN=   4475.273     FROM HESSE     STATUS=OK            31 CALLS      243 TOTAL
                     EDM=   .36E-15    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1625        1.0312        .26438E-04   -1.5492    
   2  alpha         3.4798        .68071        .79761E-03    .40270    
   3  Normalizat    .79176        .25616        .29233E-03   -1.0038    
   4  Prefactor     .95160        .18198        .19601E-03   -.94361    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.60534e-16
Minuit parameter uncertainties:
  1  1.03126
  2  0.691063
  3  0.25655
  4  0.182099
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/808212': 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) = 4475.27342228
delta logL = 2.34321959339

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.162e+00  1.031e+00  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  3.480e+00  6.911e-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:  9.516e-01  1.821e-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:  7.918e-01  2.565e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.42
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 3.48 +/- 0.69
Photon Flux (Free Index): 2.24e-07 +/- 9.64e-08
Energy Flux (Free Index): 3.91e-05 +/- 1.55e-05

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/808212/cmap_HighResolution_302832001_303091201_4FGL_J2323.5-0317_daily_bin245.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.25e-08', energy_flux2='3.91e-05', photon_flux_error='5.15e-08', dlogl='2.34e+00', energy_flux='3.79e-05', photon_flux2='2.24e-07', job_status='DONE', time_completed='2021-09-29 14:38:23.368978', photon_index_error2='0.69', photon_index2='3.48', ts='6.16', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='1.55e-05', EG='0.95', time_epoch_completed='1632951503.37', return_code='0', job_id='808212', GAL2='0.95', EG2='0.79', return_code2='0', energy_flux_error='2.11e-05', photon_flux_error2='9.64e-08', ts2='11.42', photon_index='2.16' WHERE bin_id='245' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:38:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 808212: <4FGL_J2323.5-0317_daily_bin245> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin245> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 14:25:20 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:25:23 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:25:23 2021
Terminated at Wed Sep 29 14:38:24 2021
Results reported at Wed Sep 29 14:38:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin245 350.888 -3.29 302832001 303091201 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 :                                   544.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             263.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   782 sec.
    Turnaround time :                            784 sec.

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

