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


Performing analysis on: 4FGL_J2323.8+4210_daily_bin1207
RA = 350.975, Dec = 42.1826
tmin = 552182401, tmax = 552441601
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='827348', job_status='RUN', time_executed='2021-09-29 15:30:29.667169', time_epoch_executed='1632954629.67' WHERE source_name='4FGL J2323.8+4210' and cadence='daily' and bin_id='1207'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/827348

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/827348/ft1_4FGL_J2323.8+4210_daily_bin1207.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/827348/ft2_4FGL_J2323.8+4210_daily_bin1207.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/827348/ft1_4FGL_J2323.8+4210_daily_bin1207.fits outfile=/scratch/kocevski/827348/ft1_filteredMKT_4FGL_J2323.8+4210_daily_bin1207.fits ra=350.975 dec=42.1826 rad=12.0 tmin=552182401.0 tmax=552441601.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.71
user 3.48
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/827348/ft2_4FGL_J2323.8+4210_daily_bin1207.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/827348/ft1_filteredMKT_4FGL_J2323.8+4210_daily_bin1207.fits evtable="EVENTS" outfile="/scratch/kocevski/827348/ft1_filtered_4FGL_J2323.8+4210_daily_bin1207.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.53
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/827348/ft1_filtered_4FGL_J2323.8+4210_daily_bin1207.fits" evtable="EVENTS" scfile=/scratch/kocevski/827348/ft2_4FGL_J2323.8+4210_daily_bin1207.fits sctable="SC_DATA" outfile=/scratch/kocevski/827348/ltcube_552182401_552441601_4FGL_J2323.8+4210_daily_bin1207.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/827348/ft2_4FGL_J2323.8+4210_daily_bin1207.fits
.....................!
real 11.79
user 11.38
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/827348/ft1_filtered_4FGL_J2323.8+4210_daily_bin1207.fits evtable="EVENTS" scfile=/scratch/kocevski/827348/ft2_4FGL_J2323.8+4210_daily_bin1207.fits sctable="SC_DATA" expcube=/scratch/kocevski/827348/ltcube_552182401_552441601_4FGL_J2323.8+4210_daily_bin1207.fits outfile=/scratch/kocevski/827348/expmap_552182401_552441601_4FGL_J2323.8+4210_daily_bin1207.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/827348/ltcube_552182401_552441601_4FGL_J2323.8+4210_daily_bin1207.fits
.....................!
real 193.82
user 187.92
sys 5.54

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/827348/ft1_filtered_4FGL_J2323.8+4210_daily_bin1207.fits scfile=/scratch/kocevski/827348/ft2_4FGL_J2323.8+4210_daily_bin1207.fits outfile=/scratch/kocevski/827348/cmap_552182401_552441601_4FGL_J2323.8+4210_daily_bin1207.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/827348/ft1_filtered_4FGL_J2323.8+4210_daily_bin1207.fits scfile=/scratch/kocevski/827348/ft2_4FGL_J2323.8+4210_daily_bin1207.fits outfile=/scratch/kocevski/827348/cmap_HighResolution_552182401_552441601_4FGL_J2323.8+4210_daily_bin1207.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/827348/ft1_filtered_4FGL_J2323.8+4210_daily_bin1207.fits evtable="EVENTS" scfile=/scratch/kocevski/827348/ft2_4FGL_J2323.8+4210_daily_bin1207.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/827348/Model_4FGL_J2323.8+4210_daily_bin1207.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/827348/ft1_filtered_4FGL_J2323.8+4210_daily_bin1207.fits.....................!
real 35.95
user 34.66
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    147.58       1.0000         .10000E-03   10000.    
     3 'norm      '    40.806       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    38.523       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.331       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.8371       1.0000         .10000E-03   10000.    
    15 'Prefactor '    35.698       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    12.095       1.0000         .10000E-03   10000.    
    18 'Prefactor '    40.200       1.0000         .10000E-03   10000.    
    19 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.350       1.0000         .10000E-03   10000.    
    21 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .17429       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1835       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=   2278.820     FROM MIGRAD    STATUS=CONVERGED   1058 CALLS     4501 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    161.87        .18142E-02** at limit **
   2  Prefactor     147.58        169.96        .33172E-04   -.37356E-05
   3  norm          40.812        40.335        .62751E-04   -.67033E-05
   4  Prefactor     .10000E-03    11.434        .15726E-02** at limit **
   5  norm          .10000E-03    13.822        .17336E-02** at limit **
   6  Prefactor     .10000E-03    6.1902        .11597E-02** at limit **
   7  Prefactor     .10000E-03    134.67        .18142E-02** at limit **
   8  Prefactor     .10000E-03    172.48        .18142E-02** at limit **
   9  Prefactor     38.524        26.918        .64577E-04   -.51054E-05
  10  norm          .10000E-03    6.8050        .12138E-02** at limit **
  11  Prefactor     .10000E-03    18.908        .18142E-02** at limit **
  12  Prefactor     26.332        29.832        .78069E-04   -.57521E-05
  13  Prefactor     .10000E-03    21.282        .18142E-02** at limit **
  14  norm          1.8372        2.1573        .72183E-04   -.21262E-04
  15  Prefactor     35.697        39.484        .67074E-04   -.73730E-05
  16  norm          .10000E-03    4.9955        .10371E-02** at limit **
  17  norm          12.093        36.364        .11518E-03   -.27636E-05
  18  Prefactor     40.204        39.965        .63220E-04   -.10340E-04
  19  norm          .10000E-03    16.420        .36285E-03** at limit **
  20  Prefactor     15.351        28.876        .51114E-03   -.29137E-05
  21  norm          .10000E-03    129.27        .18142E-02** at limit **
  22  Prefactor     .10000E-03    740.67        .18142E-02** at limit **
  23  Prefactor     .10000E-03    172.87        .18142E-02** at limit **
  24  Prefactor     .10000E-03    16.081        .18142E-02** at limit **
  25  Normalizat    .17425        .57933        .92264E-02    .13919E-03
  26  Prefactor     1.1835        .23904        .16344E-03   -.18085E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 147.584
  norm       = 40.8121
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.5237
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.3315
  Prefactor  = 0.0001
  norm       = 1.83721
  Prefactor  = 35.6967
  norm       = 0.0001
  norm       = 12.0929
  Prefactor  = 40.2043
  norm       = 0.0001
  Prefactor  = 15.3507
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.174246
  Prefactor  = 1.18351
 **********
 **   18 **HESSE 
 **********

 FCN=   2278.820     FROM HESSE     STATUS=OK           432 CALLS     4933 TOTAL
                     EDM=   .26E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    161.87        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     147.58        169.95        .66344E-05   -1.3272    
   3  norm          40.812        40.228        .25100E-05   -1.4429    
   4  Prefactor     .10000E-03    11.435        .31451E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    13.822        .34672E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.1903        .23195E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    134.67        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    172.48        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     38.524        26.916        .25831E-05   -1.4466    
  10  norm          .10000E-03    6.8051        .24276E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    18.909        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     26.332        29.833        .31228E-05   -1.4681    
  13  Prefactor     .10000E-03    21.282        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.8372        2.1571        .28873E-05   -1.5437    
  15  Prefactor     35.697        39.451        .26830E-05   -1.4512    
  16  norm          .10000E-03    4.9958        .20743E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          12.093        36.348        .46073E-05   -1.5012    
  18  Prefactor     40.204        39.483        .25288E-05   -1.4439    
  19  norm          .10000E-03    16.421        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     15.351        28.860        .20446E-04   -1.4924    
  21  norm          .10000E-03    129.27        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    740.71        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    172.87        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    16.083        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .17425        .55659        .18453E-02   -1.3136    
  26  Prefactor     1.1835        .23120        .65377E-05   -.86840    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5585e-12
Minuit parameter uncertainties:
  1  0.000148294
  2  170.522
  3  40.255
  4  3.65311e-06
  5  4.1084e-06
  6  4.66368e-06
  7  7.51632e-05
  8  3.64645e-05
  9  26.9247
  10  1.11021e-06
  11  1.52805e-06
  12  29.8502
  13  1.2061e-07
  14  2.15722
  15  39.4795
  16  1.99941e-06
  17  36.4142
  18  39.5084
  19  7.93475e-06
  20  28.8866
  21  2.03579e-05
  22  0.000336599
  23  9.09961e-05
  24  1.55294e-05
  25  0.57614
  26  0.2314
Done.

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

Extracting fit parameters...

4FGL J2323.8+4210
   Spectrum: LogParabola
458         norm:  1.209e+01  3.641e+01  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:  1.184e+00  2.314e-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.742e-01  5.761e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.13
Ra Dec: 350.975 42.183
Photon Flux Upper Limit: 2.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.61e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/827348/likelihoodResults_552182401_552441601_4FGL_J2323.8+4210_daily_bin1207.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) = 2278.6139343
delta logL = 0.205780042621

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2278.61339732
delta logL = 0.206317022925

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.819       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4283       1.0000          .0000       5.0000    
     3 'Normalizat'    .18188       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1701       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=   2278.613     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      278 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.803        26.121        .11653E-03   -.20171E-03
   2  alpha         2.4270        1.0078        .10841E-01   -.19066E-04
   3  Normalizat    .18155        .49639        .90670E-02    .26275E-04
   4  Prefactor     1.1704        .22346        .16405E-03   -.32645E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 11.8032
  alpha      = 2.42699
  Normalizat = 0.181546
  Prefactor  = 1.17037
 **********
 **   18 **HESSE 
 **********

 FCN=   2278.613     FROM HESSE     STATUS=OK            27 CALLS      305 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.803        24.492        .46610E-05   -1.5021    
   2  alpha         2.4270        .94811        .43364E-03   -.29208E-01
   3  Normalizat    .18155        .48089        .36268E-03   -1.3080    
   4  Prefactor     1.1704        .21620        .32810E-04   -.87248    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.6998e-10
Minuit parameter uncertainties:
  1  24.5127
  2  0.972469
  3  0.492638
  4  0.21636
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/827348': 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) = 2278.61339335
delta logL = 0.206321000408

Extracting fit parameters...

4FGL J2323.8+4210
   Spectrum: LogParabola
458         norm:  1.180e+01  2.451e+01  1.000e-04  1.000e+04 ( 1.000e-13)
459        alpha:  2.427e+00  9.725e-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:  1.170e+00  2.164e-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.815e-01  4.926e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.13
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/827348/cmap_HighResolution_552182401_552441601_4FGL_J2323.8+4210_daily_bin1207.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.61e-04', job_status='DONE', photon_flux_upper_limit='2.12e-07', time_completed='2021-09-29 15:38:45.489742', job_id='827348', GAL2='1.17', fit_tolerance='1e-08', EG2='0.18', EG='0.17', time_epoch_completed='1632955125.49', return_code2='0', ts='0.13', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='2.06e-01', ts2='0.55', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='1207' AND source_name='4FGL J2323.8+4210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 15:38:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 827348: <4FGL_J2323.8+4210_daily_bin1207> in cluster <slac> Done

Job <4FGL_J2323.8+4210_daily_bin1207> 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) <bullet0218>, 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:38:46 2021
Results reported at Wed Sep 29 15:38:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.8+4210_daily_bin1207 350.975 42.1826 552182401 552441601 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 :                                   491.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             344.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   510 sec.
    Turnaround time :                            512 sec.

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

