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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1171
RA = 352.082, Dec = -40.6037
tmin = 542851201, tmax = 543110401
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='929851', job_status='RUN', time_executed='2021-09-29 20:36:14.549001', time_epoch_executed='1632972974.55' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1171'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/929851

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

Retrieving the FT1 file...

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

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

Retrieving 4 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/929851/ft1_4FGL_J2328.3-4036_daily_bin1171.fits


Retrieving the FT1 file...

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

Retrieving 4 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/929851/ft2_4FGL_J2328.3-4036_daily_bin1171.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/929851/ft1_4FGL_J2328.3-4036_daily_bin1171.fits outfile=/scratch/kocevski/929851/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1171.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=542851201.0 tmax=543110401.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 0.76
user 0.59
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/929851/ft1_filtered_4FGL_J2328.3-4036_daily_bin1171.fits" evtable="EVENTS" scfile=/scratch/kocevski/929851/ft2_4FGL_J2328.3-4036_daily_bin1171.fits sctable="SC_DATA" outfile=/scratch/kocevski/929851/ltcube_542851201_543110401_4FGL_J2328.3-4036_daily_bin1171.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/929851/ft2_4FGL_J2328.3-4036_daily_bin1171.fits
.....................!
real 1.85
user 1.51
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/929851/ft1_filtered_4FGL_J2328.3-4036_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/929851/ft2_4FGL_J2328.3-4036_daily_bin1171.fits sctable="SC_DATA" expcube=/scratch/kocevski/929851/ltcube_542851201_543110401_4FGL_J2328.3-4036_daily_bin1171.fits outfile=/scratch/kocevski/929851/expmap_542851201_543110401_4FGL_J2328.3-4036_daily_bin1171.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/929851/ltcube_542851201_543110401_4FGL_J2328.3-4036_daily_bin1171.fits
.....................!
real 192.72
user 186.44
sys 5.11

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/929851/ft1_filtered_4FGL_J2328.3-4036_daily_bin1171.fits scfile=/scratch/kocevski/929851/ft2_4FGL_J2328.3-4036_daily_bin1171.fits outfile=/scratch/kocevski/929851/cmap_542851201_543110401_4FGL_J2328.3-4036_daily_bin1171.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.51
user 0.36
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/929851/ft1_filtered_4FGL_J2328.3-4036_daily_bin1171.fits scfile=/scratch/kocevski/929851/ft2_4FGL_J2328.3-4036_daily_bin1171.fits outfile=/scratch/kocevski/929851/cmap_HighResolution_542851201_543110401_4FGL_J2328.3-4036_daily_bin1171.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.51
user 0.35
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/929851/ft1_filtered_4FGL_J2328.3-4036_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/929851/ft2_4FGL_J2328.3-4036_daily_bin1171.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/929851/Model_4FGL_J2328.3-4036_daily_bin1171.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/929851/ft1_filtered_4FGL_J2328.3-4036_daily_bin1171.fits...............!
real 14.71
user 12.83
sys 1.38

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    56.633       1.0000         .10000E-03   10000.    
    11 'Prefactor '    37.499       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10332E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10092E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    67.839       1.0000         .10000E-03   10000.    
    18 'norm      '    41.935       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    213.28       1.0000         .10000E-03   10000.    
    22 'norm      '    14.764       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    6.8370       1.0000         .10000E-03   10000.    
    25 'norm      '    .10087E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.3756       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .13485E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10234E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    19.832       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .10002E-01   1.0000         .10000E-01   10.000    
    33 'Prefactor '    .37883       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=   165.6205     FROM MIGRAD    STATUS=CONVERGED    857 CALLS     4477 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    139.92       -.15399E-06** at limit **
   2  Prefactor     .10000E-03    202.45        .97715E-06** at limit **
   3  Prefactor     .10000E-03    463.31        .20595E-06** at limit **
   4  Prefactor     .10000E-03    84.217        .89438E-07** at limit **
   5  Prefactor     .10000E-03    20.667       -.11754E-06** at limit **
   6  Prefactor     .10000E-03    9.2709        .77881E-09** at limit **
   7  Prefactor     .10000E-03    115.93       -.31582E-06** at limit **
   8  Prefactor     .10000E-03    59.950        .17483E-06** at limit **
   9  Prefactor     .10000E-03    49.907       -.16424E-06** at limit **
  10  Prefactor     56.647        63.181        .26151E-06    .49382E-04
  11  Prefactor     37.495        39.452        .10580E-07    .10340E-03
  12  Prefactor     .10000E-03    121.07       -.27729E-06** at limit **
  13  Prefactor     .10003E-03    805.42       -.45606E-05** at limit **
  14  Prefactor     .10000E-03    48.575        .10482E-06** at limit **
  15  norm          .10000E-03    78.164        .67387E-06** at limit **
  16  norm          .10000E-03    33.975        .65717E-07** at limit **
  17  norm          67.846        66.391       -.11437E-06    .12002E-03
  18  norm          41.880        79.803       -.58925E-06    .14318E-03
  19  Prefactor     .10000E-03    20.644        .24164E-06** at limit **
  20  Prefactor     .10000E-03    121.61       -.40939E-06** at limit **
  21  Prefactor     213.11        316.40        .16316E-05    .62560E-04
  22  norm          14.758        28.030        .40830E-06    .18733E-03
  23  Prefactor     .10000E-03    39.416        .28900E-06** at limit **
  24  norm          6.8228        16.031       -.35645E-05    .49296E-03
  25  norm          .10000E-03    16.935       -.88554E-07** at limit **
  26  Prefactor     4.4449        292.41        .22385E-04    .79534E-05
  27  Prefactor     .10000E-03    329.22        .24619E-05** at limit **
  28  Prefactor     .10000E-03    511.41       -.26837E-05** at limit **
  29  Prefactor     .10000E-03    15.176       -.19120E-06** at limit **
  30  Prefactor     19.800        29.223       -.13445E-06   -.10254E-04
  31  Prefactor     .10000E-03    141.50       -.32158E-06** at limit **
  32  Normalizat    .10000E-01    .49272       -.37020E-04** at limit **
  33  Prefactor     .37831        .33227        .88549E-05    .14014E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 56.6466
  Prefactor  = 37.495
  Prefactor  = 0.0001
  Prefactor  = 0.000100035
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 67.8459
  norm       = 41.8795
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 213.11
  norm       = 14.758
  Prefactor  = 0.0001
  norm       = 6.82282
  norm       = 0.0001
  Prefactor  = 4.44491
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.8002
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.378313
 **********
 **   18 **HESSE 
 **********

 FCN=   165.6205     FROM HESSE     STATUS=OK           667 CALLS     5144 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    139.93        .14924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    202.77        .17973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    463.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    84.225        .11568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    20.670        .57244E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.2708        .38330E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    115.98        .13582E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    59.969        .97568E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    49.920        .89004E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     56.647        63.197        .53306E-04   -1.4201    
  11  Prefactor     37.495        39.451        .65450E-04   -1.4483    
  12  Prefactor     .10000E-03    121.11        .13880E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10003E-03    813.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    48.600        .87814E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    78.138        .11139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    33.976        .73408E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          67.846        66.466        .48732E-04   -1.4059    
  18  norm          41.880        79.661        .61903E-04   -1.4413    
  19  Prefactor     .10000E-03    20.635        .57193E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    121.67        .13910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     213.11        317.26        .13843E-03   -1.2778    
  22  norm          14.758        28.054        .84292E-04   -1.4939    
  23  Prefactor     .10000E-03    39.414        .79069E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          6.8228        16.439        .33414E-04   -1.5185    
  25  norm          .10000E-03    16.938        .51791E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     4.4449        300.54        .17213E-03   -1.5286    
  27  Prefactor     .10000E-03    328.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    511.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    15.176        .49043E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     19.800        29.504        .67442E-04   -1.4818    
  31  Prefactor     .10000E-03    141.50        .15007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .10000E-01    .65514        .56204E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .37831        .34121        .19309E-03   -1.1793    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43957e-09
Minuit parameter uncertainties:
  1  9.25057e-05
  2  0.000507899
  3  0.00159213
  4  0.000113964
  5  3.57168e-05
  6  6.96104e-07
  7  0.000340321
  8  0.000150309
  9  0.000111603
  10  63.2717
  11  39.4784
  12  0.000348406
  13  0.0107667
  14  0.000272444
  15  2.65917e-05
  16  6.81031e-05
  17  66.5392
  18  79.8648
  19  3.50193e-05
  20  0.000336775
  21  319.867
  22  28.0793
  23  1.80442e-05
  24  16.4499
  25  3.28333e-06
  26  73.4864
  27  0.000782445
  28  0.000362926
  29  1.69466e-05
  30  29.5261
  31  3.4587e-06
  32  3.55418e-06
  33  0.343059
Done.

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

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  1.476e+01  2.808e+01  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:  3.783e-01  3.431e-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.000e-02  3.554e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.48
Ra Dec: 352.082 -40.604
Photon Flux Upper Limit: 7.59e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.65e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/929851/likelihoodResults_542851201_543110401_4FGL_J2328.3-4036_daily_bin1171.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) = 165.51814237
delta logL = 0.102364361834

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 165.517156643
delta logL = 0.103350088168

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.7204       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0927       1.0000          .0000       5.0000    
     3 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .37032       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=   165.5171     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      256 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.6997        772.88        .38696E-02    .14340E-03
   2  alpha         3.0895        3.3483        .10872        .18461E-04
   3  Normalizat    .10000E-01    .36530        .13724    ** at limit **
   4  Prefactor     .37096        .27548        .37823E-01    .18244E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.69968
  alpha      = 3.08948
  Normalizat = 0.01
  Prefactor  = 0.37096
 **********
 **   18 **HESSE 
 **********

 FCN=   165.5171     FROM HESSE     STATUS=OK            27 CALLS      283 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.6997        20.987        .49854E-04   -1.5190    
   2  alpha         3.0895        1.7036        .47642E-03    .23803    
   3  Normalizat    .10000E-01    .57751        .54368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .37096        .29588        .19276E-03   -1.1832    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.29725e-11
Minuit parameter uncertainties:
  1  21.0099
  2  1.88801
  3  4.9732e-06
  4  0.297103
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/929851': 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) = 165.517141688
delta logL = 0.1033650437

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  6.700e+00  2.101e+01  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  3.089e+00  1.888e+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:  3.710e-01  2.971e-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.000e-02  4.973e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.48
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/929851/cmap_HighResolution_542851201_543110401_4FGL_J2328.3-4036_daily_bin1171.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.65e-04', job_status='DONE', photon_flux_upper_limit='7.59e-07', time_completed='2021-09-29 20:41:31.800077', job_id='929851', GAL2='0.37', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632973291.8', return_code2='0', ts='0.48', comment='SUCCESS', return_code='0', GAL='0.38', dlogl='1.03e-01', ts2='0.69', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1171' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:41:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 929851: <4FGL_J2328.3-4036_daily_bin1171> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1171 352.082 -40.6037 542851201 543110401 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 :                                   318.85 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             257.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   362 sec.
    Turnaround time :                            363 sec.

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

