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


Performing analysis on: 4FGL_J2326.9-4130_daily_bin1074
RA = 351.737, Dec = -41.5089
tmin = 517708801, tmax = 517968001
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='900991', job_status='RUN', time_executed='2021-09-29 19:21:04.477127', time_epoch_executed='1632968464.48' WHERE source_name='4FGL J2326.9-4130' and cadence='daily' and bin_id='1074'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/900991

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/900991/ft1_4FGL_J2326.9-4130_daily_bin1074.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/900991/ft2_4FGL_J2326.9-4130_daily_bin1074.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/900991/ft1_4FGL_J2326.9-4130_daily_bin1074.fits outfile=/scratch/kocevski/900991/ft1_filteredMKT_4FGL_J2326.9-4130_daily_bin1074.fits ra=351.737 dec=-41.5089 rad=12.0 tmin=517708801.0 tmax=517968001.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.67
user 3.44
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/900991/ft2_4FGL_J2326.9-4130_daily_bin1074.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/900991/ft1_filteredMKT_4FGL_J2326.9-4130_daily_bin1074.fits evtable="EVENTS" outfile="/scratch/kocevski/900991/ft1_filtered_4FGL_J2326.9-4130_daily_bin1074.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/900991/ft1_filtered_4FGL_J2326.9-4130_daily_bin1074.fits" evtable="EVENTS" scfile=/scratch/kocevski/900991/ft2_4FGL_J2326.9-4130_daily_bin1074.fits sctable="SC_DATA" outfile=/scratch/kocevski/900991/ltcube_517708801_517968001_4FGL_J2326.9-4130_daily_bin1074.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/900991/ft2_4FGL_J2326.9-4130_daily_bin1074.fits
.....................!
real 11.79
user 11.44
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/900991/ft1_filtered_4FGL_J2326.9-4130_daily_bin1074.fits evtable="EVENTS" scfile=/scratch/kocevski/900991/ft2_4FGL_J2326.9-4130_daily_bin1074.fits sctable="SC_DATA" expcube=/scratch/kocevski/900991/ltcube_517708801_517968001_4FGL_J2326.9-4130_daily_bin1074.fits outfile=/scratch/kocevski/900991/expmap_517708801_517968001_4FGL_J2326.9-4130_daily_bin1074.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/900991/ltcube_517708801_517968001_4FGL_J2326.9-4130_daily_bin1074.fits
.....................!
real 190.27
user 184.84
sys 5.08

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/900991/ft1_filtered_4FGL_J2326.9-4130_daily_bin1074.fits scfile=/scratch/kocevski/900991/ft2_4FGL_J2326.9-4130_daily_bin1074.fits outfile=/scratch/kocevski/900991/cmap_517708801_517968001_4FGL_J2326.9-4130_daily_bin1074.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/900991/ft1_filtered_4FGL_J2326.9-4130_daily_bin1074.fits scfile=/scratch/kocevski/900991/ft2_4FGL_J2326.9-4130_daily_bin1074.fits outfile=/scratch/kocevski/900991/cmap_HighResolution_517708801_517968001_4FGL_J2326.9-4130_daily_bin1074.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.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/900991/ft1_filtered_4FGL_J2326.9-4130_daily_bin1074.fits evtable="EVENTS" scfile=/scratch/kocevski/900991/ft2_4FGL_J2326.9-4130_daily_bin1074.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/900991/Model_4FGL_J2326.9-4130_daily_bin1074.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/900991/ft1_filtered_4FGL_J2326.9-4130_daily_bin1074.fits.....................!
real 39.83
user 38.47
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.5569       1.0000         .10000E-03   10000.    
     3 'Prefactor '    33.610       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.2031       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .96853       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.8780       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.7921       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    9.7742       1.0000         .10000E-03   10000.    
    17 'norm      '    7.4619       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.7859       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .45845       1.0000         .10000E-03   10000.    
    25 'norm      '    2.1966       1.0000         .10000E-03   10000.    
    26 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10600E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    8.2354       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.3026       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .79558       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=   4918.931     FROM MIGRAD    STATUS=CONVERGED    855 CALLS     3869 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.271        .53738E-06** at limit **
   2  Prefactor     2.5478        43.635        .33284E-05    .53044E-04
   3  Prefactor     33.624        46.341       -.93276E-06   -.76080E-05
   4  Prefactor     .10000E-03    11.048        .40291E-06** at limit **
   5  Prefactor     8.2035        9.3808        .14273E-06   -.10928E-03
   6  Prefactor     .96723        4.7838        .36837E-06    .21238E-04
   7  Prefactor     .10000E-03    33.737       -.84686E-06** at limit **
   8  Prefactor     8.8784        8.2440        .63644E-06    .33299E-04
   9  Prefactor     .10000E-03    10.714        .46233E-06** at limit **
  10  Prefactor     .10000E-03    8.6817       -.50638E-06** at limit **
  11  Prefactor     .10000E-03    11.308       -.36325E-07** at limit **
  12  Prefactor     1.7895        8.6720        .10853E-04   -.75981E-05
  13  Prefactor     .10000E-03    12.058       -.58994E-06** at limit **
  14  Prefactor     .10000E-03    44.611       -.18542E-05** at limit **
  15  Prefactor     .10000E-03    9.0946        .18585E-06** at limit **
  16  norm          9.7728        12.902        .46365E-06    .12237E-04
  17  norm          7.4613        6.1207       -.17060E-07   -.57523E-05
  18  norm          .10000E-03    1.7430       -.11718E-07** at limit **
  19  norm          .10000E-03    5.2000       -.83335E-07** at limit **
  20  Prefactor     1.7904        6.3259        .59051E-06    .93843E-05
  21  Prefactor     .10000E-03    12.127       -.68434E-06** at limit **
  22  Prefactor     .10000E-03    24.272        .56282E-06** at limit **
  23  norm          .10000E-03    1.3030       -.25194E-07** at limit **
  24  Prefactor     .43975        10.539       -.16116E-05    .59404E-04
  25  norm          2.1980        1.4362        .76754E-07    .41273E-04
  26  norm          .10000E-03    1.5842       -.30819E-07** at limit **
  27  Prefactor     .10000E-03    6.5948        .98392E-06** at limit **
  28  Prefactor     .10000E-03    51.750        .57628E-06** at limit **
  29  Prefactor     8.2352        8.7980        .68899E-06   -.29221E-03
  30  Prefactor     .10000E-03    1.3811       -.71078E-07** at limit **
  31  Prefactor     .10000E-03    63.278        .24612E-05** at limit **
  32  Normalizat    1.3023        .19929       -.10428E-05   -.34340E-04
  33  Prefactor     .79604        .20961       -.12025E-05    .35899E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.54775
  Prefactor  = 33.6236
  Prefactor  = 0.0001
  Prefactor  = 8.20351
  Prefactor  = 0.967228
  Prefactor  = 0.0001
  Prefactor  = 8.87844
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.78948
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.77279
  norm       = 7.46126
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.79037
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.439751
  norm       = 2.19797
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 8.23516
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.3023
  Prefactor  = 0.796041
 **********
 **   18 **HESSE 
 **********

 FCN=   4918.931     FROM HESSE     STATUS=OK           689 CALLS     4558 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.5478        43.620        .25532E-03   -1.5389    
   3  Prefactor     33.624        46.281        .69120E-04   -1.4548    
   4  Prefactor     .10000E-03    11.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.2035        9.4000        .13998E-03   -1.5135    
   6  Prefactor     .96723        4.8422        .28474E-03   -1.5511    
   7  Prefactor     .10000E-03    33.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.8784        8.2332        .67261E-03   -1.5112    
   9  Prefactor     .10000E-03    10.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.6912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.7895        8.7408        .15621E-02   -1.5440    
  13  Prefactor     .10000E-03    12.060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    44.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.1108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          9.7728        12.905        .64087E-03   -1.5083    
  17  norm          7.4613        6.1212        .14682E-03   -1.5162    
  18  norm          .10000E-03    1.7439        .90429E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    5.2169        .15618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.7904        6.6092        .28886E-03   -1.5440    
  21  Prefactor     .10000E-03    12.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    24.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.3054        .78173E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .43975        97.184        .38910E-02   -1.5575    
  25  norm          2.1980        1.4211        .63311E-04   -1.5411    
  26  norm          .10000E-03    1.5968        .86195E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    6.9139        .35162E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    52.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     8.2352        8.8480        .69851E-03   -1.5134    
  30  Prefactor     .10000E-03    1.3894        .80456E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    63.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.3023        .24188        .21625E-03   -.83498    
  33  Prefactor     .79604        .25390        .29088E-03   -.99874    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44779e-09
Minuit parameter uncertainties:
  1  3.44868e-05
  2  21.1016
  3  46.3303
  4  1.09665e-05
  5  9.40171
  6  4.32861
  7  4.93414e-06
  8  8.23426
  9  5.39663e-05
  10  1.46806e-06
  11  2.81127e-05
  12  7.9115
  13  6.98025e-06
  14  4.61525e-05
  15  1.88454e-05
  16  12.9082
  17  6.12173
  18  9.18428e-07
  19  1.113e-05
  20  6.61192
  21  4.09728e-06
  22  4.2598e-05
  23  1.82394e-06
  24  13.0947
  25  1.42111
  26  2.41251e-06
  27  0.000174146
  28  0.000681005
  29  8.84942
  30  5.86667e-06
  31  0.000322758
  32  0.24209
  33  0.254274
Done.

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

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  1.000e-04  4.097e-06  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.960e-01  2.543e-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.302e+00  2.421e-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.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.00e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/900991/likelihoodResults_517708801_517968001_4FGL_J2326.9-4130_daily_bin1074.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) = 4918.93137908
delta logL = -0.000392051863855

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4918.93098699
delta logL = 3.31174305757e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7610       1.0000          .0000       10.000    
     3 'Normalizat'    1.3023       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79605       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=   4918.931     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      263 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    64.337        .18142E-01** at limit **
   2  Index         2.1357        8.8903        .50000        .13993E-06
   3  Normalizat    1.3023        .97100E-02    .21625E-03    .12616E-03
   4  Prefactor     .79604        .10532E-01    .29088E-03    .95599E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.13573
  Normalizat = 1.3023
  Prefactor  = 0.79604
 **********
 **   18 **HESSE 
 **********

 FCN=   4918.931     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      292 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    441.91        .26890E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1357        8.2790        .50000       -.60998    
   3  Normalizat    1.3023        .26309E-01    .43250E-04   -.83498    
   4  Prefactor     .79604        .28537E-01    .11635E-04   -.99874    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.6632e-09
Minuit parameter uncertainties:
  1  0.000221987
  2  1404.3
  3  0.0263095
  4  0.0285374
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/900991': 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) = 4918.93098615
delta logL = 8.76544618222e-07

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  1.000e-04  2.220e-04  1.000e-04  1.000e+04 ( 1.000e-13)
436        Index:  2.136e+00  1.404e+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:  7.960e-01  2.854e-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:  1.302e+00  2.631e-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/900991/cmap_HighResolution_517708801_517968001_4FGL_J2326.9-4130_daily_bin1074.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.00e-03', job_status='DONE', photon_flux_upper_limit='7.59e-08', time_completed='2021-09-29 19:34:01.011842', job_id='900991', GAL2='0.80', fit_tolerance='1e-08', EG2='1.30', EG='1.30', time_epoch_completed='1632969241.01', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='8.77e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.78' WHERE bin_id='1074' AND source_name='4FGL J2326.9-4130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:34:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 900991: <4FGL_J2326.9-4130_daily_bin1074> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.9-4130_daily_bin1074 351.737 -41.5089 517708801 517968001 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 :                                   768.20 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             323.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            805 sec.

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

