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


Performing analysis on: 4FGL_J2326.9-4130_daily_bin1214
RA = 351.737, Dec = -41.5089
tmin = 553996801, tmax = 554256001
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='902446', job_status='RUN', time_executed='2021-09-29 19:26:51.198414', time_epoch_executed='1632968811.2' WHERE source_name='4FGL J2326.9-4130' and cadence='daily' and bin_id='1214'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/902446

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/902446/ft1_4FGL_J2326.9-4130_daily_bin1214.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/902446/ft2_4FGL_J2326.9-4130_daily_bin1214.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/902446/ft1_4FGL_J2326.9-4130_daily_bin1214.fits outfile=/scratch/kocevski/902446/ft1_filteredMKT_4FGL_J2326.9-4130_daily_bin1214.fits ra=351.737 dec=-41.5089 rad=12.0 tmin=553996801.0 tmax=554256001.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.66
user 2.46
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/902446/ft1_filtered_4FGL_J2326.9-4130_daily_bin1214.fits" evtable="EVENTS" scfile=/scratch/kocevski/902446/ft2_4FGL_J2326.9-4130_daily_bin1214.fits sctable="SC_DATA" outfile=/scratch/kocevski/902446/ltcube_553996801_554256001_4FGL_J2326.9-4130_daily_bin1214.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/902446/ft2_4FGL_J2326.9-4130_daily_bin1214.fits
.....................!
real 12.62
user 12.23
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/902446/ft1_filtered_4FGL_J2326.9-4130_daily_bin1214.fits evtable="EVENTS" scfile=/scratch/kocevski/902446/ft2_4FGL_J2326.9-4130_daily_bin1214.fits sctable="SC_DATA" expcube=/scratch/kocevski/902446/ltcube_553996801_554256001_4FGL_J2326.9-4130_daily_bin1214.fits outfile=/scratch/kocevski/902446/expmap_553996801_554256001_4FGL_J2326.9-4130_daily_bin1214.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/902446/ltcube_553996801_554256001_4FGL_J2326.9-4130_daily_bin1214.fits
.....................!
real 191.34
user 185.20
sys 5.31

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/902446/ft1_filtered_4FGL_J2326.9-4130_daily_bin1214.fits scfile=/scratch/kocevski/902446/ft2_4FGL_J2326.9-4130_daily_bin1214.fits outfile=/scratch/kocevski/902446/cmap_553996801_554256001_4FGL_J2326.9-4130_daily_bin1214.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/902446/ft1_filtered_4FGL_J2326.9-4130_daily_bin1214.fits scfile=/scratch/kocevski/902446/ft2_4FGL_J2326.9-4130_daily_bin1214.fits outfile=/scratch/kocevski/902446/cmap_HighResolution_553996801_554256001_4FGL_J2326.9-4130_daily_bin1214.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.55
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/902446/ft1_filtered_4FGL_J2326.9-4130_daily_bin1214.fits evtable="EVENTS" scfile=/scratch/kocevski/902446/ft2_4FGL_J2326.9-4130_daily_bin1214.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/902446/Model_4FGL_J2326.9-4130_daily_bin1214.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/902446/ft1_filtered_4FGL_J2326.9-4130_daily_bin1214.fits.....................!
real 23.80
user 22.44
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    36.114       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.069       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.009       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    48.115       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.834       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    128.38       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    17.340       1.0000         .10000E-03   10000.    
    17 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .36263E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    89.983       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10912E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.3027       1.0000         .10000E-03   10000.    
    26 'norm      '    5.9285       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    7.7213       1.0000         .10000E-03   10000.    
    30 'Prefactor '    4.2915       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.3995       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .33366       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=   1881.787     FROM MIGRAD    STATUS=CONVERGED    873 CALLS     4550 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    53.807       -.32595E-06** at limit **
   2  Prefactor     36.111        36.668        .34163E-06   -.63642E-04
   3  Prefactor     .10000E-03    32.926       -.30574E-06** at limit **
   4  Prefactor     .10000E-03    50.340       -.17026E-06** at limit **
   5  Prefactor     10.074        11.496        .79969E-06   -.98561E-04
   6  Prefactor     13.013        16.514        .17603E-06   -.81864E-04
   7  Prefactor     .10000E-03    75.497       -.84285E-06** at limit **
   8  Prefactor     48.125        32.227        .67131E-06   -.95084E-04
   9  Prefactor     .10000E-03    31.797       -.37871E-07** at limit **
  10  Prefactor     .10000E-03    39.652        .30654E-06** at limit **
  11  Prefactor     20.865        48.584        .18326E-05   -.85330E-05
  12  Prefactor     .10000E-03    13.916        .33385E-06** at limit **
  13  Prefactor     .10000E-03    35.817       -.29429E-07** at limit **
  14  Prefactor     128.41        165.42        .24622E-05    .18775E-05
  15  Prefactor     .10000E-03    18.403        .11741E-06** at limit **
  16  norm          17.351        24.708       -.32819E-06   -.50495E-04
  17  norm          .10000E-03    9.0753       -.14824E-06** at limit **
  18  norm          .10000E-03    4.7043        .83496E-06** at limit **
  19  norm          .10407E-03    19.360       -.27711E-05** at limit **
  20  Prefactor     .10000E-03    16.877       -.25638E-06** at limit **
  21  Prefactor     90.167        112.50        .61419E-05    .57720E-04
  22  Prefactor     .10001E-03    145.06        .12119E-05** at limit **
  23  norm          .10000E-03    6.1534        .42065E-05** at limit **
  24  Prefactor     .10000E-03    14.633        .46677E-06** at limit **
  25  norm          2.3032        2.2953       -.32040E-07   -.30181E-03
  26  norm          5.9271        8.1454        .88494E-08   -.84708E-04
  27  Prefactor     .10000E-03    8.5655       -.99627E-06** at limit **
  28  Prefactor     .10000E-03    49.245       -.53707E-06** at limit **
  29  Prefactor     7.7243        7.7667        .53372E-06   -.52655E-04
  30  Prefactor     4.2962        9.6412        .19104E-05   -.81663E-04
  31  Prefactor     .10000E-03    48.024       -.13782E-07** at limit **
  32  Normalizat    1.3991        .42834       -.20932E-04    .93617E-04
  33  Prefactor     .33398        .40156        .36203E-04    .37525E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 36.1108
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.074
  Prefactor  = 13.0127
  Prefactor  = 0.000100002
  Prefactor  = 48.1253
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.8649
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 128.412
  Prefactor  = 0.0001
  norm       = 17.3508
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000104072
  Prefactor  = 0.0001
  Prefactor  = 90.1666
  Prefactor  = 0.000100009
  norm       = 0.000100002
  Prefactor  = 0.0001
  norm       = 2.3032
  norm       = 5.9271
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.7243
  Prefactor  = 4.29624
  Prefactor  = 0.0001
  Normalizat = 1.39905
  Prefactor  = 0.333976
 **********
 **   18 **HESSE 
 **********

 FCN=   1881.787     FROM HESSE     STATUS=OK           685 CALLS     5235 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    53.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     36.111        36.588        .66688E-04   -1.4505    
   3  Prefactor     .10000E-03    32.938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    50.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.074        11.447        .12628E-03   -1.5073    
   6  Prefactor     13.013        16.492        .11106E-03   -1.4986    
   7  Prefactor     .10000E-03    75.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     48.125        32.190        .57809E-04   -1.4319    
   9  Prefactor     .10000E-03    31.800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    39.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     20.865        48.497        .87750E-04   -1.4794    
  12  Prefactor     .10000E-03    13.942        .15809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    35.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     128.41        165.16        .17766E-03   -1.3437    
  15  Prefactor     .10000E-03    18.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          17.351        24.694        .96181E-04   -1.4875    
  17  norm          .10000E-03    9.0878        .12761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.7105        .91955E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10407E-03    273.44        .35294E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    17.130        .17379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     90.167        112.43        .21180E-03   -1.3806    
  22  Prefactor     .10001E-03    145.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    6.3604        .10665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    14.653        .16212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.3032        2.2810        .62107E-04   -1.5404    
  26  norm          5.9271        8.1242        .13407E-03   -1.5221    
  27  Prefactor     .10000E-03    8.8402        .24776E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    49.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     7.7243        7.7630        .11668E-03   -1.5152    
  30  Prefactor     4.2962        9.5689        .18010E-03   -1.5293    
  31  Prefactor     .10000E-03    48.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.3991        .43040        .21112E-03   -.80656    
  33  Prefactor     .33398        .40108        .41566E-03   -1.2032    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43455e-08
Minuit parameter uncertainties:
  1  9.46105e-05
  2  36.6108
  3  7.04827e-05
  4  9.90044e-05
  5  11.4497
  6  16.4973
  7  0.000733453
  8  32.202
  9  5.27717e-05
  10  0.000160977
  11  48.589
  12  1.50523e-05
  13  1.69974e-06
  14  165.761
  15  0.000114018
  16  24.709
  17  2.08707e-05
  18  3.18636e-05
  19  0.0670432
  20  0.000111803
  21  112.7
  22  0.00231376
  23  0.000204323
  24  9.58798e-05
  25  2.2811
  26  8.12569
  27  6.3738e-05
  28  3.88951e-05
  29  7.76399
  30  9.57229
  31  0.00014977
  32  0.431517
  33  0.404486
Done.

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

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  9.017e+01  1.127e+02  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:  3.340e-01  4.045e-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.399e+00  4.315e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/902446/likelihoodResults_553996801_554256001_4FGL_J2326.9-4130_daily_bin1214.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) = 1881.05279905
delta logL = 0.73393730397

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1880.97731644
delta logL = 0.809419908481

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.825       1.0000         .10000E-03   10000.    
     2 'Index     '    4.4951       1.0000          .0000       10.000    
     3 'Normalizat'    1.2420       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .45738       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=   1880.977     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      281 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.825        244.82        .26931E-02    .89217E-04
   2  Index         4.4951        4.0853        .77464E-01    .50033E-04
   3  Normalizat    1.2417        .14161        .50050E-01    .37394E-05
   4  Prefactor     .45759        .14372        .80835E-01    .13711E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.8246
  Index      = 4.49513
  Normalizat = 1.24174
  Prefactor  = 0.457592
 **********
 **   18 **HESSE 
 **********

 FCN=   1880.977     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      314 TOTAL
                     EDM=   .58E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.825        310.34        .10615E-03   -1.4964    
   2  Index         4.4951        7.1156        .32478E-02   -.10115    
   3  Normalizat    1.2417        .40387        .22127E-03   -.85323    
   4  Prefactor     .45759        .40354        .35812E-03   -1.1396    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.75707e-12
Minuit parameter uncertainties:
  1  131.781
  2  5.68731
  3  0.404897
  4  0.406088
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/902446': 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) = 1880.97731618
delta logL = 0.809420168317

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  1.382e+01  1.318e+02  1.000e-04  1.000e+04 ( 1.000e-13)
436        Index:  4.495e+00  5.687e+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:  4.576e-01  4.061e-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.242e+00  4.049e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.75
Ra Dec: 351.737 -41.509
Photon Index (Free Index): 4.50 +/- 5.69
Photon Flux (Free Index): 2.69e-07 +/- 1.98e-07
Energy Flux (Free Index): 3.76e-05 +/- 3.62e-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/902446/cmap_HighResolution_553996801_554256001_4FGL_J2326.9-4130_daily_bin1214.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.18e-02', comment='SUCCESS', energy_flux2='3.76e-05', dlogl='8.09e-01', photon_flux2='2.69e-07', job_status='DONE', time_completed='2021-09-29 19:35:11.616640', photon_index_error2='5.69', photon_index2='4.50', ts='0.88', fit_tolerance='1e-08', GAL='0.33', photon_index_error='0.00', photon_flux_upper_limit='4.02e-07', energy_flux_error2='3.62e-05', EG='1.40', time_epoch_completed='1632969311.62', return_code='0', job_id='902446', GAL2='0.46', EG2='1.24', return_code2='102', photon_flux_error2='1.98e-07', ts2='2.75', photon_index='2.78' WHERE bin_id='1214' AND source_name='4FGL J2326.9-4130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:35:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 902446: <4FGL_J2326.9-4130_daily_bin1214> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.9-4130_daily_bin1214 351.737 -41.5089 553996801 554256001 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 :                                   496.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             263.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   597 sec.
    Turnaround time :                            600 sec.

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

