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


Performing analysis on: 4FGL_J2326.2+0113_daily_bin165
RA = 351.575, Dec = 1.2216
tmin = 282096001, tmax = 282355201
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='889877', job_status='RUN', time_executed='2021-09-29 18:48:22.622928', time_epoch_executed='1632966502.62' WHERE source_name='4FGL J2326.2+0113' and cadence='daily' and bin_id='165'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/889877

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/889877/ft1_4FGL_J2326.2+0113_daily_bin165.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/889877/ft2_4FGL_J2326.2+0113_daily_bin165.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/889877/ft1_4FGL_J2326.2+0113_daily_bin165.fits outfile=/scratch/kocevski/889877/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin165.fits ra=351.575 dec=1.2216 rad=12.0 tmin=282096001.0 tmax=282355201.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.47
user 3.26
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/889877/ft1_filtered_4FGL_J2326.2+0113_daily_bin165.fits" evtable="EVENTS" scfile=/scratch/kocevski/889877/ft2_4FGL_J2326.2+0113_daily_bin165.fits sctable="SC_DATA" outfile=/scratch/kocevski/889877/ltcube_282096001_282355201_4FGL_J2326.2+0113_daily_bin165.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/889877/ft2_4FGL_J2326.2+0113_daily_bin165.fits
.....................!
real 11.96
user 11.56
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/889877/ft1_filtered_4FGL_J2326.2+0113_daily_bin165.fits evtable="EVENTS" scfile=/scratch/kocevski/889877/ft2_4FGL_J2326.2+0113_daily_bin165.fits sctable="SC_DATA" expcube=/scratch/kocevski/889877/ltcube_282096001_282355201_4FGL_J2326.2+0113_daily_bin165.fits outfile=/scratch/kocevski/889877/expmap_282096001_282355201_4FGL_J2326.2+0113_daily_bin165.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/889877/ltcube_282096001_282355201_4FGL_J2326.2+0113_daily_bin165.fits
.....................!
real 192.57
user 186.41
sys 5.46

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/889877/ft1_filtered_4FGL_J2326.2+0113_daily_bin165.fits scfile=/scratch/kocevski/889877/ft2_4FGL_J2326.2+0113_daily_bin165.fits outfile=/scratch/kocevski/889877/cmap_282096001_282355201_4FGL_J2326.2+0113_daily_bin165.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/889877/ft1_filtered_4FGL_J2326.2+0113_daily_bin165.fits scfile=/scratch/kocevski/889877/ft2_4FGL_J2326.2+0113_daily_bin165.fits outfile=/scratch/kocevski/889877/cmap_HighResolution_282096001_282355201_4FGL_J2326.2+0113_daily_bin165.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.033       1.0000         .10000E-03   10000.    
     2 'norm      '    1.4616       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.840       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.6681       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10266E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.191       1.0000         .10000E-03   10000.    
     8 'norm      '    .73360       1.0000         .10000E-03   10000.    
     9 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .39305E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10513E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    8.4667       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.4847       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 '    .10264E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.9210       1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.983       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.4509       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0942       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .79014       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=   7366.919     FROM MIGRAD    STATUS=CONVERGED    554 CALLS     3160 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.030        12.672        .14527E-06   -.19141E-04
   2  norm          1.4620        .56985       -.89195E-07   -.33453E-03
   3  Prefactor     .10000E-03    27.636       -.40487E-06** at limit **
   4  Prefactor     27.836        18.989        .91196E-06   -.75537E-04
   5  Prefactor     7.6649        13.062        .41125E-06   -.43725E-04
   6  Prefactor     .10000E-03    32.873       -.50130E-06** at limit **
   7  Prefactor     12.194        7.7263        .22107E-06   -.52478E-04
   8  norm          .73357        .59389       -.39551E-07    .57697E-04
   9  norm          .10000E-03    2.1964        .25996E-06** at limit **
  10  Prefactor     .10003E-03    6.1075        .96834E-06** at limit **
  11  Prefactor     .10000E-03    125.67        .14628E-04** at limit **
  12  norm          8.4609        11.096       -.24122E-06   -.31923E-03
  13  Prefactor     3.4867        7.9739       -.49105E-07   -.13500E-03
  14  Prefactor     .10000E-03    133.60       -.16304E-04** at limit **
  15  Prefactor     .10000E-03    3.8618        .11192E-07** at limit **
  16  Prefactor     .10000E-03    10.013       -.19569E-06** at limit **
  17  norm          .10000E-03    11.301       -.35195E-07** at limit **
  18  Prefactor     .10000E-03    13.848       -.31182E-06** at limit **
  19  Prefactor     5.9210        4.2947       -.89598E-07   -.48710E-04
  20  Prefactor     19.990        24.893        .26427E-06   -.66559E-04
  21  Prefactor     1.4352        64.655        .13193E-04   -.13692E-04
  22  Prefactor     .10000E-03    7.0081        .24386E-06** at limit **
  23  Normalizat    1.0941        .17564       -.12969E-05   -.28543E-03
  24  Prefactor     .79020        .11432       -.40515E-06   -.40214E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.0305
  norm       = 1.46199
  Prefactor  = 0.0001
  Prefactor  = 27.8359
  Prefactor  = 7.66491
  Prefactor  = 0.0001
  Prefactor  = 12.1941
  norm       = 0.73357
  norm       = 0.0001
  Prefactor  = 0.000100025
  Prefactor  = 0.0001
  norm       = 8.46086
  Prefactor  = 3.48674
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.92097
  Prefactor  = 19.9896
  Prefactor  = 1.43515
  Prefactor  = 0.0001
  Normalizat = 1.09415
  Prefactor  = 0.790203
 **********
 **   18 **HESSE 
 **********

 FCN=   7366.919     FROM HESSE     STATUS=OK           397 CALLS     3557 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.030        12.678        .12651E-03   -1.5074    
   2  norm          1.4620        5.7483        .17793E-02   -1.5466    
   3  Prefactor     .10000E-03    27.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     27.836        18.986        .75928E-04   -1.4652    
   5  Prefactor     7.6649        13.071        .72408E-03   -1.5154    
   6  Prefactor     .10000E-03    32.931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.194        7.7431        .57365E-03   -1.5009    
   8  norm          .73357        .59647        .56992E-04   -1.5537    
   9  norm          .10000E-03    2.2144        .12404E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10003E-03    32.148        .37616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    127.03        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          8.4609        10.332        .13777E-03   -1.5126    
  13  Prefactor     3.4867        7.7981        .21661E-03   -1.5334    
  14  Prefactor     .10000E-03    132.69        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.8691        .16454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    11.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.9210        4.3010        .14112E-03   -1.5221    
  20  Prefactor     19.990        24.852        .89598E-04   -1.4813    
  21  Prefactor     1.4352        65.486        .35765E-03   -1.5468    
  22  Prefactor     .10000E-03    7.0525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0941        .20584        .26149E-03   -.89940    
  24  Prefactor     .79020        .13423        .20848E-03   -1.0009    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.088e-09
Minuit parameter uncertainties:
  1  12.6813
  2  5.75043
  3  2.72129e-05
  4  18.9904
  5  13.076
  6  2.54345e-05
  7  7.74378
  8  0.596475
  9  2.44055e-06
  10  0.00181178
  11  3.0641e-06
  12  10.3345
  13  7.80035
  14  9.12969e-05
  15  7.92545e-06
  16  9.32156e-06
  17  1.64076e-05
  18  6.44623e-06
  19  4.30123
  20  24.8645
  21  19.4108
  22  9.40038e-06
  23  0.20599
  24  0.13429
Done.

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

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  1.000e-04  3.064e-06  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.902e-01  1.343e-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:  1.094e+00  2.060e-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.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.92e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/889877/likelihoodResults_282096001_282355201_4FGL_J2326.2+0113_daily_bin165.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) = 7366.91873179
delta logL = -3.73811362806e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7366.91670631
delta logL = 0.00198810210804

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0866       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6514       1.0000          .0000       10.000    
     3 'Normalizat'    1.0929       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78952       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=   7366.917     FROM MIGRAD    STATUS=CONVERGED     69 CALLS      297 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1011        13.268        .11504        .30432E-03
   2  Index         2.6458        .23203        .50000       -.71516E-05
   3  Normalizat    1.0924        .46434E-02    .59168E-01    .30980E-03
   4  Prefactor     .79029        .32141E-02    .43581E-01    .36866E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.10108
  Index      = 2.6458
  Normalizat = 1.09243
  Prefactor  = 0.790293
 **********
 **   18 **HESSE 
 **********

 FCN=   7366.917     FROM HESSE     STATUS=OK            31 CALLS      328 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1011        174.27        .57052E-02   -1.5498    
   2  Index         2.6458        6.3207        .41198E-02   -.49024    
   3  Normalizat    1.0924        .19454        .26167E-03   -.89995    
   4  Prefactor     .79029        .13282        .20847E-03   -1.0009    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.68889e-10
Minuit parameter uncertainties:
  1  27.7858
  2  4.95293
  3  0.194668
  4  0.132873
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/889877': 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) = 7366.9166765
delta logL = 0.00201791061681

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  1.101e+00  2.779e+01  1.000e-04  1.000e+04 ( 1.000e-14)
407        Index:  2.646e+00  4.953e+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.903e-01  1.329e-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:  1.092e+00  1.947e-01  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/889877/cmap_HighResolution_282096001_282355201_4FGL_J2326.2+0113_daily_bin165.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.92e-03', job_status='DONE', photon_flux_upper_limit='6.49e-08', time_completed='2021-09-29 19:00:58.952687', job_id='889877', GAL2='0.79', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1632967258.95', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='2.02e-03', ts2='0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='165' AND source_name='4FGL J2326.2+0113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:00:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 889877: <4FGL_J2326.2+0113_daily_bin165> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.2+0113_daily_bin165 351.575 1.2216 282096001 282355201 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 :                                   753.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   945 sec.
    Turnaround time :                            946 sec.

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

