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


Performing analysis on: 4FGL_J2326.9-4130_daily_bin1340
RA = 351.737, Dec = -41.5089
tmin = 586656001, tmax = 586915201
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='902645', job_status='RUN', time_executed='2021-09-29 19:26:46.397286', time_epoch_executed='1632968806.4' WHERE source_name='4FGL J2326.9-4130' and cadence='daily' and bin_id='1340'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/902645

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/902645/ft1_4FGL_J2326.9-4130_daily_bin1340.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/902645/ft2_4FGL_J2326.9-4130_daily_bin1340.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/902645/ft1_4FGL_J2326.9-4130_daily_bin1340.fits outfile=/scratch/kocevski/902645/ft1_filteredMKT_4FGL_J2326.9-4130_daily_bin1340.fits ra=351.737 dec=-41.5089 rad=12.0 tmin=586656001.0 tmax=586915201.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.72
user 3.46
sys 0.21

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/902645/ft1_filtered_4FGL_J2326.9-4130_daily_bin1340.fits" evtable="EVENTS" scfile=/scratch/kocevski/902645/ft2_4FGL_J2326.9-4130_daily_bin1340.fits sctable="SC_DATA" outfile=/scratch/kocevski/902645/ltcube_586656001_586915201_4FGL_J2326.9-4130_daily_bin1340.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/902645/ft2_4FGL_J2326.9-4130_daily_bin1340.fits
.....................!
real 12.35
user 11.99
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/902645/ft1_filtered_4FGL_J2326.9-4130_daily_bin1340.fits evtable="EVENTS" scfile=/scratch/kocevski/902645/ft2_4FGL_J2326.9-4130_daily_bin1340.fits sctable="SC_DATA" expcube=/scratch/kocevski/902645/ltcube_586656001_586915201_4FGL_J2326.9-4130_daily_bin1340.fits outfile=/scratch/kocevski/902645/expmap_586656001_586915201_4FGL_J2326.9-4130_daily_bin1340.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/902645/ltcube_586656001_586915201_4FGL_J2326.9-4130_daily_bin1340.fits
.....................!
real 191.36
user 185.44
sys 5.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/902645/ft1_filtered_4FGL_J2326.9-4130_daily_bin1340.fits scfile=/scratch/kocevski/902645/ft2_4FGL_J2326.9-4130_daily_bin1340.fits outfile=/scratch/kocevski/902645/cmap_586656001_586915201_4FGL_J2326.9-4130_daily_bin1340.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.55
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.220       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.3092       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.9306       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.423       1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.137       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.176       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.749       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .11332E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    77.350       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    21.762       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .99659       1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.8620       1.0000         .10000E-03   10000.    
    28 'Prefactor '    12.698       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    13.685       1.0000         .10000E-03   10000.    
    31 'Prefactor '    35.244       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0258       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .80662       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=   3737.741     FROM MIGRAD    STATUS=CONVERGED    888 CALLS     4606 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.608       -.39983E-07** at limit **
   2  Prefactor     .10000E-03    11.713       -.14614E-06** at limit **
   3  Prefactor     .10000E-03    25.405       -.10246E-06** at limit **
   4  Prefactor     10.220        18.360       -.33949E-06   -.20937E-04
   5  Prefactor     1.3093        7.5971        .22230E-05    .48711E-04
   6  Prefactor     .10000E-03    2.2275       -.15376E-06** at limit **
   7  Prefactor     4.9285        93.842        .10383E-05   -.15756E-05
   8  Prefactor     10.425        8.4684        .89613E-06    .58453E-04
   9  Prefactor     17.137        17.359       -.25899E-06   -.18662E-04
  10  Prefactor     11.180        27.448        .87100E-06   -.45319E-05
  11  Prefactor     .10000E-03    7.5475       -.72066E-07** at limit **
  12  Prefactor     .10000E-03    4.7556       -.15229E-06** at limit **
  13  Prefactor     20.734        52.491       -.21354E-06   -.14885E-04
  14  Prefactor     .10000E-03    51.376       -.25901E-06** at limit **
  15  Prefactor     .10000E-03    12.800       -.31085E-06** at limit **
  16  norm          .10000E-03    4.9430       -.33440E-07** at limit **
  17  norm          .10000E-03    2.5172       -.23390E-07** at limit **
  18  norm          .10000E-03    1.8301        .17882E-07** at limit **
  19  norm          .10001E-03    12.184        .10366E-05** at limit **
  20  Prefactor     .10000E-03    2.9760       -.71337E-07** at limit **
  21  Prefactor     77.361        49.799       -.56102E-06   -.11199E-03
  22  Prefactor     .10000E-03    146.92        .11862E-05** at limit **
  23  norm          .10000E-03    2.8687        .65144E-07** at limit **
  24  Prefactor     21.763        17.705        .66529E-06    .15493E-05
  25  norm          .10000E-03    .46440       -.88628E-07** at limit **
  26  norm          .99748        7.5681        .27876E-05    .37015E-04
  27  Prefactor     1.8622        3.0284        .14315E-06    .21276E-04
  28  Prefactor     12.698        21.444       -.10594E-07   -.49233E-05
  29  Prefactor     .10000E-03    3.8034        .20178E-05** at limit **
  30  Prefactor     13.687        7.0448        .87195E-06    .61160E-04
  31  Prefactor     35.362        87.775        .27869E-05    .46200E-04
  32  Normalizat    1.0252        .24121       -.50288E-05   -.73179E-04
  33  Prefactor     .80723        .24394        .40746E-05   -.24403E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.2204
  Prefactor  = 1.3093
  Prefactor  = 0.0001
  Prefactor  = 4.92847
  Prefactor  = 10.4248
  Prefactor  = 17.1372
  Prefactor  = 11.1804
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.7344
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100013
  Prefactor  = 0.0001
  Prefactor  = 77.3607
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 21.7628
  norm       = 0.0001
  norm       = 0.997478
  Prefactor  = 1.86216
  Prefactor  = 12.6976
  Prefactor  = 0.0001
  Prefactor  = 13.6867
  Prefactor  = 35.3615
  Normalizat = 1.02525
  Prefactor  = 0.807228
 **********
 **   18 **HESSE 
 **********

 FCN=   3737.741     FROM HESSE     STATUS=OK           689 CALLS     5295 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    25.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.220        18.272        .12534E-03   -1.5068    
   5  Prefactor     1.3093        7.5498        .31820E-03   -1.5479    
   6  Prefactor     .10000E-03    2.2400        .89056E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.9285        93.547        .18113E-03   -1.5264    
   8  Prefactor     10.425        8.4795        .62054E-03   -1.5062    
   9  Prefactor     17.137        17.363        .48375E-03   -1.4880    
  10  Prefactor     11.180        27.409        .11984E-03   -1.5039    
  11  Prefactor     .10000E-03    7.5531        .16404E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.7681        .13016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     20.734        52.483        .87931E-04   -1.4797    
  14  Prefactor     .10000E-03    51.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.9462        .13276E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.5179        .94734E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.8302        .80771E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10001E-03    69.979        .40190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.9788        .10292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     77.361        49.109        .45659E-04   -1.3947    
  22  Prefactor     .10000E-03    147.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.8757        .10085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     21.763        17.682        .42931E-03   -1.4775    
  25  norm          .10000E-03    .47194        .40608E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .99748        7.5595        .29972E-03   -1.5508    
  27  Prefactor     1.8622        2.9954        .12946E-03   -1.5435    
  28  Prefactor     12.698        21.376        .11241E-03   -1.4995    
  29  Prefactor     .10000E-03    3.8534        .11690E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     13.687        7.0405        .54137E-03   -1.4968    
  31  Prefactor     35.362        87.824        .67504E-04   -1.4518    
  32  Normalizat    1.0252        .26377        .22479E-03   -.92189    
  33  Prefactor     .80723        .26791        .26666E-03   -.99462    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.76157e-10
Minuit parameter uncertainties:
  1  3.42606e-06
  2  1.66029e-05
  3  2.21703e-06
  4  18.2818
  5  6.28901
  6  1.15069e-07
  7  43.0212
  8  8.4805
  9  17.3679
  10  27.4399
  11  2.81425e-06
  12  1.87455e-06
  13  52.5999
  14  1.43952e-05
  15  1.613e-06
  16  1.23172e-06
  17  4.6875e-07
  18  3.3088e-07
  19  0.00194572
  20  2.84039e-06
  21  49.1349
  22  0.000505836
  23  5.89545e-06
  24  17.6859
  25  1.02138e-07
  26  5.49268
  27  2.99565
  28  21.3889
  29  2.70403e-05
  30  7.0409
  31  88.1477
  32  0.264102
  33  0.268348
Done.

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

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  7.736e+01  4.913e+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:  8.072e-01  2.683e-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.025e+00  2.641e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.52
Ra Dec: 351.737 -41.509
Photon Index (Fixed Index): 2.78 +/- 0.00
Photon Flux (Fixed Index): 1.01e-07 +/- 6.43e-08
Energy Flux (Fixed Index): 2.30e-05 +/- 1.46e-05

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) = 3737.72453752
delta logL = 0.0161780076187

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3737.71545041
delta logL = 0.0252651214169

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    84.087       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5760       1.0000          .0000       10.000    
     3 'Normalizat'    1.0471       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79228       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=   3737.715     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      288 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     84.085        59.691        .43806E-04    .79388E-04
   2  Index         2.5760        .94341        .82768E-02    .69481E-04
   3  Normalizat    1.0471        .27075        .22285E-03    .75502E-05
   4  Prefactor     .79229        .27253        .26897E-03   -.13885E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 84.0853
  Index      = 2.576
  Normalizat = 1.04705
  Prefactor  = 0.792288
 **********
 **   18 **HESSE 
 **********

 FCN=   3737.715     FROM HESSE     STATUS=OK            25 CALLS      313 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     84.085        58.091        .87613E-05   -1.3871    
   2  Index         2.5760        .91422        .33107E-03   -.50613    
   3  Normalizat    1.0471        .27003        .89140E-05   -.91470    
   4  Prefactor     .79229        .27227        .10759E-04   -1.0001    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26632e-10
Minuit parameter uncertainties:
  1  58.1305
  2  0.921018
  3  0.270383
  4  0.272729
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/902645': 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) = 3737.7154504
delta logL = 0.0252651224855

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  8.409e+01  5.813e+01  1.000e-04  1.000e+04 ( 1.000e-13)
436        Index:  2.576e+00  9.210e-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:  7.923e-01  2.727e-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.047e+00  2.704e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.52
Ra Dec: 351.737 -41.509
Photon Index (Free Index): 2.58 +/- 0.92
Photon Flux (Free Index): 8.37e-08 +/- 9.87e-08
Energy Flux (Free Index): 2.24e-05 +/- 1.47e-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/902645/cmap_HighResolution_586656001_586915201_4FGL_J2326.9-4130_daily_bin1340.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.01e-07', energy_flux2='2.24e-05', photon_flux_error='6.43e-08', dlogl='2.53e-02', energy_flux='2.30e-05', photon_flux2='8.37e-08', job_status='DONE', time_completed='2021-09-29 19:38:00.516249', photon_index_error2='0.92', photon_index2='2.58', ts='6.52', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='1.47e-05', EG='1.03', time_epoch_completed='1632969480.52', return_code='0', job_id='902645', GAL2='0.79', EG2='1.05', return_code2='0', energy_flux_error='1.46e-05', photon_flux_error2='9.87e-08', ts2='6.52', photon_index='2.78' WHERE bin_id='1340' AND source_name='4FGL J2326.9-4130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:38:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0126>
Subject: Job 902645: <4FGL_J2326.9-4130_daily_bin1340> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.9-4130_daily_bin1340 351.737 -41.5089 586656001 586915201 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 :                                   612.40 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             310.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   748 sec.
    Turnaround time :                            750 sec.

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

