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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1466
RA = 352.082, Dec = -40.6037
tmin = 619315201, tmax = 619574401
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='934700', job_status='RUN', time_executed='2021-09-29 20:41:07.780693', time_epoch_executed='1632973267.78' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1466'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934700

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934700/ft1_4FGL_J2328.3-4036_daily_bin1466.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934700/ft2_4FGL_J2328.3-4036_daily_bin1466.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934700/ft1_4FGL_J2328.3-4036_daily_bin1466.fits outfile=/scratch/kocevski/934700/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1466.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=619315201.0 tmax=619574401.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.51
user 3.30
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/934700/ft1_filtered_4FGL_J2328.3-4036_daily_bin1466.fits" evtable="EVENTS" scfile=/scratch/kocevski/934700/ft2_4FGL_J2328.3-4036_daily_bin1466.fits sctable="SC_DATA" outfile=/scratch/kocevski/934700/ltcube_619315201_619574401_4FGL_J2328.3-4036_daily_bin1466.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/934700/ft2_4FGL_J2328.3-4036_daily_bin1466.fits
.....................!
real 12.73
user 12.34
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934700/ft1_filtered_4FGL_J2328.3-4036_daily_bin1466.fits evtable="EVENTS" scfile=/scratch/kocevski/934700/ft2_4FGL_J2328.3-4036_daily_bin1466.fits sctable="SC_DATA" expcube=/scratch/kocevski/934700/ltcube_619315201_619574401_4FGL_J2328.3-4036_daily_bin1466.fits outfile=/scratch/kocevski/934700/expmap_619315201_619574401_4FGL_J2328.3-4036_daily_bin1466.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/934700/ltcube_619315201_619574401_4FGL_J2328.3-4036_daily_bin1466.fits
.....................!
real 191.76
user 186.29
sys 5.16

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/934700/ft1_filtered_4FGL_J2328.3-4036_daily_bin1466.fits scfile=/scratch/kocevski/934700/ft2_4FGL_J2328.3-4036_daily_bin1466.fits outfile=/scratch/kocevski/934700/cmap_619315201_619574401_4FGL_J2328.3-4036_daily_bin1466.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=352.082 yref=-40.6037 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/934700/ft1_filtered_4FGL_J2328.3-4036_daily_bin1466.fits evtable="EVENTS" scfile=/scratch/kocevski/934700/ft2_4FGL_J2328.3-4036_daily_bin1466.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/934700/Model_4FGL_J2328.3-4036_daily_bin1466.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/934700/ft1_filtered_4FGL_J2328.3-4036_daily_bin1466.fits.....................!
real 33.72
user 32.39
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    24.496       1.0000         .10000E-03   10000.    
     3 'Prefactor '    87.489       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.8290       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.408       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.434       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .15134E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.7834       1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.972       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .12389E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.8437       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.5245       1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.3931       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .58247       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.3749       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.

 FCN=   3923.531     FROM MIGRAD    STATUS=CONVERGED    888 CALLS     4567 TOTAL
                     EDM=   .51E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10007E-03    14.684         .0000    ** at limit **
   2  Prefactor     24.435        40.757         .0000        .38500E-02
   3  Prefactor     87.482        73.245         .0000        .46408E-04
   4  Prefactor     .10013E-03    22.119         .0000    ** at limit **
   5  Prefactor     7.8295        6.7629         .0000       -.22552E-03
   6  Prefactor     .10000E-03    3.3840         .0000    ** at limit **
   7  Prefactor     .10045E-03    40.553         .0000    ** at limit **
   8  Prefactor     17.407        20.464         .0000        .10420E-03
   9  Prefactor     .10000E-03    7.5649         .0000    ** at limit **
  10  Prefactor     11.418        22.027         .0000       -.45389E-03
  11  Prefactor     .10000E-03    8.0085         .0000    ** at limit **
  12  Prefactor     .10113E-03    27.937         .0000    ** at limit **
  13  Prefactor     .10017E-03    183.33         .0000    ** at limit **
  14  Prefactor     .10000E-03    6.1309         .0000    ** at limit **
  15  norm          5.7852        12.119         .0000        .11809E-03
  16  norm          .10000E-03    2.4253         .0000    ** at limit **
  17  norm          .10000E-03    1.8304         .0000    ** at limit **
  18  norm          .10000E-03    4.0549         .0000    ** at limit **
  19  Prefactor     15.981        9.4429         .0000        .77561E-03
  20  Prefactor     .10017E-03    19.716         .0000    ** at limit **
  21  Prefactor     .10000E-03    23.441         .0000    ** at limit **
  22  norm          .10000E-03    2.2039         .0000    ** at limit **
  23  Prefactor     .10007E-03    38.493         .0000    ** at limit **
  24  norm          .10000E-03    .47693         .0000    ** at limit **
  25  norm          4.8429        5.3623         .0000        .20605E-02
  26  Prefactor     .10000E-03    1.2490         .0000    ** at limit **
  27  Prefactor     .10000E-03    6.0712         .0000    ** at limit **
  28  Prefactor     .10036E-03    69.056         .0000    ** at limit **
  29  Prefactor     2.5264        5.8144         .0000        .87575E-02
  30  Prefactor     1.4057        9.8813         .0000        .16564E-01
  31  Prefactor     .10036E-03    16.381         .0000    ** at limit **
  32  Normalizat    .58262        .21878         .0000        .32384E-03
  33  Prefactor     1.3746        .23639         .0000        .38487E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010007
  Prefactor  = 24.4346
  Prefactor  = 87.4815
  Prefactor  = 0.000100131
  Prefactor  = 7.82947
  Prefactor  = 0.0001
  Prefactor  = 0.000100454
  Prefactor  = 17.4071
  Prefactor  = 0.000100001
  Prefactor  = 11.4176
  Prefactor  = 0.0001
  Prefactor  = 0.000101132
  Prefactor  = 0.000100168
  Prefactor  = 0.0001
  norm       = 5.78518
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 15.9808
  Prefactor  = 0.000100173
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 0.00010007
  norm       = 0.0001
  norm       = 4.84294
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100365
  Prefactor  = 2.52638
  Prefactor  = 1.40568
  Prefactor  = 0.000100363
  Normalizat = 0.582619
  Prefactor  = 1.37457
 **********
 **   18 **HESSE 
 **********

 FCN=   3923.531     FROM HESSE     STATUS=OK           677 CALLS     5244 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10007E-03    14.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     24.435        38.783        .80935E-04   -1.4719    
   3  Prefactor     87.482        73.273        .42954E-04   -1.3835    
   4  Prefactor     .10013E-03    22.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.8295        6.7598        .14331E-03   -1.5148    
   6  Prefactor     .10000E-03    3.4496        .11249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10045E-03    40.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     17.407        20.477        .95995E-04   -1.4873    
   9  Prefactor     .10000E-03    7.5687        .16827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.418        22.031        .11847E-03   -1.5032    
  11  Prefactor     .10000E-03    8.2184        .34612E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10113E-03    27.962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10017E-03    184.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.1411        .15146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.7852        12.115        .16701E-03   -1.5227    
  16  norm          .10000E-03    2.4257        .95267E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.8309        .82763E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.0616        .12318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     15.981        9.3902        .50109E-03   -1.4908    
  20  Prefactor     .10017E-03    19.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    23.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.2129        .90732E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10007E-03    38.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .48713        .84246E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.8429        5.3519        .14534E-03   -1.5268    
  26  Prefactor     .10000E-03    1.2579        .68352E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    6.0726        .15074E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10036E-03    69.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     2.5264        5.7912        .10962E-02   -1.5390    
  30  Prefactor     1.4057        8.9061        .14411E-02   -1.5471    
  31  Prefactor     .10036E-03    16.384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .58262        .26446        .28545E-03   -1.0873    
  33  Prefactor     1.3746        .28931        .22082E-03   -.81116    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11043e-07
Minuit parameter uncertainties:
  1  0.00202399
  2  38.8233
  3  73.3491
  4  0.00341074
  5  6.76048
  6  6.8322e-06
  7  0.00859477
  8  20.4851
  9  0.000126162
  10  22.0463
  11  3.25926e-05
  12  0.0112551
  13  0.0111777
  14  5.90016e-05
  15  12.1203
  16  3.60072e-06
  17  6.8519e-06
  18  1.00397e-05
  19  9.39111
  20  0.00369247
  21  0.00063359
  22  3.26845e-06
  23  0.00330125
  24  1.90618e-06
  25  5.35239
  26  2.46828e-06
  27  1.76003e-06
  28  0.0100609
  29  5.79249
  30  7.07777
  31  0.00487815
  32  0.265038
  33  0.289656
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  1.375e+00  2.897e-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.826e-01  2.650e-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.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.58e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/934700/likelihoodResults_619315201_619574401_4FGL_J2328.3-4036_daily_bin1466.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) = 3923.53321277
delta logL = -0.00212456908366

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3923.5256255
delta logL = 0.00546270691029

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12296E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .57337       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3813       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=   3923.526     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      318 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12320E-01    .33197        .34306E-03    .11986E-01
   2  alpha         5.0000        3.1296        .50000    ** at limit **
   3  Normalizat    .57336        .26658        .28765E-03    .67280E-03
   4  Prefactor     1.3813        .29374        .22037E-03    .48839E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0123201
  alpha      = 5
  Normalizat = 0.573359
  Prefactor  = 1.38133
 **********
 **   18 **HESSE 
 **********

 FCN=   3923.526     FROM HESSE     STATUS=OK            29 CALLS      347 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12320E-01    .29879        .13723E-04   -1.5686    
   2  alpha         5.0000        2.8314        .50000        1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .57336        .26699        .57531E-04   -1.0913    
   4  Prefactor     1.3813        .29415        .44073E-04   -.80920    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56289e-08
Minuit parameter uncertainties:
  1  0.120852
  2  0.00985091
  3  0.267596
  4  0.294511
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934700': 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) = 3923.5256255
delta logL = 0.00546270649647

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  1.232e-02  1.209e-01  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  5.000e+00  9.851e-03  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.381e+00  2.945e-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.734e-01  2.676e-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/934700/cmap_HighResolution_619315201_619574401_4FGL_J2328.3-4036_daily_bin1466.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.58e-05', job_status='DONE', photon_flux_upper_limit='7.39e-08', time_completed='2021-09-29 20:53:13.724519', job_id='934700', GAL2='1.38', fit_tolerance='1e-08', EG2='0.57', EG='0.58', time_epoch_completed='1632973993.72', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.37', dlogl='5.46e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1466' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:53:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0146>
Subject: Job 934700: <4FGL_J2328.3-4036_daily_bin1466> in cluster <slac> Done

Job <4FGL_J2328.3-4036_daily_bin1466> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 20:40:32 2021
Job was executed on host(s) <bullet0146>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 20:40:34 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:34 2021
Terminated at Wed Sep 29 20:53:14 2021
Results reported at Wed Sep 29 20:53:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1466 352.082 -40.6037 619315201 619574401 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 :                                   704.12 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   759 sec.
    Turnaround time :                            762 sec.

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

