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


Performing analysis on: 4FGL_J2326.9-4130_daily_bin1022
RA = 351.737, Dec = -41.5089
tmin = 504230401, tmax = 504489601
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='900910', job_status='RUN', time_executed='2021-09-29 19:21:22.728805', time_epoch_executed='1632968482.73' WHERE source_name='4FGL J2326.9-4130' and cadence='daily' and bin_id='1022'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/900910

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/900910/ft1_4FGL_J2326.9-4130_daily_bin1022.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/900910/ft2_4FGL_J2326.9-4130_daily_bin1022.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/900910/ft1_4FGL_J2326.9-4130_daily_bin1022.fits outfile=/scratch/kocevski/900910/ft1_filteredMKT_4FGL_J2326.9-4130_daily_bin1022.fits ra=351.737 dec=-41.5089 rad=12.0 tmin=504230401.0 tmax=504489601.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.57
user 3.34
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/900910/ft1_filtered_4FGL_J2326.9-4130_daily_bin1022.fits" evtable="EVENTS" scfile=/scratch/kocevski/900910/ft2_4FGL_J2326.9-4130_daily_bin1022.fits sctable="SC_DATA" outfile=/scratch/kocevski/900910/ltcube_504230401_504489601_4FGL_J2326.9-4130_daily_bin1022.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/900910/ft2_4FGL_J2326.9-4130_daily_bin1022.fits
.....................!
real 12.09
user 11.71
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/900910/ft1_filtered_4FGL_J2326.9-4130_daily_bin1022.fits evtable="EVENTS" scfile=/scratch/kocevski/900910/ft2_4FGL_J2326.9-4130_daily_bin1022.fits sctable="SC_DATA" expcube=/scratch/kocevski/900910/ltcube_504230401_504489601_4FGL_J2326.9-4130_daily_bin1022.fits outfile=/scratch/kocevski/900910/expmap_504230401_504489601_4FGL_J2326.9-4130_daily_bin1022.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/900910/ltcube_504230401_504489601_4FGL_J2326.9-4130_daily_bin1022.fits
.....................!
real 191.74
user 185.93
sys 5.38

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

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

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/900910/ft1_filtered_4FGL_J2326.9-4130_daily_bin1022.fits scfile=/scratch/kocevski/900910/ft2_4FGL_J2326.9-4130_daily_bin1022.fits outfile=/scratch/kocevski/900910/cmap_HighResolution_504230401_504489601_4FGL_J2326.9-4130_daily_bin1022.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.35
sys 0.19

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/900910/ft1_filtered_4FGL_J2326.9-4130_daily_bin1022.fits evtable="EVENTS" scfile=/scratch/kocevski/900910/ft2_4FGL_J2326.9-4130_daily_bin1022.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/900910/Model_4FGL_J2326.9-4130_daily_bin1022.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/900910/ft1_filtered_4FGL_J2326.9-4130_daily_bin1022.fits.....................!
real 38.56
user 37.19
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10969E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.342       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .60312E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.0325       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.9465       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.4482       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .84816       1.0000         .10000E-03   10000.    
    11 'Prefactor '    32.975       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10240E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    48.848       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.1574       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.9981       1.0000         .10000E-03   10000.    
    16 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    9.9343       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    62.334       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .15503E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    47.351       1.0000         .10000E-03   10000.    
    25 'norm      '    .10103E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .22025E-02   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .87012       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    10.630       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .12910E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1107       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .94120       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=   4803.834     FROM MIGRAD    STATUS=CONVERGED    927 CALLS     4695 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    63.622       -.33409E-05** at limit **
   2  Prefactor     20.351        27.809       -.12379E-06   -.35554E-04
   3  Prefactor     .10000E-03    10.167       -.58546E-07** at limit **
   4  Prefactor     .10132E-03    41.913       -.82814E-05** at limit **
   5  Prefactor     1.0183        8.5849        .56639E-05    .44755E-03
   6  Prefactor     9.9473        5.8344       -.10754E-06   -.19393E-03
   7  Prefactor     .10000E-03    17.923        .41099E-07** at limit **
   8  Prefactor     2.4504        7.9266        .54600E-06   -.14765E-03
   9  Prefactor     .10000E-03    11.929        .32261E-06** at limit **
  10  Prefactor     .86043        17.384        .18946E-06   -.48477E-04
  11  Prefactor     32.972        18.439       -.39404E-07   -.30122E-04
  12  Prefactor     .10000E-03    14.008       -.82876E-07** at limit **
  13  Prefactor     48.867        50.592        .60135E-06    .39662E-04
  14  Prefactor     4.2044        347.19        .13225E-04    .34044E-04
  15  Prefactor     3.9742        28.569        .42147E-06   -.27652E-04
  16  norm          .10000E-03    6.6425       -.19382E-07** at limit **
  17  norm          .10000E-03    2.2032       -.15103E-08** at limit **
  18  norm          9.9318        6.2526        .17361E-06    .16295E-03
  19  norm          .10000E-03    3.0940        .14453E-07** at limit **
  20  Prefactor     .10000E-03    14.751        .16936E-06** at limit **
  21  Prefactor     62.279        45.611        .15514E-06   -.10402E-03
  22  Prefactor     .10000E-03    24.631       -.15146E-06** at limit **
  23  norm          .10003E-03    2.8260       -.66293E-06** at limit **
  24  Prefactor     47.336        24.116        .17751E-06   -.69259E-04
  25  norm          .10000E-03    .63067       -.11215E-06** at limit **
  26  norm          .10843E-03    2.5358        .77147E-06** at limit **
  27  Prefactor     .86922        3.3373        .98466E-06   -.45484E-03
  28  Prefactor     .10000E-03    52.236        .13254E-05** at limit **
  29  Prefactor     10.632        8.4946        .13402E-06   -.24855E-04
  30  Prefactor     .10000E-03    3.3375       -.90806E-07** at limit **
  31  Prefactor     .10000E-03    84.521        .42819E-06** at limit **
  32  Normalizat    1.1114        .23146       -.42569E-06    .88624E-04
  33  Prefactor     .94028        .23552       -.24069E-06    .42205E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 20.3513
  Prefactor  = 0.0001
  Prefactor  = 0.000101316
  Prefactor  = 1.01833
  Prefactor  = 9.9473
  Prefactor  = 0.0001
  Prefactor  = 2.45041
  Prefactor  = 0.0001
  Prefactor  = 0.860431
  Prefactor  = 32.9715
  Prefactor  = 0.0001
  Prefactor  = 48.867
  Prefactor  = 4.20441
  Prefactor  = 3.97422
  norm       = 0.0001
  norm       = 0.0001
  norm       = 9.93179
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 62.2793
  Prefactor  = 0.0001
  norm       = 0.000100028
  Prefactor  = 47.3358
  norm       = 0.0001
  norm       = 0.000108428
  Prefactor  = 0.869224
  Prefactor  = 0.000100001
  Prefactor  = 10.6319
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.11138
  Prefactor  = 0.940285
 **********
 **   18 **HESSE 
 **********

 FCN=   4803.834     FROM HESSE     STATUS=OK           713 CALLS     5408 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    64.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     20.351        27.811        .88805E-04   -1.4805    
   3  Prefactor     .10000E-03    10.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10132E-03    49.297        .11144       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.0183        13.600        .39315E-03   -1.5506    
   6  Prefactor     9.9473        5.8349        .12137E-03   -1.5077    
   7  Prefactor     .10000E-03    17.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.4504        7.8970        .26145E-03   -1.5395    
   9  Prefactor     .10000E-03    11.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .86043        125.00        .54839E-02   -1.5522    
  11  Prefactor     32.972        18.466        .69781E-04   -1.4559    
  12  Prefactor     .10000E-03    14.435        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     48.867        50.580        .57375E-04   -1.4309    
  14  Prefactor     4.2044        348.00        .19768E-03   -1.5298    
  15  Prefactor     3.9742        27.492        .20170E-03   -1.5309    
  16  norm          .10000E-03    6.6473        .17446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.2034        .10047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          9.9318        6.2440        .12713E-03   -1.5078    
  19  norm          .10000E-03    3.0983        .11906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    14.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     62.279        43.611        .50824E-04   -1.4128    
  22  Prefactor     .10000E-03    24.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10003E-03    13.031        .20773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     47.336        23.726        .58271E-04   -1.4331    
  25  norm          .10000E-03    .97775        .10189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10843E-03    4.4762        .37435E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .86922        3.2992        .23214E-03   -1.5522    
  28  Prefactor     .10000E-03    52.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     10.632        8.5299        .12289E-03   -1.5056    
  30  Prefactor     .10000E-03    3.3743        .12323E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    84.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.1114        .28964        .24147E-03   -.89387    
  33  Prefactor     .94028        .29190        .28267E-03   -.94747    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30807e-08
Minuit parameter uncertainties:
  1  0.000818538
  2  27.8284
  3  4.09462e-06
  4  0.0161249
  5  7.44451
  6  5.83519
  7  1.97083e-05
  8  7.9004
  9  2.48731e-05
  10  20.7844
  11  18.4693
  12  1.82141e-05
  13  50.6245
  14  76.9688
  15  20.9189
  16  5.25497e-08
  17  6.23265e-08
  18  6.24439
  19  7.67377e-07
  20  4.33016e-06
  21  43.6333
  22  2.57141e-05
  23  0.00120384
  24  23.7308
  25  7.01064e-07
  26  0.0122854
  27  3.29994
  28  0.000336759
  29  8.53087
  30  8.42564e-06
  31  0.000140055
  32  0.290058
  33  0.292386
Done.

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

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  6.228e+01  4.363e+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:  9.403e-01  2.924e-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.111e+00  2.901e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.13
Ra Dec: 351.737 -41.509
Photon Index (Fixed Index): 2.78 +/- 0.00
Photon Flux (Fixed Index): 8.16e-08 +/- 5.71e-08
Energy Flux (Fixed Index): 1.85e-05 +/- 1.30e-05

TS (Fixed Index): 3.13
Ra Dec: 351.737 -41.509
Photon Flux Upper Limit: 1.92e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.52e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/900910/likelihoodResults_504230401_504489601_4FGL_J2326.9-4130_daily_bin1022.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) = 4803.79565708
delta logL = 0.0384815451871

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4803.79282469
delta logL = 0.0413139308957

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    47.711       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0327       1.0000          .0000       10.000    
     3 'Normalizat'    1.0948       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95550       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=   4803.793     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      285 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     47.693        75.680        .58052E-04   -.17571E-03
   2  Index         3.0337        1.1533        .55596E-02   -.58995E-04
   3  Normalizat    1.0945        .27501        .24307E-03    .24429E-03
   4  Prefactor     .95581        .29495        .28072E-03    .25271E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 47.6933
  Index      = 3.03373
  Normalizat = 1.09452
  Prefactor  = 0.955809
 **********
 **   18 **HESSE 
 **********

 FCN=   4803.793     FROM HESSE     STATUS=OK            25 CALLS      310 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     47.693        62.979        .11610E-04   -1.4326    
   2  Index         3.0337        .96127        .22238E-03   -.40417    
   3  Normalizat    1.0945        .27360        .48614E-04   -.89928    
   4  Prefactor     .95581        .29337        .11229E-04   -.94217    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.11882e-10
Minuit parameter uncertainties:
  1  63.067
  2  0.96842
  3  0.273958
  4  0.293861
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/900910': 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) = 4803.79282282
delta logL = 0.0413158088741

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  4.769e+01  6.307e+01  1.000e-04  1.000e+04 ( 1.000e-13)
436        Index:  3.034e+00  9.684e-01  0.000e+00  1.000e+01 (-1.000e+00)
437        Scale:  7.113e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  9.558e-01  2.939e-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.095e+00  2.740e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.24
Ra Dec: 351.737 -41.509
Photon Index (Free Index): 3.03 +/- 0.97
Photon Flux (Free Index): 9.03e-08 +/- 6.48e-08
Energy Flux (Free Index): 1.77e-05 +/- 1.22e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/900910/cmap_HighResolution_504230401_504489601_4FGL_J2326.9-4130_daily_bin1022.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.52e-02', comment='SUCCESS', photon_flux='8.16e-08', energy_flux2='1.77e-05', photon_flux_error='5.71e-08', dlogl='4.13e-02', energy_flux='1.85e-05', photon_flux2='9.03e-08', job_status='DONE', time_completed='2021-09-29 19:35:06.729677', photon_index_error2='0.97', photon_index2='3.03', ts='3.13', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.92e-07', energy_flux_error2='1.22e-05', EG='1.11', time_epoch_completed='1632969306.73', return_code='0', job_id='900910', GAL2='0.96', EG2='1.09', return_code2='0', energy_flux_error='1.30e-05', photon_flux_error2='6.48e-08', ts2='3.24', photon_index='2.78' WHERE bin_id='1022' AND source_name='4FGL J2326.9-4130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:35:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 900910: <4FGL_J2326.9-4130_daily_bin1022> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.9-4130_daily_bin1022 351.737 -41.5089 504230401 504489601 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 :                                   808.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             338.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   875 sec.
    Turnaround time :                            879 sec.

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

