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


Performing analysis on: 4FGL_J2323.8+4210_daily_bin1499
RA = 350.975, Dec = 42.1826
tmin = 627868801, tmax = 628128001
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='828870', job_status='RUN', time_executed='2021-09-29 15:37:35.496287', time_epoch_executed='1632955055.5' WHERE source_name='4FGL J2323.8+4210' and cadence='daily' and bin_id='1499'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/828870

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/828870/ft1_4FGL_J2323.8+4210_daily_bin1499.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/828870/ft2_4FGL_J2323.8+4210_daily_bin1499.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/828870/ft1_4FGL_J2323.8+4210_daily_bin1499.fits outfile=/scratch/kocevski/828870/ft1_filteredMKT_4FGL_J2323.8+4210_daily_bin1499.fits ra=350.975 dec=42.1826 rad=12.0 tmin=627868801.0 tmax=628128001.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 2.49
user 2.26
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/828870/ft2_4FGL_J2323.8+4210_daily_bin1499.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/828870/ft1_filteredMKT_4FGL_J2323.8+4210_daily_bin1499.fits evtable="EVENTS" outfile="/scratch/kocevski/828870/ft1_filtered_4FGL_J2323.8+4210_daily_bin1499.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.52
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/828870/ft1_filtered_4FGL_J2323.8+4210_daily_bin1499.fits" evtable="EVENTS" scfile=/scratch/kocevski/828870/ft2_4FGL_J2323.8+4210_daily_bin1499.fits sctable="SC_DATA" outfile=/scratch/kocevski/828870/ltcube_627868801_628128001_4FGL_J2323.8+4210_daily_bin1499.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/828870/ft2_4FGL_J2323.8+4210_daily_bin1499.fits
.....................!
real 12.29
user 11.95
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/828870/ft1_filtered_4FGL_J2323.8+4210_daily_bin1499.fits evtable="EVENTS" scfile=/scratch/kocevski/828870/ft2_4FGL_J2323.8+4210_daily_bin1499.fits sctable="SC_DATA" expcube=/scratch/kocevski/828870/ltcube_627868801_628128001_4FGL_J2323.8+4210_daily_bin1499.fits outfile=/scratch/kocevski/828870/expmap_627868801_628128001_4FGL_J2323.8+4210_daily_bin1499.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/828870/ltcube_627868801_628128001_4FGL_J2323.8+4210_daily_bin1499.fits
.....................!
real 192.35
user 187.20
sys 4.82

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/828870/ft1_filtered_4FGL_J2323.8+4210_daily_bin1499.fits scfile=/scratch/kocevski/828870/ft2_4FGL_J2323.8+4210_daily_bin1499.fits outfile=/scratch/kocevski/828870/cmap_627868801_628128001_4FGL_J2323.8+4210_daily_bin1499.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/828870/ft1_filtered_4FGL_J2323.8+4210_daily_bin1499.fits scfile=/scratch/kocevski/828870/ft2_4FGL_J2323.8+4210_daily_bin1499.fits outfile=/scratch/kocevski/828870/cmap_HighResolution_627868801_628128001_4FGL_J2323.8+4210_daily_bin1499.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.51
user 0.36
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/828870/ft1_filtered_4FGL_J2323.8+4210_daily_bin1499.fits evtable="EVENTS" scfile=/scratch/kocevski/828870/ft2_4FGL_J2323.8+4210_daily_bin1499.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/828870/Model_4FGL_J2323.8+4210_daily_bin1499.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/828870/ft1_filtered_4FGL_J2323.8+4210_daily_bin1499.fits.....................!
real 87.09
user 85.74
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/828870/ft1_filtered_4FGL_J2323.8+4210_daily_bin1499.fits', '/scratch/kocevski/828870/ft2_4FGL_J2323.8+4210_daily_bin1499.fits', expMap='/scratch/kocevski/828870/expmap_627868801_628128001_4FGL_J2323.8+4210_daily_bin1499.fits', expCube='/scratch/kocevski/828870/ltcube_627868801_628128001_4FGL_J2323.8+4210_daily_bin1499.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/828870/Model_4FGL_J2323.8+4210_daily_bin1499.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/828870/ft1_filtered_4FGL_J2323.8+4210_daily_bin1499.fits
Spacecraft file(s): /scratch/kocevski/828870/ft2_4FGL_J2323.8+4210_daily_bin1499.fits
Exposure map: /scratch/kocevski/828870/expmap_627868801_628128001_4FGL_J2323.8+4210_daily_bin1499.fits
Exposure cube: /scratch/kocevski/828870/ltcube_627868801_628128001_4FGL_J2323.8+4210_daily_bin1499.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/828870/Model_4FGL_J2323.8+4210_daily_bin1499.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) = 7242.56790684

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9352       1.0000         .10000E-03   10000.    
     2 'Prefactor '    64.663       1.0000         .10000E-03   10000.    
     3 'norm      '    .10096E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10092E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    128.15       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.0340       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.2120       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.4955       1.0000         .10000E-03   10000.    
    17 'norm      '    4.0535       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.8279       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10991E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.0357       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    12.991       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .99048       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .93931       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=   7242.559     FROM MIGRAD    STATUS=CONVERGED    624 CALLS     3545 TOTAL
                     EDM=   .50E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.8680        925.86        .88409E-05   -.21693E-05
   2  Prefactor     64.724        85.452       -.54378E-06    .23253E-04
   3  norm          .10000E-03    16.190        .36043E-06** at limit **
   4  Prefactor     .10000E-03    4.1970        .24571E-07** at limit **
   5  norm          .10000E-03    6.7340       -.10296E-05** at limit **
   6  Prefactor     .10000E-03    5.5457       -.29811E-06** at limit **
   7  Prefactor     128.08        97.722       -.30848E-05   -.53293E-04
   8  Prefactor     .10000E-03    33.009       -.28040E-06** at limit **
   9  Prefactor     .10000E-03    1.9693       -.32952E-07** at limit **
  10  norm          .10000E-03    1.0147       -.76175E-07** at limit **
  11  Prefactor     .10000E-03    5.0184       -.55161E-08** at limit **
  12  Prefactor     1.0341        5.8666        .31991E-05   -.38138E-04
  13  Prefactor     3.2060        48.769        .11425E-05   -.13399E-05
  14  norm          .10000E-03    .56556        .31038E-07** at limit **
  15  Prefactor     .10000E-03    10.935       -.65820E-07** at limit **
  16  norm          4.4961        5.8896        .22891E-06    .62572E-05
  17  norm          4.0532        8.2710        .21679E-06   -.35277E-05
  18  Prefactor     .10000E-03    14.594       -.41149E-06** at limit **
  19  norm          1.8279        1.9745       -.11876E-07   -.11130E-04
  20  Prefactor     .10009E-03    21.326        .95404E-06** at limit **
  21  norm          .10000E-03    12.579        .16719E-06** at limit **
  22  Prefactor     2.0357        605.25        .29125E-05    .38502E-06
  23  Prefactor     .10000E-03    38.089        .23388E-06** at limit **
  24  Prefactor     12.991        11.307        .12459E-06   -.18746E-04
  25  Normalizat    .99048        .25774       -.12382E-05   -.74301E-04
  26  Prefactor     .93931        .83606E-01   -.28781E-07   -.20534E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.86796
  Prefactor  = 64.7236
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 128.084
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.03406
  Prefactor  = 3.20596
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.4961
  norm       = 4.05322
  Prefactor  = 0.0001
  norm       = 1.82785
  Prefactor  = 0.000100094
  norm       = 0.0001
  Prefactor  = 2.03574
  Prefactor  = 0.0001
  Prefactor  = 12.991
  Normalizat = 0.990477
  Prefactor  = 0.939315
 **********
 **   18 **HESSE 
 **********

 FCN=   7242.559     FROM HESSE     STATUS=OK           452 CALLS     3997 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.8680        912.75        .18104E-03   -1.5267    
   2  Prefactor     64.724        84.654        .49906E-04   -1.4097    
   3  norm          .10000E-03    16.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.1991        .17027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    6.7900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.5545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     128.08        98.919        .17782E-03   -1.3440    
   8  Prefactor     .10000E-03    33.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.9873        .11661E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.0259        .83768E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.0207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.0341        5.9251        .39301E-03   -1.5505    
  13  Prefactor     3.2060        48.736        .22605E-03   -1.5350    
  14  norm          .10000E-03    .57976        .12485E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.4961        5.8835        .18989E-03   -1.5284    
  17  norm          4.0532        8.2566        .20027E-03   -1.5305    
  18  Prefactor     .10000E-03    14.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.8279        1.9761        .12089E-03   -1.5438    
  20  Prefactor     .10009E-03    204.07        .75487E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    12.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.0357        604.92        .28989E-03   -1.5423    
  23  Prefactor     .10000E-03    38.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     12.991        11.323        .11113E-03   -1.4987    
  25  Normalizat    .99048        .28435        .42585E-03   -.93350    
  26  Prefactor     .93931        .93194E-01    .14479E-03   -.94781    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.71234e-10
Minuit parameter uncertainties:
  1  135.465
  2  84.8117
  3  2.75738e-05
  4  2.06618e-06
  5  4.15757e-06
  6  1.22202e-05
  7  99.0472
  8  2.20723e-05
  9  2.45929e-06
  10  4.25658e-06
  11  2.14634e-06
  12  4.95102
  13  25.0235
  14  4.6621e-07
  15  1.31004e-06
  16  5.8843
  17  8.25889
  18  2.60172e-05
  19  1.97614
  20  0.00878222
  21  1.74921e-05
  22  70.9177
  23  2.57856e-05
  24  11.3252
  25  0.284786
  26  0.0932096
Done.

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

Extracting fit parameters...

4FGL J2323.8+4210
   Spectrum: LogParabola
458         norm:  4.053e+00  8.259e+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

GAL_V02
   Spectrum: PowerLaw
551    Prefactor:  9.393e-01  9.321e-02  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:  9.905e-01  2.848e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.35
Ra Dec: 350.975 42.183
Photon Flux Upper Limit: 6.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.56e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/828870/likelihoodResults_627868801_628128001_4FGL_J2323.8+4210_daily_bin1499.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) = 7242.50833947
delta logL = 0.0505654064928

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7242.49961668
delta logL = 0.0592881940738

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0007       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2683       1.0000          .0000       5.0000    
     3 'Normalizat'    .98422       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94010       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.

 FCN=   7242.500     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      219 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9883        196.01        .58581E-02    .31537E-03
   2  alpha         2.2701        2.9228        .41377        .32328E-04
   3  Normalizat    .98437        .85549E-01    .96392E-01    .24462E-04
   4  Prefactor     .94007        .23612E-01    .32754E-01   -.91433E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.9883
  alpha      = 2.27012
  Normalizat = 0.984371
  Prefactor  = 0.940068
 **********
 **   18 **HESSE 
 **********

 FCN=   7242.500     FROM HESSE     STATUS=OK            33 CALLS      252 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9883        9.0775        .23432E-03   -1.5362    
   2  alpha         2.2701        1.7244        .23914E-01   -.92082E-01
   3  Normalizat    .98437        .27760        .42701E-03   -.93556    
   4  Prefactor     .94007        .92547E-01    .14473E-03   -.94755    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32286e-11
Minuit parameter uncertainties:
  1  9.0817
  2  1.90498
  3  0.278012
  4  0.0925622
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/828870': 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) = 7242.49961516
delta logL = 0.0592897197766

Extracting fit parameters...

4FGL J2323.8+4210
   Spectrum: LogParabola
458         norm:  2.988e+00  9.082e+00  1.000e-04  1.000e+04 ( 1.000e-13)
459        alpha:  2.270e+00  1.905e+00  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:  9.401e-01  9.256e-02  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:  9.844e-01  2.780e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.35
Ra Dec: 350.975 42.183

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/828870/cmap_HighResolution_627868801_628128001_4FGL_J2323.8+4210_daily_bin1499.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.56e-05', job_status='DONE', photon_flux_upper_limit='6.14e-08', time_completed='2021-09-29 15:51:44.078174', job_id='828870', GAL2='0.94', fit_tolerance='1e-08', EG2='0.98', EG='0.99', time_epoch_completed='1632955904.08', return_code2='0', ts='0.35', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='5.93e-02', ts2='0.47', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='1499' AND source_name='4FGL J2323.8+4210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 15:51:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 828870: <4FGL_J2323.8+4210_daily_bin1499> in cluster <slac> Done

Job <4FGL_J2323.8+4210_daily_bin1499> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 15:35:19 2021
Job was executed on host(s) <bullet0121>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 15:35:21 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:35:21 2021
Terminated at Wed Sep 29 15:51:44 2021
Results reported at Wed Sep 29 15:51:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.8+4210_daily_bin1499 350.975 42.1826 627868801 628128001 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 :                                   840.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   983 sec.
    Turnaround time :                            985 sec.

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

