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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1533
RA = 352.082, Dec = -40.6037
tmin = 636681601, tmax = 636940801
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='934877', job_status='RUN', time_executed='2021-09-29 20:41:45.187212', time_epoch_executed='1632973305.19' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1533'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934877

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934877/ft1_4FGL_J2328.3-4036_daily_bin1533.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934877/ft2_4FGL_J2328.3-4036_daily_bin1533.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934877/ft1_4FGL_J2328.3-4036_daily_bin1533.fits outfile=/scratch/kocevski/934877/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1533.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=636681601.0 tmax=636940801.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 5.19
user 4.90
sys 0.24

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/934877/ft1_filtered_4FGL_J2328.3-4036_daily_bin1533.fits" evtable="EVENTS" scfile=/scratch/kocevski/934877/ft2_4FGL_J2328.3-4036_daily_bin1533.fits sctable="SC_DATA" outfile=/scratch/kocevski/934877/ltcube_636681601_636940801_4FGL_J2328.3-4036_daily_bin1533.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/934877/ft2_4FGL_J2328.3-4036_daily_bin1533.fits
.....................!
real 11.74
user 11.40
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934877/ft1_filtered_4FGL_J2328.3-4036_daily_bin1533.fits evtable="EVENTS" scfile=/scratch/kocevski/934877/ft2_4FGL_J2328.3-4036_daily_bin1533.fits sctable="SC_DATA" expcube=/scratch/kocevski/934877/ltcube_636681601_636940801_4FGL_J2328.3-4036_daily_bin1533.fits outfile=/scratch/kocevski/934877/expmap_636681601_636940801_4FGL_J2328.3-4036_daily_bin1533.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/934877/ltcube_636681601_636940801_4FGL_J2328.3-4036_daily_bin1533.fits
.....................!
real 191.62
user 185.97
sys 5.33

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/934877/ft1_filtered_4FGL_J2328.3-4036_daily_bin1533.fits scfile=/scratch/kocevski/934877/ft2_4FGL_J2328.3-4036_daily_bin1533.fits outfile=/scratch/kocevski/934877/cmap_HighResolution_636681601_636940801_4FGL_J2328.3-4036_daily_bin1533.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.53
user 0.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/934877/ft1_filtered_4FGL_J2328.3-4036_daily_bin1533.fits evtable="EVENTS" scfile=/scratch/kocevski/934877/ft2_4FGL_J2328.3-4036_daily_bin1533.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/934877/Model_4FGL_J2328.3-4036_daily_bin1533.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/934877/ft1_filtered_4FGL_J2328.3-4036_daily_bin1533.fits.....................!
real 33.45
user 31.55
sys 1.35

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .28202E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .18828E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .33653E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12916E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.632       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .88134       1.0000         .10000E-03   10000.    
     7 'Prefactor '    42.543       1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.486       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11744E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    48.136       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10848E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.771       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .96234E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    32.851       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.6461       1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    15.698       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .23486E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .17501E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    36.105       1.0000         .10000E-03   10000.    
    22 'norm      '    .88012E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11599E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    12.663       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.1038       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .11857E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    2.0419       1.0000         .10000E-03   10000.    
    31 'Prefactor '    42.267       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.2857       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .56104       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=   3703.216     FROM MIGRAD    STATUS=CONVERGED    962 CALLS     4075 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.688       -.14050E-04** at limit **
   2  Prefactor     .10000E-03    17.167       -.56128E-05** at limit **
   3  Prefactor     .10000E-03    23.405        .20950E-04** at limit **
   4  Prefactor     .10000E-03    21.660       -.60136E-05** at limit **
   5  Prefactor     11.715        11.062       -.19275E-05    .22005E-04
   6  Prefactor     .90003        5.2151       -.20355E-05   -.39538E-03
   7  Prefactor     42.683        50.565        .21415E-05   -.37920E-04
   8  Prefactor     27.987        29.832        .31899E-04   -.32386E-04
   9  Prefactor     .10000E-03    17.983        .90472E-05** at limit **
  10  Prefactor     48.344        26.462       -.23810E-04   -.49292E-04
  11  Prefactor     .10000E-03    24.299        .19444E-04** at limit **
  12  Prefactor     15.468        40.958        .30991E-04   -.11201E-05
  13  Prefactor     .10000E-03    30.909        .11248E-04** at limit **
  14  Prefactor     32.964        22.978        .81541E-06   -.73434E-04
  15  norm          .10000E-03    5.4619        .11064E-06** at limit **
  16  norm          4.5944        9.4782       -.21850E-05   -.21586E-03
  17  norm          .10000E-03    2.5998        .46371E-07** at limit **
  18  norm          15.765        13.499       -.15114E-05   -.12596E-03
  19  Prefactor     .10000E-03    5.9617        .22371E-06** at limit **
  20  Prefactor     .10000E-03    61.147       -.36599E-05** at limit **
  21  Prefactor     36.683        59.024        .18348E-04   -.34991E-05
  22  norm          .10187E-03    3.1907        .15891E-05** at limit **
  23  Prefactor     .10000E-03    4.7616        .12427E-06** at limit **
  24  norm          .10000E-03    .84964        .12376E-06** at limit **
  25  norm          12.668        6.9397       -.66703E-07   -.63843E-03
  26  Prefactor     .10000E-03    1.3297        .24648E-07** at limit **
  27  Prefactor     5.3582        19.463        .59552E-05   -.54351E-04
  28  Prefactor     .10000E-03    26.188       -.19834E-04** at limit **
  29  Prefactor     .10000E-03    3.5648       -.31077E-06** at limit **
  30  Prefactor     2.0434        3.6003       -.69967E-07   -.24499E-03
  31  Prefactor     43.380        58.376        .18067E-04    .10034E-04
  32  Normalizat    1.2841        .23970        .98990E-06   -.45306E-03
  33  Prefactor     .56129        .24697       -.50485E-05   -.24442E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.7145
  Prefactor  = 0.900026
  Prefactor  = 42.6833
  Prefactor  = 27.9867
  Prefactor  = 0.0001
  Prefactor  = 48.3437
  Prefactor  = 0.000100001
  Prefactor  = 15.4683
  Prefactor  = 0.0001
  Prefactor  = 32.9642
  norm       = 0.0001
  norm       = 4.59443
  norm       = 0.0001
  norm       = 15.7645
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.6827
  norm       = 0.000101872
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 12.6676
  Prefactor  = 0.0001
  Prefactor  = 5.35818
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.04344
  Prefactor  = 43.3796
  Normalizat = 1.28413
  Prefactor  = 0.561295
 **********
 **   18 **HESSE 
 **********

 FCN=   3703.216     FROM HESSE     STATUS=OK           695 CALLS     4770 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.691        .21416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    17.228        .20282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    23.412        .21341E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    21.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.715        11.143        .11746E-03   -1.5023    
   6  Prefactor     .90003        8.5532        .25153E-02   -1.5518    
   7  Prefactor     42.683        50.200        .61462E-04   -1.4400    
   8  Prefactor     27.987        29.821        .76414E-04   -1.4649    
   9  Prefactor     .10000E-03    18.007        .20653E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     48.344        26.540        .57796E-04   -1.4316    
  11  Prefactor     .10000E-03    25.235        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     15.468        40.964        .97801E-04   -1.4921    
  13  Prefactor     .10000E-03    30.929        .20787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     32.964        22.521        .69912E-04   -1.4559    
  15  norm          .10000E-03    5.4643        .13891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.5944        9.1402        .18672E-03   -1.5279    
  17  norm          .10000E-03    2.6026        .95808E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          15.765        13.482        .10109E-03   -1.4914    
  19  Prefactor     .10000E-03    6.0267        .14444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    61.673        .18220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     36.683        59.082        .66696E-04   -1.4496    
  22  norm          .10187E-03    68.453        .20352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.7657        .12968E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    5.9167        .10090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          12.668        6.7787        .11040E-03   -1.4996    
  26  Prefactor     .10000E-03    1.3355        .68459E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     5.3582        19.362        .17797E-03   -1.5245    
  28  Prefactor     .10000E-03    26.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    3.5771        .11219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     2.0434        3.5732        .14731E-03   -1.5422    
  31  Prefactor     43.380        58.446        .61661E-04   -1.4390    
  32  Normalizat    1.2841        .28835        .21462E-03   -.84041    
  33  Prefactor     .56129        .29173        .33081E-03   -1.0924    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.55258e-08
Minuit parameter uncertainties:
  1  1.15783e-05
  2  1.37142e-05
  3  6.6132e-06
  4  6.81009e-05
  5  11.1454
  6  5.54983
  7  50.2499
  8  29.8368
  9  0.000147617
  10  26.546
  11  0.000367586
  12  41.0383
  13  0.000100565
  14  22.5271
  15  9.68461e-07
  16  9.14293
  17  1.47112e-06
  18  13.4846
  19  5.07858e-05
  20  6.70291e-05
  21  59.1765
  22  0.0226679
  23  1.50528e-06
  24  5.41159e-05
  25  6.77909
  26  7.31061e-06
  27  19.3843
  28  4.02658e-05
  29  2.65282e-05
  30  3.57359
  31  58.5234
  32  0.288707
  33  0.292516
Done.

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

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  1.019e-04  2.267e-02  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:  5.613e-01  2.925e-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.284e+00  2.887e-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: 9.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.26e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/934877/likelihoodResults_636681601_636940801_4FGL_J2328.3-4036_daily_bin1533.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) = 3703.2162815
delta logL = -6.9485559834e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3703.21628068
delta logL = -6.86666335241e-05

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3703.216     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      235 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.7424        .62165E-01** at limit **
   2  alpha         2.2965        2.5867        .41269       -.25650E-06
   3  Normalizat    1.2841        .50346E-02    .48547E-01   -.29975E-04
   4  Prefactor     .56129        .53600E-02    .74717E-01   -.25691E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.29646
  Normalizat = 1.28413
  Prefactor  = 0.561293
 **********
 **   18 **HESSE 
 **********

 FCN=   3703.216     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      268 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6244.0        .21045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2965        3.2158        .16508       -.81507E-01
   3  Normalizat    1.2841        .35117E-01    .21462E-03   -.84041    
   4  Prefactor     .56129        .37319E-01    .33081E-03   -1.0924    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.50389e-08
Minuit parameter uncertainties:
  1  0.000943675
  2  1057.84
  3  0.0351179
  4  0.0373206
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934877': 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) = 3703.21621198
delta logL = 3.11797521135e-08

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  1.000e-04  9.437e-04  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  2.296e+00  1.058e+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:  5.613e-01  3.732e-02  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.284e+00  3.512e-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/934877/cmap_HighResolution_636681601_636940801_4FGL_J2328.3-4036_daily_bin1533.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.26e-05', job_status='DONE', photon_flux_upper_limit='9.33e-08', time_completed='2021-09-29 20:53:20.096013', job_id='934877', GAL2='0.56', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1632974000.1', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.56', dlogl='3.12e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1533' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:53:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 934877: <4FGL_J2328.3-4036_daily_bin1533> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1533 352.082 -40.6037 636681601 636940801 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 :                                   669.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             278.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   761 sec.
    Turnaround time :                            763 sec.

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

