/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 220 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 = 7244
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2326.2+0113_daily_bin279
RA = 351.575, Dec = 1.2216
tmin = 311644801, tmax = 311904001
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='890044', job_status='RUN', time_executed='2021-09-29 18:49:24.318737', time_epoch_executed='1632966564.32' WHERE source_name='4FGL J2326.2+0113' and cadence='daily' and bin_id='279'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/890044

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

Retrieving the FT1 file...

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

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

Retrieving 51 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/890044/ft1_4FGL_J2326.2+0113_daily_bin279.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/890044/ft2_4FGL_J2326.2+0113_daily_bin279.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/890044/ft1_4FGL_J2326.2+0113_daily_bin279.fits outfile=/scratch/kocevski/890044/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin279.fits ra=351.575 dec=1.2216 rad=12.0 tmin=311644801.0 tmax=311904001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.62
user 2.37
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/890044/ft2_4FGL_J2326.2+0113_daily_bin279.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/890044/ft2_4FGL_J2326.2+0113_daily_bin279.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/890044/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin279.fits evtable="EVENTS" outfile="/scratch/kocevski/890044/ft1_filtered_4FGL_J2326.2+0113_daily_bin279.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.42
user 0.26
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/890044/ft1_filtered_4FGL_J2326.2+0113_daily_bin279.fits" evtable="EVENTS" scfile=/scratch/kocevski/890044/ft2_4FGL_J2326.2+0113_daily_bin279.fits sctable="SC_DATA" outfile=/scratch/kocevski/890044/ltcube_311644801_311904001_4FGL_J2326.2+0113_daily_bin279.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/890044/ft2_4FGL_J2326.2+0113_daily_bin279.fits
.....................!
real 8.56
user 8.26
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/890044/ft1_filtered_4FGL_J2326.2+0113_daily_bin279.fits evtable="EVENTS" scfile=/scratch/kocevski/890044/ft2_4FGL_J2326.2+0113_daily_bin279.fits sctable="SC_DATA" expcube=/scratch/kocevski/890044/ltcube_311644801_311904001_4FGL_J2326.2+0113_daily_bin279.fits outfile=/scratch/kocevski/890044/expmap_311644801_311904001_4FGL_J2326.2+0113_daily_bin279.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/890044/ltcube_311644801_311904001_4FGL_J2326.2+0113_daily_bin279.fits
.....................!
real 139.56
user 136.27
sys 3.05

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
Added 160 point sources and 0 extended sources

Setting source of interest to:
4FGL J2326.2+0113 @ 351.575 1.2216

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/890044/ft1_filtered_4FGL_J2326.2+0113_daily_bin279.fits scfile=/scratch/kocevski/890044/ft2_4FGL_J2326.2+0113_daily_bin279.fits outfile=/scratch/kocevski/890044/cmap_311644801_311904001_4FGL_J2326.2+0113_daily_bin279.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=351.575 yref=1.2216 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.46
user 0.29
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/890044/ft1_filtered_4FGL_J2326.2+0113_daily_bin279.fits scfile=/scratch/kocevski/890044/ft2_4FGL_J2326.2+0113_daily_bin279.fits outfile=/scratch/kocevski/890044/cmap_HighResolution_311644801_311904001_4FGL_J2326.2+0113_daily_bin279.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=351.575 yref=1.2216 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.44
user 0.29
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/890044/ft1_filtered_4FGL_J2326.2+0113_daily_bin279.fits evtable="EVENTS" scfile=/scratch/kocevski/890044/ft2_4FGL_J2326.2+0113_daily_bin279.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/890044/Model_4FGL_J2326.2+0113_daily_bin279.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 EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/890044/ft1_filtered_4FGL_J2326.2+0113_daily_bin279.fits....................!
real 64.36
user 62.55
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/890044/ft1_filtered_4FGL_J2326.2+0113_daily_bin279.fits', '/scratch/kocevski/890044/ft2_4FGL_J2326.2+0113_daily_bin279.fits', expMap='/scratch/kocevski/890044/expmap_311644801_311904001_4FGL_J2326.2+0113_daily_bin279.fits', expCube='/scratch/kocevski/890044/ltcube_311644801_311904001_4FGL_J2326.2+0113_daily_bin279.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/890044/Model_4FGL_J2326.2+0113_daily_bin279.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2326.2+0113'

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  4.628e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
407        Index:  2.119e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
408        Scale:  2.170e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/890044/ft1_filtered_4FGL_J2326.2+0113_daily_bin279.fits
Spacecraft file(s): /scratch/kocevski/890044/ft2_4FGL_J2326.2+0113_daily_bin279.fits
Exposure map: /scratch/kocevski/890044/expmap_311644801_311904001_4FGL_J2326.2+0113_daily_bin279.fits
Exposure cube: /scratch/kocevski/890044/ltcube_311644801_311904001_4FGL_J2326.2+0113_daily_bin279.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/890044/Model_4FGL_J2326.2+0113_daily_bin279.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) = 7487.07964192

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.050       1.0000         .10000E-03   10000.    
     2 'norm      '    4.1363       1.0000         .10000E-03   10000.    
     3 'Prefactor '    76.184       1.0000         .10000E-03   10000.    
     4 'Prefactor '    264.45       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .58297       1.0000         .10000E-03   10000.    
     9 'norm      '    .24883       1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.666       1.0000         .10000E-03   10000.    
    11 'Prefactor '    55.427       1.0000         .10000E-03   10000.    
    12 'norm      '    .13179E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.379       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10085E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.543       1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.081       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.7368       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .75779       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7487.064     FROM MIGRAD    STATUS=CONVERGED    523 CALLS     2738 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.050        11.422        .46621E-07   -.94165E-05
   2  norm          4.1354        11.449       -.29820E-06   -.13673E-03
   3  Prefactor     76.211        59.490        .26370E-04   -.24522E-04
   4  Prefactor     264.46        41.433        .20886E-05   -.12480E-03
   5  Prefactor     .10000E-03    4.5293       -.23050E-06** at limit **
   6  Prefactor     .10000E-03    45.520        .22105E-04** at limit **
   7  Prefactor     .10000E-03    3.1890       -.37951E-07** at limit **
   8  norm          .58293        .61734        .74097E-07    .23517E-03
   9  norm          .25169        3.1400       -.77993E-06   -.37298E-03
  10  Prefactor     17.679        13.538       -.15226E-05   -.22695E-03
  11  Prefactor     55.394        47.308       -.33741E-04   -.15555E-04
  12  norm          .10000E-03    28.175        .63244E-05** at limit **
  13  Prefactor     23.400        11.682       -.12322E-05   -.41029E-03
  14  Prefactor     .10000E-03    51.203       -.22788E-04** at limit **
  15  Prefactor     .10000E-03    5.5901        .21816E-06** at limit **
  16  Prefactor     .10000E-03    11.284        .20985E-05** at limit **
  17  norm          .10000E-03    10.671       -.32747E-05** at limit **
  18  Prefactor     .10000E-03    12.810        .39355E-05** at limit **
  19  Prefactor     10.543        4.9105        .45524E-06   -.79218E-05
  20  Prefactor     18.079        31.226       -.73447E-06   -.41064E-05
  21  Prefactor     .10000E-03    18.609       -.58198E-05** at limit **
  22  Prefactor     .10000E-03    6.9495        .44462E-06** at limit **
  23  Normalizat    1.7368        .24091       -.29119E-05    .75029E-05
  24  Prefactor     .75785        .14909        .11408E-05   -.25232E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.0499
  norm       = 4.13538
  Prefactor  = 76.211
  Prefactor  = 264.46
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.582935
  norm       = 0.251686
  Prefactor  = 17.6787
  Prefactor  = 55.3944
  norm       = 0.0001
  Prefactor  = 23.3998
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.5426
  Prefactor  = 18.0792
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.73677
  Prefactor  = 0.75785
 **********
 **   18 **HESSE 
 **********

 FCN=   7487.064     FROM HESSE     STATUS=OK           401 CALLS     3139 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.050        11.426        .11540E-03   -1.5014    
   2  norm          4.1354        11.455        .19820E-03   -1.5301    
   3  Prefactor     76.211        59.623        .46004E-04   -1.3960    
   4  Prefactor     264.46        41.490        .12465E-03   -1.2441    
   5  Prefactor     .10000E-03    4.5331        .17985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    45.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.1958        .15086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .58293        .58019        .67740E-03   -1.5555    
   9  norm          .25169        11.614        .29688E-02   -1.5608    
  10  Prefactor     17.679        13.509        .95290E-04   -1.4867    
  11  Prefactor     55.394        47.356        .26940E-03   -1.4218    
  12  norm          .10000E-03    28.916        .41139E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     23.400        11.668        .82843E-04   -1.4740    
  14  Prefactor     .10000E-03    51.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.6121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    10.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.543        4.9223        .12340E-03   -1.5058    
  20  Prefactor     18.079        31.258        .94190E-04   -1.4857    
  21  Prefactor     .10000E-03    18.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.9637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.7368        .28693        .30117E-03   -.71326    
  24  Prefactor     .75785        .17607        .28127E-03   -1.0130    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.17276e-10
Minuit parameter uncertainties:
  1  11.4281
  2  11.4608
  3  59.6696
  4  41.4944
  5  7.22029e-07
  6  3.2662e-05
  7  5.09564e-06
  8  0.580192
  9  3.41937
  10  13.5115
  11  47.3884
  12  0.000177329
  13  11.6695
  14  1.95564e-05
  15  5.41263e-05
  16  2.12174e-05
  17  3.79717e-05
  18  3.57161e-06
  19  4.92246
  20  31.2864
  21  6.5695e-05
  22  1.02291e-05
  23  0.287208
  24  0.176199
Done.

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

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  5.539e+01  4.739e+01  1.000e-04  1.000e+04 ( 1.000e-14)
407        Index:  2.119e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
408        Scale:  2.170e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  7.579e-01  1.762e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  1.737e+00  2.872e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.96
Ra Dec: 351.575 1.222
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 3.37e-08 +/- 2.88e-08
Energy Flux (Fixed Index): 1.77e-05 +/- 1.52e-05

TS (Fixed Index): 2.96
Ra Dec: 351.575 1.222
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/890044/likelihoodResults_311644801_311904001_4FGL_J2326.2+0113_daily_bin279.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) = 7487.02619537
delta logL = 0.037336396942

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7487.02361908
delta logL = 0.0399126816319

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    65.993       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9456       1.0000          .0000       10.000    
     3 'Normalizat'    1.7434       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75565       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7487.024     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      280 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     65.993        1386.9        .12351E-02    .20085E-04
   2  Index         1.9456        3.1894        .21118        .16270E-03
   3  Normalizat    1.7435        .10027        .67987E-01    .75309E-06
   4  Prefactor     .75561        .52510E-01    .63669E-01    .21026E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 65.9926
  Index      = 1.94559
  Normalizat = 1.7435
  Prefactor  = 0.755612
 **********
 **   18 **HESSE 
 **********

 FCN=   7487.024     FROM HESSE     STATUS=OK            31 CALLS      311 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     65.993        67.385        .49404E-04   -1.4081    
   2  Index         1.9456        .62138        .72694E-02   -.65717    
   3  Normalizat    1.7435        .26758        .30071E-03   -.71148    
   4  Prefactor     .75561        .17433        .28164E-03   -1.0139    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60922e-10
Minuit parameter uncertainties:
  1  67.4628
  2  0.623959
  3  0.267806
  4  0.17446
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/890044': 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) = 7487.02361906
delta logL = 0.0399127027322

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  6.599e+01  6.746e+01  1.000e-04  1.000e+04 ( 1.000e-14)
407        Index:  1.946e+00  6.240e-01  0.000e+00  1.000e+01 (-1.000e+00)
408        Scale:  2.170e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  7.556e-01  1.745e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  1.744e+00  2.678e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.03
Ra Dec: 351.575 1.222
Photon Index (Free Index): 1.95 +/- 0.62
Photon Flux (Free Index): 2.78e-08 +/- 3.17e-08
Energy Flux (Free Index): 2.20e-05 +/- 2.77e-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/890044/cmap_HighResolution_311644801_311904001_4FGL_J2326.2+0113_daily_bin279.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.97e-03', comment='SUCCESS', photon_flux='3.37e-08', energy_flux2='2.20e-05', photon_flux_error='2.88e-08', dlogl='3.99e-02', energy_flux='1.77e-05', photon_flux2='2.78e-08', job_status='DONE', time_completed='2021-09-29 18:58:53.191905', photon_index_error2='0.62', photon_index2='1.95', ts='2.96', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='2.77e-05', EG='1.74', time_epoch_completed='1632967133.19', return_code='0', job_id='890044', GAL2='0.76', EG2='1.74', return_code2='0', energy_flux_error='1.52e-05', photon_flux_error2='3.17e-08', ts2='3.03', photon_index='2.12' WHERE bin_id='279' AND source_name='4FGL J2326.2+0113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:58:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 890044: <4FGL_J2326.2+0113_daily_bin279> in cluster <slac> Done

Job <4FGL_J2326.2+0113_daily_bin279> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 18:45:26 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 18:45:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 18:45:27 2021
Terminated at Wed Sep 29 18:58:53 2021
Results reported at Wed Sep 29 18:58:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.2+0113_daily_bin279 351.575 1.2216 311644801 311904001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2326.2+0113 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   570.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             240.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   806 sec.
    Turnaround time :                            807 sec.

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

