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


Performing analysis on: 4FGL_J2326.9-4130_daily_bin1459
RA = 351.737, Dec = -41.5089
tmin = 617500801, tmax = 617760001
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='902832', job_status='RUN', time_executed='2021-09-29 19:26:16.696425', time_epoch_executed='1632968776.7' WHERE source_name='4FGL J2326.9-4130' and cadence='daily' and bin_id='1459'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/902832

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/902832/ft1_4FGL_J2326.9-4130_daily_bin1459.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/902832/ft2_4FGL_J2326.9-4130_daily_bin1459.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/902832/ft1_4FGL_J2326.9-4130_daily_bin1459.fits outfile=/scratch/kocevski/902832/ft1_filteredMKT_4FGL_J2326.9-4130_daily_bin1459.fits ra=351.737 dec=-41.5089 rad=12.0 tmin=617500801.0 tmax=617760001.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 2.66
user 2.47
sys 0.17

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/902832/ft1_filtered_4FGL_J2326.9-4130_daily_bin1459.fits" evtable="EVENTS" scfile=/scratch/kocevski/902832/ft2_4FGL_J2326.9-4130_daily_bin1459.fits sctable="SC_DATA" outfile=/scratch/kocevski/902832/ltcube_617500801_617760001_4FGL_J2326.9-4130_daily_bin1459.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/902832/ft2_4FGL_J2326.9-4130_daily_bin1459.fits
.....................!
real 12.66
user 12.25
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/902832/ft1_filtered_4FGL_J2326.9-4130_daily_bin1459.fits evtable="EVENTS" scfile=/scratch/kocevski/902832/ft2_4FGL_J2326.9-4130_daily_bin1459.fits sctable="SC_DATA" expcube=/scratch/kocevski/902832/ltcube_617500801_617760001_4FGL_J2326.9-4130_daily_bin1459.fits outfile=/scratch/kocevski/902832/expmap_617500801_617760001_4FGL_J2326.9-4130_daily_bin1459.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/902832/ltcube_617500801_617760001_4FGL_J2326.9-4130_daily_bin1459.fits
.....................!
real 192.16
user 187.01
sys 4.77

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/902832/ft1_filtered_4FGL_J2326.9-4130_daily_bin1459.fits scfile=/scratch/kocevski/902832/ft2_4FGL_J2326.9-4130_daily_bin1459.fits outfile=/scratch/kocevski/902832/cmap_617500801_617760001_4FGL_J2326.9-4130_daily_bin1459.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.38
sys 0.14

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

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/902832/ft1_filtered_4FGL_J2326.9-4130_daily_bin1459.fits evtable="EVENTS" scfile=/scratch/kocevski/902832/ft2_4FGL_J2326.9-4130_daily_bin1459.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/902832/Model_4FGL_J2326.9-4130_daily_bin1459.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/902832/ft1_filtered_4FGL_J2326.9-4130_daily_bin1459.fits.......................!
real 23.68
user 21.82
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10434E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    31.945       1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.915       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.0427       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10309E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.3240       1.0000         .10000E-03   10000.    
     9 'Prefactor '    255.65       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10366E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    123.61       1.0000         .10000E-03   10000.    
    14 'Prefactor '    279.60       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11414E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10085E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    36.678       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.8155       1.0000         .10000E-03   10000.    
    26 'norm      '    1.4185       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .68892       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .12918E-02   1.0000         .10000E-03   10000.    
    31 'Prefactor '    39.456       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0732       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .92509       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=   1826.084     FROM MIGRAD    STATUS=CONVERGED    914 CALLS     4690 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    73.391        .61678E-06** at limit **
   2  Prefactor     31.915        34.472       -.25437E-05   -.15674E-03
   3  Prefactor     21.898        48.961       -.22635E-07   -.23102E-04
   4  Prefactor     .10000E-03    13.658        .20104E-06** at limit **
   5  Prefactor     8.0426        8.2765       -.21272E-06    .89911E-05
   6  Prefactor     .10000E-03    12.027        .68693E-06** at limit **
   7  Prefactor     .10001E-03    1004.4       -.15905E-06** at limit **
   8  Prefactor     9.3247        31.173        .16905E-06   -.12266E-04
   9  Prefactor     255.66        177.31       -.69578E-06   -.22291E-04
  10  Prefactor     .10000E-03    495.78        .73988E-05** at limit **
  11  Prefactor     .10000E-03    54.902        .47392E-06** at limit **
  12  Prefactor     .10000E-03    99.405        .59054E-05** at limit **
  13  Prefactor     123.59        160.18       -.19302E-06   -.13033E-04
  14  Prefactor     279.66        234.70       -.76009E-07   -.80609E-05
  15  Prefactor     .10000E-03    59.051        .29796E-05** at limit **
  16  norm          .10000E-03    10.809        .14610E-06** at limit **
  17  norm          .10000E-03    4.4453        .68426E-07** at limit **
  18  norm          .10000E-03    16.379        .11223E-05** at limit **
  19  norm          .10000E-03    6.9224        .18706E-06** at limit **
  20  Prefactor     .10000E-03    5.3143        .38231E-06** at limit **
  21  Prefactor     36.711        125.37       -.72620E-05   -.14101E-04
  22  Prefactor     .10000E-03    49.981        .21417E-06** at limit **
  23  norm          .10000E-03    7.5133        .63395E-06** at limit **
  24  Prefactor     .10000E-03    18.383        .73586E-06** at limit **
  25  norm          2.8149        2.1526       -.12824E-06   -.21662E-03
  26  norm          1.4151        14.217        .74973E-06    .89189E-05
  27  Prefactor     .10000E-03    3.8936        .81832E-06** at limit **
  28  Prefactor     .10000E-03    25.395        .75742E-06** at limit **
  29  Prefactor     .61975        73.133       -.93999E-05    .46811E-04
  30  Prefactor     .10000E-03    7.4773        .20378E-05** at limit **
  31  Prefactor     39.813        128.43        .13091E-04    .79082E-04
  32  Normalizat    1.0733        .39194        .65845E-05   -.13290E-03
  33  Prefactor     .92520        .40123       -.85882E-05    .77634E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 31.9145
  Prefactor  = 21.8978
  Prefactor  = 0.0001
  Prefactor  = 8.04261
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 9.32473
  Prefactor  = 255.661
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 123.59
  Prefactor  = 279.664
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.7107
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.81485
  norm       = 1.4151
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.619751
  Prefactor  = 0.0001
  Prefactor  = 39.8127
  Normalizat = 1.07326
  Prefactor  = 0.925201
 **********
 **   18 **HESSE 
 **********

 FCN=   1826.084     FROM HESSE     STATUS=OK           681 CALLS     5371 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    73.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     31.915        33.723        .70893E-04   -1.4578    
   3  Prefactor     21.898        48.965        .85561E-04   -1.4772    
   4  Prefactor     .10000E-03    13.660        .15428E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.0426        8.2866        .12048E-03   -1.5141    
   6  Prefactor     .10000E-03    12.099        .14476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    1001.8        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.3247        31.060        .13125E-03   -1.5097    
   9  Prefactor     255.66        177.32        .12672E-03   -1.2496    
  10  Prefactor     .10000E-03    497.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    54.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    102.75        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     123.59        159.90        .36202E-04   -1.3480    
  14  Prefactor     279.66        234.65        .12132E-03   -1.2348    
  15  Prefactor     .10000E-03    59.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    10.811        .13725E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.4457        .88005E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    16.973        .33843E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    6.9262        .10983E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.3236        .96248E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     36.711        122.61        .66176E-04   -1.4495    
  22  Prefactor     .10000E-03    49.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    7.5602        .11440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    18.437        .17902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.8149        2.1540        .52277E-04   -1.5372    
  26  norm          1.4151        13.299        .26393E-03   -1.5470    
  27  Prefactor     .10000E-03    3.9861        .82501E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    25.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .61975        77.652        .29441E-02   -1.5551    
  30  Prefactor     .10000E-03    30.650        .20367E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     39.813        132.69        .31906E-03   -1.4445    
  32  Normalizat    1.0733        .42547        .24859E-03   -.90615    
  33  Prefactor     .92520        .43144        .28833E-03   -.95266    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27313e-09
Minuit parameter uncertainties:
  1  0.00010319
  2  33.7429
  3  49.055
  4  7.15577e-06
  5  8.28778
  6  1.81716e-05
  7  0.00457379
  8  31.1138
  9  177.692
  10  0.00100819
  11  6.59107e-06
  12  0.000844514
  13  160.467
  14  235.445
  15  0.000167587
  16  7.48242e-06
  17  2.51979e-06
  18  0.000123673
  19  6.45734e-06
  20  1.12059e-05
  21  123.461
  22  2.167e-06
  23  4.54229e-05
  24  4.00027e-05
  25  2.15409
  26  8.67857
  27  2.47234e-05
  28  5.45379e-05
  29  13.8917
  30  0.000152524
  31  133.693
  32  0.426833
  33  0.433054
Done.

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

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  3.671e+01  1.235e+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:  9.252e-01  4.331e-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.073e+00  4.268e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.13
Ra Dec: 351.737 -41.509
Photon Flux Upper Limit: 3.42e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.71e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/902832/likelihoodResults_617500801_617760001_4FGL_J2326.9-4130_daily_bin1459.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): 0
logL (Free Index) = 1825.22190864
delta logL = 0.862002451232

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1825.09904
delta logL = 0.984871088802

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4260       1.0000         .10000E-03   10000.    
     2 'Index     '    5.4258       1.0000          .0000       10.000    
     3 'Normalizat'    .87944       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0667       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=   1825.099     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      273 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4084        47.447        .65689E-02    .10156E-03
   2  Index         5.4309        4.0394        .79588E-01    .51885E-04
   3  Normalizat    .87868        .12625        .44638E-01    .16429E-04
   4  Prefactor     1.0675        .13761        .61126E-01    .20354E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.40844
  Index      = 5.43091
  Normalizat = 0.878685
  Prefactor  = 1.06747
 **********
 **   18 **HESSE 
 **********

 FCN=   1825.099     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      306 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4084        68.196        .48699E-04   -1.5398    
   2  Index         5.4309        7.4504        .33393E-02    .86289E-01
   3  Normalizat    .87868        .38658        .27038E-03   -.97213    
   4  Prefactor     1.0675        .39910        .27033E-03   -.90513    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.07648e-10
Minuit parameter uncertainties:
  1  25.6636
  2  5.94018
  3  0.387803
  4  0.400217
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/902832': 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) = 1825.09903468
delta logL = 0.984876411466

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  2.408e+00  2.566e+01  1.000e-04  1.000e+04 ( 1.000e-13)
436        Index:  5.431e+00  5.940e+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:  1.067e+00  4.002e-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:  8.787e-01  3.878e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.38
Ra Dec: 351.737 -41.509
Photon Index (Free Index): 5.43 +/- 5.94
Photon Flux (Free Index): 2.32e-07 +/- 1.99e-07
Energy Flux (Free Index): 2.99e-05 +/- 3.18e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.71e-02', comment='SUCCESS', energy_flux2='2.99e-05', dlogl='9.85e-01', photon_flux2='2.32e-07', job_status='DONE', time_completed='2021-09-29 19:35:30.890173', photon_index_error2='5.94', photon_index2='5.43', ts='0.13', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='3.42e-07', energy_flux_error2='3.18e-05', EG='1.07', time_epoch_completed='1632969330.89', return_code='0', job_id='902832', GAL2='1.07', EG2='0.88', return_code2='102', photon_flux_error2='1.99e-07', ts2='2.38', photon_index='2.78' WHERE bin_id='1459' AND source_name='4FGL J2326.9-4130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:35:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 902832: <4FGL_J2326.9-4130_daily_bin1459> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.9-4130_daily_bin1459 351.737 -41.5089 617500801 617760001 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 :                                   498.47 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             309.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   583 sec.
    Turnaround time :                            584 sec.

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

