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


Performing analysis on: 4FGL_J2326.9-4130_daily_bin1362
RA = 351.737, Dec = -41.5089
tmin = 592358401, tmax = 592617601
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='902680', job_status='RUN', time_executed='2021-09-29 19:27:56.345691', time_epoch_executed='1632968876.35' WHERE source_name='4FGL J2326.9-4130' and cadence='daily' and bin_id='1362'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/902680

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/902680/ft1_4FGL_J2326.9-4130_daily_bin1362.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/902680/ft2_4FGL_J2326.9-4130_daily_bin1362.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/902680/ft1_4FGL_J2326.9-4130_daily_bin1362.fits outfile=/scratch/kocevski/902680/ft1_filteredMKT_4FGL_J2326.9-4130_daily_bin1362.fits ra=351.737 dec=-41.5089 rad=12.0 tmin=592358401.0 tmax=592617601.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.52
user 3.27
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/902680/ft1_filtered_4FGL_J2326.9-4130_daily_bin1362.fits" evtable="EVENTS" scfile=/scratch/kocevski/902680/ft2_4FGL_J2326.9-4130_daily_bin1362.fits sctable="SC_DATA" outfile=/scratch/kocevski/902680/ltcube_592358401_592617601_4FGL_J2326.9-4130_daily_bin1362.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/902680/ft2_4FGL_J2326.9-4130_daily_bin1362.fits
.....................!
real 12.20
user 11.82
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/902680/ft1_filtered_4FGL_J2326.9-4130_daily_bin1362.fits evtable="EVENTS" scfile=/scratch/kocevski/902680/ft2_4FGL_J2326.9-4130_daily_bin1362.fits sctable="SC_DATA" expcube=/scratch/kocevski/902680/ltcube_592358401_592617601_4FGL_J2326.9-4130_daily_bin1362.fits outfile=/scratch/kocevski/902680/expmap_592358401_592617601_4FGL_J2326.9-4130_daily_bin1362.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/902680/ltcube_592358401_592617601_4FGL_J2326.9-4130_daily_bin1362.fits
.....................!
real 193.47
user 186.15
sys 5.14

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/902680/ft1_filtered_4FGL_J2326.9-4130_daily_bin1362.fits scfile=/scratch/kocevski/902680/ft2_4FGL_J2326.9-4130_daily_bin1362.fits outfile=/scratch/kocevski/902680/cmap_592358401_592617601_4FGL_J2326.9-4130_daily_bin1362.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.56
user 0.36
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/902680/ft1_filtered_4FGL_J2326.9-4130_daily_bin1362.fits evtable="EVENTS" scfile=/scratch/kocevski/902680/ft2_4FGL_J2326.9-4130_daily_bin1362.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/902680/Model_4FGL_J2326.9-4130_daily_bin1362.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/902680/ft1_filtered_4FGL_J2326.9-4130_daily_bin1362.fits.....................!
real 37.21
user 35.86
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    48.956       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .25383E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.0260       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.7647       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.2446       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.864       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.3044       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.6227       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .19624E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.3510       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    8.0463       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    86.468       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.3676       1.0000         .10000E-03   10000.    
    23 'norm      '    6.1959       1.0000         .10000E-03   10000.    
    24 'Prefactor '    18.761       1.0000         .10000E-03   10000.    
    25 'norm      '    .76124       1.0000         .10000E-03   10000.    
    26 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    2.5433       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .96643       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .64653       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=   4523.706     FROM MIGRAD    STATUS=CONVERGED    906 CALLS     4620 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     48.964        54.717       -.17415E-06    .30065E-04
   2  Prefactor     .10016E-03    124.37        .50595E-04** at limit **
   3  Prefactor     .10000E-03    15.432        .52298E-06** at limit **
   4  Prefactor     .10000E-03    5.3568       -.57258E-06** at limit **
   5  Prefactor     3.0260        3.3260        .89000E-07    .56212E-04
   6  Prefactor     5.7645        4.2581       -.11197E-05   -.88958E-04
   7  Prefactor     .10000E-03    30.091        .43566E-06** at limit **
   8  Prefactor     9.2450        8.2258        .15424E-06    .12523E-03
   9  Prefactor     .10000E-03    17.091       -.89565E-06** at limit **
  10  Prefactor     .10000E-03    9.4689        .12150E-06** at limit **
  11  Prefactor     24.864        18.604        .16655E-06   -.47971E-05
  12  Prefactor     3.3044        5.5266        .53185E-05    .73707E-03
  13  Prefactor     4.6283        111.80        .14968E-06    .24387E-05
  14  Prefactor     .10017E-03    400.33       -.22942E-05** at limit **
  15  Prefactor     .10000E-03    5.4828        .51415E-06** at limit **
  16  norm          .10000E-03    3.6485        .31375E-07** at limit **
  17  norm          2.3511        3.6428       -.21005E-07    .25373E-04
  18  norm          .10000E-03    3.4360       -.64800E-09** at limit **
  19  norm          8.0468        9.6509        .26617E-07    .49893E-04
  20  Prefactor     .10000E-03    4.1579        .86852E-06** at limit **
  21  Prefactor     86.482        61.184       -.16513E-05    .33383E-04
  22  Prefactor     4.3677        203.68        .30745E-05   -.12282E-05
  23  norm          6.1950        7.2610        .64592E-06    .87716E-04
  24  Prefactor     18.765        15.186       -.79896E-06   -.17975E-03
  25  norm          .76089        .98139        .27647E-06    .10213E-02
  26  norm          .10000E-03    2.9194        .13908E-06** at limit **
  27  Prefactor     .10000E-03    2.2985       -.27531E-06** at limit **
  28  Prefactor     .10000E-03    10.593       -.28474E-06** at limit **
  29  Prefactor     .10000E-03    6.0995       -.10549E-05** at limit **
  30  Prefactor     2.5413        4.6060        .45964E-06   -.56052E-03
  31  Prefactor     .10000E-03    69.781        .11580E-06** at limit **
  32  Normalizat    .96645        .18851       -.28189E-05   -.39492E-03
  33  Prefactor     .64651        .18911        .39235E-05    .12580E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 48.9644
  Prefactor  = 0.000100165
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.02603
  Prefactor  = 5.7645
  Prefactor  = 0.0001
  Prefactor  = 9.24496
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.8636
  Prefactor  = 3.3044
  Prefactor  = 4.62826
  Prefactor  = 0.000100175
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.3511
  norm       = 0.0001
  norm       = 8.04677
  Prefactor  = 0.000100001
  Prefactor  = 86.4819
  Prefactor  = 4.36775
  norm       = 6.19496
  Prefactor  = 18.7651
  norm       = 0.760891
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.54126
  Prefactor  = 0.000100001
  Normalizat = 0.966447
  Prefactor  = 0.646514
 **********
 **   18 **HESSE 
 **********

 FCN=   4523.706     FROM HESSE     STATUS=OK           695 CALLS     5315 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     48.964        54.892        .57312E-04   -1.4307    
   2  Prefactor     .10016E-03    150.26        .58052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    15.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.3584        .15205E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.0260        3.3286        .12521E-03   -1.5360    
   6  Prefactor     5.7645        4.2528        .11413E-03   -1.5228    
   7  Prefactor     .10000E-03    30.134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.2450        8.2088        .13181E-03   -1.5100    
   9  Prefactor     .10000E-03    17.164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.4838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     24.864        18.622        .80334E-04   -1.4710    
  12  Prefactor     3.3044        8.4922        .11136E-02   -1.5344    
  13  Prefactor     4.6283        111.08        .18720E-03   -1.5278    
  14  Prefactor     .10017E-03    415.31        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.4875        .15373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.6501        .12547E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.3511        3.6257        .15566E-03   -1.5401    
  18  norm          .10000E-03    3.4485        .12157E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          8.0468        9.6179        .14135E-03   -1.5141    
  20  Prefactor     .10000E-03    4.2244        .13380E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     86.482        61.431        .43204E-04   -1.3845    
  22  Prefactor     4.3677        206.25        .19273E-03   -1.5290    
  23  norm          6.1950        7.2512        .13808E-03   -1.5210    
  24  Prefactor     18.765        15.040        .92469E-04   -1.4841    
  25  norm          .76089        .93028        .69684E-03   -1.5534    
  26  norm          .10000E-03    2.9705        .11205E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    2.3624        .19903E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    10.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    6.3716        .32482E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     2.5413        4.2717        .16720E-03   -1.5389    
  31  Prefactor     .10000E-03    70.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .96645        .23097        .20757E-03   -.94163    
  33  Prefactor     .64651        .23161        .27313E-03   -1.0566    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.16695e-09
Minuit parameter uncertainties:
  1  54.9492
  2  0.00997286
  3  3.64689e-05
  4  1.08739e-05
  5  3.32884
  6  4.25302
  7  0.000206825
  8  8.20979
  9  0.000151179
  10  3.95212e-05
  11  18.6259
  12  8.49532
  13  45.4417
  14  0.0171624
  15  1.6259e-05
  16  3.53429e-07
  17  3.62602
  18  6.51923e-06
  19  9.61975
  20  0.000130285
  21  61.4758
  22  60.2493
  23  7.25221
  24  15.0428
  25  0.930299
  26  1.98145e-05
  27  4.43737e-05
  28  1.51104e-05
  29  0.000178622
  30  4.27217
  31  0.000634037
  32  0.231212
  33  0.231951
Done.

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

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  8.648e+01  6.148e+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:  6.465e-01  2.320e-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:  9.664e-01  2.312e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.12
Ra Dec: 351.737 -41.509
Photon Index (Fixed Index): 2.78 +/- 0.00
Photon Flux (Fixed Index): 1.13e-07 +/- 8.04e-08
Energy Flux (Fixed Index): 2.58e-05 +/- 1.83e-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) = 4523.7038534
delta logL = 0.00259575488872

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4523.70001782
delta logL = 0.00643133887752

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    92.139       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7130       1.0000          .0000       10.000    
     3 'Normalizat'    .97091       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64272       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=   4523.700     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      230 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     92.139        889.01        .10466E-02   -.95261E-04
   2  Index         2.7130        3.5836        .12389        .85076E-04
   3  Normalizat    .97081        .89455E-01    .45801E-01    .43548E-05
   4  Prefactor     .64282        .84994E-01    .61897E-01    .12941E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 92.1394
  Index      = 2.713
  Normalizat = 0.970814
  Prefactor  = 0.64282
 **********
 **   18 **HESSE 
 **********

 FCN=   4523.700     FROM HESSE     STATUS=OK            31 CALLS      261 TOTAL
                     EDM=   .75E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     92.139        72.036        .41865E-04   -1.3785    
   2  Index         2.7130        .58841        .48349E-02   -.47507    
   3  Normalizat    .97081        .21261        .20718E-03   -.94015    
   4  Prefactor     .64282        .22780        .27382E-03   -1.0581    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.51709e-11
Minuit parameter uncertainties:
  1  72.1043
  2  0.590141
  3  0.212791
  4  0.228127
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/902680': 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) = 4523.70001772
delta logL = 0.00643143444995

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  9.214e+01  7.210e+01  1.000e-04  1.000e+04 ( 1.000e-13)
436        Index:  2.713e+00  5.901e-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:  6.428e-01  2.281e-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:  9.708e-01  2.128e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.26
Ra Dec: 351.737 -41.509
Photon Index (Free Index): 2.71 +/- 0.59
Photon Flux (Free Index): 1.10e-07 +/- 6.31e-08
Energy Flux (Free Index): 2.63e-05 +/- 1.50e-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/902680/cmap_HighResolution_592358401_592617601_4FGL_J2326.9-4130_daily_bin1362.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.13e-07', energy_flux2='2.63e-05', photon_flux_error='8.04e-08', dlogl='6.43e-03', energy_flux='2.58e-05', photon_flux2='1.10e-07', job_status='DONE', time_completed='2021-09-29 19:41:57.193827', photon_index_error2='0.59', photon_index2='2.71', ts='5.12', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', energy_flux_error2='1.50e-05', EG='0.97', time_epoch_completed='1632969717.19', return_code='0', job_id='902680', GAL2='0.64', EG2='0.97', return_code2='0', energy_flux_error='1.83e-05', photon_flux_error2='6.31e-08', ts2='5.26', photon_index='2.78' WHERE bin_id='1362' AND source_name='4FGL J2326.9-4130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:41:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 902680: <4FGL_J2326.9-4130_daily_bin1362> in cluster <slac> Done

Job <4FGL_J2326.9-4130_daily_bin1362> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 19:25:34 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 19:25:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 19:25:36 2021
Terminated at Wed Sep 29 19:41:57 2021
Results reported at Wed Sep 29 19:41:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.9-4130_daily_bin1362 351.737 -41.5089 592358401 592617601 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 :                                   684.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             239.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   981 sec.
    Turnaround time :                            983 sec.

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

