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


Performing analysis on: 4FGL_J2326.2+0113_daily_bin323
RA = 351.575, Dec = 1.2216
tmin = 323049601, tmax = 323308801
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='890110', job_status='RUN', time_executed='2021-09-29 18:46:55.334154', time_epoch_executed='1632966415.33' WHERE source_name='4FGL J2326.2+0113' and cadence='daily' and bin_id='323'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/890110

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/890110/ft1_4FGL_J2326.2+0113_daily_bin323.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/890110/ft2_4FGL_J2326.2+0113_daily_bin323.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/890110/ft1_4FGL_J2326.2+0113_daily_bin323.fits outfile=/scratch/kocevski/890110/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin323.fits ra=351.575 dec=1.2216 rad=12.0 tmin=323049601.0 tmax=323308801.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.35
user 3.12
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/890110/ft2_4FGL_J2326.2+0113_daily_bin323.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/890110/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin323.fits evtable="EVENTS" outfile="/scratch/kocevski/890110/ft1_filtered_4FGL_J2326.2+0113_daily_bin323.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/890110/ft1_filtered_4FGL_J2326.2+0113_daily_bin323.fits" evtable="EVENTS" scfile=/scratch/kocevski/890110/ft2_4FGL_J2326.2+0113_daily_bin323.fits sctable="SC_DATA" outfile=/scratch/kocevski/890110/ltcube_323049601_323308801_4FGL_J2326.2+0113_daily_bin323.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/890110/ft2_4FGL_J2326.2+0113_daily_bin323.fits
.....................!
real 12.23
user 11.81
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/890110/ft1_filtered_4FGL_J2326.2+0113_daily_bin323.fits evtable="EVENTS" scfile=/scratch/kocevski/890110/ft2_4FGL_J2326.2+0113_daily_bin323.fits sctable="SC_DATA" expcube=/scratch/kocevski/890110/ltcube_323049601_323308801_4FGL_J2326.2+0113_daily_bin323.fits outfile=/scratch/kocevski/890110/expmap_323049601_323308801_4FGL_J2326.2+0113_daily_bin323.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/890110/ltcube_323049601_323308801_4FGL_J2326.2+0113_daily_bin323.fits
.....................!
real 193.10
user 187.21
sys 5.56

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/890110/ft1_filtered_4FGL_J2326.2+0113_daily_bin323.fits scfile=/scratch/kocevski/890110/ft2_4FGL_J2326.2+0113_daily_bin323.fits outfile=/scratch/kocevski/890110/cmap_323049601_323308801_4FGL_J2326.2+0113_daily_bin323.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.54
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17110E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .68249       1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.986       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.876       1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.152       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .16304E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.2530       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.0615       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.1904       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    24.326       1.0000         .10000E-03   10000.    
    17 'norm      '    .10206E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.6485       1.0000         .10000E-03   10000.    
    20 'Prefactor '    42.608       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.4562       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .68238       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1811       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=   7890.690     FROM MIGRAD    STATUS=CONVERGED    552 CALLS     2752 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10011E-03    14.218        .68541E-05** at limit **
   2  norm          .67913        7.4841        .57077E-06   -.10093E-03
   3  Prefactor     25.991        36.884       -.26452E-06    .45497E-04
   4  Prefactor     .10000E-03    6.7247       -.93762E-07** at limit **
   5  Prefactor     17.877        20.027        .22576E-06    .33499E-04
   6  Prefactor     23.164        31.682       -.48486E-05   -.46481E-03
   7  Prefactor     .10000E-03    4.3297        .10256E-05** at limit **
   8  norm          2.2532        .89498       -.11253E-07   -.86642E-03
   9  norm          .10000E-03    3.8249       -.45187E-07** at limit **
  10  Prefactor     3.0581        11.149        .54082E-05    .20489E-03
  11  Prefactor     .10000E-03    16.543       -.21245E-06** at limit **
  12  norm          6.1925        9.0290        .62125E-06    .30393E-03
  13  Prefactor     .10000E-03    3.9153       -.12987E-06** at limit **
  14  Prefactor     .10000E-03    62.992        .63776E-06** at limit **
  15  Prefactor     .10000E-03    4.6770        .23442E-06** at limit **
  16  Prefactor     24.337        30.244       -.21754E-05    .14396E-03
  17  norm          .10000E-03    15.419       -.56850E-08** at limit **
  18  Prefactor     .10000E-03    22.612        .10789E-05** at limit **
  19  Prefactor     6.6505        4.3240        .53752E-07    .22110E-03
  20  Prefactor     42.615        40.338       -.28115E-09    .92443E-04
  21  Prefactor     6.4569        23.789        .98638E-06    .72728E-05
  22  Prefactor     .10000E-03    2.7958       -.25244E-07** at limit **
  23  Normalizat    .68222        .18896       -.84669E-06   -.38471E-03
  24  Prefactor     1.1812        .12828        .16810E-06   -.40479E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100111
  norm       = 0.679129
  Prefactor  = 25.9909
  Prefactor  = 0.0001
  Prefactor  = 17.8771
  Prefactor  = 23.1643
  Prefactor  = 0.000100002
  norm       = 2.25318
  norm       = 0.0001
  Prefactor  = 3.05815
  Prefactor  = 0.0001
  norm       = 6.19253
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 24.337
  norm       = 0.000100001
  Prefactor  = 0.000100003
  Prefactor  = 6.6505
  Prefactor  = 42.6149
  Prefactor  = 6.45694
  Prefactor  = 0.0001
  Normalizat = 0.68222
  Prefactor  = 1.1812
 **********
 **   18 **HESSE 
 **********

 FCN=   7890.690     FROM HESSE     STATUS=OK           399 CALLS     3151 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10011E-03    31.890        .43866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .67913        33.002        .45051E-02   -1.5543    
   3  Prefactor     25.991        36.835        .78584E-04   -1.4688    
   4  Prefactor     .10000E-03    6.7965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     17.877        20.010        .94730E-04   -1.4862    
   6  Prefactor     23.164        32.314        .83248E-04   -1.4745    
   7  Prefactor     .10000E-03    12.858        .33871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.2532        .89188        .50555E-04   -1.5408    
   9  norm          .10000E-03    3.9179        .33792E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.0581        11.907        .11592E-02   -1.5358    
  11  Prefactor     .10000E-03    16.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.1925        8.8711        .80675E-03   -1.5210    
  13  Prefactor     .10000E-03    3.9417        .17127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    62.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.7101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     24.337        30.324        .81217E-04   -1.4721    
  17  norm          .10000E-03    15.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    22.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.6505        4.3104        .13875E-03   -1.5192    
  20  Prefactor     42.615        40.254        .61415E-04   -1.4401    
  21  Prefactor     6.4569        23.733        .15795E-03   -1.5200    
  22  Prefactor     .10000E-03    2.7972        .14505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .68222        .20820        .33950E-03   -1.0460    
  24  Prefactor     1.1812        .14455        .19175E-03   -.86912    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.10318e-08
Minuit parameter uncertainties:
  1  0.00376626
  2  9.47326
  3  36.8669
  4  1.17186e-05
  5  20.0172
  6  32.3384
  7  0.000321707
  8  0.891884
  9  3.84447e-05
  10  11.9157
  11  8.53747e-05
  12  8.87299
  13  1.88716e-05
  14  0.000373151
  15  2.6334e-05
  16  30.3431
  17  0.000255725
  18  0.00048144
  19  4.31065
  20  40.2801
  21  23.768
  22  3.17355e-06
  23  0.208441
  24  0.144603
Done.

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

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  1.000e-04  8.537e-05  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:  1.181e+00  1.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.822e-01  2.084e-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: 4.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.56e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/890110/likelihoodResults_323049601_323308801_4FGL_J2326.2+0113_daily_bin323.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) = 7890.6902633
delta logL = -0.000287520419988

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7890.68997668
delta logL = -8.94961885933e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10214E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3499       1.0000          .0000       10.000    
     3 'Normalizat'    .68222       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1812       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=   7890.690     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      275 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10108E-03    64.917        .18142E-02** at limit **
   2  Index         2.2998        8.5233        .50000        .17842E-04
   3  Normalizat    .68222        .95088E-02    .33951E-03   -.20092E-06
   4  Prefactor     1.1812        .69413E-02    .19175E-03   -.16127E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101077
  Index      = 2.29984
  Normalizat = 0.682223
  Prefactor  = 1.18119
 **********
 **   18 **HESSE 
 **********

 FCN=   7890.690     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      304 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10108E-03    294.41        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2998        5.5244        .50000       -.57048    
   3  Normalizat    .68222        .20696E-01    .13580E-04   -1.0460    
   4  Prefactor     1.1812        .15108E-01    .76699E-05   -.86912    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.07395e-08
Minuit parameter uncertainties:
  1  0.035786
  2  324.545
  3  0.0206961
  4  0.0151076
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/890110': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7890.68997641
delta logL = -6.2879644247e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  1.181e+00  1.511e-02  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.822e-01  2.070e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 351.575 1.222

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/890110/cmap_HighResolution_323049601_323308801_4FGL_J2326.2+0113_daily_bin323.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.56e-03', job_status='DONE', photon_flux_upper_limit='4.71e-08', time_completed='2021-09-29 18:59:23.364073', job_id='890110', GAL2='1.18', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1632967163.36', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='-6.29e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='323' AND source_name='4FGL J2326.2+0113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:59:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 890110: <4FGL_J2326.2+0113_daily_bin323> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.2+0113_daily_bin323 351.575 1.2216 323049601 323308801 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 :                                   743.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             342.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            833 sec.

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

