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


Performing analysis on: 4FGL_J2323.8+4210_daily_bin600
RA = 350.975, Dec = 42.1826
tmin = 394848001, tmax = 395107201
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='823799', job_status='RUN', time_executed='2021-09-29 15:15:58.687978', time_epoch_executed='1632953758.69' WHERE source_name='4FGL J2323.8+4210' and cadence='daily' and bin_id='600'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/823799

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/823799/ft1_4FGL_J2323.8+4210_daily_bin600.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/823799/ft2_4FGL_J2323.8+4210_daily_bin600.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/823799/ft1_4FGL_J2323.8+4210_daily_bin600.fits outfile=/scratch/kocevski/823799/ft1_filteredMKT_4FGL_J2323.8+4210_daily_bin600.fits ra=350.975 dec=42.1826 rad=12.0 tmin=394848001.0 tmax=395107201.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.23
user 4.99
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/823799/ft2_4FGL_J2323.8+4210_daily_bin600.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/823799/ft1_filteredMKT_4FGL_J2323.8+4210_daily_bin600.fits evtable="EVENTS" outfile="/scratch/kocevski/823799/ft1_filtered_4FGL_J2323.8+4210_daily_bin600.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/823799/ft1_filtered_4FGL_J2323.8+4210_daily_bin600.fits" evtable="EVENTS" scfile=/scratch/kocevski/823799/ft2_4FGL_J2323.8+4210_daily_bin600.fits sctable="SC_DATA" outfile=/scratch/kocevski/823799/ltcube_394848001_395107201_4FGL_J2323.8+4210_daily_bin600.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/823799/ft2_4FGL_J2323.8+4210_daily_bin600.fits
.....................!
real 11.25
user 10.90
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/823799/ft1_filtered_4FGL_J2323.8+4210_daily_bin600.fits evtable="EVENTS" scfile=/scratch/kocevski/823799/ft2_4FGL_J2323.8+4210_daily_bin600.fits sctable="SC_DATA" expcube=/scratch/kocevski/823799/ltcube_394848001_395107201_4FGL_J2323.8+4210_daily_bin600.fits outfile=/scratch/kocevski/823799/expmap_394848001_395107201_4FGL_J2323.8+4210_daily_bin600.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/823799/ltcube_394848001_395107201_4FGL_J2323.8+4210_daily_bin600.fits
.....................!
real 190.65
user 185.90
sys 4.38

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/823799/ft1_filtered_4FGL_J2323.8+4210_daily_bin600.fits scfile=/scratch/kocevski/823799/ft2_4FGL_J2323.8+4210_daily_bin600.fits outfile=/scratch/kocevski/823799/cmap_394848001_395107201_4FGL_J2323.8+4210_daily_bin600.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/823799/ft1_filtered_4FGL_J2323.8+4210_daily_bin600.fits scfile=/scratch/kocevski/823799/ft2_4FGL_J2323.8+4210_daily_bin600.fits outfile=/scratch/kocevski/823799/cmap_HighResolution_394848001_395107201_4FGL_J2323.8+4210_daily_bin600.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.800       1.0000         .10000E-03   10000.    
     3 'norm      '    10.015       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.0226       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.9581       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.3968       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .81348       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .21813E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.6266       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.6211       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.5958       1.0000         .10000E-03   10000.    
    16 'norm      '    38.518       1.0000         .10000E-03   10000.    
    17 'norm      '    9.1900       1.0000         .10000E-03   10000.    
    18 'Prefactor '    86.679       1.0000         .10000E-03   10000.    
    19 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.1141       1.0000         .10000E-03   10000.    
    21 'norm      '    .74818       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1421       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .85679       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=   9518.174     FROM MIGRAD    STATUS=CONVERGED    611 CALLS     2679 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.6132        .11535E-06** at limit **
   2  Prefactor     19.790        18.048       -.51188E-06   -.91697E-04
   3  norm          10.008        18.223       -.20398E-05   -.71072E-04
   4  Prefactor     7.0221        7.3611        .22229E-05   -.38577E-03
   5  norm          .10000E-03    .57009        .77758E-08** at limit **
   6  Prefactor     1.9569        2.9112        .34176E-06   -.11818E-03
   7  Prefactor     .10000E-03    9.5158       -.30211E-06** at limit **
   8  Prefactor     5.4003        168.87        .23074E-05    .83931E-05
   9  Prefactor     .10000E-03    2.2674       -.16161E-06** at limit **
  10  norm          .81498        2.8077        .15365E-05   -.23809E-03
  11  Prefactor     .10000E-03    7.4188       -.10745E-06** at limit **
  12  Prefactor     1.6261        3.8768        .37633E-06   -.17559E-03
  13  Prefactor     .10000E-03    13.384        .53513E-06** at limit **
  14  norm          1.6205        1.5875        .16005E-06   -.10366E-03
  15  Prefactor     7.5910        11.224        .66131E-07   -.29544E-04
  16  norm          38.522        11.389        .71095E-06    .66343E-04
  17  norm          9.1904        9.0008        .26544E-06   -.43767E-04
  18  Prefactor     86.651        30.318       -.23852E-05   -.77526E-03
  19  norm          .10000E-03    .95328        .19318E-07** at limit **
  20  Prefactor     8.1020        17.567       -.23777E-06   -.61229E-04
  21  norm          .74901        9.1291        .40754E-05   -.24693E-03
  22  Prefactor     .10000E-03    20.765       -.17240E-05** at limit **
  23  Prefactor     .10000E-03    25.546        .16725E-05** at limit **
  24  Prefactor     .10000E-03    4.2213       -.10824E-06** at limit **
  25  Normalizat    1.1428        .22510        .10981E-05   -.12896E-03
  26  Prefactor     .85655        .74646E-01   -.83412E-06    .61411E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 19.7903
  norm       = 10.008
  Prefactor  = 7.02205
  norm       = 0.0001
  Prefactor  = 1.95689
  Prefactor  = 0.0001
  Prefactor  = 5.40025
  Prefactor  = 0.0001
  norm       = 0.814984
  Prefactor  = 0.0001
  Prefactor  = 1.62615
  Prefactor  = 0.0001
  norm       = 1.62049
  Prefactor  = 7.59098
  norm       = 38.5217
  norm       = 9.19045
  Prefactor  = 86.6508
  norm       = 0.0001
  Prefactor  = 8.10204
  norm       = 0.749008
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 1.14282
  Prefactor  = 0.856551
 **********
 **   18 **HESSE 
 **********

 FCN=   9518.174     FROM HESSE     STATUS=OK           460 CALLS     3139 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.6170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.790        18.082        .90012E-04   -1.4818    
   3  norm          10.008        18.205        .12662E-03   -1.5075    
   4  Prefactor     7.0221        7.4347        .75691E-03   -1.5178    
   5  norm          .10000E-03    .57407        .71934E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.9569        2.8976        .19514E-03   -1.5428    
   7  Prefactor     .10000E-03    9.5501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.4003        168.90        .17298E-03   -1.5243    
   9  Prefactor     .10000E-03    2.2774        .14332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .81498        2.7846        .28863E-03   -1.5527    
  11  Prefactor     .10000E-03    43.237        .51618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.6261        3.7991        .28241E-03   -1.5453    
  13  Prefactor     .10000E-03    13.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.6205        1.5711        .11528E-03   -1.5453    
  15  Prefactor     7.5910        11.248        .14551E-03   -1.5157    
  16  norm          38.522        11.554        .64581E-04   -1.4466    
  17  norm          9.1904        9.0015        .66103E-03   -1.5102    
  18  Prefactor     86.651        32.047        .43152E-04   -1.3844    
  19  norm          .10000E-03    .96256        .92974E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.1020        17.581        .14075E-03   -1.5139    
  21  norm          .74901        9.4862        .48981E-03   -1.5535    
  22  Prefactor     .10000E-03    20.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    25.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    4.2463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1428        .25909        .38772E-03   -.88389    
  26  Prefactor     .85655        .85795E-01    .15519E-03   -.97676    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34803e-09
Minuit parameter uncertainties:
  1  1.52981e-05
  2  18.0865
  3  18.2146
  4  7.43563
  5  2.23884e-07
  6  2.89783
  7  3.77593e-05
  8  60.5887
  9  1.2781e-05
  10  2.78507
  11  0.000124727
  12  3.79964
  13  7.42434e-05
  14  1.57116
  15  11.2512
  16  11.5547
  17  9.00282
  18  32.0538
  19  1.55008e-07
  20  17.5918
  21  5.33182
  22  0.00032188
  23  0.000352415
  24  7.74912e-06
  25  0.259375
  26  0.0858081
Done.

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

Extracting fit parameters...

4FGL J2323.8+4210
   Spectrum: LogParabola
458         norm:  9.190e+00  9.003e+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.566e-01  8.581e-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:  1.143e+00  2.594e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.64
Ra Dec: 350.975 42.183
Photon Index (Fixed Index): 1.78 +/- 0.00
Photon Flux (Fixed Index): 1.75e-08 +/- 1.71e-08
Energy Flux (Fixed Index): 2.15e-05 +/- 2.11e-05

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

Saving results to:
/scratch/kocevski/823799/likelihoodResults_394848001_395107201_4FGL_J2323.8+4210_daily_bin600.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) = 9517.90290923
delta logL = 0.271025141787

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9517.89859168
delta logL = 0.275342692417

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.4410       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3318       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1241       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85765       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=   9517.899     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      303 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.4391        8.6562        .14703E-03   -.34935E-03
   2  alpha         2.3325        .73941        .12317E-01   -.72255E-04
   3  Normalizat    1.1241        .23857        .39045E-03   -.55336E-03
   4  Prefactor     .85770        .83712E-01    .15506E-03   -.16104E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 7.43905
  alpha      = 2.33254
  Normalizat = 1.12415
  Prefactor  = 0.857698
 **********
 **   18 **HESSE 
 **********

 FCN=   9517.899     FROM HESSE     STATUS=OK            25 CALLS      328 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.4391        8.0364        .58810E-05   -1.5162    
   2  alpha         2.3325        .68740        .49269E-03   -.67034E-01
   3  Normalizat    1.1241        .23832        .78090E-04   -.88980    
   4  Prefactor     .85770        .83721E-01    .31012E-04   -.97635    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.85966e-10
Minuit parameter uncertainties:
  1  8.03751
  2  0.696412
  3  0.238551
  4  0.0837337
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/823799': 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) = 9517.89858966
delta logL = 0.27534471764

Extracting fit parameters...

4FGL J2323.8+4210
   Spectrum: LogParabola
458         norm:  7.439e+00  8.038e+00  1.000e-04  1.000e+04 ( 1.000e-13)
459        alpha:  2.333e+00  6.964e-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.577e-01  8.373e-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:  1.124e+00  2.386e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.19
Ra Dec: 350.975 42.183
Photon Index (Free Index): 2.33 +/- 0.70
Photon Flux (Free Index): 3.97e-08 +/- 4.37e-08
Energy Flux (Free Index): 1.63e-05 +/- 1.38e-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/823799/cmap_HighResolution_394848001_395107201_4FGL_J2323.8+4210_daily_bin600.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.98e-05', comment='SUCCESS', photon_flux='1.75e-08', energy_flux2='1.63e-05', photon_flux_error='1.71e-08', dlogl='2.75e-01', energy_flux='2.15e-05', photon_flux2='3.97e-08', job_status='DONE', time_completed='2021-09-29 15:31:54.759568', photon_index_error2='0.70', photon_index2='2.33', ts='2.64', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='6.48e-08', energy_flux_error2='1.38e-05', EG='1.14', time_epoch_completed='1632954714.76', return_code='0', job_id='823799', GAL2='0.86', EG2='1.12', return_code2='0', energy_flux_error='2.11e-05', photon_flux_error2='4.37e-08', ts2='3.19', photon_index='1.78' WHERE bin_id='600' AND source_name='4FGL J2323.8+4210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 15:31:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 823799: <4FGL_J2323.8+4210_daily_bin600> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.8+4210_daily_bin600 350.975 42.1826 394848001 395107201 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 :                                   952.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             314.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   973 sec.
    Turnaround time :                            974 sec.

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

