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


Performing analysis on: 4FGL_J2326.2+0113_daily_bin347
RA = 351.575, Dec = 1.2216
tmin = 329270401, tmax = 329529601
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='890145', job_status='RUN', time_executed='2021-09-29 18:47:58.435062', time_epoch_executed='1632966478.44' WHERE source_name='4FGL J2326.2+0113' and cadence='daily' and bin_id='347'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/890145

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/890145/ft1_4FGL_J2326.2+0113_daily_bin347.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/890145/ft2_4FGL_J2326.2+0113_daily_bin347.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/890145/ft1_4FGL_J2326.2+0113_daily_bin347.fits outfile=/scratch/kocevski/890145/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin347.fits ra=351.575 dec=1.2216 rad=12.0 tmin=329270401.0 tmax=329529601.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.60
user 3.39
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/890145/ft1_filtered_4FGL_J2326.2+0113_daily_bin347.fits" evtable="EVENTS" scfile=/scratch/kocevski/890145/ft2_4FGL_J2326.2+0113_daily_bin347.fits sctable="SC_DATA" outfile=/scratch/kocevski/890145/ltcube_329270401_329529601_4FGL_J2326.2+0113_daily_bin347.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/890145/ft2_4FGL_J2326.2+0113_daily_bin347.fits
.....................!
real 11.76
user 11.41
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/890145/ft1_filtered_4FGL_J2326.2+0113_daily_bin347.fits evtable="EVENTS" scfile=/scratch/kocevski/890145/ft2_4FGL_J2326.2+0113_daily_bin347.fits sctable="SC_DATA" expcube=/scratch/kocevski/890145/ltcube_329270401_329529601_4FGL_J2326.2+0113_daily_bin347.fits outfile=/scratch/kocevski/890145/expmap_329270401_329529601_4FGL_J2326.2+0113_daily_bin347.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/890145/ltcube_329270401_329529601_4FGL_J2326.2+0113_daily_bin347.fits
.....................!
real 190.47
user 185.22
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/890145/ft1_filtered_4FGL_J2326.2+0113_daily_bin347.fits scfile=/scratch/kocevski/890145/ft2_4FGL_J2326.2+0113_daily_bin347.fits outfile=/scratch/kocevski/890145/cmap_329270401_329529601_4FGL_J2326.2+0113_daily_bin347.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/890145/ft1_filtered_4FGL_J2326.2+0113_daily_bin347.fits scfile=/scratch/kocevski/890145/ft2_4FGL_J2326.2+0113_daily_bin347.fits outfile=/scratch/kocevski/890145/cmap_HighResolution_329270401_329529601_4FGL_J2326.2+0113_daily_bin347.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/890145/ft1_filtered_4FGL_J2326.2+0113_daily_bin347.fits evtable="EVENTS" scfile=/scratch/kocevski/890145/ft2_4FGL_J2326.2+0113_daily_bin347.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/890145/Model_4FGL_J2326.2+0113_daily_bin347.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/890145/ft1_filtered_4FGL_J2326.2+0113_daily_bin347.fits.....................!
real 57.35
user 56.01
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.613       1.0000         .10000E-03   10000.    
     2 'norm      '    15.669       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10240E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    28.730       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .58310       1.0000         .10000E-03   10000.    
     9 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.9744       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.123       1.0000         .10000E-03   10000.    
    12 'norm      '    .12476E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11517E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10223E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.756       1.0000         .10000E-03   10000.    
    17 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.7796       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.9487       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .94708       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .75998       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=   5440.201     FROM MIGRAD    STATUS=CONVERGED    546 CALLS     2733 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.610        14.441        .92915E-07    .33063E-05
   2  norm          15.662        14.253        .19636E-06   -.10267E-04
   3  Prefactor     .10000E-03    29.271       -.68119E-09** at limit **
   4  Prefactor     .10000E-03    3.1484       -.67865E-08** at limit **
   5  Prefactor     .10000E-03    4.6767        .11824E-06** at limit **
   6  Prefactor     28.739        40.760        .22794E-06    .99331E-05
   7  Prefactor     .10000E-03    3.9289        .15013E-06** at limit **
   8  norm          .58275        .98779        .41763E-06   -.21883E-05
   9  norm          .10000E-03    3.7711        .96846E-08** at limit **
  10  Prefactor     4.9864        7.2680        .38006E-05   -.75747E-04
  11  Prefactor     16.179        55.578       -.18244E-06    .75667E-04
  12  norm          .10000E-03    4.1011       -.92254E-06** at limit **
  13  Prefactor     .10000E-03    9.8675       -.16284E-06** at limit **
  14  Prefactor     .10000E-03    111.16        .20943E-06** at limit **
  15  Prefactor     .10000E-03    13.174        .49480E-06** at limit **
  16  Prefactor     22.784        20.851       -.32310E-06    .38849E-04
  17  norm          .10000E-03    10.085        .16105E-06** at limit **
  18  Prefactor     .10000E-03    16.246        .90906E-07** at limit **
  19  Prefactor     .10000E-03    2.2358        .25306E-07** at limit **
  20  Prefactor     2.7278        112.47        .14994E-05   -.41246E-04
  21  Prefactor     .10000E-03    8.7756       -.37845E-06** at limit **
  22  Prefactor     3.9402        18.042        .88784E-06    .96884E-05
  23  Normalizat    .94726        .19220       -.95768E-06    .56053E-04
  24  Prefactor     .76004        .12249       -.35374E-06    .68528E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.6102
  norm       = 15.6624
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.7391
  Prefactor  = 0.0001
  norm       = 0.582751
  norm       = 0.0001
  Prefactor  = 4.98643
  Prefactor  = 16.1795
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.7837
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.72778
  Prefactor  = 0.0001
  Prefactor  = 3.94017
  Normalizat = 0.947265
  Prefactor  = 0.760044
 **********
 **   18 **HESSE 
 **********

 FCN=   5440.201     FROM HESSE     STATUS=OK           397 CALLS     3130 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.610        14.454        .95435E-04   -1.4868    
   2  norm          15.662        14.253        .10118E-03   -1.4916    
   3  Prefactor     .10000E-03    29.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.1510        .12781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.6790        .15578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     28.739        40.869        .74746E-04   -1.4635    
   7  Prefactor     .10000E-03    3.9388        .14265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .58275        .96111        .88308E-04   -1.5555    
   9  norm          .10000E-03    3.8357        .13971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.9864        7.2780        .90157E-03   -1.5261    
  11  Prefactor     16.179        55.083        .99747E-04   -1.4903    
  12  norm          .10000E-03    22.712        .27785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.213        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    111.15        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.599        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     22.784        20.668        .83968E-04   -1.4753    
  17  norm          .10000E-03    10.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.2783        .10759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.7278        112.38        .24408E-03   -1.5378    
  21  Prefactor     .10000E-03    8.7887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.9402        17.965        .20300E-03   -1.5311    
  23  Normalizat    .94726        .22202        .25349E-03   -.94819    
  24  Prefactor     .76004        .14274        .19170E-03   -1.0122    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.56285e-10
Minuit parameter uncertainties:
  1  14.4572
  2  14.2556
  3  5.04575e-06
  4  4.57145e-07
  5  4.94208e-07
  6  40.9085
  7  1.50219e-06
  8  0.961139
  9  4.1419e-06
  10  7.27933
  11  55.257
  12  0.000518847
  13  2.30455e-05
  14  0.000225729
  15  5.11927e-05
  16  20.6747
  17  3.67532e-06
  18  2.62635e-05
  19  8.77777e-07
  20  35.0871
  21  9.86863e-06
  22  16.8348
  23  0.222231
  24  0.142804
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  7.600e-01  1.428e-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.473e-01  2.222e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/890145/likelihoodResults_329270401_329529601_4FGL_J2326.2+0113_daily_bin347.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5439.94351752
delta logL = 0.257542380185

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5439.91547786
delta logL = 0.285582030897

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.9015       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0211       1.0000          .0000       10.000    
     3 'Normalizat'    .91222       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77085       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5439.915     FROM MIGRAD    STATUS=FAILED        95 CALLS      326 TOTAL
                     EDM=   .61E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8848        95.023        .14264E-03   -.23751E-04
   2  Index         3.0222        2.6120        .48958E-02    .41018E-03
   3  Normalizat    .91141        .21642        .25789E-03    .25267E-03
   4  Prefactor     .77142        .14538        .19035E-03   -.34774E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5439.915     FROM SIMPLEX   STATUS=UNCHANGED     82 CALLS      408 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8848        95.023        .58966E-03   -1.5146    
   2  Index         3.0222        2.6120        .17834E-02   -.40669    
   3  Normalizat    .91141        .21642        .40712E-03   -.96060    
   4  Prefactor     .77142        .14538        .27364E-03   -1.0079    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5439.915     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      437 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8844        25.287        .57058E-05   -.10720E-03
   2  Index         3.0222        1.2638        .97916E-03    .26217E-04
   3  Normalizat    .91140        .21312        .51578E-04    .61849E-04
   4  Prefactor     .77142        .14273        .38069E-04   -.10679E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.88437
  Index      = 3.02217
  Normalizat = 0.911402
  Prefactor  = 0.771425
 **********
 **   18 **HESSE 
 **********

 FCN=   5439.915     FROM HESSE     STATUS=OK            23 CALLS      460 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8844        23.462        .11412E-05   -1.5146    
   2  Index         3.0222        1.1738        .39166E-04   -.40668    
   3  Normalizat    .91140        .21304        .10316E-04   -.96061    
   4  Prefactor     .77142        .14266        .76139E-05   -1.0079    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.07811e-10
Minuit parameter uncertainties:
  1  23.4894
  2  1.18696
  3  0.21324
  4  0.142727
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/890145': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5439.91546924
delta logL = 0.285590651082

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  7.714e-01  1.427e-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.114e-01  2.132e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.10
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/890145/cmap_HighResolution_329270401_329529601_4FGL_J2326.2+0113_daily_bin347.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.90e-03', job_status='DONE', photon_flux_upper_limit='9.12e-08', time_completed='2021-09-29 18:58:02.877084', job_id='890145', GAL2='0.77', fit_tolerance='1e-08', EG2='0.91', EG='0.95', time_epoch_completed='1632967082.88', return_code2='0', ts='0.10', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='2.86e-01', ts2='0.69', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='347' AND source_name='4FGL J2326.2+0113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:58:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 890145: <4FGL_J2326.2+0113_daily_bin347> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.2+0113_daily_bin347 351.575 1.2216 329270401 329529601 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 :                                   603.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             250.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   749 sec.
    Turnaround time :                            750 sec.

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

