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


Performing analysis on: 4FGL_J2326.9-4130_daily_bin1553
RA = 351.737, Dec = -41.5089
tmin = 641865601, tmax = 642124801
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='904605', job_status='RUN', time_executed='2021-09-29 19:32:25.357587', time_epoch_executed='1632969145.36' WHERE source_name='4FGL J2326.9-4130' and cadence='daily' and bin_id='1553'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/904605

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/904605/ft1_4FGL_J2326.9-4130_daily_bin1553.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/904605/ft2_4FGL_J2326.9-4130_daily_bin1553.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/904605/ft1_4FGL_J2326.9-4130_daily_bin1553.fits outfile=/scratch/kocevski/904605/ft1_filteredMKT_4FGL_J2326.9-4130_daily_bin1553.fits ra=351.737 dec=-41.5089 rad=12.0 tmin=641865601.0 tmax=642124801.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 4.42
user 4.17
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/904605/ft1_filtered_4FGL_J2326.9-4130_daily_bin1553.fits" evtable="EVENTS" scfile=/scratch/kocevski/904605/ft2_4FGL_J2326.9-4130_daily_bin1553.fits sctable="SC_DATA" outfile=/scratch/kocevski/904605/ltcube_641865601_642124801_4FGL_J2326.9-4130_daily_bin1553.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/904605/ft2_4FGL_J2326.9-4130_daily_bin1553.fits
.....................!
real 12.30
user 11.84
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/904605/ft1_filtered_4FGL_J2326.9-4130_daily_bin1553.fits evtable="EVENTS" scfile=/scratch/kocevski/904605/ft2_4FGL_J2326.9-4130_daily_bin1553.fits sctable="SC_DATA" expcube=/scratch/kocevski/904605/ltcube_641865601_642124801_4FGL_J2326.9-4130_daily_bin1553.fits outfile=/scratch/kocevski/904605/expmap_641865601_642124801_4FGL_J2326.9-4130_daily_bin1553.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/904605/ltcube_641865601_642124801_4FGL_J2326.9-4130_daily_bin1553.fits
.....................!
real 190.65
user 185.45
sys 4.58

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

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

This is gtbin version HEAD
real 0.53
user 0.39
sys 0.12

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/904605/ft1_filtered_4FGL_J2326.9-4130_daily_bin1553.fits evtable="EVENTS" scfile=/scratch/kocevski/904605/ft2_4FGL_J2326.9-4130_daily_bin1553.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/904605/Model_4FGL_J2326.9-4130_daily_bin1553.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/904605/ft1_filtered_4FGL_J2326.9-4130_daily_bin1553.fits.....................!
real 40.22
user 38.58
sys 1.43

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.336       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    49.827       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.8343       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    31.566       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.9940       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.313       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.4653       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.0005       1.0000         .10000E-03   10000.    
    14 'Prefactor '    42.389       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    16.830       1.0000         .10000E-03   10000.    
    17 'norm      '    .29848       1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.6768       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.8833       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10062E-02   1.0000         .10000E-03   10000.    
    23 'norm      '    .38840       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.9658       1.0000         .10000E-03   10000.    
    26 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.3468       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    5.7363       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0379       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .79644       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=   5023.196     FROM MIGRAD    STATUS=CONVERGED    892 CALLS     3933 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.329        39.910       -.55883E-06   -.51882E-04
   2  Prefactor     .10000E-03    16.884       -.14348E-05** at limit **
   3  Prefactor     .10001E-03    197.70       -.54383E-05** at limit **
   4  Prefactor     .10000E-03    26.171        .19620E-05** at limit **
   5  Prefactor     49.825        12.632        .38338E-07   -.47821E-04
   6  Prefactor     4.8337        5.0541        .18233E-06   -.14296E-03
   7  Prefactor     .10001E-03    46.792        .30090E-05** at limit **
   8  Prefactor     .10000E-03    2.9556        .11181E-08** at limit **
   9  Prefactor     31.564        27.516        .29802E-06    .51863E-04
  10  Prefactor     2.9807        63.642        .26324E-05    .16379E-04
  11  Prefactor     15.313        11.343        .26578E-07   -.89812E-05
  12  Prefactor     6.4654        6.1593        .67482E-07    .33912E-04
  13  Prefactor     3.9989        27.008        .60252E-06    .50248E-06
  14  Prefactor     42.390        42.986        .13026E-06   -.21170E-05
  15  Prefactor     .10000E-03    11.302        .10170E-08** at limit **
  16  norm          16.830        15.423        .87797E-07    .35032E-05
  17  norm          .29421        5.2727        .76365E-06   -.33447E-03
  18  norm          .10000E-03    1.9762       -.30064E-07** at limit **
  19  norm          5.6783        6.7839       -.95363E-07   -.22229E-03
  20  Prefactor     5.8849        7.0408        .42626E-06    .10576E-03
  21  Prefactor     .10000E-03    20.336       -.50641E-06** at limit **
  22  Prefactor     .10005E-03    184.63        .10099E-04** at limit **
  23  norm          .39299        2.5020        .30351E-06   -.23384E-03
  24  Prefactor     .10000E-03    15.334        .10961E-05** at limit **
  25  norm          4.9659        1.7601       -.63625E-07   -.23489E-03
  26  norm          .10000E-03    1.2145       -.27393E-07** at limit **
  27  Prefactor     3.3418        4.1149       -.64102E-07    .23895E-05
  28  Prefactor     .10000E-03    40.504       -.21627E-05** at limit **
  29  Prefactor     .10000E-03    2.0967        .11151E-07** at limit **
  30  Prefactor     5.7350        4.6630        .18152E-05   -.92377E-03
  31  Prefactor     .10000E-03    35.928       -.23462E-05** at limit **
  32  Normalizat    1.0380        .20023       -.11745E-05   -.37391E-04
  33  Prefactor     .79635        .20994        .19664E-06   -.86555E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.329
  Prefactor  = 0.000100001
  Prefactor  = 0.000100013
  Prefactor  = 0.000100002
  Prefactor  = 49.8253
  Prefactor  = 4.83368
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 31.5638
  Prefactor  = 2.98071
  Prefactor  = 15.3129
  Prefactor  = 6.46537
  Prefactor  = 3.99892
  Prefactor  = 42.3895
  Prefactor  = 0.0001
  norm       = 16.8298
  norm       = 0.294209
  norm       = 0.0001
  norm       = 5.67827
  Prefactor  = 5.88489
  Prefactor  = 0.0001
  Prefactor  = 0.000100048
  norm       = 0.392988
  Prefactor  = 0.0001
  norm       = 4.96592
  norm       = 0.0001
  Prefactor  = 3.34179
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 5.73504
  Prefactor  = 0.000100003
  Normalizat = 1.03804
  Prefactor  = 0.796345
 **********
 **   18 **HESSE 
 **********

 FCN=   5023.196     FROM HESSE     STATUS=OK           695 CALLS     4628 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.329        40.000        .82919E-04   -1.4742    
   2  Prefactor     .10000E-03    17.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    203.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    26.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     49.825        12.649        .56811E-04   -1.4295    
   6  Prefactor     4.8337        5.0539        .15445E-03   -1.5268    
   7  Prefactor     .10001E-03    47.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.9838        .11898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     31.564        27.441        .71317E-04   -1.4584    
  10  Prefactor     2.9807        63.019        .23460E-03   -1.5363    
  11  Prefactor     15.313        11.345        .10235E-03   -1.4925    
  12  Prefactor     6.4654        6.1590        .15784E-03   -1.5199    
  13  Prefactor     3.9989        27.004        .20164E-03   -1.5308    
  14  Prefactor     42.390        42.989        .61572E-04   -1.4405    
  15  Prefactor     .10000E-03    11.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          16.830        15.427        .97629E-04   -1.4887    
  17  norm          .29421        17.277        .30545E-02   -1.5599    
  18  norm          .10000E-03    1.9791        .97232E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.6783        6.8073        .16859E-03   -1.5231    
  20  Prefactor     5.8849        7.0361        .16556E-03   -1.5223    
  21  Prefactor     .10000E-03    20.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10005E-03    197.82        .41517E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .39299        4.6653        .21454E-02   -1.5583    
  24  Prefactor     .10000E-03    15.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.9659        1.7803        .50378E-04   -1.5262    
  26  norm          .10000E-03    1.2162        .76234E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     3.3418        4.0982        .14977E-03   -1.5342    
  28  Prefactor     .10000E-03    41.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    2.1020        .10022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     5.7350        4.8603        .68094E-03   -1.5229    
  31  Prefactor     .10000E-03    36.581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.0380        .23914        .23478E-03   -.91767    
  33  Prefactor     .79635        .25144        .28764E-03   -.99863    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21607e-08
Minuit parameter uncertainties:
  1  40.0462
  2  0.000274611
  3  0.00324013
  4  0.000504313
  5  12.6495
  6  5.05438
  7  0.00101392
  8  3.2002e-07
  9  27.4516
  10  27.4436
  11  11.3466
  12  6.1596
  13  20.7965
  14  43.0208
  15  4.64939e-06
  16  15.4307
  17  4.50974
  18  2.97344e-07
  19  6.80826
  20  7.03704
  21  9.34735e-05
  22  0.00617193
  23  2.70798
  24  0.000148181
  25  1.78033
  26  2.20871e-07
  27  4.09858
  28  0.00061909
  29  1.53638e-06
  30  4.86065
  31  0.000712706
  32  0.239385
  33  0.251798
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  7.963e-01  2.518e-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.038e+00  2.394e-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.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/904605/likelihoodResults_641865601_642124801_4FGL_J2326.9-4130_daily_bin1553.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) = 5023.1959377
delta logL = -0.00023349984076

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5023.1957045
delta logL = -3.02627995552e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10590E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6905       1.0000          .0000       10.000    
     3 'Normalizat'    1.0381       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79632       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=   5023.196     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      200 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6994.5        .90712E-02** at limit **
   2  Index         2.6876        5.9411        .50000        .12620E-05
   3  Normalizat    1.0380        .13499        .41432E-01    .78213E-05
   4  Prefactor     .79635        .14629        .65023E-01    .15105E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.68758
  Normalizat = 1.03804
  Prefactor  = 0.796347
 **********
 **   18 **HESSE 
 **********

 FCN=   5023.196     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .23E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6876        6.3428        .50000       -.48079    
   3  Normalizat    1.0380        .22527        .23478E-03   -.91767    
   4  Prefactor     .79635        .24570        .28764E-03   -.99863    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.25013e-12
Minuit parameter uncertainties:
  1  7.32977e-06
  2  4.95904
  3  0.225478
  4  0.246036
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/904605': 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) = 5023.19570418
delta logL = 2.37678250414e-08

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  1.000e-04  7.330e-06  1.000e-04  1.000e+04 ( 1.000e-13)
436        Index:  2.688e+00  4.959e+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:  7.963e-01  2.460e-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.038e+00  2.255e-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/904605/cmap_HighResolution_641865601_642124801_4FGL_J2326.9-4130_daily_bin1553.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.85e-03', job_status='DONE', photon_flux_upper_limit='7.40e-08', time_completed='2021-09-29 19:45:20.189988', job_id='904605', GAL2='0.80', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1632969920.19', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='2.38e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.78' WHERE bin_id='1553' AND source_name='4FGL J2326.9-4130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:45:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 904605: <4FGL_J2326.9-4130_daily_bin1553> in cluster <slac> Done

Job <4FGL_J2326.9-4130_daily_bin1553> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 19:30:23 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 19:30:24 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:30:24 2021
Terminated at Wed Sep 29 19:45:21 2021
Results reported at Wed Sep 29 19:45:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.9-4130_daily_bin1553 351.737 -41.5089 641865601 642124801 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 :                                   771.00 sec.
    Max Memory :                                 1129 MB
    Average Memory :                             291.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   896 sec.
    Turnaround time :                            898 sec.

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

