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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1110
RA = 352.082, Dec = -40.6037
tmin = 527040001, tmax = 527299201
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='929660', job_status='RUN', time_executed='2021-09-29 20:36:30.391496', time_epoch_executed='1632972990.39' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1110'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/929660

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/929660/ft1_4FGL_J2328.3-4036_daily_bin1110.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/929660/ft2_4FGL_J2328.3-4036_daily_bin1110.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/929660/ft1_4FGL_J2328.3-4036_daily_bin1110.fits outfile=/scratch/kocevski/929660/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1110.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=527040001.0 tmax=527299201.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 5.95
user 5.67
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/929660/ft1_filtered_4FGL_J2328.3-4036_daily_bin1110.fits evtable="EVENTS" scfile=/scratch/kocevski/929660/ft2_4FGL_J2328.3-4036_daily_bin1110.fits sctable="SC_DATA" expcube=/scratch/kocevski/929660/ltcube_527040001_527299201_4FGL_J2328.3-4036_daily_bin1110.fits outfile=/scratch/kocevski/929660/expmap_527040001_527299201_4FGL_J2328.3-4036_daily_bin1110.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/929660/ltcube_527040001_527299201_4FGL_J2328.3-4036_daily_bin1110.fits
.....................!
real 190.19
user 185.35
sys 4.50

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/929660/ft1_filtered_4FGL_J2328.3-4036_daily_bin1110.fits scfile=/scratch/kocevski/929660/ft2_4FGL_J2328.3-4036_daily_bin1110.fits outfile=/scratch/kocevski/929660/cmap_527040001_527299201_4FGL_J2328.3-4036_daily_bin1110.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/929660/ft1_filtered_4FGL_J2328.3-4036_daily_bin1110.fits scfile=/scratch/kocevski/929660/ft2_4FGL_J2328.3-4036_daily_bin1110.fits outfile=/scratch/kocevski/929660/cmap_HighResolution_527040001_527299201_4FGL_J2328.3-4036_daily_bin1110.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.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15244E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.022       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    120.88       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.6481       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.4524       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.5771       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .94043       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    34.007       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.4120       1.0000         .10000E-03   10000.    
    16 'norm      '    10.994       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    21.994       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11179E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    202.94       1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.9468       1.0000         .10000E-03   10000.    
    24 'norm      '    1.7554       1.0000         .10000E-03   10000.    
    25 'norm      '    11.122       1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.5066       1.0000         .10000E-03   10000.    
    27 'Prefactor '    48.358       1.0000         .10000E-03   10000.    
    28 'Prefactor '    62.129       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    7.1502       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .31794E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .98083       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .85087       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=   2268.579     FROM MIGRAD    STATUS=CONVERGED    845 CALLS     5296 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10012E-03    832.78       -.49457E-03** at limit **
   2  Prefactor     20.024        53.270        .29379E-05    .19361E-04
   3  Prefactor     .10000E-03    49.500        .36120E-05** at limit **
   4  Prefactor     120.83        107.16       -.40865E-04    .70292E-04
   5  Prefactor     4.6522        21.623        .23800E-04    .13239E-03
   6  Prefactor     9.4548        8.1990       -.27575E-05    .84302E-04
   7  Prefactor     .10000E-03    16.580       -.13651E-04** at limit **
   8  Prefactor     .10000E-03    17.826       -.42799E-05** at limit **
   9  Prefactor     3.5960        47.117       -.33763E-05   -.72720E-05
  10  Prefactor     .10000E-03    7.2846       -.14234E-07** at limit **
  11  Prefactor     .93936        10.792       -.32727E-05   -.45290E-03
  12  Prefactor     .10000E-03    29.193       -.75976E-05** at limit **
  13  Prefactor     33.984        86.625       -.33025E-04    .19586E-04
  14  Prefactor     .10000E-03    15.185        .64525E-05** at limit **
  15  norm          6.4080        28.205       -.72661E-05   -.28109E-04
  16  norm          10.994        11.956       -.10193E-06   -.17687E-04
  17  norm          .10000E-03    5.3063       -.66304E-07** at limit **
  18  norm          21.981        28.218       -.35943E-05    .28921E-04
  19  Prefactor     .10000E-03    28.264       -.80371E-06** at limit **
  20  Prefactor     .10000E-03    118.70        .70537E-05** at limit **
  21  Prefactor     202.95        187.30        .87150E-05    .34489E-05
  22  norm          .10000E-03    7.9438       -.24086E-06** at limit **
  23  Prefactor     1.9517        179.57        .11138E-04   -.12949E-04
  24  norm          1.7552        2.3606       -.65449E-06   -.28344E-03
  25  norm          11.125        13.799       -.13082E-05    .21993E-03
  26  Prefactor     4.5069        7.0447        .76546E-06   -.56987E-04
  27  Prefactor     48.351        67.505       -.76476E-05    .99220E-05
  28  Prefactor     62.049        197.01       -.98374E-04   -.17306E-04
  29  Prefactor     .10000E-03    19.151        .15389E-04** at limit **
  30  Prefactor     7.1530        15.147       -.11473E-05    .69447E-04
  31  Prefactor     .10001E-03    144.15        .11846E-04** at limit **
  32  Normalizat    .98039        .34231        .81114E-05    .30400E-03
  33  Prefactor     .85130        .32732        .77066E-05    .29955E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100116
  Prefactor  = 20.0241
  Prefactor  = 0.0001
  Prefactor  = 120.835
  Prefactor  = 4.65222
  Prefactor  = 9.45479
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.59601
  Prefactor  = 0.0001
  Prefactor  = 0.939359
  Prefactor  = 0.0001
  Prefactor  = 33.9842
  Prefactor  = 0.0001
  norm       = 6.40803
  norm       = 10.9939
  norm       = 0.0001
  norm       = 21.9807
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 202.953
  norm       = 0.0001
  Prefactor  = 1.95172
  norm       = 1.75524
  norm       = 11.1252
  Prefactor  = 4.50693
  Prefactor  = 48.3515
  Prefactor  = 62.0495
  Prefactor  = 0.0001
  Prefactor  = 7.15303
  Prefactor  = 0.000100012
  Normalizat = 0.980391
  Prefactor  = 0.851303
 **********
 **   18 **HESSE 
 **********

 FCN=   2268.579     FROM HESSE     STATUS=OK           691 CALLS     5987 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10012E-03    832.60        .20458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     20.024        52.981        .89512E-04   -1.4813    
   3  Prefactor     .10000E-03    49.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     120.83        105.85        .18302E-03   -1.3505    
   5  Prefactor     4.6522        21.044        .18667E-03   -1.5277    
   6  Prefactor     9.4548        8.2612        .11514E-03   -1.5093    
   7  Prefactor     .10000E-03    16.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    17.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.5960        46.978        .21367E-03   -1.5329    
  10  Prefactor     .10000E-03    7.2971        .12556E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .93936        10.828        .29808E-03   -1.5514    
  12  Prefactor     .10000E-03    29.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     33.984        86.904        .68717E-04   -1.4541    
  14  Prefactor     .10000E-03    15.195        .18126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.4080        27.342        .15850E-03   -1.5202    
  16  norm          10.994        11.964        .12083E-03   -1.5045    
  17  norm          .10000E-03    5.3109        .10716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          21.981        28.210        .85407E-04   -1.4770    
  19  Prefactor     .10000E-03    28.320        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    118.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     202.95        188.82        .28368E-04   -1.2849    
  22  norm          .10000E-03    7.9948        .13097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.9517        164.04        .29747E-03   -1.5429    
  24  norm          1.7552        2.3205        .76935E-04   -1.5443    
  25  norm          11.125        13.797        .12013E-03   -1.5041    
  26  Prefactor     4.5069        7.0298        .14267E-03   -1.5283    
  27  Prefactor     48.351        67.309        .57664E-04   -1.4316    
  28  Prefactor     62.049        197.99        .25454E-03   -1.4131    
  29  Prefactor     .10000E-03    19.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     7.1530        15.111        .15001E-03   -1.5173    
  31  Prefactor     .10001E-03    144.47        .21365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .98039        .41642        .26029E-03   -.93690    
  33  Prefactor     .85130        .39624        .28416E-03   -.97864    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14981e-09
Minuit parameter uncertainties:
  1  0.0199753
  2  53.1054
  3  5.56295e-06
  4  106.019
  5  19.8006
  6  8.26217
  7  2.00419e-06
  8  4.57424e-05
  9  26.0197
  10  2.25597e-05
  11  6.37971
  12  5.39057e-05
  13  87.2299
  14  5.0487e-05
  15  26.4935
  16  11.9668
  17  1.15564e-05
  18  28.2267
  19  0.00044053
  20  0.000494063
  21  189.388
  22  4.87915e-05
  23  35.8872
  24  2.32061
  25  13.801
  26  7.03105
  27  67.4147
  28  200.15
  29  0.000105902
  30  15.1191
  31  0.00261635
  32  0.417805
  33  0.397587
Done.

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

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  1.000e-04  4.879e-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:  8.513e-01  3.976e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  9.804e-01  4.178e-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: 1.80e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.29e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/929660/likelihoodResults_527040001_527299201_4FGL_J2328.3-4036_daily_bin1110.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) = 2268.57977815
delta logL = -0.000595511240135

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2268.57918191
delta logL = 7.25281097402e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10435E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8149       1.0000          .0000       5.0000    
     3 'Normalizat'    .98041       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85129       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2268.579     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      292 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1774.4        .28143E-03** at limit **
   2  alpha         2.9528        3.5017        .50000        .68235E-07
   3  Normalizat    .98039        .16411        .26029E-03    .94562E-05
   4  Prefactor     .85130        .16880        .28415E-03    .92421E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.95278
  Normalizat = 0.98039
  Prefactor  = 0.851301
 **********
 **   18 **HESSE 
 **********

 FCN=   2268.579     FROM HESSE     STATUS=OK            29 CALLS      321 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.551        .56286E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.9528        2.8040        .50000        .18212    
   3  Normalizat    .98039        .36423        .10411E-04   -.93690    
   4  Prefactor     .85130        .37460        .11366E-04   -.97864    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.2399e-11
Minuit parameter uncertainties:
  1  1.90016e-05
  2  292.886
  3  0.36516
  4  0.375731
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/929660': 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) = 2268.57918162
delta logL = 1.0228109204e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  8.513e-01  3.757e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  9.804e-01  3.652e-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/929660/cmap_HighResolution_527040001_527299201_4FGL_J2328.3-4036_daily_bin1110.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.29e-05', job_status='DONE', photon_flux_upper_limit='1.80e-07', time_completed='2021-09-29 20:46:04.301926', job_id='929660', GAL2='0.85', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1632973564.3', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='1.02e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1110' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:46:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 929660: <4FGL_J2328.3-4036_daily_bin1110> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1110 352.082 -40.6037 527040001 527299201 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 :                                   568.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   642 sec.
    Turnaround time :                            643 sec.

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

