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


Performing analysis on: 4FGL_J2326.9-4130_daily_bin1227
RA = 351.737, Dec = -41.5089
tmin = 557366401, tmax = 557625601
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='902466', job_status='RUN', time_executed='2021-09-29 19:27:35.002754', time_epoch_executed='1632968855.0' WHERE source_name='4FGL J2326.9-4130' and cadence='daily' and bin_id='1227'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/902466

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/902466/ft1_4FGL_J2326.9-4130_daily_bin1227.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/902466/ft2_4FGL_J2326.9-4130_daily_bin1227.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/902466/ft1_4FGL_J2326.9-4130_daily_bin1227.fits outfile=/scratch/kocevski/902466/ft1_filteredMKT_4FGL_J2326.9-4130_daily_bin1227.fits ra=351.737 dec=-41.5089 rad=12.0 tmin=557366401.0 tmax=557625601.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.71
user 3.48
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/902466/ft1_filtered_4FGL_J2326.9-4130_daily_bin1227.fits" evtable="EVENTS" scfile=/scratch/kocevski/902466/ft2_4FGL_J2326.9-4130_daily_bin1227.fits sctable="SC_DATA" outfile=/scratch/kocevski/902466/ltcube_557366401_557625601_4FGL_J2326.9-4130_daily_bin1227.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/902466/ft2_4FGL_J2326.9-4130_daily_bin1227.fits
.....................!
real 12.58
user 12.13
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/902466/ft1_filtered_4FGL_J2326.9-4130_daily_bin1227.fits evtable="EVENTS" scfile=/scratch/kocevski/902466/ft2_4FGL_J2326.9-4130_daily_bin1227.fits sctable="SC_DATA" expcube=/scratch/kocevski/902466/ltcube_557366401_557625601_4FGL_J2326.9-4130_daily_bin1227.fits outfile=/scratch/kocevski/902466/expmap_557366401_557625601_4FGL_J2326.9-4130_daily_bin1227.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/902466/ltcube_557366401_557625601_4FGL_J2326.9-4130_daily_bin1227.fits
.....................!
real 190.91
user 185.36
sys 4.92

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/902466/ft1_filtered_4FGL_J2326.9-4130_daily_bin1227.fits scfile=/scratch/kocevski/902466/ft2_4FGL_J2326.9-4130_daily_bin1227.fits outfile=/scratch/kocevski/902466/cmap_557366401_557625601_4FGL_J2326.9-4130_daily_bin1227.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=351.737 yref=-41.5089 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.14

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/902466/ft1_filtered_4FGL_J2326.9-4130_daily_bin1227.fits evtable="EVENTS" scfile=/scratch/kocevski/902466/ft2_4FGL_J2326.9-4130_daily_bin1227.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/902466/Model_4FGL_J2326.9-4130_daily_bin1227.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/902466/ft1_filtered_4FGL_J2326.9-4130_daily_bin1227.fits..................................!
real 15.93
user 14.56
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    49.664       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     7 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     9 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    10 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    11 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    12 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .28737E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10417E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    146.70       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10296E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10423E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .49005E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.1246       1.0000         .10000E-03   10000.    
    26 'norm      '    9.7925       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    44.409       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10619E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .98167       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .31267       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=   380.9990     FROM MIGRAD    STATUS=CONVERGED    829 CALLS     5720 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    169.92        .11646E-03** at limit **
   2  Prefactor     .10000E-03    30.231       -.20329E-04** at limit **
   3  Prefactor     49.593        105.10       -.78080E-04   -.34781E-04
   4  Prefactor     .10000E-03    37.966        .24593E-05** at limit **
   5  Prefactor     .10000E-03    10.493       -.38363E-06** at limit **
   6  Prefactor    10000.0        2159.2        .15073E-02** at limit **
   7  Prefactor    10000.0        7046.7        .59271E-03** at limit **
   8  Prefactor    10000.0        978.31        .10366E-02** at limit **
   9  Prefactor    10000.0        5695.7        .61884E-03** at limit **
  10  Prefactor    10000.0        9634.1        .11412E-02** at limit **
  11  Prefactor    10000.0        5041.4        .11849E-02** at limit **
  12  Prefactor    10000.0        1848.9        .28586E-03** at limit **
  13  Prefactor     .10000E-03    1914.0       -.17962E-03** at limit **
  14  Prefactor    10000.0        8497.8        .30489E-02** at limit **
  15  Prefactor     .10000E-03    90.673       -.83761E-04** at limit **
  16  norm          146.64        232.60       -.46067E-04   -.14295E-04
  17  norm          .10000E-03    24.781       -.86852E-05** at limit **
  18  norm          .10000E-03    39.261        .13710E-04** at limit **
  19  norm          .10000E-03    116.90        .90161E-06** at limit **
  20  Prefactor     .10000E-03    35.268       -.19794E-04** at limit **
  21  Prefactor     .10000E-03    283.45       -.11731E-04** at limit **
  22  Prefactor     .10000E-03    1833.6       -.25647E-03** at limit **
  23  norm          .10000E-03    27.543        .12908E-04** at limit **
  24  Prefactor     .10000E-03    51.996        .26615E-04** at limit **
  25  norm          1.1227        6.1858       -.18104E-05   -.16816E-04
  26  norm          9.7862        28.365       -.45339E-05   -.91052E-04
  27  Prefactor     .10000E-03    3.8498        .91170E-07** at limit **
  28  Prefactor     .10000E-03    27.268        .15965E-04** at limit **
  29  Prefactor     44.394        49.502       -.84174E-05   -.77056E-04
  30  Prefactor     .10000E-03    16.101       -.35306E-06** at limit **
  31  Prefactor     .10000E-03    220.80        .97286E-04** at limit **
  32  Normalizat    .98179        .78493       -.29918E-04    .89245E-04
  33  Prefactor     .31263        .88248        .11861E-03    .42956E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 49.593
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.0001
  norm       = 146.645
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.12274
  norm       = 9.78621
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.3936
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.981788
  Prefactor  = 0.312631
 **********
 **   18 **HESSE 
 **********

 FCN=   380.9990     FROM HESSE     STATUS=OK           667 CALLS     6387 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    169.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    30.235        .10492E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     49.593        104.25        .56904E-04   -1.4298    
   4  Prefactor     .10000E-03    37.970        .11760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.502        .61771E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor    10000.0        2158.4        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor    10000.0        7046.9        .20762E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor    10000.0        977.90        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor    10000.0        5695.5        .20718E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor    10000.0        9634.2        .19658E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor    10000.0        5041.4        .19602E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor    10000.0        1848.8        .21084E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1914.0        .21408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor    10000.0        8498.2        .18284E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    90.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          146.64        232.19        .16635E-03   -1.3280    
  17  norm          .10000E-03    24.781        .94987E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    39.261        .11959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    116.91        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    35.272        .11331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    283.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1833.7        .21167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    27.544        .10014E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    52.018        .13766E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.1227        5.9859        .89366E-04   -1.5496    
  26  norm          9.7862        28.237        .12806E-03   -1.5082    
  27  Prefactor     .10000E-03    3.8508        .37419E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    27.273        .99650E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     44.394        49.375        .60162E-04   -1.4374    
  30  Prefactor     .10000E-03    16.216        .76490E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    220.79        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .98179        .86029        .23082E-03   -.93643    
  33  Prefactor     .31263        .93829        .41901E-03   -1.2153    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.47647e-10
Minuit parameter uncertainties:
  1  0.000423471
  2  8.52465e-05
  3  104.641
  4  0.000102458
  5  5.80353e-05
  6  0.000214988
  7  0.00156293
  8  0.000190916
  9  0.00190026
  10  0.000846868
  11  0.00212903
  12  0.000394692
  13  0.000338826
  14  0.000446289
  15  0.000145896
  16  233.654
  17  3.87234e-06
  18  1.33721e-05
  19  9.22381e-06
  20  0.000203204
  21  7.47048e-05
  22  0.000227305
  23  1.18176e-05
  24  0.000257744
  25  5.18539
  26  28.2752
  27  2.62171e-05
  28  8.34183e-05
  29  49.4206
  30  2.75801e-05
  31  7.15376e-05
  32  0.872883
  33  0.990982
Done.

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

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  1.000e-04  7.470e-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:  3.126e-01  9.910e-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.818e-01  8.729e-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.90e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.50e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/902466/likelihoodResults_557366401_557625601_4FGL_J2326.9-4130_daily_bin1227.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) = 380.998985424
delta logL = -1.66543368891e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 380.998969013
delta logL = -2.43637998665e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12328E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.4280       1.0000          .0000       10.000    
     3 'Normalizat'    .98179       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .31263       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=   380.9990     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      273 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11652E-03    299.95        .18142E-01** at limit **
   2  Index         3.1650        8.0542        .50000        .14562E-05
   3  Normalizat    .98178        .19866E-01    .23083E-03    .91835E-05
   4  Prefactor     .31263        .21122E-01    .41888E-03    .44052E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00011652
  Index      = 3.165
  Normalizat = 0.981784
  Prefactor  = 0.312632
 **********
 **   18 **HESSE 
 **********

 FCN=   380.9990     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      302 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11652E-03    1808.5        .26781E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.1650        6.5044        .50000       -.37578    
   3  Normalizat    .98178        .50552E-01    .46166E-04   -.93643    
   4  Prefactor     .31263        .53745E-01    .16755E-04   -1.2153    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.72487e-08
Minuit parameter uncertainties:
  1  0.357068
  2  2490.74
  3  0.0505549
  4  0.0537537
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/902466': 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): 102
logL (Free Index) = 380.99896889
delta logL = -1.207264404e-07

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  1.165e-04  3.571e-01  1.000e-04  1.000e+04 ( 1.000e-13)
436        Index:  3.165e+00  2.491e+03  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:  3.126e-01  5.375e-02  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.818e-01  5.055e-02  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/902466/cmap_HighResolution_557366401_557625601_4FGL_J2326.9-4130_daily_bin1227.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.50e-01', job_status='DONE', photon_flux_upper_limit='1.90e-06', time_completed='2021-09-29 19:33:53.410766', job_id='902466', GAL2='0.31', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1632969233.41', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.31', dlogl='-1.21e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.78' WHERE bin_id='1227' AND source_name='4FGL J2326.9-4130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:33:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 902466: <4FGL_J2326.9-4130_daily_bin1227> in cluster <slac> Done

Job <4FGL_J2326.9-4130_daily_bin1227> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 19:25:13 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 19:25:15 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:15 2021
Terminated at Wed Sep 29 19:33:54 2021
Results reported at Wed Sep 29 19:33:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.9-4130_daily_bin1227 351.737 -41.5089 557366401 557625601 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 :                                   374.47 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             216.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   518 sec.
    Turnaround time :                            521 sec.

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

