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


Performing analysis on: 4FGL_J2326.9-4130_daily_bin1647
RA = 351.737, Dec = -41.5089
tmin = 666230401, tmax = 666489601
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='833725', job_status='RUN', time_executed='2022-02-14 00:36:45.501973', time_epoch_executed='1644827805.5' WHERE source_name='4FGL J2326.9-4130' and cadence='daily' and bin_id='1647'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/833725

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/833725/ft1_4FGL_J2326.9-4130_daily_bin1647.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/833725/ft2_4FGL_J2326.9-4130_daily_bin1647.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/833725/ft1_4FGL_J2326.9-4130_daily_bin1647.fits outfile=/scratch/kocevski/833725/ft1_filteredMKT_4FGL_J2326.9-4130_daily_bin1647.fits ra=351.737 dec=-41.5089 rad=12.0 tmin=666230401.0 tmax=666489601.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 4.26
user 4.07
sys 0.17

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/833725/ft1_filtered_4FGL_J2326.9-4130_daily_bin1647.fits" evtable="EVENTS" scfile=/scratch/kocevski/833725/ft2_4FGL_J2326.9-4130_daily_bin1647.fits sctable="SC_DATA" outfile=/scratch/kocevski/833725/ltcube_666230401_666489601_4FGL_J2326.9-4130_daily_bin1647.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/833725/ft2_4FGL_J2326.9-4130_daily_bin1647.fits
.....................!
real 11.87
user 11.51
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/833725/ft1_filtered_4FGL_J2326.9-4130_daily_bin1647.fits evtable="EVENTS" scfile=/scratch/kocevski/833725/ft2_4FGL_J2326.9-4130_daily_bin1647.fits sctable="SC_DATA" expcube=/scratch/kocevski/833725/ltcube_666230401_666489601_4FGL_J2326.9-4130_daily_bin1647.fits outfile=/scratch/kocevski/833725/expmap_666230401_666489601_4FGL_J2326.9-4130_daily_bin1647.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/833725/ltcube_666230401_666489601_4FGL_J2326.9-4130_daily_bin1647.fits
.....................!
real 190.28
user 184.37
sys 5.58

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

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

This is gtbin version HEAD
real 0.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/833725/ft1_filtered_4FGL_J2326.9-4130_daily_bin1647.fits scfile=/scratch/kocevski/833725/ft2_4FGL_J2326.9-4130_daily_bin1647.fits outfile=/scratch/kocevski/833725/cmap_HighResolution_666230401_666489601_4FGL_J2326.9-4130_daily_bin1647.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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/833725/ft1_filtered_4FGL_J2326.9-4130_daily_bin1647.fits evtable="EVENTS" scfile=/scratch/kocevski/833725/ft2_4FGL_J2326.9-4130_daily_bin1647.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/833725/Model_4FGL_J2326.9-4130_daily_bin1647.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/833725/ft1_filtered_4FGL_J2326.9-4130_daily_bin1647.fits.....................!
real 35.12
user 33.92
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4649       1.0000         .10000E-03   10000.    
     2 'Prefactor '    72.469       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10328E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    52.142       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.049       1.0000         .10000E-03   10000.    
    11 'Prefactor '    33.397       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .25363E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    66.279       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    32.048       1.0000         .10000E-03   10000.    
    17 'norm      '    .11847E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    12.220       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.4850       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.0649       1.0000         .10000E-03   10000.    
    24 'Prefactor '    15.498       1.0000         .10000E-03   10000.    
    25 'norm      '    1.6799       1.0000         .10000E-03   10000.    
    26 'norm      '    4.9062       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.1318       1.0000         .10000E-03   10000.    
    31 'Prefactor '    44.265       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .88214       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0014       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5820E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4124.791     FROM MIGRAD    STATUS=CONVERGED    105 CALLS     3776 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3893        19.442       -.29626E-04    .35782E-02
   2  Prefactor     72.466        1.1070       -.19363E-06    .13220E-02
   3  Prefactor     .10006E-03    11.313       -.22084E-04** at limit **
   4  Prefactor     .10008E-03    9.6743       -.22986E-04** at limit **
   5  Prefactor     .10000E-03    2.2293        .26333E-06** at limit **
   6  Prefactor     .10000E-03    5.8600       -.11087E-05** at limit **
   7  Prefactor     .10735E-03    34.736        .10975E-05** at limit **
   8  Prefactor     .10002E-03    8.9633        .11040E-04** at limit **
   9  Prefactor     52.144        1.0338        .11157E-06   -.51868E-03
  10  Prefactor     11.041        1.3347       -.75355E-06    .69772E-03
  11  Prefactor     33.400        1.0176       -.11184E-06    .55933E-03
  12  Prefactor     .10000E-03    .47292        .76890E-06** at limit **
  13  Prefactor     .10010E-03    24.493        .10934E-04** at limit **
  14  Prefactor     66.280        1.0024        .18414E-07   -.67744E-04
  15  Prefactor     .10001E-03    4.3667        .27605E-05** at limit **
  16  norm          32.048        1.0112       -.87084E-07    .26604E-03
  17  norm          .10051E-03    55.901       -.12387E-04** at limit **
  18  norm          .10000E-03    2.0780        .11679E-06** at limit **
  19  norm          12.220        1.0058       -.76881E-07    .30613E-04
  20  Prefactor     9.4842        1.0285        .41097E-08    .22762E-03
  21  Prefactor     .10092E-03    27.085        .76756E-05** at limit **
  22  Prefactor     .10019E-03    9.8856        .19096E-04** at limit **
  23  norm          4.0615        4.3955        .35310E-05    .43436E-03
  24  Prefactor     15.496        1.0661       -.20061E-06    .22136E-03
  25  norm          1.6796        1.3021       -.32687E-06    .93742E-03
  26  norm          4.9051        4.1036       -.43957E-05   -.98220E-03
  27  Prefactor     .10000E-03    2.7592        .26199E-06** at limit **
  28  Prefactor     .10001E-03    4.3488        .50865E-05** at limit **
  29  Prefactor     .10000E-03    2.5166        .19756E-06** at limit **
  30  Prefactor     1.1331        3.4473       -.73898E-07   -.89904E-04
  31  Prefactor     44.263        1.0376       -.17198E-06    .84003E-03
  32  Normalizat    .88192        .23388        .18251E-06   -.15945E-05
  33  Prefactor     1.0015        .26657       -.15206E-06    .13654E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.38933
  Prefactor  = 72.466
  Prefactor  = 0.000100061
  Prefactor  = 0.000100084
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000107348
  Prefactor  = 0.000100016
  Prefactor  = 52.1439
  Prefactor  = 11.0412
  Prefactor  = 33.4003
  Prefactor  = 0.000100004
  Prefactor  = 0.000100105
  Prefactor  = 66.2802
  Prefactor  = 0.000100011
  norm       = 32.0476
  norm       = 0.000100512
  norm       = 0.0001
  norm       = 12.22
  Prefactor  = 9.48425
  Prefactor  = 0.000100917
  Prefactor  = 0.000100194
  norm       = 4.06151
  Prefactor  = 15.4958
  norm       = 1.67959
  norm       = 4.90511
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 1.13312
  Prefactor  = 44.2632
  Normalizat = 0.881923
  Prefactor  = 1.00151
 **********
 **   18 **HESSE 
 **********

 FCN=   4124.791     FROM HESSE     STATUS=OK           773 CALLS     4549 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3893        260.51        .88829E-02   -1.5472    
   2  Prefactor     72.466        32.752        .11790E-02   -1.4003    
   3  Prefactor     .10006E-03    16.198        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10008E-03    9.9620        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.2162        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.6122        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10735E-03    85.949        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10002E-03    8.7707        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     52.144        38.048        .13886E-02   -1.4262    
  10  Prefactor     11.041        26.134        .30132E-02   -1.5043    
  11  Prefactor     33.400        22.888        .17335E-02   -1.4551    
  12  Prefactor     .10000E-03    6.8540        .54611E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10010E-03    52.822        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     66.280        55.515        .12324E-02   -1.4078    
  15  Prefactor     .10001E-03    14.928        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          32.048        20.999        .17695E-02   -1.4575    
  17  norm          .10051E-03    7.4957        .64609E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.0779        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          12.220        8.6244        .28649E-02   -1.5009    
  20  Prefactor     9.4842        8.6235        .32531E-02   -1.5092    
  21  Prefactor     .10092E-03    50.931        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10019E-03    13.111        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.0615        4.4148        .49995E-02   -1.5305    
  24  Prefactor     15.496        19.720        .25435E-02   -1.4920    
  25  norm          1.6796        1.3480        .81256E-02   -1.5449    
  26  norm          4.9051        4.1118        .45397E-02   -1.5265    
  27  Prefactor     .10000E-03    2.7116        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10001E-03    14.861        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    2.5074        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     1.1331        3.5906        .10971E-01   -1.5495    
  31  Prefactor     44.263        52.355        .15065E-02   -1.4376    
  32  Normalizat    .88192        .20591        .44673E-01   -.97098    
  33  Prefactor     1.0015        .22945        .45205E-01   -.92679    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52373e-06
Minuit parameter uncertainties:
  1  38.2178
  2  32.7597
  3  0.00198113
  4  0.00183321
  5  8.15189e-06
  6  3.65313e-05
  7  0.0503353
  8  0.000759537
  9  38.0655
  10  26.1612
  11  22.8936
  12  0.000334501
  13  0.00471043
  14  55.5586
  15  0.000805876
  16  21.0039
  17  0.00391957
  18  1.87129e-05
  19  8.6253
  20  8.62459
  21  0.0136798
  22  0.00318715
  23  4.41513
  24  19.7287
  25  1.348
  26  4.11203
  27  1.65293e-05
  28  0.000556316
  29  9.11301e-06
  30  3.59126
  31  52.4093
  32  0.206091
  33  0.22967
Done.

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

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  1.009e-04  1.368e-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:  1.002e+00  2.297e-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:  8.819e-01  2.061e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 351.737 -41.509
Photon Flux Upper Limit: 1.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.50e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/833725/likelihoodResults_666230401_666489601_4FGL_J2326.9-4130_daily_bin1647.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4124.79122719
delta logL = -9.3048933195e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4124.79113421
delta logL = -7.53243512008e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7154       1.0000          .0000       10.000    
     3 'Normalizat'    .88193       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0015       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=   4124.791     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      231 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    7147.9        .90712E-02** at limit **
   2  Index         2.7428        8.5847        .50000       -.56362E-05
   3  Normalizat    .88192        .57980E-01    .44670E-01    .42843E-04
   4  Prefactor     1.0015        .66595E-01    .45151E-01    .28317E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Index      = 2.74277
  Normalizat = 0.881923
  Prefactor  = 1.00151
 **********
 **   18 **HESSE 
 **********

 FCN=   4124.791     FROM HESSE     STATUS=OK            33 CALLS      264 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    363.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7428        6.3610        .50000       -.46839    
   3  Normalizat    .88192        .22956        .24024E-03   -.97098    
   4  Prefactor     1.0015        .26436        .25990E-03   -.92679    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.10464e-10
Minuit parameter uncertainties:
  1  0.00305759
  2  12.3418
  3  0.229812
  4  0.264698
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/833725': 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) = 4124.79113417
delta logL = -3.56867531082e-08

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  1.000e-04  3.058e-03  1.000e-04  1.000e+04 ( 1.000e-13)
436        Index:  2.743e+00  1.234e+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.002e+00  2.647e-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:  8.819e-01  2.298e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 351.737 -41.509

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/833725/cmap_HighResolution_666230401_666489601_4FGL_J2326.9-4130_daily_bin1647.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.50e-03', job_status='DONE', photon_flux_upper_limit='1.07e-07', time_completed='2022-02-14 00:48:12.351628', job_id='833725', GAL2='1.00', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1644828492.35', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='-3.57e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.78' WHERE bin_id='1647' AND source_name='4FGL J2326.9-4130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Feb 14 00:48:12 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0172>
Subject: Job 833725: <4FGL_J2326.9-4130_daily_bin1647> in cluster <slac> Done

Job <4FGL_J2326.9-4130_daily_bin1647> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Feb 14 00:35:58 2022
Job was executed on host(s) <bullet0172>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Feb 14 00:36:00 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Feb 14 00:36:00 2022
Terminated at Mon Feb 14 00:48:13 2022
Results reported at Mon Feb 14 00:48:13 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.9-4130_daily_bin1647 351.737 -41.5089 666230401 666489601 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 :                                   689.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             324.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   732 sec.
    Turnaround time :                            735 sec.

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

