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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1096
RA = 352.082, Dec = -40.6037
tmin = 523411201, tmax = 523670401
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='929618', job_status='RUN', time_executed='2021-09-29 20:36:40.130257', time_epoch_executed='1632973000.13' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1096'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/929618

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/929618/ft1_4FGL_J2328.3-4036_daily_bin1096.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/929618/ft2_4FGL_J2328.3-4036_daily_bin1096.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/929618/ft1_4FGL_J2328.3-4036_daily_bin1096.fits outfile=/scratch/kocevski/929618/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1096.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=523411201.0 tmax=523670401.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.55
user 3.32
sys 0.20

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/929618/ft1_filtered_4FGL_J2328.3-4036_daily_bin1096.fits" evtable="EVENTS" scfile=/scratch/kocevski/929618/ft2_4FGL_J2328.3-4036_daily_bin1096.fits sctable="SC_DATA" outfile=/scratch/kocevski/929618/ltcube_523411201_523670401_4FGL_J2328.3-4036_daily_bin1096.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/929618/ft2_4FGL_J2328.3-4036_daily_bin1096.fits
.....................!
real 12.20
user 11.84
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/929618/ft1_filtered_4FGL_J2328.3-4036_daily_bin1096.fits evtable="EVENTS" scfile=/scratch/kocevski/929618/ft2_4FGL_J2328.3-4036_daily_bin1096.fits sctable="SC_DATA" expcube=/scratch/kocevski/929618/ltcube_523411201_523670401_4FGL_J2328.3-4036_daily_bin1096.fits outfile=/scratch/kocevski/929618/expmap_523411201_523670401_4FGL_J2328.3-4036_daily_bin1096.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/929618/ltcube_523411201_523670401_4FGL_J2328.3-4036_daily_bin1096.fits
.....................!
real 191.01
user 185.17
sys 5.35

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/929618/ft1_filtered_4FGL_J2328.3-4036_daily_bin1096.fits scfile=/scratch/kocevski/929618/ft2_4FGL_J2328.3-4036_daily_bin1096.fits outfile=/scratch/kocevski/929618/cmap_523411201_523670401_4FGL_J2328.3-4036_daily_bin1096.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/929618/ft1_filtered_4FGL_J2328.3-4036_daily_bin1096.fits scfile=/scratch/kocevski/929618/ft2_4FGL_J2328.3-4036_daily_bin1096.fits outfile=/scratch/kocevski/929618/cmap_HighResolution_523411201_523670401_4FGL_J2328.3-4036_daily_bin1096.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=352.082 yref=-40.6037 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/929618/ft1_filtered_4FGL_J2328.3-4036_daily_bin1096.fits evtable="EVENTS" scfile=/scratch/kocevski/929618/ft2_4FGL_J2328.3-4036_daily_bin1096.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/929618/Model_4FGL_J2328.3-4036_daily_bin1096.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/929618/ft1_filtered_4FGL_J2328.3-4036_daily_bin1096.fits.....................!
real 36.15
user 34.82
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.111       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.849       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.353       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    63.623       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10363E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    130.69       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .67447       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .92375       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    9.8852       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11639E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.9272       1.0000         .10000E-03   10000.    
    24 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    13.343       1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.6721       1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.3659       1.0000         .10000E-03   10000.    
    28 'Prefactor '    18.773       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0149       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .82698       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=   4250.689     FROM MIGRAD    STATUS=CONVERGED    852 CALLS     4610 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.057        .30701E-05** at limit **
   2  Prefactor     18.112        17.283        .35413E-06    .10486E-03
   3  Prefactor     .10000E-03    28.638        .12897E-04** at limit **
   4  Prefactor     15.846        23.849       -.42970E-05    .14400E-04
   5  Prefactor     .10000E-03    4.5873       -.50642E-07** at limit **
   6  Prefactor     16.354        7.4586       -.71858E-06    .11189E-03
   7  Prefactor     .10000E-03    21.135       -.14816E-05** at limit **
   8  Prefactor     63.621        37.633       -.16582E-05    .30329E-04
   9  Prefactor     .10000E-03    9.5773       -.88525E-06** at limit **
  10  Prefactor     .10000E-03    21.127       -.58396E-06** at limit **
  11  Prefactor     .10000E-03    2.4844       -.28961E-07** at limit **
  12  Prefactor     .10000E-03    19.215       -.46944E-05** at limit **
  13  Prefactor     130.60        93.568       -.74336E-04    .23801E-04
  14  Prefactor     .65382        13.857       -.47667E-05    .18816E-03
  15  norm          .10000E-03    8.3791        .32509E-06** at limit **
  16  norm          .92440        6.4437        .31685E-05   -.54361E-03
  17  norm          .10000E-03    1.7603       -.27830E-07** at limit **
  18  norm          9.8847        11.258       -.38489E-06    .28270E-04
  19  Prefactor     .10002E-03    7.6491       -.21922E-05** at limit **
  20  Prefactor     .10000E-03    13.992        .43352E-05** at limit **
  21  Prefactor     .10000E-03    36.928       -.67041E-05** at limit **
  22  norm          .10000E-03    1.7767       -.17296E-07** at limit **
  23  Prefactor     5.9399        13.567        .25800E-06    .64611E-03
  24  norm          .10000E-03    .36858        .76887E-07** at limit **
  25  norm          13.343        6.3508       -.75848E-06    .82048E-04
  26  Prefactor     7.6722        4.2813        .12870E-05    .90576E-03
  27  Prefactor     2.3504        76.523       -.51221E-04   -.36866E-04
  28  Prefactor     18.768        42.194       -.88455E-05    .56998E-05
  29  Prefactor     .10000E-03    1.6979       -.13111E-06** at limit **
  30  Prefactor     .10000E-03    3.3626       -.22711E-06** at limit **
  31  Prefactor     .10000E-03    15.088        .49349E-06** at limit **
  32  Normalizat    1.0148        .20915        .72745E-05    .47693E-03
  33  Prefactor     .82719        .22728        .55256E-05    .54262E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 18.1119
  Prefactor  = 0.0001
  Prefactor  = 15.8459
  Prefactor  = 0.0001
  Prefactor  = 16.3536
  Prefactor  = 0.0001
  Prefactor  = 63.6211
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 130.603
  Prefactor  = 0.653822
  norm       = 0.0001
  norm       = 0.924399
  norm       = 0.0001
  norm       = 9.88472
  Prefactor  = 0.000100017
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.93992
  norm       = 0.0001
  norm       = 13.3429
  Prefactor  = 7.6722
  Prefactor  = 2.35044
  Prefactor  = 18.7681
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.01483
  Prefactor  = 0.827189
 **********
 **   18 **HESSE 
 **********

 FCN=   4250.689     FROM HESSE     STATUS=OK           685 CALLS     5295 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     18.112        17.271        .94112E-04   -1.4857    
   3  Prefactor     .10000E-03    28.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.846        23.859        .10061E-03   -1.4912    
   5  Prefactor     .10000E-03    4.6103        .13619E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.354        7.4691        .99042E-04   -1.4899    
   7  Prefactor     .10000E-03    21.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     63.621        37.639        .50310E-04   -1.4111    
   9  Prefactor     .10000E-03    9.5827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    21.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.4874        .10036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    19.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     130.60        93.515        .17610E-03   -1.3417    
  14  Prefactor     .65382        69.147        .45647E-02   -1.5546    
  15  norm          .10000E-03    8.4002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .92440        6.2162        .31603E-03   -1.5516    
  17  norm          .10000E-03    1.7606        .84479E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          9.8847        11.258        .12745E-03   -1.5079    
  19  Prefactor     .10002E-03    18.941        .29447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    13.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    37.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.7803        .84807E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.9399        11.536        .16494E-03   -1.5220    
  24  norm          .10000E-03    .37310        .38566E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          13.343        6.3502        .10828E-03   -1.4977    
  26  Prefactor     7.6722        4.2490        .92993E-04   -1.5154    
  27  Prefactor     2.3504        76.055        .26641E-03   -1.5401    
  28  Prefactor     18.768        42.203        .92440E-04   -1.4841    
  29  Prefactor     .10000E-03    1.6997        .82964E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    3.4760        .23325E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    15.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.0148        .25348        .23077E-03   -.92535    
  33  Prefactor     .82719        .27480        .27850E-03   -.98734    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.80254e-09
Minuit parameter uncertainties:
  1  6.28873e-05
  2  17.2757
  3  4.19584e-05
  4  23.873
  5  2.01189e-05
  6  7.46949
  7  5.87078e-06
  8  37.6535
  9  3.03687e-05
  10  0.000249815
  11  2.79618e-06
  12  3.35652e-05
  13  93.6213
  14  13.4627
  15  3.10324e-05
  16  4.79472
  17  2.68718e-07
  18  11.2607
  19  0.00111863
  20  6.54523e-06
  21  9.09571e-05
  22  6.56789e-08
  23  11.54
  24  4.52087e-06
  25  6.3505
  26  4.24915
  27  26.777
  28  42.2701
  29  9.06648e-06
  30  3.00663e-05
  31  2.05573e-05
  32  0.253778
  33  0.275261
Done.

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

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  1.000e-04  6.568e-08  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.272e-01  2.753e-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.015e+00  2.538e-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/929618/likelihoodResults_523411201_523670401_4FGL_J2328.3-4036_daily_bin1096.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) = 4250.69144778
delta logL = -0.00264130310279

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4250.68880642
delta logL = 5.55510268896e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3231       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0148       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82720       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=   4250.689     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      234 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    110.78        .85122E-02** at limit **
   2  alpha         2.0398        3.4389        .16513        .89501E-08
   3  Normalizat    1.0148        .40068E-01    .23076E-03   -.58610E-03
   4  Prefactor     .82718        .44286E-01    .27850E-03   -.46114E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.0398
  Normalizat = 1.01483
  Prefactor  = 0.827183
 **********
 **   18 **HESSE 
 **********

 FCN=   4250.689     FROM HESSE     STATUS=OK            23 CALLS      257 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.8902        .87422E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0398        3.3722        .66052E-02   -.18514    
   3  Normalizat    1.0148        .24638        .46153E-04   -.92535    
   4  Prefactor     .82718        .27219        .55699E-04   -.98734    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.57706e-10
Minuit parameter uncertainties:
  1  1.17081e-06
  2  162.986
  3  0.246655
  4  0.272639
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/929618': 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) = 4250.68880487
delta logL = 1.60840590979e-06

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  1.000e-04  1.171e-06  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  2.040e+00  1.630e+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:  8.272e-01  2.726e-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.015e+00  2.467e-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/929618/cmap_HighResolution_523411201_523670401_4FGL_J2328.3-4036_daily_bin1096.png

Cleaning up...

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

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:49:00.574265', job_id='929618', GAL2='0.83', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1632973740.57', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='1.61e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1096' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:49:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 929618: <4FGL_J2328.3-4036_daily_bin1096> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1096 352.082 -40.6037 523411201 523670401 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 :                                   737.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             306.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            822 sec.

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

