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


Performing analysis on: 4FGL_J2326.9-4130_daily_bin1288
RA = 351.737, Dec = -41.5089
tmin = 573177601, tmax = 573436801
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='902561', job_status='RUN', time_executed='2021-09-29 19:27:11.203768', time_epoch_executed='1632968831.2' WHERE source_name='4FGL J2326.9-4130' and cadence='daily' and bin_id='1288'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/902561

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/902561/ft1_4FGL_J2326.9-4130_daily_bin1288.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/902561/ft2_4FGL_J2326.9-4130_daily_bin1288.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/902561/ft1_4FGL_J2326.9-4130_daily_bin1288.fits outfile=/scratch/kocevski/902561/ft1_filteredMKT_4FGL_J2326.9-4130_daily_bin1288.fits ra=351.737 dec=-41.5089 rad=12.0 tmin=573177601.0 tmax=573436801.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 5.50
user 5.23
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/902561/ft2_4FGL_J2326.9-4130_daily_bin1288.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/902561/ft1_filteredMKT_4FGL_J2326.9-4130_daily_bin1288.fits evtable="EVENTS" outfile="/scratch/kocevski/902561/ft1_filtered_4FGL_J2326.9-4130_daily_bin1288.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 1.65
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/902561/ft1_filtered_4FGL_J2326.9-4130_daily_bin1288.fits" evtable="EVENTS" scfile=/scratch/kocevski/902561/ft2_4FGL_J2326.9-4130_daily_bin1288.fits sctable="SC_DATA" outfile=/scratch/kocevski/902561/ltcube_573177601_573436801_4FGL_J2326.9-4130_daily_bin1288.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/902561/ft2_4FGL_J2326.9-4130_daily_bin1288.fits
.....................!
real 12.03
user 11.65
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/902561/ft1_filtered_4FGL_J2326.9-4130_daily_bin1288.fits evtable="EVENTS" scfile=/scratch/kocevski/902561/ft2_4FGL_J2326.9-4130_daily_bin1288.fits sctable="SC_DATA" expcube=/scratch/kocevski/902561/ltcube_573177601_573436801_4FGL_J2326.9-4130_daily_bin1288.fits outfile=/scratch/kocevski/902561/expmap_573177601_573436801_4FGL_J2326.9-4130_daily_bin1288.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/902561/ltcube_573177601_573436801_4FGL_J2326.9-4130_daily_bin1288.fits
.....................!
real 192.72
user 186.81
sys 5.34

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/902561/ft1_filtered_4FGL_J2326.9-4130_daily_bin1288.fits scfile=/scratch/kocevski/902561/ft2_4FGL_J2326.9-4130_daily_bin1288.fits outfile=/scratch/kocevski/902561/cmap_573177601_573436801_4FGL_J2326.9-4130_daily_bin1288.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/902561/ft1_filtered_4FGL_J2326.9-4130_daily_bin1288.fits scfile=/scratch/kocevski/902561/ft2_4FGL_J2326.9-4130_daily_bin1288.fits outfile=/scratch/kocevski/902561/cmap_HighResolution_573177601_573436801_4FGL_J2326.9-4130_daily_bin1288.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/902561/ft1_filtered_4FGL_J2326.9-4130_daily_bin1288.fits evtable="EVENTS" scfile=/scratch/kocevski/902561/ft2_4FGL_J2326.9-4130_daily_bin1288.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/902561/Model_4FGL_J2326.9-4130_daily_bin1288.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/902561/ft1_filtered_4FGL_J2326.9-4130_daily_bin1288.fits.....................!
real 34.09
user 32.80
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/902561/ft1_filtered_4FGL_J2326.9-4130_daily_bin1288.fits', '/scratch/kocevski/902561/ft2_4FGL_J2326.9-4130_daily_bin1288.fits', expMap='/scratch/kocevski/902561/expmap_573177601_573436801_4FGL_J2326.9-4130_daily_bin1288.fits', expCube='/scratch/kocevski/902561/ltcube_573177601_573436801_4FGL_J2326.9-4130_daily_bin1288.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/902561/Model_4FGL_J2326.9-4130_daily_bin1288.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/902561/ft1_filtered_4FGL_J2326.9-4130_daily_bin1288.fits
Spacecraft file(s): /scratch/kocevski/902561/ft2_4FGL_J2326.9-4130_daily_bin1288.fits
Exposure map: /scratch/kocevski/902561/expmap_573177601_573436801_4FGL_J2326.9-4130_daily_bin1288.fits
Exposure cube: /scratch/kocevski/902561/ltcube_573177601_573436801_4FGL_J2326.9-4130_daily_bin1288.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/902561/Model_4FGL_J2326.9-4130_daily_bin1288.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 3818.68418222

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.835       1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.677       1.0000         .10000E-03   10000.    
     7 'Prefactor '    32.661       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.357       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    44.992       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    80.202       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.6194       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.7450       1.0000         .10000E-03   10000.    
    21 'Prefactor '    98.095       1.0000         .10000E-03   10000.    
    22 'Prefactor '    58.710       1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.2059       1.0000         .10000E-03   10000.    
    26 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .33624       1.0000         .10000E-03   10000.    
    28 'Prefactor '    9.8955       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .12447E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .24931E-02   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.5432       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .47438       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=   3818.595     FROM MIGRAD    STATUS=CONVERGED   1587 CALLS     6040 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.200        .18142E-02** at limit **
   2  Prefactor     .10000E-03    12.396        .18142E-02** at limit **
   3  Prefactor     .10000E-03    46.416        .18142E-02** at limit **
   4  Prefactor     .10000E-03    141.85        .18142E-02** at limit **
   5  Prefactor     14.834        11.931        .10399E-03   -.29518E-04
   6  Prefactor     16.677        7.0691        .98076E-04   -.84909E-04
   7  Prefactor     32.661        42.255        .70115E-04   -.37293E-05
   8  Prefactor     13.358        10.783        .10960E-03   -.42633E-04
   9  Prefactor     .10000E-03    24.955        .18142E-02** at limit **
  10  Prefactor     .10000E-03    15.830        .18142E-02** at limit **
  11  Prefactor     44.997        29.968        .59772E-04   -.70697E-04
  12  Prefactor     .10000E-03    2.1164        .87784E-03** at limit **
  13  Prefactor     80.186        63.834        .22423E-03   -.49155E-04
  14  Prefactor     .10000E-03    113.60        .18142E-02** at limit **
  15  Prefactor     .10000E-03    11.974        .18142E-02** at limit **
  16  norm          6.6200        10.525        .15597E-03   -.12063E-04
  17  norm          .10000E-03    2.6677        .98560E-03** at limit **
  18  norm          .10000E-03    3.6035        .11436E-02** at limit **
  19  norm          .10000E-03    12.683        .18142E-02** at limit **
  20  Prefactor     5.7477        8.9991        .83787E-03   -.13297E-03
  21  Prefactor     98.097        50.150        .40587E-04   -.17238E-03
  22  Prefactor     58.729        72.676        .52360E-04   -.15785E-04
  23  norm          .10000E-03    3.4123        .11107E-02** at limit **
  24  Prefactor     .10000E-03    24.567        .18142E-02** at limit **
  25  norm          1.2058        1.3981        .73036E-04   -.42355E-03
  26  norm          .10000E-03    3.3564        .11007E-02** at limit **
  27  Prefactor     .37397        45.163        .20815E-02   -.63093E-04
  28  Prefactor     9.7857        79.341        .12738E-03   -.22502E-03
  29  Prefactor     .10000E-03    18.671        .36285E-03** at limit **
  30  Prefactor     .10001E-03    8.5135        .24011E-02** at limit **
  31  Prefactor     .10031E-03    110.72        .19366    ** at limit **
  32  Normalizat    1.5432        .32497        .21909E-03   -.14528E-03
  33  Prefactor     .47435        .31315        .38972E-03   -.23846E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 14.8338
  Prefactor  = 16.677
  Prefactor  = 32.6605
  Prefactor  = 13.3582
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.9968
  Prefactor  = 0.0001
  Prefactor  = 80.1858
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 6.62001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 5.74769
  Prefactor  = 98.0975
  Prefactor  = 58.7286
  norm       = 0.0001
  Prefactor  = 0.000100004
  norm       = 1.20583
  norm       = 0.0001
  Prefactor  = 0.373968
  Prefactor  = 9.78565
  Prefactor  = 0.0001
  Prefactor  = 0.000100014
  Prefactor  = 0.000100309
  Normalizat = 1.5432
  Prefactor  = 0.474354
 **********
 **   18 **HESSE 
 **********

 FCN=   3818.595     FROM HESSE     STATUS=OK           673 CALLS     6713 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.200        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.396        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    46.422        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    141.88        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.834        11.928        .41596E-05   -1.4937    
   6  Prefactor     16.677        7.0688        .39231E-05   -1.4891    
   7  Prefactor     32.661        42.264        .28046E-05   -1.4564    
   8  Prefactor     13.358        10.782        .43839E-05   -1.4977    
   9  Prefactor     .10000E-03    24.957        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    15.831        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     44.997        29.966        .11954E-04   -1.4365    
  12  Prefactor     .10000E-03    2.1164        .17557E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     80.186        63.834        .89692E-05   -1.3915    
  14  Prefactor     .10000E-03    113.62        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.975        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.6200        10.525        .62389E-05   -1.5193    
  17  norm          .10000E-03    2.6677        .19712E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.6037        .22873E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    12.690        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.7477        8.9897        .33515E-04   -1.5228    
  21  Prefactor     98.097        50.142        .81173E-05   -1.3724    
  22  Prefactor     58.729        72.667        .10472E-04   -1.4174    
  23  norm          .10000E-03    3.4125        .22214E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    24.570        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.2058        1.3970        .29214E-05   -1.5488    
  26  norm          .10000E-03    3.3568        .22013E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .37397        38.050        .83258E-04   -1.5586    
  28  Prefactor     9.7857        68.091        .25477E-04   -1.5082    
  29  Prefactor     .10000E-03    18.672        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10001E-03    8.5517        .48022E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10031E-03    114.52        .18893       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.5432        .32488        .43818E-04   -.76572    
  33  Prefactor     .47435        .31332        .15589E-04   -1.1317    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.64346e-09
Minuit parameter uncertainties:
  1  1.72531e-05
  2  5.70031e-05
  3  5.01985e-06
  4  0.000576724
  5  11.93
  6  7.06914
  7  42.3027
  8  10.784
  9  8.33358e-06
  10  4.04465e-05
  11  29.9763
  12  2.50139e-07
  13  63.8884
  14  0.00110704
  15  9.79556e-05
  16  10.5277
  17  2.109e-05
  18  3.92441e-06
  19  0.000109729
  20  8.99183
  21  50.1638
  22  72.777
  23  7.43976e-06
  24  0.00065639
  25  1.39707
  26  3.80637e-06
  27  7.54832
  28  51.71
  29  8.05892e-05
  30  0.000689748
  31  0.0119147
  32  0.325324
  33  0.314461
Done.

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

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  9.810e+01  5.016e+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:  4.744e-01  3.145e-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.543e+00  3.253e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.78
Ra Dec: 351.737 -41.509
Photon Index (Fixed Index): 2.78 +/- 0.00
Photon Flux (Fixed Index): 1.28e-07 +/- 6.56e-08
Energy Flux (Fixed Index): 2.92e-05 +/- 1.49e-05

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) = 3818.05970997
delta logL = 0.535210656954

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3817.91150849
delta logL = 0.683412137595

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    134.92       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1638       1.0000          .0000       10.000    
     3 'Normalizat'    1.5992       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .43616       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=   3817.912     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      250 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     134.94        76.311        .17336E-03   -.85272E-04
   2  Index         2.1636        .51165        .63339E-02   -.64254E-04
   3  Normalizat    1.5985        .29706        .21611E-03   -.58350E-03
   4  Prefactor     .43648        .30510        .40543E-03   -.30886E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 134.937
  Index      = 2.16363
  Normalizat = 1.59855
  Prefactor  = 0.436485
 **********
 **   18 **HESSE 
 **********

 FCN=   3817.912     FROM HESSE     STATUS=OK            23 CALLS      273 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     134.94        76.262        .34672E-04   -1.3379    
   2  Index         2.1636        .51105        .25336E-03   -.60319    
   3  Normalizat    1.5985        .29716        .43222E-04   -.75046    
   4  Prefactor     .43648        .30518        .16217E-04   -1.1499    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.81433e-10
Minuit parameter uncertainties:
  1  76.3172
  2  0.512375
  3  0.297487
  4  0.306323
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/902561': 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) = 3817.91150343
delta logL = 0.683417202349

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  1.349e+02  7.632e+01  1.000e-04  1.000e+04 ( 1.000e-13)
436        Index:  2.164e+00  5.124e-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:  4.365e-01  3.063e-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.599e+00  2.975e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.03
Ra Dec: 351.737 -41.509
Photon Index (Free Index): 2.16 +/- 0.51
Photon Flux (Free Index): 8.09e-08 +/- 6.43e-08
Energy Flux (Free Index): 3.89e-05 +/- 2.80e-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/902561/cmap_HighResolution_573177601_573436801_4FGL_J2326.9-4130_daily_bin1288.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.28e-07', energy_flux2='3.89e-05', photon_flux_error='6.56e-08', dlogl='6.83e-01', energy_flux='2.92e-05', photon_flux2='8.09e-08', job_status='DONE', time_completed='2021-09-29 19:40:38.478835', photon_index_error2='0.51', photon_index2='2.16', ts='8.78', fit_tolerance='1e-08', GAL='0.47', photon_index_error='0.00', energy_flux_error2='2.80e-05', EG='1.54', time_epoch_completed='1632969638.48', return_code='0', job_id='902561', GAL2='0.44', EG2='1.60', return_code2='0', energy_flux_error='1.49e-05', photon_flux_error2='6.43e-08', ts2='10.03', photon_index='2.78' WHERE bin_id='1288' AND source_name='4FGL J2326.9-4130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:40:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 902561: <4FGL_J2326.9-4130_daily_bin1288> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.9-4130_daily_bin1288 351.737 -41.5089 573177601 573436801 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 :                                   716.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             272.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            917 sec.

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

