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


Performing analysis on: 4FGL_J2326.2+0113_daily_bin304
RA = 351.575, Dec = 1.2216
tmin = 318124801, tmax = 318384001
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='890082', job_status='RUN', time_executed='2021-09-29 18:48:45.648692', time_epoch_executed='1632966525.65' WHERE source_name='4FGL J2326.2+0113' and cadence='daily' and bin_id='304'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/890082

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/890082/ft1_4FGL_J2326.2+0113_daily_bin304.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/890082/ft2_4FGL_J2326.2+0113_daily_bin304.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/890082/ft1_4FGL_J2326.2+0113_daily_bin304.fits outfile=/scratch/kocevski/890082/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin304.fits ra=351.575 dec=1.2216 rad=12.0 tmin=318124801.0 tmax=318384001.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.12
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/890082/ft1_filtered_4FGL_J2326.2+0113_daily_bin304.fits" evtable="EVENTS" scfile=/scratch/kocevski/890082/ft2_4FGL_J2326.2+0113_daily_bin304.fits sctable="SC_DATA" outfile=/scratch/kocevski/890082/ltcube_318124801_318384001_4FGL_J2326.2+0113_daily_bin304.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/890082/ft2_4FGL_J2326.2+0113_daily_bin304.fits
.....................!
real 11.69
user 11.33
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/890082/ft1_filtered_4FGL_J2326.2+0113_daily_bin304.fits evtable="EVENTS" scfile=/scratch/kocevski/890082/ft2_4FGL_J2326.2+0113_daily_bin304.fits sctable="SC_DATA" expcube=/scratch/kocevski/890082/ltcube_318124801_318384001_4FGL_J2326.2+0113_daily_bin304.fits outfile=/scratch/kocevski/890082/expmap_318124801_318384001_4FGL_J2326.2+0113_daily_bin304.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/890082/ltcube_318124801_318384001_4FGL_J2326.2+0113_daily_bin304.fits
.....................!
real 192.22
user 186.61
sys 5.26

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/890082/ft1_filtered_4FGL_J2326.2+0113_daily_bin304.fits scfile=/scratch/kocevski/890082/ft2_4FGL_J2326.2+0113_daily_bin304.fits outfile=/scratch/kocevski/890082/cmap_318124801_318384001_4FGL_J2326.2+0113_daily_bin304.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/890082/ft1_filtered_4FGL_J2326.2+0113_daily_bin304.fits scfile=/scratch/kocevski/890082/ft2_4FGL_J2326.2+0113_daily_bin304.fits outfile=/scratch/kocevski/890082/cmap_HighResolution_318124801_318384001_4FGL_J2326.2+0113_daily_bin304.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.53
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.346       1.0000         .10000E-03   10000.    
     2 'norm      '    .11895E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.210       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10752E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    31.426       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10401E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .66945       1.0000         .10000E-03   10000.    
     9 'norm      '    5.0583       1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.960       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10248E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.1407       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.2968       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10776E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.7967       1.0000         .10000E-03   10000.    
    18 'Prefactor '    57.729       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.3343       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .58705       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .92339       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=   6065.411     FROM MIGRAD    STATUS=CONVERGED    540 CALLS     2698 TOTAL
                     EDM=   .31E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.349        11.288        .76227E-07    .18467E-06
   2  norm          .10000E-03    30.158       -.90956E-06** at limit **
   3  Prefactor     22.211        29.408        .12380E-06    .58911E-05
   4  Prefactor     .10000E-03    4.0833       -.57869E-07** at limit **
   5  Prefactor     .10000E-03    36.899       -.49977E-06** at limit **
   6  Prefactor     31.467        35.452       -.12752E-06   -.51155E-05
   7  Prefactor     .10000E-03    5.6072        .25871E-05** at limit **
   8  norm          .66951        .70243        .11923E-06    .20795E-03
   9  norm          5.0599        4.4527        .61415E-07   -.10481E-03
  10  Prefactor     21.959        12.638       -.10730E-06   -.26390E-04
  11  Prefactor     .10000E-03    73.016       -.21043E-06** at limit **
  12  norm          2.1437        16.647        .61796E-06   -.86418E-05
  13  Prefactor     2.2974        6.3613        .62159E-06   -.76027E-05
  14  Prefactor     .10000E-03    74.398        .46153E-07** at limit **
  15  Prefactor     .10000E-03    14.351       -.54833E-08** at limit **
  16  Prefactor     .10000E-03    27.692       -.40746E-06** at limit **
  17  norm          7.7933        10.134        .17462E-07    .43318E-06
  18  Prefactor     57.753        55.432        .47238E-06    .27220E-04
  19  Prefactor     .10000E-03    1.1483        .18663E-07** at limit **
  20  Prefactor     3.3319        53.353        .11781E-05    .18007E-05
  21  Prefactor     .10000E-03    5.1506       -.60615E-07** at limit **
  22  Prefactor     .10000E-03    9.3186       -.10171E-06** at limit **
  23  Normalizat    .58673        .18467       -.23504E-05    .69558E-05
  24  Prefactor     .92350        .12348        .10044E-05   -.15084E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.3486
  norm       = 0.0001
  Prefactor  = 22.2113
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.4673
  Prefactor  = 0.0001
  norm       = 0.669515
  norm       = 5.05987
  Prefactor  = 21.9591
  Prefactor  = 0.0001
  norm       = 2.14367
  Prefactor  = 2.29737
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.79329
  Prefactor  = 57.7526
  Prefactor  = 0.0001
  Prefactor  = 3.33188
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.586727
  Prefactor  = 0.923505
 **********
 **   18 **HESSE 
 **********

 FCN=   6065.411     FROM HESSE     STATUS=OK           395 CALLS     3093 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.349        11.292        .99065E-04   -1.4899    
   2  norm          .10000E-03    31.361        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     22.211        29.403        .84993E-04   -1.4765    
   4  Prefactor     .10000E-03    4.0891        .15369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    37.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     31.467        35.391        .71475E-04   -1.4585    
   7  Prefactor     .10000E-03    5.7742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .66951        .67401        .63642E-03   -1.5544    
   9  norm          5.0599        4.4359        .14606E-03   -1.5258    
  10  Prefactor     21.959        12.288        .85475E-04   -1.4770    
  11  Prefactor     .10000E-03    73.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.1437        14.224        .28171E-03   -1.5415    
  13  Prefactor     2.2974        5.9994        .26251E-03   -1.5405    
  14  Prefactor     .10000E-03    74.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.649        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    28.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.7933        10.007        .14361E-03   -1.5150    
  18  Prefactor     57.753        55.419        .52800E-04   -1.4187    
  19  Prefactor     .10000E-03    1.1629        .81454E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.3319        53.255        .22166E-03   -1.5343    
  21  Prefactor     .10000E-03    5.1646        .17261E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.4445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .58673        .20603        .30425E-03   -1.0855    
  24  Prefactor     .92350        .14045        .17457E-03   -.95325    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.26196e-11
Minuit parameter uncertainties:
  1  11.2935
  2  1.0973e-06
  3  29.4226
  4  4.51763e-07
  5  2.12678e-05
  6  35.4147
  7  3.07305e-05
  8  0.674016
  9  4.43618
  10  12.289
  11  8.72922e-05
  12  11.0476
  13  6.00095
  14  3.06211e-05
  15  2.65013e-06
  16  8.52994e-06
  17  10.0089
  18  55.4688
  19  7.43751e-07
  20  26.669
  21  3.65288e-07
  22  5.82361e-06
  23  0.206296
  24  0.140502
Done.

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

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  1.000e-04  8.729e-05  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.235e-01  1.405e-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:  5.867e-01  2.063e-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.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.54e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/890082/likelihoodResults_318124801_318384001_4FGL_J2326.2+0113_daily_bin304.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) = 6065.41128972
delta logL = -6.45646323392e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6065.41122532
delta logL = -1.60635863722e-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.0722       1.0000          .0000       10.000    
     3 'Normalizat'    .58673       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92351       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=   6065.411     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      246 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6151.4        .90712E-02** at limit **
   2  Index         2.1638        7.5917        .50000       -.16736E-04
   3  Normalizat    .58673        .22246E-01    .68743E-01    .43043E-03
   4  Prefactor     .92351        .15866E-01    .45304E-01    .77448E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.16382
  Normalizat = 0.586726
  Prefactor  = 0.923507
 **********
 **   18 **HESSE 
 **********

 FCN=   6065.411     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      277 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6764.4        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1638        5.4902        .50000       -.60315    
   3  Normalizat    .58673        .28533E-01    .30426E-03   -1.0855    
   4  Prefactor     .92351        .20390E-01    .17457E-03   -.95324    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.44381e-08
Minuit parameter uncertainties:
  1  0.00201552
  2  26.9652
  3  0.0285341
  4  0.0203897
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/890082': 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) = 6065.41122499
delta logL = 1.67019607034e-07

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  1.000e-04  2.016e-03  1.000e-04  1.000e+04 ( 1.000e-14)
407        Index:  2.164e+00  2.697e+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.235e-01  2.039e-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:  5.867e-01  2.853e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/890082/cmap_HighResolution_318124801_318384001_4FGL_J2326.2+0113_daily_bin304.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.54e-03', job_status='DONE', photon_flux_upper_limit='6.00e-08', time_completed='2021-09-29 18:59:14.551019', job_id='890082', GAL2='0.92', fit_tolerance='1e-08', EG2='0.59', EG='0.59', time_epoch_completed='1632967154.55', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.67e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='304' AND source_name='4FGL J2326.2+0113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:59:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 890082: <4FGL_J2326.2+0113_daily_bin304> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.2+0113_daily_bin304 351.575 1.2216 318124801 318384001 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 :                                   628.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             264.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   823 sec.
    Turnaround time :                            826 sec.

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

