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


Performing analysis on: 4FGL_J2326.2+0113_daily_bin327
RA = 351.575, Dec = 1.2216
tmin = 324086401, tmax = 324345601
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='890116', job_status='RUN', time_executed='2021-09-29 18:48:39.558612', time_epoch_executed='1632966519.56' WHERE source_name='4FGL J2326.2+0113' and cadence='daily' and bin_id='327'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/890116

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/890116/ft1_4FGL_J2326.2+0113_daily_bin327.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/890116/ft2_4FGL_J2326.2+0113_daily_bin327.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/890116/ft1_4FGL_J2326.2+0113_daily_bin327.fits outfile=/scratch/kocevski/890116/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin327.fits ra=351.575 dec=1.2216 rad=12.0 tmin=324086401.0 tmax=324345601.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 4.27
user 4.03
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/890116/ft2_4FGL_J2326.2+0113_daily_bin327.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/890116/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin327.fits evtable="EVENTS" outfile="/scratch/kocevski/890116/ft1_filtered_4FGL_J2326.2+0113_daily_bin327.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/890116/ft1_filtered_4FGL_J2326.2+0113_daily_bin327.fits" evtable="EVENTS" scfile=/scratch/kocevski/890116/ft2_4FGL_J2326.2+0113_daily_bin327.fits sctable="SC_DATA" outfile=/scratch/kocevski/890116/ltcube_324086401_324345601_4FGL_J2326.2+0113_daily_bin327.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/890116/ft2_4FGL_J2326.2+0113_daily_bin327.fits
.....................!
real 11.42
user 11.05
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/890116/ft1_filtered_4FGL_J2326.2+0113_daily_bin327.fits evtable="EVENTS" scfile=/scratch/kocevski/890116/ft2_4FGL_J2326.2+0113_daily_bin327.fits sctable="SC_DATA" expcube=/scratch/kocevski/890116/ltcube_324086401_324345601_4FGL_J2326.2+0113_daily_bin327.fits outfile=/scratch/kocevski/890116/expmap_324086401_324345601_4FGL_J2326.2+0113_daily_bin327.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/890116/ltcube_324086401_324345601_4FGL_J2326.2+0113_daily_bin327.fits
.....................!
real 189.97
user 185.16
sys 4.50

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/890116/ft1_filtered_4FGL_J2326.2+0113_daily_bin327.fits scfile=/scratch/kocevski/890116/ft2_4FGL_J2326.2+0113_daily_bin327.fits outfile=/scratch/kocevski/890116/cmap_324086401_324345601_4FGL_J2326.2+0113_daily_bin327.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/890116/ft1_filtered_4FGL_J2326.2+0113_daily_bin327.fits scfile=/scratch/kocevski/890116/ft2_4FGL_J2326.2+0113_daily_bin327.fits outfile=/scratch/kocevski/890116/cmap_HighResolution_324086401_324345601_4FGL_J2326.2+0113_daily_bin327.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.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/890116/ft1_filtered_4FGL_J2326.2+0113_daily_bin327.fits', '/scratch/kocevski/890116/ft2_4FGL_J2326.2+0113_daily_bin327.fits', expMap='/scratch/kocevski/890116/expmap_324086401_324345601_4FGL_J2326.2+0113_daily_bin327.fits', expCube='/scratch/kocevski/890116/ltcube_324086401_324345601_4FGL_J2326.2+0113_daily_bin327.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/890116/Model_4FGL_J2326.2+0113_daily_bin327.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/890116/ft1_filtered_4FGL_J2326.2+0113_daily_bin327.fits
Spacecraft file(s): /scratch/kocevski/890116/ft2_4FGL_J2326.2+0113_daily_bin327.fits
Exposure map: /scratch/kocevski/890116/expmap_324086401_324345601_4FGL_J2326.2+0113_daily_bin327.fits
Exposure cube: /scratch/kocevski/890116/ltcube_324086401_324345601_4FGL_J2326.2+0113_daily_bin327.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/890116/Model_4FGL_J2326.2+0113_daily_bin327.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6353.21837951

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.105       1.0000         .10000E-03   10000.    
     2 'norm      '    24.830       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .37573       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.832       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10505E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .55675       1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .40300E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    44.194       1.0000         .10000E-03   10000.    
    12 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.852       1.0000         .10000E-03   10000.    
    14 'Prefactor '    107.95       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10521E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    46.791       1.0000         .10000E-03   10000.    
    17 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.5067       1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.404       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0719       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .79500       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=   6353.087     FROM MIGRAD    STATUS=CONVERGED    532 CALLS     2379 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.109        21.080        .35345E-07   -.37134E-04
   2  norm          24.832        13.757        .45254E-07   -.11569E-03
   3  Prefactor     .10000E-03    23.333        .19120E-06** at limit **
   4  Prefactor     .42231        72.489        .23588E-04   -.70102E-04
   5  Prefactor     .10000E-03    6.6229        .11691E-06** at limit **
   6  Prefactor     16.818        31.975       -.43845E-05   -.47563E-03
   7  Prefactor     .10000E-03    7.8156        .19143E-05** at limit **
   8  norm          .55750        .67173        .24566E-06    .37905E-03
   9  norm          .10000E-03    1.2889        .10036E-06** at limit **
  10  Prefactor     .10003E-03    25.516        .13088E-04** at limit **
  11  Prefactor     44.198        39.257       -.16557E-06   -.73168E-04
  12  norm          .10000E-03    3.9926        .12137E-06** at limit **
  13  Prefactor     12.851        9.8365       -.92743E-07   -.14183E-03
  14  Prefactor     107.80        112.74        .96778E-06    .37270E-04
  15  Prefactor     .10000E-03    5.3834        .53161E-06** at limit **
  16  Prefactor     46.786        25.768        .17883E-06   -.80678E-04
  17  norm          .10000E-03    6.5639        .94622E-07** at limit **
  18  Prefactor     .10000E-03    20.239        .11226E-06** at limit **
  19  Prefactor     .10000E-03    1.3449        .28028E-06** at limit **
  20  Prefactor     5.5096        24.147       -.18756E-06   -.13947E-04
  21  Prefactor     11.410        24.470        .20949E-06   -.31699E-04
  22  Prefactor     .10000E-03    24.488        .24052E-06** at limit **
  23  Normalizat    1.0718        .19537        .65480E-06   -.30583E-03
  24  Prefactor     .79500        .12515       -.16078E-05   -.96794E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.1091
  norm       = 24.8321
  Prefactor  = 0.0001
  Prefactor  = 0.422312
  Prefactor  = 0.0001
  Prefactor  = 16.8183
  Prefactor  = 0.0001
  norm       = 0.5575
  norm       = 0.0001
  Prefactor  = 0.000100025
  Prefactor  = 44.1977
  norm       = 0.0001
  Prefactor  = 12.8511
  Prefactor  = 107.797
  Prefactor  = 0.000100001
  Prefactor  = 46.7865
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.50964
  Prefactor  = 11.4101
  Prefactor  = 0.0001
  Normalizat = 1.0718
  Prefactor  = 0.795003
 **********
 **   18 **HESSE 
 **********

 FCN=   6353.087     FROM HESSE     STATUS=OK           401 CALLS     2780 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.109        21.143        .87187E-04   -1.4789    
   2  norm          24.832        13.786        .80389E-04   -1.4711    
   3  Prefactor     .10000E-03    23.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .42231        102.26        .45325E-02   -1.5578    
   5  Prefactor     .10000E-03    6.6350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.818        33.464        .97623E-04   -1.4888    
   7  Prefactor     .10000E-03    8.1562        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .55750        .63984        .69217E-03   -1.5559    
   9  norm          .10000E-03    1.2907        .88352E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10003E-03    6.4903        .61889E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     44.198        39.283        .30154E-03   -1.4377    
  12  norm          .10000E-03    3.9986        .15530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     12.851        9.8218        .11173E-03   -1.4991    
  14  Prefactor     107.80        112.72        .19355E-03   -1.3628    
  15  Prefactor     .10000E-03    5.3832        .17987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     46.786        25.746        .58617E-04   -1.4339    
  17  norm          .10000E-03    6.5688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    20.252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.3452        .89967E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.5096        24.100        .17122E-03   -1.5238    
  21  Prefactor     11.410        24.509        .11863E-03   -1.5032    
  22  Prefactor     .10000E-03    24.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0718        .22845        .27181E-03   -.90662    
  24  Prefactor     .79500        .14639        .20901E-03   -.99913    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.13836e-09
Minuit parameter uncertainties:
  1  21.15
  2  13.7876
  3  5.64754e-05
  4  13.1646
  5  2.28985e-05
  6  33.5009
  7  8.00008e-05
  8  0.639847
  9  5.95448e-06
  10  0.000812453
  11  39.3059
  12  1.0017e-06
  13  9.82301
  14  112.943
  15  0.000127185
  16  25.7521
  17  5.32045e-05
  18  2.30743e-05
  19  2.72518e-05
  20  23.0615
  21  24.5305
  22  0.000160064
  23  0.22866
  24  0.146465
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  7.950e-01  1.465e-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.072e+00  2.287e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.35
Ra Dec: 351.575 1.222
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 2.69e-08 +/- 2.39e-08
Energy Flux (Fixed Index): 1.41e-05 +/- 1.26e-05

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) = 6352.87943466
delta logL = 0.207992385172

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6352.87916317
delta logL = 0.208263884058

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    57.625       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7193       1.0000          .0000       10.000    
     3 'Normalizat'    1.0816       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79281       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=   6352.879     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      305 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     57.658        54.122        .26424E-03    .32268E-05
   2  Index         1.7198        .61594        .10495E-01    .14972E-03
   3  Normalizat    1.0814        .21534        .27073E-03   -.13606E-04
   4  Prefactor     .79296        .14550        .20926E-03    .20427E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 57.6578
  Index      = 1.71978
  Normalizat = 1.08137
  Prefactor  = 0.792963
 **********
 **   18 **HESSE 
 **********

 FCN=   6352.879     FROM HESSE     STATUS=OK            25 CALLS      330 TOTAL
                     EDM=   .40E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     57.658        53.902        .10570E-04   -1.4188    
   2  Index         1.7198        .61359        .20990E-02   -.71556    
   3  Normalizat    1.0814        .21550        .10829E-04   -.90352    
   4  Prefactor     .79296        .14563        .83706E-05   -.99988    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.99957e-12
Minuit parameter uncertainties:
  1  53.9481
  2  0.616329
  3  0.215677
  4  0.145701
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/890116': 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) = 6352.879162
delta logL = 0.20826504933

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  5.766e+01  5.395e+01  1.000e-04  1.000e+04 ( 1.000e-14)
407        Index:  1.720e+00  6.163e-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:  7.930e-01  1.457e-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.081e+00  2.157e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.77
Ra Dec: 351.575 1.222
Photon Index (Free Index): 1.72 +/- 0.62
Photon Flux (Free Index): 1.58e-08 +/- 2.13e-08
Energy Flux (Free Index): 2.43e-05 +/- 3.28e-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/890116/cmap_HighResolution_324086401_324345601_4FGL_J2326.2+0113_daily_bin327.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.69e-08', energy_flux2='2.43e-05', photon_flux_error='2.39e-08', dlogl='2.08e-01', energy_flux='1.41e-05', photon_flux2='1.58e-08', job_status='DONE', time_completed='2021-09-29 18:58:11.468806', photon_index_error2='0.62', photon_index2='1.72', ts='5.35', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='3.28e-05', EG='1.07', time_epoch_completed='1632967091.47', return_code='0', job_id='890116', GAL2='0.79', EG2='1.08', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='2.13e-08', ts2='5.77', photon_index='2.12' WHERE bin_id='327' AND source_name='4FGL J2326.2+0113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:58:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 890116: <4FGL_J2326.2+0113_daily_bin327> in cluster <slac> Done

Job <4FGL_J2326.2+0113_daily_bin327> 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) <bullet0204>, 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:58:12 2021
Results reported at Wed Sep 29 18:58:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.2+0113_daily_bin327 351.575 1.2216 324086401 324345601 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 :                                   569.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             269.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            761 sec.

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

