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


Performing analysis on: 4FGL_J2326.9-4130_daily_bin1228
RA = 351.737, Dec = -41.5089
tmin = 557625601, tmax = 557884801
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='902468', job_status='RUN', time_executed='2021-09-29 19:28:45.191145', time_epoch_executed='1632968925.19' WHERE source_name='4FGL J2326.9-4130' and cadence='daily' and bin_id='1228'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/902468

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/902468/ft1_4FGL_J2326.9-4130_daily_bin1228.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/902468/ft2_4FGL_J2326.9-4130_daily_bin1228.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/902468/ft1_4FGL_J2326.9-4130_daily_bin1228.fits outfile=/scratch/kocevski/902468/ft1_filteredMKT_4FGL_J2326.9-4130_daily_bin1228.fits ra=351.737 dec=-41.5089 rad=12.0 tmin=557625601.0 tmax=557884801.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.43
user 3.23
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/902468/ft1_filtered_4FGL_J2326.9-4130_daily_bin1228.fits" evtable="EVENTS" scfile=/scratch/kocevski/902468/ft2_4FGL_J2326.9-4130_daily_bin1228.fits sctable="SC_DATA" outfile=/scratch/kocevski/902468/ltcube_557625601_557884801_4FGL_J2326.9-4130_daily_bin1228.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/902468/ft2_4FGL_J2326.9-4130_daily_bin1228.fits
.....................!
real 13.06
user 12.67
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/902468/ft1_filtered_4FGL_J2326.9-4130_daily_bin1228.fits evtable="EVENTS" scfile=/scratch/kocevski/902468/ft2_4FGL_J2326.9-4130_daily_bin1228.fits sctable="SC_DATA" expcube=/scratch/kocevski/902468/ltcube_557625601_557884801_4FGL_J2326.9-4130_daily_bin1228.fits outfile=/scratch/kocevski/902468/expmap_557625601_557884801_4FGL_J2326.9-4130_daily_bin1228.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/902468/ltcube_557625601_557884801_4FGL_J2326.9-4130_daily_bin1228.fits
.....................!
real 191.02
user 185.60
sys 5.04

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/902468/ft1_filtered_4FGL_J2326.9-4130_daily_bin1228.fits scfile=/scratch/kocevski/902468/ft2_4FGL_J2326.9-4130_daily_bin1228.fits outfile=/scratch/kocevski/902468/cmap_557625601_557884801_4FGL_J2326.9-4130_daily_bin1228.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/902468/ft1_filtered_4FGL_J2326.9-4130_daily_bin1228.fits scfile=/scratch/kocevski/902468/ft2_4FGL_J2326.9-4130_daily_bin1228.fits outfile=/scratch/kocevski/902468/cmap_HighResolution_557625601_557884801_4FGL_J2326.9-4130_daily_bin1228.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    265.76       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    97.624       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .15021E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    55.611       1.0000         .10000E-03   10000.    
     6 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     7 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.9489       1.0000         .10000E-03   10000.    
     9 'Prefactor '    45.152       1.0000         .10000E-03   10000.    
    10 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.7685       1.0000         .10000E-03   10000.    
    12 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .31446E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9999.5       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.4096       1.0000         .10000E-03   10000.    
    16 'norm      '    .10475E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10312E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .49836E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.2832       1.0000         .10000E-03   10000.    
    23 'norm      '    .10120E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .17410E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    7.5295       1.0000         .10000E-03   10000.    
    26 'norm      '    .13967E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    63.719       1.0000         .10000E-03   10000.    
    29 'Prefactor '    50.990       1.0000         .10000E-03   10000.    
    30 'Prefactor '    9.7413       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .11905E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.4751       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=   437.6288     FROM MIGRAD    STATUS=CONVERGED   1006 CALLS     5604 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     265.78        342.61        .10719E-05    .45815E-05
   2  Prefactor     .10000E-03    34.811        .40116E-06** at limit **
   3  Prefactor     97.622        116.66       -.81814E-06   -.26527E-05
   4  Prefactor     .10000E-03    86.182        .31140E-05** at limit **
   5  Prefactor     55.569        34.914       -.39197E-06    .11778E-03
   6  Prefactor    10000.0        1988.6       -.20437E-04** at limit **
   7  Prefactor    10000.0        6811.6        .18991E-04** at limit **
   8  Prefactor     .12015E-03    7321.3       -.46280E-03** at limit **
   9  Prefactor    10000.0        6071.2        .12575E-02** at limit **
  10  Prefactor    10000.0        9577.3       -.12824E-03** at limit **
  11  Prefactor     24.294        6111.2        .42148E-04   -.15031E-04
  12  Prefactor    10000.0        6415.3       -.60139E-06** at limit **
  13  Prefactor     .10001E-03    395.75       -.12612E-04** at limit **
  14  Prefactor    10000.0        7800.6        .15701E-03** at limit **
  15  Prefactor     6.7786        277.57       -.68807E-05   -.52424E-05
  16  norm          .10000E-03    98.099       -.24841E-06** at limit **
  17  norm          .10000E-03    21.749        .16314E-06** at limit **
  18  norm          .10000E-03    35.632       -.98662E-07** at limit **
  19  norm          .10000E-03    182.72        .34050E-06** at limit **
  20  Prefactor     .10000E-03    19.314        .19339E-06** at limit **
  21  Prefactor     .10001E-03    306.88       -.12151E-04** at limit **
  22  Prefactor     .10083E-03    9066.7       -.25290E-03** at limit **
  23  norm          .10000E-03    31.539       -.45185E-06** at limit **
  24  Prefactor     .10000E-03    32.506        .17287E-06** at limit **
  25  norm          7.4966        8.1432        .15253E-06   -.16841E-04
  26  norm          .10000E-03    27.096       -.23363E-06** at limit **
  27  Prefactor     .10000E-03    15.444        .82030E-06** at limit **
  28  Prefactor     63.772        89.061        .24233E-05   -.28669E-04
  29  Prefactor     50.966        85.625       -.53581E-05    .34776E-05
  30  Prefactor     9.7221        20.733       -.20723E-05    .19497E-04
  31  Prefactor     .10001E-03    699.88       -.10109E-04** at limit **
  32  Normalizat    .10000E-01    1.1103        .47436E-05** at limit **
  33  Prefactor     1.4751        .68150        .46374E-05   -.14451E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 265.785
  Prefactor  = 0.0001
  Prefactor  = 97.6215
  Prefactor  = 0.0001
  Prefactor  = 55.5694
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 0.000120154
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 24.294
  Prefactor  = 10000
  Prefactor  = 0.000100006
  Prefactor  = 10000
  Prefactor  = 6.7786
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.00010083
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 7.49659
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 63.7721
  Prefactor  = 50.9664
  Prefactor  = 9.72213
  Prefactor  = 0.000100013
  Normalizat = 0.01
  Prefactor  = 1.47509
 **********
 **   18 **HESSE 
 **********

 FCN=   437.6288     FROM HESSE     STATUS=OK           679 CALLS     6283 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     265.78        344.01        .12435E-03   -1.2433    
   2  Prefactor     .10000E-03    34.801        .12150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     97.622        117.04        .40683E-04   -1.3729    
   4  Prefactor     .10000E-03    86.160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     55.569        35.244        .26895E-03   -1.4216    
   6  Prefactor    10000.0        1109.2        .21108E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor    10000.0        2215.1        .18314E-02    1.5712    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .12015E-03    2212.4        .14864E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor    10000.0        2292.8        .29833E-01    1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor    10000.0        2157.1        .21027E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     24.294        2287.3        .92124E-03   -1.4722    
  12  Prefactor    10000.0        1328.9        .20214E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    348.52        .21370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor    10000.0        2203.2        .22565E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.7786        267.60        .15853E-03   -1.5187    
  16  norm          .10000E-03    98.113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    21.736        .95744E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    35.633        .12297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    182.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    19.310        .90195E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    294.59        .21159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10083E-03    1960.6        .19579E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    31.545        .11559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    32.506        .11737E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          7.4966        8.1822        .52258E-04   -1.5160    
  26  norm          .10000E-03    27.108        .10703E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    15.584        .80641E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     63.772        89.195        .25136E-03   -1.4109    
  29  Prefactor     50.966        86.202        .56163E-04   -1.4279    
  30  Prefactor     9.7221        20.880        .12771E-03   -1.5084    
  31  Prefactor     .10001E-03    562.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .10000E-01    .76998        .11298E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     1.4751        .69277        .30617E-03   -.78240    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.06729e-10
Minuit parameter uncertainties:
  1  346.686
  2  4.05146e-05
  3  117.316
  4  0.000259548
  5  35.257
  6  0.0022551
  7  2.2124
  8  0.439687
  9  0.517715
  10  0.0969578
  11  492.289
  12  0.00988426
  13  0.00289358
  14  0.210825
  15  85.594
  16  1.34142e-05
  17  6.64345e-05
  18  3.55788e-06
  19  0.00040059
  20  4.21009e-05
  21  0.00280455
  22  0.0835618
  23  2.01083e-05
  24  3.40818e-05
  25  8.18339
  26  9.01207e-06
  27  8.894e-06
  28  89.3823
  29  86.4141
  30  20.8955
  31  0.00542625
  32  2.62235e-06
  33  0.69725
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  1.475e+00  6.972e-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.000e-02  2.622e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 351.737 -41.509
Photon Flux Upper Limit: 2.04e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.61e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/902468/likelihoodResults_557625601_557884801_4FGL_J2326.9-4130_daily_bin1228.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) = 437.628788618
delta logL = -1.40857933388e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 437.628776738
delta logL = -2.20560889375e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    4.4819       1.0000          .0000       10.000    
     3 'Normalizat'    .10004E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4756       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=   437.6288     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      288 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10747E-03    121.36        .18142E-01** at limit **
   2  Index         4.1846        6.7010        .50000        .67004E-06
   3  Normalizat    .10000E-01    .15572E-02    .11297E-01** at limit **
   4  Prefactor     1.4751        .19482E-01    .30617E-03    .31570E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000107465
  Index      = 4.18455
  Normalizat = 0.01
  Prefactor  = 1.47509
 **********
 **   18 **HESSE 
 **********

 FCN=   437.6288     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      317 TOTAL
                     EDM=   .67E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10747E-03    6440.0        .27485E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.1846        6.8039        .50000       -.16382    
   3  Normalizat    .10000E-01    .42113E-01    .22594E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4751        .10130        .61233E-04   -.78240    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.69954e-08
Minuit parameter uncertainties:
  1  0.309566
  2  8130.1
  3  4.12578e-06
  4  0.101316
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/902468': 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) = 437.628774679
delta logL = -1.46801028222e-07

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  1.075e-04  3.096e-01  1.000e-04  1.000e+04 ( 1.000e-13)
436        Index:  4.185e+00  8.130e+03  0.000e+00  1.000e+01 (-1.000e+00)
437        Scale:  7.113e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  1.475e+00  1.013e-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.000e-02  4.126e-06  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/902468/cmap_HighResolution_557625601_557884801_4FGL_J2326.9-4130_daily_bin1228.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.61e-01', job_status='DONE', photon_flux_upper_limit='2.04e-06', time_completed='2021-09-29 19:35:09.752472', job_id='902468', GAL2='1.48', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632969309.75', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.48', dlogl='-1.47e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.78' WHERE bin_id='1228' AND source_name='4FGL J2326.9-4130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:35:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 902468: <4FGL_J2326.9-4130_daily_bin1228> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.9-4130_daily_bin1228 351.737 -41.5089 557625601 557884801 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 :                                   380.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             196.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   594 sec.
    Turnaround time :                            596 sec.

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

