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


Performing analysis on: 4FGL_J2326.9-4130_daily_bin1333
RA = 351.737, Dec = -41.5089
tmin = 584841601, tmax = 585100801
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='902633', job_status='RUN', time_executed='2021-09-29 19:26:03.715323', time_epoch_executed='1632968763.72' WHERE source_name='4FGL J2326.9-4130' and cadence='daily' and bin_id='1333'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/902633

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/902633/ft1_4FGL_J2326.9-4130_daily_bin1333.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/902633/ft2_4FGL_J2326.9-4130_daily_bin1333.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/902633/ft1_4FGL_J2326.9-4130_daily_bin1333.fits outfile=/scratch/kocevski/902633/ft1_filteredMKT_4FGL_J2326.9-4130_daily_bin1333.fits ra=351.737 dec=-41.5089 rad=12.0 tmin=584841601.0 tmax=585100801.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 2.94
user 2.75
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/902633/ft1_filtered_4FGL_J2326.9-4130_daily_bin1333.fits" evtable="EVENTS" scfile=/scratch/kocevski/902633/ft2_4FGL_J2326.9-4130_daily_bin1333.fits sctable="SC_DATA" outfile=/scratch/kocevski/902633/ltcube_584841601_585100801_4FGL_J2326.9-4130_daily_bin1333.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/902633/ft2_4FGL_J2326.9-4130_daily_bin1333.fits
.....................!
real 12.75
user 12.34
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/902633/ft1_filtered_4FGL_J2326.9-4130_daily_bin1333.fits evtable="EVENTS" scfile=/scratch/kocevski/902633/ft2_4FGL_J2326.9-4130_daily_bin1333.fits sctable="SC_DATA" expcube=/scratch/kocevski/902633/ltcube_584841601_585100801_4FGL_J2326.9-4130_daily_bin1333.fits outfile=/scratch/kocevski/902633/expmap_584841601_585100801_4FGL_J2326.9-4130_daily_bin1333.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/902633/ltcube_584841601_585100801_4FGL_J2326.9-4130_daily_bin1333.fits
.....................!
real 190.23
user 185.47
sys 4.36

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/902633/ft1_filtered_4FGL_J2326.9-4130_daily_bin1333.fits scfile=/scratch/kocevski/902633/ft2_4FGL_J2326.9-4130_daily_bin1333.fits outfile=/scratch/kocevski/902633/cmap_584841601_585100801_4FGL_J2326.9-4130_daily_bin1333.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.37
sys 0.15

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

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    48.810       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.0428       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11311E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    45.093       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.2627       1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.773       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13011E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.633       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.2160       1.0000         .10000E-03   10000.    
    17 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .99883       1.0000         .10000E-03   10000.    
    19 'norm      '    11.401       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.5832       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.2552       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10220E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    6.5696       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1023       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .77894       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=   5112.817     FROM MIGRAD    STATUS=CONVERGED    885 CALLS     4582 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.492       -.14289E-05** at limit **
   2  Prefactor     48.810        27.616       -.71007E-06    .87896E-04
   3  Prefactor     .10000E-03    19.239        .11387E-06** at limit **
   4  Prefactor     .10000E-03    17.055        .36713E-06** at limit **
   5  Prefactor     7.0424        6.3870       -.43518E-06   -.12078E-04
   6  Prefactor     .10000E-03    6.4900       -.14416E-05** at limit **
   7  Prefactor     45.004        75.943       -.46138E-05    .18995E-03
   8  Prefactor     1.2623        17.357       -.99056E-05    .68611E-04
   9  Prefactor     23.768        23.442        .22841E-06    .13595E-04
  10  Prefactor     .10000E-03    176.30       -.39535E-04** at limit **
  11  Prefactor     13.632        22.962       -.76822E-06    .13668E-04
  12  Prefactor     .10000E-03    5.8062       -.74845E-06** at limit **
  13  Prefactor     .10000E-03    13.866       -.54722E-06** at limit **
  14  Prefactor     .10000E-03    16.399        .43069E-06** at limit **
  15  Prefactor     .10000E-03    6.1283        .38325E-06** at limit **
  16  norm          2.2159        6.8804       -.27165E-06    .21556E-04
  17  norm          .10000E-03    4.4815       -.13407E-06** at limit **
  18  norm          1.0010        3.1918       -.45484E-06   -.16285E-03
  19  norm          11.402        9.4838       -.41762E-06    .57912E-04
  20  Prefactor     2.5888        8.0341       -.19471E-06    .99642E-04
  21  Prefactor     .10000E-03    18.562        .43035E-07** at limit **
  22  Prefactor     .10000E-03    54.634        .22268E-05** at limit **
  23  norm          .10000E-03    1.4291       -.15876E-06** at limit **
  24  Prefactor     4.2404        20.278       -.95127E-06    .53561E-04
  25  norm          .10000E-03    .33890       -.99332E-07** at limit **
  26  norm          .10000E-03    1.9156       -.21464E-06** at limit **
  27  Prefactor     .10000E-03    1.0185       -.14652E-06** at limit **
  28  Prefactor     .10000E-03    13.633       -.84462E-06** at limit **
  29  Prefactor     6.5700        5.5423       -.62928E-06    .11094E-03
  30  Prefactor     .10000E-03    1.2405       -.94452E-07** at limit **
  31  Prefactor     .10000E-03    26.144       -.13132E-05** at limit **
  32  Normalizat    1.1023        .18637        .22776E-05    .80774E-03
  33  Prefactor     .77893        .19677        .13156E-05    .63989E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 48.8103
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.04241
  Prefactor  = 0.000100001
  Prefactor  = 45.0038
  Prefactor  = 1.26225
  Prefactor  = 23.7684
  Prefactor  = 0.000100004
  Prefactor  = 13.6317
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.2159
  norm       = 0.0001
  norm       = 1.00101
  norm       = 11.4019
  Prefactor  = 2.58881
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 4.24043
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.56996
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.1023
  Prefactor  = 0.778931
 **********
 **   18 **HESSE 
 **********

 FCN=   5112.817     FROM HESSE     STATUS=OK           691 CALLS     5273 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     48.810        27.667        .57397E-04   -1.4310    
   3  Prefactor     .10000E-03    19.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.0424        6.4034        .15116E-03   -1.5177    
   6  Prefactor     .10000E-03    6.5836        .17714E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     45.004        75.878        .29853E-03   -1.4365    
   8  Prefactor     1.2623        17.434        .19836E-02   -1.5483    
   9  Prefactor     23.768        23.398        .82154E-04   -1.4733    
  10  Prefactor     .10000E-03    172.67        .69115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.632        23.075        .10848E-03   -1.4969    
  12  Prefactor     .10000E-03    5.8569        .16838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.1398        .17273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.2159        6.8525        .27627E-03   -1.5410    
  17  norm          .10000E-03    4.5354        .14769E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.0010        2.8612        .22191E-02   -1.5508    
  19  norm          11.402        9.4906        .11865E-03   -1.5033    
  20  Prefactor     2.5888        7.4982        .24839E-03   -1.5386    
  21  Prefactor     .10000E-03    18.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    54.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.4412        .83434E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.2404        17.810        .19533E-03   -1.5296    
  25  norm          .10000E-03    .34690        .81063E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    8.1840        .18859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    1.0446        .70488E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    13.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     6.5700        5.5635        .73452E-03   -1.5195    
  30  Prefactor     .10000E-03    1.2468        .77706E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    26.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.1023        .22357        .21322E-03   -.89678    
  33  Prefactor     .77893        .23555        .27570E-03   -1.0051    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.26228e-09
Minuit parameter uncertainties:
  1  0.000173172
  2  27.6742
  3  5.81805e-05
  4  6.64281e-05
  5  6.404
  6  0.000168679
  7  76.0412
  8  9.38507
  9  23.4068
  10  0.0017638
  11  23.0903
  12  1.31022e-05
  13  2.44565e-05
  14  2.60048e-05
  15  4.44414e-05
  16  6.85494
  17  2.3416e-05
  18  2.86159
  19  9.49187
  20  7.50094
  21  0.000119763
  22  0.000533899
  23  1.38424e-05
  24  17.3892
  25  4.31313e-06
  26  0.00012812
  27  1.17212e-05
  28  0.000100314
  29  5.56393
  30  8.72622e-06
  31  8.4624e-05
  32  0.223763
  33  0.235852
Done.

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

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  1.000e-04  1.198e-04  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:  7.789e-01  2.359e-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.102e+00  2.238e-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: 7.32e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/902633/likelihoodResults_584841601_585100801_4FGL_J2326.9-4130_daily_bin1333.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) = 5112.81763753
delta logL = -0.000256108915892

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5112.81738235
delta logL = -9.23256266105e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9747       1.0000          .0000       10.000    
     3 'Normalizat'    1.1023       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77893       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5112.527     FROM MIGRAD    STATUS=FAILED       162 CALLS      358 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.1653        783.47        .18142E-01    .53512E-04
   2  Index         1.2587        9.1429        .20000       -.79276E-04
   3  Normalizat    1.1073        .60197E-01    .21322E-03    .10461E-03
   4  Prefactor     .76887        .67077E-01    .27570E-03   -.24700E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5112.527     FROM SIMPLEX   STATUS=UNCHANGED     92 CALLS      450 TOTAL
                     EDM=   .54E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.1653        783.47        .28118E-03    .53512E-04
   2  Index         1.2587        9.1429        .11041E-02   -.79276E-04
   3  Normalizat    1.1073        .60197E-01    .48716E-04    .10461E-03
   4  Prefactor     .76887        .67077E-01    .10658E-03   -.24700E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5112.527     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      484 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.1648        19.569        .34627E-03   -.37497E-03
   2  Index         1.2587        .90265        .12112E-01   -.95611E-04
   3  Normalizat    1.1073        .20780        .42644E-04    .88084E-04
   4  Prefactor     .76887        .23056        .11028E-04   -.39999E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.16481
  Index      = 1.25871
  Normalizat = 1.10735
  Prefactor  = 0.768867
 **********
 **   18 **HESSE 
 **********

 FCN=   5112.527     FROM HESSE     STATUS=OK            25 CALLS      509 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.1648        17.999        .13851E-04   -1.5136    
   2  Index         1.2587        .83219        .48447E-03   -2.2962    
   3  Normalizat    1.1073        .20789        .85287E-05   -.89516    
   4  Prefactor     .76887        .23070        .22056E-05   -1.0089    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.62046e-10
Minuit parameter uncertainties:
  1  18.0105
  2  0.841175
  3  0.208048
  4  0.230993
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/902633': 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) = 5112.52735216
delta logL = 0.2900292661

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  8.165e+00  1.801e+01  1.000e-04  1.000e+04 ( 1.000e-13)
436        Index:  1.259e+00  8.412e-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:  7.689e-01  2.310e-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.107e+00  2.080e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.79e-03', job_status='DONE', photon_flux_upper_limit='7.32e-08', time_completed='2021-09-29 19:40:19.404634', job_id='902633', GAL2='0.77', fit_tolerance='1e-08', EG2='1.11', EG='1.10', time_epoch_completed='1632969619.4', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='2.90e-01', ts2='0.58', photon_index_error='0.00', photon_index='2.78' WHERE bin_id='1333' AND source_name='4FGL J2326.9-4130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:40:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 902633: <4FGL_J2326.9-4130_daily_bin1333> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.9-4130_daily_bin1333 351.737 -41.5089 584841601 585100801 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 :                                   831.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             286.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   887 sec.
    Turnaround time :                            890 sec.

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

