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


Performing analysis on: 4FGL_J2326.9-4130_daily_bin1391
RA = 351.737, Dec = -41.5089
tmin = 599875201, tmax = 600134401
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='902727', job_status='RUN', time_executed='2021-09-29 19:27:05.269641', time_epoch_executed='1632968825.27' WHERE source_name='4FGL J2326.9-4130' and cadence='daily' and bin_id='1391'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/902727

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/902727/ft1_4FGL_J2326.9-4130_daily_bin1391.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/902727/ft2_4FGL_J2326.9-4130_daily_bin1391.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/902727/ft1_4FGL_J2326.9-4130_daily_bin1391.fits outfile=/scratch/kocevski/902727/ft1_filteredMKT_4FGL_J2326.9-4130_daily_bin1391.fits ra=351.737 dec=-41.5089 rad=12.0 tmin=599875201.0 tmax=600134401.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.38
user 2.18
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/902727/ft1_filtered_4FGL_J2326.9-4130_daily_bin1391.fits" evtable="EVENTS" scfile=/scratch/kocevski/902727/ft2_4FGL_J2326.9-4130_daily_bin1391.fits sctable="SC_DATA" outfile=/scratch/kocevski/902727/ltcube_599875201_600134401_4FGL_J2326.9-4130_daily_bin1391.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/902727/ft2_4FGL_J2326.9-4130_daily_bin1391.fits
.....................!
real 12.64
user 12.22
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/902727/ft1_filtered_4FGL_J2326.9-4130_daily_bin1391.fits evtable="EVENTS" scfile=/scratch/kocevski/902727/ft2_4FGL_J2326.9-4130_daily_bin1391.fits sctable="SC_DATA" expcube=/scratch/kocevski/902727/ltcube_599875201_600134401_4FGL_J2326.9-4130_daily_bin1391.fits outfile=/scratch/kocevski/902727/expmap_599875201_600134401_4FGL_J2326.9-4130_daily_bin1391.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/902727/ltcube_599875201_600134401_4FGL_J2326.9-4130_daily_bin1391.fits
.....................!
real 190.95
user 185.47
sys 4.93

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/902727/ft1_filtered_4FGL_J2326.9-4130_daily_bin1391.fits scfile=/scratch/kocevski/902727/ft2_4FGL_J2326.9-4130_daily_bin1391.fits outfile=/scratch/kocevski/902727/cmap_599875201_600134401_4FGL_J2326.9-4130_daily_bin1391.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.36
sys 0.16

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/902727/ft1_filtered_4FGL_J2326.9-4130_daily_bin1391.fits evtable="EVENTS" scfile=/scratch/kocevski/902727/ft2_4FGL_J2326.9-4130_daily_bin1391.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/902727/Model_4FGL_J2326.9-4130_daily_bin1391.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/902727/ft1_filtered_4FGL_J2326.9-4130_daily_bin1391.fits.....................!
real 40.45
user 39.16
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.4438       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11044E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10218E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.8936       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.683       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11431E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    17.783       1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.483       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    33.670       1.0000         .10000E-03   10000.    
    23 'norm      '    5.2490       1.0000         .10000E-03   10000.    
    24 'Prefactor '    26.489       1.0000         .10000E-03   10000.    
    25 'norm      '    .48110       1.0000         .10000E-03   10000.    
    26 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.9954       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.4301       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.4113       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .81365       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=   5225.160     FROM MIGRAD    STATUS=CONVERGED    876 CALLS     4556 TOTAL
                     EDM=   .33E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    131.24        .90365E-05** at limit **
   2  Prefactor     .10000E-03    8.5785       -.70083E-06** at limit **
   3  Prefactor     .10000E-03    102.51       -.27465E-05** at limit **
   4  Prefactor     8.4300        29.110        .13126E-05    .57950E-05
   5  Prefactor     .10000E-03    5.2031       -.36782E-06** at limit **
   6  Prefactor     .10000E-03    7.1104        .57102E-06** at limit **
   7  Prefactor     .10000E-03    20.198        .10217E-05** at limit **
   8  Prefactor     2.8911        11.044        .50530E-05   -.19067E-04
   9  Prefactor     16.685        19.404        .18009E-06    .12584E-04
  10  Prefactor     .10000E-03    53.200       -.27845E-05** at limit **
  11  Prefactor     .10000E-03    5.3614        .28756E-06** at limit **
  12  Prefactor     .10000E-03    4.1658       -.80024E-08** at limit **
  13  Prefactor     .10000E-03    42.262        .17309E-05** at limit **
  14  Prefactor     .10000E-03    29.472       -.34358E-06** at limit **
  15  Prefactor     .10000E-03    21.878       -.12436E-05** at limit **
  16  norm          .10000E-03    9.1435        .38189E-06** at limit **
  17  norm          .10000E-03    2.2838       -.54197E-08** at limit **
  18  norm          .10000E-03    2.9098       -.12674E-06** at limit **
  19  norm          17.782        10.234        .68023E-07    .70901E-05
  20  Prefactor     10.485        9.6735       -.83604E-07    .71305E-05
  21  Prefactor     .10000E-03    100.96       -.44425E-05** at limit **
  22  Prefactor     33.665        32.871        .40895E-06    .61496E-06
  23  norm          5.2491        4.5986        .52227E-06    .20859E-03
  24  Prefactor     26.492        23.485        .50025E-07    .50097E-05
  25  norm          .47914        1.2864        .27570E-06    .10633E-03
  26  norm          .10000E-03    3.2435       -.14113E-06** at limit **
  27  Prefactor     1.9964        3.0397        .10849E-06    .23331E-04
  28  Prefactor     .10000E-03    9.0849        .14574E-06** at limit **
  29  Prefactor     .10000E-03    5.9458       -.26276E-06** at limit **
  30  Prefactor     1.4285        4.8367        .59554E-06    .19661E-04
  31  Prefactor     .10000E-03    40.691        .19344E-05** at limit **
  32  Normalizat    1.4117        .21454       -.11491E-05    .69336E-04
  33  Prefactor     .81324        .22243        .27564E-06   -.53068E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.43001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.8911
  Prefactor  = 16.6848
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 17.7817
  Prefactor  = 10.4851
  Prefactor  = 0.0001
  Prefactor  = 33.6648
  norm       = 5.24908
  Prefactor  = 26.4922
  norm       = 0.479144
  norm       = 0.0001
  Prefactor  = 1.99639
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.42851
  Prefactor  = 0.0001
  Normalizat = 1.41172
  Prefactor  = 0.813243
 **********
 **   18 **HESSE 
 **********

 FCN=   5225.160     FROM HESSE     STATUS=OK           683 CALLS     5239 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    131.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.5781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    103.79        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.4300        29.085        .13796E-03   -1.5127    
   5  Prefactor     .10000E-03    5.2316        .16053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.3428        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    20.202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.8911        11.060        .11945E-02   -1.5368    
   9  Prefactor     16.685        19.407        .98058E-04   -1.4891    
  10  Prefactor     .10000E-03    53.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.3712        .16347E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.1828        .14407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    42.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    29.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    21.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    9.1783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.2845        .10668E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.9169        .12034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          17.782        10.232        .94976E-04   -1.4864    
  20  Prefactor     10.485        9.6537        .12375E-03   -1.5060    
  21  Prefactor     .10000E-03    102.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     33.665        32.875        .69059E-04   -1.4547    
  23  norm          5.2491        4.6080        .13938E-03   -1.5250    
  24  Prefactor     26.492        23.397        .77836E-04   -1.4678    
  25  norm          .47914        1.2478        .12271E-03   -1.5570    
  26  norm          .10000E-03    3.3652        .25405E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.9964        3.0086        .14933E-03   -1.5425    
  28  Prefactor     .10000E-03    9.0907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    6.0571        .17200E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     1.4285        4.8452        .27374E-03   -1.5469    
  31  Prefactor     .10000E-03    40.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.4117        .26258        .22474E-03   -.80290    
  33  Prefactor     .81324        .27247        .31103E-03   -.99242    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.44163e-11
Minuit parameter uncertainties:
  1  0.000124194
  2  4.44223e-07
  3  0.000136611
  4  29.1338
  5  1.69935e-05
  6  6.19663e-06
  7  3.92878e-06
  8  11.0675
  9  19.4142
  10  0.00010988
  11  6.93491e-07
  12  1.03745e-06
  13  5.39424e-06
  14  7.99378e-07
  15  6.73659e-06
  16  1.43256e-07
  17  2.82906e-07
  18  9.2531e-06
  19  10.2331
  20  9.6551
  21  0.000425557
  22  32.8927
  23  4.60829
  24  23.4055
  25  1.24792
  26  6.86665e-06
  27  3.00883
  28  5.00899e-07
  29  5.35015e-06
  30  4.8465
  31  1.27105e-05
  32  0.262827
  33  0.272926
Done.

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

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  1.000e-04  4.256e-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:  8.132e-01  2.729e-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.412e+00  2.628e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 351.737 -41.509
Photon Flux Upper Limit: 1.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/902727/likelihoodResults_599875201_600134401_4FGL_J2326.9-4130_daily_bin1391.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) = 5225.16008663
delta logL = -4.63364249299e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5225.16004054
delta logL = -2.49897311733e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0745       1.0000          .0000       10.000    
     3 'Normalizat'    1.4117       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81325       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5820E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5225.160     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      296 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10567E-03    .64966        .12475    ** at limit **
   2  Index         2.9587        6.9930        .50000        .45398E-05
   3  Normalizat    1.4117        .81479E-03    .22474E-03   -.16762E-03
   4  Prefactor     .81325        .88710E-03    .31103E-03   -.31398E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105671
  Index      = 2.95867
  Normalizat = 1.41172
  Prefactor  = 0.813247
 **********
 **   18 **HESSE 
 **********

 FCN=   5225.160     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      327 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10567E-03    153.01        .68903E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9587        5.2554        .50000       -.42055    
   3  Normalizat    1.4117        .67542E-02    .44948E-04   -.80290    
   4  Prefactor     .81325        .73536E-02    .12441E-04   -.99242    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.5748e-10
Minuit parameter uncertainties:
  1  0.0590662
  2  355.141
  3  0.00675422
  4  0.00735359
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/902727': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5225.16004044
delta logL = -1.5008936316e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  8.132e-01  7.354e-03  0.000e+00  1.000e+01 ( 1.000e+00)
580        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
581        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
578   Normalization:  1.412e+00  6.754e-03  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.20e-03', job_status='DONE', photon_flux_upper_limit='1.16e-07', time_completed='2021-09-29 19:42:06.608409', job_id='902727', GAL2='0.81', fit_tolerance='1e-08', EG2='1.41', EG='1.41', time_epoch_completed='1632969726.61', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='-1.50e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.78' WHERE bin_id='1391' AND source_name='4FGL J2326.9-4130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:42:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 902727: <4FGL_J2326.9-4130_daily_bin1391> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.9-4130_daily_bin1391 351.737 -41.5089 599875201 600134401 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 :                                   825.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             309.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   987 sec.
    Turnaround time :                            989 sec.

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

