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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1462
RA = 352.082, Dec = -40.6037
tmin = 618278401, tmax = 618537601
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='934690', job_status='RUN', time_executed='2021-09-29 20:40:56.887538', time_epoch_executed='1632973256.89' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1462'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934690

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934690/ft1_4FGL_J2328.3-4036_daily_bin1462.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934690/ft2_4FGL_J2328.3-4036_daily_bin1462.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934690/ft1_4FGL_J2328.3-4036_daily_bin1462.fits outfile=/scratch/kocevski/934690/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1462.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=618278401.0 tmax=618537601.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.75
user 3.51
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/934690/ft2_4FGL_J2328.3-4036_daily_bin1462.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/934690/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1462.fits evtable="EVENTS" outfile="/scratch/kocevski/934690/ft1_filtered_4FGL_J2328.3-4036_daily_bin1462.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.45
user 0.31
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/934690/ft1_filtered_4FGL_J2328.3-4036_daily_bin1462.fits" evtable="EVENTS" scfile=/scratch/kocevski/934690/ft2_4FGL_J2328.3-4036_daily_bin1462.fits sctable="SC_DATA" outfile=/scratch/kocevski/934690/ltcube_618278401_618537601_4FGL_J2328.3-4036_daily_bin1462.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/934690/ft2_4FGL_J2328.3-4036_daily_bin1462.fits
.....................!
real 11.71
user 11.34
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934690/ft1_filtered_4FGL_J2328.3-4036_daily_bin1462.fits evtable="EVENTS" scfile=/scratch/kocevski/934690/ft2_4FGL_J2328.3-4036_daily_bin1462.fits sctable="SC_DATA" expcube=/scratch/kocevski/934690/ltcube_618278401_618537601_4FGL_J2328.3-4036_daily_bin1462.fits outfile=/scratch/kocevski/934690/expmap_618278401_618537601_4FGL_J2328.3-4036_daily_bin1462.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/934690/ltcube_618278401_618537601_4FGL_J2328.3-4036_daily_bin1462.fits
.....................!
real 193.68
user 187.81
sys 5.50

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/934690/ft1_filtered_4FGL_J2328.3-4036_daily_bin1462.fits scfile=/scratch/kocevski/934690/ft2_4FGL_J2328.3-4036_daily_bin1462.fits outfile=/scratch/kocevski/934690/cmap_618278401_618537601_4FGL_J2328.3-4036_daily_bin1462.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/934690/ft1_filtered_4FGL_J2328.3-4036_daily_bin1462.fits scfile=/scratch/kocevski/934690/ft2_4FGL_J2328.3-4036_daily_bin1462.fits outfile=/scratch/kocevski/934690/cmap_HighResolution_618278401_618537601_4FGL_J2328.3-4036_daily_bin1462.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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/934690/ft1_filtered_4FGL_J2328.3-4036_daily_bin1462.fits evtable="EVENTS" scfile=/scratch/kocevski/934690/ft2_4FGL_J2328.3-4036_daily_bin1462.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/934690/Model_4FGL_J2328.3-4036_daily_bin1462.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/934690/ft1_filtered_4FGL_J2328.3-4036_daily_bin1462.fits.....................!
real 40.42
user 39.13
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10481E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.3302       1.0000         .10000E-03   10000.    
     3 'Prefactor '    88.192       1.0000         .10000E-03   10000.    
     4 'Prefactor '    45.985       1.0000         .10000E-03   10000.    
     5 'Prefactor '    32.336       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.4204       1.0000         .10000E-03   10000.    
     7 'Prefactor '    81.903       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.9586       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .16348E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.4182       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13463E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.907       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    18.521       1.0000         .10000E-03   10000.    
    16 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.0195       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.394       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .30864E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .14998E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.866       1.0000         .10000E-03   10000.    
    24 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.5845       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.9054       1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.3035       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10459E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .25197E-02   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0521       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.1407       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5040.434     FROM MIGRAD    STATUS=CONVERGED   1615 CALLS     5336 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    64.841        .18142E-02** at limit **
   2  Prefactor     7.3255        20.833        .14814E-03    .53872E-04
   3  Prefactor     88.236        74.418        .21392E-03   -.13013E-03
   4  Prefactor     46.012        44.488        .59126E-04   -.85871E-04
   5  Prefactor     32.323        14.699        .70465E-04   -.72763E-04
   6  Prefactor     5.4131        6.5842        .17260E-03    .39284E-03
   7  Prefactor     81.907        62.206        .44382E-04    .79101E-04
   8  Prefactor     7.9578        23.618        .14213E-03    .67751E-04
   9  Prefactor     .10000E-03    46.372        .18142E-02** at limit **
  10  Prefactor     9.4068        14.562        .13059E-03    .39699E-04
  11  Prefactor     .10000E-03    8.9636        .18142E-02** at limit **
  12  Prefactor     .10000E-03    31.757        .18142E-02** at limit **
  13  Prefactor     16.943        54.284        .97407E-04   -.49697E-04
  14  Prefactor     .10000E-03    7.1652        .18142E-02** at limit **
  15  norm          18.511        15.402        .93067E-04   -.53993E-04
  16  norm          .10000E-03    9.4188        .36285E-03** at limit **
  17  norm          .10000E-03    2.6815        .11329E-02** at limit **
  18  norm          5.0144        8.7604        .17949E-03    .55296E-04
  19  Prefactor     11.399        9.6653        .11868E-03   -.51938E-03
  20  Prefactor     .10001E-03    305.14        .78337E-02** at limit **
  21  Prefactor     .10000E-03    17.172        .18142E-02** at limit **
  22  norm          .10000E-03    1.9873        .97387E-03** at limit **
  23  Prefactor     12.867        16.629        .11167E-03   -.23964E-03
  24  norm          .10000E-03    2.4436        .13357E-02** at limit **
  25  norm          1.5855        4.2833        .23182E-03   -.19258E-03
  26  Prefactor     1.9050        4.2719        .20163E-03    .82412E-03
  27  Prefactor     5.3010        23.045        .87262E-03    .22841E-03
  28  Prefactor     .10001E-03    139.14        .18142E-02** at limit **
  29  Prefactor     .10000E-03    4.5737        .14764E-02** at limit **
  30  Prefactor     .10000E-03    1.5364        .85791E-03** at limit **
  31  Prefactor     .10007E-03    53.292        .15189    ** at limit **
  32  Normalizat    1.0525        .26131        .26168E-03   -.16266E-03
  33  Prefactor     1.1407        .28530        .27847E-03   -.50461E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 7.32552
  Prefactor  = 88.2356
  Prefactor  = 46.0115
  Prefactor  = 32.323
  Prefactor  = 5.41311
  Prefactor  = 81.9073
  Prefactor  = 7.95779
  Prefactor  = 0.0001
  Prefactor  = 9.40675
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.943
  Prefactor  = 0.0001
  norm       = 18.5107
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.01439
  Prefactor  = 11.3995
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.867
  norm       = 0.0001
  norm       = 1.58546
  Prefactor  = 1.90505
  Prefactor  = 5.30099
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100065
  Normalizat = 1.05246
  Prefactor  = 1.14071
 **********
 **   18 **HESSE 
 **********

 FCN=   5040.434     FROM HESSE     STATUS=OK           671 CALLS     6007 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    64.844        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.3255        20.832        .59257E-05   -1.5167    
   3  Prefactor     88.236        74.409        .42784E-04   -1.3827    
   4  Prefactor     46.012        44.491        .11825E-04   -1.4350    
   5  Prefactor     32.323        14.701        .28186E-05   -1.4570    
   6  Prefactor     5.4131        6.5833        .69039E-05   -1.5243    
   7  Prefactor     81.907        62.203        .88763E-05   -1.3895    
   8  Prefactor     7.9578        23.614        .56851E-05   -1.5144    
   9  Prefactor     .10000E-03    46.399        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.4068        14.561        .52234E-05   -1.5094    
  11  Prefactor     .10000E-03    8.9686        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    31.761        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     16.943        54.282        .19481E-04   -1.4884    
  14  Prefactor     .10000E-03    7.1660        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          18.511        15.402        .18613E-04   -1.4847    
  16  norm          .10000E-03    9.4193        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.6816        .22658E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.0144        8.7600        .71794E-05   -1.5260    
  19  Prefactor     11.399        9.6642        .47473E-05   -1.5033    
  20  Prefactor     .10001E-03    317.14        .31335E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    17.172        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.9874        .19477E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     12.867        16.630        .44670E-05   -1.4990    
  24  norm          .10000E-03    2.4600        .26713E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.5855        4.2785        .92729E-05   -1.5456    
  26  Prefactor     1.9050        4.2680        .80651E-05   -1.5432    
  27  Prefactor     5.3010        22.990        .34905E-04   -1.5247    
  28  Prefactor     .10001E-03    139.17        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    4.5745        .29528E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    1.5364        .17158E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10007E-03    53.258        .15195       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.0525        .26145        .10467E-04   -.91293    
  33  Prefactor     1.1407        .28564        .11139E-04   -.88176    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07241e-09
Minuit parameter uncertainties:
  1  0.000938191
  2  20.8529
  3  74.488
  4  44.5228
  5  14.7022
  6  6.58418
  7  62.2528
  8  23.642
  9  0.000192198
  10  14.5668
  11  4.54033e-05
  12  3.66097e-06
  13  54.4406
  14  5.22641e-06
  15  15.4054
  16  6.73307e-05
  17  7.69862e-06
  18  8.76223
  19  9.66555
  20  0.0043405
  21  8.52484e-06
  22  1.35072e-05
  23  16.6359
  24  5.69672e-05
  25  4.27936
  26  4.26868
  27  22.093
  28  0.00253028
  29  1.78283e-05
  30  1.85505e-05
  31  0.00372835
  32  0.261767
  33  0.286029
Done.

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

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  1.000e-04  1.351e-05  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:  1.141e+00  2.860e-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.052e+00  2.618e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/934690/likelihoodResults_618278401_618537601_4FGL_J2328.3-4036_daily_bin1462.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) = 5040.43621607
delta logL = -0.00236784661411

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5040.43384821
delta logL = 2.17114575207e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3233       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0525       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1407       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5040.434     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      240 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    49.083        .97741E-02** at limit **
   2  alpha         1.9624        3.4663        .50000        .58867E-07
   3  Normalizat    1.0525        .25316E-01    .26169E-03    .14302E-03
   4  Prefactor     1.1407        .28042E-01    .27847E-03    .14413E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.96244
  Normalizat = 1.05246
  Prefactor  = 1.1407
 **********
 **   18 **HESSE 
 **********

 FCN=   5040.434     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    351.86        .10126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9624        3.2742        .50000       -.21672    
   3  Normalizat    1.0525        .90365E-01    .10467E-04   -.91293    
   4  Prefactor     1.1407        .10009        .55694E-04   -.88176    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.82278e-08
Minuit parameter uncertainties:
  1  0.000642966
  2  1888.77
  3  0.090378
  4  0.10011
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934690': 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): 102
logL (Free Index) = 5040.43384639
delta logL = 1.83707925316e-06

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  1.000e-04  6.430e-04  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  1.962e+00  1.889e+03  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:  1.141e+00  1.001e-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.052e+00  9.038e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 352.082 -40.604

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/934690/cmap_HighResolution_618278401_618537601_4FGL_J2328.3-4036_daily_bin1462.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.32e-05', job_status='DONE', photon_flux_upper_limit='6.65e-08', time_completed='2021-09-29 20:55:29.340059', job_id='934690', GAL2='1.14', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1632974129.34', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='1.84e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1462' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:55:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0141>
Subject: Job 934690: <4FGL_J2328.3-4036_daily_bin1462> in cluster <slac> Done

Job <4FGL_J2328.3-4036_daily_bin1462> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 20:40:31 2021
Job was executed on host(s) <bullet0141>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 20:40:34 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:40:34 2021
Terminated at Wed Sep 29 20:55:29 2021
Results reported at Wed Sep 29 20:55:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1462 352.082 -40.6037 618278401 618537601 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 :                                   857.42 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             299.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   895 sec.
    Turnaround time :                            898 sec.

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

