/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 189 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 = 7284
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2326.9-4130_daily_bin118
RA = 351.737, Dec = -41.5089
tmin = 269913601, tmax = 270172801
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='896241', job_status='RUN', time_executed='2021-09-29 19:08:55.547964', time_epoch_executed='1632967735.55' WHERE source_name='4FGL J2326.9-4130' and cadence='daily' and bin_id='118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/896241

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/896241/ft1_4FGL_J2326.9-4130_daily_bin118.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/896241/ft2_4FGL_J2326.9-4130_daily_bin118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/896241/ft1_4FGL_J2326.9-4130_daily_bin118.fits outfile=/scratch/kocevski/896241/ft1_filteredMKT_4FGL_J2326.9-4130_daily_bin118.fits ra=351.737 dec=-41.5089 rad=12.0 tmin=269913601.0 tmax=270172801.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 1.65
user 1.47
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/896241/ft1_filtered_4FGL_J2326.9-4130_daily_bin118.fits" evtable="EVENTS" scfile=/scratch/kocevski/896241/ft2_4FGL_J2326.9-4130_daily_bin118.fits sctable="SC_DATA" outfile=/scratch/kocevski/896241/ltcube_269913601_270172801_4FGL_J2326.9-4130_daily_bin118.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/896241/ft2_4FGL_J2326.9-4130_daily_bin118.fits
.....................!
real 12.29
user 11.92
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/896241/ft1_filtered_4FGL_J2326.9-4130_daily_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/896241/ft2_4FGL_J2326.9-4130_daily_bin118.fits sctable="SC_DATA" expcube=/scratch/kocevski/896241/ltcube_269913601_270172801_4FGL_J2326.9-4130_daily_bin118.fits outfile=/scratch/kocevski/896241/expmap_269913601_270172801_4FGL_J2326.9-4130_daily_bin118.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/896241/ltcube_269913601_270172801_4FGL_J2326.9-4130_daily_bin118.fits
.....................!
real 191.33
user 185.52
sys 5.41

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

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

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/896241/ft1_filtered_4FGL_J2326.9-4130_daily_bin118.fits scfile=/scratch/kocevski/896241/ft2_4FGL_J2326.9-4130_daily_bin118.fits outfile=/scratch/kocevski/896241/cmap_HighResolution_269913601_270172801_4FGL_J2326.9-4130_daily_bin118.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=351.737 yref=-41.5089 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/896241/ft1_filtered_4FGL_J2326.9-4130_daily_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/896241/ft2_4FGL_J2326.9-4130_daily_bin118.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/896241/Model_4FGL_J2326.9-4130_daily_bin118.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/896241/ft1_filtered_4FGL_J2326.9-4130_daily_bin118.fits.....................!
real 39.49
user 38.17
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5655       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.221       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10870       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.9096       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14924E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .16245E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10158E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.2584       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    6.2069       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .97418       1.0000         .10000E-03   10000.    
    26 'norm      '    4.1194       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    28.526       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .14458E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.3890       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .76282       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=   4903.307     FROM MIGRAD    STATUS=CONVERGED    931 CALLS     4656 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5653        314.21        .66110E-05    .27677E-05
   2  Prefactor     10.224        20.503        .19151E-06   -.96751E-04
   3  Prefactor     .10000E-03    19.188       -.47616E-05** at limit **
   4  Prefactor     .10012E-03    15.721       -.47052E-07** at limit **
   5  Prefactor     .10000E-03    5.7714       -.15414E-06** at limit **
   6  Prefactor     1.9117        5.1905        .13987E-08   -.36591E-03
   7  Prefactor     .10000E-03    95.511        .10187E-04** at limit **
   8  Prefactor     .10000E-03    6.9881        .23685E-08** at limit **
   9  Prefactor     .10000E-03    62.285        .33159E-06** at limit **
  10  Prefactor     .10000E-03    20.606        .30970E-06** at limit **
  11  Prefactor     .10000E-03    20.405       -.47674E-06** at limit **
  12  Prefactor     .10022E-03    9.3444        .20904E-05** at limit **
  13  Prefactor     .10000E-03    29.986       -.46328E-05** at limit **
  14  Prefactor     .10000E-03    60.381        .97740E-05** at limit **
  15  Prefactor     .10001E-03    69.819       -.18636E-04** at limit **
  16  norm          .10000E-03    9.6064       -.76997E-07** at limit **
  17  norm          .10000E-03    2.2679       -.33116E-07** at limit **
  18  norm          .10000E-03    1.9743        .68660E-08** at limit **
  19  norm          .10000E-03    17.084        .27639E-05** at limit **
  20  Prefactor     3.2552        3.4115        .97553E-06   -.20886E-02
  21  Prefactor     .10000E-03    34.001       -.43689E-05** at limit **
  22  Prefactor     .10000E-03    27.006        .50670E-05** at limit **
  23  norm          6.2060        5.2424        .30238E-07   -.48411E-04
  24  Prefactor     .10000E-03    12.276       -.30352E-06** at limit **
  25  norm          .97535        1.1224       -.61208E-07    .41467E-03
  26  norm          4.1180        5.9421        .53003E-08   -.97771E-04
  27  Prefactor     .10000E-03    1.5591       -.69084E-08** at limit **
  28  Prefactor     28.516        22.273        .55450E-06    .74229E-04
  29  Prefactor     .10001E-03    5.6464        .77998E-06** at limit **
  30  Prefactor     .10000E-03    2.2284        .28260E-09** at limit **
  31  Prefactor     .10000E-03    36.130        .20157E-05** at limit **
  32  Normalizat    1.3892        .20186       -.24715E-06   -.23988E-03
  33  Prefactor     .76287        .21294       -.35593E-06   -.17756E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.5653
  Prefactor  = 10.2238
  Prefactor  = 0.000100001
  Prefactor  = 0.00010012
  Prefactor  = 0.0001
  Prefactor  = 1.91174
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100222
  Prefactor  = 0.000100001
  Prefactor  = 0.000100004
  Prefactor  = 0.000100006
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.2552
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 6.206
  Prefactor  = 0.0001
  norm       = 0.975349
  norm       = 4.11801
  Prefactor  = 0.0001
  Prefactor  = 28.5164
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.38922
  Prefactor  = 0.76287
 **********
 **   18 **HESSE 
 **********

 FCN=   4903.307     FROM HESSE     STATUS=OK           695 CALLS     5351 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5653        314.43        .25486E-03   -1.5388    
   2  Prefactor     10.224        20.551        .62665E-03   -1.5068    
   3  Prefactor     .10000E-03    19.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10012E-03    22.921        .99096E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.296        .31433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.9117        5.1760        .24709E-03   -1.5431    
   7  Prefactor     .10000E-03    96.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.0674        .18071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    63.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    20.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    20.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10022E-03    51.467        .39617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    30.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    60.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    71.254        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    9.6271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.2683        .10299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.9755        .96069E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    17.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.2552        6.4905        .11218E-02   -1.5347    
  21  Prefactor     .10000E-03    34.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    27.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          6.2060        5.2192        .13222E-03   -1.5210    
  24  Prefactor     .10000E-03    12.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .97535        1.0941        .75550E-03   -1.5510    
  26  norm          4.1180        5.9121        .18300E-03   -1.5302    
  27  Prefactor     .10000E-03    1.5708        .85316E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     28.516        22.232        .75011E-04   -1.4639    
  29  Prefactor     .10001E-03    20.875        .31827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    2.2538        .10202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    36.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.3892        .24296        .21371E-03   -.80941    
  33  Prefactor     .76287        .25630        .29962E-03   -1.0111    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07639e-08
Minuit parameter uncertainties:
  1  57.1098
  2  20.5649
  3  0.000265481
  4  0.00331912
  5  0.000112179
  6  5.17718
  7  0.00116806
  8  4.56634e-06
  9  3.27e-05
  10  4.04824e-06
  11  2.3638e-05
  12  0.00676065
  13  0.000311645
  14  0.000955154
  15  0.0012885
  16  5.03209e-07
  17  2.92915e-07
  18  2.17471e-07
  19  0.000126081
  20  6.49188
  21  0.000320281
  22  0.00033212
  23  5.21954
  24  9.96873e-07
  25  1.09411
  26  5.91293
  27  5.39634e-07
  28  22.2382
  29  0.000851735
  30  4.24555e-07
  31  0.000146248
  32  0.243161
  33  0.256704
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  7.629e-01  2.567e-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.389e+00  2.432e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 351.737 -41.509
Photon Flux Upper Limit: 1.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/896241/likelihoodResults_269913601_270172801_4FGL_J2326.9-4130_daily_bin118.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) = 4903.30667579
delta logL = -0.000139594916618

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4903.3065372
delta logL = -9.97338247544e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10658E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.3031       1.0000          .0000       10.000    
     3 'Normalizat'    1.3892       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76287       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=   4903.307     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      281 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10583E-03    12.094        .18142E-01** at limit **
   2  Index         3.1689        7.7201        .50000        .99159E-05
   3  Normalizat    1.3892        .33889E-02    .21371E-03    .97586E-04
   4  Prefactor     .76287        .36547E-02    .29962E-03    .37564E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105831
  Index      = 3.16895
  Normalizat = 1.38922
  Prefactor  = 0.76287
 **********
 **   18 **HESSE 
 **********

 FCN=   4903.307     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      310 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10583E-03    144.45        .33779E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.1689        6.0304        .50000       -.37493    
   3  Normalizat    1.3892        .11676E-01    .42741E-04   -.80941    
   4  Prefactor     .76287        .12591E-01    .11985E-04   -1.0111    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.31889e-09
Minuit parameter uncertainties:
  1  0.0581839
  2  557.843
  3  0.0116758
  4  0.0125914
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/896241': 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) = 4903.30653686
delta logL = -6.57139025861e-07

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  1.058e-04  5.818e-02  1.000e-04  1.000e+04 ( 1.000e-13)
436        Index:  3.169e+00  5.578e+02  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.629e-01  1.259e-02  0.000e+00  1.000e+01 ( 1.000e+00)
580        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
581        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
578   Normalization:  1.389e+00  1.168e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 351.737 -41.509

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.95e-03', job_status='DONE', photon_flux_upper_limit='1.13e-07', time_completed='2021-09-29 19:22:06.809673', job_id='896241', GAL2='0.76', fit_tolerance='1e-08', EG2='1.39', EG='1.39', time_epoch_completed='1632968526.81', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='-6.57e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.78' WHERE bin_id='118' AND source_name='4FGL J2326.9-4130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:22:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 896241: <4FGL_J2326.9-4130_daily_bin118> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.9-4130_daily_bin118 351.737 -41.5089 269913601 270172801 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 :                                   791.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             256.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            991 sec.

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

