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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1575
RA = 352.082, Dec = -40.6037
tmin = 647568001, tmax = 647827201
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='934988', job_status='RUN', time_executed='2021-09-29 20:41:22.656079', time_epoch_executed='1632973282.66' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1575'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934988

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934988/ft1_4FGL_J2328.3-4036_daily_bin1575.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934988/ft2_4FGL_J2328.3-4036_daily_bin1575.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934988/ft1_4FGL_J2328.3-4036_daily_bin1575.fits outfile=/scratch/kocevski/934988/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1575.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=647568001.0 tmax=647827201.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.47
user 3.23
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/934988/ft1_filtered_4FGL_J2328.3-4036_daily_bin1575.fits" evtable="EVENTS" scfile=/scratch/kocevski/934988/ft2_4FGL_J2328.3-4036_daily_bin1575.fits sctable="SC_DATA" outfile=/scratch/kocevski/934988/ltcube_647568001_647827201_4FGL_J2328.3-4036_daily_bin1575.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/934988/ft2_4FGL_J2328.3-4036_daily_bin1575.fits
.....................!
real 11.75
user 11.42
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934988/ft1_filtered_4FGL_J2328.3-4036_daily_bin1575.fits evtable="EVENTS" scfile=/scratch/kocevski/934988/ft2_4FGL_J2328.3-4036_daily_bin1575.fits sctable="SC_DATA" expcube=/scratch/kocevski/934988/ltcube_647568001_647827201_4FGL_J2328.3-4036_daily_bin1575.fits outfile=/scratch/kocevski/934988/expmap_647568001_647827201_4FGL_J2328.3-4036_daily_bin1575.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/934988/ltcube_647568001_647827201_4FGL_J2328.3-4036_daily_bin1575.fits
.....................!
real 190.91
user 186.32
sys 4.26

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/934988/ft1_filtered_4FGL_J2328.3-4036_daily_bin1575.fits scfile=/scratch/kocevski/934988/ft2_4FGL_J2328.3-4036_daily_bin1575.fits outfile=/scratch/kocevski/934988/cmap_647568001_647827201_4FGL_J2328.3-4036_daily_bin1575.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/934988/ft1_filtered_4FGL_J2328.3-4036_daily_bin1575.fits scfile=/scratch/kocevski/934988/ft2_4FGL_J2328.3-4036_daily_bin1575.fits outfile=/scratch/kocevski/934988/cmap_HighResolution_647568001_647827201_4FGL_J2328.3-4036_daily_bin1575.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=352.082 yref=-40.6037 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/934988/ft1_filtered_4FGL_J2328.3-4036_daily_bin1575.fits evtable="EVENTS" scfile=/scratch/kocevski/934988/ft2_4FGL_J2328.3-4036_daily_bin1575.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/934988/Model_4FGL_J2328.3-4036_daily_bin1575.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/934988/ft1_filtered_4FGL_J2328.3-4036_daily_bin1575.fits.....................!
real 43.56
user 41.70
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10621E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.6994       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.8042       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    34.936       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .70525       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.2563       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10244E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.617       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    39.568       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.963       1.0000         .10000E-03   10000.    
    15 'norm      '    11.032       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.6715       1.0000         .10000E-03   10000.    
    18 'norm      '    9.1414       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.2910       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.625       1.0000         .10000E-03   10000.    
    22 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .11077E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10271E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .17695E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .96704       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .80260       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=   5866.592     FROM MIGRAD    STATUS=CONVERGED    912 CALLS     4633 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    35.756       -.64436E-06** at limit **
   2  Prefactor     3.7343        38.349        .83458E-05    .21877E-03
   3  Prefactor     8.6993        99.913       -.12017E-04    .77668E-06
   4  Prefactor     .10000E-03    17.546       -.38497E-06** at limit **
   5  Prefactor     34.937        9.3688        .23538E-07    .27303E-03
   6  Prefactor     .70552        4.6148        .20336E-05    .85150E-05
   7  Prefactor     5.2557        30.946       -.17902E-05   -.24004E-04
   8  Prefactor     .10000E-03    8.7055       -.69572E-07** at limit **
   9  Prefactor     .10000E-03    6.7888       -.54883E-08** at limit **
  10  Prefactor     20.618        11.874       -.17749E-06    .27595E-05
  11  Prefactor     .10000E-03    2.0153       -.22391E-08** at limit **
  12  Prefactor     39.560        37.160       -.84181E-07    .16746E-04
  13  Prefactor     .10000E-03    17.252       -.47143E-06** at limit **
  14  Prefactor     24.954        18.829        .49608E-06    .21944E-03
  15  norm          11.032        9.6491       -.62956E-07    .12288E-04
  16  norm          .10000E-03    1.8242        .21238E-07** at limit **
  17  norm          3.6703        3.7417       -.50260E-07   -.99269E-05
  18  norm          9.1403        7.3659       -.10625E-06    .14267E-04
  19  Prefactor     4.2913        5.0127        .15072E-06    .15229E-03
  20  Prefactor     .10000E-03    23.792        .30582E-06** at limit **
  21  Prefactor     15.565        40.449       -.66499E-07    .30676E-04
  22  norm          .10000E-03    1.7394        .50195E-07** at limit **
  23  Prefactor     .10000E-03    7.9492        .31528E-07** at limit **
  24  norm          .10000E-03    .41133        .15926E-06** at limit **
  25  norm          .10000E-03    1.9071        .11300E-06** at limit **
  26  Prefactor     .10000E-03    2.3905       -.18347E-05** at limit **
  27  Prefactor     .10000E-03    17.918       -.12594E-05** at limit **
  28  Prefactor     .10000E-03    23.893        .24779E-06** at limit **
  29  Prefactor     .10004E-03    2.4413        .37006E-06** at limit **
  30  Prefactor     .10001E-03    2.3092       -.13141E-05** at limit **
  31  Prefactor     .10000E-03    21.170        .87988E-06** at limit **
  32  Normalizat    .96734        .16784        .28152E-05    .47079E-03
  33  Prefactor     .80235        .17695       -.19669E-05    .47858E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.73426
  Prefactor  = 8.69934
  Prefactor  = 0.0001
  Prefactor  = 34.9372
  Prefactor  = 0.705517
  Prefactor  = 5.2557
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.6183
  Prefactor  = 0.0001
  Prefactor  = 39.5595
  Prefactor  = 0.0001
  Prefactor  = 24.9544
  norm       = 11.0319
  norm       = 0.0001
  norm       = 3.67025
  norm       = 9.14034
  Prefactor  = 4.2913
  Prefactor  = 0.0001
  Prefactor  = 15.5649
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100037
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Normalizat = 0.967336
  Prefactor  = 0.802354
 **********
 **   18 **HESSE 
 **********

 FCN=   5866.592     FROM HESSE     STATUS=OK           697 CALLS     5330 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    35.854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.7343        38.097        .20997E-03   -1.5321    
   3  Prefactor     8.6993        100.73        .13509E-03   -1.5118    
   4  Prefactor     .10000E-03    17.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     34.937        9.3836        .67800E-04   -1.4525    
   6  Prefactor     .70552        4.5985        .30229E-02   -1.5540    
   7  Prefactor     5.2557        30.758        .17532E-03   -1.5249    
   8  Prefactor     .10000E-03    8.7271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.7983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     20.618        11.873        .88211E-04   -1.4800    
  11  Prefactor     .10000E-03    2.0232        .10618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     39.560        37.157        .63721E-04   -1.4449    
  13  Prefactor     .10000E-03    17.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     24.954        18.580        .80175E-04   -1.4708    
  15  norm          11.032        9.6496        .12062E-03   -1.5044    
  16  norm          .10000E-03    1.8246        .10102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.6703        3.7349        .14534E-03   -1.5325    
  18  norm          9.1403        7.3617        .13256E-03   -1.5103    
  19  Prefactor     4.2913        4.9749        .17546E-03   -1.5294    
  20  Prefactor     .10000E-03    23.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     15.565        40.530        .10132E-03   -1.4919    
  22  norm          .10000E-03    1.7645        .98436E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.9725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .52639        .92790E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    3.9777        .20459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    3.7247        .21001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    17.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    23.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10004E-03    14.527        .22755E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10001E-03    14.662        .20333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    21.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .96734        .19279        .21348E-03   -.94133    
  33  Prefactor     .80235        .20611        .25956E-03   -.99642    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.50155e-09
Minuit parameter uncertainties:
  1  0.000137308
  2  23.8741
  3  59.331
  4  5.12667e-05
  5  9.384
  6  3.60254
  7  25.4484
  8  1.34648e-05
  9  8.24066e-06
  10  11.8742
  11  3.87395e-06
  12  37.1785
  13  5.75421e-05
  14  18.5846
  15  9.65098
  16  8.5664e-07
  17  3.73518
  18  7.36241
  19  4.97539
  20  1.67259e-05
  21  40.6016
  22  4.39868e-06
  23  1.25641e-05
  24  4.98408e-06
  25  7.21439e-05
  26  0.000257101
  27  1.94823e-05
  28  7.14147e-06
  29  0.00146227
  30  0.000804968
  31  5.95908e-05
  32  0.192926
  33  0.20631
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  8.024e-01  2.063e-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.673e-01  1.929e-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: 4.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.69e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/934988/likelihoodResults_647568001_647827201_4FGL_J2328.3-4036_daily_bin1575.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) = 5866.59454906
delta logL = -0.00269889006904

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5866.59185047
delta logL = -3.04404238705e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3266       1.0000          .0000       5.0000    
     3 'Normalizat'    .96748       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80223       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=   5866.592     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      241 TOTAL
                     EDM=   .20E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    12.029        .98592E-03** at limit **
   2  alpha         2.1484        3.6296        .16511        .43379E-08
   3  Normalizat    .96734        .18191        .21348E-03    .18532E-04
   4  Prefactor     .80235        .20425        .25956E-03    .21112E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.14841
  Normalizat = 0.967336
  Prefactor  = 0.802352
 **********
 **   18 **HESSE 
 **********

 FCN=   5866.592     FROM HESSE     STATUS=OK            27 CALLS      268 TOTAL
                     EDM=   .64E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.8120        .19718E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1484        2.7343        .66044E-01   -.14110    
   3  Normalizat    .96734        .18210        .85392E-05   -.94133    
   4  Prefactor     .80235        .20447        .10382E-04   -.99642    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.36966e-13
Minuit parameter uncertainties:
  1  5.94846e-07
  2  171.549
  3  0.182217
  4  0.204662
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934988': 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) = 5866.59184955
delta logL = 6.13056727161e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  8.024e-01  2.047e-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.673e-01  1.822e-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/934988/cmap_HighResolution_647568001_647827201_4FGL_J2328.3-4036_daily_bin1575.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.69e-05', job_status='DONE', photon_flux_upper_limit='4.84e-08', time_completed='2021-09-29 20:56:38.456726', job_id='934988', GAL2='0.80', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1632974198.46', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='6.13e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1575' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:56:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 934988: <4FGL_J2328.3-4036_daily_bin1575> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1575 352.082 -40.6037 647568001 647827201 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 :                                   911.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             317.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   952 sec.
    Turnaround time :                            957 sec.

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

