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


Performing analysis on: 4FGL_J2323.8+4210_daily_bin1205
RA = 350.975, Dec = 42.1826
tmin = 551664001, tmax = 551923201
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='827345', job_status='RUN', time_executed='2021-09-29 15:33:32.553656', time_epoch_executed='1632954812.55' WHERE source_name='4FGL J2323.8+4210' and cadence='daily' and bin_id='1205'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/827345

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/827345/ft1_4FGL_J2323.8+4210_daily_bin1205.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/827345/ft2_4FGL_J2323.8+4210_daily_bin1205.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/827345/ft1_4FGL_J2323.8+4210_daily_bin1205.fits outfile=/scratch/kocevski/827345/ft1_filteredMKT_4FGL_J2323.8+4210_daily_bin1205.fits ra=350.975 dec=42.1826 rad=12.0 tmin=551664001.0 tmax=551923201.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.77
user 3.54
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/827345/ft2_4FGL_J2323.8+4210_daily_bin1205.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/827345/ft2_4FGL_J2323.8+4210_daily_bin1205.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/827345/ft1_filteredMKT_4FGL_J2323.8+4210_daily_bin1205.fits evtable="EVENTS" outfile="/scratch/kocevski/827345/ft1_filtered_4FGL_J2323.8+4210_daily_bin1205.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/827345/ft1_filtered_4FGL_J2323.8+4210_daily_bin1205.fits" evtable="EVENTS" scfile=/scratch/kocevski/827345/ft2_4FGL_J2323.8+4210_daily_bin1205.fits sctable="SC_DATA" outfile=/scratch/kocevski/827345/ltcube_551664001_551923201_4FGL_J2323.8+4210_daily_bin1205.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/827345/ft2_4FGL_J2323.8+4210_daily_bin1205.fits
.....................!
real 11.70
user 11.38
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/827345/ft1_filtered_4FGL_J2323.8+4210_daily_bin1205.fits evtable="EVENTS" scfile=/scratch/kocevski/827345/ft2_4FGL_J2323.8+4210_daily_bin1205.fits sctable="SC_DATA" expcube=/scratch/kocevski/827345/ltcube_551664001_551923201_4FGL_J2323.8+4210_daily_bin1205.fits outfile=/scratch/kocevski/827345/expmap_551664001_551923201_4FGL_J2323.8+4210_daily_bin1205.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/827345/ltcube_551664001_551923201_4FGL_J2323.8+4210_daily_bin1205.fits
.....................!
real 190.68
user 185.41
sys 4.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
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 164 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2323.8+4210 @ 350.975 42.1826

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/827345/ft1_filtered_4FGL_J2323.8+4210_daily_bin1205.fits scfile=/scratch/kocevski/827345/ft2_4FGL_J2323.8+4210_daily_bin1205.fits outfile=/scratch/kocevski/827345/cmap_551664001_551923201_4FGL_J2323.8+4210_daily_bin1205.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.975 yref=42.1826 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/827345/ft1_filtered_4FGL_J2323.8+4210_daily_bin1205.fits scfile=/scratch/kocevski/827345/ft2_4FGL_J2323.8+4210_daily_bin1205.fits outfile=/scratch/kocevski/827345/cmap_HighResolution_551664001_551923201_4FGL_J2323.8+4210_daily_bin1205.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.975 yref=42.1826 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/827345/ft1_filtered_4FGL_J2323.8+4210_daily_bin1205.fits evtable="EVENTS" scfile=/scratch/kocevski/827345/ft2_4FGL_J2323.8+4210_daily_bin1205.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/827345/Model_4FGL_J2323.8+4210_daily_bin1205.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 CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/scratch/kocevski/827345/ft1_filtered_4FGL_J2323.8+4210_daily_bin1205.fits...........................!
real 16.81
user 15.63
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/827345/ft1_filtered_4FGL_J2323.8+4210_daily_bin1205.fits', '/scratch/kocevski/827345/ft2_4FGL_J2323.8+4210_daily_bin1205.fits', expMap='/scratch/kocevski/827345/expmap_551664001_551923201_4FGL_J2323.8+4210_daily_bin1205.fits', expCube='/scratch/kocevski/827345/ltcube_551664001_551923201_4FGL_J2323.8+4210_daily_bin1205.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/827345/Model_4FGL_J2323.8+4210_daily_bin1205.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2323.8+4210'

4FGL J2323.8+4210
   Spectrum: LogParabola
458         norm:  5.154e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
459        alpha:  1.778e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
460         beta:  6.822e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
461           Eb:  1.948e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/827345/ft1_filtered_4FGL_J2323.8+4210_daily_bin1205.fits
Spacecraft file(s): /scratch/kocevski/827345/ft2_4FGL_J2323.8+4210_daily_bin1205.fits
Exposure map: /scratch/kocevski/827345/expmap_551664001_551923201_4FGL_J2323.8+4210_daily_bin1205.fits
Exposure cube: /scratch/kocevski/827345/ltcube_551664001_551923201_4FGL_J2323.8+4210_daily_bin1205.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/827345/Model_4FGL_J2323.8+4210_daily_bin1205.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) = 332.996866039

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .37791E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11564E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10440E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    946.34       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11987E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    179.19       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    122.43       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    17.576       1.0000         .10000E-03   10000.    
    20 'Prefactor '    136.83       1.0000         .10000E-03   10000.    
    21 'norm      '    .10815E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10369E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    130.81       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    .62516       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5540E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   332.6611     FROM MIGRAD    STATUS=CONVERGED    575 CALLS     3512 TOTAL
                     EDM=   .96E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6176.8       -.36485E-05** at limit **
   2  Prefactor     .10000E-03    451.77       -.84832E-06** at limit **
   3  norm          .10000E-03    85.320        .72831E-06** at limit **
   4  Prefactor     .10000E-03    19.526        .14110E-06** at limit **
   5  norm          .10000E-03    50.309       -.18614E-06** at limit **
   6  Prefactor     .10000E-03    20.003       -.19375E-07** at limit **
   7  Prefactor     .10000E-03    246.04        .21825E-07** at limit **
   8  Prefactor     946.95        1625.3       -.10839E-04    .65842E-05
   9  Prefactor     .10000E-03    99.364       -.12065E-06** at limit **
  10  norm          .10000E-03    53.171       -.10524E-06** at limit **
  11  Prefactor     .10000E-03    1666.6        .80929E-05** at limit **
  12  Prefactor     179.17        172.95       -.14670E-05    .27740E-04
  13  Prefactor     .10000E-03    318.23        .14610E-05** at limit **
  14  norm          .10000E-03    1.9939        .84773E-07** at limit **
  15  Prefactor     122.46        181.34       -.37275E-05    .32032E-04
  16  norm          .10000E-03    4.5758       -.87707E-08** at limit **
  17  norm          .10000E-03    77.668       -.23901E-07** at limit **
  18  Prefactor     .10000E-03    14.606       -.59536E-08** at limit **
  19  norm          17.578        31.506        .47050E-06    .15438E-05
  20  Prefactor     136.80        118.58        .79502E-06   -.37940E-04
  21  norm          .10000E-03    387.92       -.57354E-06** at limit **
  22  Prefactor     .10000E-03    2114.6       -.25208E-05** at limit **
  23  Prefactor     130.92        385.08        .25735E-06   -.11560E-04
  24  Prefactor     .10000E-03    38.399        .66452E-06** at limit **
  25  Normalizat    .10000E-01    .38578        .90326E-05** at limit **
  26  Prefactor     .62519        .23061       -.32460E-05    .56457E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 946.953
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 179.169
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 122.457
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 17.5781
  Prefactor  = 136.797
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 130.925
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.625194
 **********
 **   18 **HESSE 
 **********

 FCN=   332.6611     FROM HESSE     STATUS=OK           434 CALLS     3946 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6176.7        .19564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    451.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    85.376        .16483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    19.530        .78788E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    50.318        .12653E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    20.004        .79748E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    246.01        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     946.95        1627.2        .68327E-04   -.94519    
   9  Prefactor     .10000E-03    99.367        .17795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    53.170        .13007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1668.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     179.17        172.67        .15077E-03   -1.3023    
  13  Prefactor     .10000E-03    318.39        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.9950        .25174E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     122.46        180.58        .18187E-03   -1.3490    
  16  norm          .10000E-03    4.5759        .38132E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    77.663        .15729E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.606        .68140E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          17.578        31.522        .95534E-04   -1.4869    
  20  Prefactor     136.80        118.59        .17216E-03   -1.3363    
  21  norm          .10000E-03    387.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2112.5        .18150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     130.92        387.64        .17602E-03   -1.3414    
  24  Prefactor     .10000E-03    38.405        .11046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .10000E-01    .47226        .72334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .62519        .23642        .13940E-03   -1.0654    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96243e-10
Minuit parameter uncertainties:
  1  0.0031514
  2  0.000200467
  3  5.55052e-05
  4  2.70317e-06
  5  6.17904e-05
  6  7.02305e-06
  7  0.000285688
  8  1725.33
  9  0.00014376
  10  6.24854e-05
  11  0.0030517
  12  173.165
  13  0.000200345
  14  5.91039e-07
  15  181.403
  16  1.32774e-06
  17  2.91436e-05
  18  1.94369e-06
  19  31.5518
  20  118.796
  21  0.000224776
  22  0.00100968
  23  395.574
  24  4.39948e-05
  25  1.12151e-05
  26  0.236794
Done.

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

Extracting fit parameters...

4FGL J2323.8+4210
   Spectrum: LogParabola
458         norm:  1.000e-04  2.914e-05  1.000e-04  1.000e+04 ( 1.000e-13)
459        alpha:  1.778e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
460         beta:  6.822e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
461           Eb:  1.948e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
551    Prefactor:  6.252e-01  2.368e-01  0.000e+00  1.000e+01 ( 1.000e+00)
552        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
553        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  1.000e-02  1.122e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 350.975 42.183
Photon Flux Upper Limit: 8.77e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.08e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/827345/likelihoodResults_551664001_551923201_4FGL_J2323.8+4210_daily_bin1205.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) = 332.661180072
delta logL = -6.12029348872e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 332.661120051
delta logL = -1.18214927625e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10212E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5859       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62519       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5540E+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=   332.6611     FROM MIGRAD    STATUS=CONVERGED    113 CALLS      306 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7042.1        .97547E-02** at limit **
   2  alpha         1.2773        3.7304        .16473        .40244E-08
   3  Normalizat    .10000E-01    .52469E-01    .72333E-02** at limit **
   4  Prefactor     .62519        .62655E-01    .13941E-03    .26096E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.2773
  Normalizat = 0.01
  Prefactor  = 0.625194
 **********
 **   18 **HESSE 
 **********

 FCN=   332.6611     FROM HESSE     STATUS=OK            23 CALLS      329 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    97.502        .17575E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.2773        3.4249        .65892E-02   -.51104    
   3  Normalizat    .10000E-01    .47229        .14467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .62519        .18913        .55762E-05   -1.0654    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80382e-11
Minuit parameter uncertainties:
  1  9.48581e-05
  2  992.767
  3  3.62693e-06
  4  0.189319
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/827345': 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) = 332.661118741
delta logL = 1.27809073547e-07

Extracting fit parameters...

4FGL J2323.8+4210
   Spectrum: LogParabola
458         norm:  1.000e-04  9.486e-05  1.000e-04  1.000e+04 ( 1.000e-13)
459        alpha:  1.277e+00  9.928e+02  0.000e+00  5.000e+00 ( 1.000e+00)
460         beta:  6.822e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
461           Eb:  1.948e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
551    Prefactor:  6.252e-01  1.893e-01  0.000e+00  1.000e+01 ( 1.000e+00)
552        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
553        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  1.000e-02  3.627e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 350.975 42.183

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/827345/cmap_HighResolution_551664001_551923201_4FGL_J2323.8+4210_daily_bin1205.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.08e-03', job_status='DONE', photon_flux_upper_limit='8.77e-07', time_completed='2021-09-29 15:39:15.451586', job_id='827345', GAL2='0.63', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632955155.45', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='1.28e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='1205' AND source_name='4FGL J2323.8+4210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 15:39:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 827345: <4FGL_J2323.8+4210_daily_bin1205> in cluster <slac> Done

Job <4FGL_J2323.8+4210_daily_bin1205> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 15:30:14 2021
Job was executed on host(s) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 15:30:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 15:30:15 2021
Terminated at Wed Sep 29 15:39:16 2021
Results reported at Wed Sep 29 15:39:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.8+4210_daily_bin1205 350.975 42.1826 551664001 551923201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2323.8+4210 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   341.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             368.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   540 sec.
    Turnaround time :                            542 sec.

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

