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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1349
RA = 352.082, Dec = -40.6037
tmin = 588988801, tmax = 589248001
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='934396', job_status='RUN', time_executed='2021-09-29 20:42:01.721630', time_epoch_executed='1632973321.72' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1349'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934396

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934396/ft1_4FGL_J2328.3-4036_daily_bin1349.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934396/ft2_4FGL_J2328.3-4036_daily_bin1349.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934396/ft1_4FGL_J2328.3-4036_daily_bin1349.fits outfile=/scratch/kocevski/934396/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1349.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=588988801.0 tmax=589248001.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.40
user 2.19
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/934396/ft1_filtered_4FGL_J2328.3-4036_daily_bin1349.fits" evtable="EVENTS" scfile=/scratch/kocevski/934396/ft2_4FGL_J2328.3-4036_daily_bin1349.fits sctable="SC_DATA" outfile=/scratch/kocevski/934396/ltcube_588988801_589248001_4FGL_J2328.3-4036_daily_bin1349.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/934396/ft2_4FGL_J2328.3-4036_daily_bin1349.fits
.....................!
real 9.53
user 9.21
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934396/ft1_filtered_4FGL_J2328.3-4036_daily_bin1349.fits evtable="EVENTS" scfile=/scratch/kocevski/934396/ft2_4FGL_J2328.3-4036_daily_bin1349.fits sctable="SC_DATA" expcube=/scratch/kocevski/934396/ltcube_588988801_589248001_4FGL_J2328.3-4036_daily_bin1349.fits outfile=/scratch/kocevski/934396/expmap_588988801_589248001_4FGL_J2328.3-4036_daily_bin1349.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/934396/ltcube_588988801_589248001_4FGL_J2328.3-4036_daily_bin1349.fits
.....................!
real 143.68
user 139.51
sys 3.92

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/934396/ft1_filtered_4FGL_J2328.3-4036_daily_bin1349.fits scfile=/scratch/kocevski/934396/ft2_4FGL_J2328.3-4036_daily_bin1349.fits outfile=/scratch/kocevski/934396/cmap_588988801_589248001_4FGL_J2328.3-4036_daily_bin1349.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.45
user 0.30
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/934396/ft1_filtered_4FGL_J2328.3-4036_daily_bin1349.fits scfile=/scratch/kocevski/934396/ft2_4FGL_J2328.3-4036_daily_bin1349.fits outfile=/scratch/kocevski/934396/cmap_HighResolution_588988801_589248001_4FGL_J2328.3-4036_daily_bin1349.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.45
user 0.30
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/934396/ft1_filtered_4FGL_J2328.3-4036_daily_bin1349.fits evtable="EVENTS" scfile=/scratch/kocevski/934396/ft2_4FGL_J2328.3-4036_daily_bin1349.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/934396/Model_4FGL_J2328.3-4036_daily_bin1349.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/934396/ft1_filtered_4FGL_J2328.3-4036_daily_bin1349.fits.........!
real 11.42
user 10.36
sys 1.03

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

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 107.532098097

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 104.755769851

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .54598E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .27929       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .15166       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .16284E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    51.990       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .34916       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.2335       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.9126       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.7771       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.2114       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.5905       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.0875       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.8222       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.3986       1.0000         .10000E-03   10000.    
    15 'norm      '    3.0127       1.0000         .10000E-03   10000.    
    16 'norm      '    .13165E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    .28261E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    4.9119       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.0480       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.9833       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.2247       1.0000         .10000E-03   10000.    
    22 'norm      '    2.1513       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.3859       1.0000         .10000E-03   10000.    
    24 'norm      '    .27350E-02   1.0000         .10000E-03   10000.    
    25 'norm      '    .63691E-01   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .68830       1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.3047       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .12150       1.0000         .10000E-03   10000.    
    30 'Prefactor '    47.573       1.0000         .10000E-03   10000.    
    31 'Prefactor '    1.5695       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .28281       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .16526E-06   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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   101.6225     FROM MIGRAD    STATUS=CONVERGED    587 CALLS      849 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    214.66        .92925E-02** at limit **
   2  Prefactor     .10000E-03    78.799        .10334E-01** at limit **
   3  Prefactor     .10000E-03    123.55        .97547E-02** at limit **
   4  Prefactor     .10000E-03    61.724        .91042E-02** at limit **
   5  Prefactor     48.860        27.277        .13906E-02   -.31588E-03
   6  Prefactor     .10000E-03    369.77        .10639E-01** at limit **
   7  Prefactor     .10639E-03    9654.7        .48960E-02** at limit **
   8  Prefactor     9.3816        2294.2        .33565E-02   -.61711E-04
   9  Prefactor     7.2517        2295.2        .41775E-02   -.15781E-03
  10  Prefactor     4.2114        1.0072         .0000         .0000    
  11  Prefactor    10000.0        .17689        .35186E-03    .17967E-03
  12  Prefactor     .50886E-02    .35476E-01   -.12317E-04    .41908E-03
  13  Prefactor     8.3045        1.1062        .42548E-06   -.19395E-03
  14  Prefactor    10000.0        .46739E-01    .10184E-05** at limit **
  15  norm         10000.0        .85431E-01   -.19669E-03** at limit **
  16  norm          .10000E-03    .20651       -.82003E-05** at limit **
  17  norm          .10001E-03    .20992       -.10485E-04** at limit **
  18  norm          .11901E-03    .51461E-01    .54839E-05** at limit **
  19  Prefactor     769.25        8.8764        .15801E-03    .11292E-02
  20  Prefactor     241.10        5.4417        .30469E-04   -.77168E-02
  21  Prefactor     .52670E-03    .40451E-01    .88929E-05** at limit **
  22  norm          .10040E-03    .12330       -.55820E-05** at limit **
  23  Prefactor     .10402E-03    .57788E-01    .23589E-04** at limit **
  24  norm          .10000E-03    .24816       -.55811E-05** at limit **
  25  norm          .10000E-03    .21793       -.23832E-06** at limit **
  26  Prefactor     .10000E-03    .20571        .18199E-05** at limit **
  27  Prefactor     .10000E-03    .36101       -.40536E-05** at limit **
  28  Prefactor     .10004E-03    .11416       -.55920E-05** at limit **
  29  Prefactor     .10000E-03    .23103        .35575E-05** at limit **
  30  Prefactor     .10001E-03    .52808E-02    .53842E-05** at limit **
  31  Prefactor     .10002E-03    .17995       -.41313E-05** at limit **
  32  Normalizat    .20405        .49087        .22985E-04   -.13440E-04
  33  Prefactor     .36582E-11    .25772       -.30553E-04** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.8596
  Prefactor  = 0.0001
  Prefactor  = 0.000106389
  Prefactor  = 9.38163
  Prefactor  = 7.25165
  Prefactor  = 4.21144
  Prefactor  = 9999.99
  Prefactor  = 0.00508856
  Prefactor  = 8.30454
  Prefactor  = 10000
  norm       = 10000
  norm       = 0.000100002
  norm       = 0.000100007
  norm       = 0.000119007
  Prefactor  = 769.249
  Prefactor  = 241.098
  Prefactor  = 0.000526698
  norm       = 0.000100405
  Prefactor  = 0.000104022
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100042
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.000100017
  Normalizat = 0.204048
  Prefactor  = 3.65818e-12
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   101.6225     FROM HESSE     STATUS=FAILED        29 CALLS      878 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    214.66        .92925E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    78.799        .10334E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    123.55        .97547E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    61.724        .91042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     48.860        27.277        .13906E-02   -1.4309    
   6  Prefactor     .10000E-03    369.77        .10639E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10639E-03    9654.7        .48960E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.3816        2294.2        .33565E-02   -1.5095    
   9  Prefactor     7.2517        2295.2        .41775E-02   -1.5169    
  10  Prefactor     539.79        535.52         .0000       -1.5298    
  11  Prefactor    10000.0        .17689        .35186E-03    1.5730    
  12  Prefactor     .50886E-02    .35476E-01   -.12317E-04   -1.5694    
  13  Prefactor     8.3045        1.1062        .42548E-06   -1.5132    
  14  Prefactor    10000.0        .46739E-01    .10184E-05    1.5712    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm         10000.0        .85431E-01   -.19669E-03    1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .20651       -.82003E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10001E-03    .20992       -.10485E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .11901E-03    .51461E-01    .54839E-05   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     769.25        8.8764        .15801E-03   -1.0087    
  20  Prefactor     241.10        5.4417        .30469E-04   -1.2590    
  21  Prefactor     .52670E-03    .40451E-01    .88929E-05   -1.5712    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10040E-03    .12330       -.55820E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10402E-03    .57788E-01    .23589E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .24816       -.55811E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    .21793       -.23832E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    .20571        .18199E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    .36101       -.40536E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10004E-03    .11416       -.55920E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    .23103        .35575E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10001E-03    .52808E-02    .53842E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10002E-03    .17995       -.41313E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .20405        .49087        .22985E-04   -1.8504    
  33  Prefactor     .36582E-11    .25772       -.30553E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 7.68992e-10
Minuit parameter uncertainties:
  1  8.88083e-05
  2  0.000382987
  3  2.00536e-05
  4  0.000119961
  5  27.2841
  6  6.1527e-05
  7  0.928499
  8  306.149
  9  269.189
  10  1.00723
  11  0.0943805
  12  0.0266064
  13  1.10621
  14  0.00929353
  15  0.00240646
  16  4.17073e-05
  17  7.63767e-05
  18  0.00197803
  19  8.87645
  20  5.44174
  21  0.00830909
  22  0.00044689
  23  0.000964216
  24  1.28549e-05
  25  1.13949e-05
  26  3.51296e-07
  27  2.19767e-05
  28  0.000138696
  29  7.74996e-06
  30  1.08782e-05
  31  0.000111884
  32  0.501879
  33  1.95033e-06
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 101.622482897

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  1.004e-04  4.469e-04  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:  3.658e-12  1.950e-06  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:  2.040e-01  5.019e-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: 1.68e-05 ph cm-2 s-1
Energy Flux Upper Limit: 5.87e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/934396/likelihoodResults_588988801_589248001_4FGL_J2328.3-4036_daily_bin1349.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) = 101.622493705
delta logL = -1.08072631519e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 101.622482984
delta logL = -8.67800764581e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10172E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.7919       1.0000          .0000       5.0000    
     3 'Normalizat'    .20406       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .12892E-10   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=   101.6225     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      263 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8203.5        .15928E-01** at limit **
   2  alpha         2.3481        3.7424        .50000        .14886E-09
   3  Normalizat    .20405        .61166E-01    .21771E-03   -.17654E-04
   4  Prefactor     .96034E-13    .13431E-01    .17742E-02** at limit **
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 2.34806
  Normalizat = 0.204046
  Prefactor  = 9.60343e-14
 **********
 **   18 **HESSE 
 **********

 FCN=   101.6225     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      292 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7812.3        .20719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3481        2.7223        .50000       -.60812E-01
   3  Normalizat    .20405        .16941        .43541E-04   -1.2911    
   4  Prefactor     .96034E-13    .10317        .35485E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.50672e-10
Minuit parameter uncertainties:
  1  0.0159219
  2  39981.7
  3  0.169837
  4  1.99215e-07
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934396': 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) = 101.622482897
delta logL = 4.65320226795e-10

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  1.000e-04  1.592e-02  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  2.348e+00  3.998e+04  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.603e-14  1.992e-07  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:  2.040e-01  1.698e-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/934396/cmap_HighResolution_588988801_589248001_4FGL_J2328.3-4036_daily_bin1349.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.87e-03', job_status='DONE', photon_flux_upper_limit='1.68e-05', time_completed='2021-09-29 20:46:38.119658', job_id='934396', GAL2='0.00', fit_tolerance='1e-08', EG2='0.20', EG='0.20', time_epoch_completed='1632973598.12', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.00', dlogl='4.65e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1349' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:46:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 934396: <4FGL_J2328.3-4036_daily_bin1349> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1349 352.082 -40.6037 588988801 589248001 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 :                                   248.44 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             264.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   378 sec.
    Turnaround time :                            379 sec.

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

