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


Performing analysis on: 4FGL_J2326.9-4130_daily_bin1592
RA = 351.737, Dec = -41.5089
tmin = 651974401, tmax = 652233601
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='904667', job_status='RUN', time_executed='2021-09-29 19:30:42.202525', time_epoch_executed='1632969042.2' WHERE source_name='4FGL J2326.9-4130' and cadence='daily' and bin_id='1592'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/904667

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/904667/ft1_4FGL_J2326.9-4130_daily_bin1592.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/904667/ft2_4FGL_J2326.9-4130_daily_bin1592.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/904667/ft1_4FGL_J2326.9-4130_daily_bin1592.fits outfile=/scratch/kocevski/904667/ft1_filteredMKT_4FGL_J2326.9-4130_daily_bin1592.fits ra=351.737 dec=-41.5089 rad=12.0 tmin=651974401.0 tmax=652233601.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 4.32
user 3.32
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/904667/ft2_4FGL_J2326.9-4130_daily_bin1592.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/904667/ft1_filteredMKT_4FGL_J2326.9-4130_daily_bin1592.fits evtable="EVENTS" outfile="/scratch/kocevski/904667/ft1_filtered_4FGL_J2326.9-4130_daily_bin1592.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.53
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/904667/ft1_filtered_4FGL_J2326.9-4130_daily_bin1592.fits" evtable="EVENTS" scfile=/scratch/kocevski/904667/ft2_4FGL_J2326.9-4130_daily_bin1592.fits sctable="SC_DATA" outfile=/scratch/kocevski/904667/ltcube_651974401_652233601_4FGL_J2326.9-4130_daily_bin1592.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/904667/ft2_4FGL_J2326.9-4130_daily_bin1592.fits
.....................!
real 11.84
user 11.46
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/904667/ft1_filtered_4FGL_J2326.9-4130_daily_bin1592.fits evtable="EVENTS" scfile=/scratch/kocevski/904667/ft2_4FGL_J2326.9-4130_daily_bin1592.fits sctable="SC_DATA" expcube=/scratch/kocevski/904667/ltcube_651974401_652233601_4FGL_J2326.9-4130_daily_bin1592.fits outfile=/scratch/kocevski/904667/expmap_651974401_652233601_4FGL_J2326.9-4130_daily_bin1592.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/904667/ltcube_651974401_652233601_4FGL_J2326.9-4130_daily_bin1592.fits
.....................!
real 191.76
user 186.74
sys 4.66

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/904667/ft1_filtered_4FGL_J2326.9-4130_daily_bin1592.fits scfile=/scratch/kocevski/904667/ft2_4FGL_J2326.9-4130_daily_bin1592.fits outfile=/scratch/kocevski/904667/cmap_651974401_652233601_4FGL_J2326.9-4130_daily_bin1592.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=351.737 yref=-41.5089 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/904667/ft1_filtered_4FGL_J2326.9-4130_daily_bin1592.fits scfile=/scratch/kocevski/904667/ft2_4FGL_J2326.9-4130_daily_bin1592.fits outfile=/scratch/kocevski/904667/cmap_HighResolution_651974401_652233601_4FGL_J2326.9-4130_daily_bin1592.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/904667/ft1_filtered_4FGL_J2326.9-4130_daily_bin1592.fits evtable="EVENTS" scfile=/scratch/kocevski/904667/ft2_4FGL_J2326.9-4130_daily_bin1592.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/904667/Model_4FGL_J2326.9-4130_daily_bin1592.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/904667/ft1_filtered_4FGL_J2326.9-4130_daily_bin1592.fits.....................!
real 42.73
user 41.38
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    36.772       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10426E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.9299       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.1415       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    47.386       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.6709       1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.202       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11436E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    6.1149       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10420E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    18.639       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10153E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.7516       1.0000         .10000E-03   10000.    
    25 'norm      '    .35430       1.0000         .10000E-03   10000.    
    26 'norm      '    4.0601       1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.8001       1.0000         .10000E-03   10000.    
    28 'Prefactor '    11.101       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.2041       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .51521       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=   5454.438     FROM MIGRAD    STATUS=CONVERGED    872 CALLS     3918 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.517        .14638E-06** at limit **
   2  Prefactor     36.776        23.899        .38714E-06    .74406E-04
   3  Prefactor     .10000E-03    69.980        .18593E-05** at limit **
   4  Prefactor     .10000E-03    12.643       -.59712E-07** at limit **
   5  Prefactor     7.9305        5.3655        .11601E-07   -.92505E-04
   6  Prefactor     7.1423        5.1674       -.82757E-07   -.14203E-03
   7  Prefactor     .10001E-03    89.225       -.19957E-05** at limit **
   8  Prefactor     .10000E-03    2.5239        .78578E-08** at limit **
   9  Prefactor     47.387        25.185       -.74290E-07   -.21516E-04
  10  Prefactor     .10000E-03    13.061       -.31617E-06** at limit **
  11  Prefactor     5.6708        6.9113       -.13470E-07   -.83394E-05
  12  Prefactor     15.203        8.7441       -.12310E-06   -.11429E-03
  13  Prefactor     .10000E-03    23.142       -.92568E-07** at limit **
  14  Prefactor     .10000E-03    30.667       -.22684E-06** at limit **
  15  Prefactor     .10074E-03    13.970        .29063E-05** at limit **
  16  norm          .10000E-03    4.0224       -.48745E-07** at limit **
  17  norm          .10000E-03    3.3342       -.15899E-06** at limit **
  18  norm          .10000E-03    1.3295       -.70454E-07** at limit **
  19  norm          6.1146        6.5791        .18652E-06    .71103E-04
  20  Prefactor     .10000E-03    3.3924       -.56664E-06** at limit **
  21  Prefactor     18.620        30.877       -.44372E-06   -.68543E-04
  22  Prefactor     .10000E-03    19.936        .20033E-06** at limit **
  23  norm          .10000E-03    1.1844       -.30549E-06** at limit **
  24  Prefactor     9.7476        10.780        .20039E-05    .43552E-03
  25  norm          .35397        .78322        .46272E-06    .41319E-03
  26  norm          4.0613        3.8161        .85576E-07    .50402E-04
  27  Prefactor     1.7996        2.0655       -.11186E-07   -.11925E-03
  28  Prefactor     11.100        18.123       -.22816E-06   -.38944E-04
  29  Prefactor     .10000E-03    3.6133        .15443E-06** at limit **
  30  Prefactor     .10000E-03    .97259       -.46891E-08** at limit **
  31  Prefactor     .10000E-03    12.618        .15074E-06** at limit **
  32  Normalizat    1.2040        .17886        .60157E-06   -.23504E-03
  33  Prefactor     .51537        .19007       -.15215E-05   -.13370E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 36.7758
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 7.93053
  Prefactor  = 7.14228
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 47.3873
  Prefactor  = 0.0001
  Prefactor  = 5.67077
  Prefactor  = 15.2026
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100739
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.11457
  Prefactor  = 0.0001
  Prefactor  = 18.6201
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.74756
  norm       = 0.353969
  norm       = 4.06133
  Prefactor  = 1.79958
  Prefactor  = 11.1002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.20398
  Prefactor  = 0.515371
 **********
 **   18 **HESSE 
 **********

 FCN=   5454.438     FROM HESSE     STATUS=OK           691 CALLS     4609 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     36.776        23.907        .66091E-04   -1.4494    
   3  Prefactor     .10000E-03    71.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.9305        5.3709        .13650E-03   -1.5145    
   6  Prefactor     7.1423        5.1689        .13454E-03   -1.5173    
   7  Prefactor     .10001E-03    90.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.5352        .11456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     47.387        25.180        .58249E-04   -1.4330    
  10  Prefactor     .10000E-03    13.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.6708        6.9092        .16868E-03   -1.5232    
  12  Prefactor     15.203        8.7377        .10273E-03   -1.4928    
  13  Prefactor     .10000E-03    23.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    30.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10074E-03    72.471        .44543E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.0252        .14467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.3643        .13177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.3298        .83156E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          6.1146        6.5722        .16236E-03   -1.5213    
  20  Prefactor     .10000E-03    3.5382        .13467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     18.620        30.947        .92771E-04   -1.4845    
  22  Prefactor     .10000E-03    19.970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.1844        .78306E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     9.7476        10.780        .64162E-03   -1.5083    
  25  norm          .35397        .72476        .90730E-03   -1.5589    
  26  norm          4.0613        3.8017        .12883E-03   -1.5305    
  27  Prefactor     1.7996        2.0528        .10820E-03   -1.5440    
  28  Prefactor     11.100        18.031        .12024E-03   -1.5042    
  29  Prefactor     .10000E-03    3.7357        .27402E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    .97503        .71098E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    12.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.2040        .20486        .19662E-03   -.86480    
  33  Prefactor     .51537        .21547        .31641E-03   -1.1128    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06921e-08
Minuit parameter uncertainties:
  1  5.5836e-05
  2  23.9129
  3  0.00118629
  4  1.64058e-05
  5  5.37119
  6  5.16924
  7  0.00156441
  8  2.20806e-07
  9  25.1858
  10  0.000104982
  11  6.9102
  12  8.73845
  13  6.60119e-05
  14  0.000125696
  15  0.0146524
  16  6.41156e-06
  17  2.26126e-05
  18  2.24819e-06
  19  6.57298
  20  7.52617e-05
  21  30.9737
  22  6.80457e-05
  23  9.73544e-06
  24  10.7825
  25  0.724778
  26  3.80196
  27  2.05289
  28  18.04
  29  1.18646e-05
  30  1.15756e-06
  31  4.88671e-05
  32  0.204996
  33  0.215813
Done.

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

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  1.862e+01  3.097e+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:  5.154e-01  2.158e-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.204e+00  2.050e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.46
Ra Dec: 351.737 -41.509
Photon Flux Upper Limit: 1.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/904667/likelihoodResults_651974401_652233601_4FGL_J2326.9-4130_daily_bin1592.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) = 5454.08945525
delta logL = 0.3484834004

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5454.08537495
delta logL = 0.352563703756

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2259       1.0000         .10000E-03   10000.    
     2 'Index     '    4.2743       1.0000          .0000       10.000    
     3 'Normalizat'    1.1740       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .54032       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=   5454.085     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      346 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2214        168.68        .12945E-03    .11066E-04
   2  Index         4.2752        7.0413        .69561E-02    .21142E-04
   3  Normalizat    1.1740        .17331        .19865E-03   -.41400E-04
   4  Prefactor     .54033        .18787        .30954E-03    .25893E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.22135
  Index      = 4.27517
  Normalizat = 1.17403
  Prefactor  = 0.540335
 **********
 **   18 **HESSE 
 **********

 FCN=   5454.085     FROM HESSE     STATUS=OK            25 CALLS      371 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2214        11.733        .51779E-05   -1.5349    
   2  Index         4.2752        2.0509        .27824E-03   -.14548    
   3  Normalizat    1.1740        .20147        .39730E-04   -.87409    
   4  Prefactor     .54033        .21650        .12381E-04   -1.1016    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.50207e-11
Minuit parameter uncertainties:
  1  11.7418
  2  2.11466
  3  0.201601
  4  0.216833
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/904667': 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) = 5454.08537482
delta logL = 0.352563826395

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  3.221e+00  1.174e+01  1.000e-04  1.000e+04 ( 1.000e-13)
436        Index:  4.275e+00  2.115e+00  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:  5.403e-01  2.168e-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.174e+00  2.016e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.20
Ra Dec: 351.737 -41.509
Photon Index (Free Index): 4.28 +/- 2.11
Photon Flux (Free Index): 4.34e-08 +/- 4.51e-08
Energy Flux (Free Index): 6.23e-06 +/- 6.71e-06

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/904667/cmap_HighResolution_651974401_652233601_4FGL_J2326.9-4130_daily_bin1592.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.49e-03', comment='SUCCESS', energy_flux2='6.23e-06', dlogl='3.53e-01', photon_flux2='4.34e-08', job_status='DONE', time_completed='2021-09-29 19:44:36.314231', photon_index_error2='2.11', photon_index2='4.28', ts='0.46', fit_tolerance='1e-08', GAL='0.52', photon_index_error='0.00', photon_flux_upper_limit='1.07e-07', energy_flux_error2='6.71e-06', EG='1.20', time_epoch_completed='1632969876.31', return_code='0', job_id='904667', GAL2='0.54', EG2='1.17', return_code2='0', photon_flux_error2='4.51e-08', ts2='1.20', photon_index='2.78' WHERE bin_id='1592' AND source_name='4FGL J2326.9-4130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:44:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 904667: <4FGL_J2326.9-4130_daily_bin1592> in cluster <slac> Done

Job <4FGL_J2326.9-4130_daily_bin1592> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 19:30:29 2021
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 19:30:31 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:30:31 2021
Terminated at Wed Sep 29 19:44:37 2021
Results reported at Wed Sep 29 19:44:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.9-4130_daily_bin1592 351.737 -41.5089 651974401 652233601 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 :                                   824.38 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             329.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   845 sec.
    Turnaround time :                            848 sec.

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

