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


Performing analysis on: 4FGL_J2326.9-4130_daily_bin1116
RA = 351.737, Dec = -41.5089
tmin = 528595201, tmax = 528854401
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='901057', job_status='RUN', time_executed='2021-09-29 19:21:12.438547', time_epoch_executed='1632968472.44' WHERE source_name='4FGL J2326.9-4130' and cadence='daily' and bin_id='1116'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/901057

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/901057/ft1_4FGL_J2326.9-4130_daily_bin1116.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/901057/ft2_4FGL_J2326.9-4130_daily_bin1116.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/901057/ft1_4FGL_J2326.9-4130_daily_bin1116.fits outfile=/scratch/kocevski/901057/ft1_filteredMKT_4FGL_J2326.9-4130_daily_bin1116.fits ra=351.737 dec=-41.5089 rad=12.0 tmin=528595201.0 tmax=528854401.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.41
user 3.17
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/901057/ft2_4FGL_J2326.9-4130_daily_bin1116.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/901057/ft1_filteredMKT_4FGL_J2326.9-4130_daily_bin1116.fits evtable="EVENTS" outfile="/scratch/kocevski/901057/ft1_filtered_4FGL_J2326.9-4130_daily_bin1116.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/901057/ft1_filtered_4FGL_J2326.9-4130_daily_bin1116.fits" evtable="EVENTS" scfile=/scratch/kocevski/901057/ft2_4FGL_J2326.9-4130_daily_bin1116.fits sctable="SC_DATA" outfile=/scratch/kocevski/901057/ltcube_528595201_528854401_4FGL_J2326.9-4130_daily_bin1116.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/901057/ft2_4FGL_J2326.9-4130_daily_bin1116.fits
.....................!
real 11.82
user 11.44
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/901057/ft1_filtered_4FGL_J2326.9-4130_daily_bin1116.fits evtable="EVENTS" scfile=/scratch/kocevski/901057/ft2_4FGL_J2326.9-4130_daily_bin1116.fits sctable="SC_DATA" expcube=/scratch/kocevski/901057/ltcube_528595201_528854401_4FGL_J2326.9-4130_daily_bin1116.fits outfile=/scratch/kocevski/901057/expmap_528595201_528854401_4FGL_J2326.9-4130_daily_bin1116.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/901057/ltcube_528595201_528854401_4FGL_J2326.9-4130_daily_bin1116.fits
.....................!
real 189.93
user 185.11
sys 4.40

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/901057/ft1_filtered_4FGL_J2326.9-4130_daily_bin1116.fits scfile=/scratch/kocevski/901057/ft2_4FGL_J2326.9-4130_daily_bin1116.fits outfile=/scratch/kocevski/901057/cmap_528595201_528854401_4FGL_J2326.9-4130_daily_bin1116.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/901057/ft1_filtered_4FGL_J2326.9-4130_daily_bin1116.fits scfile=/scratch/kocevski/901057/ft2_4FGL_J2326.9-4130_daily_bin1116.fits outfile=/scratch/kocevski/901057/cmap_HighResolution_528595201_528854401_4FGL_J2326.9-4130_daily_bin1116.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.57
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/901057/ft1_filtered_4FGL_J2326.9-4130_daily_bin1116.fits evtable="EVENTS" scfile=/scratch/kocevski/901057/ft2_4FGL_J2326.9-4130_daily_bin1116.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/901057/Model_4FGL_J2326.9-4130_daily_bin1116.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/901057/ft1_filtered_4FGL_J2326.9-4130_daily_bin1116.fits.....................!
real 39.78
user 38.50
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.549       1.0000         .10000E-03   10000.    
     3 'Prefactor '    44.137       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.0743       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.4664       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    25.952       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10438E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .27454E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .86322E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .14052       1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.2617       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11089E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .70575       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .89616       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    31.897       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1288       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .67639       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=   5081.223     FROM MIGRAD    STATUS=CONVERGED   1615 CALLS     5319 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.138        .18142E-02** at limit **
   2  Prefactor     15.558        21.976        .10157E-03   -.30445E-04
   3  Prefactor     44.129        37.797        .60346E-04   -.12622E-04
   4  Prefactor     .10000E-03    11.354        .18142E-02** at limit **
   5  Prefactor     .10000E-03    3.0444        .12096E-02** at limit **
   6  Prefactor     5.0746        4.6751        .14068E-03    .10215E-03
   7  Prefactor     .10000E-03    61.462        .18142E-02** at limit **
   8  Prefactor     4.4670        5.8030        .94425E-03   -.33319E-03
   9  Prefactor     .10000E-03    7.8633        .18142E-02** at limit **
  10  Prefactor     25.954        19.953        .78636E-04   -.14602E-04
  11  Prefactor     .10000E-03    7.1886        .18142E-02** at limit **
  12  Prefactor     .10000E-03    3.8905        .13661E-02** at limit **
  13  Prefactor     .10000E-03    66.434        .18142E-02** at limit **
  14  Prefactor     .10000E-03    158.41        .21427E-02** at limit **
  15  Prefactor     .10012E-03    37.321        .37193E-02** at limit **
  16  norm          .11240        13.902        .71788E-01   -.19378E-03
  17  norm          .10000E-03    3.8599        .13579E-02** at limit **
  18  norm          6.2557        4.9245        .13592E-03   -.51996E-03
  19  norm          .10000E-03    2.9706        .11979E-02** at limit **
  20  Prefactor     .10000E-03    2.6901        .11381E-02** at limit **
  21  Prefactor     .10102E-03    302.10        .80203E-02** at limit **
  22  Prefactor     .10000E-03    18.170        .18142E-02** at limit **
  23  norm          .10000E-03    1.8391        .93963E-03** at limit **
  24  Prefactor     .10000E-03    15.817        .18142E-02** at limit **
  25  norm          .10000E-03    .34821        .80498E-04** at limit **
  26  norm          .70106        3.7096        .25994E-03   -.47354E-03
  27  Prefactor     .89589        2.0940        .15584E-03    .25095E-04
  28  Prefactor     .10000E-03    5.3910        .16157E-02** at limit **
  29  Prefactor     .10000E-03    1.8196        .93722E-03** at limit **
  30  Prefactor     .10000E-03    2.6596        .11237E-02** at limit **
  31  Prefactor     31.892        47.914        .70947E-04   -.16024E-04
  32  Normalizat    1.1288        .19538        .19472E-03   -.53001E-03
  33  Prefactor     .67620        .21325        .27202E-03   -.27768E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 15.5576
  Prefactor  = 44.1287
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.07459
  Prefactor  = 0.000100001
  Prefactor  = 4.46701
  Prefactor  = 0.0001
  Prefactor  = 25.954
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100125
  norm       = 0.112404
  norm       = 0.0001
  norm       = 6.25574
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000101015
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.701062
  Prefactor  = 0.895889
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.8917
  Normalizat = 1.12882
  Prefactor  = 0.676202
 **********
 **   18 **HESSE 
 **********

 FCN=   5081.223     FROM HESSE     STATUS=OK           671 CALLS     5990 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.139        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     15.558        21.974        .40628E-05   -1.4919    
   3  Prefactor     44.129        37.784        .24138E-05   -1.4378    
   4  Prefactor     .10000E-03    11.354        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.0449        .24192E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.0746        4.6745        .56272E-05   -1.5257    
   7  Prefactor     .10000E-03    61.471        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.4670        5.8019        .37770E-04   -1.5285    
   9  Prefactor     .10000E-03    7.8637        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     25.954        19.954        .31454E-05   -1.4689    
  11  Prefactor     .10000E-03    7.1912        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.8914        .27321E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    66.451        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    158.49        .42853E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10012E-03    37.638        .74386E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .11240        12.734        .76498E-01   -1.5641    
  17  norm          .10000E-03    3.8611        .27157E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.2557        4.9139        .27185E-04   -1.5208    
  19  norm          .10000E-03    2.9707        .23958E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.6904        .22761E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10102E-03    312.61        .32081E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    18.171        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.8392        .18793E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    15.830        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    .34821        .16100E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .70106        3.6971        .10397E-04   -1.5541    
  27  Prefactor     .89589        2.0938        .62336E-05   -1.5519    
  28  Prefactor     .10000E-03    5.3911        .32314E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    1.8197        .18744E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    2.6602        .22475E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     31.892        47.907        .28379E-05   -1.4578    
  32  Normalizat    1.1288        .19526        .38944E-04   -.88832    
  33  Prefactor     .67620        .21328        .10881E-04   -1.0447    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.3959e-09
Minuit parameter uncertainties:
  1  1.45943e-05
  2  21.9855
  3  37.8048
  4  7.28124e-06
  5  4.37926e-06
  6  4.67485
  7  0.000373186
  8  5.80261
  9  1.96542e-06
  10  19.9587
  11  4.76844e-06
  12  1.094e-06
  13  0.000351433
  14  0.000974958
  15  0.00433574
  16  2.39223
  17  1.19579e-05
  18  4.91422
  19  2.46794e-06
  20  3.76099e-06
  21  0.0358158
  22  9.34047e-06
  23  3.80986e-07
  24  4.03708e-05
  25  1.61113e-06
  26  3.21994
  27  2.09398
  28  3.81245e-06
  29  4.06534e-06
  30  1.54114e-05
  31  47.9653
  32  0.195385
  33  0.213536
Done.

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

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  1.010e-04  3.582e-02  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:  6.762e-01  2.135e-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.129e+00  1.954e-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: 9.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/901057/likelihoodResults_528595201_528854401_4FGL_J2326.9-4130_daily_bin1116.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) = 5081.22348009
delta logL = -1.51316098709e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5081.22348009
delta logL = -1.51292970259e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96360E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7772       1.0000          .0000       10.000    
     3 'Normalizat'    1.1288       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67621       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.

 FCN=   5080.894     FROM MIGRAD    STATUS=CONVERGED    165 CALLS      333 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .63454E-01    1.2012        .47553E-02    .35985E-02
   2  Index         6.5680        3.4006        .14053        .11104E-03
   3  Normalizat    1.0658        .30210E-01    .36933E-01    .35742E-04
   4  Prefactor     .72210        .33627E-01    .42084E-01    .37937E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0634536
  Index      = 6.56801
  Normalizat = 1.06578
  Prefactor  = 0.722104
 **********
 **   18 **HESSE 
 **********

 FCN=   5080.894     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      366 TOTAL
                     EDM=   .78E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .63454E-01    4.5621        .21170E-04   -1.5658    
   2  Index         6.5680        8.2784        .77110E-02    .31898    
   3  Normalizat    1.0658        .15079        .19962E-03   -.90858    
   4  Prefactor     .72210        .16273        .26378E-03   -1.0267    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.78199e-07
Minuit parameter uncertainties:
  1  1.0753
  2  9.2904
  3  0.150853
  4  0.162842
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/901057': 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) = 5080.89353417
delta logL = 0.329930787133

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  7.221e-01  1.628e-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.066e+00  1.509e-01  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/901057/cmap_HighResolution_528595201_528854401_4FGL_J2326.9-4130_daily_bin1116.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.83e-03', job_status='DONE', photon_flux_upper_limit='9.90e-08', time_completed='2021-09-29 19:36:14.775029', job_id='901057', GAL2='0.72', fit_tolerance='1e-08', EG2='1.07', EG='1.13', time_epoch_completed='1632969374.78', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='3.30e-01', ts2='0.73', photon_index_error='0.00', photon_index='2.78' WHERE bin_id='1116' AND source_name='4FGL J2326.9-4130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:36:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 901057: <4FGL_J2326.9-4130_daily_bin1116> in cluster <slac> Done

Job <4FGL_J2326.9-4130_daily_bin1116> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 19:20:41 2021
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 19:20:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 19:20:43 2021
Terminated at Wed Sep 29 19:36:15 2021
Results reported at Wed Sep 29 19:36:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.9-4130_daily_bin1116 351.737 -41.5089 528595201 528854401 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 :                                   886.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            934 sec.

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

