/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 52 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 = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2323.5-0317_daily_bin352
RA = 350.888, Dec = -3.29
tmin = 330566401, tmax = 330825601
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='808372', job_status='RUN', time_executed='2021-09-29 14:26:37.872589', time_epoch_executed='1632950797.87' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='352'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/808372

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/808372/ft1_4FGL_J2323.5-0317_daily_bin352.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/808372/ft2_4FGL_J2323.5-0317_daily_bin352.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/808372/ft1_4FGL_J2323.5-0317_daily_bin352.fits outfile=/scratch/kocevski/808372/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin352.fits ra=350.888 dec=-3.29 rad=12.0 tmin=330566401.0 tmax=330825601.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.99
user 3.78
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/808372/ft1_filtered_4FGL_J2323.5-0317_daily_bin352.fits" evtable="EVENTS" scfile=/scratch/kocevski/808372/ft2_4FGL_J2323.5-0317_daily_bin352.fits sctable="SC_DATA" outfile=/scratch/kocevski/808372/ltcube_330566401_330825601_4FGL_J2323.5-0317_daily_bin352.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/808372/ft2_4FGL_J2323.5-0317_daily_bin352.fits
.....................!
real 11.74
user 11.41
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/808372/ft1_filtered_4FGL_J2323.5-0317_daily_bin352.fits evtable="EVENTS" scfile=/scratch/kocevski/808372/ft2_4FGL_J2323.5-0317_daily_bin352.fits sctable="SC_DATA" expcube=/scratch/kocevski/808372/ltcube_330566401_330825601_4FGL_J2323.5-0317_daily_bin352.fits outfile=/scratch/kocevski/808372/expmap_330566401_330825601_4FGL_J2323.5-0317_daily_bin352.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/808372/ltcube_330566401_330825601_4FGL_J2323.5-0317_daily_bin352.fits
.....................!
real 191.33
user 186.25
sys 4.76

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/808372/ft1_filtered_4FGL_J2323.5-0317_daily_bin352.fits scfile=/scratch/kocevski/808372/ft2_4FGL_J2323.5-0317_daily_bin352.fits outfile=/scratch/kocevski/808372/cmap_330566401_330825601_4FGL_J2323.5-0317_daily_bin352.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/808372/ft1_filtered_4FGL_J2323.5-0317_daily_bin352.fits scfile=/scratch/kocevski/808372/ft2_4FGL_J2323.5-0317_daily_bin352.fits outfile=/scratch/kocevski/808372/cmap_HighResolution_330566401_330825601_4FGL_J2323.5-0317_daily_bin352.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.53
user 0.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/808372/ft1_filtered_4FGL_J2323.5-0317_daily_bin352.fits evtable="EVENTS" scfile=/scratch/kocevski/808372/ft2_4FGL_J2323.5-0317_daily_bin352.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/808372/Model_4FGL_J2323.5-0317_daily_bin352.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/808372/ft1_filtered_4FGL_J2323.5-0317_daily_bin352.fits.....................!
real 45.67
user 44.40
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    40.792       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.822       1.0000         .10000E-03   10000.    
     5 'norm      '    17.230       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.761       1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.719       1.0000         .10000E-03   10000.    
     8 'Prefactor '    28.266       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .26803E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .56750       1.0000         .10000E-03   10000.    
    11 'norm      '    .10136E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.419       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13807E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.248       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10321E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10711E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .26955E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    32.286       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10507E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .62386       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .93556       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=   4298.533     FROM MIGRAD    STATUS=CONVERGED    567 CALLS     2903 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.1937       -.93123E-07** at limit **
   2  Prefactor     .10000E-03    112.65       -.20775E-05** at limit **
   3  Prefactor     40.799        34.982        .41392E-06    .10300E-04
   4  Prefactor     11.822        9.8342       -.31092E-07   -.29064E-04
   5  norm          17.231        15.377        .13915E-06   -.30993E-04
   6  Prefactor     13.745        39.394       -.36658E-07   -.32061E-04
   7  Prefactor     26.694        22.792        .21422E-06    .18600E-05
   8  Prefactor     28.331        60.363       -.99969E-06   -.89337E-04
   9  Prefactor     .10000E-03    15.803        .10062E-04** at limit **
  10  norm          .56635        1.0284        .41582E-06   -.92885E-05
  11  norm          .10000E-03    3.4001        .13349E-05** at limit **
  12  Prefactor     19.422        12.304        .21741E-07    .30473E-04
  13  Prefactor     .10000E-03    56.761       -.69101E-06** at limit **
  14  Prefactor     .10000E-03    76.679        .13480E-05** at limit **
  15  Prefactor     .10000E-03    3.3904       -.87329E-07** at limit **
  16  Prefactor     21.251        26.676        .26337E-06    .39547E-04
  17  norm          .10000E-03    6.1176       -.58295E-07** at limit **
  18  Prefactor     .10000E-03    26.133        .92832E-06** at limit **
  19  Prefactor     .10000E-03    1.3392       -.66116E-07** at limit **
  20  Prefactor     .10000E-03    27.192       -.93899E-06** at limit **
  21  Prefactor     .10014E-03    14.990       -.18279E-05** at limit **
  22  Prefactor     32.300        19.227        .27784E-06   -.12938E-04
  23  Prefactor     .10000E-03    7.4518       -.23357E-06** at limit **
  24  Normalizat    .62340        .22560       -.64567E-05   -.64339E-04
  25  Prefactor     .93595        .15797        .31644E-05   -.33841E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 40.7993
  Prefactor  = 11.8223
  norm       = 17.2312
  Prefactor  = 13.7448
  Prefactor  = 26.6937
  Prefactor  = 28.3315
  Prefactor  = 0.000100001
  norm       = 0.566349
  norm       = 0.0001
  Prefactor  = 19.4216
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 21.2511
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100144
  Prefactor  = 32.2996
  Prefactor  = 0.0001
  Normalizat = 0.623405
  Prefactor  = 0.935951
 **********
 **   18 **HESSE 
 **********

 FCN=   4298.533     FROM HESSE     STATUS=OK           421 CALLS     3324 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.2025        .13112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    113.39        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     40.799        34.986        .62761E-04   -1.4430    
   4  Prefactor     11.822        9.8337        .11651E-03   -1.5020    
   5  norm          17.231        15.373        .96488E-04   -1.4878    
   6  Prefactor     13.745        39.375        .10797E-03   -1.4966    
   7  Prefactor     26.694        22.787        .77501E-04   -1.4674    
   8  Prefactor     28.331        61.083        .75354E-04   -1.4643    
   9  Prefactor     .10000E-03    16.524        .42873E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .56635        1.0040        .83468E-04   -1.5557    
  11  norm          .10000E-03    3.4205        .11781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     19.422        12.299        .90891E-04   -1.4826    
  13  Prefactor     .10000E-03    56.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    76.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.3944        .11788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     21.251        26.640        .86893E-04   -1.4786    
  17  norm          .10000E-03    6.1191        .15838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    26.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.3433        .74064E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    27.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10014E-03    66.989        .47821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     32.300        19.249        .70519E-04   -1.4571    
  23  Prefactor     .10000E-03    7.5690        .17469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .62340        .24837        .29727E-03   -1.0700    
  25  Prefactor     .93595        .17664        .18610E-03   -.94896    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.67701e-09
Minuit parameter uncertainties:
  1  3.40375e-06
  2  0.0012051
  3  35.0039
  4  9.83506
  5  15.3763
  6  39.4497
  7  22.7943
  8  61.2178
  9  0.000217162
  10  1.00401
  11  8.29237e-06
  12  12.3004
  13  0.000213754
  14  0.00122085
  15  8.93963e-07
  16  26.6554
  17  2.10682e-06
  18  0.000305326
  19  3.91522e-07
  20  0.000273209
  21  0.00621237
  22  19.2528
  23  1.11322e-05
  24  0.248821
  25  0.176745
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  5.663e-01  1.004e+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:  9.360e-01  1.767e-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:  6.234e-01  2.488e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.38
Ra Dec: 350.888 -3.290
Photon Flux Upper Limit: 1.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.50e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/808372/likelihoodResults_330566401_330825601_4FGL_J2323.5-0317_daily_bin352.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4297.63971274
delta logL = 0.892958808318

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4297.61153618
delta logL = 0.921135358916

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .19792       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.0230       1.0000          .0000       5.0000    
     3 'Normalizat'    .53699       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97823       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=   4297.612     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      247 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .19698        3.0938        .47934E-02   -.92253E-03
   2  alpha         4.0260        4.4254        .35671       -.55086E-06
   3  Normalizat    .53720        .60481E-01    .71911E-01   -.20181E-04
   4  Prefactor     .97806        .46297E-01    .45994E-01   -.73148E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.196984
  alpha      = 4.026
  Normalizat = 0.537205
  Prefactor  = 0.97806
 **********
 **   18 **HESSE 
 **********

 FCN=   4297.612     FROM HESSE     STATUS=OK            31 CALLS      278 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .19698        1.2070        .21747E-03   -1.5619    
   2  alpha         4.0260        4.2951        .16106E-02    .65656    
   3  Normalizat    .53720        .23399        .31835E-03   -1.1072    
   4  Prefactor     .97806        .17546        .18234E-03   -.93464    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45901e-10
Minuit parameter uncertainties:
  1  0.975005
  2  3.22388
  3  0.234424
  4  0.175561
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/808372': 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) = 4297.61153344
delta logL = 0.921138104998

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.970e-01  9.750e-01  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  4.026e+00  3.224e+00  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.781e-01  1.756e-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.372e-01  2.344e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.38
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 4.03 +/- 3.22
Photon Flux (Free Index): 8.34e-08 +/- 6.61e-08
Energy Flux (Free Index): 1.28e-05 +/- 1.35e-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/808372/cmap_HighResolution_330566401_330825601_4FGL_J2323.5-0317_daily_bin352.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.50e-05', comment='SUCCESS', energy_flux2='1.28e-05', dlogl='9.21e-01', photon_flux2='8.34e-08', job_status='DONE', time_completed='2021-09-29 14:36:15.231456', photon_index_error2='3.22', photon_index2='4.03', ts='0.38', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.10e-07', energy_flux_error2='1.35e-05', EG='0.62', time_epoch_completed='1632951375.23', return_code='0', job_id='808372', GAL2='0.98', EG2='0.54', return_code2='0', photon_flux_error2='6.61e-08', ts2='2.38', photon_index='2.16' WHERE bin_id='352' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:36:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 808372: <4FGL_J2323.5-0317_daily_bin352> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin352> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 14:25:35 2021
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:25:37 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:37 2021
Terminated at Wed Sep 29 14:36:15 2021
Results reported at Wed Sep 29 14:36:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin352 350.888 -3.29 330566401 330825601 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 :                                   555.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             338.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   638 sec.
    Turnaround time :                            640 sec.

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

