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


Performing analysis on: 4FGL_J2326.9-4130_daily_bin1401
RA = 351.737, Dec = -41.5089
tmin = 602467201, tmax = 602726401
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='902743', job_status='RUN', time_executed='2021-09-29 19:28:13.787877', time_epoch_executed='1632968893.79' WHERE source_name='4FGL J2326.9-4130' and cadence='daily' and bin_id='1401'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/902743

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/902743/ft1_4FGL_J2326.9-4130_daily_bin1401.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/902743/ft2_4FGL_J2326.9-4130_daily_bin1401.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/902743/ft1_4FGL_J2326.9-4130_daily_bin1401.fits outfile=/scratch/kocevski/902743/ft1_filteredMKT_4FGL_J2326.9-4130_daily_bin1401.fits ra=351.737 dec=-41.5089 rad=12.0 tmin=602467201.0 tmax=602726401.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.26
user 3.04
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/902743/ft1_filtered_4FGL_J2326.9-4130_daily_bin1401.fits" evtable="EVENTS" scfile=/scratch/kocevski/902743/ft2_4FGL_J2326.9-4130_daily_bin1401.fits sctable="SC_DATA" outfile=/scratch/kocevski/902743/ltcube_602467201_602726401_4FGL_J2326.9-4130_daily_bin1401.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/902743/ft2_4FGL_J2326.9-4130_daily_bin1401.fits
.....................!
real 12.36
user 12.01
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/902743/ft1_filtered_4FGL_J2326.9-4130_daily_bin1401.fits evtable="EVENTS" scfile=/scratch/kocevski/902743/ft2_4FGL_J2326.9-4130_daily_bin1401.fits sctable="SC_DATA" expcube=/scratch/kocevski/902743/ltcube_602467201_602726401_4FGL_J2326.9-4130_daily_bin1401.fits outfile=/scratch/kocevski/902743/expmap_602467201_602726401_4FGL_J2326.9-4130_daily_bin1401.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/902743/ltcube_602467201_602726401_4FGL_J2326.9-4130_daily_bin1401.fits
.....................!
real 190.90
user 185.60
sys 4.88

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/902743/ft1_filtered_4FGL_J2326.9-4130_daily_bin1401.fits scfile=/scratch/kocevski/902743/ft2_4FGL_J2326.9-4130_daily_bin1401.fits outfile=/scratch/kocevski/902743/cmap_602467201_602726401_4FGL_J2326.9-4130_daily_bin1401.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.58
user 0.37
sys 0.15

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8229       1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.021       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.136       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    82.130       1.0000         .10000E-03   10000.    
    10 'Prefactor '    108.91       1.0000         .10000E-03   10000.    
    11 'Prefactor '    157.88       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10341E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    68.794       1.0000         .10000E-03   10000.    
    16 'norm      '    48.592       1.0000         .10000E-03   10000.    
    17 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10677E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .32218       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    105.80       1.0000         .10000E-03   10000.    
    22 'Prefactor '    109.39       1.0000         .10000E-03   10000.    
    23 'norm      '    .11198E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    32.494       1.0000         .10000E-03   10000.    
    25 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .33272E-02   1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.7929       1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.4620       1.0000         .10000E-03   10000.    
    29 'Prefactor '    4.3514       1.0000         .10000E-03   10000.    
    30 'Prefactor '    11.988       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .10002E-01   1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.8079       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=   1731.768     FROM MIGRAD    STATUS=CONVERGED    947 CALLS     4696 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2566        1016.4        .13198E-04    .47289E-05
   2  Prefactor     17.024        28.496       -.36655E-06   -.13252E-04
   3  Prefactor     .10000E-03    16.624       -.16877E-06** at limit **
   4  Prefactor     .10000E-03    43.717       -.69886E-07** at limit **
   5  Prefactor     14.138        8.8502       -.10593E-06   -.30408E-04
   6  Prefactor     .10000E-03    9.9531       -.17348E-07** at limit **
   7  Prefactor     .10000E-03    220.52       -.84536E-05** at limit **
   8  Prefactor     .10000E-03    14.451       -.17789E-07** at limit **
   9  Prefactor     82.135        228.71       -.16710E-06    .60116E-05
  10  Prefactor     109.01        187.97        .32736E-05    .23750E-04
  11  Prefactor     157.76        98.801       -.15208E-05   -.35724E-04
  12  Prefactor     .10000E-03    18.633       -.10990E-06** at limit **
  13  Prefactor     .10000E-03    100.44        .69012E-06** at limit **
  14  Prefactor     .10000E-03    161.44        .33020E-05** at limit **
  15  Prefactor     68.820        73.650       -.17977E-06    .18343E-05
  16  norm          48.586        47.306        .13999E-06    .26181E-05
  17  norm          .10000E-03    14.153       -.89152E-07** at limit **
  18  norm          .10000E-03    9.6779       -.34703E-06** at limit **
  19  norm          .20968        641.50       -.61542E-06   -.28452E-04
  20  Prefactor     .10000E-03    18.962       -.93539E-06** at limit **
  21  Prefactor     105.72        83.145       -.45702E-06   -.11325E-03
  22  Prefactor     109.49        119.86       -.35676E-05   -.51867E-04
  23  norm          .10000E-03    6.8368       -.54532E-06** at limit **
  24  Prefactor     32.489        36.969       -.49072E-07    .85690E-06
  25  norm          .10000E-03    1.5339       -.33293E-06** at limit **
  26  norm          .10021E-03    9.9517        .15988E-05** at limit **
  27  Prefactor     1.7940        9.4043        .20146E-06    .20169E-06
  28  Prefactor     4.4669        59.538       -.37028E-05   -.24495E-04
  29  Prefactor     4.3554        10.252       -.39918E-06   -.43361E-04
  30  Prefactor     11.990        7.5602       -.13127E-06   -.70907E-04
  31  Prefactor     .10000E-03    99.225       -.33335E-05** at limit **
  32  Normalizat    .10000E-01    .18144       -.16486E-05** at limit **
  33  Prefactor     1.8076        .28177        .13337E-05   -.33001E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.25657
  Prefactor  = 17.024
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.138
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 82.1354
  Prefactor  = 109.014
  Prefactor  = 157.76
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 68.8197
  norm       = 48.5859
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.209678
  Prefactor  = 0.0001
  Prefactor  = 105.722
  Prefactor  = 109.488
  norm       = 0.0001
  Prefactor  = 32.4891
  norm       = 0.0001
  norm       = 0.000100215
  Prefactor  = 1.79398
  Prefactor  = 4.46692
  Prefactor  = 4.35539
  Prefactor  = 11.9904
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.80763
 **********
 **   18 **HESSE 
 **********

 FCN=   1731.768     FROM HESSE     STATUS=OK           693 CALLS     5389 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2566        1000.9        .30924E-03   -1.5408    
   2  Prefactor     17.024        28.499        .97078E-04   -1.4883    
   3  Prefactor     .10000E-03    16.624        .16576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    43.916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.138        8.8531        .93449E-04   -1.4956    
   6  Prefactor     .10000E-03    9.9561        .12825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    221.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.451        .15455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     82.135        228.64        .22160E-03   -1.3893    
  10  Prefactor     109.01        188.43        .19270E-03   -1.3616    
  11  Prefactor     157.76        98.872        .16045E-03   -1.3189    
  12  Prefactor     .10000E-03    18.644        .17552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    100.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    161.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     68.820        73.572        .48395E-04   -1.4047    
  16  norm          48.586        47.306        .57525E-04   -1.4313    
  17  norm          .10000E-03    14.153        .15294E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    9.6889        .12637E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .20968        678.96        .37529E-02   -1.5616    
  20  Prefactor     .10000E-03    18.973        .17676E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     105.72        79.900        .39096E-04   -1.3648    
  22  Prefactor     109.49        121.83        .19228E-03   -1.3611    
  23  norm          .10000E-03    6.8488        .10599E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     32.489        36.907        .70294E-04   -1.4567    
  25  norm          .10000E-03    1.5356        .50260E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10021E-03    48.613        .19950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.7940        9.0713        .22478E-03   -1.5440    
  28  Prefactor     4.4669        57.627        .19062E-03   -1.5285    
  29  Prefactor     4.3554        10.252        .18507E-03   -1.5291    
  30  Prefactor     11.990        7.5621        .85544E-04   -1.5015    
  31  Prefactor     .10000E-03    99.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .10000E-01    .57079        .92368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     1.8076        .29132        .21713E-03   -.69251    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.6085e-09
Minuit parameter uncertainties:
  1  96.7209
  2  28.5215
  3  8.10734e-06
  4  1.22729e-05
  5  8.85391
  6  1.16843e-05
  7  0.001928
  8  1.8196e-06
  9  231.158
  10  189.476
  11  98.9759
  12  1.62761e-05
  13  9.09427e-05
  14  0.000584711
  15  73.6697
  16  47.3428
  17  3.6749e-06
  18  1.70836e-05
  19  24.1362
  20  5.71945e-05
  21  79.9813
  22  122.11
  23  3.20259e-05
  24  36.9329
  25  4.33398e-06
  26  0.00646678
  27  8.06985
  28  32.126
  29  10.2565
  30  7.56268
  31  0.000386773
  32  8.91962e-06
  33  0.291594
Done.

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

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  1.057e+02  7.998e+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.808e+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.000e-02  8.920e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.93
Ra Dec: 351.737 -41.509
Photon Index (Fixed Index): 2.78 +/- 0.00
Photon Flux (Fixed Index): 1.38e-07 +/- 1.05e-07
Energy Flux (Fixed Index): 3.15e-05 +/- 2.38e-05

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

Saving results to:
/scratch/kocevski/902743/likelihoodResults_602467201_602726401_4FGL_J2326.9-4130_daily_bin1401.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) = 1731.6900969
delta logL = 0.0783995303359

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1731.68824126
delta logL = 0.080255167923

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    141.76       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4835       1.0000          .0000       10.000    
     3 'Normalizat'    .10004E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.8101       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=   1731.688     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      311 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     141.83        134.64        .16918E-03    .15422E-04
   2  Index         2.4838        .70226        .47551E-02    .22534E-04
   3  Normalizat    .10000E-01    .69147        .11309E-01** at limit **
   4  Prefactor     1.8101        .21163        .21705E-03   -.34046E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 141.833
  Index      = 2.48382
  Normalizat = 0.01
  Prefactor  = 1.81005
 **********
 **   18 **HESSE 
 **********

 FCN=   1731.688     FROM HESSE     STATUS=OK            25 CALLS      336 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     141.83        131.59        .67673E-05   -1.3320    
   2  Index         2.4838        .68629        .19020E-03   -.52734    
   3  Normalizat    .10000E-01    .69247        .22618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.8101        .21106        .86818E-05   -.69188    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.95685e-11
Minuit parameter uncertainties:
  1  131.866
  2  0.689206
  3  1.2188e-05
  4  0.211169
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/902743': 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) = 1731.68823767
delta logL = 0.0802587653302

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  1.418e+02  1.319e+02  1.000e-04  1.000e+04 ( 1.000e-13)
436        Index:  2.484e+00  6.892e-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.810e+00  2.112e-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.000e-02  1.219e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.04
Ra Dec: 351.737 -41.509
Photon Index (Free Index): 2.48 +/- 0.69
Photon Flux (Free Index): 1.25e-07 +/- 1.02e-07
Energy Flux (Free Index): 3.70e-05 +/- 3.23e-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/902743/cmap_HighResolution_602467201_602726401_4FGL_J2326.9-4130_daily_bin1401.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.92e-02', comment='SUCCESS', photon_flux='1.38e-07', energy_flux2='3.70e-05', photon_flux_error='1.05e-07', dlogl='8.03e-02', energy_flux='3.15e-05', photon_flux2='1.25e-07', job_status='DONE', time_completed='2021-09-29 19:39:51.174845', photon_index_error2='0.69', photon_index2='2.48', ts='2.93', fit_tolerance='1e-08', GAL='1.81', photon_index_error='0.00', photon_flux_upper_limit='3.70e-07', energy_flux_error2='3.23e-05', EG='0.01', time_epoch_completed='1632969591.17', return_code='0', job_id='902743', GAL2='1.81', EG2='0.01', return_code2='0', energy_flux_error='2.38e-05', photon_flux_error2='1.02e-07', ts2='3.04', photon_index='2.78' WHERE bin_id='1401' AND source_name='4FGL J2326.9-4130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:39:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 902743: <4FGL_J2326.9-4130_daily_bin1401> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.9-4130_daily_bin1401 351.737 -41.5089 602467201 602726401 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 :                                   494.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             253.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   850 sec.
    Turnaround time :                            852 sec.

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

