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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1081
RA = 352.082, Dec = -40.6037
tmin = 519523201, tmax = 519782401
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='929572', job_status='RUN', time_executed='2021-09-29 20:37:26.869353', time_epoch_executed='1632973046.87' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1081'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/929572

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

Retrieving the FT1 file...

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

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

Retrieving 37 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/929572/ft1_4FGL_J2328.3-4036_daily_bin1081.fits


Retrieving the FT1 file...

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

Retrieving 37 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/929572/ft2_4FGL_J2328.3-4036_daily_bin1081.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/929572/ft1_4FGL_J2328.3-4036_daily_bin1081.fits outfile=/scratch/kocevski/929572/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1081.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=519523201.0 tmax=519782401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.93
user 2.69
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/929572/ft1_filtered_4FGL_J2328.3-4036_daily_bin1081.fits" evtable="EVENTS" scfile=/scratch/kocevski/929572/ft2_4FGL_J2328.3-4036_daily_bin1081.fits sctable="SC_DATA" outfile=/scratch/kocevski/929572/ltcube_519523201_519782401_4FGL_J2328.3-4036_daily_bin1081.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/929572/ft2_4FGL_J2328.3-4036_daily_bin1081.fits
.....................!
real 10.40
user 10.06
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/929572/ft1_filtered_4FGL_J2328.3-4036_daily_bin1081.fits evtable="EVENTS" scfile=/scratch/kocevski/929572/ft2_4FGL_J2328.3-4036_daily_bin1081.fits sctable="SC_DATA" expcube=/scratch/kocevski/929572/ltcube_519523201_519782401_4FGL_J2328.3-4036_daily_bin1081.fits outfile=/scratch/kocevski/929572/expmap_519523201_519782401_4FGL_J2328.3-4036_daily_bin1081.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/929572/ltcube_519523201_519782401_4FGL_J2328.3-4036_daily_bin1081.fits
.....................!
real 191.03
user 185.60
sys 5.12

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/929572/ft1_filtered_4FGL_J2328.3-4036_daily_bin1081.fits scfile=/scratch/kocevski/929572/ft2_4FGL_J2328.3-4036_daily_bin1081.fits outfile=/scratch/kocevski/929572/cmap_519523201_519782401_4FGL_J2328.3-4036_daily_bin1081.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/929572/ft1_filtered_4FGL_J2328.3-4036_daily_bin1081.fits scfile=/scratch/kocevski/929572/ft2_4FGL_J2328.3-4036_daily_bin1081.fits outfile=/scratch/kocevski/929572/cmap_HighResolution_519523201_519782401_4FGL_J2328.3-4036_daily_bin1081.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.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/929572/ft1_filtered_4FGL_J2328.3-4036_daily_bin1081.fits evtable="EVENTS" scfile=/scratch/kocevski/929572/ft2_4FGL_J2328.3-4036_daily_bin1081.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/929572/Model_4FGL_J2328.3-4036_daily_bin1081.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/929572/ft1_filtered_4FGL_J2328.3-4036_daily_bin1081.fits.....................!
real 34.76
user 33.48
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    30.553       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.8524       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.926       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10229E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.1891       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.3837       1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.546       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.7388       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.888       1.0000         .10000E-03   10000.    
    13 'Prefactor '    64.361       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    9.0049       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.6733       1.0000         .10000E-03   10000.    
    18 'norm      '    6.5716       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.0866       1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.833       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10042E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    .10735E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    17.178       1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10117E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.5391       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .91258       1.0000         .10000E-03   10000.    
    28 'Prefactor '    54.113       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10469E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .50109       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.2895       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=   4374.640     FROM MIGRAD    STATUS=CONVERGED    874 CALLS     4559 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.854       -.81839E-07** at limit **
   2  Prefactor     30.552        25.933        .70960E-06    .61407E-05
   3  Prefactor     3.8532        304.34        .20119E-05    .99314E-05
   4  Prefactor     11.928        16.015       -.15673E-06   -.13395E-04
   5  Prefactor     .10000E-03    7.5766        .27763E-07** at limit **
   6  Prefactor     .10000E-03    1.1236        .14254E-07** at limit **
   7  Prefactor     9.1993        61.738       -.27545E-05    .12798E-04
   8  Prefactor     2.3842        44.433       -.33665E-06    .11646E-05
   9  Prefactor     17.546        21.078        .41614E-07    .13675E-04
  10  Prefactor     5.7395        11.064       -.75560E-07    .53612E-05
  11  Prefactor     .10000E-03    2.3834        .74081E-08** at limit **
  12  Prefactor     10.888        19.401       -.22671E-07    .13161E-05
  13  Prefactor     64.369        51.198       -.85541E-06    .29089E-04
  14  Prefactor     .10000E-03    8.2325       -.40036E-06** at limit **
  15  norm          9.0063        11.681       -.94502E-07    .45924E-05
  16  norm          .10000E-03    2.0459        .16354E-07** at limit **
  17  norm          6.6738        4.7447        .12938E-06   -.11391E-04
  18  norm          6.5439        12.202       -.11053E-05    .18528E-04
  19  Prefactor     3.0871        6.2017        .29968E-05    .39567E-04
  20  Prefactor     20.864        32.756       -.37280E-05    .33843E-04
  21  Prefactor     .10000E-03    129.32        .36462E-05** at limit **
  22  norm          .10000E-03    3.0571        .13240E-05** at limit **
  23  Prefactor     17.178        15.530       -.14310E-05    .36224E-04
  24  norm          .10000E-03    .31190        .23393E-07** at limit **
  25  norm          .10000E-03    1.8745        .42781E-06** at limit **
  26  Prefactor     1.5307        5.1193       -.89442E-06    .99531E-04
  27  Prefactor     1.0082        28.618       -.22501E-05    .20355E-03
  28  Prefactor     54.111        52.256        .15215E-06   -.55411E-05
  29  Prefactor     .10000E-03    6.3162       -.43641E-06** at limit **
  30  Prefactor     .10000E-03    4.4732       -.53051E-06** at limit **
  31  Prefactor     .10000E-03    21.965        .27368E-06** at limit **
  32  Normalizat    .50069        .18853        .62870E-06    .31763E-04
  33  Prefactor     1.2897        .21204        .26962E-06    .41058E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 30.5523
  Prefactor  = 3.85324
  Prefactor  = 11.9281
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.19933
  Prefactor  = 2.38421
  Prefactor  = 17.5462
  Prefactor  = 5.73953
  Prefactor  = 0.0001
  Prefactor  = 10.8884
  Prefactor  = 64.369
  Prefactor  = 0.0001
  norm       = 9.00627
  norm       = 0.0001
  norm       = 6.67381
  norm       = 6.54389
  Prefactor  = 3.08715
  Prefactor  = 20.864
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 17.1783
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.53067
  Prefactor  = 1.00823
  Prefactor  = 54.1109
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.500692
  Prefactor  = 1.28967
 **********
 **   18 **HESSE 
 **********

 FCN=   4374.640     FROM HESSE     STATUS=OK           697 CALLS     5256 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     30.552        25.679        .72486E-04   -1.4602    
   3  Prefactor     3.8532        293.01        .20561E-03   -1.5315    
   4  Prefactor     11.928        15.996        .11600E-03   -1.5017    
   5  Prefactor     .10000E-03    7.7347        .35448E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.1279        .68459E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.1993        61.655        .13221E-03   -1.5101    
   8  Prefactor     2.3842        44.382        .26531E-03   -1.5399    
   9  Prefactor     17.546        21.036        .95616E-04   -1.4870    
  10  Prefactor     5.7395        11.051        .16767E-03   -1.5229    
  11  Prefactor     .10000E-03    2.3908        .99713E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.888        19.403        .12142E-03   -1.5048    
  13  Prefactor     64.369        51.143        .25011E-03   -1.4102    
  14  Prefactor     .10000E-03    8.2658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          9.0063        11.683        .13356E-03   -1.5108    
  16  norm          .10000E-03    2.0464        .92396E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.6738        4.7453        .11767E-03   -1.5191    
  18  norm          6.5439        12.176        .15654E-03   -1.5196    
  19  Prefactor     3.0871        6.2424        .98760E-03   -1.5357    
  20  Prefactor     20.864        32.823        .87753E-04   -1.4794    
  21  Prefactor     .10000E-03    131.35        .20760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    3.1765        .11398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     17.178        15.570        .96635E-04   -1.4879    
  24  norm          .10000E-03    .31488        .36024E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    1.8993        .88542E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.5307        5.2083        .21229E-03   -1.5461    
  27  Prefactor     1.0082        181.32        .51158E-02   -1.5507    
  28  Prefactor     54.111        52.252        .54527E-04   -1.4235    
  29  Prefactor     .10000E-03    6.4814        .32422E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    4.5949        .27256E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    21.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .50069        .22424        .27851E-03   -1.1238    
  33  Prefactor     1.2897        .25644        .21234E-03   -.83615    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.69121e-09
Minuit parameter uncertainties:
  1  1.28018e-06
  2  25.6885
  3  67.5474
  4  16.0014
  5  5.59637e-05
  6  5.23689e-07
  7  47.7022
  8  20.5907
  9  21.0447
  10  11.055
  11  6.21399e-07
  12  19.4141
  13  51.178
  14  7.38899e-06
  15  11.6861
  16  5.80125e-07
  17  4.74559
  18  12.1807
  19  6.24372
  20  32.8518
  21  0.000435547
  22  8.7774e-05
  23  15.5738
  24  5.00031e-07
  25  2.16592e-05
  26  5.20982
  27  27.1243
  28  52.2962
  29  2.25417e-05
  30  3.16062e-05
  31  4.11721e-05
  32  0.224648
  33  0.256692
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  1.290e+00  2.567e-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:  5.007e-01  2.246e-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: 7.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.47e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/929572/likelihoodResults_519523201_519782401_4FGL_J2328.3-4036_daily_bin1081.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) = 4374.6411421
delta logL = -0.00149776287708

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4374.28635984
delta logL = 0.353284491511

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .18192       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.4529       1.0000          .0000       5.0000    
     3 'Normalizat'    .45235       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3229       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=   4374.286     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      272 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .18140        5.6826        .77900E-02    .37203E-02
   2  alpha         4.4531        2.7726        .50000        .54018E-04
   3  Normalizat    .45270        .40102E-01    .65965E-01   -.91264E-04
   4  Prefactor     1.3227        .47238E-01    .47476E-01   -.39471E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.181405
  alpha      = 4.45309
  Normalizat = 0.452702
  Prefactor  = 1.32269
 **********
 **   18 **HESSE 
 **********

 FCN=   4374.286     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      305 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .18140        14.500        .35585E-03   -1.5623    
   2  alpha         4.4531        2.5447        .34622E-01    .89664    
   3  Normalizat    .45270        .15196        .29197E-03   -1.1466    
   4  Prefactor     1.3227        .17607        .20987E-03   -.82635    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.30734e-10
Minuit parameter uncertainties:
  1  3.24359
  2  9.71255
  3  0.152099
  4  0.176152
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/929572': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4374.28635693
delta logL = 0.353287403533

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  1.814e-01  3.244e+00  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  4.453e+00  9.713e+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:  1.323e+00  1.762e-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:  4.527e-01  1.521e-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/929572/cmap_HighResolution_519523201_519782401_4FGL_J2328.3-4036_daily_bin1081.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.47e-05', job_status='DONE', photon_flux_upper_limit='7.06e-08', time_completed='2021-09-29 20:50:02.951793', job_id='929572', GAL2='1.32', fit_tolerance='1e-08', EG2='0.45', EG='0.50', time_epoch_completed='1632973802.95', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.29', dlogl='3.53e-01', ts2='0.75', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1081' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:50:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 929572: <4FGL_J2328.3-4036_daily_bin1081> in cluster <slac> Done

Job <4FGL_J2328.3-4036_daily_bin1081> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 20:35:17 2021
Job was executed on host(s) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 20:35:18 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:18 2021
Terminated at Wed Sep 29 20:50:03 2021
Results reported at Wed Sep 29 20:50:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1081 352.082 -40.6037 519523201 519782401 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 :                                   736.06 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             284.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            886 sec.

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

