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


Performing analysis on: 4FGL_J2326.9-4130_daily_bin1051
RA = 351.737, Dec = -41.5089
tmin = 511747201, tmax = 512006401
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='900955', job_status='RUN', time_executed='2021-09-29 19:23:26.695275', time_epoch_executed='1632968606.7' WHERE source_name='4FGL J2326.9-4130' and cadence='daily' and bin_id='1051'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/900955

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/900955/ft1_4FGL_J2326.9-4130_daily_bin1051.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/900955/ft2_4FGL_J2326.9-4130_daily_bin1051.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/900955/ft1_4FGL_J2326.9-4130_daily_bin1051.fits outfile=/scratch/kocevski/900955/ft1_filteredMKT_4FGL_J2326.9-4130_daily_bin1051.fits ra=351.737 dec=-41.5089 rad=12.0 tmin=511747201.0 tmax=512006401.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.79
user 2.57
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/900955/ft1_filtered_4FGL_J2326.9-4130_daily_bin1051.fits" evtable="EVENTS" scfile=/scratch/kocevski/900955/ft2_4FGL_J2326.9-4130_daily_bin1051.fits sctable="SC_DATA" outfile=/scratch/kocevski/900955/ltcube_511747201_512006401_4FGL_J2326.9-4130_daily_bin1051.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/900955/ft2_4FGL_J2326.9-4130_daily_bin1051.fits
.....................!
real 9.09
user 8.76
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/900955/ft1_filtered_4FGL_J2326.9-4130_daily_bin1051.fits evtable="EVENTS" scfile=/scratch/kocevski/900955/ft2_4FGL_J2326.9-4130_daily_bin1051.fits sctable="SC_DATA" expcube=/scratch/kocevski/900955/ltcube_511747201_512006401_4FGL_J2326.9-4130_daily_bin1051.fits outfile=/scratch/kocevski/900955/expmap_511747201_512006401_4FGL_J2326.9-4130_daily_bin1051.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/900955/ltcube_511747201_512006401_4FGL_J2326.9-4130_daily_bin1051.fits
.....................!
real 147.64
user 143.27
sys 4.13

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/900955/ft1_filtered_4FGL_J2326.9-4130_daily_bin1051.fits scfile=/scratch/kocevski/900955/ft2_4FGL_J2326.9-4130_daily_bin1051.fits outfile=/scratch/kocevski/900955/cmap_511747201_512006401_4FGL_J2326.9-4130_daily_bin1051.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.46
user 0.30
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/900955/ft1_filtered_4FGL_J2326.9-4130_daily_bin1051.fits scfile=/scratch/kocevski/900955/ft2_4FGL_J2326.9-4130_daily_bin1051.fits outfile=/scratch/kocevski/900955/cmap_HighResolution_511747201_512006401_4FGL_J2326.9-4130_daily_bin1051.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.48
user 0.31
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/900955/ft1_filtered_4FGL_J2326.9-4130_daily_bin1051.fits evtable="EVENTS" scfile=/scratch/kocevski/900955/ft2_4FGL_J2326.9-4130_daily_bin1051.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/900955/Model_4FGL_J2326.9-4130_daily_bin1051.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/900955/ft1_filtered_4FGL_J2326.9-4130_daily_bin1051.fits.....................!
real 36.31
user 35.18
sys 1.03

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    33.603       1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.211       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.9099       1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.456       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.8591       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.9138       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.098       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10361E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.5201       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    7.0364       1.0000         .10000E-03   10000.    
    19 'norm      '    5.1601       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.0583       1.0000         .10000E-03   10000.    
    21 'Prefactor '    36.054       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    5.2475       1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.0737       1.0000         .10000E-03   10000.    
    25 'norm      '    .80011       1.0000         .10000E-03   10000.    
    26 'norm      '    4.4141       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    18.232       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10685E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .18577       1.0000         .10000E-03   10000.    
    31 'Prefactor '    45.843       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .80973       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .88191       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=   6301.660     FROM MIGRAD    STATUS=CONVERGED    865 CALLS     4569 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.075       -.68062E-06** at limit **
   2  Prefactor     .10000E-03    18.860        .15570E-05** at limit **
   3  Prefactor     33.613        38.553       -.25504E-05   -.86460E-04
   4  Prefactor     17.206        21.927        .94270E-06    .10189E-04
   5  Prefactor     .10000E-03    3.8934       -.44876E-06** at limit **
   6  Prefactor     4.9100        3.3322        .12010E-07   -.48663E-04
   7  Prefactor     18.450        23.299        .11244E-05    .41848E-05
   8  Prefactor     7.8592        5.6020        .81246E-06   -.62309E-04
   9  Prefactor     4.9146        11.134        .25192E-05   -.31135E-04
  10  Prefactor     12.098        16.135       -.11146E-06   -.20430E-04
  11  Prefactor     .10000E-03    9.1079        .10868E-06** at limit **
  12  Prefactor     .10000E-03    3.1634       -.40904E-08** at limit **
  13  Prefactor     .10000E-03    12.929       -.47819E-06** at limit **
  14  Prefactor     .10000E-03    13.988        .36531E-06** at limit **
  15  Prefactor     .10000E-03    27.513       -.28413E-07** at limit **
  16  norm          4.5200        6.8292        .21759E-07   -.18359E-04
  17  norm          .10000E-03    2.3304        .62365E-07** at limit **
  18  norm          7.0360        4.6472       -.19378E-06    .39816E-04
  19  norm          5.1602        5.0044        .13556E-05   -.87886E-04
  20  Prefactor     5.0600        9.6678        .56261E-05   -.19536E-03
  21  Prefactor     36.062        35.662       -.13988E-05   -.55742E-04
  22  Prefactor     .10000E-03    9.2403        .11853E-07** at limit **
  23  norm          5.2474        4.0540        .25616E-06   -.39809E-04
  24  Prefactor     8.0635        21.747       -.61332E-05   -.24547E-05
  25  norm          .80022        .85674       -.20069E-06   -.88782E-03
  26  norm          4.4139        3.8762        .21766E-06   -.78062E-05
  27  Prefactor     .10000E-03    1.0625        .16663E-06** at limit **
  28  Prefactor     18.233        13.934        .13460E-06   -.65880E-04
  29  Prefactor     .10000E-03    4.1166       -.10141E-05** at limit **
  30  Prefactor     .17975        1.6603        .17165E-07   -.72948E-04
  31  Prefactor     45.834        54.217        .24799E-05    .39996E-04
  32  Normalizat    .80955        .15646       -.30491E-06   -.18486E-03
  33  Prefactor     .88213        .16964       -.76836E-06   -.11804E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 33.6134
  Prefactor  = 17.2065
  Prefactor  = 0.0001
  Prefactor  = 4.91005
  Prefactor  = 18.4495
  Prefactor  = 7.85915
  Prefactor  = 4.91465
  Prefactor  = 12.0985
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.51998
  norm       = 0.0001
  norm       = 7.03599
  norm       = 5.16019
  Prefactor  = 5.06002
  Prefactor  = 36.0618
  Prefactor  = 0.0001
  norm       = 5.24739
  Prefactor  = 8.06347
  norm       = 0.80022
  norm       = 4.4139
  Prefactor  = 0.0001
  Prefactor  = 18.2332
  Prefactor  = 0.000100001
  Prefactor  = 0.179753
  Prefactor  = 45.8344
  Normalizat = 0.809552
  Prefactor  = 0.882126
 **********
 **   18 **HESSE 
 **********

 FCN=   6301.660     FROM HESSE     STATUS=OK           701 CALLS     5270 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    19.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     33.613        38.648        .69128E-04   -1.4548    
   4  Prefactor     17.206        21.872        .96541E-04   -1.4878    
   5  Prefactor     .10000E-03    3.9289        .15264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.9100        3.3280        .11363E-03   -1.5265    
   7  Prefactor     18.450        23.274        .93230E-04   -1.4849    
   8  Prefactor     7.8592        5.6034        .71516E-03   -1.5147    
   9  Prefactor     4.9146        11.110        .90722E-03   -1.5265    
  10  Prefactor     12.098        16.130        .11517E-03   -1.5012    
  11  Prefactor     .10000E-03    9.2366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.2104        .13783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    28.185        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.5200        6.8224        .18936E-03   -1.5283    
  17  norm          .10000E-03    2.3343        .11834E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          7.0360        4.6499        .66148E-03   -1.5177    
  19  norm          5.1602        4.9947        .84521E-03   -1.5254    
  20  Prefactor     5.0600        9.7008        .89391E-03   -1.5258    
  21  Prefactor     36.062        35.691        .66744E-04   -1.4506    
  22  Prefactor     .10000E-03    9.2458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          5.2474        4.0449        .11596E-03   -1.5250    
  24  Prefactor     8.0635        21.778        .14110E-03   -1.5140    
  25  norm          .80022        .82246        .70935E-03   -1.5529    
  26  norm          4.4139        3.8603        .13514E-03   -1.5288    
  27  Prefactor     .10000E-03    1.0729        .79923E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     18.233        13.921        .93801E-04   -1.4854    
  29  Prefactor     .10000E-03    4.2433        .31510E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .17975        11.798        .19299E-02   -1.5623    
  31  Prefactor     45.834        54.563        .59217E-04   -1.4353    
  32  Normalizat    .80955        .18806        .22390E-03   -.99715    
  33  Prefactor     .88213        .20338        .24476E-03   -.96768    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63536e-08
Minuit parameter uncertainties:
  1  3.49121e-06
  2  0.000300109
  3  38.6764
  4  21.8821
  5  5.60377e-05
  6  3.32816
  7  23.2851
  8  5.60378
  9  11.1145
  10  16.136
  11  1.51984e-05
  12  6.05146e-07
  13  1.72862e-06
  14  9.08146e-06
  15  5.87069e-05
  16  6.82357
  17  3.32622e-06
  18  4.65012
  19  4.99509
  20  9.70379
  21  35.7118
  22  1.51107e-06
  23  4.04511
  24  21.799
  25  0.822472
  26  3.86049
  27  1.11159e-05
  28  13.9239
  29  0.000126655
  30  2.91233
  31  54.6225
  32  0.188213
  33  0.203556
Done.

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

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  3.606e+01  3.571e+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.821e-01  2.036e-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.096e-01  1.882e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.78
Ra Dec: 351.737 -41.509
Photon Index (Fixed Index): 2.78 +/- 0.00
Photon Flux (Fixed Index): 4.72e-08 +/- 4.67e-08
Energy Flux (Fixed Index): 1.07e-05 +/- 1.06e-05

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

Saving results to:
/scratch/kocevski/900955/likelihoodResults_511747201_512006401_4FGL_J2326.9-4130_daily_bin1051.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) = 6301.51416711
delta logL = 0.145620681181

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6301.50720441
delta logL = 0.152583381288

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    54.407       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3384       1.0000          .0000       10.000    
     3 'Normalizat'    .82455       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86823       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=   6301.507     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      302 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     54.421        48.598        .54380E-04    .30523E-04
   2  Index         2.3384        .69882        .90781E-02    .18068E-03
   3  Normalizat    .82448        .17742        .22208E-03    .45765E-04
   4  Prefactor     .86839        .20017        .24638E-03   -.61047E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 54.4205
  Index      = 2.33843
  Normalizat = 0.824476
  Prefactor  = 0.868386
 **********
 **   18 **HESSE 
 **********

 FCN=   6301.507     FROM HESSE     STATUS=OK            25 CALLS      327 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     54.421        47.519        .21752E-05   -1.4231    
   2  Index         2.3384        .68326        .18156E-02   -.56133    
   3  Normalizat    .82448        .17752        .88833E-05   -.99167    
   4  Prefactor     .86839        .20030        .98552E-05   -.97255    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.12501e-11
Minuit parameter uncertainties:
  1  47.5518
  2  0.686267
  3  0.177647
  4  0.200469
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/900955': 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) = 6301.50720383
delta logL = 0.152583966668

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  5.442e+01  4.755e+01  1.000e-04  1.000e+04 ( 1.000e-13)
436        Index:  2.338e+00  6.863e-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.684e-01  2.005e-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.245e-01  1.776e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.14
Ra Dec: 351.737 -41.509
Photon Index (Free Index): 2.34 +/- 0.69
Photon Flux (Free Index): 4.00e-08 +/- 3.72e-08
Energy Flux (Free Index): 1.43e-05 +/- 1.37e-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/900955/cmap_HighResolution_511747201_512006401_4FGL_J2326.9-4130_daily_bin1051.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.88e-03', comment='SUCCESS', photon_flux='4.72e-08', energy_flux2='1.43e-05', photon_flux_error='4.67e-08', dlogl='1.53e-01', energy_flux='1.07e-05', photon_flux2='4.00e-08', job_status='DONE', time_completed='2021-09-29 19:36:52.916078', photon_index_error2='0.69', photon_index2='2.34', ts='1.78', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='1.25e-07', energy_flux_error2='1.37e-05', EG='0.81', time_epoch_completed='1632969412.92', return_code='0', job_id='900955', GAL2='0.87', EG2='0.82', return_code2='0', energy_flux_error='1.06e-05', photon_flux_error2='3.72e-08', ts2='2.14', photon_index='2.78' WHERE bin_id='1051' AND source_name='4FGL J2326.9-4130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:36:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 900955: <4FGL_J2326.9-4130_daily_bin1051> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.9-4130_daily_bin1051 351.737 -41.5089 511747201 512006401 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 :                                   764.42 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             263.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   978 sec.
    Turnaround time :                            980 sec.

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

