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


Performing analysis on: 4FGL_J2326.9-4130_daily_bin881
RA = 351.737, Dec = -41.5089
tmin = 467683201, tmax = 467942401
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='899469', job_status='RUN', time_executed='2021-09-29 19:17:55.557347', time_epoch_executed='1632968275.56' WHERE source_name='4FGL J2326.9-4130' and cadence='daily' and bin_id='881'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/899469

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/899469/ft1_4FGL_J2326.9-4130_daily_bin881.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/899469/ft2_4FGL_J2326.9-4130_daily_bin881.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/899469/ft1_4FGL_J2326.9-4130_daily_bin881.fits outfile=/scratch/kocevski/899469/ft1_filteredMKT_4FGL_J2326.9-4130_daily_bin881.fits ra=351.737 dec=-41.5089 rad=12.0 tmin=467683201.0 tmax=467942401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.43
user 3.21
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/899469/ft2_4FGL_J2326.9-4130_daily_bin881.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/899469/ft1_filteredMKT_4FGL_J2326.9-4130_daily_bin881.fits evtable="EVENTS" outfile="/scratch/kocevski/899469/ft1_filtered_4FGL_J2326.9-4130_daily_bin881.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/899469/ft1_filtered_4FGL_J2326.9-4130_daily_bin881.fits" evtable="EVENTS" scfile=/scratch/kocevski/899469/ft2_4FGL_J2326.9-4130_daily_bin881.fits sctable="SC_DATA" outfile=/scratch/kocevski/899469/ltcube_467683201_467942401_4FGL_J2326.9-4130_daily_bin881.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/899469/ft2_4FGL_J2326.9-4130_daily_bin881.fits
.....................!
real 11.86
user 11.54
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/899469/ft1_filtered_4FGL_J2326.9-4130_daily_bin881.fits evtable="EVENTS" scfile=/scratch/kocevski/899469/ft2_4FGL_J2326.9-4130_daily_bin881.fits sctable="SC_DATA" expcube=/scratch/kocevski/899469/ltcube_467683201_467942401_4FGL_J2326.9-4130_daily_bin881.fits outfile=/scratch/kocevski/899469/expmap_467683201_467942401_4FGL_J2326.9-4130_daily_bin881.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/899469/ltcube_467683201_467942401_4FGL_J2326.9-4130_daily_bin881.fits
.....................!
real 191.64
user 186.31
sys 4.82

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/899469/ft1_filtered_4FGL_J2326.9-4130_daily_bin881.fits scfile=/scratch/kocevski/899469/ft2_4FGL_J2326.9-4130_daily_bin881.fits outfile=/scratch/kocevski/899469/cmap_467683201_467942401_4FGL_J2326.9-4130_daily_bin881.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.15

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/899469/ft1_filtered_4FGL_J2326.9-4130_daily_bin881.fits evtable="EVENTS" scfile=/scratch/kocevski/899469/ft2_4FGL_J2326.9-4130_daily_bin881.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/899469/Model_4FGL_J2326.9-4130_daily_bin881.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/899469/ft1_filtered_4FGL_J2326.9-4130_daily_bin881.fits.....................!
real 33.18
user 31.83
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12022E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.681       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.632       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.2300       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.3016       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.3380       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    46.153       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    8.5656       1.0000         .10000E-03   10000.    
    17 'norm      '    5.7682       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.4381       1.0000         .10000E-03   10000.    
    21 'Prefactor '    89.451       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .16028E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .27118       1.0000         .10000E-03   10000.    
    26 'norm      '    .52097E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.2192       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .82272       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=   3764.980     FROM MIGRAD    STATUS=CONVERGED    884 CALLS     4568 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.149        .28798E-07** at limit **
   2  Prefactor     .10000E-03    59.126        .47628E-06** at limit **
   3  Prefactor     .10000E-03    132.61        .85092E-06** at limit **
   4  Prefactor     .10000E-03    26.121        .32246E-06** at limit **
   5  Prefactor     12.682        11.086       -.16699E-06   -.12594E-03
   6  Prefactor     .10000E-03    1.3783        .38519E-06** at limit **
   7  Prefactor     28.556        60.667        .12479E-07    .58706E-05
   8  Prefactor     1.2293        9.0099        .15605E-06    .27632E-04
   9  Prefactor     .10000E-03    31.444        .11155E-05** at limit **
  10  Prefactor     .10001E-03    19.098        .16691E-05** at limit **
  11  Prefactor     4.2997        16.708       -.14954E-06    .98615E-05
  12  Prefactor     1.3433        20.979       -.35499E-05    .30585E-04
  13  Prefactor     .10000E-03    25.325        .21045E-06** at limit **
  14  Prefactor     46.079        85.590       -.99391E-06   -.58162E-05
  15  Prefactor     .10000E-03    9.8705        .13646E-06** at limit **
  16  norm          8.5654        9.4705        .12297E-07   -.11149E-04
  17  norm          5.7685        6.3540       -.21701E-08   -.26730E-04
  18  norm          .10000E-03    2.7492        .32724E-07** at limit **
  19  norm          .10000E-03    7.8157        .41353E-06** at limit **
  20  Prefactor     6.4388        6.5843       -.80174E-07   -.10490E-03
  21  Prefactor     89.522        56.272        .17909E-05   -.56933E-04
  22  Prefactor     .10000E-03    27.679        .25526E-06** at limit **
  23  norm          .10001E-03    13.217        .73564E-05** at limit **
  24  Prefactor     .10000E-03    16.219        .26609E-06** at limit **
  25  norm          .27090        1.0408        .59009E-07    .91027E-04
  26  norm          .10000E-03    13.762        .81975E-05** at limit **
  27  Prefactor     .10000E-03    .92970        .27277E-07** at limit **
  28  Prefactor     .10000E-03    7.5356        .59370E-07** at limit **
  29  Prefactor     .10000E-03    2.2304        .64586E-07** at limit **
  30  Prefactor     .10000E-03    2.0672        .89640E-07** at limit **
  31  Prefactor     .10000E-03    22.888        .23798E-06** at limit **
  32  Normalizat    1.2190        .23534        .17364E-05   -.40700E-03
  33  Prefactor     .82308        .24143       -.27132E-05   -.44795E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.6822
  Prefactor  = 0.0001
  Prefactor  = 28.5563
  Prefactor  = 1.22934
  Prefactor  = 0.000100004
  Prefactor  = 0.000100006
  Prefactor  = 4.29968
  Prefactor  = 1.34326
  Prefactor  = 0.0001
  Prefactor  = 46.0793
  Prefactor  = 0.0001
  norm       = 8.5654
  norm       = 5.76852
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.43885
  Prefactor  = 89.5224
  Prefactor  = 0.0001
  norm       = 0.000100007
  Prefactor  = 0.0001
  norm       = 0.270902
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.21896
  Prefactor  = 0.823077
 **********
 **   18 **HESSE 
 **********

 FCN=   3764.980     FROM HESSE     STATUS=OK           683 CALLS     5251 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    60.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    133.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    26.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.682        11.106        .11248E-03   -1.4996    
   6  Prefactor     .10000E-03    1.3956        .70708E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     28.556        60.654        .74872E-04   -1.4639    
   8  Prefactor     1.2293        9.1113        .35252E-03   -1.5486    
   9  Prefactor     .10000E-03    31.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    19.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.2997        16.703        .97120E-03   -1.5293    
  12  Prefactor     1.3433        21.424        .18956E-02   -1.5476    
  13  Prefactor     .10000E-03    25.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     46.079        85.472        .59019E-04   -1.4349    
  15  Prefactor     .10000E-03    9.8879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.5654        9.4714        .13697E-03   -1.5123    
  17  norm          5.7685        6.3303        .15450E-03   -1.5228    
  18  norm          .10000E-03    2.7513        .99350E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    7.8875        .16769E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.4388        6.5306        .15008E-03   -1.5200    
  21  Prefactor     89.522        57.119        .21242E-03   -1.3813    
  22  Prefactor     .10000E-03    27.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10001E-03    21.582        .25480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    16.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .27090        1.0243        .11253E-03   -1.5604    
  26  norm          .10000E-03    19.659        .24463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    .93074        .57779E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    7.5401        .16452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    2.2328        .89502E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    2.0770        .86162E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    22.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.2190        .28997        .22202E-03   -.86019    
  33  Prefactor     .82308        .30236        .28380E-03   -.98883    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65788e-09
Minuit parameter uncertainties:
  1  1.65289e-05
  2  0.000137592
  3  0.000470693
  4  6.9166e-05
  5  11.1077
  6  3.54173e-05
  7  60.7857
  8  6.69469
  9  0.000687508
  10  0.000656656
  11  16.7212
  12  10.7331
  13  9.144e-06
  14  85.7008
  15  3.16668e-05
  16  9.47304
  17  6.33098
  18  1.11309e-06
  19  7.96286e-05
  20  6.53134
  21  57.1542
  22  8.87676e-05
  23  0.000781798
  24  6.97549e-05
  25  1.0244
  26  0.000230812
  27  1.83875e-06
  28  9.79013e-06
  29  6.75499e-06
  30  8.13997e-06
  31  3.09201e-05
  32  0.290352
  33  0.302969
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  8.231e-01  3.030e-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.219e+00  2.904e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.80
Ra Dec: 351.737 -41.509
Photon Index (Fixed Index): 2.78 +/- 0.00
Photon Flux (Fixed Index): 1.17e-07 +/- 7.48e-08
Energy Flux (Fixed Index): 2.67e-05 +/- 1.70e-05

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

Saving results to:
/scratch/kocevski/899469/likelihoodResults_467683201_467942401_4FGL_J2326.9-4130_daily_bin881.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) = 3764.76824544
delta logL = 0.211543238567

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3764.76008973
delta logL = 0.219698940202

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    59.378       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1781       1.0000          .0000       10.000    
     3 'Normalizat'    1.1929       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84422       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=   3764.760     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      258 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     59.378        753.37        .13017E-02    .27880E-03
   2  Index         3.1780        3.7119        .10552        .87736E-04
   3  Normalizat    1.1936        .10409        .50654E-01   -.28276E-05
   4  Prefactor     .84356        .11157        .63447E-01   -.43740E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 59.3781
  Index      = 3.17803
  Normalizat = 1.19357
  Prefactor  = 0.843555
 **********
 **   18 **HESSE 
 **********

 FCN=   3764.760     FROM HESSE     STATUS=OK            31 CALLS      289 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     59.378        65.093        .52066E-04   -1.4165    
   2  Index         3.1780        .69882        .43123E-02   -.37298    
   3  Normalizat    1.1936        .28735        .22395E-03   -.86802    
   4  Prefactor     .84356        .30214        .28063E-03   -.98142    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.55971e-10
Minuit parameter uncertainties:
  1  65.1713
  2  0.70147
  3  0.287735
  4  0.302738
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/899469': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3764.76008702
delta logL = 0.219701650263

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  8.436e-01  3.027e-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.194e+00  2.877e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.28
Ra Dec: 351.737 -41.509
Photon Index (Free Index): 3.18 +/- 0.70
Photon Flux (Free Index): 1.39e-07 +/- 8.54e-08
Energy Flux (Free Index): 2.57e-05 +/- 1.58e-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/899469/cmap_HighResolution_467683201_467942401_4FGL_J2326.9-4130_daily_bin881.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.08e-02', comment='SUCCESS', photon_flux='1.17e-07', energy_flux2='2.57e-05', photon_flux_error='7.48e-08', dlogl='2.20e-01', energy_flux='2.67e-05', photon_flux2='1.39e-07', job_status='DONE', time_completed='2021-09-29 19:29:14.368537', photon_index_error2='0.70', photon_index2='3.18', ts='3.80', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='2.63e-07', energy_flux_error2='1.58e-05', EG='1.22', time_epoch_completed='1632968954.37', return_code='0', job_id='899469', GAL2='0.84', EG2='1.19', return_code2='0', energy_flux_error='1.70e-05', photon_flux_error2='8.54e-08', ts2='4.28', photon_index='2.78' WHERE bin_id='881' AND source_name='4FGL J2326.9-4130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:29:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 899469: <4FGL_J2326.9-4130_daily_bin881> in cluster <slac> Done

Job <4FGL_J2326.9-4130_daily_bin881> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 19:15:41 2021
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 19:15:44 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:15:44 2021
Terminated at Wed Sep 29 19:29:15 2021
Results reported at Wed Sep 29 19:29:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.9-4130_daily_bin881 351.737 -41.5089 467683201 467942401 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 :                                   677.34 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             271.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            814 sec.

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

