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


Performing analysis on: 4FGL_J2326.9-4130_daily_bin1395
RA = 351.737, Dec = -41.5089
tmin = 600912001, tmax = 601171201
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='902734', job_status='RUN', time_executed='2021-09-29 19:25:49.901082', time_epoch_executed='1632968749.9' WHERE source_name='4FGL J2326.9-4130' and cadence='daily' and bin_id='1395'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/902734

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/902734/ft1_4FGL_J2326.9-4130_daily_bin1395.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/902734/ft2_4FGL_J2326.9-4130_daily_bin1395.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/902734/ft1_4FGL_J2326.9-4130_daily_bin1395.fits outfile=/scratch/kocevski/902734/ft1_filteredMKT_4FGL_J2326.9-4130_daily_bin1395.fits ra=351.737 dec=-41.5089 rad=12.0 tmin=600912001.0 tmax=601171201.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.59
user 3.37
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/902734/ft1_filtered_4FGL_J2326.9-4130_daily_bin1395.fits" evtable="EVENTS" scfile=/scratch/kocevski/902734/ft2_4FGL_J2326.9-4130_daily_bin1395.fits sctable="SC_DATA" outfile=/scratch/kocevski/902734/ltcube_600912001_601171201_4FGL_J2326.9-4130_daily_bin1395.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/902734/ft2_4FGL_J2326.9-4130_daily_bin1395.fits
.....................!
real 12.11
user 11.75
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/902734/ft1_filtered_4FGL_J2326.9-4130_daily_bin1395.fits evtable="EVENTS" scfile=/scratch/kocevski/902734/ft2_4FGL_J2326.9-4130_daily_bin1395.fits sctable="SC_DATA" expcube=/scratch/kocevski/902734/ltcube_600912001_601171201_4FGL_J2326.9-4130_daily_bin1395.fits outfile=/scratch/kocevski/902734/expmap_600912001_601171201_4FGL_J2326.9-4130_daily_bin1395.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/902734/ltcube_600912001_601171201_4FGL_J2326.9-4130_daily_bin1395.fits
.....................!
real 190.59
user 185.22
sys 4.98

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/902734/ft1_filtered_4FGL_J2326.9-4130_daily_bin1395.fits scfile=/scratch/kocevski/902734/ft2_4FGL_J2326.9-4130_daily_bin1395.fits outfile=/scratch/kocevski/902734/cmap_600912001_601171201_4FGL_J2326.9-4130_daily_bin1395.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/902734/ft1_filtered_4FGL_J2326.9-4130_daily_bin1395.fits scfile=/scratch/kocevski/902734/ft2_4FGL_J2326.9-4130_daily_bin1395.fits outfile=/scratch/kocevski/902734/cmap_HighResolution_600912001_601171201_4FGL_J2326.9-4130_daily_bin1395.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.36
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.464       1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.874       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.638       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .43758E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .66268       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10325E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.8296       1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.699       1.0000         .10000E-03   10000.    
    10 'Prefactor '    37.685       1.0000         .10000E-03   10000.    
    11 'Prefactor '    53.046       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.8498       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.3841       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10307E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.6512       1.0000         .10000E-03   10000.    
    17 'norm      '    3.1703       1.0000         .10000E-03   10000.    
    18 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .90680E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    11.212       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .32787E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .12610E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10396E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    62.506       1.0000         .10000E-03   10000.    
    29 'Prefactor '    4.3690       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .11273E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    4.7902       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.2983       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .52277       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=   4031.972     FROM MIGRAD    STATUS=CONVERGED    917 CALLS     4795 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.464        95.439        .31772E-06    .11962E-05
   2  Prefactor     19.866        27.789       -.79547E-06   -.41709E-04
   3  Prefactor     .10000E-03    13.247        .25484E-06** at limit **
   4  Prefactor     19.656        40.650        .45736E-05    .10633E-03
   5  Prefactor     .10007E-03    95.165        .12027E-04** at limit **
   6  Prefactor     .67009        4.9535       -.43260E-06    .83910E-03
   7  Prefactor     .10000E-03    162.77       -.79410E-05** at limit **
   8  Prefactor     3.8287        6.2032       -.13775E-05   -.28536E-03
   9  Prefactor     26.697        27.165        .17161E-06    .17322E-04
  10  Prefactor     37.681        30.073        .17271E-06    .11000E-03
  11  Prefactor     53.049        27.336        .22730E-06    .13113E-04
  12  Prefactor     9.8508        9.5582        .83554E-07    .19015E-03
  13  Prefactor     .10000E-03    18.780       -.16597E-05** at limit **
  14  Prefactor     9.3665        90.601       -.51617E-05   -.14619E-04
  15  Prefactor     .10000E-03    20.048        .23037E-05** at limit **
  16  norm          5.6511        14.380       -.22186E-06   -.24220E-04
  17  norm          3.1733        5.9911       -.18278E-05   -.42414E-03
  18  norm          .10000E-03    2.0468        .12693E-07** at limit **
  19  norm          .10004E-03    6.4010       -.14289E-06** at limit **
  20  Prefactor     .10000E-03    4.7106        .73348E-07** at limit **
  21  Prefactor     .10000E-03    52.337       -.14663E-05** at limit **
  22  Prefactor     .10000E-03    52.716       -.12510E-05** at limit **
  23  norm          11.215        5.4240        .19687E-06    .18549E-03
  24  Prefactor     .10000E-03    11.097        .26631E-05** at limit **
  25  norm          .10000E-03    .81876        .50944E-06** at limit **
  26  norm          .10000E-03    1.7374        .43775E-07** at limit **
  27  Prefactor     .10000E-03    3.7485        .14264E-06** at limit **
  28  Prefactor     62.549        33.744       -.21470E-05    .91320E-04
  29  Prefactor     4.3699        6.6540        .20696E-06    .61207E-04
  30  Prefactor     .10000E-03    5.7031        .52273E-06** at limit **
  31  Prefactor     4.7692        198.32       -.93071E-05   -.11654E-04
  32  Normalizat    1.2977        .22743        .41598E-06    .96511E-04
  33  Prefactor     .52356        .22828       -.16399E-05   -.55119E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.4639
  Prefactor  = 19.8662
  Prefactor  = 0.0001
  Prefactor  = 19.6563
  Prefactor  = 0.000100068
  Prefactor  = 0.670091
  Prefactor  = 0.0001
  Prefactor  = 3.82869
  Prefactor  = 26.6966
  Prefactor  = 37.6812
  Prefactor  = 53.0494
  Prefactor  = 9.85081
  Prefactor  = 0.0001
  Prefactor  = 9.36647
  Prefactor  = 0.0001
  norm       = 5.6511
  norm       = 3.17335
  norm       = 0.0001
  norm       = 0.000100037
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.2155
  Prefactor  = 0.000100004
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 62.549
  Prefactor  = 4.36988
  Prefactor  = 0.0001
  Prefactor  = 4.76923
  Normalizat = 1.2977
  Prefactor  = 0.523563
 **********
 **   18 **HESSE 
 **********

 FCN=   4031.972     FROM HESSE     STATUS=OK           703 CALLS     5498 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.464        95.465        .11832E-03   -1.5031    
   2  Prefactor     19.866        27.732        .89844E-04   -1.4816    
   3  Prefactor     .10000E-03    13.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     19.656        34.467        .90383E-04   -1.4821    
   5  Prefactor     .10007E-03    99.448        .38343E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .67009        11.973        .23156E-02   -1.5544    
   7  Prefactor     .10000E-03    162.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.8287        6.2338        .97604E-03   -1.5317    
   9  Prefactor     26.697        27.156        .77530E-04   -1.4674    
  10  Prefactor     37.681        30.030        .65288E-04   -1.4479    
  11  Prefactor     53.049        27.350        .55069E-04   -1.4250    
  12  Prefactor     9.8508        9.5346        .12768E-03   -1.5080    
  13  Prefactor     .10000E-03    18.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.3665        90.433        .13082E-03   -1.5096    
  15  Prefactor     .10000E-03    20.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.6511        14.333        .16898E-03   -1.5232    
  17  norm          3.1733        6.0285        .10442E-02   -1.5352    
  18  norm          .10000E-03    2.0470        .88700E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10004E-03    22.976        .28746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.7361        .13439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    52.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    52.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          11.215        5.4240        .98940E-04   -1.5038    
  24  Prefactor     .10000E-03    94.393        .36596E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    9.7284        .10341E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    1.7412        .81681E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    6.2636        .22334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     62.549        34.307        .50755E-04   -1.4125    
  29  Prefactor     4.3699        6.6188        .18716E-03   -1.5290    
  30  Prefactor     .10000E-03    5.8396        .29522E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     4.7692        197.70        .18382E-03   -1.5271    
  32  Normalizat    1.2977        .26505        .20995E-03   -.83635    
  33  Prefactor     .52356        .26402        .33410E-03   -1.1091    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.75353e-09
Minuit parameter uncertainties:
  1  66.3073
  2  27.7498
  3  1.66172e-05
  4  34.5014
  5  0.00522672
  6  5.66587
  7  9.25402e-05
  8  6.23485
  9  27.1688
  10  30.0419
  11  27.3561
  12  9.53608
  13  5.89406e-05
  14  58.3231
  15  9.03742e-05
  16  14.3413
  17  6.02965
  18  3.94901e-06
  19  0.00185103
  20  1.63841e-06
  21  0.00030078
  22  1.24e-05
  23  5.42426
  24  0.0012689
  25  0.000234688
  26  3.80149e-06
  27  8.384e-05
  28  34.3175
  29  6.61996
  30  9.16359e-05
  31  61.6312
  32  0.265327
  33  0.264644
Done.

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

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  1.000e-04  3.008e-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:  5.236e-01  2.646e-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.298e+00  2.653e-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.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.87e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/902734/likelihoodResults_600912001_601171201_4FGL_J2326.9-4130_daily_bin1395.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) = 4031.9724344
delta logL = -9.04625239855e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4031.9723445
delta logL = -5.61623437534e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10561E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1884       1.0000          .0000       10.000    
     3 'Normalizat'    1.2977       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .52356       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=   4031.972     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      284 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10502E-03    19.005        .18142E-01** at limit **
   2  Index         3.0769        8.3839        .50000        .69955E-05
   3  Normalizat    1.2977        .35584E-02    .20995E-03    .61519E-04
   4  Prefactor     .52356        .37596E-02    .33410E-03    .10157E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105024
  Index      = 3.07694
  Normalizat = 1.29769
  Prefactor  = 0.523564
 **********
 **   18 **HESSE 
 **********

 FCN=   4031.972     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      313 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10502E-03    816.90        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.0769        5.6874        .50000       -.39479    
   3  Normalizat    1.2977        .23698E-01    .41990E-04   -.83635    
   4  Prefactor     .52356        .25037E-01    .13364E-04   -1.1091    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.91567e-09
Minuit parameter uncertainties:
  1  0.129936
  2  1082.33
  3  0.0236977
  4  0.0250376
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/902734': 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) = 4031.9723443
delta logL = -3.61988895747e-07

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  1.050e-04  1.299e-01  1.000e-04  1.000e+04 ( 1.000e-13)
436        Index:  3.077e+00  1.082e+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:  5.236e-01  2.504e-02  0.000e+00  1.000e+01 ( 1.000e+00)
580        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
581        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
578   Normalization:  1.298e+00  2.370e-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/902734/cmap_HighResolution_600912001_601171201_4FGL_J2326.9-4130_daily_bin1395.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.87e-03', job_status='DONE', photon_flux_upper_limit='1.12e-07', time_completed='2021-09-29 19:38:08.165247', job_id='902734', GAL2='0.52', fit_tolerance='1e-08', EG2='1.30', EG='1.30', time_epoch_completed='1632969488.17', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.52', dlogl='-3.62e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.78' WHERE bin_id='1395' AND source_name='4FGL J2326.9-4130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:38:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 902734: <4FGL_J2326.9-4130_daily_bin1395> in cluster <slac> Done

Job <4FGL_J2326.9-4130_daily_bin1395> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 19:25:38 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 19:25:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 19:25:41 2021
Terminated at Wed Sep 29 19:38:08 2021
Results reported at Wed Sep 29 19:38:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.9-4130_daily_bin1395 351.737 -41.5089 600912001 601171201 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 :                                   733.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             318.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   747 sec.
    Turnaround time :                            750 sec.

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

