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


Performing analysis on: 4FGL_J2326.2+0113_daily_bin406
RA = 351.575, Dec = 1.2216
tmin = 344563201, tmax = 344822401
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='891283', job_status='RUN', time_executed='2021-09-29 18:53:16.384511', time_epoch_executed='1632966796.38' WHERE source_name='4FGL J2326.2+0113' and cadence='daily' and bin_id='406'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/891283

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/891283/ft1_4FGL_J2326.2+0113_daily_bin406.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/891283/ft2_4FGL_J2326.2+0113_daily_bin406.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/891283/ft1_4FGL_J2326.2+0113_daily_bin406.fits outfile=/scratch/kocevski/891283/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin406.fits ra=351.575 dec=1.2216 rad=12.0 tmin=344563201.0 tmax=344822401.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.38
user 3.16
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/891283/ft2_4FGL_J2326.2+0113_daily_bin406.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/891283/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin406.fits evtable="EVENTS" outfile="/scratch/kocevski/891283/ft1_filtered_4FGL_J2326.2+0113_daily_bin406.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.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/891283/ft1_filtered_4FGL_J2326.2+0113_daily_bin406.fits" evtable="EVENTS" scfile=/scratch/kocevski/891283/ft2_4FGL_J2326.2+0113_daily_bin406.fits sctable="SC_DATA" outfile=/scratch/kocevski/891283/ltcube_344563201_344822401_4FGL_J2326.2+0113_daily_bin406.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/891283/ft2_4FGL_J2326.2+0113_daily_bin406.fits
.....................!
real 11.96
user 11.59
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/891283/ft1_filtered_4FGL_J2326.2+0113_daily_bin406.fits evtable="EVENTS" scfile=/scratch/kocevski/891283/ft2_4FGL_J2326.2+0113_daily_bin406.fits sctable="SC_DATA" expcube=/scratch/kocevski/891283/ltcube_344563201_344822401_4FGL_J2326.2+0113_daily_bin406.fits outfile=/scratch/kocevski/891283/expmap_344563201_344822401_4FGL_J2326.2+0113_daily_bin406.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/891283/ltcube_344563201_344822401_4FGL_J2326.2+0113_daily_bin406.fits
.....................!
real 189.50
user 184.85
sys 4.27

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/891283/ft1_filtered_4FGL_J2326.2+0113_daily_bin406.fits scfile=/scratch/kocevski/891283/ft2_4FGL_J2326.2+0113_daily_bin406.fits outfile=/scratch/kocevski/891283/cmap_344563201_344822401_4FGL_J2326.2+0113_daily_bin406.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.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/891283/ft1_filtered_4FGL_J2326.2+0113_daily_bin406.fits scfile=/scratch/kocevski/891283/ft2_4FGL_J2326.2+0113_daily_bin406.fits outfile=/scratch/kocevski/891283/cmap_HighResolution_344563201_344822401_4FGL_J2326.2+0113_daily_bin406.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/891283/ft1_filtered_4FGL_J2326.2+0113_daily_bin406.fits evtable="EVENTS" scfile=/scratch/kocevski/891283/ft2_4FGL_J2326.2+0113_daily_bin406.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/891283/Model_4FGL_J2326.2+0113_daily_bin406.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/891283/ft1_filtered_4FGL_J2326.2+0113_daily_bin406.fits.....................!
real 59.96
user 58.58
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/891283/ft1_filtered_4FGL_J2326.2+0113_daily_bin406.fits', '/scratch/kocevski/891283/ft2_4FGL_J2326.2+0113_daily_bin406.fits', expMap='/scratch/kocevski/891283/expmap_344563201_344822401_4FGL_J2326.2+0113_daily_bin406.fits', expCube='/scratch/kocevski/891283/ltcube_344563201_344822401_4FGL_J2326.2+0113_daily_bin406.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/891283/Model_4FGL_J2326.2+0113_daily_bin406.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/891283/ft1_filtered_4FGL_J2326.2+0113_daily_bin406.fits
Spacecraft file(s): /scratch/kocevski/891283/ft2_4FGL_J2326.2+0113_daily_bin406.fits
Exposure map: /scratch/kocevski/891283/expmap_344563201_344822401_4FGL_J2326.2+0113_daily_bin406.fits
Exposure cube: /scratch/kocevski/891283/ltcube_344563201_344822401_4FGL_J2326.2+0113_daily_bin406.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/891283/Model_4FGL_J2326.2+0113_daily_bin406.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) = 5695.62158449

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.128       1.0000         .10000E-03   10000.    
     2 'norm      '    14.480       1.0000         .10000E-03   10000.    
     3 'Prefactor '    37.223       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    37.447       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.2662       1.0000         .10000E-03   10000.    
     8 'norm      '    3.7014       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.0487       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.0250       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .25964E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .35883E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    113.85       1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.363       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0776       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .92999       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=   5695.606     FROM MIGRAD    STATUS=CONVERGED    524 CALLS     2700 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.125        22.814       -.41882E-06   -.40547E-04
   2  norm          14.482        15.088        .21285E-06   -.47742E-04
   3  Prefactor     37.233        41.685        .95712E-05   -.86743E-05
   4  Prefactor     .10000E-03    4.4130        .28740E-07** at limit **
   5  Prefactor     .10000E-03    12.621       -.35918E-05** at limit **
   6  Prefactor     37.459        67.179        .16692E-04    .84825E-05
   7  Prefactor     3.2679        12.398       -.68826E-05   -.30520E-03
   8  norm          3.7000        1.4234        .14535E-06   -.11256E-02
   9  norm          .10000E-03    3.9698        .11892E-06** at limit **
  10  Prefactor     .10000E-03    9.9857        .60384E-06** at limit **
  11  Prefactor     .10000E-03    78.345       -.10098E-04** at limit **
  12  norm          7.0496        8.4930        .26668E-05   -.73236E-04
  13  Prefactor     5.0255        6.8376        .53200E-05   -.22158E-03
  14  Prefactor     .10000E-03    661.42       -.17310E-03** at limit **
  15  Prefactor     .10000E-03    16.348        .83533E-05** at limit **
  16  Prefactor     .10000E-03    27.352       -.23066E-04** at limit **
  17  norm          .10000E-03    35.938        .26586E-04** at limit **
  18  Prefactor     .10000E-03    32.331        .39405E-06** at limit **
  19  Prefactor     .10000E-03    2.7564        .12801E-05** at limit **
  20  Prefactor     113.81        59.434       -.25484E-04   -.15128E-03
  21  Prefactor     13.389        30.377        .30147E-04    .20960E-04
  22  Prefactor     .10000E-03    18.754       -.21048E-06** at limit **
  23  Normalizat    1.0775        .23816       -.21262E-05   -.21171E-03
  24  Prefactor     .92997        .14841       -.10540E-05   -.19842E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.1251
  norm       = 14.4817
  Prefactor  = 37.2329
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.4592
  Prefactor  = 3.2679
  norm       = 3.69995
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 7.04957
  Prefactor  = 5.02553
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 113.815
  Prefactor  = 13.3887
  Prefactor  = 0.0001
  Normalizat = 1.07747
  Prefactor  = 0.929965
 **********
 **   18 **HESSE 
 **********

 FCN=   5695.606     FROM HESSE     STATUS=OK           395 CALLS     3095 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.125        22.851        .66675E-04   -1.4505    
   2  norm          14.482        15.095        .10526E-03   -1.4947    
   3  Prefactor     37.233        41.718        .65690E-04   -1.4487    
   4  Prefactor     .10000E-03    4.4239        .15483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     37.459        66.046        .65495E-04   -1.4483    
   7  Prefactor     3.2679        12.138        .22408E-03   -1.5346    
   8  norm          3.7000        1.4126        .52529E-04   -1.5323    
   9  norm          .10000E-03    3.9882        .14662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    78.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.0496        8.4418        .15110E-03   -1.5177    
  13  Prefactor     5.0255        6.7832        .17938E-03   -1.5260    
  14  Prefactor     .10000E-03    661.88        .21450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    16.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    27.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    36.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    32.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    16.251        .23483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     113.81        59.851        .18852E-03   -1.3570    
  21  Prefactor     13.389        30.466        .10957E-03   -1.4976    
  22  Prefactor     .10000E-03    18.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0775        .27933        .30033E-03   -.90479    
  24  Prefactor     .92997        .17475        .21655E-03   -.95102    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.119e-10
Minuit parameter uncertainties:
  1  22.8563
  2  15.0994
  3  41.7507
  4  4.9844e-06
  5  3.90168e-05
  6  66.1755
  7  12.1472
  8  1.41263
  9  1.44071e-05
  10  9.6826e-05
  11  0.000763714
  12  8.4432
  13  6.78426
  14  0.000249561
  15  0.000124842
  16  0.000137328
  17  0.000149977
  18  1.98664e-05
  19  0.000460293
  20  59.8823
  21  30.501
  22  0.000108117
  23  0.279713
  24  0.174854
Done.

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

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  1.000e-04  7.637e-04  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:  9.300e-01  1.749e-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.077e+00  2.797e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 351.575 1.222
Photon Flux Upper Limit: 9.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/891283/likelihoodResults_344563201_344822401_4FGL_J2326.2+0113_daily_bin406.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): 102
logL (Free Index) = 5695.60556383
delta logL = -6.06256262472e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5695.60550333
delta logL = -1.26315171656e-07

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 'Index     '    2.0737       1.0000          .0000       10.000    
     3 'Normalizat'    1.0775       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92997       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5695.606     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      279 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    6999.9        .18142E-02** at limit **
   2  Index         2.1592        6.0393        .50000       -.13541E-04
   3  Normalizat    1.0775        .41968E-01    .30033E-03    .12151E-04
   4  Prefactor     .92996        .28515E-01    .21655E-03    .32025E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010002
  Index      = 2.15923
  Normalizat = 1.07747
  Prefactor  = 0.929965
 **********
 **   18 **HESSE 
 **********

 FCN=   5695.606     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      308 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    9597.5        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1592        5.9789        .50000       -.60426    
   3  Normalizat    1.0775        .10429        .12013E-04   -.90479    
   4  Prefactor     .92996        .70867E-01    .86620E-05   -.95102    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.72808e-10
Minuit parameter uncertainties:
  1  0.0365916
  2  54.5108
  3  0.104313
  4  0.0708738
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/891283': 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): 102
logL (Free Index) = 5695.60550308
delta logL = 1.22645360534e-07

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  1.000e-04  3.659e-02  1.000e-04  1.000e+04 ( 1.000e-14)
407        Index:  2.159e+00  5.451e+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:  9.300e-01  7.087e-02  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.077e+00  1.043e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 351.575 1.222

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/891283/cmap_HighResolution_344563201_344822401_4FGL_J2326.2+0113_daily_bin406.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.34e-03', job_status='DONE', photon_flux_upper_limit='9.69e-08', time_completed='2021-09-29 19:03:33.796061', job_id='891283', GAL2='0.93', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1632967413.8', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='1.23e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='406' AND source_name='4FGL J2326.2+0113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:03:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 891283: <4FGL_J2326.2+0113_daily_bin406> in cluster <slac> Done

Job <4FGL_J2326.2+0113_daily_bin406> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 18:50:17 2021
Job was executed on host(s) <bullet0304>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 18:50:19 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:50:19 2021
Terminated at Wed Sep 29 19:03:34 2021
Results reported at Wed Sep 29 19:03:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.2+0113_daily_bin406 351.575 1.2216 344563201 344822401 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 :                                   616.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             272.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   795 sec.
    Turnaround time :                            797 sec.

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

