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


Performing analysis on: 4FGL_J2323.8+4210_daily_bin1532
RA = 350.975, Dec = 42.1826
tmin = 636422401, tmax = 636681601
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='828920', job_status='RUN', time_executed='2021-09-29 15:37:41.585441', time_epoch_executed='1632955061.59' WHERE source_name='4FGL J2323.8+4210' and cadence='daily' and bin_id='1532'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/828920

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/828920/ft1_4FGL_J2323.8+4210_daily_bin1532.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/828920/ft2_4FGL_J2323.8+4210_daily_bin1532.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/828920/ft1_4FGL_J2323.8+4210_daily_bin1532.fits outfile=/scratch/kocevski/828920/ft1_filteredMKT_4FGL_J2323.8+4210_daily_bin1532.fits ra=350.975 dec=42.1826 rad=12.0 tmin=636422401.0 tmax=636681601.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.62
user 3.42
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/828920/ft1_filtered_4FGL_J2323.8+4210_daily_bin1532.fits evtable="EVENTS" scfile=/scratch/kocevski/828920/ft2_4FGL_J2323.8+4210_daily_bin1532.fits sctable="SC_DATA" expcube=/scratch/kocevski/828920/ltcube_636422401_636681601_4FGL_J2323.8+4210_daily_bin1532.fits outfile=/scratch/kocevski/828920/expmap_636422401_636681601_4FGL_J2323.8+4210_daily_bin1532.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/828920/ltcube_636422401_636681601_4FGL_J2323.8+4210_daily_bin1532.fits
.....................!
real 189.93
user 185.47
sys 4.15

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/828920/ft1_filtered_4FGL_J2323.8+4210_daily_bin1532.fits scfile=/scratch/kocevski/828920/ft2_4FGL_J2323.8+4210_daily_bin1532.fits outfile=/scratch/kocevski/828920/cmap_636422401_636681601_4FGL_J2323.8+4210_daily_bin1532.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=350.975 yref=42.1826 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/828920/ft1_filtered_4FGL_J2323.8+4210_daily_bin1532.fits scfile=/scratch/kocevski/828920/ft2_4FGL_J2323.8+4210_daily_bin1532.fits outfile=/scratch/kocevski/828920/cmap_HighResolution_636422401_636681601_4FGL_J2323.8+4210_daily_bin1532.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10401E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.1345       1.0000         .10000E-03   10000.    
     5 'norm      '    1.1425       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .29424       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.5822       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.1687       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.849       1.0000         .10000E-03   10000.    
    14 'norm      '    3.0187       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .42670       1.0000         .10000E-03   10000.    
    17 'norm      '    10.640       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11927E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .40665E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    82.960       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0671       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .91363       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=   10374.51     FROM MIGRAD    STATUS=CONVERGED    618 CALLS     2681 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.8845       -.19833E-05** at limit **
   2  Prefactor     .10000E-03    8.9297        .70886E-06** at limit **
   3  norm          .10000E-03    5.0164       -.10862E-05** at limit **
   4  Prefactor     5.1334        4.6976       -.10303E-06    .34325E-04
   5  norm          1.1423        1.2616        .15429E-07    .48576E-04
   6  Prefactor     .10000E-03    1.2904        .75004E-07** at limit **
   7  Prefactor     .10000E-03    10.640        .29726E-05** at limit **
   8  Prefactor     .10000E-03    55.047        .14313E-05** at limit **
   9  Prefactor     .28798        2.6710        .31734E-06   -.40020E-03
  10  norm          .10000E-03    .67929       -.18999E-07** at limit **
  11  Prefactor     1.5844        22.802       -.22807E-06   -.11608E-03
  12  Prefactor     5.1681        4.3079       -.47465E-06   -.21434E-04
  13  Prefactor     12.847        20.258       -.71154E-06    .10243E-04
  14  norm          3.0186        1.4093       -.11792E-06    .12989E-03
  15  Prefactor     .10000E-03    5.2902        .43853E-06** at limit **
  16  norm          .43010        .62946        .97281E-07   -.16120E-02
  17  norm          10.642        9.2796        .39992E-07    .11378E-03
  18  Prefactor     .10000E-03    29.686       -.11095E-05** at limit **
  19  norm          .10001E-03    1.1695       -.67000E-06** at limit **
  20  Prefactor     .10000E-03    16.846       -.59915E-06** at limit **
  21  norm          .10000E-03    4.6508        .96849E-06** at limit **
  22  Prefactor     82.926        50.248       -.27332E-04    .55804E-05
  23  Prefactor     .10000E-03    10.130       -.10008E-05** at limit **
  24  Prefactor     .10000E-03    1.5794        .39436E-07** at limit **
  25  Normalizat    1.0674        .19839        .30265E-05    .51682E-04
  26  Prefactor     .91354        .69325E-01   -.21700E-07    .35764E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.13344
  norm       = 1.1423
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.287982
  norm       = 0.0001
  Prefactor  = 1.58438
  Prefactor  = 5.16815
  Prefactor  = 12.8474
  norm       = 3.01862
  Prefactor  = 0.0001
  norm       = 0.430098
  norm       = 10.6417
  Prefactor  = 0.0001
  norm       = 0.000100013
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 82.9264
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.06739
  Prefactor  = 0.913544
 **********
 **   18 **HESSE 
 **********

 FCN=   10374.51     FROM HESSE     STATUS=OK           454 CALLS     3135 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.8851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.9531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    5.0283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.1334        4.6957        .17743E-03   -1.5255    
   5  norm          1.1423        1.2477        .11727E-03   -1.5494    
   6  Prefactor     .10000E-03    1.3119        .11297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    55.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .28798        9.1650        .31938E-02   -1.5601    
  10  norm          .10000E-03    .68020        .81946E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.5844        23.467        .16880E-02   -1.5456    
  12  Prefactor     5.1681        4.2974        .17683E-03   -1.5253    
  13  Prefactor     12.847        20.250        .11175E-03   -1.4991    
  14  norm          3.0186        1.4114        .78995E-04   -1.5360    
  15  Prefactor     .10000E-03    5.3255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .43010        5.1196        .21935E-02   -1.5577    
  17  norm          10.642        9.2466        .12283E-03   -1.5055    
  18  Prefactor     .10000E-03    30.457        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10001E-03    6.1033        .21119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    16.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    4.6650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     82.926        50.288        .22050E-03   -1.3884    
  23  Prefactor     .10000E-03    10.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    1.5823        .12499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0674        .22161        .38431E-03   -.90806    
  26  Prefactor     .91354        .78060E-01    .14636E-03   -.95669    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.11844e-09
Minuit parameter uncertainties:
  1  3.87572e-05
  2  6.58082e-05
  3  3.72454e-06
  4  4.69601
  5  1.24774
  6  1.00145e-06
  7  4.30809e-06
  8  4.04847e-05
  9  3.2492
  10  9.80289e-07
  11  12.2005
  12  4.29761
  13  20.2604
  14  1.41143
  15  4.52198e-06
  16  2.96774
  17  9.24782
  18  0.000121408
  19  0.000572144
  20  3.00172e-05
  21  1.19874e-06
  22  50.3139
  23  1.75085e-06
  24  6.79266e-08
  25  0.221805
  26  0.0780697
Done.

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

Extracting fit parameters...

4FGL J2323.8+4210
   Spectrum: LogParabola
458         norm:  1.064e+01  9.248e+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.135e-01  7.807e-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.067e+00  2.218e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.40
Ra Dec: 350.975 42.183
Photon Index (Fixed Index): 1.78 +/- 0.00
Photon Flux (Fixed Index): 2.02e-08 +/- 1.76e-08
Energy Flux (Fixed Index): 2.49e-05 +/- 2.16e-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) = 10374.4159074
delta logL = 0.0940923207363

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10374.4128937
delta logL = 0.0971060358825

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.7028       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.0157       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0749       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91527       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=   10374.41     FROM MIGRAD    STATUS=CONVERGED     73 CALLS      274 TOTAL
                     EDM=   .29E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 13.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5677        .67418        .54713E-08    .95547E-05
   2  alpha         1.0016        .52825        .42798E-07   -.18427E-06
   3  Normalizat    1.0749        .19295       -.43915E-09    .23551E-05
   4  Prefactor     .91532        .68931E-01   -.19155E-10    .76353E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.56767
  alpha      = 1.00162
  Normalizat = 1.07486
  Prefactor  = 0.915315
 **********
 **   18 **HESSE 
 **********

 FCN=   10374.41     FROM HESSE     STATUS=OK            31 CALLS      305 TOTAL
                     EDM=   .98E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5677        8.8784        .92780E-03   -1.5280    
   2  alpha         1.0016        1.0401        .28649E-02   -.64269    
   3  Normalizat    1.0749        .21627        .38322E-03   -.90563    
   4  Prefactor     .91532        .77462E-01    .14626E-03   -.95608    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.82458e-11
Minuit parameter uncertainties:
  1  8.88096
  2  1.09369
  3  0.216448
  4  0.0774717
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/828920': 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) = 10374.4127776
delta logL = 0.0972221345983

Extracting fit parameters...

4FGL J2323.8+4210
   Spectrum: LogParabola
458         norm:  4.568e+00  8.881e+00  1.000e-04  1.000e+04 ( 1.000e-13)
459        alpha:  1.002e+00  1.094e+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.153e-01  7.747e-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.075e+00  2.164e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.59
Ra Dec: 350.975 42.183
Photon Index (Free Index): 1.00 +/- 1.09
Photon Flux (Free Index): 4.77e-09 +/- 8.12e-09
Energy Flux (Free Index): 4.81e-05 +/- 7.70e-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/828920/cmap_HighResolution_636422401_636681601_4FGL_J2323.8+4210_daily_bin1532.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.02e-08', energy_flux2='4.81e-05', photon_flux_error='1.76e-08', dlogl='9.72e-02', energy_flux='2.49e-05', photon_flux2='4.77e-09', job_status='DONE', time_completed='2021-09-29 15:51:55.102083', photon_index_error2='1.09', photon_index2='1.00', ts='5.40', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='7.70e-05', EG='1.07', time_epoch_completed='1632955915.1', return_code='0', job_id='828920', GAL2='0.92', EG2='1.07', return_code2='0', energy_flux_error='2.16e-05', photon_flux_error2='8.12e-09', ts2='5.59', photon_index='1.78' WHERE bin_id='1532' AND source_name='4FGL J2323.8+4210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 15:51:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 828920: <4FGL_J2323.8+4210_daily_bin1532> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.8+4210_daily_bin1532 350.975 42.1826 636422401 636681601 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 :                                   848.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             297.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            991 sec.

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

