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


Performing analysis on: 4FGL_J2326.9-4130_daily_bin1162
RA = 351.737, Dec = -41.5089
tmin = 540518401, tmax = 540777601
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='901148', job_status='RUN', time_executed='2021-09-29 19:22:50.730245', time_epoch_executed='1632968570.73' WHERE source_name='4FGL J2326.9-4130' and cadence='daily' and bin_id='1162'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/901148

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/901148/ft1_4FGL_J2326.9-4130_daily_bin1162.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/901148/ft2_4FGL_J2326.9-4130_daily_bin1162.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/901148/ft1_4FGL_J2326.9-4130_daily_bin1162.fits outfile=/scratch/kocevski/901148/ft1_filteredMKT_4FGL_J2326.9-4130_daily_bin1162.fits ra=351.737 dec=-41.5089 rad=12.0 tmin=540518401.0 tmax=540777601.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.63
user 3.41
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/901148/ft2_4FGL_J2326.9-4130_daily_bin1162.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/901148/ft1_filteredMKT_4FGL_J2326.9-4130_daily_bin1162.fits evtable="EVENTS" outfile="/scratch/kocevski/901148/ft1_filtered_4FGL_J2326.9-4130_daily_bin1162.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.48
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/901148/ft1_filtered_4FGL_J2326.9-4130_daily_bin1162.fits" evtable="EVENTS" scfile=/scratch/kocevski/901148/ft2_4FGL_J2326.9-4130_daily_bin1162.fits sctable="SC_DATA" outfile=/scratch/kocevski/901148/ltcube_540518401_540777601_4FGL_J2326.9-4130_daily_bin1162.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/901148/ft2_4FGL_J2326.9-4130_daily_bin1162.fits
.....................!
real 11.60
user 11.25
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/901148/ft1_filtered_4FGL_J2326.9-4130_daily_bin1162.fits evtable="EVENTS" scfile=/scratch/kocevski/901148/ft2_4FGL_J2326.9-4130_daily_bin1162.fits sctable="SC_DATA" expcube=/scratch/kocevski/901148/ltcube_540518401_540777601_4FGL_J2326.9-4130_daily_bin1162.fits outfile=/scratch/kocevski/901148/expmap_540518401_540777601_4FGL_J2326.9-4130_daily_bin1162.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/901148/ltcube_540518401_540777601_4FGL_J2326.9-4130_daily_bin1162.fits
.....................!
real 190.90
user 185.53
sys 5.03

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/901148/ft1_filtered_4FGL_J2326.9-4130_daily_bin1162.fits scfile=/scratch/kocevski/901148/ft2_4FGL_J2326.9-4130_daily_bin1162.fits outfile=/scratch/kocevski/901148/cmap_540518401_540777601_4FGL_J2326.9-4130_daily_bin1162.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/901148/ft1_filtered_4FGL_J2326.9-4130_daily_bin1162.fits scfile=/scratch/kocevski/901148/ft2_4FGL_J2326.9-4130_daily_bin1162.fits outfile=/scratch/kocevski/901148/cmap_HighResolution_540518401_540777601_4FGL_J2326.9-4130_daily_bin1162.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=351.737 yref=-41.5089 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/901148/ft1_filtered_4FGL_J2326.9-4130_daily_bin1162.fits evtable="EVENTS" scfile=/scratch/kocevski/901148/ft2_4FGL_J2326.9-4130_daily_bin1162.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/901148/Model_4FGL_J2326.9-4130_daily_bin1162.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/901148/ft1_filtered_4FGL_J2326.9-4130_daily_bin1162.fits.....................!
real 35.17
user 33.88
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.102       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.3065       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .31411E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10248E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .31198E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10271E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.3712       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    90.591       1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.915       1.0000         .10000E-03   10000.    
    16 'norm      '    8.7243       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    11.773       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11928E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10517E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    6.5239       1.0000         .10000E-03   10000.    
    24 'Prefactor '    15.712       1.0000         .10000E-03   10000.    
    25 'norm      '    .50018       1.0000         .10000E-03   10000.    
    26 'norm      '    1.2747       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    13.412       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .46143E-02   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .78470       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.2116       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=   4338.188     FROM MIGRAD    STATUS=CONVERGED    947 CALLS     4714 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.092        41.980        .30491E-06   -.17849E-04
   2  Prefactor     5.2982        37.512        .14064E-05   -.74529E-05
   3  Prefactor     .10000E-03    36.639       -.11470E-05** at limit **
   4  Prefactor     .10000E-03    10.959        .44450E-08** at limit **
   5  Prefactor     .10063E-03    121.82       -.89004E-05** at limit **
   6  Prefactor     .10000E-03    2.9129       -.52035E-06** at limit **
   7  Prefactor     .10000E-03    14.858        .47939E-07** at limit **
   8  Prefactor     .35125E-03    34.247       -.61004E-05** at limit **
   9  Prefactor     .10000E-03    61.539        .15219E-05** at limit **
  10  Prefactor     .10000E-03    9.6786        .24883E-06** at limit **
  11  Prefactor     .10000E-03    22.458        .15240E-05** at limit **
  12  Prefactor     4.3701        5.6667        .15931E-06    .12992E-04
  13  Prefactor     .10000E-03    29.829        .75197E-06** at limit **
  14  Prefactor     90.541        87.265       -.10110E-05    .17174E-04
  15  Prefactor     21.932        20.486       -.24287E-05   -.17083E-03
  16  norm          8.7231        8.7306        .31972E-07    .91862E-05
  17  norm          .10000E-03    2.7013       -.26057E-06** at limit **
  18  norm          .10000E-03    4.5801       -.10064E-05** at limit **
  19  norm          11.769        10.794       -.38866E-07   -.88446E-04
  20  Prefactor     .10000E-03    3.5239       -.72083E-08** at limit **
  21  Prefactor     .10000E-03    155.75       -.69524E-05** at limit **
  22  Prefactor     .10000E-03    55.686        .23468E-05** at limit **
  23  norm          6.5231        4.9451       -.91812E-06   -.46632E-03
  24  Prefactor     15.715        13.460       -.11537E-05   -.13601E-03
  25  norm          .49758        1.4045        .99087E-06    .26733E-03
  26  norm          1.2731        3.2013       -.69225E-06   -.28062E-03
  27  Prefactor     .10000E-03    1.9551       -.43106E-06** at limit **
  28  Prefactor     .10000E-03    6.5278       -.15203E-06** at limit **
  29  Prefactor     13.418        10.135       -.97662E-06   -.45581E-03
  30  Prefactor     .10000E-03    1.5770       -.64810E-07** at limit **
  31  Prefactor     .10000E-03    436.03        .51081E-07** at limit **
  32  Normalizat    .78496        .22106       -.38526E-05   -.15016E-03
  33  Prefactor     1.2117        .23217        .13646E-05   -.25288E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.0922
  Prefactor  = 5.29817
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010063
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000351252
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.37007
  Prefactor  = 0.0001
  Prefactor  = 90.5408
  Prefactor  = 21.9321
  norm       = 8.72314
  norm       = 0.0001
  norm       = 0.0001
  norm       = 11.7686
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.52307
  Prefactor  = 15.7151
  norm       = 0.497577
  norm       = 1.27309
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 13.4179
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Normalizat = 0.784965
  Prefactor  = 1.21165
 **********
 **   18 **HESSE 
 **********

 FCN=   4338.188     FROM HESSE     STATUS=OK           711 CALLS     5425 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.092        41.973        .10306E-03   -1.4931    
   2  Prefactor     5.2982        37.483        .17447E-03   -1.5248    
   3  Prefactor     .10000E-03    36.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10063E-03    8.7653        .54803E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.2396        .21313E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .35125E-03    8.4243        .48619E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    62.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.7010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    22.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.3701        5.6617        .17277E-03   -1.5290    
  13  Prefactor     .10000E-03    29.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     90.541        87.357        .21109E-03   -1.3802    
  15  Prefactor     21.932        20.473        .85562E-04   -1.4771    
  16  norm          8.7231        8.7335        .13571E-03   -1.5117    
  17  norm          .10000E-03    2.7016        .10570E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.5675        .13657E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          11.769        10.790        .11675E-03   -1.5022    
  20  Prefactor     .10000E-03    3.5325        .12050E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    155.16        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    55.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          6.5231        4.8868        .11972E-03   -1.5197    
  24  Prefactor     15.715        13.434        .10104E-03   -1.4915    
  25  norm          .49758        1.4199        .11457E-03   -1.5567    
  26  norm          1.2731        3.1474        .17893E-03   -1.5482    
  27  Prefactor     .10000E-03    3.4434        .17648E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    6.5294        .16434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     13.418        10.205        .10937E-03   -1.4975    
  30  Prefactor     .10000E-03    1.5855        .80677E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    438.75        .19311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .78496        .26250        .26127E-03   -1.0063    
  33  Prefactor     1.2117        .27883        .24137E-03   -.85974    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.62746e-09
Minuit parameter uncertainties:
  1  42.0556
  2  28.2095
  3  7.49122e-05
  4  3.61432e-06
  5  0.00470126
  6  0.000254203
  7  8.9858e-06
  8  0.0920264
  9  0.000634164
  10  2.2249e-05
  11  0.000202821
  12  5.66241
  13  1.28538e-05
  14  87.4813
  15  20.4791
  16  8.73476
  17  2.43243e-06
  18  2.78519e-05
  19  10.7919
  20  1.98162e-05
  21  0.000517743
  22  9.67362e-05
  23  4.88706
  24  13.4363
  25  1.41995
  26  3.14786
  27  0.000106139
  28  1.44388e-06
  29  10.2068
  30  8.85141e-07
  31  0.00252189
  32  0.262929
  33  0.279168
Done.

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

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  1.000e-04  5.177e-04  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.212e+00  2.792e-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:  7.850e-01  2.629e-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: 1.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/901148/likelihoodResults_540518401_540777601_4FGL_J2326.9-4130_daily_bin1162.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) = 4338.18830732
delta logL = -3.06144684146e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4338.18827673
delta logL = -2.22644302994e-08

Fit tolerance = 1e-08

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

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

 FCN=   4338.188     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      243 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    114.50        .90712E-02** at limit **
   2  Index         2.9563        7.7861        .50000        .14858E-05
   3  Normalizat    .78496        .43303E-02    .43414E-01   -.37961E-04
   4  Prefactor     1.2117        .48848E-02    .54588E-01   -.32950E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.95631
  Normalizat = 0.784963
  Prefactor  = 1.21165
 **********
 **   18 **HESSE 
 **********

 FCN=   4338.188     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      276 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6483.3        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9563        7.6207        .50000       -.42107    
   3  Normalizat    .78496        .23283E-01    .26127E-03   -1.0063    
   4  Prefactor     1.2117        .26266E-01    .24137E-03   -.85973    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.11698e-07
Minuit parameter uncertainties:
  1  6.67307e-05
  2  1027.1
  3  0.0232837
  4  0.0262666
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/901148': 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) = 4338.18827672
delta logL = -1.13368514576e-08

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  1.000e-04  6.673e-05  1.000e-04  1.000e+04 ( 1.000e-13)
436        Index:  2.956e+00  1.027e+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.212e+00  2.627e-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:  7.850e-01  2.328e-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/901148/cmap_HighResolution_540518401_540777601_4FGL_J2326.9-4130_daily_bin1162.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.62e-03', job_status='DONE', photon_flux_upper_limit='1.09e-07', time_completed='2021-09-29 19:36:02.938079', job_id='901148', GAL2='1.21', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1632969362.94', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='-1.13e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.78' WHERE bin_id='1162' AND source_name='4FGL J2326.9-4130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:36:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 901148: <4FGL_J2326.9-4130_daily_bin1162> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.9-4130_daily_bin1162 351.737 -41.5089 540518401 540777601 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 :                                   750.39 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             255.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            914 sec.

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

