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


Performing analysis on: 4FGL_J2326.9-4130_daily_bin1291
RA = 351.737, Dec = -41.5089
tmin = 573955201, tmax = 574214401
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='902566', job_status='RUN', time_executed='2021-09-29 19:26:22.139779', time_epoch_executed='1632968782.14' WHERE source_name='4FGL J2326.9-4130' and cadence='daily' and bin_id='1291'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/902566

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/902566/ft1_4FGL_J2326.9-4130_daily_bin1291.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/902566/ft2_4FGL_J2326.9-4130_daily_bin1291.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/902566/ft1_4FGL_J2326.9-4130_daily_bin1291.fits outfile=/scratch/kocevski/902566/ft1_filteredMKT_4FGL_J2326.9-4130_daily_bin1291.fits ra=351.737 dec=-41.5089 rad=12.0 tmin=573955201.0 tmax=574214401.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.62
user 3.42
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/902566/ft1_filtered_4FGL_J2326.9-4130_daily_bin1291.fits" evtable="EVENTS" scfile=/scratch/kocevski/902566/ft2_4FGL_J2326.9-4130_daily_bin1291.fits sctable="SC_DATA" outfile=/scratch/kocevski/902566/ltcube_573955201_574214401_4FGL_J2326.9-4130_daily_bin1291.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/902566/ft2_4FGL_J2326.9-4130_daily_bin1291.fits
.....................!
real 12.39
user 11.94
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/902566/ft1_filtered_4FGL_J2326.9-4130_daily_bin1291.fits evtable="EVENTS" scfile=/scratch/kocevski/902566/ft2_4FGL_J2326.9-4130_daily_bin1291.fits sctable="SC_DATA" expcube=/scratch/kocevski/902566/ltcube_573955201_574214401_4FGL_J2326.9-4130_daily_bin1291.fits outfile=/scratch/kocevski/902566/expmap_573955201_574214401_4FGL_J2326.9-4130_daily_bin1291.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/902566/ltcube_573955201_574214401_4FGL_J2326.9-4130_daily_bin1291.fits
.....................!
real 190.91
user 185.01
sys 5.22

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/902566/ft1_filtered_4FGL_J2326.9-4130_daily_bin1291.fits scfile=/scratch/kocevski/902566/ft2_4FGL_J2326.9-4130_daily_bin1291.fits outfile=/scratch/kocevski/902566/cmap_573955201_574214401_4FGL_J2326.9-4130_daily_bin1291.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/902566/ft1_filtered_4FGL_J2326.9-4130_daily_bin1291.fits scfile=/scratch/kocevski/902566/ft2_4FGL_J2326.9-4130_daily_bin1291.fits outfile=/scratch/kocevski/902566/cmap_HighResolution_573955201_574214401_4FGL_J2326.9-4130_daily_bin1291.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.57
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/902566/ft1_filtered_4FGL_J2326.9-4130_daily_bin1291.fits evtable="EVENTS" scfile=/scratch/kocevski/902566/ft2_4FGL_J2326.9-4130_daily_bin1291.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/902566/Model_4FGL_J2326.9-4130_daily_bin1291.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/902566/ft1_filtered_4FGL_J2326.9-4130_daily_bin1291.fits.....................!
real 39.75
user 38.36
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.723       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .15745E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .51810       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.4918       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.704       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    40.044       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.6222       1.0000         .10000E-03   10000.    
    18 'norm      '    .75802       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.4377       1.0000         .10000E-03   10000.    
    21 'Prefactor '    34.295       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.6458       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .48647       1.0000         .10000E-03   10000.    
    26 'norm      '    2.8042       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10409E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    6.4344       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.5194       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .56996       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=   4995.770     FROM MIGRAD    STATUS=CONVERGED    874 CALLS     4558 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.720        68.680       -.37507E-05    .16407E-05
   2  Prefactor     .10000E-03    10.162        .22132E-05** at limit **
   3  Prefactor     .10000E-03    148.66       -.23773E-04** at limit **
   4  Prefactor     .10000E-03    22.607       -.56680E-05** at limit **
   5  Prefactor     .10000E-03    3.1527        .22247E-07** at limit **
   6  Prefactor     .51894        2.9331       -.96816E-06   -.37109E-03
   7  Prefactor     .10000E-03    27.560       -.14604E-04** at limit **
   8  Prefactor     6.4930        5.5951        .10376E-06    .55617E-04
   9  Prefactor     14.707        18.059       -.10175E-05   -.29459E-04
  10  Prefactor     .10000E-03    18.447        .15445E-04** at limit **
  11  Prefactor     .10000E-03    7.4947       -.13029E-05** at limit **
  12  Prefactor     .10000E-03    4.0219       -.34329E-06** at limit **
  13  Prefactor     .10000E-03    9.9849        .42124E-05** at limit **
  14  Prefactor     40.064        58.992        .22738E-04   -.23058E-05
  15  Prefactor     .10000E-03    11.272       -.48748E-05** at limit **
  16  norm          .10000E-03    5.9850        .32174E-06** at limit **
  17  norm          6.6227        6.6725        .86795E-06    .12214E-02
  18  norm          .75714        4.2531       -.15206E-05   -.10751E-02
  19  norm          .10000E-03    3.9598        .29436E-06** at limit **
  20  Prefactor     4.4398        7.9507       -.26027E-06   -.88350E-04
  21  Prefactor     34.306        32.558        .56316E-05    .28022E-04
  22  Prefactor     .10000E-03    22.927       -.68086E-05** at limit **
  23  norm          4.6467        4.5944       -.43113E-06   -.12082E-03
  24  Prefactor     .10000E-03    12.174       -.41037E-05** at limit **
  25  norm          .48575        1.2084       -.16455E-06   -.82495E-03
  26  norm          2.8047        3.9100       -.49184E-06   -.32815E-03
  27  Prefactor     .10000E-03    2.4610        .45619E-07** at limit **
  28  Prefactor     .10000E-03    31.431        .32655E-05** at limit **
  29  Prefactor     6.4372        6.5082       -.71621E-07   -.20021E-03
  30  Prefactor     .10000E-03    2.0298        .21419E-07** at limit **
  31  Prefactor     .10000E-03    34.188        .15496E-04** at limit **
  32  Normalizat    1.5191        .20695       -.23959E-06    .23506E-03
  33  Prefactor     .57007        .22170       -.11246E-05    .82725E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.7202
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.518944
  Prefactor  = 0.0001
  Prefactor  = 6.49299
  Prefactor  = 14.7072
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.0639
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.6227
  norm       = 0.757142
  norm       = 0.0001
  Prefactor  = 4.43982
  Prefactor  = 34.3059
  Prefactor  = 0.0001
  norm       = 4.64673
  Prefactor  = 0.0001
  norm       = 0.485751
  norm       = 2.80467
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.43723
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.51906
  Prefactor  = 0.570067
 **********
 **   18 **HESSE 
 **********

 FCN=   4995.770     FROM HESSE     STATUS=OK           691 CALLS     5249 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.720        68.747        .84029E-04   -1.4754    
   2  Prefactor     .10000E-03    10.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    150.63        .20432E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    22.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.1847        .12255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .51894        5.3898        .23195E-02   -1.5564    
   7  Prefactor     .10000E-03    27.477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.4930        5.5946        .15077E-03   -1.5198    
   9  Prefactor     14.707        18.059        .10445E-03   -1.4941    
  10  Prefactor     .10000E-03    18.384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.5137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.0503        .13841E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.9773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     40.064        58.436        .63343E-04   -1.4441    
  15  Prefactor     .10000E-03    11.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.9916        .16888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.6227        6.7361        .77969E-03   -1.5193    
  18  norm          .75714        4.1632        .26999E-03   -1.5534    
  19  norm          .10000E-03    3.9750        .13735E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.4398        7.7441        .19116E-03   -1.5287    
  21  Prefactor     34.306        32.572        .68429E-04   -1.4536    
  22  Prefactor     .10000E-03    22.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.6467        4.5671        .13046E-03   -1.5277    
  24  Prefactor     .10000E-03    12.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .48575        1.1320        .10915E-03   -1.5569    
  26  norm          2.8047        3.8915        .15521E-03   -1.5373    
  27  Prefactor     .10000E-03    2.4981        .10811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    32.222        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     6.4372        6.5194        .15822E-03   -1.5200    
  30  Prefactor     .10000E-03    2.0436        .98302E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    34.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.5191        .24522        .20441E-03   -.77244    
  33  Prefactor     .57007        .26028        .34308E-03   -1.0886    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.59464e-09
Minuit parameter uncertainties:
  1  68.9877
  2  8.60117e-06
  3  0.000717111
  4  3.48361e-05
  5  5.97521e-06
  6  3.34493
  7  2.56742e-05
  8  5.59505
  9  18.066
  10  3.1587e-05
  11  1.335e-05
  12  8.3475e-07
  13  1.20804e-06
  14  58.5195
  15  2.19229e-05
  16  1.47947e-06
  17  6.73689
  18  3.551
  19  3.24968e-06
  20  7.74588
  21  32.5893
  22  9.22796e-09
  23  4.56741
  24  2.95086e-05
  25  1.13201
  26  3.89183
  27  8.44874e-06
  28  3.43382e-05
  29  6.52016
  30  3.39432e-06
  31  5.12335e-06
  32  0.245413
  33  0.26083
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  5.701e-01  2.608e-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.519e+00  2.454e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.66
Ra Dec: 351.737 -41.509
Photon Index (Fixed Index): 2.78 +/- 0.00
Photon Flux (Fixed Index): 4.49e-08 +/- 4.26e-08
Energy Flux (Fixed Index): 1.02e-05 +/- 9.70e-06

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

Saving results to:
/scratch/kocevski/902566/likelihoodResults_573955201_574214401_4FGL_J2326.9-4130_daily_bin1291.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): 0
logL (Free Index) = 4994.37639282
delta logL = 1.3935959209

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4994.29754543
delta logL = 1.47244330639

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    51.500       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6874       1.0000          .0000       10.000    
     3 'Normalizat'    1.5568       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .53886       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=   4994.298     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      215 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     51.500        45.109        .13971E-02    .10485E-03
   2  Index         1.6874        .41909        .19748       -.71947E-04
   3  Normalizat    1.5568        .20311        .45786E-01   -.11987E-04
   4  Prefactor     .53886        .22036        .79449E-01    .37448E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 51.4995
  Index      = 1.68744
  Normalizat = 1.55679
  Prefactor  = 0.538864
 **********
 **   18 **HESSE 
 **********

 FCN=   4994.298     FROM HESSE     STATUS=OK            31 CALLS      246 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     51.500        50.630        .55886E-04   -1.4271    
   2  Index         1.6874        .53319        .77007E-02   -.72417    
   3  Normalizat    1.5568        .23754        .20239E-03   -.76195    
   4  Prefactor     .53886        .25693        .35184E-03   -1.1023    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.79154e-11
Minuit parameter uncertainties:
  1  50.6726
  2  0.535008
  3  0.23771
  4  0.257484
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/902566': 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) = 4994.29754543
delta logL = 1.47244330876

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  5.389e-01  2.575e-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.557e+00  2.377e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.64
Ra Dec: 351.737 -41.509
Photon Index (Free Index): 1.69 +/- 0.54
Photon Flux (Free Index): 2.04e-08 +/- 2.35e-08
Energy Flux (Free Index): 3.46e-05 +/- 4.50e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/902566/cmap_HighResolution_573955201_574214401_4FGL_J2326.9-4130_daily_bin1291.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', comment='SUCCESS', photon_flux='4.49e-08', energy_flux2='3.46e-05', photon_flux_error='4.26e-08', dlogl='1.47e+00', energy_flux='1.02e-05', photon_flux2='2.04e-08', job_status='DONE', time_completed='2021-09-29 19:41:04.017388', photon_index_error2='0.54', photon_index2='1.69', ts='2.66', fit_tolerance='1e-08', GAL='0.57', photon_index_error='0.00', photon_flux_upper_limit='1.42e-07', energy_flux_error2='4.50e-05', EG='1.52', time_epoch_completed='1632969664.02', return_code='0', job_id='902566', GAL2='0.54', EG2='1.56', return_code2='0', energy_flux_error='9.70e-06', photon_flux_error2='2.35e-08', ts2='5.64', photon_index='2.78' WHERE bin_id='1291' AND source_name='4FGL J2326.9-4130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:41:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 902566: <4FGL_J2326.9-4130_daily_bin1291> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.9-4130_daily_bin1291 351.737 -41.5089 573955201 574214401 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 :                                   815.00 sec.
    Max Memory :                                 1098 MB
    Average Memory :                             303.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   939 sec.
    Turnaround time :                            942 sec.

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

