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


Performing analysis on: 4FGL_J2326.9-4130_daily_bin1066
RA = 351.737, Dec = -41.5089
tmin = 515635201, tmax = 515894401
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='900978', job_status='RUN', time_executed='2021-09-29 19:21:40.978549', time_epoch_executed='1632968500.98' WHERE source_name='4FGL J2326.9-4130' and cadence='daily' and bin_id='1066'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/900978

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/900978/ft1_4FGL_J2326.9-4130_daily_bin1066.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/900978/ft2_4FGL_J2326.9-4130_daily_bin1066.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/900978/ft1_4FGL_J2326.9-4130_daily_bin1066.fits outfile=/scratch/kocevski/900978/ft1_filteredMKT_4FGL_J2326.9-4130_daily_bin1066.fits ra=351.737 dec=-41.5089 rad=12.0 tmin=515635201.0 tmax=515894401.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.51
user 3.24
sys 0.21

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/900978/ft1_filtered_4FGL_J2326.9-4130_daily_bin1066.fits" evtable="EVENTS" scfile=/scratch/kocevski/900978/ft2_4FGL_J2326.9-4130_daily_bin1066.fits sctable="SC_DATA" outfile=/scratch/kocevski/900978/ltcube_515635201_515894401_4FGL_J2326.9-4130_daily_bin1066.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/900978/ft2_4FGL_J2326.9-4130_daily_bin1066.fits
.....................!
real 11.96
user 11.58
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/900978/ft1_filtered_4FGL_J2326.9-4130_daily_bin1066.fits evtable="EVENTS" scfile=/scratch/kocevski/900978/ft2_4FGL_J2326.9-4130_daily_bin1066.fits sctable="SC_DATA" expcube=/scratch/kocevski/900978/ltcube_515635201_515894401_4FGL_J2326.9-4130_daily_bin1066.fits outfile=/scratch/kocevski/900978/expmap_515635201_515894401_4FGL_J2326.9-4130_daily_bin1066.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/900978/ltcube_515635201_515894401_4FGL_J2326.9-4130_daily_bin1066.fits
.....................!
real 190.86
user 185.24
sys 4.85

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/900978/ft1_filtered_4FGL_J2326.9-4130_daily_bin1066.fits scfile=/scratch/kocevski/900978/ft2_4FGL_J2326.9-4130_daily_bin1066.fits outfile=/scratch/kocevski/900978/cmap_515635201_515894401_4FGL_J2326.9-4130_daily_bin1066.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/900978/ft1_filtered_4FGL_J2326.9-4130_daily_bin1066.fits scfile=/scratch/kocevski/900978/ft2_4FGL_J2326.9-4130_daily_bin1066.fits outfile=/scratch/kocevski/900978/cmap_HighResolution_515635201_515894401_4FGL_J2326.9-4130_daily_bin1066.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.829       1.0000         .10000E-03   10000.    
     2 'Prefactor '    52.131       1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.492       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.6371       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.4283       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.024       1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.252       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.512       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.6558       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10383E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.5118       1.0000         .10000E-03   10000.    
    19 'norm      '    5.2780       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.4356       1.0000         .10000E-03   10000.    
    21 'Prefactor '    60.430       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.7952       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10325E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .12606E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10664E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    33.053       1.0000         .10000E-03   10000.    
    29 'Prefactor '    1.2420       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .64333E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    39.188       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .83619       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .75488       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=   6401.200     FROM MIGRAD    STATUS=CONVERGED    885 CALLS     4634 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.834        35.479       -.10653E-06    .14798E-04
   2  Prefactor     52.151        24.924       -.27503E-06    .15422E-03
   3  Prefactor     18.490        31.858        .88588E-07   -.35014E-05
   4  Prefactor     .10000E-03    6.1501        .11627E-06** at limit **
   5  Prefactor     3.6377        3.8154        .42375E-07    .86641E-04
   6  Prefactor     4.4287        2.7828        .19725E-07    .50454E-05
   7  Prefactor     12.014        19.826        .95664E-07    .27826E-06
   8  Prefactor     19.252        6.8155        .87862E-08    .11844E-04
   9  Prefactor     .10000E-03    9.5972        .61194E-07** at limit **
  10  Prefactor     .10000E-03    9.8024        .10680E-06** at limit **
  11  Prefactor     20.516        13.334       -.44099E-07   -.46766E-05
  12  Prefactor     3.6572        5.0310        .36982E-06    .10144E-03
  13  Prefactor     .10000E-03    79.193        .73265E-06** at limit **
  14  Prefactor     .10000E-03    15.613       -.82600E-07** at limit **
  15  Prefactor     .10000E-03    4.4400        .59675E-07** at limit **
  16  norm          .10000E-03    4.2900       -.61366E-07** at limit **
  17  norm          .10000E-03    1.6826        .15093E-07** at limit **
  18  norm          5.5124        4.7411       -.39886E-07   -.46166E-04
  19  norm          5.2777        6.6959        .23821E-06    .35695E-04
  20  Prefactor     3.4364        3.2760        .74604E-08    .31392E-05
  21  Prefactor     60.374        42.076       -.72662E-07   -.78953E-04
  22  Prefactor     .10000E-03    40.869        .14291E-06** at limit **
  23  norm          4.7983        5.6791       -.27372E-07    .43417E-04
  24  Prefactor     .10000E-03    14.575       -.15318E-06** at limit **
  25  norm          .10000E-03    .33009        .45713E-08** at limit **
  26  norm          .10000E-03    2.5204       -.66831E-06** at limit **
  27  Prefactor     .10004E-03    1.6614        .56301E-06** at limit **
  28  Prefactor     33.035        22.176        .15505E-06   -.79600E-04
  29  Prefactor     1.2471        5.4649        .31784E-05    .31342E-03
  30  Prefactor     .10001E-03    2.2038       -.97841E-06** at limit **
  31  Prefactor     39.180        47.074       -.25064E-05   -.87331E-04
  32  Normalizat    .83587        .16186        .15500E-05   -.17860E-04
  33  Prefactor     .75512        .16856       -.23249E-05    .61660E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.8342
  Prefactor  = 52.1507
  Prefactor  = 18.4904
  Prefactor  = 0.0001
  Prefactor  = 3.63774
  Prefactor  = 4.4287
  Prefactor  = 12.0135
  Prefactor  = 19.2522
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.5158
  Prefactor  = 3.65718
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.51241
  norm       = 5.27773
  Prefactor  = 3.43639
  Prefactor  = 60.3739
  Prefactor  = 0.0001
  norm       = 4.79833
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100045
  Prefactor  = 33.0347
  Prefactor  = 1.24713
  Prefactor  = 0.000100013
  Prefactor  = 39.1802
  Normalizat = 0.835875
  Prefactor  = 0.755119
 **********
 **   18 **HESSE 
 **********

 FCN=   6401.200     FROM HESSE     STATUS=OK           697 CALLS     5331 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.834        35.502        .61982E-04   -1.4413    
   2  Prefactor     52.151        24.356        .55548E-04   -1.4262    
   3  Prefactor     18.490        31.827        .93138E-04   -1.4848    
   4  Prefactor     .10000E-03    6.1554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.6377        3.8158        .15543E-03   -1.5326    
   6  Prefactor     4.4287        2.7807        .10206E-03   -1.5287    
   7  Prefactor     12.014        19.819        .11552E-03   -1.5015    
   8  Prefactor     19.252        6.8207        .91284E-04   -1.4830    
   9  Prefactor     .10000E-03    9.6256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.8387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     20.516        13.359        .88437E-04   -1.4802    
  12  Prefactor     3.6572        5.0293        .20230E-03   -1.5325    
  13  Prefactor     .10000E-03    80.920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.4614        .16463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.3066        .16183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.6859        .10135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.5124        4.7526        .14751E-03   -1.5238    
  19  norm          5.2777        6.6863        .17495E-03   -1.5248    
  20  Prefactor     3.4364        3.2773        .13700E-03   -1.5337    
  21  Prefactor     60.374        41.946        .51614E-04   -1.4152    
  22  Prefactor     .10000E-03    41.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.7983        5.6299        .14535E-03   -1.5270    
  24  Prefactor     .10000E-03    14.931        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    .34044        .89498E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    2.6126        .24697E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10004E-03    14.767        .17839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     33.035        21.195        .69698E-04   -1.4558    
  29  Prefactor     1.2471        6.0086        .33873E-03   -1.5485    
  30  Prefactor     .10001E-03    6.5102        .19536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     39.180        47.245        .64028E-04   -1.4455    
  32  Normalizat    .83587        .18394        .21906E-03   -.98751    
  33  Prefactor     .75512        .19040        .25454E-03   -1.0140    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.36583e-09
Minuit parameter uncertainties:
  1  35.5196
  2  24.3602
  3  31.8558
  4  7.82156e-06
  5  3.81601
  6  2.78078
  7  19.8299
  8  6.82097
  9  3.7287e-07
  10  1.07531e-05
  11  13.3611
  12  5.02993
  13  0.000289542
  14  4.06062e-05
  15  4.76397e-06
  16  1.87524e-06
  17  5.96461e-07
  18  4.75294
  19  6.68726
  20  3.27745
  21  41.9665
  22  3.06126e-06
  23  5.63052
  24  8.26005e-06
  25  3.67277e-07
  26  1.75188e-05
  27  0.00162855
  28  21.1999
  29  5.47552
  30  0.000586668
  31  47.2903
  32  0.184079
  33  0.190565
Done.

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

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  6.037e+01  4.197e+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:  7.551e-01  1.906e-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.359e-01  1.841e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.11
Ra Dec: 351.737 -41.509
Photon Index (Fixed Index): 2.78 +/- 0.00
Photon Flux (Fixed Index): 7.91e-08 +/- 5.49e-08
Energy Flux (Fixed Index): 1.80e-05 +/- 1.25e-05

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) = 6400.54085023
delta logL = 0.659384836713

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6400.52430858
delta logL = 0.675926489512

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.700       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7593       1.0000          .0000       10.000    
     3 'Normalizat'    .78953       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79489       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=   6400.524     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      283 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.701        410.47        .92619E-04    .27790E-03
   2  Index         3.7594        6.8739        .41013E-02    .15959E-03
   3  Normalizat    .78954        .21423        .22455E-03    .22529E-04
   4  Prefactor     .79486        .23749        .24887E-03   -.14111E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.7014
  Index      = 3.75942
  Normalizat = 0.78954
  Prefactor  = 0.794861
 **********
 **   18 **HESSE 
 **********

 FCN=   6400.524     FROM HESSE     STATUS=OK            25 CALLS      308 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.701        30.634        .37048E-05   -1.4843    
   2  Index         3.7594        1.0434        .16405E-03   -.25073    
   3  Normalizat    .78954        .17582        .89822E-05   -1.0046    
   4  Prefactor     .79486        .19173        .99547E-05   -.99918    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12798e-10
Minuit parameter uncertainties:
  1  30.6601
  2  1.05169
  3  0.175951
  4  0.191887
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/900978': 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) = 6400.52430846
delta logL = 0.67592660861

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  7.949e-01  1.919e-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:  7.895e-01  1.760e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.81
Ra Dec: 351.737 -41.509
Photon Index (Free Index): 3.76 +/- 1.05
Photon Flux (Free Index): 1.09e-07 +/- 5.19e-08
Energy Flux (Free Index): 1.70e-05 +/- 8.12e-06

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/900978/cmap_HighResolution_515635201_515894401_4FGL_J2326.9-4130_daily_bin1066.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.91e-08', energy_flux2='1.70e-05', photon_flux_error='5.49e-08', dlogl='6.76e-01', energy_flux='1.80e-05', photon_flux2='1.09e-07', job_status='DONE', time_completed='2021-09-29 19:35:52.956280', photon_index_error2='1.05', photon_index2='3.76', ts='5.11', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', energy_flux_error2='8.12e-06', EG='0.84', time_epoch_completed='1632969352.96', return_code='0', job_id='900978', GAL2='0.79', EG2='0.79', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='5.19e-08', ts2='6.81', photon_index='2.78' WHERE bin_id='1066' AND source_name='4FGL J2326.9-4130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:35:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 900978: <4FGL_J2326.9-4130_daily_bin1066> in cluster <slac> Done

Job <4FGL_J2326.9-4130_daily_bin1066> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 19:20:35 2021
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 19:20:37 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:37 2021
Terminated at Wed Sep 29 19:35:54 2021
Results reported at Wed Sep 29 19:35:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.9-4130_daily_bin1066 351.737 -41.5089 515635201 515894401 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 :                                   843.35 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             284.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            919 sec.

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

