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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin185
RA = 350.888, Dec = -3.29
tmin = 287280001, tmax = 287539201
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='808120', job_status='RUN', time_executed='2021-09-29 14:27:47.256216', time_epoch_executed='1632950867.26' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='185'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/808120

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/808120/ft1_4FGL_J2323.5-0317_daily_bin185.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/808120/ft2_4FGL_J2323.5-0317_daily_bin185.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/808120/ft1_4FGL_J2323.5-0317_daily_bin185.fits outfile=/scratch/kocevski/808120/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin185.fits ra=350.888 dec=-3.29 rad=12.0 tmin=287280001.0 tmax=287539201.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.62
user 3.39
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/808120/ft1_filtered_4FGL_J2323.5-0317_daily_bin185.fits" evtable="EVENTS" scfile=/scratch/kocevski/808120/ft2_4FGL_J2323.5-0317_daily_bin185.fits sctable="SC_DATA" outfile=/scratch/kocevski/808120/ltcube_287280001_287539201_4FGL_J2323.5-0317_daily_bin185.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/808120/ft2_4FGL_J2323.5-0317_daily_bin185.fits
.....................!
real 12.00
user 11.64
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/808120/ft1_filtered_4FGL_J2323.5-0317_daily_bin185.fits evtable="EVENTS" scfile=/scratch/kocevski/808120/ft2_4FGL_J2323.5-0317_daily_bin185.fits sctable="SC_DATA" expcube=/scratch/kocevski/808120/ltcube_287280001_287539201_4FGL_J2323.5-0317_daily_bin185.fits outfile=/scratch/kocevski/808120/expmap_287280001_287539201_4FGL_J2323.5-0317_daily_bin185.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/808120/ltcube_287280001_287539201_4FGL_J2323.5-0317_daily_bin185.fits
.....................!
real 189.30
user 185.03
sys 3.95

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/808120/ft1_filtered_4FGL_J2323.5-0317_daily_bin185.fits scfile=/scratch/kocevski/808120/ft2_4FGL_J2323.5-0317_daily_bin185.fits outfile=/scratch/kocevski/808120/cmap_287280001_287539201_4FGL_J2323.5-0317_daily_bin185.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.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/808120/ft1_filtered_4FGL_J2323.5-0317_daily_bin185.fits evtable="EVENTS" scfile=/scratch/kocevski/808120/ft2_4FGL_J2323.5-0317_daily_bin185.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/808120/Model_4FGL_J2323.5-0317_daily_bin185.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/808120/ft1_filtered_4FGL_J2323.5-0317_daily_bin185.fits.....................!
real 59.15
user 57.83
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .85599       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10522E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10853E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.560       1.0000         .10000E-03   10000.    
     5 'norm      '    4.8693       1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.126       1.0000         .10000E-03   10000.    
     7 'Prefactor '    41.441       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .52370       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .63435       1.0000         .10000E-03   10000.    
    11 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.495       1.0000         .10000E-03   10000.    
    14 'Prefactor '    74.077       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10212E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    127.24       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.8137       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11872E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.4047       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .74915       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11781E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .87906       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0377       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=   6227.541     FROM MIGRAD    STATUS=CONVERGED   1056 CALLS     3482 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .85436        8.6859        .45059E-03    .98399E-05
   2  Prefactor     .10000E-03    50.545        .18142E-02** at limit **
   3  Prefactor     .10000E-03    28.723        .18142E-02** at limit **
   4  Prefactor     13.566        11.827        .10877E-03    .39089E-04
   5  norm          4.8686        8.5911        .91145E-03    .80252E-04
   6  Prefactor     17.112        37.722        .96780E-04    .27370E-04
   7  Prefactor     41.438        25.496        .62270E-04    .14211E-03
   8  Prefactor     .42560        38.136        .13364        .11752E-03
   9  Prefactor     .10000E-03    3.3130        .14007E-02** at limit **
  10  norm          .63275        .86796        .87913E-03    .30625E-03
  11  norm          .10000E-03    2.9566        .13187E-02** at limit **
  12  Prefactor     .10000E-03    2.3892        .11911E-02** at limit **
  13  Prefactor     17.594        76.153        .95756E-04    .17215E-04
  14  Prefactor     74.048        149.15        .46649E-04    .11747E-04
  15  Prefactor     .10000E-03    5.3080        .17716E-02** at limit **
  16  Prefactor     .10000E-03    14.193        .18142E-02** at limit **
  17  norm          .10000E-03    7.3235        .18142E-02** at limit **
  18  Prefactor     127.36        79.829        .17844E-03    .37908E-04
  19  Prefactor     5.8155        5.1760        .77377E-03    .39053E-03
  20  Prefactor     .10000E-03    70.523        .18142E-02** at limit **
  21  Prefactor     3.4132        45.991        .21925E-03    .15037E-05
  22  Prefactor     .75372        38.250        .46978E-02    .90685E-04
  23  Prefactor     .10000E-03    14.817        .36285E-02** at limit **
  24  Normalizat    .87897        .23096        .29996E-03    .38130E-03
  25  Prefactor     1.0378        .16701        .20613E-03    .11320E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.85436
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.5665
  norm       = 4.86864
  Prefactor  = 17.1119
  Prefactor  = 41.438
  Prefactor  = 0.425602
  Prefactor  = 0.0001
  norm       = 0.632749
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.594
  Prefactor  = 74.0477
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 127.36
  Prefactor  = 5.81548
  Prefactor  = 0.0001
  Prefactor  = 3.41321
  Prefactor  = 0.753725
  Prefactor  = 0.0001
  Normalizat = 0.878966
  Prefactor  = 1.03777
 **********
 **   18 **HESSE 
 **********

 FCN=   6227.541     FROM HESSE     STATUS=OK           417 CALLS     3899 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .85436        8.6837        .18024E-04   -1.5523    
   2  Prefactor     .10000E-03    50.557        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    28.727        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.566        11.826        .43510E-05   -1.4971    
   5  norm          4.8686        8.5887        .36458E-04   -1.5267    
   6  Prefactor     17.112        37.714        .38712E-05   -1.4880    
   7  Prefactor     41.438        25.493        .12454E-04   -1.4420    
   8  Prefactor     .42560        36.838        .13698       -1.5578    
   9  Prefactor     .10000E-03    3.3131        .28013E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .63275        .86694        .35165E-04   -1.5549    
  11  norm          .10000E-03    2.9572        .26374E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.3892        .23821E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     17.594        76.299        .38302E-05   -1.4869    
  14  Prefactor     74.048        149.17        .93298E-05   -1.3985    
  15  Prefactor     .10000E-03    5.3085        .35433E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.194        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    7.3235        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     127.36        79.827        .71377E-05   -1.3446    
  19  Prefactor     5.8155        5.1735        .30951E-04   -1.5226    
  20  Prefactor     .10000E-03    70.541        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.4132        45.962        .87700E-05   -1.5338    
  22  Prefactor     .75372        38.406        .18791E-03   -1.5534    
  23  Prefactor     .10000E-03    14.926        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .87897        .23100        .59992E-04   -.97203    
  25  Prefactor     1.0378        .16709        .41226E-04   -.91481    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.37016e-10
Minuit parameter uncertainties:
  1  5.44826
  2  0.000167803
  3  0.000166989
  4  11.8277
  5  8.59083
  6  37.7661
  7  25.4997
  8  7.92332
  9  1.74665e-05
  10  0.866961
  11  2.88519e-05
  12  4.49389e-06
  13  73.4361
  14  149.938
  15  5.84134e-05
  16  7.87013e-05
  17  2.55131e-05
  18  79.8943
  19  5.17389
  20  0.000124139
  21  25.0734
  22  10.7672
  23  0.00010831
  24  0.231255
  25  0.167174
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  6.327e-01  8.670e-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:  1.038e+00  1.672e-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.790e-01  2.313e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/808120/likelihoodResults_287280001_287539201_4FGL_J2323.5-0317_daily_bin185.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) = 6227.53511367
delta logL = 0.00626065261622

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6227.5349623
delta logL = 0.00641201738199

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .62864       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2843       1.0000          .0000       5.0000    
     3 'Normalizat'    .87541       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0394       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=   6227.535     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      210 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .62906        27.125        .18753E-01    .12685E-02
   2  alpha         2.2853        2.9072        .41347        .32320E-05
   3  Normalizat    .87535        .51731E-01    .67927E-01    .19158E-04
   4  Prefactor     1.0394        .41005E-01    .40577E-01    .28281E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.629065
  alpha      = 2.28528
  Normalizat = 0.875353
  Prefactor  = 1.03938
 **********
 **   18 **HESSE 
 **********

 FCN=   6227.535     FROM HESSE     STATUS=OK            35 CALLS      245 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .62906        .86610        .85620E-03   -1.5549    
   2  alpha         2.2853        1.1008        .27116E-01   -.85994E-01
   3  Normalizat    .87535        .22155        .30051E-03   -.97332    
   4  Prefactor     1.0394        .16405        .20598E-03   -.91428    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.95609e-09
Minuit parameter uncertainties:
  1  0.866118
  2  1.14025
  3  0.221783
  4  0.164129
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/808120': 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) = 6227.53496172
delta logL = 0.00641260179327

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  6.291e-01  8.661e-01  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.285e+00  1.140e+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:  1.039e+00  1.641e-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.754e-01  2.218e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.70
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/808120/cmap_HighResolution_287280001_287539201_4FGL_J2323.5-0317_daily_bin185.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.23e-05', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-09-29 14:39:24.015238', job_id='808120', GAL2='1.04', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1632951564.02', return_code2='0', ts='0.70', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='6.41e-03', ts2='0.71', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='185' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:39:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 808120: <4FGL_J2323.5-0317_daily_bin185> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin185 350.888 -3.29 287280001 287539201 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 :                                   686.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   850 sec.
    Turnaround time :                            851 sec.

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

