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


Performing analysis on: 4FGL_J2326.2+0113_daily_bin326
RA = 351.575, Dec = 1.2216
tmin = 323827201, tmax = 324086401
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='890114', job_status='RUN', time_executed='2021-09-29 18:46:20.642968', time_epoch_executed='1632966380.64' WHERE source_name='4FGL J2326.2+0113' and cadence='daily' and bin_id='326'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/890114

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/890114/ft1_4FGL_J2326.2+0113_daily_bin326.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/890114/ft2_4FGL_J2326.2+0113_daily_bin326.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/890114/ft1_4FGL_J2326.2+0113_daily_bin326.fits outfile=/scratch/kocevski/890114/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin326.fits ra=351.575 dec=1.2216 rad=12.0 tmin=323827201.0 tmax=324086401.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.33
user 3.12
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/890114/ft2_4FGL_J2326.2+0113_daily_bin326.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/890114/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin326.fits evtable="EVENTS" outfile="/scratch/kocevski/890114/ft1_filtered_4FGL_J2326.2+0113_daily_bin326.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.50
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/890114/ft1_filtered_4FGL_J2326.2+0113_daily_bin326.fits evtable="EVENTS" scfile=/scratch/kocevski/890114/ft2_4FGL_J2326.2+0113_daily_bin326.fits sctable="SC_DATA" expcube=/scratch/kocevski/890114/ltcube_323827201_324086401_4FGL_J2326.2+0113_daily_bin326.fits outfile=/scratch/kocevski/890114/expmap_323827201_324086401_4FGL_J2326.2+0113_daily_bin326.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/890114/ltcube_323827201_324086401_4FGL_J2326.2+0113_daily_bin326.fits
.....................!
real 191.17
user 186.94
sys 3.89

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/890114/ft1_filtered_4FGL_J2326.2+0113_daily_bin326.fits scfile=/scratch/kocevski/890114/ft2_4FGL_J2326.2+0113_daily_bin326.fits outfile=/scratch/kocevski/890114/cmap_323827201_324086401_4FGL_J2326.2+0113_daily_bin326.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/890114/ft1_filtered_4FGL_J2326.2+0113_daily_bin326.fits scfile=/scratch/kocevski/890114/ft2_4FGL_J2326.2+0113_daily_bin326.fits outfile=/scratch/kocevski/890114/cmap_HighResolution_323827201_324086401_4FGL_J2326.2+0113_daily_bin326.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.717       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.650       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.9763       1.0000         .10000E-03   10000.    
     9 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.6338       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.5985       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11109E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    25.852       1.0000         .10000E-03   10000.    
    17 'norm      '    .10937E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .47636E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.3117       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11902E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    32.981       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .97559       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .85900       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6846.114     FROM MIGRAD    STATUS=CONVERGED    124 CALLS     2309 TOTAL
                     EDM=   .36E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.1672       -.18595E-05** at limit **
   2  norm          .10000E-03    10.509        .50454E-05** at limit **
   3  Prefactor     18.708        1.3112        .48155E-07   -.61334E-03
   4  Prefactor     11.648        1.0167        .70101E-07   -.20106E-03
   5  Prefactor     .10000E-03    19.433        .72273E-05** at limit **
   6  Prefactor     .10000E-03    16.626       -.54706E-05** at limit **
   7  Prefactor     .10000E-03    2.9146       -.40902E-06** at limit **
   8  norm          1.9763        .82135       -.12628E-07    .23097E-03
   9  norm          .10000E-03    2.5532       -.89909E-06** at limit **
  10  Prefactor     2.6357        5.0133        .93377E-05    .18512E-04
  11  Prefactor     .10000E-03    40.209       -.93405E-05** at limit **
  12  norm          5.5982        1.7201        .17807E-05    .37190E-04
  13  Prefactor     .10000E-03    5.0980        .25166E-06** at limit **
  14  Prefactor     .11196E-03    10.307       -.11691E-05** at limit **
  15  Prefactor     .10000E-03    6.1974        .44008E-06** at limit **
  16  Prefactor     25.848        1.0662        .17455E-06   -.61010E-03
  17  norm          .10000E-03    8.9060       -.11603E-04** at limit **
  18  Prefactor     .10045E-03    396.41       -.19607E-04** at limit **
  19  Prefactor     3.3155        4.0988        .19883E-06   -.54215E-04
  20  Prefactor     .10000E-03    63.165        .41205E-05** at limit **
  21  Prefactor     32.986        1.1236       -.16310E-06    .13284E-02
  22  Prefactor     .10000E-03    8.1685        .11051E-04** at limit **
  23  Normalizat    .97561        .20381       -.29583E-05    .44239E-05
  24  Prefactor     .85898        .13798       -.13328E-05    .34031E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 18.708
  Prefactor  = 11.6485
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.97635
  norm       = 0.0001
  Prefactor  = 2.63565
  Prefactor  = 0.0001
  norm       = 5.59823
  Prefactor  = 0.0001
  Prefactor  = 0.000111958
  Prefactor  = 0.0001
  Prefactor  = 25.8485
  norm       = 0.0001
  Prefactor  = 0.000100454
  Prefactor  = 3.31552
  Prefactor  = 0.0001
  Prefactor  = 32.986
  Prefactor  = 0.0001
  Normalizat = 0.975606
  Prefactor  = 0.858979
 **********
 **   18 **HESSE 
 **********

 FCN=   6846.114     FROM HESSE     STATUS=OK           445 CALLS     2754 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.1575        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    10.353        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     18.708        33.263        .23144E-02   -1.4843    
   4  Prefactor     11.648        12.532        .29342E-02   -1.5025    
   5  Prefactor     .10000E-03    19.195        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    16.625        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.9054        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.9763        .82417        .73720E-02   -1.5427    
   9  norm          .10000E-03    2.5185        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.6357        5.4571        .62815E-02   -1.5383    
  11  Prefactor     .10000E-03    40.116        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.5982        7.1896        .42447E-02   -1.5235    
  13  Prefactor     .10000E-03    5.0154        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .11196E-03    399.00        .10346E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.1713        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     25.848        22.312        .19697E-02   -1.4691    
  17  norm          .10000E-03    8.8992        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10045E-03    23.963        .14836       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.3155        4.1226        .55614E-02   -1.5344    
  20  Prefactor     .10000E-03    62.694        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     32.986        26.700        .17444E-02   -1.4559    
  22  Prefactor     .10000E-03    8.1459        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .97561        .17952        .45860E-01   -.93852    
  24  Prefactor     .85898        .12019        .44480E-01   -.97590    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.63557e-08
Minuit parameter uncertainties:
  1  5.64734e-07
  2  1.32923e-05
  3  33.2964
  4  12.5344
  5  2.10433e-05
  6  9.58491e-05
  7  6.53463e-06
  8  0.824178
  9  8.6273e-06
  10  5.45812
  11  0.000156233
  12  7.19068
  13  3.37313e-06
  14  0.139081
  15  1.13434e-05
  16  22.3193
  17  3.03806e-05
  18  0.00659579
  19  4.12291
  20  0.000113733
  21  26.7097
  22  1.55436e-05
  23  0.179631
  24  0.120222
Done.

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

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  1.000e-04  1.562e-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:  8.590e-01  1.202e-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:  9.756e-01  1.796e-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: 6.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/890114/likelihoodResults_323827201_324086401_4FGL_J2326.2+0113_daily_bin326.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) = 6846.11445078
delta logL = -0.00011839736726

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6846.11433264
delta logL = -2.57817191596e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11185E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0585       1.0000          .0000       10.000    
     3 'Normalizat'    .97561       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85898       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=   6846.114     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      228 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    801.19        .90712E-02** at limit **
   2  Index         2.0860        8.5577        .50000       -.65485E-05
   3  Normalizat    .97561        .21401E-01    .45861E-01    .31846E-04
   4  Prefactor     .85898        .14780E-01    .44480E-01    .24341E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.08596
  Normalizat = 0.975606
  Prefactor  = 0.858979
 **********
 **   18 **HESSE 
 **********

 FCN=   6846.114     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      261 TOTAL
                     EDM=   .72E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2109.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0860        5.7212        .50000       -.62218    
   3  Normalizat    .97561        .37253E-01    .27491E-03   -.93852    
   4  Prefactor     .85898        .25731E-01    .19996E-03   -.97590    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.15638e-11
Minuit parameter uncertainties:
  1  0.00453052
  2  31.4674
  3  0.037254
  4  0.0257311
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/890114': 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) = 6846.11433244
delta logL = -5.57283783564e-08

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  1.000e-04  4.531e-03  1.000e-04  1.000e+04 ( 1.000e-14)
407        Index:  2.086e+00  3.147e+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:  8.590e-01  2.573e-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:  9.756e-01  3.725e-02  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/890114/cmap_HighResolution_323827201_324086401_4FGL_J2326.2+0113_daily_bin326.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.65e-03', job_status='DONE', photon_flux_upper_limit='6.14e-08', time_completed='2021-09-29 18:57:11.791258', job_id='890114', GAL2='0.86', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1632967031.79', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='-5.57e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='326' AND source_name='4FGL J2326.2+0113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:57:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 890114: <4FGL_J2326.2+0113_daily_bin326> in cluster <slac> Done

Job <4FGL_J2326.2+0113_daily_bin326> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 18:45:31 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 18:45:33 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:33 2021
Terminated at Wed Sep 29 18:57:12 2021
Results reported at Wed Sep 29 18:57:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.2+0113_daily_bin326 351.575 1.2216 323827201 324086401 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 :                                   646.25 sec.
    Max Memory :                                 1189 MB
    Average Memory :                             284.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   699 sec.
    Turnaround time :                            701 sec.

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

