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


Performing analysis on: 4FGL_J2326.2+0113_daily_bin361
RA = 351.575, Dec = 1.2216
tmin = 332899201, tmax = 333158401
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='890166', job_status='RUN', time_executed='2021-09-29 18:48:35.299602', time_epoch_executed='1632966515.3' WHERE source_name='4FGL J2326.2+0113' and cadence='daily' and bin_id='361'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/890166

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/890166/ft1_4FGL_J2326.2+0113_daily_bin361.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/890166/ft2_4FGL_J2326.2+0113_daily_bin361.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/890166/ft1_4FGL_J2326.2+0113_daily_bin361.fits outfile=/scratch/kocevski/890166/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin361.fits ra=351.575 dec=1.2216 rad=12.0 tmin=332899201.0 tmax=333158401.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.22
user 3.98
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/890166/ft1_filtered_4FGL_J2326.2+0113_daily_bin361.fits evtable="EVENTS" scfile=/scratch/kocevski/890166/ft2_4FGL_J2326.2+0113_daily_bin361.fits sctable="SC_DATA" expcube=/scratch/kocevski/890166/ltcube_332899201_333158401_4FGL_J2326.2+0113_daily_bin361.fits outfile=/scratch/kocevski/890166/expmap_332899201_333158401_4FGL_J2326.2+0113_daily_bin361.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/890166/ltcube_332899201_333158401_4FGL_J2326.2+0113_daily_bin361.fits
.....................!
real 191.01
user 185.63
sys 5.03

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/890166/ft1_filtered_4FGL_J2326.2+0113_daily_bin361.fits scfile=/scratch/kocevski/890166/ft2_4FGL_J2326.2+0113_daily_bin361.fits outfile=/scratch/kocevski/890166/cmap_332899201_333158401_4FGL_J2326.2+0113_daily_bin361.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.57
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/890166/ft1_filtered_4FGL_J2326.2+0113_daily_bin361.fits scfile=/scratch/kocevski/890166/ft2_4FGL_J2326.2+0113_daily_bin361.fits outfile=/scratch/kocevski/890166/cmap_HighResolution_332899201_333158401_4FGL_J2326.2+0113_daily_bin361.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.56
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    15.701       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.2487       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.319       1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.000       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .53821       1.0000         .10000E-03   10000.    
     9 'norm      '    1.6344       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.4536       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.0413       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .17001E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    10.494       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .85907       1.0000         .10000E-03   10000.    
    20 'Prefactor '    113.52       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.352       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .69440       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0669       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=   7611.124     FROM MIGRAD    STATUS=CONVERGED    604 CALLS     2790 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.8912       -.83535E-07** at limit **
   2  norm          15.700        11.083       -.11720E-06    .68786E-06
   3  Prefactor     2.3114        97.872       -.34212E-05   -.60476E-06
   4  Prefactor     15.321        13.354       -.15253E-06    .56091E-04
   5  Prefactor     15.999        13.091       -.19202E-07    .49866E-04
   6  Prefactor     .10000E-03    34.870       -.58563E-06** at limit **
   7  Prefactor     .10000E-03    2.6586       -.61147E-07** at limit **
   8  norm          .53865        .58667        .68110E-07    .11325E-02
   9  norm          1.6348        3.5603       -.96816E-06    .31015E-04
  10  Prefactor     .10000E-03    6.7796       -.31489E-07** at limit **
  11  Prefactor     .10000E-03    19.900        .33419E-06** at limit **
  12  norm          6.4574        7.2751       -.27718E-06    .42107E-04
  13  Prefactor     .10000E-03    2.9953       -.87755E-07** at limit **
  14  Prefactor     .34958        231.11       -.15192E-04    .10319E-03
  15  Prefactor     .10001E-03    47.749       -.11396E-04** at limit **
  16  Prefactor     .10000E-03    6.9177        .14462E-06** at limit **
  17  norm          10.463        13.291        .19213E-05    .12050E-03
  18  Prefactor     .10000E-03    40.074       -.50786E-06** at limit **
  19  Prefactor     .85592        3.1056       -.10135E-05   -.72987E-04
  20  Prefactor     113.53        46.122        .25485E-06    .35438E-03
  21  Prefactor     10.351        19.384       -.19660E-06    .64133E-04
  22  Prefactor     .10000E-03    11.068       -.23159E-06** at limit **
  23  Normalizat    .69461        .17640        .55768E-07    .40267E-03
  24  Prefactor     1.0667        .12455        .82825E-06    .12708E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 15.7005
  Prefactor  = 2.31138
  Prefactor  = 15.3206
  Prefactor  = 15.9992
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.538646
  norm       = 1.63481
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.45743
  Prefactor  = 0.0001
  Prefactor  = 0.34958
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  norm       = 10.4631
  Prefactor  = 0.0001
  Prefactor  = 0.855924
  Prefactor  = 113.532
  Prefactor  = 10.3513
  Prefactor  = 0.0001
  Normalizat = 0.694609
  Prefactor  = 1.06672
 **********
 **   18 **HESSE 
 **********

 FCN=   7611.124     FROM HESSE     STATUS=OK           413 CALLS     3203 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.9075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          15.700        11.088        .10108E-03   -1.4915    
   3  Prefactor     2.3114        98.098        .27402E-03   -1.5404    
   4  Prefactor     15.321        13.350        .10233E-03   -1.4925    
   5  Prefactor     15.999        13.089        .10013E-03   -1.4908    
   6  Prefactor     .10000E-03    35.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.6769        .13872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .53865        .55032        .65992E-03   -1.5561    
   9  norm          1.6348        3.5294        .23311E-03   -1.5452    
  10  Prefactor     .10000E-03    6.8327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    19.911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.4574        7.2498        .15799E-03   -1.5200    
  13  Prefactor     .10000E-03    3.0177        .14722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .34958        124.55        .32095       -1.5590    
  15  Prefactor     .10001E-03    47.859        .40871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.9275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          10.463        13.359        .12369E-03   -1.5061    
  18  Prefactor     .10000E-03    40.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .85592        3.1653        .26680E-03   -1.5523    
  20  Prefactor     113.53        46.245        .18879E-03   -1.3573    
  21  Prefactor     10.351        19.364        .12453E-03   -1.5064    
  22  Prefactor     .10000E-03    11.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .69461        .19459        .31736E-03   -1.0411    
  24  Prefactor     1.0667        .13611        .18696E-03   -.90537    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84765e-09
Minuit parameter uncertainties:
  1  4.28344e-06
  2  11.0897
  3  30.1682
  4  13.353
  5  13.0917
  6  8.4504e-06
  7  1.84038e-05
  8  0.55033
  9  3.52983
  10  1.96061e-06
  11  1.11375e-05
  12  7.25077
  13  2.26753e-07
  14  13.2227
  15  0.00122258
  16  7.3912e-06
  17  13.363
  18  2.76491e-06
  19  3.16593
  20  46.2598
  21  19.3753
  22  2.38484e-06
  23  0.194781
  24  0.136153
Done.

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

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  1.000e-04  1.114e-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.067e+00  1.362e-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.946e-01  1.948e-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.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/890166/likelihoodResults_332899201_333158401_4FGL_J2326.2+0113_daily_bin361.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7611.12467489
delta logL = -0.000239277940636

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7611.09681747
delta logL = 0.0276181492827

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    6.5579       1.0000          .0000       10.000    
     3 'Normalizat'    .68198       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0724       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7611.124     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      336 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    20.639        .25042E-04** at limit **
   2  Index         2.0361        1.5082       -.23307E-04    .24858E-05
   3  Normalizat    .69460        .18653        .57036E-04   -.47997E-03
   4  Prefactor     1.0667        .13476        .28057E-05   -.30576E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100019
  Index      = 2.03612
  Normalizat = 0.694598
  Prefactor  = 1.06672
 **********
 **   18 **HESSE 
 **********

 FCN=   7611.124     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      371 TOTAL
                     EDM=   .26E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    427.90        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0361        5.4790        .21261       -.63450    
   3  Normalizat    .69460        .19821E-01    .71702E-01   -1.0411    
   4  Prefactor     1.0667        .14281E-01    .38743E-01   -.90537    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.55271e-06
Minuit parameter uncertainties:
  1  0.00571478
  2  2814.92
  3  0.0198209
  4  0.0142812
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/890166': 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) = 7611.12443556
delta logL = 5.91371644987e-08

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  1.000e-04  5.715e-03  1.000e-04  1.000e+04 ( 1.000e-14)
407        Index:  2.036e+00  2.815e+03  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.067e+00  1.428e-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.946e-01  1.982e-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/890166/cmap_HighResolution_332899201_333158401_4FGL_J2326.2+0113_daily_bin361.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.75e-03', job_status='DONE', photon_flux_upper_limit='4.95e-08', time_completed='2021-09-29 19:00:54.758170', job_id='890166', GAL2='1.07', fit_tolerance='1e-08', EG2='0.69', EG='0.69', time_epoch_completed='1632967254.76', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='5.91e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='361' AND source_name='4FGL J2326.2+0113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:00:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 890166: <4FGL_J2326.2+0113_daily_bin361> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.2+0113_daily_bin361 351.575 1.2216 332899201 333158401 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 :                                   737.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             261.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            921 sec.

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

