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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1098
RA = 352.082, Dec = -40.6037
tmin = 523929601, tmax = 524188801
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='929623', job_status='RUN', time_executed='2021-09-29 20:37:30.998185', time_epoch_executed='1632973051.0' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1098'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/929623

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/929623/ft1_4FGL_J2328.3-4036_daily_bin1098.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/929623/ft2_4FGL_J2328.3-4036_daily_bin1098.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/929623/ft1_4FGL_J2328.3-4036_daily_bin1098.fits outfile=/scratch/kocevski/929623/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1098.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=523929601.0 tmax=524188801.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.50
user 3.28
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/929623/ft2_4FGL_J2328.3-4036_daily_bin1098.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/929623/ft2_4FGL_J2328.3-4036_daily_bin1098.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/929623/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1098.fits evtable="EVENTS" outfile="/scratch/kocevski/929623/ft1_filtered_4FGL_J2328.3-4036_daily_bin1098.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/929623/ft1_filtered_4FGL_J2328.3-4036_daily_bin1098.fits" evtable="EVENTS" scfile=/scratch/kocevski/929623/ft2_4FGL_J2328.3-4036_daily_bin1098.fits sctable="SC_DATA" outfile=/scratch/kocevski/929623/ltcube_523929601_524188801_4FGL_J2328.3-4036_daily_bin1098.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/929623/ft2_4FGL_J2328.3-4036_daily_bin1098.fits
.....................!
real 12.28
user 11.93
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/929623/ft1_filtered_4FGL_J2328.3-4036_daily_bin1098.fits evtable="EVENTS" scfile=/scratch/kocevski/929623/ft2_4FGL_J2328.3-4036_daily_bin1098.fits sctable="SC_DATA" expcube=/scratch/kocevski/929623/ltcube_523929601_524188801_4FGL_J2328.3-4036_daily_bin1098.fits outfile=/scratch/kocevski/929623/expmap_523929601_524188801_4FGL_J2328.3-4036_daily_bin1098.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/929623/ltcube_523929601_524188801_4FGL_J2328.3-4036_daily_bin1098.fits
.....................!
real 190.28
user 185.12
sys 4.75

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 185 point sources and 0 extended sources

Setting source of interest to:
4FGL J2328.3-4036 @ 352.082 -40.6037

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/929623/ft1_filtered_4FGL_J2328.3-4036_daily_bin1098.fits scfile=/scratch/kocevski/929623/ft2_4FGL_J2328.3-4036_daily_bin1098.fits outfile=/scratch/kocevski/929623/cmap_523929601_524188801_4FGL_J2328.3-4036_daily_bin1098.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=352.082 yref=-40.6037 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/929623/ft1_filtered_4FGL_J2328.3-4036_daily_bin1098.fits scfile=/scratch/kocevski/929623/ft2_4FGL_J2328.3-4036_daily_bin1098.fits outfile=/scratch/kocevski/929623/cmap_HighResolution_523929601_524188801_4FGL_J2328.3-4036_daily_bin1098.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=352.082 yref=-40.6037 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/929623/ft1_filtered_4FGL_J2328.3-4036_daily_bin1098.fits evtable="EVENTS" scfile=/scratch/kocevski/929623/ft2_4FGL_J2328.3-4036_daily_bin1098.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/929623/Model_4FGL_J2328.3-4036_daily_bin1098.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/929623/ft1_filtered_4FGL_J2328.3-4036_daily_bin1098.fits.....................!
real 39.45
user 38.04
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/929623/ft1_filtered_4FGL_J2328.3-4036_daily_bin1098.fits', '/scratch/kocevski/929623/ft2_4FGL_J2328.3-4036_daily_bin1098.fits', expMap='/scratch/kocevski/929623/expmap_523929601_524188801_4FGL_J2328.3-4036_daily_bin1098.fits', expCube='/scratch/kocevski/929623/ltcube_523929601_524188801_4FGL_J2328.3-4036_daily_bin1098.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/929623/Model_4FGL_J2328.3-4036_daily_bin1098.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2328.3-4036'

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  4.981e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  2.333e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
457         beta:  7.057e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
458           Eb:  7.709e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/929623/ft1_filtered_4FGL_J2328.3-4036_daily_bin1098.fits
Spacecraft file(s): /scratch/kocevski/929623/ft2_4FGL_J2328.3-4036_daily_bin1098.fits
Exposure map: /scratch/kocevski/929623/expmap_523929601_524188801_4FGL_J2328.3-4036_daily_bin1098.fits
Exposure cube: /scratch/kocevski/929623/ltcube_523929601_524188801_4FGL_J2328.3-4036_daily_bin1098.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/929623/Model_4FGL_J2328.3-4036_daily_bin1098.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) = 5073.47276193

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.280       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.336       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.5468       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.2205       1.0000         .10000E-03   10000.    
     7 'Prefactor '    46.571       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.4152       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.1731       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.442       1.0000         .10000E-03   10000.    
    13 'Prefactor '    111.22       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.2790       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.9041       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12540       1.0000         .10000E-03   10000.    
    22 'norm      '    3.4137       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.4378       1.0000         .10000E-03   10000.    
    24 'norm      '    .47263       1.0000         .10000E-03   10000.    
    25 'norm      '    2.3288       1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.1933       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    5.7283       1.0000         .10000E-03   10000.    
    30 'Prefactor '    3.5611       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1213       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .79747       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5073.409     FROM MIGRAD    STATUS=CONVERGED    168 CALLS     3929 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.661       -.23929E-05** at limit **
   2  Prefactor     11.281        1.6703        .98411E-07    .87382E-03
   3  Prefactor     12.424        10.154       -.31785E-05    .29899E-02
   4  Prefactor     .10000E-03    13.324       -.16279E-05** at limit **
   5  Prefactor     4.5509        5.3462        .33587E-05   -.15087E-03
   6  Prefactor     2.2218        4.4060        .11895E-06    .66159E-04
   7  Prefactor     46.530        8.9348        .14511E-05   -.42932E-02
   8  Prefactor     .10000E-03    8.5393       -.36766E-05** at limit **
   9  Prefactor     9.4496        23.859        .67507E-05    .20401E-02
  10  Prefactor     .10000E-03    7.1709       -.94556E-06** at limit **
  11  Prefactor     1.1751        1.8979        .25913E-05   -.35198E-03
  12  Prefactor     11.449        11.605        .33947E-05   -.64439E-03
  13  Prefactor     111.22        3.3110        .36764E-06   -.35886E-02
  14  Prefactor     .10000E-03    7.5543        .13687E-05** at limit **
  15  norm          3.2812        1.0685        .35291E-06   -.32908E-03
  16  norm          .10000E-03    2.6407        .86695E-08** at limit **
  17  norm          .10000E-03    2.0437        .10997E-06** at limit **
  18  norm          .10000E-03    6.9358        .12739E-06** at limit **
  19  Prefactor     4.9054        4.6953       -.17330E-05    .18512E-03
  20  Prefactor     .10000E-03    37.885        .30597E-05** at limit **
  21  Prefactor     .97389        581.40        .44412E-05   -.97409E-04
  22  norm          3.4144        3.2877        .25309E-06    .37398E-04
  23  Prefactor     3.4424        1.3465        .19361E-06   -.57721E-03
  24  norm          .47297        .74606        .25064E-06    .30554E-04
  25  norm          2.3294        2.5105       -.92321E-07    .52151E-04
  26  Prefactor     3.1952        3.2920        .58747E-06   -.23233E-04
  27  Prefactor     .10000E-03    9.1080        .34836E-05** at limit **
  28  Prefactor     .10000E-03    7.2625        .73903E-06** at limit **
  29  Prefactor     5.7293        5.2440        .60101E-05    .21690E-03
  30  Prefactor     3.5650        4.2151        .29513E-06    .17111E-04
  31  Prefactor     .10000E-03    29.096        .27776E-05** at limit **
  32  Normalizat    1.1206        .22445       -.49916E-05   -.90649E-04
  33  Prefactor     .79771        .23882        .19088E-05   -.55438E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 11.2813
  Prefactor  = 12.4244
  Prefactor  = 0.0001
  Prefactor  = 4.55085
  Prefactor  = 2.22183
  Prefactor  = 46.5303
  Prefactor  = 0.0001
  Prefactor  = 9.44963
  Prefactor  = 0.0001
  Prefactor  = 1.17513
  Prefactor  = 11.449
  Prefactor  = 111.224
  Prefactor  = 0.0001
  norm       = 3.28122
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 4.90539
  Prefactor  = 0.0001
  Prefactor  = 0.973893
  norm       = 3.41436
  Prefactor  = 3.44241
  norm       = 0.472968
  norm       = 2.32941
  Prefactor  = 3.19518
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.72927
  Prefactor  = 3.56497
  Prefactor  = 0.0001
  Normalizat = 1.12056
  Prefactor  = 0.797706
 **********
 **   18 **HESSE 
 **********

 FCN=   5073.409     FROM HESSE     STATUS=OK           775 CALLS     4704 TOTAL
                     EDM=   .25E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.603        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.281        14.795        .29821E-02   -1.5036    
   3  Prefactor     12.424        50.896        .28513E-02   -1.5003    
   4  Prefactor     .10000E-03    13.307        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.5509        5.3462        .47198E-02   -1.5281    
   6  Prefactor     2.2218        4.6735        .68991E-02   -1.5410    
   7  Prefactor     46.530        75.613        .14689E-02   -1.4343    
   8  Prefactor     .10000E-03    8.5376        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.4496        29.115        .32652E-02   -1.5093    
  10  Prefactor     .10000E-03    7.1429        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.1751        9.0488        .10582E-01   -1.5491    
  12  Prefactor     11.449        30.500        .29609E-02   -1.5031    
  13  Prefactor     111.22        70.312        .95356E-03   -1.3595    
  14  Prefactor     .10000E-03    7.5025        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.2812        9.1838        .55904E-02   -1.5346    
  16  norm          .10000E-03    2.6380        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.0368        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    13.511        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.9054        4.9901        .45407E-02   -1.5265    
  20  Prefactor     .10000E-03    37.670        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .97389        59.979        .13758       -1.5511    
  22  norm          3.4144        3.2940        .54738E-02   -1.5338    
  23  Prefactor     3.4424        9.5871        .54536E-02   -1.5337    
  24  norm          .47297        .85184        .17731E-01   -1.5570    
  25  norm          2.3294        2.5113        .67185E-02   -1.5403    
  26  Prefactor     3.1952        3.3288        .56688E-02   -1.5350    
  27  Prefactor     .10000E-03    9.0957        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    14.022        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     5.7293        5.3038        .41956E-02   -1.5229    
  30  Prefactor     3.5650        4.3183        .53543E-02   -1.5330    
  31  Prefactor     .10000E-03    29.007        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.1206        .19217        .37193E-01   -.89095    
  33  Prefactor     .79771        .20373        .63309E-01   -.99813    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51491e-06
Minuit parameter uncertainties:
  1  0.000288724
  2  14.8
  3  50.3674
  4  0.000115874
  5  5.34675
  6  4.67423
  7  75.7699
  8  2.4483e-05
  9  29.1586
  10  1.00601e-05
  11  6.52291
  12  30.5419
  13  70.3646
  14  1.62685e-06
  15  9.18774
  16  9.24518e-07
  17  3.24002e-06
  18  0.000275024
  19  4.99057
  20  9.95984e-05
  21  15.3009
  22  3.29421
  23  9.59141
  24  0.851866
  25  2.51146
  26  3.32903
  27  4.84236e-05
  28  7.16458e-05
  29  5.30422
  30  4.31863
  31  0.000200532
  32  0.192293
  33  0.203921
Done.

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

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  3.414e+00  3.294e+00  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  2.333e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
457         beta:  7.057e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
458           Eb:  7.709e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  7.977e-01  2.039e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  1.121e+00  1.923e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.88
Ra Dec: 352.082 -40.604
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 2.58e-08 +/- 2.49e-08
Energy Flux (Fixed Index): 9.01e-06 +/- 8.69e-06

TS (Fixed Index): 2.88
Ra Dec: 352.082 -40.604
Photon Flux Upper Limit: 9.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.17e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/929623/likelihoodResults_523929601_524188801_4FGL_J2328.3-4036_daily_bin1098.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) = 5073.35684086
delta logL = 0.0517239657293

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5073.35501232
delta logL = 0.0535525062478

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5886       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9929       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1308       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79084       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5073.355     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      229 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5832        182.47        .53329E-02   -.20154E-04
   2  alpha         1.9908        4.0029        .42276        .30976E-05
   3  Normalizat    1.1308        .24211        .36866E-01   -.12548E-03
   4  Prefactor     .79073        .18103        .63561E-01   -.59185E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.58316
  alpha      = 1.99082
  Normalizat = 1.13079
  Prefactor  = 0.790733
 **********
 **   18 **HESSE 
 **********

 FCN=   5073.355     FROM HESSE     STATUS=OK            31 CALLS      260 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5832        3.5665        .13014E-03   -1.5329    
   2  alpha         1.9908        .96304        .21618E-01   -.20511    
   3  Normalizat    1.1308        .21276        .21482E-03   -.88769    
   4  Prefactor     .79073        .23665        .28115E-03   -1.0007    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.85778e-11
Minuit parameter uncertainties:
  1  3.56669
  2  0.989801
  3  0.212918
  4  0.236957
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/929623': 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) = 5073.35500821
delta logL = 0.0535566226108

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  3.583e+00  3.567e+00  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  1.991e+00  9.898e-01  0.000e+00  5.000e+00 ( 1.000e+00)
457         beta:  7.057e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
458           Eb:  7.709e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  7.907e-01  2.370e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  1.131e+00  2.129e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.99
Ra Dec: 352.082 -40.604
Photon Index (Free Index): 1.99 +/- 0.99
Photon Flux (Free Index): 1.84e-08 +/- 2.66e-08
Energy Flux (Free Index): 1.07e-05 +/- 1.33e-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/929623/cmap_HighResolution_523929601_524188801_4FGL_J2328.3-4036_daily_bin1098.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.17e-05', comment='SUCCESS', photon_flux='2.58e-08', energy_flux2='1.07e-05', photon_flux_error='2.49e-08', dlogl='5.36e-02', energy_flux='9.01e-06', photon_flux2='1.84e-08', job_status='DONE', time_completed='2021-09-29 20:51:02.889980', photon_index_error2='0.99', photon_index2='1.99', ts='2.88', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='9.08e-08', energy_flux_error2='1.33e-05', EG='1.12', time_epoch_completed='1632973862.89', return_code='0', job_id='929623', GAL2='0.79', EG2='1.13', return_code2='0', energy_flux_error='8.69e-06', photon_flux_error2='2.66e-08', ts2='2.99', photon_index='2.33' WHERE bin_id='1098' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:51:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 929623: <4FGL_J2328.3-4036_daily_bin1098> in cluster <slac> Done

Job <4FGL_J2328.3-4036_daily_bin1098> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 20:35:19 2021
Job was executed on host(s) <bullet0273>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 20:35:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 20:35:20 2021
Terminated at Wed Sep 29 20:51:03 2021
Results reported at Wed Sep 29 20:51:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1098 352.082 -40.6037 523929601 524188801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2328.3-4036 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   787.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   943 sec.
    Turnaround time :                            944 sec.

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

