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


Performing analysis on: 4FGL_J2326.2+0113_daily_bin485
RA = 351.575, Dec = 1.2216
tmin = 365040001, tmax = 365299201
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='891407', job_status='RUN', time_executed='2021-09-29 18:53:37.725517', time_epoch_executed='1632966817.73' WHERE source_name='4FGL J2326.2+0113' and cadence='daily' and bin_id='485'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/891407

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/891407/ft1_4FGL_J2326.2+0113_daily_bin485.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/891407/ft2_4FGL_J2326.2+0113_daily_bin485.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/891407/ft1_4FGL_J2326.2+0113_daily_bin485.fits outfile=/scratch/kocevski/891407/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin485.fits ra=351.575 dec=1.2216 rad=12.0 tmin=365040001.0 tmax=365299201.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.65
user 3.38
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/891407/ft1_filtered_4FGL_J2326.2+0113_daily_bin485.fits evtable="EVENTS" scfile=/scratch/kocevski/891407/ft2_4FGL_J2326.2+0113_daily_bin485.fits sctable="SC_DATA" expcube=/scratch/kocevski/891407/ltcube_365040001_365299201_4FGL_J2326.2+0113_daily_bin485.fits outfile=/scratch/kocevski/891407/expmap_365040001_365299201_4FGL_J2326.2+0113_daily_bin485.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/891407/ltcube_365040001_365299201_4FGL_J2326.2+0113_daily_bin485.fits
.....................!
real 190.50
user 185.27
sys 4.93

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/891407/ft1_filtered_4FGL_J2326.2+0113_daily_bin485.fits scfile=/scratch/kocevski/891407/ft2_4FGL_J2326.2+0113_daily_bin485.fits outfile=/scratch/kocevski/891407/cmap_365040001_365299201_4FGL_J2326.2+0113_daily_bin485.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/891407/ft1_filtered_4FGL_J2326.2+0113_daily_bin485.fits scfile=/scratch/kocevski/891407/ft2_4FGL_J2326.2+0113_daily_bin485.fits outfile=/scratch/kocevski/891407/cmap_HighResolution_365040001_365299201_4FGL_J2326.2+0113_daily_bin485.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.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0888       1.0000         .10000E-03   10000.    
     2 'norm      '    .88348       1.0000         .10000E-03   10000.    
     3 'Prefactor '    66.107       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .44081E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.837       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.4693       1.0000         .10000E-03   10000.    
     9 'norm      '    .10325E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.944       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.8696       1.0000         .10000E-03   10000.    
    17 'norm      '    4.6661       1.0000         .10000E-03   10000.    
    18 'Prefactor '    30.304       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10323E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.4424       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .74272       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .98579       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=   7297.577     FROM MIGRAD    STATUS=CONVERGED    562 CALLS     2766 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0822        10.540       -.28083E-05    .43557E-04
   2  norm          .88287        12.052       -.26440E-05    .35382E-03
   3  Prefactor     66.109        35.246       -.36317E-06    .67077E-04
   4  Prefactor     .10000E-03    8.0587       -.30835E-06** at limit **
   5  Prefactor     .10000E-03    33.461       -.15702E-04** at limit **
   6  Prefactor     19.848        30.495       -.35826E-06    .36882E-04
   7  Prefactor     .10000E-03    2.9791       -.15987E-06** at limit **
   8  norm          1.4692        .83582        .68412E-08    .12942E-02
   9  norm          .10000E-03    1.9658       -.16282E-06** at limit **
  10  Prefactor     .10000E-03    6.7718       -.62305E-06** at limit **
  11  Prefactor     .10000E-03    25.837       -.10914E-05** at limit **
  12  norm          .10000E-03    2.4825       -.33331E-07** at limit **
  13  Prefactor     18.943        7.1681       -.63034E-08    .17200E-03
  14  Prefactor     .10000E-03    74.217       -.31851E-05** at limit **
  15  Prefactor     .10000E-03    5.3916       -.11698E-06** at limit **
  16  Prefactor     4.8647        18.235       -.83641E-06   -.25970E-06
  17  norm          4.6652        12.168       -.20846E-06    .12270E-03
  18  Prefactor     30.289        54.939        .11351E-05    .11847E-03
  19  Prefactor     .10000E-03    1.5206       -.15483E-05** at limit **
  20  Prefactor     2.3479        88.235        .94698E-05    .14633E-03
  21  Prefactor     .10000E-03    4.3697       -.74610E-07** at limit **
  22  Prefactor     .10000E-03    3.5945       -.11614E-06** at limit **
  23  Normalizat    .74282        .16758        .14275E-05    .75515E-03
  24  Prefactor     .98584        .11258        .76896E-07    .87781E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.08222
  norm       = 0.882872
  Prefactor  = 66.1092
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 19.8478
  Prefactor  = 0.0001
  norm       = 1.46921
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 18.9428
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 4.86469
  norm       = 4.66516
  Prefactor  = 30.2894
  Prefactor  = 0.000100001
  Prefactor  = 2.34791
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.742823
  Prefactor  = 0.985841
 **********
 **   18 **HESSE 
 **********

 FCN=   7297.577     FROM HESSE     STATUS=OK           397 CALLS     3163 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0822        52.062        .50791E-02   -1.5500    
   2  norm          .88287        12.318        .50990E-03   -1.5520    
   3  Prefactor     66.109        35.217        .49362E-04   -1.4080    
   4  Prefactor     .10000E-03    8.2404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    34.793        .46062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     19.848        30.387        .89928E-04   -1.4817    
   7  Prefactor     .10000E-03    2.9859        .14374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.4692        .82877        .55682E-04   -1.5466    
   9  norm          .10000E-03    4.0573        .23132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.9922        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    26.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.4897        .13133E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     18.943        7.1599        .92021E-04   -1.4837    
  14  Prefactor     .10000E-03    74.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.4269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.8647        18.232        .18228E-03   -1.5267    
  17  norm          4.6652        11.947        .18630E-03   -1.5276    
  18  Prefactor     30.289        55.338        .72783E-04   -1.4607    
  19  Prefactor     .10000E-03    7.0682        .18608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.3479        92.413        .26178E-03   -1.5401    
  21  Prefactor     .10000E-03    4.3747        .17441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.5989        .15819E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .74282        .19510        .29400E-03   -1.0223    
  24  Prefactor     .98584        .13129        .18483E-03   -.93203    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1808e-09
Minuit parameter uncertainties:
  1  15.0255
  2  6.5967
  3  35.2277
  4  2.50756e-05
  5  0.000793929
  6  30.4108
  7  4.16817e-06
  8  0.828779
  9  5.16831e-07
  10  5.19051e-05
  11  0.000287815
  12  4.15619e-06
  13  7.16018
  14  0.00119853
  15  3.52181e-05
  16  18.2533
  17  11.9528
  18  55.4315
  19  0.000161804
  20  29.5087
  21  2.10561e-05
  22  1.21129e-05
  23  0.195283
  24  0.131333
Done.

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

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  1.000e-04  2.878e-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.858e-01  1.313e-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:  7.428e-01  1.953e-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: 3.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/891407/likelihoodResults_365040001_365299201_4FGL_J2326.2+0113_daily_bin485.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) = 7297.57670045
delta logL = -0.000182579486136

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7297.57651928
delta logL = -1.41512373375e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2993       1.0000          .0000       10.000    
     3 'Normalizat'    .74282       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98584       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=   7297.577     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      289 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11044E-03    4.8855        .18142E-01** at limit **
   2  Index         2.1651        8.0059        .50000        .31994E-04
   3  Normalizat    .74282        .19315E-02    .29400E-03    .14559E-03
   4  Prefactor     .98584        .13918E-02    .18483E-03    .23567E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000110444
  Index      = 2.16511
  Normalizat = 0.742819
  Prefactor  = 0.985842
 **********
 **   18 **HESSE 
 **********

 FCN=   7297.577     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      318 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11044E-03    241.26        .72569E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1651        8.2220        .50000       -.60283    
   3  Normalizat    .74282        .13586E-01    .11760E-04   -1.0223    
   4  Prefactor     .98584        .97897E-02    .36966E-04   -.93203    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.29204e-08
Minuit parameter uncertainties:
  1  0.1008
  2  272.561
  3  0.0135862
  4  0.0097897
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/891407': 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) = 7297.5765184
delta logL = -5.31717887498e-07

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  1.104e-04  1.008e-01  1.000e-04  1.000e+04 ( 1.000e-14)
407        Index:  2.165e+00  2.726e+02  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.858e-01  9.790e-03  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:  7.428e-01  1.359e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/891407/cmap_HighResolution_365040001_365299201_4FGL_J2326.2+0113_daily_bin485.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.99e-03', job_status='DONE', photon_flux_upper_limit='3.95e-08', time_completed='2021-09-29 19:05:24.988157', job_id='891407', GAL2='0.99', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1632967524.99', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='-5.32e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='485' AND source_name='4FGL J2326.2+0113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:05:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 891407: <4FGL_J2326.2+0113_daily_bin485> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.2+0113_daily_bin485 351.575 1.2216 365040001 365299201 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 :                                   706.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             253.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   894 sec.
    Turnaround time :                            896 sec.

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

