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


Performing analysis on: 4FGL_J2326.9-4130_daily_bin1117
RA = 351.737, Dec = -41.5089
tmin = 528854401, tmax = 529113601
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='901059', job_status='RUN', time_executed='2021-09-29 19:22:07.047518', time_epoch_executed='1632968527.05' WHERE source_name='4FGL J2326.9-4130' and cadence='daily' and bin_id='1117'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/901059

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/901059/ft1_4FGL_J2326.9-4130_daily_bin1117.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/901059/ft2_4FGL_J2326.9-4130_daily_bin1117.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/901059/ft1_4FGL_J2326.9-4130_daily_bin1117.fits outfile=/scratch/kocevski/901059/ft1_filteredMKT_4FGL_J2326.9-4130_daily_bin1117.fits ra=351.737 dec=-41.5089 rad=12.0 tmin=528854401.0 tmax=529113601.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.42
user 3.22
sys 0.18

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/901059/ft1_filtered_4FGL_J2326.9-4130_daily_bin1117.fits" evtable="EVENTS" scfile=/scratch/kocevski/901059/ft2_4FGL_J2326.9-4130_daily_bin1117.fits sctable="SC_DATA" outfile=/scratch/kocevski/901059/ltcube_528854401_529113601_4FGL_J2326.9-4130_daily_bin1117.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/901059/ft2_4FGL_J2326.9-4130_daily_bin1117.fits
.....................!
real 12.08
user 11.74
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/901059/ft1_filtered_4FGL_J2326.9-4130_daily_bin1117.fits evtable="EVENTS" scfile=/scratch/kocevski/901059/ft2_4FGL_J2326.9-4130_daily_bin1117.fits sctable="SC_DATA" expcube=/scratch/kocevski/901059/ltcube_528854401_529113601_4FGL_J2326.9-4130_daily_bin1117.fits outfile=/scratch/kocevski/901059/expmap_528854401_529113601_4FGL_J2326.9-4130_daily_bin1117.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/901059/ltcube_528854401_529113601_4FGL_J2326.9-4130_daily_bin1117.fits
.....................!
real 191.15
user 186.70
sys 4.04

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/901059/ft1_filtered_4FGL_J2326.9-4130_daily_bin1117.fits scfile=/scratch/kocevski/901059/ft2_4FGL_J2326.9-4130_daily_bin1117.fits outfile=/scratch/kocevski/901059/cmap_528854401_529113601_4FGL_J2326.9-4130_daily_bin1117.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.39
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/901059/ft1_filtered_4FGL_J2326.9-4130_daily_bin1117.fits evtable="EVENTS" scfile=/scratch/kocevski/901059/ft2_4FGL_J2326.9-4130_daily_bin1117.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/901059/Model_4FGL_J2326.9-4130_daily_bin1117.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/901059/ft1_filtered_4FGL_J2326.9-4130_daily_bin1117.fits.....................!
real 42.10
user 40.71
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.598       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.644       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.8869       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .42494E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.8267       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12213E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.9059       1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.662       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.9222       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.0049       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.3561       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.5519       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.1278       1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.802       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .11669E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.0363       1.0000         .10000E-03   10000.    
    26 'norm      '    2.6960       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .20959E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.2425       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    4.9863       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .77432       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .89478       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=   5594.690     FROM MIGRAD    STATUS=CONVERGED    884 CALLS     4597 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.598        24.681        .62887E-08   -.14269E-04
   2  Prefactor     .10000E-03    22.015       -.24659E-05** at limit **
   3  Prefactor     13.630        30.596       -.26886E-05   -.18862E-03
   4  Prefactor     .10000E-03    9.2253       -.18276E-05** at limit **
   5  Prefactor     3.8865        4.4604        .17938E-06    .47944E-04
   6  Prefactor     .10000E-03    1.8990       -.21983E-06** at limit **
   7  Prefactor     .10002E-03    64.097       -.59545E-05** at limit **
   8  Prefactor     7.8235        5.9191        .11150E-05   -.63496E-03
   9  Prefactor     .10003E-03    45.869        .84813E-05** at limit **
  10  Prefactor     3.9150        35.172        .31892E-05    .21075E-04
  11  Prefactor     22.665        15.235        .18275E-06   -.89679E-04
  12  Prefactor     3.9203        4.4272        .11619E-06    .14052E-03
  13  Prefactor     .97474        17.068        .50262E-06   -.15160E-03
  14  Prefactor     .10000E-03    13.768        .86574E-06** at limit **
  15  Prefactor     4.3541        12.467        .71205E-05   -.48647E-03
  16  norm          .10000E-03    6.5336       -.64624E-06** at limit **
  17  norm          .10000E-03    1.7294       -.17057E-07** at limit **
  18  norm          2.5519        2.7693        .31587E-08    .33305E-04
  19  norm          .10000E-03    5.0896        .15327E-06** at limit **
  20  Prefactor     4.1271        4.0679        .17274E-06    .89427E-04
  21  Prefactor     19.797        27.618       -.37906E-06   -.96603E-04
  22  Prefactor     .10000E-03    13.330        .56008E-06** at limit **
  23  norm          .10000E-03    1.9356       -.84441E-07** at limit **
  24  Prefactor     .10000E-03    7.6008        .17079E-05** at limit **
  25  norm          1.0362        1.0342       -.26674E-06   -.92957E-03
  26  norm          2.6948        2.9213        .12099E-06   -.34426E-05
  27  Prefactor     .10001E-03    1.7063        .73800E-07** at limit **
  28  Prefactor     3.2340        27.576        .18813E-05   -.13505E-04
  29  Prefactor     .10000E-03    3.1085        .96158E-07** at limit **
  30  Prefactor     4.9846        3.4129        .64425E-07    .21452E-04
  31  Prefactor     .10000E-03    61.733       -.16104E-05** at limit **
  32  Normalizat    .77456        .15738       -.33622E-06   -.75857E-04
  33  Prefactor     .89448        .16779       -.82335E-06   -.26452E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.5979
  Prefactor  = 0.000100002
  Prefactor  = 13.6298
  Prefactor  = 0.000100002
  Prefactor  = 3.88651
  Prefactor  = 0.000100001
  Prefactor  = 0.000100019
  Prefactor  = 7.82353
  Prefactor  = 0.000100026
  Prefactor  = 3.91499
  Prefactor  = 22.6647
  Prefactor  = 3.92034
  Prefactor  = 0.974738
  Prefactor  = 0.0001
  Prefactor  = 4.35406
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.55186
  norm       = 0.0001
  Prefactor  = 4.12712
  Prefactor  = 19.7966
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.03619
  norm       = 2.69484
  Prefactor  = 0.000100005
  Prefactor  = 3.23396
  Prefactor  = 0.0001
  Prefactor  = 4.98459
  Prefactor  = 0.000100001
  Normalizat = 0.774563
  Prefactor  = 0.894475
 **********
 **   18 **HESSE 
 **********

 FCN=   5594.690     FROM HESSE     STATUS=OK           703 CALLS     5300 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.598        24.691        .79176E-04   -1.4696    
   2  Prefactor     .10000E-03    22.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.630        30.905        .10844E-03   -1.4969    
   4  Prefactor     .10000E-03    9.3944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.8865        4.4552        .16348E-03   -1.5314    
   6  Prefactor     .10000E-03    12.217        .19490E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10002E-03    66.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.8235        5.9506        .71665E-03   -1.5148    
   9  Prefactor     .10003E-03    48.761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.9150        34.872        .20414E-03   -1.5312    
  11  Prefactor     22.665        15.261        .84142E-04   -1.4755    
  12  Prefactor     3.9203        4.4167        .16138E-03   -1.5312    
  13  Prefactor     .97474        84.564        .59844E-02   -1.5511    
  14  Prefactor     .10000E-03    13.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.3541        13.011        .96494E-03   -1.5291    
  16  norm          .10000E-03    6.6354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.7304        .96056E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.5519        2.7719        .12573E-03   -1.5388    
  19  norm          .10000E-03    5.1627        .16475E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.1271        4.0579        .14301E-03   -1.5302    
  21  Prefactor     19.797        27.546        .90006E-04   -1.4818    
  22  Prefactor     .10000E-03    13.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.9463        .10100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    7.7576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.0362        .98945        .68838E-03   -1.5504    
  26  norm          2.6948        2.9036        .12404E-03   -1.5380    
  27  Prefactor     .10001E-03    13.149        .17109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     3.2340        23.303        .22493E-03   -1.5348    
  29  Prefactor     .10000E-03    3.1598        .12869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     4.9846        3.4109        .10876E-03   -1.5261    
  31  Prefactor     .10000E-03    62.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .77456        .18843        .21725E-03   -1.0102    
  33  Prefactor     .89448        .20186        .23150E-03   -.96334    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.53175e-09
Minuit parameter uncertainties:
  1  24.7006
  2  0.00041951
  3  30.9411
  4  0.0002577
  5  4.45556
  6  0.000202918
  7  0.00225422
  8  5.95106
  9  0.00225626
  10  23.3866
  11  15.264
  12  4.41706
  13  18.1836
  14  0.000142976
  15  13.0194
  16  7.19872e-05
  17  1.66742e-06
  18  2.77205
  19  1.43613e-05
  20  4.05819
  21  27.5639
  22  9.03279e-05
  23  7.65671e-06
  24  0.000185667
  25  0.989462
  26  2.90379
  27  0.000515169
  28  17.3714
  29  5.51758e-06
  30  3.41101
  31  0.000586349
  32  0.188586
  33  0.202033
Done.

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

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  1.980e+01  2.756e+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.945e-01  2.020e-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:  7.746e-01  1.886e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.67
Ra Dec: 351.737 -41.509
Photon Flux Upper Limit: 9.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/901059/likelihoodResults_528854401_529113601_4FGL_J2326.9-4130_daily_bin1117.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) = 5594.59490653
delta logL = 0.0953911632814

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5594.59254341
delta logL = 0.0977542775217

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.883       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2779       1.0000          .0000       10.000    
     3 'Normalizat'    .76461       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90272       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=   5594.593     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      304 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.877        33.014        .11621E-03   -.22980E-03
   2  Index         3.2784        1.6250        .82979E-02   -.40084E-04
   3  Normalizat    .76495        .17837        .21847E-03   -.10460E-03
   4  Prefactor     .90227        .20095        .23060E-03    .26080E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.8771
  Index      = 3.27838
  Normalizat = 0.764955
  Prefactor  = 0.90227
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.877        24.939        .46484E-05   -1.5019    
   2  Index         3.2784        1.2366        .33192E-03   -.35152    
   3  Normalizat    .76495        .17860        .87387E-05   -1.0138    
   4  Prefactor     .90227        .20099        .92239E-05   -.96062    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33117e-10
Minuit parameter uncertainties:
  1  24.9609
  2  1.25134
  3  0.178737
  4  0.20116
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/901059': 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) = 5594.59254066
delta logL = 0.09775703164

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  1.188e+01  2.496e+01  1.000e-04  1.000e+04 ( 1.000e-13)
436        Index:  3.278e+00  1.251e+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:  9.023e-01  2.012e-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:  7.650e-01  1.787e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.67
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/901059/cmap_HighResolution_528854401_529113601_4FGL_J2326.9-4130_daily_bin1117.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.84e-03', job_status='DONE', photon_flux_upper_limit='9.92e-08', time_completed='2021-09-29 19:37:14.594118', job_id='901059', GAL2='0.90', fit_tolerance='1e-08', EG2='0.76', EG='0.77', time_epoch_completed='1632969434.59', return_code2='0', ts='0.67', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='9.78e-02', ts2='0.88', photon_index_error='0.00', photon_index='2.78' WHERE bin_id='1117' AND source_name='4FGL J2326.9-4130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:37:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 901059: <4FGL_J2326.9-4130_daily_bin1117> in cluster <slac> Done

Job <4FGL_J2326.9-4130_daily_bin1117> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 19:20:41 2021
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 19:20:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 19:20:43 2021
Terminated at Wed Sep 29 19:37:15 2021
Results reported at Wed Sep 29 19:37:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.9-4130_daily_bin1117 351.737 -41.5089 528854401 529113601 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 :                                   880.16 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             275.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   991 sec.
    Turnaround time :                            994 sec.

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

