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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1641
RA = 352.082, Dec = -40.6037
tmin = 664675201, tmax = 664934401
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='374083', job_status='RUN', time_executed='2022-01-27 00:41:48.362371', time_epoch_executed='1643272908.36' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1641'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/374083

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/374083/ft1_4FGL_J2328.3-4036_daily_bin1641.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/374083/ft2_4FGL_J2328.3-4036_daily_bin1641.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/374083/ft1_4FGL_J2328.3-4036_daily_bin1641.fits outfile=/scratch/kocevski/374083/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1641.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=664675201.0 tmax=664934401.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.68
user 3.46
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/374083/ft2_4FGL_J2328.3-4036_daily_bin1641.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/374083/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1641.fits evtable="EVENTS" outfile="/scratch/kocevski/374083/ft1_filtered_4FGL_J2328.3-4036_daily_bin1641.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/374083/ft1_filtered_4FGL_J2328.3-4036_daily_bin1641.fits" evtable="EVENTS" scfile=/scratch/kocevski/374083/ft2_4FGL_J2328.3-4036_daily_bin1641.fits sctable="SC_DATA" outfile=/scratch/kocevski/374083/ltcube_664675201_664934401_4FGL_J2328.3-4036_daily_bin1641.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/374083/ft2_4FGL_J2328.3-4036_daily_bin1641.fits
.....................!
real 11.88
user 11.48
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/374083/ft1_filtered_4FGL_J2328.3-4036_daily_bin1641.fits evtable="EVENTS" scfile=/scratch/kocevski/374083/ft2_4FGL_J2328.3-4036_daily_bin1641.fits sctable="SC_DATA" expcube=/scratch/kocevski/374083/ltcube_664675201_664934401_4FGL_J2328.3-4036_daily_bin1641.fits outfile=/scratch/kocevski/374083/expmap_664675201_664934401_4FGL_J2328.3-4036_daily_bin1641.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/374083/ltcube_664675201_664934401_4FGL_J2328.3-4036_daily_bin1641.fits
.....................!
real 192.96
user 187.62
sys 4.97

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/374083/ft1_filtered_4FGL_J2328.3-4036_daily_bin1641.fits scfile=/scratch/kocevski/374083/ft2_4FGL_J2328.3-4036_daily_bin1641.fits outfile=/scratch/kocevski/374083/cmap_664675201_664934401_4FGL_J2328.3-4036_daily_bin1641.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/374083/ft1_filtered_4FGL_J2328.3-4036_daily_bin1641.fits scfile=/scratch/kocevski/374083/ft2_4FGL_J2328.3-4036_daily_bin1641.fits outfile=/scratch/kocevski/374083/cmap_HighResolution_664675201_664934401_4FGL_J2328.3-4036_daily_bin1641.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/374083/ft1_filtered_4FGL_J2328.3-4036_daily_bin1641.fits evtable="EVENTS" scfile=/scratch/kocevski/374083/ft2_4FGL_J2328.3-4036_daily_bin1641.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/374083/Model_4FGL_J2328.3-4036_daily_bin1641.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/374083/ft1_filtered_4FGL_J2328.3-4036_daily_bin1641.fits.....................!
real 34.53
user 33.26
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/374083/ft1_filtered_4FGL_J2328.3-4036_daily_bin1641.fits', '/scratch/kocevski/374083/ft2_4FGL_J2328.3-4036_daily_bin1641.fits', expMap='/scratch/kocevski/374083/expmap_664675201_664934401_4FGL_J2328.3-4036_daily_bin1641.fits', expCube='/scratch/kocevski/374083/ltcube_664675201_664934401_4FGL_J2328.3-4036_daily_bin1641.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/374083/Model_4FGL_J2328.3-4036_daily_bin1641.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/374083/ft1_filtered_4FGL_J2328.3-4036_daily_bin1641.fits
Spacecraft file(s): /scratch/kocevski/374083/ft2_4FGL_J2328.3-4036_daily_bin1641.fits
Exposure map: /scratch/kocevski/374083/expmap_664675201_664934401_4FGL_J2328.3-4036_daily_bin1641.fits
Exposure cube: /scratch/kocevski/374083/ltcube_664675201_664934401_4FGL_J2328.3-4036_daily_bin1641.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/374083/Model_4FGL_J2328.3-4036_daily_bin1641.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) = 4022.98133467

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    139.67       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.273       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10893E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .62420E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    46.833       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.1673       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.790       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    18.932       1.0000         .10000E-03   10000.    
    19 'Prefactor '    22.756       1.0000         .10000E-03   10000.    
    20 'Prefactor '    39.572       1.0000         .10000E-03   10000.    
    21 'Prefactor '    121.96       1.0000         .10000E-03   10000.    
    22 'norm      '    3.8064       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.9768       1.0000         .10000E-03   10000.    
    25 'norm      '    5.1100       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    61.047       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .13499       1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.1728       1.0000         .10000E-03   10000.    
    31 'Prefactor '    58.881       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .93991       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .81696       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4022.954     FROM MIGRAD    STATUS=CONVERGED    889 CALLS     4595 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     139.78        91.544        .17391E-05    .11421E-03
   2  Prefactor     .10000E-03    14.346       -.12265E-05** at limit **
   3  Prefactor     14.241        55.802       -.86830E-07   -.21552E-04
   4  Prefactor     .10000E-03    73.931        .57278E-06** at limit **
   5  Prefactor     .10033E-03    7.8558       -.26878E-05** at limit **
   6  Prefactor     .10000E-03    2.8709       -.21745E-06** at limit **
   7  Prefactor     .10000E-03    17.964        .72358E-07** at limit **
   8  Prefactor     .10000E-03    19.739        .20209E-06** at limit **
   9  Prefactor     46.843        36.365        .93566E-06    .56880E-04
  10  Prefactor     3.1696        24.890        .26423E-05    .59271E-04
  11  Prefactor     .10000E-03    2.9417       -.63125E-07** at limit **
  12  Prefactor     25.775        36.022       -.84181E-08    .26491E-05
  13  Prefactor     .10000E-03    73.436       -.32315E-06** at limit **
  14  Prefactor     .10000E-03    12.274       -.28711E-06** at limit **
  15  norm          .10000E-03    6.0508       -.12190E-06** at limit **
  16  norm          .10000E-03    3.7213        .55778E-08** at limit **
  17  norm          .10000E-03    2.2612       -.43336E-07** at limit **
  18  norm          18.932        15.395        .26389E-06    .55614E-04
  19  Prefactor     22.760        10.582        .19167E-06    .31422E-04
  20  Prefactor     39.556        54.030        .17228E-05    .16564E-05
  21  Prefactor     122.01        89.699        .23019E-05    .55272E-04
  22  norm          3.8098        4.4196       -.44163E-07    .12856E-04
  23  Prefactor     .10000E-03    10.426       -.32418E-06** at limit **
  24  norm          1.9772        1.5216        .12610E-06    .24682E-03
  25  norm          5.1118        5.4698        .22428E-06    .13694E-03
  26  Prefactor     .10000E-03    1.4111       -.28274E-06** at limit **
  27  Prefactor     .10000E-03    8.5813       -.34900E-06** at limit **
  28  Prefactor     61.049        53.752        .10579E-06    .15305E-05
  29  Prefactor     .18708        11.741        .60596E-06   -.17446E-04
  30  Prefactor     1.1775        4.9604        .26223E-05    .42267E-03
  31  Prefactor     58.874        63.143        .11361E-05   -.40832E-05
  32  Normalizat    .93855        .28761       -.89617E-05    .99599E-04
  33  Prefactor     .81845        .26955        .79384E-05    .10575E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 139.779
  Prefactor  = 0.000100001
  Prefactor  = 14.2412
  Prefactor  = 0.000100001
  Prefactor  = 0.000100327
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 46.8433
  Prefactor  = 3.16962
  Prefactor  = 0.0001
  Prefactor  = 25.7747
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 18.9321
  Prefactor  = 22.7599
  Prefactor  = 39.5561
  Prefactor  = 122.01
  norm       = 3.80984
  Prefactor  = 0.0001
  norm       = 1.97715
  norm       = 5.11182
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 61.0486
  Prefactor  = 0.18708
  Prefactor  = 1.17747
  Prefactor  = 58.8741
  Normalizat = 0.938551
  Prefactor  = 0.818446
 **********
 **   18 **HESSE 
 **********

 FCN=   4022.954     FROM HESSE     STATUS=OK           693 CALLS     5288 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     139.78        91.929        .17043E-03   -1.3338    
   2  Prefactor     .10000E-03    14.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.241        55.877        .10602E-03   -1.4953    
   4  Prefactor     .10000E-03    74.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10033E-03    39.780        .27597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.9867        .20984E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    19.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     46.843        36.445        .58591E-04   -1.4338    
  10  Prefactor     3.1696        25.039        .22773E-03   -1.5352    
  11  Prefactor     .10000E-03    2.9460        .10623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     25.775        36.032        .78882E-04   -1.4692    
  13  Prefactor     .10000E-03    73.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    6.0571        .15239E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.7252        .11947E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.2624        .93100E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          18.932        15.389        .92052E-04   -1.4837    
  19  Prefactor     22.760        10.567        .83968E-04   -1.4753    
  20  Prefactor     39.556        53.900        .63718E-04   -1.4449    
  21  Prefactor     122.01        89.625        .18222E-03   -1.3494    
  22  norm          3.8098        4.3959        .12717E-03   -1.5318    
  23  Prefactor     .10000E-03    10.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.9772        1.5110        .63687E-04   -1.5427    
  25  norm          5.1118        5.4546        .14093E-03   -1.5256    
  26  Prefactor     .10000E-03    1.4206        .73665E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    8.5981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     61.049        53.756        .51354E-04   -1.4144    
  29  Prefactor     .18708        134.74        .37920E-02   -1.5621    
  30  Prefactor     1.1775        5.2132        .26417E-03   -1.5491    
  31  Prefactor     58.874        63.449        .52284E-04   -1.4172    
  32  Normalizat    .93855        .29973        .24473E-03   -.95118    
  33  Prefactor     .81845        .27695        .27819E-03   -.99052    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.02953e-08
Minuit parameter uncertainties:
  1  92.0234
  2  0.000213885
  3  56.0832
  4  0.000587072
  5  0.00721567
  6  1.36646e-05
  7  1.30483e-05
  8  5.77758e-05
  9  36.4627
  10  17.8274
  11  2.97598e-06
  12  36.0625
  13  0.000133455
  14  2.12031e-05
  15  1.25806e-05
  16  8.9849e-07
  17  3.0899e-06
  18  15.392
  19  10.5682
  20  53.9663
  21  89.7253
  22  4.39628
  23  4.65607e-05
  24  1.511
  25  5.45514
  26  1.3236e-05
  27  4.20823e-05
  28  53.7985
  29  10.0614
  30  4.95563
  31  63.5223
  32  0.300267
  33  0.277425
Done.

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

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  3.810e+00  4.396e+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:  8.184e-01  2.774e-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:  9.386e-01  3.003e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.34
Ra Dec: 352.082 -40.604
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 2.88e-08 +/- 3.32e-08
Energy Flux (Fixed Index): 1.01e-05 +/- 1.16e-05

TS (Fixed Index): 2.34
Ra Dec: 352.082 -40.604
Photon Flux Upper Limit: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.07e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/374083/likelihoodResults_664675201_664934401_4FGL_J2328.3-4036_daily_bin1641.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) = 4022.95397027
delta logL = 4.76783584418e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4022.95396377
delta logL = 5.41796998732e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8163       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3518       1.0000          .0000       5.0000    
     3 'Normalizat'    .93770       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81900       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=   4022.954     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      222 TOTAL
                     EDM=   .67E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8251        165.36        .51653E-02    .17317E-04
   2  alpha         2.3586        3.0701        .41243        .68686E-06
   3  Normalizat    .93739        .22224        .45382E-01    .26864E-05
   4  Prefactor     .81916        .10663        .62869E-01    .69406E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.82512
  alpha      = 2.3586
  Normalizat = 0.937389
  Prefactor  = 0.819155
 **********
 **   18 **HESSE 
 **********

 FCN=   4022.954     FROM HESSE     STATUS=OK            33 CALLS      255 TOTAL
                     EDM=   .17E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8251        4.1430        .12670E-03   -1.5317    
   2  alpha         2.3586        2.0110        .27929E-01   -.56590E-01
   3  Normalizat    .93739        .27339        .24486E-03   -.95159    
   4  Prefactor     .81916        .27635        .27807E-03   -.99026    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72228e-13
Minuit parameter uncertainties:
  1  4.14332
  2  2.33834
  3  0.273799
  4  0.276815
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/374083': 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) = 4022.95395887
delta logL = 5.9080288338e-05

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  3.825e+00  4.143e+00  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  2.359e+00  2.338e+00  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:  8.192e-01  2.768e-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:  9.374e-01  2.738e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.35
Ra Dec: 352.082 -40.604
Photon Index (Free Index): 2.36 +/- 2.34
Photon Flux (Free Index): 2.99e-08 +/- 1.00e-07
Energy Flux (Free Index): 1.01e-05 +/- 1.20e-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/374083/cmap_HighResolution_664675201_664934401_4FGL_J2328.3-4036_daily_bin1641.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.07e-05', comment='SUCCESS', photon_flux='2.88e-08', energy_flux2='1.01e-05', photon_flux_error='3.32e-08', dlogl='5.91e-05', energy_flux='1.01e-05', photon_flux2='2.99e-08', job_status='DONE', time_completed='2022-01-27 00:53:37.596647', photon_index_error2='2.34', photon_index2='2.36', ts='2.34', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='1.20e-05', EG='0.94', time_epoch_completed='1643273617.6', return_code='0', job_id='374083', GAL2='0.82', EG2='0.94', return_code2='0', energy_flux_error='1.16e-05', photon_flux_error2='1.00e-07', ts2='2.35', photon_index='2.33' WHERE bin_id='1641' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jan 27 00:53:37 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 374083: <4FGL_J2328.3-4036_daily_bin1641> in cluster <slac> Done

Job <4FGL_J2328.3-4036_daily_bin1641> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Jan 27 00:40:46 2022
Job was executed on host(s) <bullet0253>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jan 27 00:40:48 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jan 27 00:40:48 2022
Terminated at Thu Jan 27 00:53:38 2022
Results reported at Thu Jan 27 00:53:38 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1641 352.082 -40.6037 664675201 664934401 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 :                                   711.04 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             318.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   769 sec.
    Turnaround time :                            772 sec.

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

