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


Performing analysis on: 4FGL_J2326.2+0113_daily_bin758
RA = 351.575, Dec = 1.2216
tmin = 435801601, tmax = 436060801
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='892845', job_status='RUN', time_executed='2021-09-29 18:58:51.786753', time_epoch_executed='1632967131.79' WHERE source_name='4FGL J2326.2+0113' and cadence='daily' and bin_id='758'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/892845

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/892845/ft1_4FGL_J2326.2+0113_daily_bin758.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/892845/ft2_4FGL_J2326.2+0113_daily_bin758.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/892845/ft1_4FGL_J2326.2+0113_daily_bin758.fits outfile=/scratch/kocevski/892845/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin758.fits ra=351.575 dec=1.2216 rad=12.0 tmin=435801601.0 tmax=436060801.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 5.58
user 5.26
sys 0.30

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/892845/ft1_filtered_4FGL_J2326.2+0113_daily_bin758.fits evtable="EVENTS" scfile=/scratch/kocevski/892845/ft2_4FGL_J2326.2+0113_daily_bin758.fits sctable="SC_DATA" expcube=/scratch/kocevski/892845/ltcube_435801601_436060801_4FGL_J2326.2+0113_daily_bin758.fits outfile=/scratch/kocevski/892845/expmap_435801601_436060801_4FGL_J2326.2+0113_daily_bin758.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/892845/ltcube_435801601_436060801_4FGL_J2326.2+0113_daily_bin758.fits
.....................!
real 189.72
user 183.96
sys 5.45

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/892845/ft1_filtered_4FGL_J2326.2+0113_daily_bin758.fits scfile=/scratch/kocevski/892845/ft2_4FGL_J2326.2+0113_daily_bin758.fits outfile=/scratch/kocevski/892845/cmap_435801601_436060801_4FGL_J2326.2+0113_daily_bin758.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/892845/ft1_filtered_4FGL_J2326.2+0113_daily_bin758.fits scfile=/scratch/kocevski/892845/ft2_4FGL_J2326.2+0113_daily_bin758.fits outfile=/scratch/kocevski/892845/cmap_HighResolution_435801601_436060801_4FGL_J2326.2+0113_daily_bin758.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/892845/ft1_filtered_4FGL_J2326.2+0113_daily_bin758.fits evtable="EVENTS" scfile=/scratch/kocevski/892845/ft2_4FGL_J2326.2+0113_daily_bin758.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/892845/Model_4FGL_J2326.2+0113_daily_bin758.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/892845/ft1_filtered_4FGL_J2326.2+0113_daily_bin758.fits......................!
real 35.02
user 33.76
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .11552E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.5601       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.0242       1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.139       1.0000         .10000E-03   10000.    
     6 'Prefactor '    102.52       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.069       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10078E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    154.50       1.0000         .10000E-03   10000.    
    12 'norm      '    29.160       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .89579       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .93897E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10996E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10729E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10126E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.404       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.6818       1.0000         .10000E-03   10000.    
    20 'Prefactor '    75.549       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.8076       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .68600       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .97366       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=   2478.368     FROM MIGRAD    STATUS=CONVERGED    554 CALLS     2768 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    53.688       -.20441E-06** at limit **
   2  norm          .10000E-03    21.058        .37713E-06** at limit **
   3  Prefactor     7.7384        144.03        .81269E-07    .35974E-06
   4  Prefactor     5.0211        22.491       -.23558E-07    .28214E-04
   5  Prefactor     21.154        34.068        .21899E-06    .14454E-04
   6  Prefactor     102.67        131.05       -.17923E-05   -.47030E-04
   7  Prefactor     11.025        21.873        .78632E-06    .44123E-04
   8  norm          .10000E-03    .67793       -.12019E-06** at limit **
   9  norm          .10000E-03    4.0240        .97057E-06** at limit **
  10  Prefactor     .10000E-03    18.998       -.29129E-06** at limit **
  11  Prefactor     154.64        148.41       -.12196E-05   -.36834E-04
  12  norm          29.136        23.841        .53435E-06    .80664E-03
  13  Prefactor     .95233        85.805        .12243E-04   -.96567E-04
  14  Prefactor     .10000E-03    209.38       -.14220E-05** at limit **
  15  Prefactor     .10000E-03    19.120       -.22685E-05** at limit **
  16  Prefactor     .10000E-03    15.035       -.19852E-06** at limit **
  17  norm          .10000E-03    28.925       -.72045E-06** at limit **
  18  Prefactor     20.291        64.825       -.10846E-06   -.51224E-05
  19  Prefactor     3.6807        4.9335       -.33798E-07    .18248E-04
  20  Prefactor     75.619        78.972       -.95744E-07   -.68076E-05
  21  Prefactor     .10000E-03    17.250       -.70276E-07** at limit **
  22  Prefactor     8.8301        49.891       -.82311E-06   -.10085E-04
  23  Normalizat    .68526        .37359       -.14216E-06    .14675E-04
  24  Prefactor     .97398        .23218        .23126E-06    .46153E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.73841
  Prefactor  = 5.02112
  Prefactor  = 21.154
  Prefactor  = 102.674
  Prefactor  = 11.0246
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 154.645
  norm       = 29.1355
  Prefactor  = 0.952328
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 20.2908
  Prefactor  = 3.68071
  Prefactor  = 75.6186
  Prefactor  = 0.0001
  Prefactor  = 8.83006
  Normalizat = 0.68526
  Prefactor  = 0.973979
 **********
 **   18 **HESSE 
 **********

 FCN=   2478.368     FROM HESSE     STATUS=OK           397 CALLS     3165 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    54.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    21.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.7384        143.71        .14585E-03   -1.5152    
   4  Prefactor     5.0211        22.470        .17940E-03   -1.5260    
   5  Prefactor     21.154        34.080        .87117E-04   -1.4788    
   6  Prefactor     102.67        131.27        .19855E-03   -1.3678    
   7  Prefactor     11.025        21.902        .12042E-03   -1.5044    
   8  norm          .10000E-03    .69152        .40014E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.0408        .97682E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    19.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     154.64        148.20        .16216E-03   -1.3214    
  12  norm          29.136        25.820        .74193E-04   -1.4628    
  13  Prefactor     .95233        106.83        .31990E-02   -1.5513    
  14  Prefactor     .10000E-03    209.54        .20803E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    19.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    28.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     20.291        64.816        .88671E-04   -1.4807    
  19  Prefactor     3.6807        4.9211        .12404E-03   -1.5324    
  20  Prefactor     75.619        78.963        .46196E-04   -1.3967    
  21  Prefactor     .10000E-03    17.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     8.8301        49.951        .13506E-03   -1.5114    
  23  Normalizat    .68526        .38758        .33579E-03   -1.0448    
  24  Prefactor     .97398        .24431        .19055E-03   -.93602    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.9893e-09
Minuit parameter uncertainties:
  1  0.000254875
  2  2.88428e-05
  3  66.8814
  4  21.2568
  5  34.1114
  6  131.644
  7  21.9181
  8  4.08592e-06
  9  6.50133e-05
  10  0.00010114
  11  148.557
  12  25.8296
  13  20.2094
  14  0.00103609
  15  0.000325908
  16  4.87533e-05
  17  0.00010459
  18  65.042
  19  4.92161
  20  79.0732
  21  3.36115e-05
  22  42.0567
  23  0.389142
  24  0.244589
Done.

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

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  1.546e+02  1.486e+02  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.740e-01  2.446e-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:  6.853e-01  3.891e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.57
Ra Dec: 351.575 1.222
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 9.40e-08 +/- 9.02e-08
Energy Flux (Fixed Index): 4.95e-05 +/- 4.75e-05

TS (Fixed Index): 1.57
Ra Dec: 351.575 1.222
Photon Flux Upper Limit: 2.79e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.11e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/892845/likelihoodResults_435801601_436060801_4FGL_J2326.2+0113_daily_bin758.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) = 2475.29646201
delta logL = 3.07135797615

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2475.19808129
delta logL = 3.16973869521

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2286       1.0000         .10000E-03   10000.    
     2 'Index     '    4.4112       1.0000          .0000       10.000    
     3 'Normalizat'    .50339       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0593       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=   2475.198     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      246 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2173        11.978        .59075E-02    .17008E-03
   2  Index         4.4145        2.1127        .38271E-01    .13983E-03
   3  Normalizat    .50321        .13828        .86642E-01   -.47685E-05
   4  Prefactor     1.0594        .92880E-01    .39391E-01   -.96207E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.21728
  Index      = 4.41449
  Normalizat = 0.503213
  Prefactor  = 1.05944
 **********
 **   18 **HESSE 
 **********

 FCN=   2475.198     FROM HESSE     STATUS=OK            29 CALLS      275 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2173        10.659        .26221E-04   -1.5487    
   2  Index         4.4145        2.0486        .16633E-03   -.11737    
   3  Normalizat    .50321        .35498        .38385E-03   -1.1227    
   4  Prefactor     1.0594        .23898        .18296E-03   -.90774    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.49945e-10
Minuit parameter uncertainties:
  1  7.20571
  2  2.11172
  3  0.356593
  4  0.239222
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/892845': 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) = 2475.19807858
delta logL = 3.16974140425

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  1.217e+00  7.206e+00  1.000e-04  1.000e+04 ( 1.000e-14)
407        Index:  4.414e+00  2.112e+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:  1.059e+00  2.392e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  5.032e-01  3.566e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.43
Ra Dec: 351.575 1.222
Photon Index (Free Index): 4.41 +/- 2.11
Photon Flux (Free Index): 2.85e-07 +/- 1.43e-07
Energy Flux (Free Index): 4.01e-05 +/- 2.29e-05

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/892845/cmap_HighResolution_435801601_436060801_4FGL_J2326.2+0113_daily_bin758.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.11e-02', comment='SUCCESS', photon_flux='9.40e-08', energy_flux2='4.01e-05', photon_flux_error='9.02e-08', dlogl='3.17e+00', energy_flux='4.95e-05', photon_flux2='2.85e-07', job_status='DONE', time_completed='2021-09-29 19:06:30.207014', photon_index_error2='2.11', photon_index2='4.41', ts='1.57', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='2.79e-07', energy_flux_error2='2.29e-05', EG='0.69', time_epoch_completed='1632967590.21', return_code='0', job_id='892845', GAL2='1.06', EG2='0.50', return_code2='0', energy_flux_error='4.75e-05', photon_flux_error2='1.43e-07', ts2='8.43', photon_index='2.12' WHERE bin_id='758' AND source_name='4FGL J2326.2+0113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:06:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 892845: <4FGL_J2326.2+0113_daily_bin758> in cluster <slac> Done

Job <4FGL_J2326.2+0113_daily_bin758> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 18:55:18 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 18:55:19 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:55:19 2021
Terminated at Wed Sep 29 19:06:30 2021
Results reported at Wed Sep 29 19:06:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.2+0113_daily_bin758 351.575 1.2216 435801601 436060801 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 :                                   455.47 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             239.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   671 sec.
    Turnaround time :                            672 sec.

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

