/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 63 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7419
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1117
RA = 352.082, Dec = -40.6037
tmin = 528854401, tmax = 529113601
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository Job = True

LAT data Source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='929684', job_status='RUN', time_executed='2021-09-29 20:36:34.989366', time_epoch_executed='1632972994.99' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1117'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/929684

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/929684/ft1_4FGL_J2328.3-4036_daily_bin1117.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/929684/ft2_4FGL_J2328.3-4036_daily_bin1117.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/929684/ft1_4FGL_J2328.3-4036_daily_bin1117.fits outfile=/scratch/kocevski/929684/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1117.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=528854401.0 tmax=529113601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.61
user 2.40
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/929684/ft2_4FGL_J2328.3-4036_daily_bin1117.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/929684/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1117.fits evtable="EVENTS" outfile="/scratch/kocevski/929684/ft1_filtered_4FGL_J2328.3-4036_daily_bin1117.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/929684/ft1_filtered_4FGL_J2328.3-4036_daily_bin1117.fits" evtable="EVENTS" scfile=/scratch/kocevski/929684/ft2_4FGL_J2328.3-4036_daily_bin1117.fits sctable="SC_DATA" outfile=/scratch/kocevski/929684/ltcube_528854401_529113601_4FGL_J2328.3-4036_daily_bin1117.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Working on file /scratch/kocevski/929684/ft2_4FGL_J2328.3-4036_daily_bin1117.fits
.....................!
real 8.78
user 8.47
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/929684/ft1_filtered_4FGL_J2328.3-4036_daily_bin1117.fits evtable="EVENTS" scfile=/scratch/kocevski/929684/ft2_4FGL_J2328.3-4036_daily_bin1117.fits sctable="SC_DATA" expcube=/scratch/kocevski/929684/ltcube_528854401_529113601_4FGL_J2328.3-4036_daily_bin1117.fits outfile=/scratch/kocevski/929684/expmap_528854401_529113601_4FGL_J2328.3-4036_daily_bin1117.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/929684/ltcube_528854401_529113601_4FGL_J2328.3-4036_daily_bin1117.fits
.....................!
real 138.95
user 135.32
sys 3.39

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/929684/ft1_filtered_4FGL_J2328.3-4036_daily_bin1117.fits scfile=/scratch/kocevski/929684/ft2_4FGL_J2328.3-4036_daily_bin1117.fits outfile=/scratch/kocevski/929684/cmap_528854401_529113601_4FGL_J2328.3-4036_daily_bin1117.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=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.44
user 0.30
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/929684/ft1_filtered_4FGL_J2328.3-4036_daily_bin1117.fits scfile=/scratch/kocevski/929684/ft2_4FGL_J2328.3-4036_daily_bin1117.fits outfile=/scratch/kocevski/929684/cmap_HighResolution_528854401_529113601_4FGL_J2328.3-4036_daily_bin1117.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=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.44
user 0.30
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/929684/ft1_filtered_4FGL_J2328.3-4036_daily_bin1117.fits evtable="EVENTS" scfile=/scratch/kocevski/929684/ft2_4FGL_J2328.3-4036_daily_bin1117.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/929684/Model_4FGL_J2328.3-4036_daily_bin1117.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/929684/ft1_filtered_4FGL_J2328.3-4036_daily_bin1117.fits.....................!
real 30.79
user 29.76
sys 0.97

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/929684/ft1_filtered_4FGL_J2328.3-4036_daily_bin1117.fits', '/scratch/kocevski/929684/ft2_4FGL_J2328.3-4036_daily_bin1117.fits', expMap='/scratch/kocevski/929684/expmap_528854401_529113601_4FGL_J2328.3-4036_daily_bin1117.fits', expCube='/scratch/kocevski/929684/ltcube_528854401_529113601_4FGL_J2328.3-4036_daily_bin1117.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/929684/Model_4FGL_J2328.3-4036_daily_bin1117.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/929684/ft1_filtered_4FGL_J2328.3-4036_daily_bin1117.fits
Spacecraft file(s): /scratch/kocevski/929684/ft2_4FGL_J2328.3-4036_daily_bin1117.fits
Exposure map: /scratch/kocevski/929684/expmap_528854401_529113601_4FGL_J2328.3-4036_daily_bin1117.fits
Exposure cube: /scratch/kocevski/929684/ltcube_528854401_529113601_4FGL_J2328.3-4036_daily_bin1117.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/929684/Model_4FGL_J2328.3-4036_daily_bin1117.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.567       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11196E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.830       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.8233       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .96869       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.9612       1.0000         .10000E-03   10000.    
    10 'Prefactor '    26.293       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.9212       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.3815       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.3369       1.0000         .10000E-03   10000.    
    15 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.5351       1.0000         .10000E-03   10000.    
    18 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.1711       1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.920       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .99578       1.0000         .10000E-03   10000.    
    25 'norm      '    2.6733       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .17992E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.8210       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .25939E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    5.0102       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10870E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .73173       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .93742       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=   5586.287     FROM MIGRAD    STATUS=CONVERGED    886 CALLS     4646 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.569        24.649        .66728E-08   -.36477E-05
   2  Prefactor     .10000E-03    21.043        .68107E-07** at limit **
   3  Prefactor     17.785        41.553        .61808E-05    .17667E-03
   4  Prefactor     .10000E-03    8.7983        .35911E-07** at limit **
   5  Prefactor     5.8232        4.8680        .49307E-07    .26871E-04
   6  Prefactor     .97093        3.4637        .26261E-06   -.19803E-04
   7  Prefactor     .10000E-03    53.106       -.24726E-07** at limit **
   8  Prefactor     .10000E-03    37.197       -.39384E-06** at limit **
   9  Prefactor     3.9502        34.550        .13285E-05    .14644E-04
  10  Prefactor     26.294        14.449        .88419E-07    .59186E-05
  11  Prefactor     3.9212        4.4551        .48299E-08   -.22650E-04
  12  Prefactor     2.3688        40.303        .83877E-06    .15655E-04
  13  Prefactor     .10000E-03    13.805       -.51612E-06** at limit **
  14  Prefactor     3.3384        12.077        .40091E-05    .45544E-03
  15  norm          .10000E-03    6.5332        .23229E-06** at limit **
  16  norm          .10000E-03    1.7294        .35729E-07** at limit **
  17  norm          2.5350        2.7594        .32689E-08   -.13266E-04
  18  norm          .10000E-03    5.0910       -.41530E-07** at limit **
  19  Prefactor     4.1707        4.1111       -.14946E-06    .12212E-03
  20  Prefactor     20.923        27.877       -.34279E-07   -.36618E-05
  21  Prefactor     .10000E-03    13.434       -.33485E-06** at limit **
  22  norm          .10000E-03    1.9301        .46211E-07** at limit **
  23  Prefactor     .10000E-03    7.9935       -.42211E-06** at limit **
  24  norm          .99547        1.0159        .69607E-07    .14215E-02
  25  norm          2.6732        2.9181        .69633E-07    .47323E-04
  26  Prefactor     .10007E-03    3.3971       -.19816E-05** at limit **
  27  Prefactor     2.8282        31.227       -.24229E-05    .13575E-03
  28  Prefactor     .10000E-03    120.04        .20859E-05** at limit **
  29  Prefactor     .10000E-03    3.3528        .29930E-07** at limit **
  30  Prefactor     5.0122        3.4251       -.14834E-06    .14059E-04
  31  Prefactor     .10000E-03    43.907       -.84258E-06** at limit **
  32  Normalizat    .73148        .15893        .43638E-08    .20996E-03
  33  Prefactor     .93769        .16892       -.67438E-06    .96251E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.5686
  Prefactor  = 0.0001
  Prefactor  = 17.7855
  Prefactor  = 0.0001
  Prefactor  = 5.8232
  Prefactor  = 0.970931
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.95015
  Prefactor  = 26.294
  Prefactor  = 3.9212
  Prefactor  = 2.36883
  Prefactor  = 0.0001
  Prefactor  = 3.33842
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.53504
  norm       = 0.0001
  Prefactor  = 4.17071
  Prefactor  = 20.9227
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.995471
  norm       = 2.67315
  Prefactor  = 0.000100074
  Prefactor  = 2.82819
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.0122
  Prefactor  = 0.0001
  Normalizat = 0.731484
  Prefactor  = 0.937688
 **********
 **   18 **HESSE 
 **********

 FCN=   5586.287     FROM HESSE     STATUS=OK           701 CALLS     5347 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.569        24.660        .79225E-04   -1.4696    
   2  Prefactor     .10000E-03    21.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.785        42.146        .94851E-04   -1.4864    
   4  Prefactor     .10000E-03    8.8046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.8232        4.8675        .14551E-03   -1.5225    
   6  Prefactor     .97093        4.9644        .23964E-02   -1.5511    
   7  Prefactor     .10000E-03    53.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    37.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.9502        34.389        .20267E-03   -1.5310    
  10  Prefactor     26.294        14.480        .78125E-04   -1.4682    
  11  Prefactor     3.9212        4.4405        .16170E-03   -1.5312    
  12  Prefactor     2.3688        40.418        .26544E-03   -1.5400    
  13  Prefactor     .10000E-03    13.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.3384        12.524        .11079E-02   -1.5343    
  15  norm          .10000E-03    6.6176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.7303        .95980E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.5350        2.7618        .12562E-03   -1.5390    
  18  norm          .10000E-03    5.1624        .16464E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.1707        4.0975        .14340E-03   -1.5299    
  20  Prefactor     20.923        27.753        .87571E-04   -1.4793    
  21  Prefactor     .10000E-03    13.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.9408        .10080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.0529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .99547        .97058        .69351E-03   -1.5508    
  25  norm          2.6732        2.9003        .12433E-03   -1.5381    
  26  Prefactor     .10007E-03    9.9543        .17558E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.8282        26.202        .24216E-03   -1.5372    
  28  Prefactor     .10000E-03    121.68        .21450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    3.4147        .13352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     5.0122        3.4257        .10864E-03   -1.5260    
  31  Prefactor     .10000E-03    44.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .73148        .19081        .22244E-03   -1.0266    
  33  Prefactor     .93769        .20261        .22729E-03   -.94836    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59332e-08
Minuit parameter uncertainties:
  1  24.6697
  2  9.39356e-05
  3  42.2169
  4  2.80773e-06
  5  4.86784
  6  4.39128
  7  5.36722e-05
  8  8.81848e-05
  9  23.328
  10  14.482
  11  4.44087
  12  19.5848
  13  3.82021e-05
  14  12.534
  15  1.3022e-05
  16  1.23831e-06
  17  2.76198
  18  2.35785e-06
  19  4.09777
  20  27.7697
  21  2.08844e-05
  22  4.23538e-06
  23  3.57747e-06
  24  0.9706
  25  2.90047
  26  0.00172221
  27  17.2266
  28  0.000488386
  29  5.61747e-06
  30  3.42586
  31  8.91704e-05
  32  0.190986
  33  0.202776
Done.

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

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  1.000e-04  4.235e-06  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:  9.377e-01  2.028e-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:  7.315e-01  1.910e-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: 5.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.82e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/929684/likelihoodResults_528854401_529113601_4FGL_J2328.3-4036_daily_bin1117.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5586.28899371
delta logL = -0.00245471784183

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5586.28653903
delta logL = -3.67826942238e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3409       1.0000          .0000       5.0000    
     3 'Normalizat'    .73150       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93771       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=   5586.287     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      238 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.4452        .33731E-01** at limit **
   2  alpha         2.7294        3.1397        .16503        .44089E-08
   3  Normalizat    .73148        .48258E-02    .22244E-03   -.39376E-03
   4  Prefactor     .93769        .55594E-02    .22729E-03   -.39820E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.72944
  Normalizat = 0.731482
  Prefactor  = 0.937689
 **********
 **   18 **HESSE 
 **********

 FCN=   5586.287     FROM HESSE     STATUS=OK            25 CALLS      263 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.0894        .16677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.7294        3.7376        .66012E-02    .91904E-01
   3  Normalizat    .73148        .17345        .44488E-04   -1.0266    
   4  Prefactor     .93769        .19981        .45458E-04   -.94836    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58318e-10
Minuit parameter uncertainties:
  1  4.86426e-07
  2  206.349
  3  0.173578
  4  0.199964
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/929684': 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) = 5586.28653726
delta logL = 1.72912950802e-06

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  1.000e-04  4.864e-07  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  2.729e+00  2.063e+02  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:  9.377e-01  2.000e-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:  7.315e-01  1.736e-01  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/929684/cmap_HighResolution_528854401_529113601_4FGL_J2328.3-4036_daily_bin1117.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.82e-05', job_status='DONE', photon_flux_upper_limit='5.21e-08', time_completed='2021-09-29 20:47:45.176355', job_id='929684', GAL2='0.94', fit_tolerance='1e-08', EG2='0.73', EG='0.73', time_epoch_completed='1632973665.18', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='1.73e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1117' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:47:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 929684: <4FGL_J2328.3-4036_daily_bin1117> in cluster <slac> Done

Job <4FGL_J2328.3-4036_daily_bin1117> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 20:35:22 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 20:35:23 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:23 2021
Terminated at Wed Sep 29 20:47:45 2021
Results reported at Wed Sep 29 20:47:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1117 352.082 -40.6037 528854401 529113601 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 :                                   665.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             287.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   742 sec.
    Turnaround time :                            743 sec.

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

