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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin1471
RA = 350.888, Dec = -3.29
tmin = 620611201, tmax = 620870401
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='813193', job_status='RUN', time_executed='2021-09-29 14:44:34.081419', time_epoch_executed='1632951874.08' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='1471'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/813193

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/813193/ft1_4FGL_J2323.5-0317_daily_bin1471.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/813193/ft2_4FGL_J2323.5-0317_daily_bin1471.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/813193/ft1_4FGL_J2323.5-0317_daily_bin1471.fits outfile=/scratch/kocevski/813193/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin1471.fits ra=350.888 dec=-3.29 rad=12.0 tmin=620611201.0 tmax=620870401.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.75
user 3.49
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/813193/ft1_filtered_4FGL_J2323.5-0317_daily_bin1471.fits" evtable="EVENTS" scfile=/scratch/kocevski/813193/ft2_4FGL_J2323.5-0317_daily_bin1471.fits sctable="SC_DATA" outfile=/scratch/kocevski/813193/ltcube_620611201_620870401_4FGL_J2323.5-0317_daily_bin1471.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/813193/ft2_4FGL_J2323.5-0317_daily_bin1471.fits
.....................!
real 12.50
user 12.08
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/813193/ft1_filtered_4FGL_J2323.5-0317_daily_bin1471.fits evtable="EVENTS" scfile=/scratch/kocevski/813193/ft2_4FGL_J2323.5-0317_daily_bin1471.fits sctable="SC_DATA" expcube=/scratch/kocevski/813193/ltcube_620611201_620870401_4FGL_J2323.5-0317_daily_bin1471.fits outfile=/scratch/kocevski/813193/expmap_620611201_620870401_4FGL_J2323.5-0317_daily_bin1471.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/813193/ltcube_620611201_620870401_4FGL_J2323.5-0317_daily_bin1471.fits
.....................!
real 190.98
user 184.97
sys 5.53

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/813193/ft1_filtered_4FGL_J2323.5-0317_daily_bin1471.fits scfile=/scratch/kocevski/813193/ft2_4FGL_J2323.5-0317_daily_bin1471.fits outfile=/scratch/kocevski/813193/cmap_620611201_620870401_4FGL_J2323.5-0317_daily_bin1471.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/813193/ft1_filtered_4FGL_J2323.5-0317_daily_bin1471.fits scfile=/scratch/kocevski/813193/ft2_4FGL_J2323.5-0317_daily_bin1471.fits outfile=/scratch/kocevski/813193/cmap_HighResolution_620611201_620870401_4FGL_J2323.5-0317_daily_bin1471.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/813193/ft1_filtered_4FGL_J2323.5-0317_daily_bin1471.fits evtable="EVENTS" scfile=/scratch/kocevski/813193/ft2_4FGL_J2323.5-0317_daily_bin1471.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/813193/Model_4FGL_J2323.5-0317_daily_bin1471.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/813193/ft1_filtered_4FGL_J2323.5-0317_daily_bin1471.fits......................!
real 32.46
user 31.14
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .42687E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    73.439       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    127.47       1.0000         .10000E-03   10000.    
     6 'Prefactor '    64.477       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    13.008       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13219E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.4696       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.336       1.0000         .10000E-03   10000.    
    17 'norm      '    36.926       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    29.103       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11112E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .59404       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2022       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=   2419.776     FROM MIGRAD    STATUS=CONVERGED    589 CALLS     2955 TOTAL
                     EDM=   .69E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.9540       -.10123E-07** at limit **
   2  Prefactor     .10000E-03    860.80        .13806E-07** at limit **
   3  Prefactor     73.411        84.286       -.59983E-06   -.57796E-05
   4  Prefactor     .10000E-03    9.2379       -.70443E-07** at limit **
   5  norm          127.48        42.970       -.33993E-07   -.70615E-04
   6  Prefactor     64.494        61.374       -.90739E-07   -.21659E-04
   7  Prefactor     .10000E-03    156.04        .14644E-05** at limit **
   8  Prefactor     .10000E-03    32.473       -.10038E-06** at limit **
   9  Prefactor     .10000E-03    7.1723       -.26996E-07** at limit **
  10  norm          .10000E-03    .88361        .17923E-06** at limit **
  11  norm          13.011        11.290       -.22611E-07   -.16694E-04
  12  Prefactor     .10000E-03    5.6159       -.74533E-07** at limit **
  13  Prefactor     .10001E-03    840.76        .42756E-05** at limit **
  14  Prefactor     .10000E-03    145.38       -.30114E-06** at limit **
  15  Prefactor     1.5408        169.39       -.10467E-04   -.36203E-04
  16  Prefactor     13.354        47.079       -.65112E-06   -.93468E-05
  17  norm          36.792        58.021        .41894E-05   -.30107E-04
  18  Prefactor     .10000E-03    26.911        .18997E-07** at limit **
  19  Prefactor     .10000E-03    4.9470        .66125E-06** at limit **
  20  Prefactor     .10000E-03    36.189        .31277E-06** at limit **
  21  Prefactor     .10000E-03    17.228       -.32710E-07** at limit **
  22  Prefactor     29.095        37.165        .26710E-07   -.51964E-05
  23  Prefactor     .10000E-03    17.063       -.29406E-06** at limit **
  24  Normalizat    .59398        .37178        .18865E-05   -.55751E-04
  25  Prefactor     1.2019        .24846        .22316E-06   -.12947E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 73.4105
  Prefactor  = 0.0001
  norm       = 127.478
  Prefactor  = 64.4936
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 13.0107
  Prefactor  = 0.0001
  Prefactor  = 0.000100014
  Prefactor  = 0.000100001
  Prefactor  = 1.5408
  Prefactor  = 13.3542
  norm       = 36.7921
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.0955
  Prefactor  = 0.0001
  Normalizat = 0.593979
  Prefactor  = 1.20189
 **********
 **   18 **HESSE 
 **********

 FCN=   2419.776     FROM HESSE     STATUS=OK           413 CALLS     3368 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.9578        .12670E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    888.95        .42467E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     73.411        84.408        .46850E-04   -1.3992    
   4  Prefactor     .10000E-03    9.2397        .14603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          127.48        42.924        .17829E-03   -1.3445    
   6  Prefactor     64.494        61.309        .49978E-04   -1.4100    
   7  Prefactor     .10000E-03    157.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    32.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.1769        .12864E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .89923        .89970E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          13.011        11.283        .11106E-03   -1.4986    
  12  Prefactor     .10000E-03    5.6161        .11384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    849.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    145.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.5408        176.66        .35452E-03   -1.5460    
  16  Prefactor     13.354        47.059        .10969E-03   -1.4977    
  17  norm          36.792        58.276        .65954E-04   -1.4494    
  18  Prefactor     .10000E-03    26.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.9014        .10592E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    36.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    17.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     29.095        37.276        .74265E-04   -1.4629    
  23  Prefactor     .10000E-03    17.505        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .59398        .40094        .37441E-03   -1.0824    
  25  Prefactor     1.2019        .27111        .20002E-03   -.86273    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36254e-10
Minuit parameter uncertainties:
  1  2.41565e-06
  2  0.00157689
  3  84.5465
  4  6.46911e-06
  5  42.9345
  6  61.3692
  7  0.000100065
  8  2.87794e-05
  9  3.75918e-09
  10  5.19218e-06
  11  11.2845
  12  5.75873e-06
  13  0.0069416
  14  0.000649948
  15  33.0962
  16  47.1899
  17  58.3666
  18  5.23773e-06
  19  4.96438e-05
  20  1.70782e-05
  21  5.00413e-06
  22  37.3063
  23  5.82735e-06
  24  0.402922
  25  0.271421
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.000e-04  5.192e-06  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.202e+00  2.714e-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.940e-01  4.029e-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: 1.41e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.77e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/813193/likelihoodResults_620611201_620870401_4FGL_J2323.5-0317_daily_bin1471.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): 102
logL (Free Index) = 2419.78136707
delta logL = -0.00488527083189

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2419.69110018
delta logL = 0.0853816158901

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .19947E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.9999       1.0000          .0000       5.0000    
     3 'Normalizat'    .55270       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2198       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=   2419.691     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      369 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .19912E-01    .59356E-01    .17879E-03   -.16998E-02
   2  alpha         5.0000        4.9328        .50000    ** at limit **
   3  Normalizat    .55290        .36798        .38722E-03   -.19906E-04
   4  Prefactor     1.2198        .26765        .19873E-03    .19511E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0199117
  alpha      = 5
  Normalizat = 0.552898
  Prefactor  = 1.21977
 **********
 **   18 **HESSE 
 **********

 FCN=   2419.691     FROM HESSE     STATUS=OK            31 CALLS      400 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .19912E-01    .56798E-01    .71516E-05   -1.5680    
   2  alpha         5.0000        4.8776        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .55290        .36853        .15489E-04   -1.1002    
   4  Prefactor     1.2198        .26788        .39746E-04   -.85725    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.71981e-10
Minuit parameter uncertainties:
  1  0.0567977
  2  6.47777e-05
  3  0.370179
  4  0.268182
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/813193': 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) = 2419.69109487
delta logL = 0.0853869269363

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.991e-02  5.680e-02  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  5.000e+00  6.478e-05  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.220e+00  2.682e-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.529e-01  3.702e-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/813193/cmap_HighResolution_620611201_620870401_4FGL_J2323.5-0317_daily_bin1471.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.77e-05', job_status='DONE', photon_flux_upper_limit='1.41e-07', time_completed='2021-09-29 14:55:04.207763', job_id='813193', GAL2='1.22', fit_tolerance='1e-08', EG2='0.55', EG='0.59', time_epoch_completed='1632952504.21', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='8.54e-02', ts2='0.19', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='1471' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:55:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 813193: <4FGL_J2323.5-0317_daily_bin1471> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin1471> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 14:41:26 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:41: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:41:28 2021
Terminated at Wed Sep 29 14:55:05 2021
Results reported at Wed Sep 29 14:55:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin1471 350.888 -3.29 620611201 620870401 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 :                                   460.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             258.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            819 sec.

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

