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


Performing analysis on: 4FGL_J2326.9-4130_daily_bin1431
RA = 351.737, Dec = -41.5089
tmin = 610243201, tmax = 610502401
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='902790', job_status='RUN', time_executed='2021-09-29 19:26:18.682650', time_epoch_executed='1632968778.68' WHERE source_name='4FGL J2326.9-4130' and cadence='daily' and bin_id='1431'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/902790

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/902790/ft1_4FGL_J2326.9-4130_daily_bin1431.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/902790/ft2_4FGL_J2326.9-4130_daily_bin1431.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/902790/ft1_4FGL_J2326.9-4130_daily_bin1431.fits outfile=/scratch/kocevski/902790/ft1_filteredMKT_4FGL_J2326.9-4130_daily_bin1431.fits ra=351.737 dec=-41.5089 rad=12.0 tmin=610243201.0 tmax=610502401.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.97
user 3.69
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/902790/ft2_4FGL_J2326.9-4130_daily_bin1431.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/902790/ft1_filteredMKT_4FGL_J2326.9-4130_daily_bin1431.fits evtable="EVENTS" outfile="/scratch/kocevski/902790/ft1_filtered_4FGL_J2326.9-4130_daily_bin1431.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/902790/ft1_filtered_4FGL_J2326.9-4130_daily_bin1431.fits" evtable="EVENTS" scfile=/scratch/kocevski/902790/ft2_4FGL_J2326.9-4130_daily_bin1431.fits sctable="SC_DATA" outfile=/scratch/kocevski/902790/ltcube_610243201_610502401_4FGL_J2326.9-4130_daily_bin1431.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/902790/ft2_4FGL_J2326.9-4130_daily_bin1431.fits
.....................!
real 12.45
user 12.10
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/902790/ft1_filtered_4FGL_J2326.9-4130_daily_bin1431.fits evtable="EVENTS" scfile=/scratch/kocevski/902790/ft2_4FGL_J2326.9-4130_daily_bin1431.fits sctable="SC_DATA" expcube=/scratch/kocevski/902790/ltcube_610243201_610502401_4FGL_J2326.9-4130_daily_bin1431.fits outfile=/scratch/kocevski/902790/expmap_610243201_610502401_4FGL_J2326.9-4130_daily_bin1431.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/902790/ltcube_610243201_610502401_4FGL_J2326.9-4130_daily_bin1431.fits
.....................!
real 191.75
user 185.98
sys 5.33

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/902790/ft1_filtered_4FGL_J2326.9-4130_daily_bin1431.fits scfile=/scratch/kocevski/902790/ft2_4FGL_J2326.9-4130_daily_bin1431.fits outfile=/scratch/kocevski/902790/cmap_610243201_610502401_4FGL_J2326.9-4130_daily_bin1431.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/902790/ft1_filtered_4FGL_J2326.9-4130_daily_bin1431.fits scfile=/scratch/kocevski/902790/ft2_4FGL_J2326.9-4130_daily_bin1431.fits outfile=/scratch/kocevski/902790/cmap_HighResolution_610243201_610502401_4FGL_J2326.9-4130_daily_bin1431.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.3647       1.0000         .10000E-03   10000.    
     3 'Prefactor '    38.794       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.7593       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.246       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.915       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    77.913       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.7475       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.0078       1.0000         .10000E-03   10000.    
    19 'norm      '    17.803       1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.723       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.3875       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.0434       1.0000         .10000E-03   10000.    
    25 'norm      '    1.2580       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.3250       1.0000         .10000E-03   10000.    
    28 'Prefactor '    16.206       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .16320E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10909E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .92523       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0656       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=   4834.916     FROM MIGRAD    STATUS=CONVERGED    869 CALLS     4558 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.993        .18052E-05** at limit **
   2  Prefactor     6.3608        21.292        .19176E-05    .29338E-04
   3  Prefactor     38.783        45.414       -.92278E-06   -.97954E-04
   4  Prefactor     .10000E-03    14.691        .60322E-06** at limit **
   5  Prefactor     .10000E-03    2.2498        .29636E-07** at limit **
   6  Prefactor     .10000E-03    2.7164       -.12518E-06** at limit **
   7  Prefactor     .10000E-03    82.227       -.81400E-06** at limit **
   8  Prefactor     4.7602        7.8741        .53826E-05   -.31259E-03
   9  Prefactor     11.247        12.170       -.45150E-06    .30933E-04
  10  Prefactor     .10000E-03    25.964       -.34469E-05** at limit **
  11  Prefactor     17.916        17.193        .46787E-07   -.97492E-05
  12  Prefactor     .10000E-03    4.7360        .65262E-07** at limit **
  13  Prefactor     .10000E-03    21.196        .14195E-05** at limit **
  14  Prefactor     77.916        61.841        .46711E-06    .22055E-04
  15  Prefactor     .10000E-03    7.8278        .94262E-07** at limit **
  16  norm          4.7466        13.244        .42164E-06   -.99935E-05
  17  norm          .10000E-03    3.8492        .71918E-08** at limit **
  18  norm          4.0076        4.1897       -.19670E-06   -.13041E-03
  19  norm          17.803        10.923        .15374E-06   -.27904E-05
  20  Prefactor     17.722        11.862       -.11563E-06   -.36382E-04
  21  Prefactor     5.3877        19.769        .32550E-06   -.15706E-04
  22  Prefactor     .10001E-03    43.969        .64003E-05** at limit **
  23  norm          .10000E-03    1.1809        .23415E-08** at limit **
  24  Prefactor     6.0461        20.006        .10206E-05    .11981E-04
  25  norm          1.2579        1.1351        .11917E-06   -.99417E-04
  26  norm          .10000E-03    1.2656        .33352E-07** at limit **
  27  Prefactor     1.3337        4.3158        .11246E-05    .99987E-04
  28  Prefactor     16.143        28.668       -.46159E-05   -.40373E-03
  29  Prefactor     .10002E-03    5.1478       -.13122E-05** at limit **
  30  Prefactor     .10000E-03    6.2574       -.33102E-06** at limit **
  31  Prefactor     .10000E-03    32.520       -.29737E-05** at limit **
  32  Normalizat    .92505        .19549        .56009E-06    .45348E-04
  33  Prefactor     1.0658        .21380       -.17078E-05    .11186E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 6.36076
  Prefactor  = 38.7825
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.7602
  Prefactor  = 11.2465
  Prefactor  = 0.000100003
  Prefactor  = 17.9159
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 77.9159
  Prefactor  = 0.0001
  norm       = 4.74657
  norm       = 0.0001
  norm       = 4.00763
  norm       = 17.8034
  Prefactor  = 17.7217
  Prefactor  = 5.38771
  Prefactor  = 0.000100008
  norm       = 0.0001
  Prefactor  = 6.04611
  norm       = 1.25792
  norm       = 0.0001
  Prefactor  = 1.33368
  Prefactor  = 16.143
  Prefactor  = 0.000100018
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 0.925047
  Prefactor  = 1.06578
 **********
 **   18 **HESSE 
 **********

 FCN=   4834.916     FROM HESSE     STATUS=OK           691 CALLS     5249 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.3608        21.244        .15910E-03   -1.5204    
   3  Prefactor     38.783        45.502        .64352E-04   -1.4462    
   4  Prefactor     .10000E-03    14.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.2562        .10185E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.7591        .11189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    82.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.7602        8.1240        .92215E-03   -1.5272    
   9  Prefactor     11.247        12.173        .59731E-03   -1.5037    
  10  Prefactor     .10000E-03    26.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     17.916        17.194        .94626E-04   -1.4861    
  12  Prefactor     .10000E-03    4.7698        .14775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    21.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     77.916        61.847        .45495E-04   -1.3940    
  15  Prefactor     .10000E-03    7.8432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.7466        13.247        .18467E-03   -1.5272    
  17  norm          .10000E-03    3.8634        .13319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.0076        4.2005        .13508E-03   -1.5308    
  19  norm          17.803        10.927        .94924E-04   -1.4864    
  20  Prefactor     17.722        11.775        .95138E-04   -1.4866    
  21  Prefactor     5.3877        19.772        .17313E-03   -1.5244    
  22  Prefactor     .10001E-03    44.916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.1844        .73748E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     6.0461        19.846        .16333E-03   -1.5216    
  25  norm          1.2579        1.1327        .39794E-04   -1.5484    
  26  norm          .10000E-03    1.2694        .76374E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.3337        4.2170        .20433E-03   -1.5477    
  28  Prefactor     16.143        29.325        .99492E-04   -1.4904    
  29  Prefactor     .10002E-03    14.171        .29863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    6.4792        .33825E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    32.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .92505        .23404        .24329E-03   -.95586    
  33  Prefactor     1.0658        .25763        .25518E-03   -.90568    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86753e-09
Minuit parameter uncertainties:
  1  0.000241115
  2  21.2693
  3  45.5426
  4  6.51607e-05
  5  7.07665e-07
  6  1.36013e-05
  7  0.00022658
  8  8.12591
  9  12.1753
  10  0.000514497
  11  17.1984
  12  1.55153e-06
  13  0.00017405
  14  61.8978
  15  2.49181e-06
  16  13.2555
  17  2.52887e-07
  18  4.2008
  19  10.928
  20  11.7766
  21  19.7956
  22  0.0012218
  23  4.91865e-07
  24  19.8681
  25  1.13273
  26  1.1665e-06
  27  4.21791
  28  29.3509
  29  0.00100079
  30  2.43108e-05
  31  0.000475186
  32  0.234296
  33  0.257931
Done.

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

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  5.388e+00  1.980e+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:  1.066e+00  2.579e-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:  9.250e-01  2.343e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/902790/likelihoodResults_610243201_610502401_4FGL_J2326.9-4130_daily_bin1431.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) = 4833.85830401
delta logL = 1.05725044737

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4833.59621005
delta logL = 1.31934440705

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.949       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3806       1.0000          .0000       10.000    
     3 'Normalizat'    .93763       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0499       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=   4833.596     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      215 TOTAL
                     EDM=   .16E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 13.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.956        26.248        .50939E-05   -.10795E-03
   2  Index         1.3808        .62703        .28377E-04    .18934E-04
   3  Normalizat    .93757        .18702       -.77302E-07   -.42124E-04
   4  Prefactor     1.0498        .20982       -.12232E-06   -.33818E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.9565
  Index      = 1.38078
  Normalizat = 0.937569
  Prefactor  = 1.04985
 **********
 **   18 **HESSE 
 **********

 FCN=   4833.596     FROM HESSE     STATUS=OK            31 CALLS      246 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.956        25.542        .92008E-04   -1.4837    
   2  Index         1.3808        .60941        .85886E-02   -.80936    
   3  Normalizat    .93757        .22589        .24173E-03   -.95152    
   4  Prefactor     1.0498        .25334        .25649E-03   -.91086    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.15987e-11
Minuit parameter uncertainties:
  1  25.5566
  2  0.612627
  3  0.226118
  4  0.253627
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/902790': 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) = 4833.59620975
delta logL = 1.31934470672

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  1.896e+01  2.556e+01  1.000e-04  1.000e+04 ( 1.000e-13)
436        Index:  1.381e+00  6.126e-01  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.050e+00  2.536e-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:  9.376e-01  2.261e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.74
Ra Dec: 351.737 -41.509
Photon Index (Free Index): 1.38 +/- 0.61
Photon Flux (Free Index): 6.94e-09 +/- 9.05e-09
Energy Flux (Free Index): 3.27e-05 +/- 5.64e-05

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/902790/cmap_HighResolution_610243201_610502401_4FGL_J2326.9-4130_daily_bin1431.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.75e-03', comment='SUCCESS', energy_flux2='3.27e-05', dlogl='1.32e+00', photon_flux2='6.94e-09', job_status='DONE', time_completed='2021-09-29 19:40:35.129724', photon_index_error2='0.61', photon_index2='1.38', ts='0.10', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='8.53e-08', energy_flux_error2='5.64e-05', EG='0.93', time_epoch_completed='1632969635.13', return_code='0', job_id='902790', GAL2='1.05', EG2='0.94', return_code2='0', photon_flux_error2='9.05e-09', ts2='2.74', photon_index='2.78' WHERE bin_id='1431' AND source_name='4FGL J2326.9-4130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:40:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 902790: <4FGL_J2326.9-4130_daily_bin1431> in cluster <slac> Done

Job <4FGL_J2326.9-4130_daily_bin1431> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 19:25:43 2021
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 19:25:45 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:25:45 2021
Terminated at Wed Sep 29 19:40:35 2021
Results reported at Wed Sep 29 19:40:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.9-4130_daily_bin1431 351.737 -41.5089 610243201 610502401 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 :                                   790.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             305.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            892 sec.

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

