/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 237 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 = 7037
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2326.2+0113_daily_bin109
RA = 351.575, Dec = 1.2216
tmin = 267580801, tmax = 267840001
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='888775', job_status='RUN', time_executed='2021-09-29 18:45:00.576353', time_epoch_executed='1632966300.58' WHERE source_name='4FGL J2326.2+0113' and cadence='daily' and bin_id='109'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/888775

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/888775/ft1_4FGL_J2326.2+0113_daily_bin109.fits


Retrieving the FT1 file...

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

Retrieving 44 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/888775/ft2_4FGL_J2326.2+0113_daily_bin109.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/888775/ft1_4FGL_J2326.2+0113_daily_bin109.fits outfile=/scratch/kocevski/888775/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin109.fits ra=351.575 dec=1.2216 rad=12.0 tmin=267580801.0 tmax=267840001.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 1.36
user 1.19
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/888775/ft1_filtered_4FGL_J2326.2+0113_daily_bin109.fits" evtable="EVENTS" scfile=/scratch/kocevski/888775/ft2_4FGL_J2326.2+0113_daily_bin109.fits sctable="SC_DATA" outfile=/scratch/kocevski/888775/ltcube_267580801_267840001_4FGL_J2326.2+0113_daily_bin109.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/888775/ft2_4FGL_J2326.2+0113_daily_bin109.fits
.....................!
real 12.00
user 11.68
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/888775/ft1_filtered_4FGL_J2326.2+0113_daily_bin109.fits evtable="EVENTS" scfile=/scratch/kocevski/888775/ft2_4FGL_J2326.2+0113_daily_bin109.fits sctable="SC_DATA" expcube=/scratch/kocevski/888775/ltcube_267580801_267840001_4FGL_J2326.2+0113_daily_bin109.fits outfile=/scratch/kocevski/888775/expmap_267580801_267840001_4FGL_J2326.2+0113_daily_bin109.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/888775/ltcube_267580801_267840001_4FGL_J2326.2+0113_daily_bin109.fits
.....................!
real 189.40
user 185.34
sys 3.74

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/888775/ft1_filtered_4FGL_J2326.2+0113_daily_bin109.fits scfile=/scratch/kocevski/888775/ft2_4FGL_J2326.2+0113_daily_bin109.fits outfile=/scratch/kocevski/888775/cmap_267580801_267840001_4FGL_J2326.2+0113_daily_bin109.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/888775/ft1_filtered_4FGL_J2326.2+0113_daily_bin109.fits scfile=/scratch/kocevski/888775/ft2_4FGL_J2326.2+0113_daily_bin109.fits outfile=/scratch/kocevski/888775/cmap_HighResolution_267580801_267840001_4FGL_J2326.2+0113_daily_bin109.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/888775/ft1_filtered_4FGL_J2326.2+0113_daily_bin109.fits evtable="EVENTS" scfile=/scratch/kocevski/888775/ft2_4FGL_J2326.2+0113_daily_bin109.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/888775/Model_4FGL_J2326.2+0113_daily_bin109.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/888775/ft1_filtered_4FGL_J2326.2+0113_daily_bin109.fits....................!
real 75.51
user 74.18
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .74371       1.0000         .10000E-03   10000.    
     3 'Prefactor '    30.152       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.5676       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .96660       1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .58897E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    27.772       1.0000         .10000E-03   10000.    
    12 'norm      '    13.815       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.0420       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.0896       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.494       1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.389       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.4526       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.5494       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .82024       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .88281       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=   7944.990     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     2728 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.3999        .10423E-06** at limit **
   2  norm          .80034        12.040        .22459E-05    .16985E-03
   3  Prefactor     30.151        27.153       -.80651E-07   -.31207E-04
   4  Prefactor     8.5686        10.281        .26642E-07    .86368E-05
   5  Prefactor     .10000E-03    7.9594        .21558E-06** at limit **
   6  Prefactor     .10000E-03    9.2478       -.57610E-07** at limit **
   7  Prefactor     .10000E-03    2.1031       -.63634E-07** at limit **
   8  norm          .96677        .76201       -.57300E-07   -.19405E-03
   9  norm          .10000E-03    2.5482       -.13630E-06** at limit **
  10  Prefactor     .10002E-03    35.088        .67778E-05** at limit **
  11  Prefactor     27.773        27.581       -.61564E-07   -.59812E-04
  12  norm          13.801        8.8214       -.86922E-06   -.11319E-02
  13  Prefactor     3.0466        6.6921        .28412E-06   -.10235E-03
  14  Prefactor     .10000E-03    50.929        .12347E-06** at limit **
  15  Prefactor     .10000E-03    3.6645       -.26063E-06** at limit **
  16  Prefactor     .10000E-03    9.2152        .16888E-06** at limit **
  17  norm          .10000E-03    4.8533       -.13165E-06** at limit **
  18  Prefactor     9.0980        58.827       -.86800E-06   -.87095E-04
  19  Prefactor     11.494        4.3390       -.30447E-07   -.63886E-03
  20  Prefactor     14.388        19.087       -.16315E-07   -.14925E-04
  21  Prefactor     5.4578        17.127       -.53182E-07   -.33535E-04
  22  Prefactor     4.5503        7.3733       -.10115E-05    .44386E-03
  23  Normalizat    .82027        .16519        .78391E-06   -.36953E-03
  24  Prefactor     .88268        .10708       -.82322E-06   -.42173E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.800335
  Prefactor  = 30.1509
  Prefactor  = 8.56862
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.966772
  norm       = 0.0001
  Prefactor  = 0.000100019
  Prefactor  = 27.7731
  norm       = 13.8011
  Prefactor  = 3.04656
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.09799
  Prefactor  = 11.4938
  Prefactor  = 14.3884
  Prefactor  = 5.45782
  Prefactor  = 4.55032
  Normalizat = 0.820272
  Prefactor  = 0.882681
 **********
 **   18 **HESSE 
 **********

 FCN=   7944.990     FROM HESSE     STATUS=OK           403 CALLS     3131 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.4221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .80034        29.041        .45229E-02   -1.5529    
   3  Prefactor     30.151        27.160        .72965E-04   -1.4609    
   4  Prefactor     8.5686        10.277        .13695E-03   -1.5122    
   5  Prefactor     .10000E-03    8.0233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.2516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.1075        .12620E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .96677        .72851        .65250E-03   -1.5511    
   9  norm          .10000E-03    2.6198        .27750E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10002E-03    42.182        .41533E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     27.773        27.585        .76021E-04   -1.4653    
  12  norm          13.801        8.8442        .10776E-03   -1.4965    
  13  Prefactor     3.0466        6.6552        .23263E-03   -1.5359    
  14  Prefactor     .10000E-03    50.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.6714        .16636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.2513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.8552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.0980        59.376        .13294E-03   -1.5105    
  19  Prefactor     11.494        4.3485        .10675E-03   -1.5030    
  20  Prefactor     14.388        19.082        .10559E-03   -1.4949    
  21  Prefactor     5.4578        17.111        .17208E-03   -1.5241    
  22  Prefactor     4.5503        7.5619        .94369E-03   -1.5281    
  23  Normalizat    .82027        .18589        .28107E-03   -.99321    
  24  Prefactor     .88268        .12316        .18918E-03   -.96749    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08189e-09
Minuit parameter uncertainties:
  1  9.0655e-06
  2  9.64654
  3  27.1714
  4  10.2795
  5  3.57819e-05
  6  1.951e-05
  7  1.66163e-06
  8  0.728514
  9  1.04857e-06
  10  0.00178673
  11  27.5979
  12  8.84504
  13  6.65685
  14  0.000340073
  15  8.40509e-06
  16  4.35866e-06
  17  8.86892e-06
  18  46.5519
  19  4.34864
  20  19.0899
  21  17.1268
  22  7.56346
  23  0.186035
  24  0.123199
Done.

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

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  2.777e+01  2.760e+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:  8.827e-01  1.232e-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:  8.203e-01  1.860e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.29
Ra Dec: 351.575 1.222
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 1.69e-08 +/- 1.68e-08
Energy Flux (Fixed Index): 8.89e-06 +/- 8.83e-06

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

Saving results to:
/scratch/kocevski/888775/likelihoodResults_267580801_267840001_4FGL_J2326.2+0113_daily_bin109.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) = 7944.71258831
delta logL = 0.277575369913

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7944.69405682
delta logL = 0.296106863829

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.005       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5500       1.0000          .0000       10.000    
     3 'Normalizat'    .83011       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87965       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=   7944.694     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      275 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.008        37.560        .65883E-04   -.77461E-03
   2  Index         1.5500        .66685        .11992E-01   -.33315E-03
   3  Normalizat    .83008        .17236        .27955E-03    .27206E-03
   4  Prefactor     .87965        .12077        .18947E-03    .41238E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.0078
  Index      = 1.55003
  Normalizat = 0.830077
  Prefactor  = 0.879648
 **********
 **   18 **HESSE 
 **********

 FCN=   7944.694     FROM HESSE     STATUS=OK            23 CALLS      298 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.008        37.630        .13177E-04   -1.4491    
   2  Index         1.5500        .66817        .47970E-03   -.76148    
   3  Normalizat    .83008        .17247        .11182E-04   -.98963    
   4  Prefactor     .87965        .12085        .37894E-04   -.96856    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.73064e-09
Minuit parameter uncertainties:
  1  37.6542
  2  0.672023
  3  0.17258
  4  0.120892
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/888775': 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) = 7944.69405673
delta logL = 0.296106954739

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  3.701e+01  3.765e+01  1.000e-04  1.000e+04 ( 1.000e-14)
407        Index:  1.550e+00  6.720e-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.796e-01  1.209e-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:  8.301e-01  1.726e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.87
Ra Dec: 351.575 1.222
Photon Index (Free Index): 1.55 +/- 0.67
Photon Flux (Free Index): 7.76e-09 +/- 1.12e-08
Energy Flux (Free Index): 2.07e-05 +/- 3.30e-05

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/888775/cmap_HighResolution_267580801_267840001_4FGL_J2326.2+0113_daily_bin109.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.90e-03', comment='SUCCESS', photon_flux='1.69e-08', energy_flux2='2.07e-05', photon_flux_error='1.68e-08', dlogl='2.96e-01', energy_flux='8.89e-06', photon_flux2='7.76e-09', job_status='DONE', time_completed='2021-09-29 18:57:12.535800', photon_index_error2='0.67', photon_index2='1.55', ts='3.29', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='6.47e-08', energy_flux_error2='3.30e-05', EG='0.82', time_epoch_completed='1632967032.54', return_code='0', job_id='888775', GAL2='0.88', EG2='0.83', return_code2='0', energy_flux_error='8.83e-06', photon_flux_error2='1.12e-08', ts2='3.87', photon_index='2.12' WHERE bin_id='109' AND source_name='4FGL J2326.2+0113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:57:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 888775: <4FGL_J2326.2+0113_daily_bin109> in cluster <slac> Done

Job <4FGL_J2326.2+0113_daily_bin109> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 18:40:54 2021
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 18:40:56 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:40:56 2021
Terminated at Wed Sep 29 18:57:13 2021
Results reported at Wed Sep 29 18:57:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.2+0113_daily_bin109 351.575 1.2216 267580801 267840001 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 :                                   731.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             255.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   976 sec.
    Turnaround time :                            979 sec.

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

