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


Performing analysis on: 4FGL_J2323.8+4210_daily_bin589
RA = 350.975, Dec = 42.1826
tmin = 391996801, tmax = 392256001
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='823782', job_status='RUN', time_executed='2021-09-29 15:15:57.303828', time_epoch_executed='1632953757.3' WHERE source_name='4FGL J2323.8+4210' and cadence='daily' and bin_id='589'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/823782

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/823782/ft1_4FGL_J2323.8+4210_daily_bin589.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/823782/ft2_4FGL_J2323.8+4210_daily_bin589.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/823782/ft1_4FGL_J2323.8+4210_daily_bin589.fits outfile=/scratch/kocevski/823782/ft1_filteredMKT_4FGL_J2323.8+4210_daily_bin589.fits ra=350.975 dec=42.1826 rad=12.0 tmin=391996801.0 tmax=392256001.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 5.35
user 5.10
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/823782/ft1_filtered_4FGL_J2323.8+4210_daily_bin589.fits" evtable="EVENTS" scfile=/scratch/kocevski/823782/ft2_4FGL_J2323.8+4210_daily_bin589.fits sctable="SC_DATA" outfile=/scratch/kocevski/823782/ltcube_391996801_392256001_4FGL_J2323.8+4210_daily_bin589.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/823782/ft2_4FGL_J2323.8+4210_daily_bin589.fits
.....................!
real 11.62
user 11.25
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/823782/ft1_filtered_4FGL_J2323.8+4210_daily_bin589.fits evtable="EVENTS" scfile=/scratch/kocevski/823782/ft2_4FGL_J2323.8+4210_daily_bin589.fits sctable="SC_DATA" expcube=/scratch/kocevski/823782/ltcube_391996801_392256001_4FGL_J2323.8+4210_daily_bin589.fits outfile=/scratch/kocevski/823782/expmap_391996801_392256001_4FGL_J2323.8+4210_daily_bin589.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/823782/ltcube_391996801_392256001_4FGL_J2323.8+4210_daily_bin589.fits
.....................!
real 190.36
user 185.80
sys 4.19

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/823782/ft1_filtered_4FGL_J2323.8+4210_daily_bin589.fits scfile=/scratch/kocevski/823782/ft2_4FGL_J2323.8+4210_daily_bin589.fits outfile=/scratch/kocevski/823782/cmap_391996801_392256001_4FGL_J2323.8+4210_daily_bin589.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/823782/ft1_filtered_4FGL_J2323.8+4210_daily_bin589.fits scfile=/scratch/kocevski/823782/ft2_4FGL_J2323.8+4210_daily_bin589.fits outfile=/scratch/kocevski/823782/cmap_HighResolution_391996801_392256001_4FGL_J2323.8+4210_daily_bin589.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    35.429       1.0000         .10000E-03   10000.    
     3 'norm      '    .16097E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.3321       1.0000         .10000E-03   10000.    
     5 'norm      '    .99023       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.9150       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.188       1.0000         .10000E-03   10000.    
     8 'Prefactor '    71.562       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .11628E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    33.597       1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10205E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    27.423       1.0000         .10000E-03   10000.    
    17 'norm      '    14.017       1.0000         .10000E-03   10000.    
    18 'Prefactor '    31.943       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    7.5018       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    109.18       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10712E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .87610       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .86470       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=   9604.843     FROM MIGRAD    STATUS=CONVERGED    606 CALLS     3118 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.756       -.10744E-04** at limit **
   2  Prefactor     35.432        23.724        .48271E-05    .55254E-04
   3  norm          .10000E-03    26.403        .21406E-04** at limit **
   4  Prefactor     5.3314        7.5628       -.14018E-05   -.51158E-03
   5  norm          .99049        1.0739        .33054E-06    .12733E-02
   6  Prefactor     1.9215        4.5293        .72050E-05   -.50735E-03
   7  Prefactor     10.143        26.835       -.50707E-04   -.14119E-03
   8  Prefactor     71.570        71.591        .86709E-05    .26532E-05
   9  Prefactor     .10000E-03    1.6775        .11025E-06** at limit **
  10  norm          .10000E-03    1.2132       -.94133E-07** at limit **
  11  Prefactor     .10000E-03    16.264       -.22327E-06** at limit **
  12  Prefactor     .10000E-03    2.9668        .37624E-07** at limit **
  13  Prefactor     33.582        31.542       -.13047E-04   -.25482E-05
  14  norm          .10000E-03    .60088        .19033E-06** at limit **
  15  Prefactor     .10000E-03    22.820       -.36186E-05** at limit **
  16  norm          27.422        9.3626        .46019E-06   -.10566E-03
  17  norm          14.016        9.4220        .11926E-06    .37688E-03
  18  Prefactor     31.940        28.749       -.27167E-05   -.41249E-04
  19  norm          .10000E-03    .81310       -.17002E-06** at limit **
  20  Prefactor     .10000E-03    12.635        .15874E-04** at limit **
  21  norm          7.5019        6.4624        .68489E-07    .17420E-04
  22  Prefactor     .10000E-03    20.186       -.19867E-04** at limit **
  23  Prefactor     109.18        63.579       -.16537E-05   -.25099E-03
  24  Prefactor     .10000E-03    5.8591        .11410E-07** at limit **
  25  Normalizat    .87608        .23129        .37669E-05   -.19651E-03
  26  Prefactor     .86469        .73590E-01   -.48502E-07   -.19006E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 35.4322
  norm       = 0.0001
  Prefactor  = 5.33137
  norm       = 0.990487
  Prefactor  = 1.92154
  Prefactor  = 10.1434
  Prefactor  = 71.57
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.5825
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 27.4218
  norm       = 14.0162
  Prefactor  = 31.9404
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 7.50186
  Prefactor  = 0.0001
  Prefactor  = 109.18
  Prefactor  = 0.0001
  Normalizat = 0.876084
  Prefactor  = 0.864694
 **********
 **   18 **HESSE 
 **********

 FCN=   9604.843     FROM HESSE     STATUS=OK           460 CALLS     3578 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     35.432        23.747        .67328E-04   -1.4517    
   3  norm          .10000E-03    26.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.3314        7.5483        .17405E-03   -1.5246    
   5  norm          .99049        1.0233        .10321E-02   -1.5509    
   6  Prefactor     1.9215        4.4155        .26453E-03   -1.5431    
   7  Prefactor     10.143        26.381        .12554E-03   -1.5071    
   8  Prefactor     71.570        71.594        .23728E-03   -1.4014    
   9  Prefactor     .10000E-03    1.6809        .12393E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.1232        .20997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.9844        .16481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     33.582        31.470        .69133E-04   -1.4548    
  14  norm          .10000E-03    .96694        .14633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    23.702        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          27.422        9.3539        .76501E-04   -1.4660    
  17  norm          14.016        9.4231        .53492E-03   -1.4959    
  18  Prefactor     31.940        28.854        .70895E-04   -1.4577    
  19  norm          .10000E-03    .82458        .86283E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          7.5019        6.4635        .14642E-03   -1.5160    
  22  Prefactor     .10000E-03    20.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     109.18        63.391        .38492E-04   -1.3614    
  24  Prefactor     .10000E-03    5.8872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .87608        .25823        .42825E-03   -.97306    
  26  Prefactor     .86469        .82905E-01    .14532E-03   -.97386    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05446e-09
Minuit parameter uncertainties:
  1  3.87728e-06
  2  23.7532
  3  0.000142685
  4  7.54962
  5  1.02336
  6  4.4162
  7  26.4117
  8  71.6802
  9  3.40826e-06
  10  1.62893e-05
  11  6.04444e-06
  12  9.72312e-07
  13  31.4858
  14  1.98369e-05
  15  0.000172322
  16  9.35444
  17  9.42412
  18  28.8662
  19  3.25727e-07
  20  5.61377e-05
  21  6.46413
  22  1.51474e-05
  23  63.4303
  24  5.71612e-06
  25  0.258596
  26  0.0829173
Done.

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

Extracting fit parameters...

4FGL J2323.8+4210
   Spectrum: LogParabola
458         norm:  1.402e+01  9.424e+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:  8.647e-01  8.292e-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:  8.761e-01  2.586e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.89
Ra Dec: 350.975 42.183
Photon Index (Fixed Index): 1.78 +/- 0.00
Photon Flux (Fixed Index): 2.66e-08 +/- 1.79e-08
Energy Flux (Fixed Index): 3.28e-05 +/- 2.21e-05

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) = 9604.63484777
delta logL = 0.207859605023

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9604.63321552
delta logL = 0.209491853686

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.764       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2653       1.0000          .0000       5.0000    
     3 'Normalizat'    .84659       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86811       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=   9604.633     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      325 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.762        10.278        .11680E-03   -.29785E-04
   2  alpha         2.2657        .75039        .13421E-01    .28220E-04
   3  Normalizat    .84659        .24643        .43492E-03   -.38530E-04
   4  Prefactor     .86817        .81590E-01    .14502E-03   -.37350E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 11.7622
  alpha      = 2.26571
  Normalizat = 0.84659
  Prefactor  = 0.868166
 **********
 **   18 **HESSE 
 **********

 FCN=   9604.633     FROM HESSE     STATUS=OK            25 CALLS      350 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.762        9.4408        .46720E-05   -1.5022    
   2  alpha         2.2657        .68962        .53683E-03   -.93853E-01
   3  Normalizat    .84659        .24519        .17397E-04   -.98363    
   4  Prefactor     .86817        .81522E-01    .29004E-04   -.97263    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.97153e-11
Minuit parameter uncertainties:
  1  9.442
  2  0.698763
  3  0.245509
  4  0.0815335
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/823782': 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) = 9604.63321428
delta logL = 0.20949309495

Extracting fit parameters...

4FGL J2323.8+4210
   Spectrum: LogParabola
458         norm:  1.176e+01  9.442e+00  1.000e-04  1.000e+04 ( 1.000e-13)
459        alpha:  2.266e+00  6.988e-01  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:  8.682e-01  8.153e-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:  8.466e-01  2.455e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.30
Ra Dec: 350.975 42.183
Photon Index (Free Index): 2.27 +/- 0.70
Photon Flux (Free Index): 5.47e-08 +/- 5.84e-08
Energy Flux (Free Index): 2.48e-05 +/- 1.53e-05

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/823782/cmap_HighResolution_391996801_392256001_4FGL_J2323.8+4210_daily_bin589.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.66e-08', energy_flux2='2.48e-05', photon_flux_error='1.79e-08', dlogl='2.09e-01', energy_flux='3.28e-05', photon_flux2='5.47e-08', job_status='DONE', time_completed='2021-09-29 15:30:21.807628', photon_index_error2='0.70', photon_index2='2.27', ts='8.89', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='1.53e-05', EG='0.88', time_epoch_completed='1632954621.81', return_code='0', job_id='823782', GAL2='0.87', EG2='0.85', return_code2='0', energy_flux_error='2.21e-05', photon_flux_error2='5.84e-08', ts2='9.30', photon_index='1.78' WHERE bin_id='589' AND source_name='4FGL J2323.8+4210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 15:30:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 823782: <4FGL_J2323.8+4210_daily_bin589> in cluster <slac> Done

Job <4FGL_J2323.8+4210_daily_bin589> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 15:15:40 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 15:15:41 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:15:41 2021
Terminated at Wed Sep 29 15:30:22 2021
Results reported at Wed Sep 29 15:30:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.8+4210_daily_bin589 350.975 42.1826 391996801 392256001 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 :                                   860.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             340.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            882 sec.

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

