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


Performing analysis on: 4FGL_J2326.9-4130_daily_bin1056
RA = 351.737, Dec = -41.5089
tmin = 513043201, tmax = 513302401
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='900963', job_status='RUN', time_executed='2021-09-29 19:22:17.759078', time_epoch_executed='1632968537.76' WHERE source_name='4FGL J2326.9-4130' and cadence='daily' and bin_id='1056'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/900963

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/900963/ft1_4FGL_J2326.9-4130_daily_bin1056.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/900963/ft2_4FGL_J2326.9-4130_daily_bin1056.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/900963/ft1_4FGL_J2326.9-4130_daily_bin1056.fits outfile=/scratch/kocevski/900963/ft1_filteredMKT_4FGL_J2326.9-4130_daily_bin1056.fits ra=351.737 dec=-41.5089 rad=12.0 tmin=513043201.0 tmax=513302401.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 6.33
user 5.90
sys 0.39

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/900963/ft1_filtered_4FGL_J2326.9-4130_daily_bin1056.fits" evtable="EVENTS" scfile=/scratch/kocevski/900963/ft2_4FGL_J2326.9-4130_daily_bin1056.fits sctable="SC_DATA" outfile=/scratch/kocevski/900963/ltcube_513043201_513302401_4FGL_J2326.9-4130_daily_bin1056.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/900963/ft2_4FGL_J2326.9-4130_daily_bin1056.fits
.....................!
real 11.92
user 11.60
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/900963/ft1_filtered_4FGL_J2326.9-4130_daily_bin1056.fits evtable="EVENTS" scfile=/scratch/kocevski/900963/ft2_4FGL_J2326.9-4130_daily_bin1056.fits sctable="SC_DATA" expcube=/scratch/kocevski/900963/ltcube_513043201_513302401_4FGL_J2326.9-4130_daily_bin1056.fits outfile=/scratch/kocevski/900963/expmap_513043201_513302401_4FGL_J2326.9-4130_daily_bin1056.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/900963/ltcube_513043201_513302401_4FGL_J2326.9-4130_daily_bin1056.fits
.....................!
real 191.26
user 186.91
sys 4.04

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/900963/ft1_filtered_4FGL_J2326.9-4130_daily_bin1056.fits scfile=/scratch/kocevski/900963/ft2_4FGL_J2326.9-4130_daily_bin1056.fits outfile=/scratch/kocevski/900963/cmap_513043201_513302401_4FGL_J2326.9-4130_daily_bin1056.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/900963/ft1_filtered_4FGL_J2326.9-4130_daily_bin1056.fits scfile=/scratch/kocevski/900963/ft2_4FGL_J2326.9-4130_daily_bin1056.fits outfile=/scratch/kocevski/900963/cmap_HighResolution_513043201_513302401_4FGL_J2326.9-4130_daily_bin1056.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.41
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11028E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10302E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    28.989       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10506E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.922       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.5388       1.0000         .10000E-03   10000.    
    10 'Prefactor '    44.999       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.240       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.408       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10283E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10903E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.247       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .69278E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    9.9298       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .53675       1.0000         .10000E-03   10000.    
    26 'norm      '    .10140E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.1447       1.0000         .10000E-03   10000.    
    28 'Prefactor '    14.333       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10399E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    9.2837       1.0000         .10000E-03   10000.    
    31 'Prefactor '    28.538       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .82772       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.1891       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=   4176.548     FROM MIGRAD    STATUS=CONVERGED   1618 CALLS     5312 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    62.570        .18142E-02** at limit **
   2  Prefactor     .10000E-03    82.157        .18142E-02** at limit **
   3  Prefactor     .10000E-03    34.806        .18142E-02** at limit **
   4  Prefactor     29.009        36.605        .74411E-04   -.88614E-05
   5  Prefactor     .10000E-03    19.314        .36285E-03** at limit **
   6  Prefactor     .10000E-03    7.8275        .24857E-02** at limit **
   7  Prefactor     .10000E-03    21.716        .18142E-02** at limit **
   8  Prefactor     22.921        10.479        .83664E-04    .47288E-04
   9  Prefactor     3.5390        18.792        .10744E-02   -.86452E-05
  10  Prefactor     45.037        29.624        .59767E-04   -.29445E-04
  11  Prefactor     16.251        22.710        .99388E-04   -.29741E-05
  12  Prefactor     16.417        10.972        .98877E-04    .31619E-04
  13  Prefactor     .10000E-03    56.385        .18142E-02** at limit **
  14  Prefactor     .10000E-03    22.686        .18142E-02** at limit **
  15  Prefactor     .10000E-03    9.5732        .18142E-02** at limit **
  16  norm          .10000E-03    7.7814        .17573E-02** at limit **
  17  norm          .10000E-03    8.5246        .18142E-02** at limit **
  18  norm          .10000E-03    3.3025        .11456E-02** at limit **
  19  norm          .10000E-03    4.5920        .13499E-02** at limit **
  20  Prefactor     12.248        8.0647        .11447E-03    .57208E-04
  21  Prefactor     .10000E-03    82.226        .12118    ** at limit **
  22  Prefactor     .10000E-03    53.030        .18142E-02** at limit **
  23  norm          9.9074        7.3854        .12239E-03    .98001E-04
  24  Prefactor     .10000E-03    7.7106        .17507E-02** at limit **
  25  norm          .53684        .86544        .45680E-04    .72175E-05
  26  norm          .10000E-03    6.4540        .22427E-02** at limit **
  27  Prefactor     3.1452        4.1980        .14233E-03    .11981E-04
  28  Prefactor     14.348        25.129        .10579E-03   -.76297E-05
  29  Prefactor     .10000E-03    3.5383        .11833E-02** at limit **
  30  Prefactor     9.2860        6.1984        .12324E-03    .11070E-04
  31  Prefactor     28.438        60.906        .74995E-04   -.77312E-05
  32  Normalizat    .82707        .27951        .27062E-03    .75071E-04
  33  Prefactor     1.1895        .29815        .25825E-03    .42921E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.0085
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 22.9209
  Prefactor  = 3.53904
  Prefactor  = 45.0365
  Prefactor  = 16.251
  Prefactor  = 16.4169
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 12.248
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.90741
  Prefactor  = 0.0001
  norm       = 0.536839
  norm       = 0.000100001
  Prefactor  = 3.14518
  Prefactor  = 14.3479
  Prefactor  = 0.0001
  Prefactor  = 9.28596
  Prefactor  = 28.4384
  Normalizat = 0.82707
  Prefactor  = 1.18955
 **********
 **   18 **HESSE 
 **********

 FCN=   4176.548     FROM HESSE     STATUS=OK           673 CALLS     5985 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    62.576        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    82.209        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    34.808        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     29.009        36.601        .29764E-05   -1.4630    
   5  Prefactor     .10000E-03    19.314        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.8565        .49714E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    21.716        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     22.921        10.479        .33466E-05   -1.4750    
   9  Prefactor     3.5390        18.786        .42975E-04   -1.5332    
  10  Prefactor     45.037        29.623        .11953E-04   -1.4365    
  11  Prefactor     16.251        22.711        .39755E-05   -1.4901    
  12  Prefactor     16.417        10.973        .39551E-05   -1.4897    
  13  Prefactor     .10000E-03    56.406        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    22.686        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.5743        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    7.7826        .35146E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    8.5283        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.3025        .22912E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.5923        .26998E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.248        8.0642        .45786E-05   -1.5008    
  21  Prefactor     .10000E-03    81.997        .12140       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    53.034        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          9.9074        7.3851        .48955E-05   -1.5078    
  24  Prefactor     .10000E-03    7.7111        .35013E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .53684        .86542        .18272E-05   -1.5561    
  26  norm          .10000E-03    6.4791        .44854E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     3.1452        4.1974        .56931E-05   -1.5353    
  28  Prefactor     14.348        25.130        .42318E-05   -1.4950    
  29  Prefactor     .10000E-03    3.5386        .23666E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     9.2860        6.1982        .49294E-05   -1.5098    
  31  Prefactor     28.438        60.850        .29998E-05   -1.4641    
  32  Normalizat    .82707        .27986        .10825E-04   -.99072    
  33  Prefactor     1.1895        .29852        .10330E-04   -.86654    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8786e-10
Minuit parameter uncertainties:
  1  9.44057e-05
  2  4.09958e-06
  3  1.98793e-06
  4  36.6292
  5  5.87969e-05
  6  0.000136242
  7  3.72921e-05
  8  10.4801
  9  16.3156
  10  29.6324
  11  22.7235
  12  10.974
  13  2.24923e-05
  14  2.03348e-05
  15  6.49448e-06
  16  2.20601e-06
  17  2.48162e-05
  18  1.48383e-08
  19  1.08301e-06
  20  8.06493
  21  6.7767e-05
  22  5.43265e-05
  23  7.38581
  24  9.84756e-06
  25  0.865439
  26  0.000170037
  27  4.19778
  28  25.1482
  29  5.71844e-06
  30  6.19866
  31  60.9831
  32  0.280347
  33  0.29894
Done.

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

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  1.000e-04  6.777e-05  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:  1.190e+00  2.989e-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.271e-01  2.803e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/900963/likelihoodResults_513043201_513302401_4FGL_J2326.9-4130_daily_bin1056.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): 102
logL (Free Index) = 4176.54829824
delta logL = -6.90059187036e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4176.54829824
delta logL = -6.89911212248e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96361E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7772       1.0000          .0000       10.000    
     3 'Normalizat'    .82706       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1896       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4176.528     FROM MIGRAD    STATUS=CONVERGED    166 CALLS      348 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7866        124.66        .18142E-02    .29806E-03
   2  Index         3.7119        6.8499        .65575E-02    .23038E-04
   3  Normalizat    .81063        .27319        .27303E-03   -.53715E-05
   4  Prefactor     1.1995        .29765        .25726E-03    .34469E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.78661
  Index      = 3.71191
  Normalizat = 0.810629
  Prefactor  = 1.19954
 **********
 **   18 **HESSE 
 **********

 FCN=   4176.528     FROM HESSE     STATUS=OK            27 CALLS      375 TOTAL
                     EDM=   .91E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7866        42.218        .36285E-03   -1.5374    
   2  Index         3.7119        3.4752        .13115E-02   -.26056    
   3  Normalizat    .81063        .27249        .10921E-04   -.99676    
   4  Prefactor     1.1995        .29804        .10291E-04   -.86345    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.12056e-13
Minuit parameter uncertainties:
  1  21.7107
  2  3.87855
  3  0.272954
  4  0.298462
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/900963': 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) = 4176.52765708
delta logL = 0.0206342604542

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  1.200e+00  2.985e-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.106e-01  2.730e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 351.737 -41.509

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/900963/cmap_HighResolution_513043201_513302401_4FGL_J2326.9-4130_daily_bin1056.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-02', job_status='DONE', photon_flux_upper_limit='1.37e-07', time_completed='2021-09-29 19:36:13.209513', job_id='900963', GAL2='1.20', fit_tolerance='1e-08', EG2='0.81', EG='0.83', time_epoch_completed='1632969373.21', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='2.06e-02', ts2='0.05', photon_index_error='0.00', photon_index='2.78' WHERE bin_id='1056' AND source_name='4FGL J2326.9-4130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:36:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 900963: <4FGL_J2326.9-4130_daily_bin1056> in cluster <slac> Done

Job <4FGL_J2326.9-4130_daily_bin1056> 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) <bullet0109>, 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:13 2021
Results reported at Wed Sep 29 19:36:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.9-4130_daily_bin1056 351.737 -41.5089 513043201 513302401 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 :                                   792.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             276.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   938 sec.
    Turnaround time :                            940 sec.

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

