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


Performing analysis on: 4FGL_J2326.9-4130_daily_bin1166
RA = 351.737, Dec = -41.5089
tmin = 541555201, tmax = 541814401
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='901154', job_status='RUN', time_executed='2021-09-29 19:22:30.065155', time_epoch_executed='1632968550.07' WHERE source_name='4FGL J2326.9-4130' and cadence='daily' and bin_id='1166'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/901154

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/901154/ft1_4FGL_J2326.9-4130_daily_bin1166.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/901154/ft2_4FGL_J2326.9-4130_daily_bin1166.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/901154/ft1_4FGL_J2326.9-4130_daily_bin1166.fits outfile=/scratch/kocevski/901154/ft1_filteredMKT_4FGL_J2326.9-4130_daily_bin1166.fits ra=351.737 dec=-41.5089 rad=12.0 tmin=541555201.0 tmax=541814401.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.64
user 3.41
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/901154/ft1_filtered_4FGL_J2326.9-4130_daily_bin1166.fits" evtable="EVENTS" scfile=/scratch/kocevski/901154/ft2_4FGL_J2326.9-4130_daily_bin1166.fits sctable="SC_DATA" outfile=/scratch/kocevski/901154/ltcube_541555201_541814401_4FGL_J2326.9-4130_daily_bin1166.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/901154/ft2_4FGL_J2326.9-4130_daily_bin1166.fits
.....................!
real 12.52
user 12.14
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/901154/ft1_filtered_4FGL_J2326.9-4130_daily_bin1166.fits evtable="EVENTS" scfile=/scratch/kocevski/901154/ft2_4FGL_J2326.9-4130_daily_bin1166.fits sctable="SC_DATA" expcube=/scratch/kocevski/901154/ltcube_541555201_541814401_4FGL_J2326.9-4130_daily_bin1166.fits outfile=/scratch/kocevski/901154/expmap_541555201_541814401_4FGL_J2326.9-4130_daily_bin1166.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/901154/ltcube_541555201_541814401_4FGL_J2326.9-4130_daily_bin1166.fits
.....................!
real 190.89
user 186.21
sys 4.33

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/901154/ft1_filtered_4FGL_J2326.9-4130_daily_bin1166.fits scfile=/scratch/kocevski/901154/ft2_4FGL_J2326.9-4130_daily_bin1166.fits outfile=/scratch/kocevski/901154/cmap_HighResolution_541555201_541814401_4FGL_J2326.9-4130_daily_bin1166.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/901154/ft1_filtered_4FGL_J2326.9-4130_daily_bin1166.fits evtable="EVENTS" scfile=/scratch/kocevski/901154/ft2_4FGL_J2326.9-4130_daily_bin1166.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/901154/Model_4FGL_J2326.9-4130_daily_bin1166.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/901154/ft1_filtered_4FGL_J2326.9-4130_daily_bin1166.fits.....................!
real 35.53
user 34.28
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .16628       1.0000         .10000E-03   10000.    
     3 'Prefactor '    62.848       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.9605       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .94707       1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.138       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.4199       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.9598       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .16838E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    8.2369       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .90537E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.2099       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    112.57       1.0000         .10000E-03   10000.    
    23 'norm      '    6.7096       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    7.5372       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .53272       1.0000         .10000E-03   10000.    
    28 'Prefactor '    18.870       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    2.8937       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1106       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0004       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=   4207.594     FROM MIGRAD    STATUS=CONVERGED   1607 CALLS     5313 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.443        .18142E-02** at limit **
   2  Prefactor     .10327        34.671        .95679E-01    .10491E-03
   3  Prefactor     62.827        63.289        .50617E-04    .15736E-03
   4  Prefactor     .10000E-03    9.8363        .18142E-02** at limit **
   5  Prefactor     4.9608        5.7334        .16226E-03    .50376E-04
   6  Prefactor     .94636        7.1192        .15925E-02    .83246E-03
   7  Prefactor     24.143        32.868        .81531E-04    .66931E-05
   8  Prefactor     7.4209        8.0639        .73619E-03    .34360E-04
   9  Prefactor     .10000E-03    9.0232        .18142E-02** at limit **
  10  Prefactor     .10000E-03    10.705        .18142E-02** at limit **
  11  Prefactor     5.9481        20.425        .16448E-03   -.23776E-04
  12  Prefactor     .10000E-03    6.9042        .16578E-02** at limit **
  13  Prefactor     .10000E-03    17.301        .18142E-02** at limit **
  14  Prefactor     .10000E-03    273.68        .20377E-02** at limit **
  15  Prefactor     .10000E-03    13.985        .18142E-02** at limit **
  16  norm          8.2312        15.076        .13969E-03    .13917E-04
  17  norm          .10000E-03    2.2724        .95489E-03** at limit **
  18  norm          .10000E-03    2.7723        .10537E-02** at limit **
  19  norm          .10000E-03    44.664        .36013E-02** at limit **
  20  Prefactor     3.2092        4.0342        .14244E-03    .10544E-03
  21  Prefactor     .10000E-03    16.178        .18142E-02** at limit **
  22  Prefactor     112.66        82.599        .18957E-03    .34363E-04
  23  norm          6.7095        5.5397        .12934E-03    .38674E-04
  24  Prefactor     .10000E-03    5.5851        .14957E-02** at limit **
  25  norm          .10000E-03    .27458        .33065E-03** at limit **
  26  norm          7.5375        6.6425        .14530E-03    .53047E-04
  27  Prefactor     .53186        3.1063        .21916E-03   -.19914E-03
  28  Prefactor     18.875        23.295        .92202E-04    .16769E-03
  29  Prefactor     .10000E-03    4.4274        .13271E-02** at limit **
  30  Prefactor     2.8923        6.5173        .21862E-03    .37816E-03
  31  Prefactor     .10000E-03    26.801        .18142E-02** at limit **
  32  Normalizat    1.1104        .27911        .24085E-03    .99548E-04
  33  Prefactor     1.0005        .29073        .27544E-03    .13080E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.103266
  Prefactor  = 62.8273
  Prefactor  = 0.0001
  Prefactor  = 4.96084
  Prefactor  = 0.946364
  Prefactor  = 24.1428
  Prefactor  = 7.42091
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.94808
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 8.2312
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.20922
  Prefactor  = 0.0001
  Prefactor  = 112.655
  norm       = 6.70946
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.53747
  Prefactor  = 0.531858
  Prefactor  = 18.8749
  Prefactor  = 0.0001
  Prefactor  = 2.89228
  Prefactor  = 0.0001
  Normalizat = 1.1104
  Prefactor  = 1.00053
 **********
 **   18 **HESSE 
 **********

 FCN=   4207.594     FROM HESSE     STATUS=OK           675 CALLS     5988 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.443        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10327        32.456        .10030       -1.5644    
   3  Prefactor     62.827        63.289        .10123E-04   -1.4121    
   4  Prefactor     .10000E-03    9.8364        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.9608        5.7334        .64905E-05   -1.5262    
   6  Prefactor     .94636        7.0946        .31850E-03   -1.5513    
   7  Prefactor     24.143        32.866        .32613E-05   -1.4725    
   8  Prefactor     7.4209        8.0621        .29447E-04   -1.5163    
   9  Prefactor     .10000E-03    9.0233        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.706        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.9481        20.424        .65794E-05   -1.5220    
  12  Prefactor     .10000E-03    6.9059        .33157E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    17.301        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    273.84        .40755E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.990        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.2312        15.077        .55876E-05   -1.5134    
  17  norm          .10000E-03    2.2724        .19098E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.7723        .21073E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    44.961        .72025E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.2092        4.0341        .56975E-05   -1.5350    
  21  Prefactor     .10000E-03    16.179        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     112.66        82.574        .75828E-05   -1.3581    
  23  norm          6.7095        5.5394        .51738E-05   -1.5190    
  24  Prefactor     .10000E-03    5.5852        .29914E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    .27459        .66130E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          7.5375        6.6421        .58122E-05   -1.5159    
  27  Prefactor     .53186        3.1042        .87664E-05   -1.5562    
  28  Prefactor     18.875        23.291        .18440E-04   -1.4839    
  29  Prefactor     .10000E-03    4.4281        .26543E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     2.8923        6.5107        .87449E-05   -1.5368    
  31  Prefactor     .10000E-03    26.802        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.1104        .27938        .96342E-05   -.89418    
  33  Prefactor     1.0005        .29112        .11018E-04   -.92712    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.32234e-10
Minuit parameter uncertainties:
  1  5.70507e-05
  2  3.66172
  3  63.3568
  4  3.05725e-05
  5  5.734
  6  5.1829
  7  32.8903
  8  8.06323
  9  7.69109e-06
  10  9.56084e-06
  11  20.448
  12  1.9126e-05
  13  2.86447e-05
  14  0.00185815
  15  2.36237e-05
  16  15.0838
  17  1.80791e-06
  18  1.03327e-05
  19  0.000266789
  20  4.03448
  21  1.73078e-05
  22  82.6584
  23  5.5398
  24  2.6395e-05
  25  1.30043e-06
  26  6.64272
  27  2.5698
  28  23.3019
  29  7.08855e-06
  30  6.51227
  31  4.72205e-05
  32  0.279755
  33  0.291581
Done.

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

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  1.000e-04  1.731e-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:  1.001e+00  2.916e-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.110e+00  2.798e-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: 9.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.59e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/901154/likelihoodResults_541555201_541814401_4FGL_J2326.9-4130_daily_bin1166.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) = 4207.59429594
delta logL = -0.000294233344903

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4207.5940055
delta logL = -3.79472203349e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.6925       1.0000          .0000       10.000    
     3 'Normalizat'    1.1104       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0005       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=   4207.594     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      289 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    24.922        .17161E-02** at limit **
   2  Index         3.6715        6.4838        .50000        .28777E-04
   3  Normalizat    1.1104        .25864        .24086E-03   -.10337E-04
   4  Prefactor     1.0005        .28367        .27544E-03   -.14529E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Index      = 3.67145
  Normalizat = 1.1104
  Prefactor  = 1.00053
 **********
 **   18 **HESSE 
 **********

 FCN=   4207.594     FROM HESSE     STATUS=OK            29 CALLS      318 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    7.6552        .34322E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.6715        6.7362        .50000       -.26894    
   3  Normalizat    1.1104        .25893        .96343E-05   -.89418    
   4  Prefactor     1.0005        .28399        .11017E-04   -.92712    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0599e-09
Minuit parameter uncertainties:
  1  0.000436463
  2  4.91061
  3  0.259223
  4  0.284415
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/901154': 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) = 4207.59400537
delta logL = -3.66833955923e-06

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  1.000e-04  4.365e-04  1.000e-04  1.000e+04 ( 1.000e-13)
436        Index:  3.671e+00  4.911e+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:  1.001e+00  2.844e-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.110e+00  2.592e-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/901154/cmap_HighResolution_541555201_541814401_4FGL_J2326.9-4130_daily_bin1166.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.59e-03', job_status='DONE', photon_flux_upper_limit='9.61e-08', time_completed='2021-09-29 19:36:02.526843', job_id='901154', GAL2='1.00', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1632969362.53', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='-3.67e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.78' WHERE bin_id='1166' AND source_name='4FGL J2326.9-4130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:36:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 901154: <4FGL_J2326.9-4130_daily_bin1166> in cluster <slac> Done

Job <4FGL_J2326.9-4130_daily_bin1166> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 19:20:50 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 19:20:51 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:20:51 2021
Terminated at Wed Sep 29 19:36:03 2021
Results reported at Wed Sep 29 19:36:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.9-4130_daily_bin1166 351.737 -41.5089 541555201 541814401 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 :                                 1256 MB
    Average Memory :                             269.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            913 sec.

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

