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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin537
RA = 350.888, Dec = -3.29
tmin = 378518401, tmax = 378777601
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='809494', job_status='RUN', time_executed='2021-09-29 14:32:43.592406', time_epoch_executed='1632951163.59' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='537'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/809494

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/809494/ft1_4FGL_J2323.5-0317_daily_bin537.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/809494/ft2_4FGL_J2323.5-0317_daily_bin537.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/809494/ft1_4FGL_J2323.5-0317_daily_bin537.fits outfile=/scratch/kocevski/809494/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin537.fits ra=350.888 dec=-3.29 rad=12.0 tmin=378518401.0 tmax=378777601.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.41
user 3.21
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/809494/ft1_filtered_4FGL_J2323.5-0317_daily_bin537.fits" evtable="EVENTS" scfile=/scratch/kocevski/809494/ft2_4FGL_J2323.5-0317_daily_bin537.fits sctable="SC_DATA" outfile=/scratch/kocevski/809494/ltcube_378518401_378777601_4FGL_J2323.5-0317_daily_bin537.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/809494/ft2_4FGL_J2323.5-0317_daily_bin537.fits
.....................!
real 11.58
user 11.16
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/809494/ft1_filtered_4FGL_J2323.5-0317_daily_bin537.fits evtable="EVENTS" scfile=/scratch/kocevski/809494/ft2_4FGL_J2323.5-0317_daily_bin537.fits sctable="SC_DATA" expcube=/scratch/kocevski/809494/ltcube_378518401_378777601_4FGL_J2323.5-0317_daily_bin537.fits outfile=/scratch/kocevski/809494/expmap_378518401_378777601_4FGL_J2323.5-0317_daily_bin537.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/809494/ltcube_378518401_378777601_4FGL_J2323.5-0317_daily_bin537.fits
.....................!
real 189.92
user 185.05
sys 4.55

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/809494/ft1_filtered_4FGL_J2323.5-0317_daily_bin537.fits scfile=/scratch/kocevski/809494/ft2_4FGL_J2323.5-0317_daily_bin537.fits outfile=/scratch/kocevski/809494/cmap_378518401_378777601_4FGL_J2323.5-0317_daily_bin537.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/809494/ft1_filtered_4FGL_J2323.5-0317_daily_bin537.fits scfile=/scratch/kocevski/809494/ft2_4FGL_J2323.5-0317_daily_bin537.fits outfile=/scratch/kocevski/809494/cmap_HighResolution_378518401_378777601_4FGL_J2323.5-0317_daily_bin537.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/809494/ft1_filtered_4FGL_J2323.5-0317_daily_bin537.fits evtable="EVENTS" scfile=/scratch/kocevski/809494/ft2_4FGL_J2323.5-0317_daily_bin537.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/809494/Model_4FGL_J2323.5-0317_daily_bin537.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/809494/ft1_filtered_4FGL_J2323.5-0317_daily_bin537.fits.....................!
real 64.34
user 62.96
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.205       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .17872E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.2963       1.0000         .10000E-03   10000.    
    11 'norm      '    .29847E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14456E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.152       1.0000         .10000E-03   10000.    
    17 'norm      '    .10444E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    132.63       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .16001       1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.571       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.9117       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.6751       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .90984       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .97093       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=   7499.620     FROM MIGRAD    STATUS=CONVERGED    606 CALLS     2591 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.8375        .90712E-02** at limit **
   2  Prefactor     .10000E-03    10.102        .90712E-02** at limit **
   3  Prefactor     17.206        16.757        .24139E-02   -.98496E-04
   4  Prefactor     .10000E-03    2.2574        .90712E-02** at limit **
   5  norm          .10000E-03    10.836        .90712E-02** at limit **
   6  Prefactor     .10000E-03    8.0298        .90712E-02** at limit **
   7  Prefactor     .10000E-03    12.977        .90712E-02** at limit **
   8  Prefactor     .10026E-03    229.48        .90712E-02** at limit **
   9  Prefactor     .10000E-03    6.7499        .90712E-02** at limit **
  10  norm          2.2967        .91232        .67710E-02    .31758E-03
  11  norm          .10196E-03    2.1776        .76678E-01** at limit **
  12  Prefactor     .10000E-03    5.0445        .90712E-02** at limit **
  13  Prefactor     .10000E-03    25.778        .90712E-02** at limit **
  14  Prefactor     .10008E-03    123.22        .90712E-02** at limit **
  15  Prefactor     .10011E-03    5.4371        .90712E-01** at limit **
  16  Prefactor     15.149        25.172        .25724E-02   -.28364E-04
  17  norm          .10000E-03    47.816        .90712E-02** at limit **
  18  Prefactor     132.63        58.414        .87415E-03   -.82920E-03
  19  Prefactor     .16352        1.7813        .63804E-01    .59598E-03
  20  Prefactor     19.570        24.335        .22634E-02    .43969E-04
  21  Prefactor     6.9103        11.504        .38151E-02   -.11675E-03
  22  Prefactor     .10000E-03    4.6782        .90712E-02** at limit **
  23  Prefactor     9.6753        5.3452        .32208E-02    .16594E-02
  24  Normalizat    .90966        .16436        .45027E-01    .56274E-04
  25  Prefactor     .97116        .12302        .45903E-01    .52383E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.2063
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100256
  Prefactor  = 0.0001
  norm       = 2.29675
  norm       = 0.000101962
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100084
  Prefactor  = 0.000100113
  Prefactor  = 15.149
  norm       = 0.0001
  Prefactor  = 132.631
  Prefactor  = 0.163523
  Prefactor  = 19.5698
  Prefactor  = 6.91033
  Prefactor  = 0.0001
  Prefactor  = 9.6753
  Normalizat = 0.909656
  Prefactor  = 0.971157
 **********
 **   18 **HESSE 
 **********

 FCN=   7499.620     FROM HESSE     STATUS=OK           439 CALLS     3030 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.8597        .14245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.206        16.764        .96558E-04   -1.4878    
   4  Prefactor     .10000E-03    2.2603        .12707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    11.187        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.0331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10026E-03    239.68        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.8645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.2967        .90846        .49050E-04   -1.5405    
  11  norm          .10196E-03    4.7122        .42803E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.0553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    25.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10008E-03    123.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10011E-03    9.7880        .59595E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     15.149        25.184        .10290E-03   -1.4929    
  17  norm          .10000E-03    49.313        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     132.63        58.430        .34966E-04   -1.3400    
  19  Prefactor     .16352        14.304        .20396E-02   -1.5627    
  20  Prefactor     19.570        24.328        .90537E-04   -1.4823    
  21  Prefactor     6.9103        11.498        .15260E-03   -1.5182    
  22  Prefactor     .10000E-03    4.6916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     9.6753        5.3484        .64416E-03   -1.5086    
  24  Normalizat    .90966        .18989        .27218E-03   -.96122    
  25  Prefactor     .97116        .14281        .20288E-03   -.93697    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.75663e-09
Minuit parameter uncertainties:
  1  2.50145e-07
  2  6.43356e-07
  3  16.7681
  4  9.92263e-07
  5  1.72268e-05
  6  1.52015e-05
  7  1.86838e-05
  8  0.0157306
  9  1.81426e-06
  10  0.908469
  11  0.00608191
  12  5.91343e-07
  13  4.66642e-05
  14  0.00646154
  15  0.00210566
  16  25.2013
  17  0.000230736
  18  58.4551
  19  3.05861
  20  24.3408
  21  11.5017
  22  1.51506e-06
  23  5.34863
  24  0.190031
  25  0.142868
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  2.297e+00  9.085e-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:  9.712e-01  1.429e-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.097e-01  1.900e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 18.25
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 8.89e-08 +/- 3.52e-08
Energy Flux (Fixed Index): 3.64e-05 +/- 1.44e-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) = 7499.46787557
delta logL = 0.151931125778

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7499.46531213
delta logL = 0.154494566491

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1960       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3972       1.0000          .0000       5.0000    
     3 'Normalizat'    .88519       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98215       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=   7499.465     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      228 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1961        11.663        .69420E-02    .14007E-02
   2  alpha         2.3972        3.6805        .28639        .50979E-04
   3  Normalizat    .88521        .10642        .44712E-01    .61807E-04
   4  Prefactor     .98214        .59939E-01    .46044E-01   -.73580E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.1961
  alpha      = 2.39719
  Normalizat = 0.88521
  Prefactor  = 0.982136
 **********
 **   18 **HESSE 
 **********

 FCN=   7499.465     FROM HESSE     STATUS=OK            33 CALLS      261 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1961        .89055        .45025E-04   -1.5412    
   2  alpha         2.3972        .43352        .11118E-01   -.41135E-01
   3  Normalizat    .88521        .19019        .27532E-03   -.96982    
   4  Prefactor     .98214        .14331        .20181E-03   -.93327    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.88537e-11
Minuit parameter uncertainties:
  1  0.890551
  2  0.435728
  3  0.190329
  4  0.143368
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/809494': 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) = 7499.46531212
delta logL = 0.15449457341

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  2.196e+00  8.906e-01  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.397e+00  4.357e-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.821e-01  1.434e-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.852e-01  1.903e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.57
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 2.40 +/- 0.44
Photon Flux (Free Index): 1.08e-07 +/- 5.08e-08
Energy Flux (Free Index): 3.39e-05 +/- 1.31e-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/809494/cmap_HighResolution_378518401_378777601_4FGL_J2323.5-0317_daily_bin537.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.89e-08', energy_flux2='3.39e-05', photon_flux_error='3.52e-08', dlogl='1.54e-01', energy_flux='3.64e-05', photon_flux2='1.08e-07', job_status='DONE', time_completed='2021-09-29 14:43:18.018709', photon_index_error2='0.44', photon_index2='2.40', ts='18.25', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='1.31e-05', EG='0.91', time_epoch_completed='1632951798.02', return_code='0', job_id='809494', GAL2='0.98', EG2='0.89', return_code2='0', energy_flux_error='1.44e-05', photon_flux_error2='5.08e-08', ts2='18.57', photon_index='2.16' WHERE bin_id='537' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:43:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 809494: <4FGL_J2323.5-0317_daily_bin537> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin537> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 14:30:26 2021
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:30:28 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:30:28 2021
Terminated at Wed Sep 29 14:43:18 2021
Results reported at Wed Sep 29 14:43:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin537 350.888 -3.29 378518401 378777601 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 :                                   628.51 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             256.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   770 sec.
    Turnaround time :                            772 sec.

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

