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


Performing analysis on: 4FGL_J2326.9-4130_daily_bin1135
RA = 351.737, Dec = -41.5089
tmin = 533520001, tmax = 533779201
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='901087', job_status='RUN', time_executed='2021-09-29 19:21:05.874810', time_epoch_executed='1632968465.87' WHERE source_name='4FGL J2326.9-4130' and cadence='daily' and bin_id='1135'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/901087

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/901087/ft1_4FGL_J2326.9-4130_daily_bin1135.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/901087/ft2_4FGL_J2326.9-4130_daily_bin1135.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/901087/ft1_4FGL_J2326.9-4130_daily_bin1135.fits outfile=/scratch/kocevski/901087/ft1_filteredMKT_4FGL_J2326.9-4130_daily_bin1135.fits ra=351.737 dec=-41.5089 rad=12.0 tmin=533520001.0 tmax=533779201.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.55
user 3.31
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/901087/ft1_filtered_4FGL_J2326.9-4130_daily_bin1135.fits" evtable="EVENTS" scfile=/scratch/kocevski/901087/ft2_4FGL_J2326.9-4130_daily_bin1135.fits sctable="SC_DATA" outfile=/scratch/kocevski/901087/ltcube_533520001_533779201_4FGL_J2326.9-4130_daily_bin1135.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/901087/ft2_4FGL_J2326.9-4130_daily_bin1135.fits
.....................!
real 11.96
user 11.62
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/901087/ft1_filtered_4FGL_J2326.9-4130_daily_bin1135.fits evtable="EVENTS" scfile=/scratch/kocevski/901087/ft2_4FGL_J2326.9-4130_daily_bin1135.fits sctable="SC_DATA" expcube=/scratch/kocevski/901087/ltcube_533520001_533779201_4FGL_J2326.9-4130_daily_bin1135.fits outfile=/scratch/kocevski/901087/expmap_533520001_533779201_4FGL_J2326.9-4130_daily_bin1135.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/901087/ltcube_533520001_533779201_4FGL_J2326.9-4130_daily_bin1135.fits
.....................!
real 189.96
user 185.47
sys 4.12

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/901087/ft1_filtered_4FGL_J2326.9-4130_daily_bin1135.fits scfile=/scratch/kocevski/901087/ft2_4FGL_J2326.9-4130_daily_bin1135.fits outfile=/scratch/kocevski/901087/cmap_533520001_533779201_4FGL_J2326.9-4130_daily_bin1135.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.54
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/901087/ft1_filtered_4FGL_J2326.9-4130_daily_bin1135.fits scfile=/scratch/kocevski/901087/ft2_4FGL_J2326.9-4130_daily_bin1135.fits outfile=/scratch/kocevski/901087/cmap_HighResolution_533520001_533779201_4FGL_J2326.9-4130_daily_bin1135.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/901087/ft1_filtered_4FGL_J2326.9-4130_daily_bin1135.fits evtable="EVENTS" scfile=/scratch/kocevski/901087/ft2_4FGL_J2326.9-4130_daily_bin1135.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/901087/Model_4FGL_J2326.9-4130_daily_bin1135.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/901087/ft1_filtered_4FGL_J2326.9-4130_daily_bin1135.fits.....................!
real 45.00
user 43.70
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10177E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10296E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13085E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .93395       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.6703       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12367E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .57244       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10482E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.9991       1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.843       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.6916       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10448E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .23630       1.0000         .10000E-03   10000.    
    19 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.6089       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .21606E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .30747E-02   1.0000         .10000E-03   10000.    
    23 'norm      '    7.9736       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.6482       1.0000         .10000E-03   10000.    
    25 'norm      '    .65685       1.0000         .10000E-03   10000.    
    26 'norm      '    .17410E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.1012       1.0000         .10000E-03   10000.    
    28 'Prefactor '    10.108       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    3.6600       1.0000         .10000E-03   10000.    
    31 'Prefactor '    52.270       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0936       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .82545       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=   6271.165     FROM MIGRAD    STATUS=CONVERGED    960 CALLS     4060 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    43.650        .18957E-06** at limit **
   2  Prefactor     .10000E-03    29.765       -.48635E-06** at limit **
   3  Prefactor     .10000E-03    81.955        .16228E-05** at limit **
   4  Prefactor     .10000E-03    14.802        .11300E-06** at limit **
   5  Prefactor     .93463        4.7674        .22013E-06    .52599E-04
   6  Prefactor     1.6709        2.3339       -.53343E-07   -.13621E-03
   7  Prefactor     .10006E-03    29.495        .84903E-06** at limit **
   8  Prefactor     .57301        6.2426       -.10253E-06    .53287E-05
   9  Prefactor     .10000E-03    27.021        .14994E-05** at limit **
  10  Prefactor     .10000E-03    6.6511       -.25382E-08** at limit **
  11  Prefactor     .10000E-03    3.2185        .20077E-06** at limit **
  12  Prefactor     2.9999        4.1154        .36947E-06   -.83122E-04
  13  Prefactor     25.847        23.903       -.82226E-08   -.23724E-04
  14  Prefactor     5.7214        102.43       -.31836E-05    .12740E-04
  15  Prefactor     .10000E-03    19.406        .58443E-06** at limit **
  16  norm          .10000E-03    3.3051        .61555E-07** at limit **
  17  norm          .10001E-03    3.0504        .14415E-05** at limit **
  18  norm          .23110        4.1539       -.10506E-05    .41526E-04
  19  norm          .10000E-03    6.6890        .67149E-06** at limit **
  20  Prefactor     2.6090        2.8272        .33740E-06    .68176E-04
  21  Prefactor     .10000E-03    191.40        .92148E-05** at limit **
  22  Prefactor     .10003E-03    413.04       -.24958E-04** at limit **
  23  norm          7.9891        4.5025        .37873E-06    .17203E-03
  24  Prefactor     1.6479        5.5710       -.36279E-05    .18980E-03
  25  norm          .65655        .73358        .11328E-06    .50262E-03
  26  norm          .10000E-03    1.9258       -.88673E-06** at limit **
  27  Prefactor     2.1002        3.6772       -.55535E-07   -.68843E-04
  28  Prefactor     10.111        27.270        .48811E-06   -.23100E-04
  29  Prefactor     .10000E-03    3.5759       -.19478E-06** at limit **
  30  Prefactor     3.6592        3.8865        .30260E-06    .54475E-04
  31  Prefactor     52.249        43.337        .75884E-06   -.28101E-04
  32  Normalizat    1.0936        .16269       -.97412E-06   -.36216E-03
  33  Prefactor     .82548        .17992       -.19877E-06   -.18150E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.934625
  Prefactor  = 1.67088
  Prefactor  = 0.000100063
  Prefactor  = 0.573013
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.99993
  Prefactor  = 25.8473
  Prefactor  = 5.72136
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100006
  norm       = 0.231102
  norm       = 0.0001
  Prefactor  = 2.60896
  Prefactor  = 0.000100002
  Prefactor  = 0.000100033
  norm       = 7.98905
  Prefactor  = 1.64791
  norm       = 0.656555
  norm       = 0.0001
  Prefactor  = 2.10016
  Prefactor  = 10.1106
  Prefactor  = 0.0001
  Prefactor  = 3.65925
  Prefactor  = 52.2494
  Normalizat = 1.09363
  Prefactor  = 0.82548
 **********
 **   18 **HESSE 
 **********

 FCN=   6271.165     FROM HESSE     STATUS=OK           713 CALLS     4773 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    43.771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    30.033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    82.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .93463        4.7637        .33312E-03   -1.5515    
   6  Prefactor     1.6709        2.3020        .13801E-03   -1.5449    
   7  Prefactor     .10006E-03    223.72        .73035E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .57301        6.5049        .38124E-02   -1.5557    
   9  Prefactor     .10000E-03    27.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.6619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.2230        .13880E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.9999        4.1029        .18242E-03   -1.5362    
  13  Prefactor     25.847        23.892        .39400E-03   -1.4691    
  14  Prefactor     5.7214        101.52        .16837E-03   -1.5230    
  15  Prefactor     .10000E-03    20.056        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.3073        .14061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10001E-03    6.4697        .25601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .23110        13.889        .28012E-02   -1.5612    
  19  norm          .10000E-03    6.8953        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.6090        2.8285        .13238E-03   -1.5385    
  21  Prefactor     .10000E-03    191.20        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10003E-03    25.122        .12343       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          7.9891        4.8250        .11262E-03   -1.5143    
  24  Prefactor     1.6479        5.8480        .16447E-02   -1.5451    
  25  norm          .65655        .68917        .68399E-03   -1.5546    
  26  norm          .10000E-03    7.8127        .20039E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.1002        3.5643        .15107E-03   -1.5418    
  28  Prefactor     10.111        26.502        .12603E-03   -1.5072    
  29  Prefactor     .10000E-03    3.6541        .14602E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     3.6592        3.8872        .15209E-03   -1.5325    
  31  Prefactor     52.249        43.384        .55474E-04   -1.4261    
  32  Normalizat    1.0936        .19338        .20843E-03   -.89957    
  33  Prefactor     .82548        .21099        .26649E-03   -.98796    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88876e-09
Minuit parameter uncertainties:
  1  0.000130866
  2  7.00555e-05
  3  0.000177554
  4  1.6994e-06
  5  4.2204
  6  2.3021
  7  0.00755326
  8  3.86147
  9  1.94026e-05
  10  2.32242e-05
  11  8.23945e-06
  12  4.10327
  13  23.9013
  14  48.2972
  15  0.000117121
  16  3.27859e-06
  17  0.000385548
  18  3.58326
  19  1.39326e-05
  20  2.82861
  21  0.00107955
  22  0.00183523
  23  4.82526
  24  5.85003
  25  0.689182
  26  6.122e-05
  27  3.56469
  28  26.5328
  29  3.4291e-06
  30  3.88743
  31  43.4099
  32  0.193507
  33  0.211197
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  8.255e-01  2.112e-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:  1.094e+00  1.935e-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: 8.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/901087/likelihoodResults_533520001_533779201_4FGL_J2326.9-4130_daily_bin1135.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) = 6271.16467728
delta logL = -2.48300493695e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6271.16465233
delta logL = 1.16174305731e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.4445       1.0000          .0000       10.000    
     3 'Normalizat'    1.0936       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82549       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=   6271.165     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      374 TOTAL
                     EDM=   .39E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.9774        .90712E-01** at limit **
   2  Index         3.4027        3.7132        .50000        .96509E-06
   3  Normalizat    1.0936        .33714E-02    .38266E-01    .24647E-04
   4  Prefactor     .82548        .38174E-02    .44048E-01    .27949E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 3.40266
  Normalizat = 1.09363
  Prefactor  = 0.825479
 **********
 **   18 **HESSE 
 **********

 FCN=   6271.165     FROM HESSE     STATUS=NOT POSDEF    43 CALLS      417 TOTAL
                     EDM=   .37E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.949        .66850E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.4027        3.9689        .50000       -.32517    
   3  Normalizat    1.0936        .37164E-02    .20843E-03   -.89957    
   4  Prefactor     .82548        .42066E-02    .26649E-03   -.98796    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.6694e-13
Minuit parameter uncertainties:
  1  0.000264541
  2  4.70496
  3  0.00371638
  4  0.00420664
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/901087': 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) = 6271.16465232
delta logL = 1.26589839056e-07

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  1.000e-04  2.645e-04  1.000e-04  1.000e+04 ( 1.000e-13)
436        Index:  3.403e+00  4.705e+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:  8.255e-01  4.207e-03  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:  1.094e+00  3.716e-03  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/901087/cmap_HighResolution_533520001_533779201_4FGL_J2326.9-4130_daily_bin1135.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.02e-03', job_status='DONE', photon_flux_upper_limit='8.88e-08', time_completed='2021-09-29 19:36:43.349573', job_id='901087', GAL2='0.83', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1632969403.35', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='1.27e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.78' WHERE bin_id='1135' AND source_name='4FGL J2326.9-4130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:36:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 901087: <4FGL_J2326.9-4130_daily_bin1135> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.9-4130_daily_bin1135 351.737 -41.5089 533520001 533779201 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 :                                   928.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             322.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   957 sec.
    Turnaround time :                            959 sec.

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

