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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1341
RA = 352.082, Dec = -40.6037
tmin = 586915201, tmax = 587174401
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='934375', job_status='RUN', time_executed='2021-09-29 20:40:39.203729', time_epoch_executed='1632973239.2' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1341'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934375

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934375/ft1_4FGL_J2328.3-4036_daily_bin1341.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934375/ft2_4FGL_J2328.3-4036_daily_bin1341.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934375/ft1_4FGL_J2328.3-4036_daily_bin1341.fits outfile=/scratch/kocevski/934375/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1341.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=586915201.0 tmax=587174401.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.65
user 3.42
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/934375/ft2_4FGL_J2328.3-4036_daily_bin1341.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/934375/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1341.fits evtable="EVENTS" outfile="/scratch/kocevski/934375/ft1_filtered_4FGL_J2328.3-4036_daily_bin1341.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.48
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/934375/ft1_filtered_4FGL_J2328.3-4036_daily_bin1341.fits" evtable="EVENTS" scfile=/scratch/kocevski/934375/ft2_4FGL_J2328.3-4036_daily_bin1341.fits sctable="SC_DATA" outfile=/scratch/kocevski/934375/ltcube_586915201_587174401_4FGL_J2328.3-4036_daily_bin1341.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/934375/ft2_4FGL_J2328.3-4036_daily_bin1341.fits
.....................!
real 12.07
user 11.70
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934375/ft1_filtered_4FGL_J2328.3-4036_daily_bin1341.fits evtable="EVENTS" scfile=/scratch/kocevski/934375/ft2_4FGL_J2328.3-4036_daily_bin1341.fits sctable="SC_DATA" expcube=/scratch/kocevski/934375/ltcube_586915201_587174401_4FGL_J2328.3-4036_daily_bin1341.fits outfile=/scratch/kocevski/934375/expmap_586915201_587174401_4FGL_J2328.3-4036_daily_bin1341.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/934375/ltcube_586915201_587174401_4FGL_J2328.3-4036_daily_bin1341.fits
.....................!
real 190.87
user 185.88
sys 4.67

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/934375/ft1_filtered_4FGL_J2328.3-4036_daily_bin1341.fits scfile=/scratch/kocevski/934375/ft2_4FGL_J2328.3-4036_daily_bin1341.fits outfile=/scratch/kocevski/934375/cmap_586915201_587174401_4FGL_J2328.3-4036_daily_bin1341.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.53
user 0.37
sys 0.14

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

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/934375/ft1_filtered_4FGL_J2328.3-4036_daily_bin1341.fits evtable="EVENTS" scfile=/scratch/kocevski/934375/ft2_4FGL_J2328.3-4036_daily_bin1341.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/934375/Model_4FGL_J2328.3-4036_daily_bin1341.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/934375/ft1_filtered_4FGL_J2328.3-4036_daily_bin1341.fits.....................!
real 36.25
user 34.99
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.9001       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    60.882       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.6456       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.126       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.781       1.0000         .10000E-03   10000.    
    10 'Prefactor '    37.386       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    67.225       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.3665       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    87.330       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.1764       1.0000         .10000E-03   10000.    
    23 'Prefactor '    34.693       1.0000         .10000E-03   10000.    
    24 'norm      '    1.7879       1.0000         .10000E-03   10000.    
    25 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.2699       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .14955E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    9.6448       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.3849       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .51813       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=   4088.795     FROM MIGRAD    STATUS=CONVERGED    876 CALLS     4670 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.8949        66.138       -.33005E-05   -.36092E-04
   2  Prefactor     .10000E-03    10.294       -.93332E-06** at limit **
   3  Prefactor     60.876        60.213       -.20069E-05   -.83996E-04
   4  Prefactor     .10000E-03    8.1412       -.13296E-05** at limit **
   5  Prefactor     .10000E-03    2.6623        .11958E-07** at limit **
   6  Prefactor     7.6455        6.3149        .10569E-05   -.86408E-03
   7  Prefactor     .10000E-03    27.926       -.39223E-05** at limit **
   8  Prefactor     14.122        26.505       -.70469E-06   -.37666E-04
   9  Prefactor     11.787        29.885        .17140E-05    .42502E-04
  10  Prefactor     37.388        20.467        .72606E-07   -.14057E-04
  11  Prefactor     .10000E-03    8.8118        .19930E-05** at limit **
  12  Prefactor     67.227        69.044        .88367E-06    .26420E-04
  13  Prefactor     .10000E-03    23.887        .14428E-07** at limit **
  14  Prefactor     .10000E-03    28.962       -.38426E-05** at limit **
  15  norm          .10000E-03    6.9497        .20241E-06** at limit **
  16  norm          .10000E-03    2.6590        .89407E-08** at limit **
  17  norm          .10000E-03    4.2255       -.12951E-06** at limit **
  18  norm          4.3672        6.1776        .16154E-05   -.78481E-03
  19  Prefactor     .10000E-03    16.436       -.63510E-06** at limit **
  20  Prefactor     87.342        73.073        .11834E-05    .14087E-03
  21  Prefactor     .10000E-03    36.434        .57124E-05** at limit **
  22  norm          1.1763        8.4548        .30402E-06   -.28346E-03
  23  Prefactor     34.692        24.559        .17464E-06    .77501E-04
  24  norm          1.7877        1.5853        .56244E-07    .21012E-03
  25  norm          .10000E-03    3.1414        .25109E-07** at limit **
  26  Prefactor     2.2691        4.1303       -.24385E-06   -.20013E-03
  27  Prefactor     .10000E-03    106.60       -.22378E-05** at limit **
  28  Prefactor     .10000E-03    23.010        .10607E-05** at limit **
  29  Prefactor     9.6444        8.4253        .71325E-06   -.39539E-03
  30  Prefactor     .10000E-03    1.8594        .22559E-07** at limit **
  31  Prefactor     .10000E-03    21.229        .27765E-05** at limit **
  32  Normalizat    1.3850        .24121       -.98904E-06    .55772E-04
  33  Prefactor     .51809        .24006       -.11785E-06   -.22625E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.89488
  Prefactor  = 0.0001
  Prefactor  = 60.8758
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.64554
  Prefactor  = 0.000100002
  Prefactor  = 14.1224
  Prefactor  = 11.7875
  Prefactor  = 37.3883
  Prefactor  = 0.0001
  Prefactor  = 67.2267
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.36718
  Prefactor  = 0.0001
  Prefactor  = 87.3419
  Prefactor  = 0.000100004
  norm       = 1.17631
  Prefactor  = 34.692
  norm       = 1.78768
  norm       = 0.0001
  Prefactor  = 2.26911
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.64443
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.38496
  Prefactor  = 0.51809
 **********
 **   18 **HESSE 
 **********

 FCN=   4088.795     FROM HESSE     STATUS=OK           685 CALLS     5355 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.8949        66.856        .12735E-03   -1.5079    
   2  Prefactor     .10000E-03    10.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     60.876        60.570        .51423E-04   -1.4146    
   4  Prefactor     .10000E-03    8.1889        .17872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.6671        .10189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.6455        6.6233        .72515E-03   -1.5155    
   7  Prefactor     .10000E-03    28.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.122        26.530        .10657E-03   -1.4956    
   9  Prefactor     11.787        29.905        .11671E-03   -1.5021    
  10  Prefactor     37.388        20.494        .65548E-04   -1.4484    
  11  Prefactor     .10000E-03    8.9863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     67.227        69.117        .48952E-04   -1.4066    
  13  Prefactor     .10000E-03    23.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    29.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    6.9545        .16465E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.6595        .10183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.2319        .12817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.3672        6.5579        .96376E-03   -1.5290    
  19  Prefactor     .10000E-03    16.635        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     87.342        70.315        .42992E-04   -1.3836    
  21  Prefactor     .10000E-03    37.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.1763        7.7920        .27476E-03   -1.5491    
  23  Prefactor     34.692        24.460        .68036E-04   -1.4529    
  24  norm          1.7877        1.5656        .69182E-04   -1.5441    
  25  norm          .10000E-03    3.2146        .22103E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     2.2691        4.1032        .16670E-03   -1.5407    
  27  Prefactor     .10000E-03    109.34        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    23.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     9.6444        8.5800        .64518E-03   -1.5087    
  30  Prefactor     .10000E-03    1.8659        .85138E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    21.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.3850        .29003        .21639E-03   -.81065    
  33  Prefactor     .51809        .28128        .35081E-03   -1.1115    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33552e-09
Minuit parameter uncertainties:
  1  51.5235
  2  5.98594e-05
  3  60.6315
  4  8.82838e-05
  5  2.0014e-06
  6  6.62389
  7  0.000507876
  8  26.552
  9  29.9428
  10  20.4979
  11  0.000122503
  12  69.1993
  13  3.08409e-07
  14  0.000452865
  15  1.10998e-05
  16  5.04197e-07
  17  8.25502e-06
  18  6.55895
  19  5.44847e-05
  20  70.3819
  21  0.000816583
  22  6.05592
  23  24.4671
  24  1.56566
  25  6.43883e-06
  26  4.10371
  27  0.000215181
  28  0.000119965
  29  8.58108
  30  2.73196e-06
  31  0.000302351
  32  0.290374
  33  0.282037
Done.

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

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  1.176e+00  6.056e+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:  5.181e-01  2.820e-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.385e+00  2.904e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.07
Ra Dec: 352.082 -40.604
Photon Flux Upper Limit: 1.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.88e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/934375/likelihoodResults_586915201_587174401_4FGL_J2328.3-4036_daily_bin1341.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) = 4088.78911531
delta logL = 0.00602035818019

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4088.78901196
delta logL = 0.0061237081236

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1640       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5736       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3820       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .51975       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4088.789     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      271 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1587        5.1693        .24820E-03   -.11703E-04
   2  alpha         2.5697        2.0124        .41944E-01    .37160E-04
   3  Normalizat    1.3820        .26777        .21657E-03   -.93546E-05
   4  Prefactor     .51976        .27709        .35026E-03   -.18663E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.15866
  alpha      = 2.56971
  Normalizat = 1.38204
  Prefactor  = 0.519764
 **********
 **   18 **HESSE 
 **********

 FCN=   4088.789     FROM HESSE     STATUS=OK            25 CALLS      296 TOTAL
                     EDM=   .23E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1587        4.6242        .99280E-05   -1.5493    
   2  alpha         2.5697        1.9344        .83888E-02    .27888E-01
   3  Normalizat    1.3820        .26783        .43313E-04   -.81150    
   4  Prefactor     .51976        .27701        .14011E-04   -1.1108    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.25335e-12
Minuit parameter uncertainties:
  1  4.62558
  2  2.21227
  3  0.268102
  4  0.277735
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934375': 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) = 4088.78900876
delta logL = 0.00612691056131

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  1.159e+00  4.626e+00  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  2.570e+00  2.212e+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:  5.198e-01  2.777e-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.382e+00  2.681e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.07
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/934375/cmap_HighResolution_586915201_587174401_4FGL_J2328.3-4036_daily_bin1341.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.88e-05', job_status='DONE', photon_flux_upper_limit='1.11e-07', time_completed='2021-09-29 20:52:55.374742', job_id='934375', GAL2='0.52', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1632973975.37', return_code2='0', ts='0.07', comment='SUCCESS', return_code='0', GAL='0.52', dlogl='6.13e-03', ts2='0.08', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1341' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:52:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0005>
Subject: Job 934375: <4FGL_J2328.3-4036_daily_bin1341> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1341 352.082 -40.6037 586915201 587174401 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 :                                   730.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   756 sec.
    Turnaround time :                            757 sec.

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

