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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1650
RA = 352.082, Dec = -40.6037
tmin = 667008001, tmax = 667267201
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='323993', job_status='RUN', time_executed='2022-02-23 00:56:48.191853', time_epoch_executed='1645606608.19' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1650'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/323993

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/323993/ft1_4FGL_J2328.3-4036_daily_bin1650.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/323993/ft2_4FGL_J2328.3-4036_daily_bin1650.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/323993/ft1_4FGL_J2328.3-4036_daily_bin1650.fits outfile=/scratch/kocevski/323993/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1650.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=667008001.0 tmax=667267201.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.05
user 2.81
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/323993/ft1_filtered_4FGL_J2328.3-4036_daily_bin1650.fits" evtable="EVENTS" scfile=/scratch/kocevski/323993/ft2_4FGL_J2328.3-4036_daily_bin1650.fits sctable="SC_DATA" outfile=/scratch/kocevski/323993/ltcube_667008001_667267201_4FGL_J2328.3-4036_daily_bin1650.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/323993/ft2_4FGL_J2328.3-4036_daily_bin1650.fits
.....................!
real 15.55
user 15.16
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/323993/ft1_filtered_4FGL_J2328.3-4036_daily_bin1650.fits evtable="EVENTS" scfile=/scratch/kocevski/323993/ft2_4FGL_J2328.3-4036_daily_bin1650.fits sctable="SC_DATA" expcube=/scratch/kocevski/323993/ltcube_667008001_667267201_4FGL_J2328.3-4036_daily_bin1650.fits outfile=/scratch/kocevski/323993/expmap_667008001_667267201_4FGL_J2328.3-4036_daily_bin1650.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/323993/ltcube_667008001_667267201_4FGL_J2328.3-4036_daily_bin1650.fits
.....................!
real 192.66
user 187.55
sys 4.72

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/323993/ft1_filtered_4FGL_J2328.3-4036_daily_bin1650.fits scfile=/scratch/kocevski/323993/ft2_4FGL_J2328.3-4036_daily_bin1650.fits outfile=/scratch/kocevski/323993/cmap_667008001_667267201_4FGL_J2328.3-4036_daily_bin1650.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.55
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/323993/ft1_filtered_4FGL_J2328.3-4036_daily_bin1650.fits scfile=/scratch/kocevski/323993/ft2_4FGL_J2328.3-4036_daily_bin1650.fits outfile=/scratch/kocevski/323993/cmap_HighResolution_667008001_667267201_4FGL_J2328.3-4036_daily_bin1650.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/323993/ft1_filtered_4FGL_J2328.3-4036_daily_bin1650.fits evtable="EVENTS" scfile=/scratch/kocevski/323993/ft2_4FGL_J2328.3-4036_daily_bin1650.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/323993/Model_4FGL_J2328.3-4036_daily_bin1650.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/323993/ft1_filtered_4FGL_J2328.3-4036_daily_bin1650.fits.....................!
real 23.06
user 21.85
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    61.571       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.4994       1.0000         .10000E-03   10000.    
     3 'Prefactor '    40.343       1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.530       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .29849E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    94.315       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13097E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15983E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    91.407       1.0000         .10000E-03   10000.    
    13 'Prefactor '    431.35       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .19331       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.2666       1.0000         .10000E-03   10000.    
    20 'Prefactor '    61.891       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    41.452       1.0000         .10000E-03   10000.    
    24 'norm      '    1.7767       1.0000         .10000E-03   10000.    
    25 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.8073       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .31713E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.6276       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.5118       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .60929       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=   1806.781     FROM MIGRAD    STATUS=CONVERGED    910 CALLS     5474 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     61.547        66.727       -.35944E-06   -.85851E-05
   2  Prefactor     6.4981        35.894        .34887E-06    .74446E-05
   3  Prefactor     40.331        89.656        .49886E-06    .14932E-04
   4  Prefactor     21.501        40.634       -.23038E-05   -.17928E-03
   5  Prefactor     .10000E-03    10.717        .18597E-05** at limit **
   6  Prefactor     94.271        170.37       -.12998E-05    .11515E-04
   7  Prefactor     .10000E-03    702.84       -.30495E-05** at limit **
   8  Prefactor     .10001E-03    771.99       -.62693E-05** at limit **
   9  Prefactor     .10001E-03    243.94        .59897E-05** at limit **
  10  Prefactor     .10000E-03    166.78       -.30738E-05** at limit **
  11  Prefactor     .10000E-03    83.390        .14084E-05** at limit **
  12  Prefactor     91.394        124.17       -.34739E-06    .89706E-05
  13  Prefactor     431.34        316.68        .91739E-07    .34634E-05
  14  Prefactor     .19827        22.966       -.97237E-06    .61056E-04
  15  norm          .10000E-03    11.864        .28160E-07** at limit **
  16  norm          .10000E-03    5.1089        .92420E-08** at limit **
  17  norm          .10000E-03    5.7968        .46171E-07** at limit **
  18  norm          .10000E-03    8.3648        .56242E-07** at limit **
  19  Prefactor     9.2669        15.442       -.46234E-07    .13934E-04
  20  Prefactor     61.875        78.680       -.21233E-06   -.17783E-04
  21  Prefactor     .10000E-03    78.138        .68444E-06** at limit **
  22  norm          .10000E-03    28.290        .94026E-06** at limit **
  23  Prefactor     41.449        38.621        .23866E-06    .15168E-04
  24  norm          1.7766        1.6334        .29211E-07    .11752E-03
  25  norm          .10000E-03    4.4929        .12841E-06** at limit **
  26  Prefactor     .10000E-03    7.2563        .15106E-06** at limit **
  27  Prefactor     1.8070        194.73       -.11590E-04    .63451E-05
  28  Prefactor     .10000E-03    67.660       -.49249E-07** at limit **
  29  Prefactor     .10000E-03    41.333        .61280E-05** at limit **
  30  Prefactor     1.6272        5.9026       -.16905E-07    .23851E-04
  31  Prefactor     .10000E-03    45.218       -.31508E-08** at limit **
  32  Normalizat    1.5121        .37512       -.11136E-07   -.11059E-03
  33  Prefactor     .60901        .37749       -.34747E-06   -.59015E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 61.5469
  Prefactor  = 6.49807
  Prefactor  = 40.3305
  Prefactor  = 21.5015
  Prefactor  = 0.0001
  Prefactor  = 94.2708
  Prefactor  = 0.000100004
  Prefactor  = 0.000100013
  Prefactor  = 0.00010001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 91.3938
  Prefactor  = 431.336
  Prefactor  = 0.198272
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 9.26687
  Prefactor  = 61.8752
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 41.4488
  norm       = 1.77662
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.80702
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.6272
  Prefactor  = 0.0001
  Normalizat = 1.51208
  Prefactor  = 0.609006
 **********
 **   18 **HESSE 
 **********

 FCN=   1806.781     FROM HESSE     STATUS=OK           687 CALLS     6161 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     61.547        66.868        .25568E-03   -1.4137    
   2  Prefactor     6.4981        35.168        .15742E-03   -1.5198    
   3  Prefactor     40.331        89.750        .63108E-04   -1.4437    
   4  Prefactor     21.501        38.815        .86323E-04   -1.4780    
   5  Prefactor     .10000E-03    32.673        .24155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     94.271        169.72        .20692E-03   -1.3763    
   7  Prefactor     .10000E-03    700.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    764.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    237.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    164.81        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    83.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     91.394        124.12        .21016E-03   -1.3793    
  13  Prefactor     431.34        316.70        .98444E-04   -1.1524    
  14  Prefactor     .19827        369.37        .38143E-02   -1.5619    
  15  norm          .10000E-03    11.864        .14302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.1092        .93841E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.7979        .99955E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    8.3681        .12009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.2669        15.456        .13165E-03   -1.5099    
  20  Prefactor     61.875        78.103        .51005E-04   -1.4133    
  21  Prefactor     .10000E-03    78.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    28.793        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     41.449        38.634        .62261E-04   -1.4419    
  24  norm          1.7766        1.6367        .49505E-04   -1.5441    
  25  norm          .10000E-03    4.5075        .87960E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    7.4794        .22360E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.8070        196.28        .15542E-02   -1.5439    
  28  Prefactor     .10000E-03    67.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    41.440        .27561E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     1.6272        5.7908        .17852E-03   -1.5453    
  31  Prefactor     .10000E-03    45.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.5121        .42473        .22583E-03   -.77439    
  33  Prefactor     .60901        .43200        .36456E-03   -1.0721    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11692e-09
Minuit parameter uncertainties:
  1  66.9501
  2  30.2615
  3  90.0525
  4  38.8608
  5  1.7759e-05
  6  170.609
  7  0.00342588
  8  0.00643332
  9  0.00314014
  10  0.00151753
  11  0.000200236
  12  124.474
  13  317.996
  14  17.2185
  15  1.43848e-06
  16  7.79588e-07
  17  1.06064e-06
  18  2.27128e-06
  19  15.4627
  20  78.2325
  21  0.000157023
  22  8.25577e-05
  23  38.6571
  24  1.63674
  25  3.68264e-06
  26  7.8822e-05
  27  37.7923
  28  4.41032e-05
  29  0.0001678
  30  5.79275
  31  2.72781e-05
  32  0.42574
  33  0.434382
Done.

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

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  1.000e-04  8.256e-05  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  2.333e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
457         beta:  7.057e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
458           Eb:  7.709e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  6.090e-01  4.344e-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.512e+00  4.257e-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: 2.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.45e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/323993/likelihoodResults_667008001_667267201_4FGL_J2328.3-4036_daily_bin1650.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) = 1806.78134522
delta logL = -0.000165657299704

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1806.78118784
delta logL = -8.27885241961e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .18101E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4356       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5105       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61054       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=   1806.745     FROM MIGRAD    STATUS=CONVERGED    122 CALLS      291 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0857        231.03        .90712E-02    .21642E-03
   2  alpha         3.3357        3.3249        .41169        .69395E-05
   3  Normalizat    1.4827        .78239E-01    .51463E-01    .10423E-05
   4  Prefactor     .62163        .85328E-01    .81462E-01    .72121E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.08573
  alpha      = 3.3357
  Normalizat = 1.48273
  Prefactor  = 0.621628
 **********
 **   18 **HESSE 
 **********

 FCN=   1806.745     FROM HESSE     STATUS=OK            33 CALLS      324 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0857        9.2863        .15369E-03   -1.5500    
   2  alpha         3.3357        3.8709        .26001E-01    .34084    
   3  Normalizat    1.4827        .40934        .22752E-03   -.78265    
   4  Prefactor     .62163        .42743        .36079E-03   -1.0668    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4327e-10
Minuit parameter uncertainties:
  1  6.3516
  2  2.84614
  3  0.410255
  4  0.429692
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/323993': 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) = 1806.74463408
delta logL = 0.0365454805085

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  1.086e+00  6.352e+00  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  3.336e+00  2.846e+00  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:  6.216e-01  4.297e-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.483e+00  4.103e-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/323993/cmap_HighResolution_667008001_667267201_4FGL_J2328.3-4036_daily_bin1650.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.45e-05', job_status='DONE', photon_flux_upper_limit='2.13e-07', time_completed='2022-02-23 01:05:44.533011', job_id='323993', GAL2='0.62', fit_tolerance='1e-08', EG2='1.48', EG='1.51', time_epoch_completed='1645607144.53', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.61', dlogl='3.65e-02', ts2='0.08', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1650' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Feb 23 01:05:44 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 323993: <4FGL_J2328.3-4036_daily_bin1650> in cluster <slac> Done

Job <4FGL_J2328.3-4036_daily_bin1650> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Feb 23 00:55:16 2022
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Feb 23 00:56:11 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Feb 23 00:56:11 2022
Terminated at Wed Feb 23 01:05:45 2022
Results reported at Wed Feb 23 01:05:45 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1650 352.082 -40.6037 667008001 667267201 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 :                                   538.42 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             307.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   573 sec.
    Turnaround time :                            629 sec.

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

