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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin285
RA = 350.888, Dec = -3.29
tmin = 313200001, tmax = 313459201
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='808274', job_status='RUN', time_executed='2021-09-29 14:28:19.276062', time_epoch_executed='1632950899.28' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='285'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/808274

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/808274/ft1_4FGL_J2323.5-0317_daily_bin285.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/808274/ft2_4FGL_J2323.5-0317_daily_bin285.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/808274/ft1_4FGL_J2323.5-0317_daily_bin285.fits outfile=/scratch/kocevski/808274/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin285.fits ra=350.888 dec=-3.29 rad=12.0 tmin=313200001.0 tmax=313459201.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.38
user 3.17
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/808274/ft1_filtered_4FGL_J2323.5-0317_daily_bin285.fits" evtable="EVENTS" scfile=/scratch/kocevski/808274/ft2_4FGL_J2323.5-0317_daily_bin285.fits sctable="SC_DATA" outfile=/scratch/kocevski/808274/ltcube_313200001_313459201_4FGL_J2323.5-0317_daily_bin285.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/808274/ft2_4FGL_J2323.5-0317_daily_bin285.fits
.....................!
real 12.16
user 11.81
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/808274/ft1_filtered_4FGL_J2323.5-0317_daily_bin285.fits evtable="EVENTS" scfile=/scratch/kocevski/808274/ft2_4FGL_J2323.5-0317_daily_bin285.fits sctable="SC_DATA" expcube=/scratch/kocevski/808274/ltcube_313200001_313459201_4FGL_J2323.5-0317_daily_bin285.fits outfile=/scratch/kocevski/808274/expmap_313200001_313459201_4FGL_J2323.5-0317_daily_bin285.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/808274/ltcube_313200001_313459201_4FGL_J2323.5-0317_daily_bin285.fits
.....................!
real 189.45
user 185.02
sys 4.11

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/808274/ft1_filtered_4FGL_J2323.5-0317_daily_bin285.fits scfile=/scratch/kocevski/808274/ft2_4FGL_J2323.5-0317_daily_bin285.fits outfile=/scratch/kocevski/808274/cmap_313200001_313459201_4FGL_J2323.5-0317_daily_bin285.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=350.888 yref=-3.29 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/808274/ft1_filtered_4FGL_J2323.5-0317_daily_bin285.fits evtable="EVENTS" scfile=/scratch/kocevski/808274/ft2_4FGL_J2323.5-0317_daily_bin285.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/808274/Model_4FGL_J2323.5-0317_daily_bin285.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/808274/ft1_filtered_4FGL_J2323.5-0317_daily_bin285.fits.....................!
real 65.35
user 64.11
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    35.274       1.0000         .10000E-03   10000.    
     3 'Prefactor '    43.906       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10112E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10287E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11434E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.859       1.0000         .10000E-03   10000.    
    10 'norm      '    .13893E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    1.1606       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .72096       1.0000         .10000E-03   10000.    
    14 'Prefactor '    94.517       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    31.357       1.0000         .10000E-03   10000.    
    17 'norm      '    21.048       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .18346E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.9087       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.8753       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .17113E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10469E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.773       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .79177       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .97767       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=   6936.573     FROM MIGRAD    STATUS=CONVERGED    641 CALLS     2999 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.7470        .90712E-02** at limit **
   2  Prefactor     35.265        33.662        .16869E-02   -.17705E-03
   3  Prefactor     43.871        35.292        .15126E-02   -.58627E-03
   4  Prefactor     .10000E-03    2.8145        .90712E-02** at limit **
   5  norm          .10000E-03    17.046        .90712E-02** at limit **
   6  Prefactor     .10000E-03    39.164        .90712E-02** at limit **
   7  Prefactor     .10000E-03    4.5768        .90712E-02** at limit **
   8  Prefactor     .10000E-03    40.888        .90712E-02** at limit **
   9  Prefactor     14.847        10.439        .25976E-02    .25507E-03
  10  norm          .10490E-01    .31940        .28295E-01    .76128E-03
  11  norm          1.1685        5.6448        .10693E-01    .13347E-02
  12  Prefactor     .10000E-03    2.7202        .90712E-02** at limit **
  13  Prefactor     .46851        53.152        .15927        .17302E-03
  14  Prefactor     94.518        132.82        .10335E-02   -.17531E-03
  15  Prefactor     .10000E-03    10.417        .90712E-02** at limit **
  16  Prefactor     31.348        24.074        .17888E-02    .69632E-03
  17  norm          21.067        20.137        .21826E-02    .22161E-02
  18  Prefactor     .10000E-03    235.75        .90712E-02** at limit **
  19  Prefactor     2.9103        3.2639        .59558E-02    .53642E-03
  20  Prefactor     6.8824        24.457        .38253E-02    .93632E-04
  21  Prefactor     .10000E-03    9.7295        .90712E-01** at limit **
  22  Prefactor     .10000E-03    12.902        .90712E-02** at limit **
  23  Prefactor     12.774        7.0506        .28019E-02    .15123E-02
  24  Normalizat    .79194        .17108        .64092E-01    .72241E-04
  25  Prefactor     .97780        .12564        .45987E-01   -.46272E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 35.2651
  Prefactor  = 43.8711
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 14.8472
  norm       = 0.01049
  norm       = 1.16852
  Prefactor  = 0.0001
  Prefactor  = 0.468507
  Prefactor  = 94.5185
  Prefactor  = 0.0001
  Prefactor  = 31.3481
  norm       = 21.0672
  Prefactor  = 0.000100002
  Prefactor  = 2.91029
  Prefactor  = 6.88235
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 12.7744
  Normalizat = 0.791944
  Prefactor  = 0.977801
 **********
 **   18 **HESSE 
 **********

 FCN=   6936.573     FROM HESSE     STATUS=OK           439 CALLS     3438 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.7608        .13478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     35.265        33.663        .67475E-04   -1.4520    
   3  Prefactor     43.871        35.396        .60503E-04   -1.4382    
   4  Prefactor     .10000E-03    2.8170        .13645E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    17.561        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    39.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.5803        .17401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    40.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.847        10.055        .10391E-03   -1.4937    
  10  norm          .10490E-01    7.2846        .89301E-03   -1.5688    
  11  norm          1.1685        5.1928        .32305E-03   -1.5492    
  12  Prefactor     .10000E-03    2.7229        .13414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .46851        55.999        .15419       -1.5571    
  14  Prefactor     94.518        133.02        .41340E-04   -1.3760    
  15  Prefactor     .10000E-03    10.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     31.348        24.096        .71554E-04   -1.4588    
  17  norm          21.067        20.126        .87304E-04   -1.4790    
  18  Prefactor     .10000E-03    240.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.9103        3.2560        .14149E-03   -1.5367    
  20  Prefactor     6.8824        24.447        .15301E-03   -1.5183    
  21  Prefactor     .10000E-03    9.8609        .89512E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    13.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     12.774        7.0901        .56039E-03   -1.4993    
  24  Normalizat    .79194        .20310        .28352E-03   -1.0037    
  25  Prefactor     .97780        .15011        .19487E-03   -.93473    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28153e-08
Minuit parameter uncertainties:
  1  1.14636e-05
  2  33.6811
  3  35.413
  4  6.89021e-06
  5  6.06824e-05
  6  0.000789556
  7  4.99334e-06
  8  0.000372267
  9  10.0557
  10  0.550292
  11  4.92714
  12  3.55083e-06
  13  10.2529
  14  133.44
  15  4.7082e-05
  16  24.1038
  17  20.1324
  18  0.00128605
  19  3.25619
  20  24.4824
  21  0.000246704
  22  4.01276e-05
  23  7.09058
  24  0.203296
  25  0.150176
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.049e-02  5.503e-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.778e-01  1.502e-01  0.000e+00  1.000e+01 ( 1.000e+00)
521        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
522        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
519   Normalization:  7.919e-01  2.033e-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: 6.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.48e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/808274/likelihoodResults_313200001_313459201_4FGL_J2323.5-0317_daily_bin285.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) = 6936.56985196
delta logL = 0.00312269922779

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6936.56157358
delta logL = 0.0114010816269

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .70382E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6700       1.0000          .0000       5.0000    
     3 'Normalizat'    .78941       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97755       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=   6936.562     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      237 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .69188E-01    9.9816        .16629E-01    .84586E-03
   2  alpha         2.6722        3.5294        .41273        .69179E-05
   3  Normalizat    .78908        .24021E-01    .64197E-01   -.14086E-03
   4  Prefactor     .97780        .18323E-01    .45986E-01   -.44409E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0691884
  alpha      = 2.67223
  Normalizat = 0.78908
  Prefactor  = 0.977798
 **********
 **   18 **HESSE 
 **********

 FCN=   6936.562     FROM HESSE     STATUS=OK            33 CALLS      270 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .69188E-01    1.7384        .93469E-03   -1.5655    
   2  alpha         2.6722        3.8360        .77652E-01    .68949E-01
   3  Normalizat    .78908        .19274        .28399E-03   -1.0048    
   4  Prefactor     .97780        .14635        .19487E-03   -.93473    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.28708e-10
Minuit parameter uncertainties:
  1  0.693131
  2  4.05758
  3  0.192909
  4  0.146405
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/808274': 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) = 6936.56156872
delta logL = 0.011405940857

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  6.919e-02  6.931e-01  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.672e+00  4.058e+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.778e-01  1.464e-01  0.000e+00  1.000e+01 ( 1.000e+00)
521        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
522        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
519   Normalization:  7.891e-01  1.929e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/808274/cmap_HighResolution_313200001_313459201_4FGL_J2323.5-0317_daily_bin285.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.48e-05', job_status='DONE', photon_flux_upper_limit='6.06e-08', time_completed='2021-09-29 14:40:17.771442', job_id='808274', GAL2='0.98', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1632951617.77', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.14e-02', ts2='0.02', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='285' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:40:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0126>
Subject: Job 808274: <4FGL_J2323.5-0317_daily_bin285> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin285 350.888 -3.29 313200001 313459201 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 :                                   714.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            891 sec.

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

