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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1056
RA = 352.082, Dec = -40.6037
tmin = 513043201, tmax = 513302401
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='929497', job_status='RUN', time_executed='2021-09-29 20:38:48.896117', time_epoch_executed='1632973128.9' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1056'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/929497

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/929497/ft1_4FGL_J2328.3-4036_daily_bin1056.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/929497/ft2_4FGL_J2328.3-4036_daily_bin1056.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/929497/ft1_4FGL_J2328.3-4036_daily_bin1056.fits outfile=/scratch/kocevski/929497/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1056.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=513043201.0 tmax=513302401.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 6.32
user 6.09
sys 0.21

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/929497/ft1_filtered_4FGL_J2328.3-4036_daily_bin1056.fits" evtable="EVENTS" scfile=/scratch/kocevski/929497/ft2_4FGL_J2328.3-4036_daily_bin1056.fits sctable="SC_DATA" outfile=/scratch/kocevski/929497/ltcube_513043201_513302401_4FGL_J2328.3-4036_daily_bin1056.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/929497/ft2_4FGL_J2328.3-4036_daily_bin1056.fits
.....................!
real 12.07
user 11.67
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/929497/ft1_filtered_4FGL_J2328.3-4036_daily_bin1056.fits evtable="EVENTS" scfile=/scratch/kocevski/929497/ft2_4FGL_J2328.3-4036_daily_bin1056.fits sctable="SC_DATA" expcube=/scratch/kocevski/929497/ltcube_513043201_513302401_4FGL_J2328.3-4036_daily_bin1056.fits outfile=/scratch/kocevski/929497/expmap_513043201_513302401_4FGL_J2328.3-4036_daily_bin1056.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/929497/ltcube_513043201_513302401_4FGL_J2328.3-4036_daily_bin1056.fits
.....................!
real 190.38
user 185.06
sys 5.00

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/929497/ft1_filtered_4FGL_J2328.3-4036_daily_bin1056.fits scfile=/scratch/kocevski/929497/ft2_4FGL_J2328.3-4036_daily_bin1056.fits outfile=/scratch/kocevski/929497/cmap_513043201_513302401_4FGL_J2328.3-4036_daily_bin1056.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/929497/ft1_filtered_4FGL_J2328.3-4036_daily_bin1056.fits scfile=/scratch/kocevski/929497/ft2_4FGL_J2328.3-4036_daily_bin1056.fits outfile=/scratch/kocevski/929497/cmap_HighResolution_513043201_513302401_4FGL_J2328.3-4036_daily_bin1056.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/929497/ft1_filtered_4FGL_J2328.3-4036_daily_bin1056.fits evtable="EVENTS" scfile=/scratch/kocevski/929497/ft2_4FGL_J2328.3-4036_daily_bin1056.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/929497/Model_4FGL_J2328.3-4036_daily_bin1056.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/929497/ft1_filtered_4FGL_J2328.3-4036_daily_bin1056.fits.....................!
real 34.60
user 33.28
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10838E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12789E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    29.143       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.8233       1.0000         .10000E-03   10000.    
     9 'Prefactor '    46.405       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.6615       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.480       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10332E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.202       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .71439E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    9.5894       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .51111       1.0000         .10000E-03   10000.    
    25 'norm      '    .10907E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.4770       1.0000         .10000E-03   10000.    
    27 'Prefactor '    13.214       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    8.7646       1.0000         .10000E-03   10000.    
    31 'Prefactor '    20.083       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .96474       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0690       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=   4072.479     FROM MIGRAD    STATUS=CONVERGED    888 CALLS     4656 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    60.952       -.31939E-05** at limit **
   2  Prefactor     .10000E-03    68.762        .16696E-05** at limit **
   3  Prefactor     .10022E-03    190.66       -.23276E-04** at limit **
   4  Prefactor     29.147        36.617        .73623E-06    .67423E-05
   5  Prefactor     .10000E-03    14.261        .10488E-05** at limit **
   6  Prefactor     .10000E-03    3.0196        .87511E-07** at limit **
   7  Prefactor     .10000E-03    21.981        .49358E-06** at limit **
   8  Prefactor     3.8229        17.402        .60724E-05   -.29983E-03
   9  Prefactor     46.395        30.097       -.22662E-06   -.28093E-04
  10  Prefactor     3.6607        21.283        .88069E-05   -.33587E-03
  11  Prefactor     16.481        10.953        .16565E-06   -.16148E-04
  12  Prefactor     .10011E-03    134.50        .18450E-04** at limit **
  13  Prefactor     .10000E-03    22.565        .26771E-05** at limit **
  14  Prefactor     .10000E-03    9.7542       -.13146E-05** at limit **
  15  norm          .10000E-03    7.8349       -.10184E-05** at limit **
  16  norm          .10000E-03    8.9220        .17893E-05** at limit **
  17  norm          .10000E-03    3.3368        .22152E-08** at limit **
  18  norm          .10000E-03    4.4872        .26528E-07** at limit **
  19  Prefactor     12.202        8.0593        .10573E-06   -.10294E-03
  20  Prefactor     .10000E-03    228.35        .53690E-06** at limit **
  21  Prefactor     .10000E-03    46.813        .58095E-07** at limit **
  22  norm          9.5912        6.2646        .13343E-06   -.34461E-04
  23  Prefactor     .10000E-03    7.4895        .55024E-06** at limit **
  24  norm          .51085        .97896        .97445E-07   -.11056E-03
  25  norm          .10000E-03    3.1650        .10317E-06** at limit **
  26  Prefactor     3.4761        4.3383        .18385E-05   -.98549E-03
  27  Prefactor     13.211        24.706       -.11956E-05    .95989E-05
  28  Prefactor     .10000E-03    20.144       -.32261E-05** at limit **
  29  Prefactor     .10000E-03    3.5273        .11760E-07** at limit **
  30  Prefactor     8.7634        6.0581        .90083E-07   -.16806E-04
  31  Prefactor     20.079        51.438       -.31306E-06   -.30740E-04
  32  Normalizat    .96470        .22600       -.16475E-05   -.27144E-04
  33  Prefactor     1.0690        .24436       -.17996E-06   -.66102E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Prefactor  = 0.000100001
  Prefactor  = 0.000100216
  Prefactor  = 29.1473
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.82287
  Prefactor  = 46.3951
  Prefactor  = 3.6607
  Prefactor  = 16.4805
  Prefactor  = 0.000100109
  Prefactor  = 0.000100003
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 12.2022
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.5912
  Prefactor  = 0.0001
  norm       = 0.510848
  norm       = 0.0001
  Prefactor  = 3.47608
  Prefactor  = 13.2109
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 8.76336
  Prefactor  = 20.079
  Normalizat = 0.964698
  Prefactor  = 1.06903
 **********
 **   18 **HESSE 
 **********

 FCN=   4072.479     FROM HESSE     STATUS=OK           691 CALLS     5347 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    61.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    69.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10022E-03    205.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     29.147        36.551        .74215E-04   -1.4628    
   5  Prefactor     .10000E-03    14.482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.0601        .10826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    21.995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.8229        18.039        .10321E-02   -1.5317    
   9  Prefactor     46.395        30.091        .58859E-04   -1.4345    
  10  Prefactor     3.6607        22.865        .10555E-02   -1.5325    
  11  Prefactor     16.481        10.955        .98660E-04   -1.4896    
  12  Prefactor     .10011E-03    144.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    22.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.8306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    7.8950        .17477E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    9.1036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.3417        .11379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.5038        .13202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.202        8.0198        .11468E-03   -1.5009    
  20  Prefactor     .10000E-03    232.84        .41936E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    46.877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          9.5912        6.1687        .12091E-03   -1.5088    
  23  Prefactor     .10000E-03    7.5112        .17062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .51085        .84282        .83084E-03   -1.5565    
  25  norm          .10000E-03    5.9539        .21799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     3.4761        4.4212        .70653E-03   -1.5335    
  27  Prefactor     13.211        24.621        .11019E-03   -1.4981    
  28  Prefactor     .10000E-03    20.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    3.5473        .11700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     8.7634        6.0773        .12335E-03   -1.5116    
  31  Prefactor     20.079        51.485        .89375E-04   -1.4811    
  32  Normalizat    .96470        .27356        .24997E-03   -.94223    
  33  Prefactor     1.0690        .29593        .26693E-03   -.90463    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.85253e-09
Minuit parameter uncertainties:
  1  0.0010228
  2  0.000601929
  3  0.013369
  4  36.5795
  5  0.00013195
  6  4.94468e-06
  7  9.42046e-05
  8  16.6165
  9  30.1006
  10  18.308
  11  10.9567
  12  0.00794879
  13  0.000522641
  14  0.000170198
  15  0.000115614
  16  0.000204312
  17  2.68344e-07
  18  1.7238e-06
  19  8.0205
  20  0.000214124
  21  1.41839e-05
  22  6.16908
  23  6.02437e-05
  24  0.842839
  25  1.59561e-05
  26  4.42165
  27  24.6401
  28  0.000594925
  29  4.00626e-06
  30  6.07775
  31  51.5995
  32  0.273962
  33  0.296383
Done.

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

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  9.591e+00  6.169e+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

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  1.069e+00  2.964e-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:  9.647e-01  2.740e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.53
Ra Dec: 352.082 -40.604
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 7.25e-08 +/- 4.66e-08
Energy Flux (Fixed Index): 2.53e-05 +/- 1.63e-05

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) = 4072.47851365
delta logL = 0.000247689938988

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4072.47845492
delta logL = 0.000306421470668

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.6423       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3154       1.0000          .0000       5.0000    
     3 'Normalizat'    .96613       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0682       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=   4072.478     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      225 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.6510        154.76        .32263E-02    .81629E-04
   2  alpha         2.3164        3.1284        .32975        .21504E-04
   3  Normalizat    .96608        .14094        .45741E-01    .76900E-05
   4  Prefactor     1.0681        .11176        .60381E-01    .59945E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 9.65101
  alpha      = 2.31642
  Normalizat = 0.966079
  Prefactor  = 1.06805
 **********
 **   18 **HESSE 
 **********

 FCN=   4072.478     FROM HESSE     STATUS=OK            33 CALLS      258 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.6510        6.7248        .12166E-03   -1.5087    
   2  alpha         2.3164        .65496        .11862E-01   -.73500E-01
   3  Normalizat    .96608        .26733        .24981E-03   -.94176    
   4  Prefactor     1.0681        .29494        .26703E-03   -.90494    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.29702e-10
Minuit parameter uncertainties:
  1  6.72535
  2  0.662736
  3  0.267695
  4  0.295391
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/929497': 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) = 4072.4784513
delta logL = 0.00031004082939

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  9.651e+00  6.725e+00  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  2.316e+00  6.627e-01  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:  1.068e+00  2.954e-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:  9.661e-01  2.677e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.49
Ra Dec: 352.082 -40.604
Photon Index (Free Index): 2.32 +/- 0.66
Photon Flux (Free Index): 7.15e-08 +/- 6.04e-08
Energy Flux (Free Index): 2.54e-05 +/- 1.75e-05

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/929497/cmap_HighResolution_513043201_513302401_4FGL_J2328.3-4036_daily_bin1056.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.25e-08', energy_flux2='2.54e-05', photon_flux_error='4.66e-08', dlogl='3.10e-04', energy_flux='2.53e-05', photon_flux2='7.15e-08', job_status='DONE', time_completed='2021-09-29 20:49:50.630922', photon_index_error2='0.66', photon_index2='2.32', ts='4.53', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='1.75e-05', EG='0.96', time_epoch_completed='1632973790.63', return_code='0', job_id='929497', GAL2='1.07', EG2='0.97', return_code2='0', energy_flux_error='1.63e-05', photon_flux_error2='6.04e-08', ts2='4.49', photon_index='2.33' WHERE bin_id='1056' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:49:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 929497: <4FGL_J2328.3-4036_daily_bin1056> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1056 352.082 -40.6037 513043201 513302401 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 :                                   657.24 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             214.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            878 sec.

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

