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


Performing analysis on: 4FGL_J2326.9-4130_daily_bin1458
RA = 351.737, Dec = -41.5089
tmin = 617241601, tmax = 617500801
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='902831', job_status='RUN', time_executed='2021-09-29 19:27:13.034423', time_epoch_executed='1632968833.03' WHERE source_name='4FGL J2326.9-4130' and cadence='daily' and bin_id='1458'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/902831

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/902831/ft1_4FGL_J2326.9-4130_daily_bin1458.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/902831/ft2_4FGL_J2326.9-4130_daily_bin1458.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/902831/ft1_4FGL_J2326.9-4130_daily_bin1458.fits outfile=/scratch/kocevski/902831/ft1_filteredMKT_4FGL_J2326.9-4130_daily_bin1458.fits ra=351.737 dec=-41.5089 rad=12.0 tmin=617241601.0 tmax=617500801.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 2.97
user 2.71
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/902831/ft1_filtered_4FGL_J2326.9-4130_daily_bin1458.fits" evtable="EVENTS" scfile=/scratch/kocevski/902831/ft2_4FGL_J2326.9-4130_daily_bin1458.fits sctable="SC_DATA" outfile=/scratch/kocevski/902831/ltcube_617241601_617500801_4FGL_J2326.9-4130_daily_bin1458.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/902831/ft2_4FGL_J2326.9-4130_daily_bin1458.fits
.....................!
real 13.77
user 13.27
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/902831/ft1_filtered_4FGL_J2326.9-4130_daily_bin1458.fits evtable="EVENTS" scfile=/scratch/kocevski/902831/ft2_4FGL_J2326.9-4130_daily_bin1458.fits sctable="SC_DATA" expcube=/scratch/kocevski/902831/ltcube_617241601_617500801_4FGL_J2326.9-4130_daily_bin1458.fits outfile=/scratch/kocevski/902831/expmap_617241601_617500801_4FGL_J2326.9-4130_daily_bin1458.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/902831/ltcube_617241601_617500801_4FGL_J2326.9-4130_daily_bin1458.fits
.....................!
real 194.81
user 187.84
sys 5.59

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/902831/ft1_filtered_4FGL_J2326.9-4130_daily_bin1458.fits scfile=/scratch/kocevski/902831/ft2_4FGL_J2326.9-4130_daily_bin1458.fits outfile=/scratch/kocevski/902831/cmap_617241601_617500801_4FGL_J2326.9-4130_daily_bin1458.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.58
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/902831/ft1_filtered_4FGL_J2326.9-4130_daily_bin1458.fits scfile=/scratch/kocevski/902831/ft2_4FGL_J2326.9-4130_daily_bin1458.fits outfile=/scratch/kocevski/902831/cmap_HighResolution_617241601_617500801_4FGL_J2326.9-4130_daily_bin1458.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/902831/ft1_filtered_4FGL_J2326.9-4130_daily_bin1458.fits evtable="EVENTS" scfile=/scratch/kocevski/902831/ft2_4FGL_J2326.9-4130_daily_bin1458.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/902831/Model_4FGL_J2326.9-4130_daily_bin1458.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/902831/ft1_filtered_4FGL_J2326.9-4130_daily_bin1458.fits.....................!
real 29.46
user 27.96
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11070E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.995       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.834       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.846       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12602E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    61.242       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13224E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    12.086       1.0000         .10000E-03   10000.    
    25 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .12157E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.8328       1.0000         .10000E-03   10000.    
    30 'Prefactor '    12.831       1.0000         .10000E-03   10000.    
    31 'Prefactor '    78.421       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0916       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.1888       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=   3148.805     FROM MIGRAD    STATUS=CONVERGED    904 CALLS     4551 TOTAL
                     EDM=   .47E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    236.96        .16687E-06** at limit **
   2  Prefactor     .10000E-03    18.104        .60625E-08** at limit **
   3  Prefactor     .10000E-03    113.37       -.14095E-06** at limit **
   4  Prefactor     .10000E-03    17.857       -.60007E-07** at limit **
   5  Prefactor     14.993        9.3288        .11352E-06   -.79283E-06
   6  Prefactor     .10000E-03    4.5984       -.30894E-06** at limit **
   7  Prefactor     23.644        109.73        .12661E-04    .12180E-04
   8  Prefactor     .10000E-03    5.3326       -.45775E-07** at limit **
   9  Prefactor     .10000E-03    74.969       -.74155E-06** at limit **
  10  Prefactor     16.851        46.400       -.12820E-05   -.20531E-05
  11  Prefactor     .10000E-03    17.041       -.29374E-07** at limit **
  12  Prefactor     .10000E-03    8.1962       -.22913E-06** at limit **
  13  Prefactor     .10000E-03    236.37       -.36268E-06** at limit **
  14  Prefactor     61.233        85.795        .58174E-06    .15800E-05
  15  Prefactor     .10000E-03    90.100        .29627E-06** at limit **
  16  norm          .10000E-03    7.3757       -.13062E-07** at limit **
  17  norm          .10000E-03    2.6979       -.26121E-08** at limit **
  18  norm          .10000E-03    2.1439       -.23375E-08** at limit **
  19  norm          .10000E-03    6.5397        .17966E-07** at limit **
  20  Prefactor     .10000E-03    2.7029       -.18733E-07** at limit **
  21  Prefactor     .10000E-03    13.052       -.21385E-07** at limit **
  22  Prefactor     .10000E-03    208.09       -.16449E-05** at limit **
  23  norm          .10000E-03    1.3873       -.56385E-08** at limit **
  24  Prefactor     12.086        14.029        .10349E-06    .12026E-05
  25  norm          .10000E-03    .65318       -.25470E-07** at limit **
  26  norm          .10000E-03    1.5901       -.43429E-08** at limit **
  27  Prefactor     .10000E-03    2.8341        .18137E-06** at limit **
  28  Prefactor     .10000E-03    30.439        .97543E-08** at limit **
  29  Prefactor     2.8219        15.245        .33805E-05    .63658E-04
  30  Prefactor     12.831        7.9732        .23369E-06   -.47277E-05
  31  Prefactor     78.400        96.119        .21113E-06    .11768E-04
  32  Normalizat    1.0916        .30057       -.40690E-05    .85622E-04
  33  Prefactor     1.1887        .31363        .35511E-05   -.13943E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.9934
  Prefactor  = 0.0001
  Prefactor  = 23.6442
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.8514
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 61.2326
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.0863
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.82189
  Prefactor  = 12.831
  Prefactor  = 78.4001
  Normalizat = 1.09162
  Prefactor  = 1.1887
 **********
 **   18 **HESSE 
 **********

 FCN=   3148.805     FROM HESSE     STATUS=OK           679 CALLS     5230 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    240.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    114.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.993        9.3324        .10343E-03   -1.4933    
   6  Prefactor     .10000E-03    4.6389        .11761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     23.644        114.45        .82049E-04   -1.4735    
   8  Prefactor     .10000E-03    5.3365        .12656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    75.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     16.851        46.391        .97582E-04   -1.4887    
  11  Prefactor     .10000E-03    17.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.2320        .15693E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    238.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     61.233        85.802        .51272E-04   -1.4141    
  15  Prefactor     .10000E-03    93.297        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    7.3774        .14885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.6980        .90020E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.1441        .80246E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    6.5558        .14015E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.7043        .90092E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    208.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.3883        .64548E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     12.086        14.023        .11523E-03   -1.5013    
  25  norm          .10000E-03    .66864        .88484E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    1.5912        .69105E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    4.8195        .18283E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    30.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     2.8219        15.630        .12081E-02   -1.5372    
  30  Prefactor     12.831        7.9991        .11182E-03   -1.4991    
  31  Prefactor     78.400        96.555        .45348E-04   -1.3935    
  32  Normalizat    1.0916        .34187        .25369E-03   -.90021    
  33  Prefactor     1.1887        .36350        .27180E-03   -.86680    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3372e-10
Minuit parameter uncertainties:
  1  0.000135932
  2  9.39429e-08
  3  1.93887e-05
  4  3.15477e-06
  5  9.33329
  6  1.85558e-05
  7  104.362
  8  1.20571e-06
  9  5.97133e-05
  10  46.4902
  11  1.18055e-06
  12  1.56813e-05
  13  9.28874e-05
  14  85.9764
  15  9.84556e-05
  16  9.86255e-07
  17  8.77516e-08
  18  1.93674e-08
  19  9.3667e-07
  20  1.46065e-07
  21  6.87866e-07
  22  6.98457e-06
  23  1.34306e-07
  24  14.0268
  25  5.79123e-08
  26  9.29253e-08
  27  5.35195e-06
  28  2.18777e-06
  29  13.2875
  30  7.9998
  31  96.7488
  32  0.342567
  33  0.364269
Done.

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

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  1.000e-04  6.879e-07  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.189e+00  3.643e-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.092e+00  3.426e-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: 9.01e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/902831/likelihoodResults_617241601_617500801_4FGL_J2326.9-4130_daily_bin1458.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) = 3148.80576816
delta logL = -0.000360722197001

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3148.80540747
delta logL = -3.64066181646e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7557       1.0000          .0000       10.000    
     3 'Normalizat'    1.0918       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1885       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=   3148.805     FROM MIGRAD    STATUS=CONVERGED    110 CALLS      268 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    76.940        .18142E-01** at limit **
   2  Index         1.9663        5.7896        .50000       -.62073E-08
   3  Normalizat    1.0916        .12757E-01    .25370E-03   -.51847E-04
   4  Prefactor     1.1887        .14250E-01    .27180E-03   -.47998E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.96627
  Normalizat = 1.09162
  Prefactor  = 1.1887
 **********
 **   18 **HESSE 
 **********

 FCN=   3148.805     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      297 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    544.86        .24296E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9663        6.6755        .50000       -.65196    
   3  Normalizat    1.0916        .35134E-01    .10148E-04   -.90021    
   4  Prefactor     1.1887        .39244E-01    .10872E-04   -.86680    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.3154e-10
Minuit parameter uncertainties:
  1  0.00036267
  2  1420.58
  3  0.0351344
  4  0.0392448
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/902831': 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) = 3148.80540615
delta logL = 1.28503688757e-06

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  1.000e-04  3.627e-04  1.000e-04  1.000e+04 ( 1.000e-13)
436        Index:  1.966e+00  1.421e+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.189e+00  3.924e-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.092e+00  3.513e-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/902831/cmap_HighResolution_617241601_617500801_4FGL_J2326.9-4130_daily_bin1458.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.13e-03', job_status='DONE', photon_flux_upper_limit='9.01e-08', time_completed='2021-09-29 19:39:14.528321', job_id='902831', GAL2='1.19', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1632969554.53', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='1.29e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.78' WHERE bin_id='1458' AND source_name='4FGL J2326.9-4130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:39:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 902831: <4FGL_J2326.9-4130_daily_bin1458> in cluster <slac> Done

Job <4FGL_J2326.9-4130_daily_bin1458> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 19:25:47 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 19:25: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:25:48 2021
Terminated at Wed Sep 29 19:39:15 2021
Results reported at Wed Sep 29 19:39:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.9-4130_daily_bin1458 351.737 -41.5089 617241601 617500801 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 :                                   632.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   806 sec.
    Turnaround time :                            808 sec.

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

