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


Performing analysis on: 4FGL_J2326.9-4130_daily_bin994
RA = 351.737, Dec = -41.5089
tmin = 496972801, tmax = 497232001
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='900866', job_status='RUN', time_executed='2021-09-29 19:23:15.313106', time_epoch_executed='1632968595.31' WHERE source_name='4FGL J2326.9-4130' and cadence='daily' and bin_id='994'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/900866

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/900866/ft1_4FGL_J2326.9-4130_daily_bin994.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/900866/ft2_4FGL_J2326.9-4130_daily_bin994.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/900866/ft1_4FGL_J2326.9-4130_daily_bin994.fits outfile=/scratch/kocevski/900866/ft1_filteredMKT_4FGL_J2326.9-4130_daily_bin994.fits ra=351.737 dec=-41.5089 rad=12.0 tmin=496972801.0 tmax=497232001.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 5.13
user 4.85
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/900866/ft1_filtered_4FGL_J2326.9-4130_daily_bin994.fits" evtable="EVENTS" scfile=/scratch/kocevski/900866/ft2_4FGL_J2326.9-4130_daily_bin994.fits sctable="SC_DATA" outfile=/scratch/kocevski/900866/ltcube_496972801_497232001_4FGL_J2326.9-4130_daily_bin994.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/900866/ft2_4FGL_J2326.9-4130_daily_bin994.fits
.....................!
real 12.16
user 11.83
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/900866/ft1_filtered_4FGL_J2326.9-4130_daily_bin994.fits evtable="EVENTS" scfile=/scratch/kocevski/900866/ft2_4FGL_J2326.9-4130_daily_bin994.fits sctable="SC_DATA" expcube=/scratch/kocevski/900866/ltcube_496972801_497232001_4FGL_J2326.9-4130_daily_bin994.fits outfile=/scratch/kocevski/900866/expmap_496972801_497232001_4FGL_J2326.9-4130_daily_bin994.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/900866/ltcube_496972801_497232001_4FGL_J2326.9-4130_daily_bin994.fits
.....................!
real 190.32
user 184.95
sys 4.97

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/900866/ft1_filtered_4FGL_J2326.9-4130_daily_bin994.fits scfile=/scratch/kocevski/900866/ft2_4FGL_J2326.9-4130_daily_bin994.fits outfile=/scratch/kocevski/900866/cmap_496972801_497232001_4FGL_J2326.9-4130_daily_bin994.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/900866/ft1_filtered_4FGL_J2326.9-4130_daily_bin994.fits scfile=/scratch/kocevski/900866/ft2_4FGL_J2326.9-4130_daily_bin994.fits outfile=/scratch/kocevski/900866/cmap_HighResolution_496972801_497232001_4FGL_J2326.9-4130_daily_bin994.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/900866/ft1_filtered_4FGL_J2326.9-4130_daily_bin994.fits evtable="EVENTS" scfile=/scratch/kocevski/900866/ft2_4FGL_J2326.9-4130_daily_bin994.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/900866/Model_4FGL_J2326.9-4130_daily_bin994.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/900866/ft1_filtered_4FGL_J2326.9-4130_daily_bin994.fits....................!
real 28.93
user 27.58
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/900866/ft1_filtered_4FGL_J2326.9-4130_daily_bin994.fits', '/scratch/kocevski/900866/ft2_4FGL_J2326.9-4130_daily_bin994.fits', expMap='/scratch/kocevski/900866/expmap_496972801_497232001_4FGL_J2326.9-4130_daily_bin994.fits', expCube='/scratch/kocevski/900866/ltcube_496972801_497232001_4FGL_J2326.9-4130_daily_bin994.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/900866/Model_4FGL_J2326.9-4130_daily_bin994.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/900866/ft1_filtered_4FGL_J2326.9-4130_daily_bin994.fits
Spacecraft file(s): /scratch/kocevski/900866/ft2_4FGL_J2326.9-4130_daily_bin994.fits
Exposure map: /scratch/kocevski/900866/expmap_496972801_497232001_4FGL_J2326.9-4130_daily_bin994.fits
Exposure cube: /scratch/kocevski/900866/ltcube_496972801_497232001_4FGL_J2326.9-4130_daily_bin994.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/900866/Model_4FGL_J2326.9-4130_daily_bin994.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) = 3131.42058348

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    31.529       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .97435       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .27823E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.680       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    35.621       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .25424E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    10.375       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .68299       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    9.2852       1.0000         .10000E-03   10000.    
    24 'Prefactor '    20.786       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .70903       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10532E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    6.6835       1.0000         .10000E-03   10000.    
    30 'Prefactor '    7.2684       1.0000         .10000E-03   10000.    
    31 'Prefactor '    43.514       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .35982       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0188       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=   3131.267     FROM MIGRAD    STATUS=CONVERGED    896 CALLS     4669 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.291       -.28086E-06** at limit **
   2  Prefactor     .10000E-03    20.134        .69111E-07** at limit **
   3  Prefactor     .10000E-03    25.835       -.31870E-06** at limit **
   4  Prefactor     31.539        28.079        .38589E-06    .83365E-04
   5  Prefactor     .97267        8.1554       -.19135E-05   -.47737E-05
   6  Prefactor     .10000E-03    3.2874       -.53515E-07** at limit **
   7  Prefactor     .10000E-03    28.030       -.22933E-06** at limit **
   8  Prefactor     15.678        9.8649       -.66015E-07    .56303E-04
   9  Prefactor     .10000E-03    11.960        .93645E-07** at limit **
  10  Prefactor     .10000E-03    7.1417       -.75192E-07** at limit **
  11  Prefactor     35.623        18.907       -.57419E-07    .14419E-04
  12  Prefactor     .10000E-03    3.1335       -.10447E-06** at limit **
  13  Prefactor     .10000E-03    30.892        .22271E-06** at limit **
  14  Prefactor     .10000E-03    288.33       -.24324E-05** at limit **
  15  Prefactor     .10000E-03    6.6321       -.35339E-07** at limit **
  16  norm          .10001E-03    27.322        .22537E-05** at limit **
  17  norm          10.380        8.9287       -.16491E-06   -.58297E-04
  18  norm          .10000E-03    2.0192       -.78614E-07** at limit **
  19  norm          .10000E-03    2.2480       -.48801E-07** at limit **
  20  Prefactor     .66811        48.091        .40108E-05   -.12646E-03
  21  Prefactor     .10000E-03    12.835       -.45802E-06** at limit **
  22  Prefactor     .10000E-03    24.055       -.23640E-06** at limit **
  23  norm          9.2850        4.7578        .20138E-06    .10211E-03
  24  Prefactor     20.831        27.516       -.10182E-05   -.69932E-04
  25  norm          .10000E-03    .50405       -.47673E-08** at limit **
  26  norm          .70914        2.8449       -.12766E-05   -.68016E-04
  27  Prefactor     .10000E-03    2.8008        .41736E-07** at limit **
  28  Prefactor     .10000E-03    21.295        .83121E-07** at limit **
  29  Prefactor     6.6864        6.5977        .53639E-08    .22928E-04
  30  Prefactor     7.2693        5.0381       -.14469E-06    .24935E-04
  31  Prefactor     43.450        65.558       -.14321E-05    .35343E-04
  32  Normalizat    .35970        .19493        .58805E-06    .10969E-03
  33  Prefactor     1.0189        .21338        .85284E-06    .72465E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.5385
  Prefactor  = 0.972672
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 15.6781
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.6232
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100014
  norm       = 10.3797
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.66811
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.28497
  Prefactor  = 20.8314
  norm       = 0.0001
  norm       = 0.709137
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.68639
  Prefactor  = 7.26926
  Prefactor  = 43.4504
  Normalizat = 0.359702
  Prefactor  = 1.01894
 **********
 **   18 **HESSE 
 **********

 FCN=   3131.267     FROM HESSE     STATUS=OK           691 CALLS     5360 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    20.160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    25.874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     31.539        27.363        .71358E-04   -1.4584    
   5  Prefactor     .97267        7.9006        .27196E-03   -1.5511    
   6  Prefactor     .10000E-03    10.396        .18639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    28.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.678        9.8398        .10115E-03   -1.4916    
   9  Prefactor     .10000E-03    11.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.1459        .14607E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     35.623        18.916        .67146E-04   -1.4514    
  12  Prefactor     .10000E-03    3.1469        .96753E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    30.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    291.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.6471        .14074E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10001E-03    54.130        .35199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          10.380        9.3260        .12439E-03   -1.5064    
  18  norm          .10000E-03    2.0199        .77651E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.2500        .81946E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .66811        97.651        .25761E-02   -1.5544    
  21  Prefactor     .10000E-03    12.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    24.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          9.2850        4.7411        .82215E-04   -1.5098    
  24  Prefactor     20.831        34.799        .87851E-04   -1.4795    
  25  norm          .10000E-03    .51395        .38801E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .70914        2.8133        .18150E-03   -1.5540    
  27  Prefactor     .10000E-03    4.7721        .18078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    21.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     6.6864        6.5775        .12484E-03   -1.5191    
  30  Prefactor     7.2693        5.0508        .97565E-04   -1.5169    
  31  Prefactor     43.450        64.948        .60774E-04   -1.4389    
  32  Normalizat    .35970        .22352        .27444E-03   -1.1944    
  33  Prefactor     1.0189        .24513        .19506E-03   -.92101    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.84319e-10
Minuit parameter uncertainties:
  1  2.22375e-05
  2  1.37143e-05
  3  2.53776e-05
  4  27.3739
  5  5.54496
  6  0.000258605
  7  1.69596e-05
  8  9.84078
  9  2.39988e-05
  10  5.09259e-08
  11  18.9191
  12  1.86357e-06
  13  6.29086e-05
  14  6.53577e-05
  15  4.4974e-06
  16  0.00171577
  17  9.32726
  18  1.05672e-06
  19  1.13043e-06
  20  16.1802
  21  2.50637e-05
  22  3.10591e-06
  23  4.74127
  24  34.8331
  25  8.56393e-07
  26  2.81387
  27  5.32974e-05
  28  2.65362e-05
  29  6.57821
  30  5.05109
  31  65.0544
  32  0.224072
  33  0.245397
Done.

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

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  1.000e-04  2.506e-05  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:  1.019e+00  2.454e-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:  3.597e-01  2.241e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 351.737 -41.509
Photon Flux Upper Limit: 7.27e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/900866/likelihoodResults_496972801_497232001_4FGL_J2326.9-4130_daily_bin994.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) = 3131.26749772
delta logL = -0.000371044601252

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3131.26712664
delta logL = 2.93684934149e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7615       1.0000          .0000       10.000    
     3 'Normalizat'    .35969       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0189       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.

 FCN=   3131.267     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      260 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    106.34        .18142E-01** at limit **
   2  Index         2.0456        8.8339        .50000       -.26182E-07
   3  Normalizat    .35970        .10393E-01    .27443E-03   -.52404E-05
   4  Prefactor     1.0189        .12194E-01    .19506E-03   -.54785E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.04558
  Normalizat = 0.359701
  Prefactor  = 1.01894
 **********
 **   18 **HESSE 
 **********

 FCN=   3131.267     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      289 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    940.94        .22474E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0456        5.5220        .50000       -.63215    
   3  Normalizat    .35970        .33323E-01    .10977E-04   -1.1944    
   4  Prefactor     1.0189        .39099E-01    .78026E-05   -.92101    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.48995e-09
Minuit parameter uncertainties:
  1  0.000826924
  2  2186.05
  3  0.0333249
  4  0.0391004
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/900866': 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) = 3131.26712573
delta logL = 9.46073669184e-07

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  1.000e-04  8.269e-04  1.000e-04  1.000e+04 ( 1.000e-13)
436        Index:  2.046e+00  2.186e+03  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:  1.019e+00  3.910e-02  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:  3.597e-01  3.332e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/900866/cmap_HighResolution_496972801_497232001_4FGL_J2326.9-4130_daily_bin994.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.75e-03', job_status='DONE', photon_flux_upper_limit='7.27e-08', time_completed='2021-09-29 19:33:59.264691', job_id='900866', GAL2='1.02', fit_tolerance='1e-08', EG2='0.36', EG='0.36', time_epoch_completed='1632969239.26', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='9.46e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.78' WHERE bin_id='994' AND source_name='4FGL J2326.9-4130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:33:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 900866: <4FGL_J2326.9-4130_daily_bin994> in cluster <slac> Done

Job <4FGL_J2326.9-4130_daily_bin994> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 19:20:25 2021
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 19:20:26 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:20:26 2021
Terminated at Wed Sep 29 19:34:00 2021
Results reported at Wed Sep 29 19:34:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.9-4130_daily_bin994 351.737 -41.5089 496972801 497232001 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 :                                   640.19 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             243.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            815 sec.

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

