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


Performing analysis on: 4FGL_J2326.9-4130_daily_bin917
RA = 351.737, Dec = -41.5089
tmin = 477014401, tmax = 477273601
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='899528', job_status='RUN', time_executed='2021-09-29 19:19:35.559945', time_epoch_executed='1632968375.56' WHERE source_name='4FGL J2326.9-4130' and cadence='daily' and bin_id='917'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/899528

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/899528/ft1_4FGL_J2326.9-4130_daily_bin917.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/899528/ft2_4FGL_J2326.9-4130_daily_bin917.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/899528/ft1_4FGL_J2326.9-4130_daily_bin917.fits outfile=/scratch/kocevski/899528/ft1_filteredMKT_4FGL_J2326.9-4130_daily_bin917.fits ra=351.737 dec=-41.5089 rad=12.0 tmin=477014401.0 tmax=477273601.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.61
user 3.39
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/899528/ft2_4FGL_J2326.9-4130_daily_bin917.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/899528/ft2_4FGL_J2326.9-4130_daily_bin917.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/899528/ft1_filteredMKT_4FGL_J2326.9-4130_daily_bin917.fits evtable="EVENTS" outfile="/scratch/kocevski/899528/ft1_filtered_4FGL_J2326.9-4130_daily_bin917.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/899528/ft1_filtered_4FGL_J2326.9-4130_daily_bin917.fits" evtable="EVENTS" scfile=/scratch/kocevski/899528/ft2_4FGL_J2326.9-4130_daily_bin917.fits sctable="SC_DATA" outfile=/scratch/kocevski/899528/ltcube_477014401_477273601_4FGL_J2326.9-4130_daily_bin917.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/899528/ft2_4FGL_J2326.9-4130_daily_bin917.fits
.....................!
real 11.81
user 11.45
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/899528/ft1_filtered_4FGL_J2326.9-4130_daily_bin917.fits evtable="EVENTS" scfile=/scratch/kocevski/899528/ft2_4FGL_J2326.9-4130_daily_bin917.fits sctable="SC_DATA" expcube=/scratch/kocevski/899528/ltcube_477014401_477273601_4FGL_J2326.9-4130_daily_bin917.fits outfile=/scratch/kocevski/899528/expmap_477014401_477273601_4FGL_J2326.9-4130_daily_bin917.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/899528/ltcube_477014401_477273601_4FGL_J2326.9-4130_daily_bin917.fits
.....................!
real 191.29
user 186.35
sys 4.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 183 point sources and 0 extended sources

Setting source of interest to:
4FGL J2326.9-4130 @ 351.737 -41.5089

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/899528/ft1_filtered_4FGL_J2326.9-4130_daily_bin917.fits scfile=/scratch/kocevski/899528/ft2_4FGL_J2326.9-4130_daily_bin917.fits outfile=/scratch/kocevski/899528/cmap_477014401_477273601_4FGL_J2326.9-4130_daily_bin917.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.737 yref=-41.5089 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/899528/ft1_filtered_4FGL_J2326.9-4130_daily_bin917.fits scfile=/scratch/kocevski/899528/ft2_4FGL_J2326.9-4130_daily_bin917.fits outfile=/scratch/kocevski/899528/cmap_HighResolution_477014401_477273601_4FGL_J2326.9-4130_daily_bin917.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.737 yref=-41.5089 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/899528/ft1_filtered_4FGL_J2326.9-4130_daily_bin917.fits evtable="EVENTS" scfile=/scratch/kocevski/899528/ft2_4FGL_J2326.9-4130_daily_bin917.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/899528/Model_4FGL_J2326.9-4130_daily_bin917.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/899528/ft1_filtered_4FGL_J2326.9-4130_daily_bin917.fits.....................!
real 32.76
user 31.51
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/899528/ft1_filtered_4FGL_J2326.9-4130_daily_bin917.fits', '/scratch/kocevski/899528/ft2_4FGL_J2326.9-4130_daily_bin917.fits', expMap='/scratch/kocevski/899528/expmap_477014401_477273601_4FGL_J2326.9-4130_daily_bin917.fits', expCube='/scratch/kocevski/899528/ltcube_477014401_477273601_4FGL_J2326.9-4130_daily_bin917.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/899528/Model_4FGL_J2326.9-4130_daily_bin917.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2326.9-4130'

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  7.129e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
436        Index:  2.777e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
437        Scale:  7.113e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/899528/ft1_filtered_4FGL_J2326.9-4130_daily_bin917.fits
Spacecraft file(s): /scratch/kocevski/899528/ft2_4FGL_J2326.9-4130_daily_bin917.fits
Exposure map: /scratch/kocevski/899528/expmap_477014401_477273601_4FGL_J2326.9-4130_daily_bin917.fits
Exposure cube: /scratch/kocevski/899528/ltcube_477014401_477273601_4FGL_J2326.9-4130_daily_bin917.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/899528/Model_4FGL_J2326.9-4130_daily_bin917.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) = 3755.25968413

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    43.006       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.2864       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.1846       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.5494       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.7866       1.0000         .10000E-03   10000.    
    16 'norm      '    8.4393       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    13.436       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.1751       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.4330       1.0000         .10000E-03   10000.    
    22 'Prefactor '    32.931       1.0000         .10000E-03   10000.    
    23 'norm      '    4.9187       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.3296       1.0000         .10000E-03   10000.    
    26 'norm      '    3.2277       1.0000         .10000E-03   10000.    
    27 'Prefactor '    7.6200       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .96589       1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.6602       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1640       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .70903       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5820E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3755.258     FROM MIGRAD    STATUS=CONVERGED    863 CALLS     4512 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     43.003        55.836        .27775E-06   -.14858E-04
   2  Prefactor     .10000E-03    13.799        .51375E-06** at limit **
   3  Prefactor     .10000E-03    19.170        .19285E-06** at limit **
   4  Prefactor     .10000E-03    16.622       -.22836E-06** at limit **
   5  Prefactor     7.2842        10.090        .55050E-07   -.58025E-05
   6  Prefactor     .10000E-03    1.7470        .65880E-07** at limit **
   7  Prefactor     .10000E-03    41.848       -.48865E-06** at limit **
   8  Prefactor     6.1838        9.0193        .43446E-06   -.20681E-04
   9  Prefactor     .10000E-03    10.862        .14363E-07** at limit **
  10  Prefactor     .10000E-03    19.070        .23579E-06** at limit **
  11  Prefactor     .10000E-03    6.2347        .26032E-07** at limit **
  12  Prefactor     2.5493        6.6314        .53229E-06   -.18942E-04
  13  Prefactor     .10000E-03    18.785        .25981E-07** at limit **
  14  Prefactor     .10000E-03    33.557        .62498E-06** at limit **
  15  Prefactor     4.7856        29.011        .11781E-05   -.31696E-05
  16  norm          8.4398        12.883        .49046E-06   -.30271E-04
  17  norm          .10000E-03    2.8797        .99086E-08** at limit **
  18  norm          .10000E-03    2.3448       -.52742E-06** at limit **
  19  norm          13.436        9.5021        .27035E-07   -.49639E-04
  20  Prefactor     3.1758        4.5282       -.95251E-07   -.13396E-04
  21  Prefactor     5.3887        100.15        .12985E-04   -.35442E-04
  22  Prefactor     32.916        73.274        .18935E-05   -.34752E-04
  23  norm          4.9205        5.0188       -.92611E-06   -.50475E-03
  24  Prefactor     .10000E-03    6.4077        .96820E-08** at limit **
  25  norm          2.3296        1.5531       -.50990E-08   -.98180E-04
  26  norm          3.2289        4.6283       -.55881E-06   -.38211E-03
  27  Prefactor     7.6192        4.7285       -.10524E-06    .36960E-04
  28  Prefactor     .10000E-03    15.931        .32395E-07** at limit **
  29  Prefactor     .96094        8.6192        .43687E-06   -.56818E-04
  30  Prefactor     1.6603        5.1005        .60244E-05   -.14996E-03
  31  Prefactor     .10000E-03    56.468       -.14178E-07** at limit **
  32  Normalizat    1.1641        .24211        .88637E-06   -.69744E-04
  33  Prefactor     .70893        .24380       -.44450E-05   -.16934E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 43.0029
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.28423
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.18379
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.54934
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.78563
  norm       = 8.43983
  norm       = 0.0001
  norm       = 0.0001
  norm       = 13.4362
  Prefactor  = 3.17583
  Prefactor  = 5.38865
  Prefactor  = 32.9157
  norm       = 4.92047
  Prefactor  = 0.0001
  norm       = 2.3296
  norm       = 3.22894
  Prefactor  = 7.61919
  Prefactor  = 0.0001
  Prefactor  = 0.960939
  Prefactor  = 1.66029
  Prefactor  = 0.0001
  Normalizat = 1.16412
  Prefactor  = 0.708933
 **********
 **   18 **HESSE 
 **********

 FCN=   3755.258     FROM HESSE     STATUS=OK           689 CALLS     5201 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     43.003        55.845        .61131E-04   -1.4395    
   2  Prefactor     .10000E-03    13.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    19.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.2842        10.104        .14859E-03   -1.5168    
   6  Prefactor     .10000E-03    1.7596        .79090E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    41.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.1838        9.0156        .16143E-03   -1.5211    
   9  Prefactor     .10000E-03    10.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    19.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.2382        .14945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.5493        6.6022        .24411E-03   -1.5389    
  13  Prefactor     .10000E-03    18.788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    33.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.7856        28.704        .18389E-03   -1.5270    
  16  norm          8.4398        12.880        .68997E-03   -1.5127    
  17  norm          .10000E-03    2.8803        .10155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.3564        .91820E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          13.436        9.4991        .10927E-03   -1.4975    
  20  Prefactor     3.1758        4.5129        .15023E-03   -1.5352    
  21  Prefactor     5.3887        100.71        .17240E-03   -1.5244    
  22  Prefactor     32.916        73.639        .69828E-04   -1.4560    
  23  norm          4.9205        5.0166        .11863E-03   -1.5264    
  24  Prefactor     .10000E-03    6.4155        .15147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.3296        1.5412        .56394E-04   -1.5403    
  26  norm          3.2289        4.6133        .14627E-03   -1.5349    
  27  Prefactor     7.6192        4.7272        .10017E-03   -1.5156    
  28  Prefactor     .10000E-03    15.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .96094        17.240        .33271E-02   -1.5512    
  30  Prefactor     1.6603        5.1593        .11590E-02   -1.5450    
  31  Prefactor     .10000E-03    56.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.1641        .29297        .21914E-03   -.87719    
  33  Prefactor     .70893        .29054        .29261E-03   -1.0318    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79245e-08
Minuit parameter uncertainties:
  1  55.9134
  2  3.84788e-06
  3  8.46795e-06
  4  2.74682e-05
  5  10.1059
  6  5.19728e-06
  7  0.000185229
  8  9.01759
  9  1.37624e-05
  10  3.09173e-05
  11  1.66342e-06
  12  6.60413
  13  5.27786e-06
  14  8.01427e-05
  15  23.4573
  16  12.884
  17  9.98531e-07
  18  4.04346e-05
  19  9.50018
  20  4.51343
  21  46.6823
  22  73.843
  23  5.01705
  24  5.68872e-07
  25  1.54122
  26  4.61383
  27  4.72745
  28  6.1709e-05
  29  8.14266
  30  5.16072
  31  1.099e-05
  32  0.293381
  33  0.291165
Done.

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

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  5.389e+00  4.668e+01  1.000e-04  1.000e+04 ( 1.000e-13)
436        Index:  2.777e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
437        Scale:  7.113e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  7.089e-01  2.912e-01  0.000e+00  1.000e+01 ( 1.000e+00)
580        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
581        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
578   Normalization:  1.164e+00  2.934e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.02
Ra Dec: 351.737 -41.509
Photon Flux Upper Limit: 1.39e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.10e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/899528/likelihoodResults_477014401_477273601_4FGL_J2326.9-4130_daily_bin917.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) = 3755.25655234
delta logL = 0.0015337071568

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3755.25646747
delta logL = 0.00161857419562

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0961       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9102       1.0000          .0000       10.000    
     3 'Normalizat'    1.1628       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70967       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5820E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3755.256     FROM MIGRAD    STATUS=FAILED        86 CALLS      276 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0749        75.912        .17811E-03   -.14656E-03
   2  Index         2.9134        2.3860        .88466E-02   -.75985E-04
   3  Normalizat    1.1631        .27013        .21922E-03   -.37741E-02
   4  Prefactor     .70957        .28552        .29249E-03   -.22727E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3755.256     FROM SIMPLEX   STATUS=UNCHANGED     82 CALLS      358 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0749        75.912        .55952E-03   -1.5257    
   2  Index         2.9134        2.3860        .18302E-02   -.43050    
   3  Normalizat    1.1631        .27013        .25566E-03   -.87751    
   4  Prefactor     .70957        .28552        .34586E-03   -1.0315    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3755.256     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      386 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0738        70.189        .71242E-05   -.19788E-04
   2  Index         2.9135        2.3032        .35386E-03    .43211E-05
   3  Normalizat    1.1631        .27047        .43844E-04   -.32412E-05
   4  Prefactor     .70956        .28582        .58498E-04   -.17491E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.0738
  Index      = 2.91346
  Normalizat = 1.16312
  Prefactor  = 0.709559
 **********
 **   18 **HESSE 
 **********

 FCN=   3755.256     FROM HESSE     STATUS=OK            23 CALLS      409 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0738        70.342        .14248E-05   -1.5257    
   2  Index         2.9135        2.3004        .14155E-04   -.43048    
   3  Normalizat    1.1631        .27060        .87687E-05   -.87750    
   4  Prefactor     .70956        .28592        .11700E-04   -1.0315    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.18724e-11
Minuit parameter uncertainties:
  1  37.8374
  2  2.4121
  3  0.270928
  4  0.286518
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/899528': 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) = 3755.25646492
delta logL = 0.00162112587532

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  5.074e+00  3.784e+01  1.000e-04  1.000e+04 ( 1.000e-13)
436        Index:  2.913e+00  2.412e+00  0.000e+00  1.000e+01 (-1.000e+00)
437        Scale:  7.113e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  7.096e-01  2.865e-01  0.000e+00  1.000e+01 ( 1.000e+00)
580        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
581        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
578   Normalization:  1.163e+00  2.709e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
Ra Dec: 351.737 -41.509

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/899528/cmap_HighResolution_477014401_477273601_4FGL_J2326.9-4130_daily_bin917.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', job_status='DONE', photon_flux_upper_limit='1.39e-07', time_completed='2021-09-29 19:30:58.891844', job_id='899528', GAL2='0.71', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1632969058.89', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='1.62e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.78' WHERE bin_id='917' AND source_name='4FGL J2326.9-4130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:30:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 899528: <4FGL_J2326.9-4130_daily_bin917> in cluster <slac> Done

Job <4FGL_J2326.9-4130_daily_bin917> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 19:15:46 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 19:15:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 19:15:48 2021
Terminated at Wed Sep 29 19:30:59 2021
Results reported at Wed Sep 29 19:30:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.9-4130_daily_bin917 351.737 -41.5089 477014401 477273601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2326.9-4130 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   682.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             257.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            913 sec.

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

