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


Performing analysis on: 4FGL_J2326.9-4130_daily_bin1144
RA = 351.737, Dec = -41.5089
tmin = 535852801, tmax = 536112001
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='901118', job_status='RUN', time_executed='2021-09-29 19:21:41.418190', time_epoch_executed='1632968501.42' WHERE source_name='4FGL J2326.9-4130' and cadence='daily' and bin_id='1144'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/901118

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/901118/ft1_4FGL_J2326.9-4130_daily_bin1144.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/901118/ft2_4FGL_J2326.9-4130_daily_bin1144.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/901118/ft1_4FGL_J2326.9-4130_daily_bin1144.fits outfile=/scratch/kocevski/901118/ft1_filteredMKT_4FGL_J2326.9-4130_daily_bin1144.fits ra=351.737 dec=-41.5089 rad=12.0 tmin=535852801.0 tmax=536112001.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.55
user 3.37
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/901118/ft1_filtered_4FGL_J2326.9-4130_daily_bin1144.fits" evtable="EVENTS" scfile=/scratch/kocevski/901118/ft2_4FGL_J2326.9-4130_daily_bin1144.fits sctable="SC_DATA" outfile=/scratch/kocevski/901118/ltcube_535852801_536112001_4FGL_J2326.9-4130_daily_bin1144.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/901118/ft2_4FGL_J2326.9-4130_daily_bin1144.fits
.....................!
real 11.70
user 11.39
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/901118/ft1_filtered_4FGL_J2326.9-4130_daily_bin1144.fits evtable="EVENTS" scfile=/scratch/kocevski/901118/ft2_4FGL_J2326.9-4130_daily_bin1144.fits sctable="SC_DATA" expcube=/scratch/kocevski/901118/ltcube_535852801_536112001_4FGL_J2326.9-4130_daily_bin1144.fits outfile=/scratch/kocevski/901118/expmap_535852801_536112001_4FGL_J2326.9-4130_daily_bin1144.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/901118/ltcube_535852801_536112001_4FGL_J2326.9-4130_daily_bin1144.fits
.....................!
real 189.49
user 185.01
sys 4.18

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/901118/ft1_filtered_4FGL_J2326.9-4130_daily_bin1144.fits scfile=/scratch/kocevski/901118/ft2_4FGL_J2326.9-4130_daily_bin1144.fits outfile=/scratch/kocevski/901118/cmap_535852801_536112001_4FGL_J2326.9-4130_daily_bin1144.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.52
user 0.34
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/901118/ft1_filtered_4FGL_J2326.9-4130_daily_bin1144.fits scfile=/scratch/kocevski/901118/ft2_4FGL_J2326.9-4130_daily_bin1144.fits outfile=/scratch/kocevski/901118/cmap_HighResolution_535852801_536112001_4FGL_J2326.9-4130_daily_bin1144.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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/901118/ft1_filtered_4FGL_J2326.9-4130_daily_bin1144.fits evtable="EVENTS" scfile=/scratch/kocevski/901118/ft2_4FGL_J2326.9-4130_daily_bin1144.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/901118/Model_4FGL_J2326.9-4130_daily_bin1144.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/901118/ft1_filtered_4FGL_J2326.9-4130_daily_bin1144.fits.....................!
real 38.82
user 37.62
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .40417E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    90.422       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .48020       1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.714       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.9221       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.8154       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    31.496       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.584       1.0000         .10000E-03   10000.    
    16 'norm      '    13.642       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.6071       1.0000         .10000E-03   10000.    
    19 'norm      '    4.2226       1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.370       1.0000         .10000E-03   10000.    
    21 'Prefactor '    35.231       1.0000         .10000E-03   10000.    
    22 'Prefactor '    65.464       1.0000         .10000E-03   10000.    
    23 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10185E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    2.6167       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    17.917       1.0000         .10000E-03   10000.    
    29 'Prefactor '    6.4098       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0462       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.1147       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=   4810.994     FROM MIGRAD    STATUS=CONVERGED    871 CALLS     4611 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    64.877        .81710E-07** at limit **
   2  Prefactor     .10000E-03    102.04       -.45833E-05** at limit **
   3  Prefactor     90.377        70.443       -.29280E-05   -.11323E-03
   4  Prefactor     .10000E-03    28.686       -.44123E-06** at limit **
   5  Prefactor     .10000E-03    18.636        .22432E-05** at limit **
   6  Prefactor     .48089        3.3947        .10815E-05   -.37882E-03
   7  Prefactor     18.708        45.422       -.98148E-06   -.48236E-04
   8  Prefactor     4.9221        5.8608       -.48291E-07   -.13221E-03
   9  Prefactor     .10000E-03    11.750       -.52836E-06** at limit **
  10  Prefactor     .10000E-03    35.930        .22956E-05** at limit **
  11  Prefactor     .10000E-03    11.277        .27342E-06** at limit **
  12  Prefactor     8.8164        10.868        .20488E-06   -.83906E-04
  13  Prefactor     .10000E-03    13.255        .19631E-06** at limit **
  14  Prefactor     31.413        70.480       -.11055E-04   -.14864E-03
  15  Prefactor     13.583        16.448        .30610E-07   -.51172E-04
  16  norm          13.641        12.704        .12478E-07   -.67420E-05
  17  norm          .10000E-03    4.4857        .11000E-07** at limit **
  18  norm          2.6073        4.3254       -.15589E-05   -.15662E-03
  19  norm          4.2209        13.014        .81440E-05   -.37080E-03
  20  Prefactor     12.370        8.5986       -.55851E-07   -.94665E-04
  21  Prefactor     35.249        42.281       -.46176E-05    .14040E-04
  22  Prefactor     65.462        78.670       -.33647E-05   -.18226E-04
  23  norm          .10012E-03    4.1640        .12513E-05** at limit **
  24  Prefactor     .10000E-03    12.925        .45675E-08** at limit **
  25  norm          .10000E-03    .75596        .19961E-06** at limit **
  26  norm          2.6168        3.2589       -.32116E-06   -.57906E-04
  27  Prefactor     .10000E-03    3.4886       -.20603E-06** at limit **
  28  Prefactor     17.916        28.541        .65377E-06   -.24650E-05
  29  Prefactor     6.4095        7.0251       -.33113E-08   -.36390E-04
  30  Prefactor     .10000E-03    2.0907        .27497E-07** at limit **
  31  Prefactor     .10000E-03    21.704       -.24862E-06** at limit **
  32  Normalizat    1.0461        .21953       -.86799E-06   -.22316E-03
  33  Prefactor     1.1148        .23588       -.48030E-06   -.19356E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 90.3774
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.48089
  Prefactor  = 18.7076
  Prefactor  = 4.92212
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 8.81637
  Prefactor  = 0.0001
  Prefactor  = 31.4131
  Prefactor  = 13.5826
  norm       = 13.6409
  norm       = 0.0001
  norm       = 2.60725
  norm       = 4.22093
  Prefactor  = 12.3696
  Prefactor  = 35.2486
  Prefactor  = 65.462
  norm       = 0.000100123
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.61685
  Prefactor  = 0.0001
  Prefactor  = 17.9157
  Prefactor  = 6.4095
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.04607
  Prefactor  = 1.11481
 **********
 **   18 **HESSE 
 **********

 FCN=   4810.994     FROM HESSE     STATUS=OK           695 CALLS     5306 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    64.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    104.23        .42518E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     90.377        70.802        .21129E-03   -1.3804    
   4  Prefactor     .10000E-03    28.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    19.382        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .48089        6.2785        .23581E-02   -1.5569    
   7  Prefactor     18.708        45.128        .92585E-04   -1.4843    
   8  Prefactor     4.9221        5.8581        .17683E-03   -1.5264    
   9  Prefactor     .10000E-03    11.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    36.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.8164        10.845        .13500E-03   -1.5114    
  13  Prefactor     .10000E-03    13.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     31.413        72.067        .71396E-04   -1.4586    
  15  Prefactor     13.583        16.267        .10868E-03   -1.4971    
  16  norm          13.641        12.707        .10845E-03   -1.4969    
  17  norm          .10000E-03    4.5206        .14341E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.6073        4.2534        .17541E-03   -1.5385    
  19  norm          4.2209        12.782        .98049E-03   -1.5297    
  20  Prefactor     12.370        8.4917        .11389E-03   -1.5004    
  21  Prefactor     35.249        40.625        .67516E-04   -1.4520    
  22  Prefactor     65.462        78.509        .49602E-04   -1.4088    
  23  norm          .10012E-03    24.793        .24184E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    12.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    1.1351        .11340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.6168        3.2438        .13400E-03   -1.5384    
  27  Prefactor     .10000E-03    3.5521        .25188E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     17.916        28.367        .94622E-04   -1.4861    
  29  Prefactor     6.4095        7.0245        .15853E-03   -1.5202    
  30  Prefactor     .10000E-03    2.1070        .97911E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    21.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.0461        .25981        .25389E-03   -.91502    
  33  Prefactor     1.1148        .28074        .27423E-03   -.88995    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.13347e-09
Minuit parameter uncertainties:
  1  7.83961e-05
  2  0.00134271
  3  70.8687
  4  0.000110994
  5  5.91441e-05
  6  3.4753
  7  45.2108
  8  5.85878
  9  1.68615e-05
  10  0.000336562
  11  5.90632e-05
  12  10.8474
  13  1.30295e-05
  14  72.2672
  15  16.2723
  16  12.7097
  17  1.76206e-06
  18  4.25387
  19  12.7898
  20  8.49249
  21  40.6568
  22  78.6338
  23  0.00349301
  24  5.05258e-06
  25  6.46126e-07
  26  3.24398
  27  2.27884e-05
  28  28.3883
  29  7.02543
  30  7.92929e-06
  31  2.81737e-05
  32  0.260128
  33  0.281113
Done.

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

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  3.525e+01  4.066e+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:  1.115e+00  2.811e-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.046e+00  2.601e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.13
Ra Dec: 351.737 -41.509
Photon Index (Fixed Index): 2.78 +/- 0.00
Photon Flux (Fixed Index): 4.62e-08 +/- 5.32e-08
Energy Flux (Fixed Index): 1.05e-05 +/- 1.21e-05

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

Saving results to:
/scratch/kocevski/901118/likelihoodResults_535852801_536112001_4FGL_J2326.9-4130_daily_bin1144.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) = 4810.93470883
delta logL = 0.059568753175

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4810.93151561
delta logL = 0.0627619700808

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    44.626       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4256       1.0000          .0000       10.000    
     3 'Normalizat'    1.0603       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1035       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=   4810.932     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      295 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     44.628        52.781        .60016E-04    .96419E-04
   2  Index         2.4256        .95633        .97619E-02    .35445E-04
   3  Normalizat    1.0601        .25110        .25256E-03    .97501E-04
   4  Prefactor     1.1038        .27584        .27536E-03    .10210E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 44.628
  Index      = 2.42565
  Normalizat = 1.06012
  Prefactor  = 1.10377
 **********
 **   18 **HESSE 
 **********

 FCN=   4810.932     FROM HESSE     STATUS=OK            25 CALLS      320 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     44.628        52.021        .12003E-04   -1.4371    
   2  Index         2.4256        .94188        .39048E-03   -.54086    
   3  Normalizat    1.0601        .25125        .10102E-04   -.91043    
   4  Prefactor     1.1038        .27601        .11014E-04   -.89346    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.16615e-11
Minuit parameter uncertainties:
  1  52.074
  2  0.949632
  3  0.251528
  4  0.276371
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/901118': 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) = 4810.93151526
delta logL = 0.0627623201353

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  1.104e+00  2.764e-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.060e+00  2.515e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.25
Ra Dec: 351.737 -41.509
Photon Index (Free Index): 2.43 +/- 0.95
Photon Flux (Free Index): 3.65e-08 +/- 5.30e-08
Energy Flux (Free Index): 1.16e-05 +/- 1.35e-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/901118/cmap_HighResolution_535852801_536112001_4FGL_J2326.9-4130_daily_bin1144.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.26e-02', comment='SUCCESS', photon_flux='4.62e-08', energy_flux2='1.16e-05', photon_flux_error='5.32e-08', dlogl='6.28e-02', energy_flux='1.05e-05', photon_flux2='3.65e-08', job_status='DONE', time_completed='2021-09-29 19:35:01.520384', photon_index_error2='0.95', photon_index2='2.43', ts='1.13', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='1.60e-07', energy_flux_error2='1.35e-05', EG='1.05', time_epoch_completed='1632969301.52', return_code='0', job_id='901118', GAL2='1.10', EG2='1.06', return_code2='0', energy_flux_error='1.21e-05', photon_flux_error2='5.30e-08', ts2='1.25', photon_index='2.78' WHERE bin_id='1144' AND source_name='4FGL J2326.9-4130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:35:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 901118: <4FGL_J2326.9-4130_daily_bin1144> in cluster <slac> Done

Job <4FGL_J2326.9-4130_daily_bin1144> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 19:20:46 2021
Job was executed on host(s) <bullet0101>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 19:20:48 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:48 2021
Terminated at Wed Sep 29 19:35:02 2021
Results reported at Wed Sep 29 19:35:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.9-4130_daily_bin1144 351.737 -41.5089 535852801 536112001 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 :                                   794.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             346.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            856 sec.

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

