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


Performing analysis on: 4FGL_J2326.9-4130_daily_bin1661
RA = 351.737, Dec = -41.5089
tmin = 669859201, tmax = 670118401
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='85382', job_status='RUN', time_executed='2022-03-28 00:41:01.205914', time_epoch_executed='1648453261.21' WHERE source_name='4FGL J2326.9-4130' and cadence='daily' and bin_id='1661'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/85382

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/85382/ft1_4FGL_J2326.9-4130_daily_bin1661.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/85382/ft2_4FGL_J2326.9-4130_daily_bin1661.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/85382/ft1_4FGL_J2326.9-4130_daily_bin1661.fits outfile=/scratch/kocevski/85382/ft1_filteredMKT_4FGL_J2326.9-4130_daily_bin1661.fits ra=351.737 dec=-41.5089 rad=12.0 tmin=669859201.0 tmax=670118401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.75
user 3.46
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/85382/ft2_4FGL_J2326.9-4130_daily_bin1661.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/85382/ft1_filteredMKT_4FGL_J2326.9-4130_daily_bin1661.fits evtable="EVENTS" outfile="/scratch/kocevski/85382/ft1_filtered_4FGL_J2326.9-4130_daily_bin1661.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.55
user 0.34
sys 0.17

Number of photons that the gtmktime cut: 465

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/85382/ft1_filtered_4FGL_J2326.9-4130_daily_bin1661.fits" evtable="EVENTS" scfile=/scratch/kocevski/85382/ft2_4FGL_J2326.9-4130_daily_bin1661.fits sctable="SC_DATA" outfile=/scratch/kocevski/85382/ltcube_669859201_670118401_4FGL_J2326.9-4130_daily_bin1661.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/85382/ft2_4FGL_J2326.9-4130_daily_bin1661.fits
.....................!
real 12.27
user 11.74
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/85382/ft1_filtered_4FGL_J2326.9-4130_daily_bin1661.fits evtable="EVENTS" scfile=/scratch/kocevski/85382/ft2_4FGL_J2326.9-4130_daily_bin1661.fits sctable="SC_DATA" expcube=/scratch/kocevski/85382/ltcube_669859201_670118401_4FGL_J2326.9-4130_daily_bin1661.fits outfile=/scratch/kocevski/85382/expmap_669859201_670118401_4FGL_J2326.9-4130_daily_bin1661.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/85382/ltcube_669859201_670118401_4FGL_J2326.9-4130_daily_bin1661.fits
.....................!
real 191.78
user 185.38
sys 5.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/85382/ft1_filtered_4FGL_J2326.9-4130_daily_bin1661.fits scfile=/scratch/kocevski/85382/ft2_4FGL_J2326.9-4130_daily_bin1661.fits outfile=/scratch/kocevski/85382/cmap_669859201_670118401_4FGL_J2326.9-4130_daily_bin1661.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.56
user 0.35
sys 0.17

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

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

This is gtbin version HEAD
real 0.57
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/85382/ft1_filtered_4FGL_J2326.9-4130_daily_bin1661.fits evtable="EVENTS" scfile=/scratch/kocevski/85382/ft2_4FGL_J2326.9-4130_daily_bin1661.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/85382/Model_4FGL_J2326.9-4130_daily_bin1661.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/85382/ft1_filtered_4FGL_J2326.9-4130_daily_bin1661.fits.....................!
real 40.24
user 38.88
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    84.260       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8554       1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.392       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.1519       1.0000         .10000E-03   10000.    
     9 'Prefactor '    34.614       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    25.436       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.3507       1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.683       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.5028       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    13.700       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    27.984       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    16.381       1.0000         .10000E-03   10000.    
    25 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.2672       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .14579E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    35.515       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    82.021       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .98497       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .77018       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=   5103.832     FROM MIGRAD    STATUS=CONVERGED    885 CALLS     4612 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.412       -.20373E-05** at limit **
   2  Prefactor     84.264        31.163        .73650E-07    .70103E-04
   3  Prefactor     .10000E-03    11.378       -.13933E-05** at limit **
   4  Prefactor     1.8543        51.597       -.92064E-06    .81469E-05
   5  Prefactor     23.391        10.074        .12454E-07    .82072E-04
   6  Prefactor     .10019E-03    3.6559       -.20411E-05** at limit **
   7  Prefactor     .10000E-03    47.472       -.65408E-06** at limit **
   8  Prefactor     9.1521        8.7262       -.21141E-06    .13215E-03
   9  Prefactor     34.604        25.138        .43576E-06    .30554E-04
  10  Prefactor     .10000E-03    10.153        .95659E-06** at limit **
  11  Prefactor     25.434        18.402       -.21162E-06    .12440E-04
  12  Prefactor     6.3500        6.2649       -.86686E-07    .95722E-04
  13  Prefactor     24.676        47.963        .93165E-06    .27807E-04
  14  Prefactor     .10000E-03    16.233       -.28292E-06** at limit **
  15  Prefactor     9.5049        14.747        .25895E-06    .66353E-04
  16  norm          .10000E-03    3.6050       -.64467E-07** at limit **
  17  norm          .10000E-03    1.8019       -.90761E-08** at limit **
  18  norm          .10000E-03    1.6462       -.19681E-08** at limit **
  19  norm          13.699        10.216       -.13665E-06    .30051E-04
  20  Prefactor     .10000E-03    2.9910       -.15121E-06** at limit **
  21  Prefactor     27.988        39.178       -.16682E-08    .42973E-04
  22  Prefactor     .10000E-03    17.134        .50549E-06** at limit **
  23  norm          .10000E-03    3.1704        .15276E-06** at limit **
  24  Prefactor     16.383        12.988        .30566E-06    .11200E-03
  25  norm          .10000E-03    .44172       -.13490E-07** at limit **
  26  norm          1.2668        3.9157       -.51134E-06    .51942E-04
  27  Prefactor     .10000E-03    5.7848        .30616E-05** at limit **
  28  Prefactor     35.561        25.111        .89273E-06    .77455E-04
  29  Prefactor     .10000E-03    4.9469       -.80319E-07** at limit **
  30  Prefactor     .10000E-03    1.9369       -.14174E-06** at limit **
  31  Prefactor     82.016        75.582        .36081E-06    .11411E-04
  32  Normalizat    .98477        .19896       -.78525E-07    .27362E-03
  33  Prefactor     .77048        .20074        .15131E-05    .32280E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 84.2641
  Prefactor  = 0.0001
  Prefactor  = 1.85433
  Prefactor  = 23.3914
  Prefactor  = 0.000100186
  Prefactor  = 0.0001
  Prefactor  = 9.15211
  Prefactor  = 34.6037
  Prefactor  = 0.0001
  Prefactor  = 25.4342
  Prefactor  = 6.35004
  Prefactor  = 24.6763
  Prefactor  = 0.0001
  Prefactor  = 9.50492
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 13.6988
  Prefactor  = 0.0001
  Prefactor  = 27.9882
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.383
  norm       = 0.0001
  norm       = 1.26676
  Prefactor  = 0.000100002
  Prefactor  = 35.5605
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 82.0162
  Normalizat = 0.984768
  Prefactor  = 0.770476
 **********
 **   18 **HESSE 
 **********

 FCN=   5103.832     FROM HESSE     STATUS=OK           695 CALLS     5307 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     84.264        31.180        .43762E-04   -1.3869    
   3  Prefactor     .10000E-03    11.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.8543        51.233        .30600E-03   -1.5436    
   5  Prefactor     23.391        10.026        .82820E-04   -1.4740    
   6  Prefactor     .10019E-03    25.742        .18950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    47.868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.1521        8.7172        .13248E-03   -1.5103    
   9  Prefactor     34.604        25.124        .68114E-04   -1.4531    
  10  Prefactor     .10000E-03    10.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     25.434        18.427        .79428E-04   -1.4699    
  12  Prefactor     6.3500        6.2606        .15928E-03   -1.5204    
  13  Prefactor     24.676        47.913        .80629E-04   -1.4714    
  14  Prefactor     .10000E-03    16.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.5049        14.705        .13000E-03   -1.5091    
  16  norm          .10000E-03    3.6073        .13249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.8024        .93657E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.6466        .89511E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          13.699        10.219        .10822E-03   -1.4968    
  20  Prefactor     .10000E-03    3.0090        .12043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     27.988        38.813        .75732E-04   -1.4649    
  22  Prefactor     .10000E-03    17.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    3.1902        .12362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     16.383        12.964        .98957E-04   -1.4898    
  25  norm          .10000E-03    1.0515        .91653E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.2668        3.8384        .22116E-03   -1.5483    
  27  Prefactor     .10000E-03    6.0608        .21996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     35.561        24.963        .67247E-04   -1.4515    
  29  Prefactor     .10000E-03    5.0025        .15479E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    1.9561        .97106E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     82.016        76.035        .44350E-04   -1.3894    
  32  Normalizat    .98477        .24170        .23107E-03   -.93542    
  33  Prefactor     .77048        .24321        .28109E-03   -1.0083    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.24392e-09
Minuit parameter uncertainties:
  1  0.000131483
  2  31.1861
  3  3.96111e-05
  4  19.5119
  5  10.0264
  6  0.00438212
  7  8.93091e-05
  8  8.71843
  9  25.1318
  10  1.43409e-07
  11  18.4308
  12  6.26126
  13  47.9877
  14  1.8512e-05
  15  14.7109
  16  3.44888e-06
  17  1.28496e-06
  18  2.17224e-07
  19  10.2205
  20  2.1022e-05
  21  38.848
  22  4.25775e-07
  23  1.38019e-05
  24  12.9664
  25  8.91067e-06
  26  3.83918
  27  0.00019095
  28  24.9708
  29  3.74112e-05
  30  6.79782e-06
  31  76.1249
  32  0.241969
  33  0.243552
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  7.705e-01  2.436e-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:  9.848e-01  2.420e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/85382/likelihoodResults_669859201_670118401_4FGL_J2326.9-4130_daily_bin1661.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5103.11260531
delta logL = 0.719463404705

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5103.10918152
delta logL = 0.722887191752

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6204       1.0000         .10000E-03   10000.    
     2 'Index     '    4.7090       1.0000          .0000       10.000    
     3 'Normalizat'    .92883       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81704       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=   5103.109     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      304 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5996        41.022        .62988E-02    .35880E-03
   2  Index         4.7138        3.4387        .13757        .10976E-03
   3  Normalizat    .92874        .54048E-01    .45269E-01    .99190E-05
   4  Prefactor     .81696        .58706E-01    .43939E-01    .13113E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.59959
  Index      = 4.71377
  Normalizat = 0.928741
  Prefactor  = 0.816965
 **********
 **   18 **HESSE 
 **********

 FCN=   5103.109     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      337 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5996        78.572        .86088E-04   -1.5385    
   2  Index         4.7138        7.2758        .51001E-02   -.57278E-01
   3  Normalizat    .92874        .19427        .23702E-03   -.95457    
   4  Prefactor     .81696        .20851        .27359E-03   -.99106    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.14067e-10
Minuit parameter uncertainties:
  1  28.6243
  2  6.28075
  3  0.19442
  4  0.208711
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/85382': 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) = 5103.10917819
delta logL = 0.722890520722

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  8.170e-01  2.087e-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:  9.287e-01  1.944e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.31
Ra Dec: 351.737 -41.509
Photon Index (Free Index): 4.71 +/- 6.28
Photon Flux (Free Index): 7.31e-08 +/- 6.25e-08
Energy Flux (Free Index): 9.98e-06 +/- 1.24e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.08e-02', comment='SUCCESS', energy_flux2='9.98e-06', dlogl='7.23e-01', photon_flux2='7.31e-08', job_status='DONE', time_completed='2022-03-28 00:54:44.049674', photon_index_error2='6.28', photon_index2='4.71', ts='0.75', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='1.37e-07', energy_flux_error2='1.24e-05', EG='0.98', time_epoch_completed='1648454084.05', return_code='0', job_id='85382', GAL2='0.82', EG2='0.93', return_code2='102', photon_flux_error2='6.25e-08', ts2='2.31', photon_index='2.78' WHERE bin_id='1661' AND source_name='4FGL J2326.9-4130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Mar 28 00:54:44 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0016>
Subject: Job 85382: <4FGL_J2326.9-4130_daily_bin1661> in cluster <slac> Done

Job <4FGL_J2326.9-4130_daily_bin1661> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Mar 28 00:40:43 2022
Job was executed on host(s) <bullet0016>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar 28 00:40:45 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar 28 00:40:45 2022
Terminated at Mon Mar 28 00:54:44 2022
Results reported at Mon Mar 28 00:54:44 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.9-4130_daily_bin1661 351.737 -41.5089 669859201 670118401 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 :                                   821.16 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   839 sec.
    Turnaround time :                            841 sec.

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

