/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 179 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7402
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2326.2+0113_daily_bin986
RA = 351.575, Dec = 1.2216
tmin = 494899201, tmax = 495158401
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='893217', job_status='RUN', time_executed='2021-09-29 18:59:02.881737', time_epoch_executed='1632967142.88' WHERE source_name='4FGL J2326.2+0113' and cadence='daily' and bin_id='986'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/893217

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/893217/ft1_4FGL_J2326.2+0113_daily_bin986.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/893217/ft2_4FGL_J2326.2+0113_daily_bin986.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/893217/ft1_4FGL_J2326.2+0113_daily_bin986.fits outfile=/scratch/kocevski/893217/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin986.fits ra=351.575 dec=1.2216 rad=12.0 tmin=494899201.0 tmax=495158401.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.63
user 3.40
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/893217/ft1_filtered_4FGL_J2326.2+0113_daily_bin986.fits evtable="EVENTS" scfile=/scratch/kocevski/893217/ft2_4FGL_J2326.2+0113_daily_bin986.fits sctable="SC_DATA" expcube=/scratch/kocevski/893217/ltcube_494899201_495158401_4FGL_J2326.2+0113_daily_bin986.fits outfile=/scratch/kocevski/893217/expmap_494899201_495158401_4FGL_J2326.2+0113_daily_bin986.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/893217/ltcube_494899201_495158401_4FGL_J2326.2+0113_daily_bin986.fits
.....................!
real 191.02
user 185.40
sys 5.30

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/893217/ft1_filtered_4FGL_J2326.2+0113_daily_bin986.fits scfile=/scratch/kocevski/893217/ft2_4FGL_J2326.2+0113_daily_bin986.fits outfile=/scratch/kocevski/893217/cmap_494899201_495158401_4FGL_J2326.2+0113_daily_bin986.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/893217/ft1_filtered_4FGL_J2326.2+0113_daily_bin986.fits scfile=/scratch/kocevski/893217/ft2_4FGL_J2326.2+0113_daily_bin986.fits outfile=/scratch/kocevski/893217/cmap_HighResolution_494899201_495158401_4FGL_J2326.2+0113_daily_bin986.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/893217/ft1_filtered_4FGL_J2326.2+0113_daily_bin986.fits evtable="EVENTS" scfile=/scratch/kocevski/893217/ft2_4FGL_J2326.2+0113_daily_bin986.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/893217/Model_4FGL_J2326.2+0113_daily_bin986.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/893217/ft1_filtered_4FGL_J2326.2+0113_daily_bin986.fits.....................!
real 51.30
user 49.98
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13590E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    22.533       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.8100       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.5474       1.0000         .10000E-03   10000.    
     8 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .59566       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .15862       1.0000         .10000E-03   10000.    
    14 'Prefactor '    399.33       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.3395       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .92506E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10129E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .26419E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    51.495       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .16008E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.1457       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .88112       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .88700       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=   4713.496     FROM MIGRAD    STATUS=CONVERGED    579 CALLS     2859 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    66.066       -.40974E-07** at limit **
   2  norm          22.533        14.592        .12745E-07    .34673E-04
   3  Prefactor     .10002E-03    115.12        .16402E-05** at limit **
   4  Prefactor     9.8102        11.733       -.74379E-06    .25436E-04
   5  Prefactor     .10000E-03    5.7556       -.32086E-08** at limit **
   6  Prefactor     .10000E-03    24.456        .77442E-06** at limit **
   7  Prefactor     2.5458        7.4678       -.44322E-06    .23884E-03
   8  norm          .10000E-03    .39577       -.98061E-07** at limit **
   9  norm          .59729        8.7591       -.14186E-05    .12735E-03
  10  Prefactor     .10000E-03    3.8509        .19767E-07** at limit **
  11  Prefactor     .10000E-03    27.146       -.64017E-06** at limit **
  12  norm          .10000E-03    3.9001        .27415E-07** at limit **
  13  Prefactor     .17874        4.1719        .10354E-06    .60758E-04
  14  Prefactor     399.35        299.51        .27486E-05    .73072E-04
  15  Prefactor     4.3085        14.676        .20785E-05    .26750E-03
  16  Prefactor     .10000E-03    75.272        .69315E-07** at limit **
  17  norm          .10000E-03    42.306       -.56936E-06** at limit **
  18  Prefactor     .10000E-03    22.203       -.13871E-06** at limit **
  19  Prefactor     .10000E-03    3.2395       -.87367E-06** at limit **
  20  Prefactor     51.504        37.111       -.88679E-08    .54157E-04
  21  Prefactor     .10001E-03    222.79       -.15097E-04** at limit **
  22  Prefactor     3.1459        12.958        .13066E-07    .25352E-04
  23  Normalizat    .88105        .21247        .24618E-06    .30749E-03
  24  Prefactor     .88702        .13916       -.10118E-06    .40826E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  norm       = 22.5329
  Prefactor  = 0.000100015
  Prefactor  = 9.8102
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.54582
  norm       = 0.0001
  norm       = 0.597295
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.178737
  Prefactor  = 399.351
  Prefactor  = 4.30846
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 51.5045
  Prefactor  = 0.000100008
  Prefactor  = 3.14588
  Normalizat = 0.881054
  Prefactor  = 0.887023
 **********
 **   18 **HESSE 
 **********

 FCN=   4713.496     FROM HESSE     STATUS=OK           397 CALLS     3256 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    68.151        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          22.533        14.575        .84381E-04   -1.4758    
   3  Prefactor     .10002E-03    114.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.8102        11.730        .63970E-03   -1.5081    
   5  Prefactor     .10000E-03    5.7601        .16087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    24.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.5458        7.1903        .25584E-03   -1.5389    
   8  norm          .10000E-03    .49908        .83457E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .59729        8.6844        .36740E-03   -1.5553    
  10  Prefactor     .10000E-03    3.8597        .13156E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    27.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.9622        .13225E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .17874        53.662        .26236E-02   -1.5623    
  14  Prefactor     399.35        296.73        .10214E-03   -1.1684    
  15  Prefactor     4.3085        14.470        .19337E-03   -1.5293    
  16  Prefactor     .10000E-03    78.613        .41626E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    42.673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    22.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    45.465        .20878E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     51.504        36.975        .55888E-04   -1.4271    
  21  Prefactor     .10001E-03    215.37        .70766E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.1459        12.935        .22855E-03   -1.5353    
  23  Normalizat    .88105        .24200        .27370E-03   -.97129    
  24  Prefactor     .88702        .16166        .18890E-03   -.96596    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.67454e-10
Minuit parameter uncertainties:
  1  0.000852837
  2  14.5769
  3  0.00265287
  4  11.7332
  5  1.86721e-06
  6  0.000173609
  7  7.19274
  8  3.23411e-06
  9  4.55548
  10  2.09038e-06
  11  0.000259236
  12  1.0275e-06
  13  6.19787
  14  297.877
  15  14.482
  16  0.000147388
  17  0.000520482
  18  6.54321e-05
  19  0.000561244
  20  36.9912
  21  0.00266246
  22  12.7625
  23  0.242301
  24  0.161744
Done.

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

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  1.000e-04  2.592e-04  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:  8.870e-01  1.617e-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:  8.811e-01  2.423e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 351.575 1.222
Photon Flux Upper Limit: 6.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/893217/likelihoodResults_494899201_495158401_4FGL_J2326.2+0113_daily_bin986.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) = 4713.49583404
delta logL = -0.000176064371772

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4713.49566077
delta logL = -2.7942496672e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12671E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6307       1.0000          .0000       10.000    
     3 'Normalizat'    .88105       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88702       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=   4713.496     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      237 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    102.59        .90712E-02** at limit **
   2  Index         2.5909        6.2849        .50000        .24410E-04
   3  Normalizat    .88105        .13821E-01    .44659E-01    .23996E-04
   4  Prefactor     .88702        .96267E-02    .44839E-01    .13469E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.59091
  Normalizat = 0.881052
  Prefactor  = 0.887022
 **********
 **   18 **HESSE 
 **********

 FCN=   4713.496     FROM HESSE     STATUS=OK            33 CALLS      270 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5909        6.2943        .50000       -.50273    
   3  Normalizat    .88105        .22925        .27370E-03   -.97129    
   4  Prefactor     .88702        .15980        .18890E-03   -.96596    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.98983e-10
Minuit parameter uncertainties:
  1  0.000273268
  2  4.81256
  3  0.229506
  4  0.159884
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/893217': 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) = 4713.49565956
delta logL = -1.58550665219e-06

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  1.000e-04  2.733e-04  1.000e-04  1.000e+04 ( 1.000e-14)
407        Index:  2.591e+00  4.813e+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:  8.870e-01  1.599e-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:  8.811e-01  2.295e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/893217/cmap_HighResolution_494899201_495158401_4FGL_J2326.2+0113_daily_bin986.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.61e-03', job_status='DONE', photon_flux_upper_limit='6.09e-08', time_completed='2021-09-29 19:08:39.448739', job_id='893217', GAL2='0.89', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1632967719.45', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='-1.59e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='986' AND source_name='4FGL J2326.2+0113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:08:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 893217: <4FGL_J2326.2+0113_daily_bin986> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.2+0113_daily_bin986 351.575 1.2216 494899201 495158401 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 :                                   572.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   765 sec.
    Turnaround time :                            768 sec.

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

