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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1525
RA = 352.082, Dec = -40.6037
tmin = 634608001, tmax = 634867201
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='934854', job_status='RUN', time_executed='2021-09-29 20:41:00.066259', time_epoch_executed='1632973260.07' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1525'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934854

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934854/ft1_4FGL_J2328.3-4036_daily_bin1525.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934854/ft2_4FGL_J2328.3-4036_daily_bin1525.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934854/ft1_4FGL_J2328.3-4036_daily_bin1525.fits outfile=/scratch/kocevski/934854/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1525.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=634608001.0 tmax=634867201.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.11
user 2.90
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/934854/ft1_filtered_4FGL_J2328.3-4036_daily_bin1525.fits" evtable="EVENTS" scfile=/scratch/kocevski/934854/ft2_4FGL_J2328.3-4036_daily_bin1525.fits sctable="SC_DATA" outfile=/scratch/kocevski/934854/ltcube_634608001_634867201_4FGL_J2328.3-4036_daily_bin1525.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/934854/ft2_4FGL_J2328.3-4036_daily_bin1525.fits
.....................!
real 12.49
user 12.15
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934854/ft1_filtered_4FGL_J2328.3-4036_daily_bin1525.fits evtable="EVENTS" scfile=/scratch/kocevski/934854/ft2_4FGL_J2328.3-4036_daily_bin1525.fits sctable="SC_DATA" expcube=/scratch/kocevski/934854/ltcube_634608001_634867201_4FGL_J2328.3-4036_daily_bin1525.fits outfile=/scratch/kocevski/934854/expmap_634608001_634867201_4FGL_J2328.3-4036_daily_bin1525.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/934854/ltcube_634608001_634867201_4FGL_J2328.3-4036_daily_bin1525.fits
.....................!
real 192.23
user 186.98
sys 4.93

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/934854/ft1_filtered_4FGL_J2328.3-4036_daily_bin1525.fits scfile=/scratch/kocevski/934854/ft2_4FGL_J2328.3-4036_daily_bin1525.fits outfile=/scratch/kocevski/934854/cmap_634608001_634867201_4FGL_J2328.3-4036_daily_bin1525.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.36
sys 0.15

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

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/934854/ft1_filtered_4FGL_J2328.3-4036_daily_bin1525.fits evtable="EVENTS" scfile=/scratch/kocevski/934854/ft2_4FGL_J2328.3-4036_daily_bin1525.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/934854/Model_4FGL_J2328.3-4036_daily_bin1525.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/934854/ft1_filtered_4FGL_J2328.3-4036_daily_bin1525.fits.....................!
real 21.51
user 20.24
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .47619E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.228       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11194       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10814E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.4592       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9997.2       1.0000         .10000E-03   10000.    
     7 'Prefactor '    27.354       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .74649E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    135.08       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .15606E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .19171E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    43.180       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .66406E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .15984E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    .10347E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    .15678E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .12263E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10981E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12545       1.0000         .10000E-03   10000.    
    21 'Prefactor '    78.834       1.0000         .10000E-03   10000.    
    22 'norm      '    .12784E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.109       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .34639E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .14383E-01   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .47695E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.1867       1.0000         .10000E-03   10000.    
    31 'Prefactor '    72.389       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.6601       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1555.769     FROM MIGRAD    STATUS=CONVERGED    453 CALLS     3590 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    43.078        .55322E-06** at limit **
   2  Prefactor     19.024        30.196        .56830E-06    .17514E-03
   3  Prefactor     .10000E-03    116.28        .44165E-05** at limit **
   4  Prefactor     .10000E-03    29.491        .16453E-05** at limit **
   5  Prefactor     9.6603        7.4051        .59764E-07   -.22951E-04
   6  Prefactor    10000.0        196.43       -.93113E-05** at limit **
   7  Prefactor    10000.0        6887.9       -.62526E-04   -.11996E-02
   8  Prefactor     .10000E-03    552.14        .73205E-06** at limit **
   9  Prefactor     38.667        153.21        .71922E-05    .29297E-01
  10  Prefactor     .10000E-03    40.266       -.23864E-05** at limit **
  11  Prefactor     .10000E-03    44.673       -.86942E-06** at limit **
  12  Prefactor     9998.8        9999.1       -.12722E-03    .22603E-02
  13  Prefactor     .10000E-03    106.21       -.70209E-05** at limit **
  14  Prefactor     .10000E-03    34.715       -.92137E-06** at limit **
  15  norm          .10000E-03    25.390       -.15726E-06** at limit **
  16  norm          .10000E-03    10.200        .55266E-08** at limit **
  17  norm          .10000E-03    5.2985       -.33346E-07** at limit **
  18  norm          .10000E-03    13.574       -.45848E-07** at limit **
  19  Prefactor     .10000E-03    7.3615       -.47666E-07** at limit **
  20  Prefactor     .10000E-03    54.944       -.16372E-04** at limit **
  21  Prefactor     80.630        88.646       -.31906E-05   -.61823E-04
  22  norm          .10000E-03    7.1305       -.98201E-06** at limit **
  23  Prefactor     10.304        17.202       -.19676E-05    .17053E-03
  24  norm          .10000E-03    2.4807       -.49708E-06** at limit **
  25  norm          .10000E-03    5.8531        .30156E-06** at limit **
  26  Prefactor     .10000E-03    2.1054        .19827E-07** at limit **
  27  Prefactor     .10000E-03    12.188       -.14988E-06** at limit **
  28  Prefactor     .10000E-03    100.09        .19442E-05** at limit **
  29  Prefactor     .10000E-03    16.442       -.15004E-06** at limit **
  30  Prefactor     .94554        8.3260       -.86204E-05   -.14591E-03
  31  Prefactor     76.161        73.135        .68232E-06    .28121E-04
  32  Normalizat    .10000E-01    .43609        .74413E-05** at limit **
  33  Prefactor     1.6151        .21875       -.50976E-05    .18062E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 19.0239
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.66025
  Prefactor  = 10000
  Prefactor  = 9999.99
  Prefactor  = 0.000100001
  Prefactor  = 38.6672
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9998.82
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 80.6296
  norm       = 0.0001
  Prefactor  = 10.3044
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.945543
  Prefactor  = 76.1609
  Normalizat = 0.01
  Prefactor  = 1.61509
 **********
 **   18 **HESSE 
 **********

 FCN=   1555.769     FROM HESSE     STATUS=OK           751 CALLS     4341 TOTAL
                     EDM=   .36E-02    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    43.115        .96344E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.024        30.848        .23452E-02   -1.4835    
   3  Prefactor     .10000E-03    104.79        .95680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    29.537        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.6603        7.3791        .32575E-02   -1.5086    
   6  Prefactor    10000.0        210.36        .61017E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor    10000.0        6865.1        .19150E-02    1.5687    
   8  Prefactor     .10000E-03    553.13        .10471E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     38.667        8299.7        .86628E-03   -1.4464    
  10  Prefactor     .10000E-03    40.400        .10220E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    43.306        .91185E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9998.8        9994.8        .15252E-02    1.5926    
  13  Prefactor     .10000E-03    107.90        .93498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    31.087        .10210E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    24.636        .90747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    10.006        .10218E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.1931        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    12.640        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.9127        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    51.155        .96319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     80.630        88.785        .11308E-02   -1.3910    
  22  norm          .10000E-03    6.0998        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     10.304        17.092        .30051E-02   -1.5066    
  24  norm          .10000E-03    1.7234        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    5.2984        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    1.9523        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    11.455        .10664E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    99.161        .90948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    16.651        .10590E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .94554        8.1818        .10468E-01   -1.5513    
  31  Prefactor     76.161        72.770        .11796E-02   -1.3960    
  32  Normalizat    .10000E-01    .24735        .25230       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     1.6151        .27592        .45837E-01   -.74365    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.00358584
Minuit parameter uncertainties:
  1  4.83079e-05
  2  30.8742
  3  2.66783e-05
  4  7.87151e-05
  5  7.37975
  6  0.00156758
  7  13.5062
  8  0.00107244
  9  1259.27
  10  4.32222e-05
  11  2.29398e-06
  12  337.481
  13  0.000629096
  14  1.02916e-05
  15  7.25564e-07
  16  2.02087e-06
  17  9.27952e-07
  18  3.28504e-06
  19  1.05958e-08
  20  0.000619645
  21  88.9312
  22  3.84277e-06
  23  17.0998
  24  4.61351e-08
  25  6.08306e-06
  26  5.02538e-07
  27  5.52686e-06
  28  0.00109744
  29  0.000106053
  30  5.56353
  31  72.8557
  32  1.78962e-06
  33  0.276179
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
586   Normalization:  1.000e-02  1.790e-06  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.60e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.57e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/934854/likelihoodResults_634608001_634867201_4FGL_J2328.3-4036_daily_bin1525.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) = 1555.76985722
delta logL = -0.000746461862263

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1555.76911077
delta logL = -6.92534740665e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3354       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.6151       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   1555.769     FROM MIGRAD    STATUS=FAILED        89 CALLS      246 TOTAL
                     EDM=   .55E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10021E-03    7.4174        .95162E-03** at limit **
   2  alpha         2.3990        2.8824        .16506       -.13862E-05
   3  Normalizat    .10000E-01    .44251        .87447E-02** at limit **
   4  Prefactor     1.6151        .19367        .20258E-03    .18379E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   1555.769     FROM SIMPLEX   STATUS=PROGRESS     152 CALLS      398 TOTAL
                     EDM=   .48E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    7.4174        .24170E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3990        2.8824        .82947E-05   -.40396E-01
   3  Normalizat    .10000E-01    .44251        .51961E-03   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.6151        .19367        .22772E-08   -.74365    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1555.769     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      429 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.2038        .19032E-03** at limit **
   2  alpha         2.4746        3.2255        .33012E-01   -.76625E-07
   3  Normalizat    .10000E-01    .44275        .17489E-02** at limit **
   4  Prefactor     1.6151        .19342        .81031E-05   -.63065E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 2.47464
  Normalizat = 0.01
  Prefactor  = 1.61509
 **********
 **   18 **HESSE 
 **********

 FCN=   1555.769     FROM HESSE     STATUS=OK            23 CALLS      452 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.2005        .38065E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4746        3.3299        .13205E-02   -.10142E-01
   3  Normalizat    .10000E-01    .44271        .34979E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.6151        .19336        .16206E-05   -.74365    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.22693e-10
Minuit parameter uncertainties:
  1  0.000114977
  2  378.796
  3  8.56945e-06
  4  0.193451
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934854': 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) = 1555.76911069
delta logL = 7.41574694985e-08

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  1.000e-04  1.150e-04  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  2.475e+00  3.788e+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:  1.615e+00  1.935e-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  8.569e-06  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/934854/cmap_HighResolution_634608001_634867201_4FGL_J2328.3-4036_daily_bin1525.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.57e-05', job_status='DONE', photon_flux_upper_limit='1.60e-07', time_completed='2021-09-29 20:48:59.467426', job_id='934854', GAL2='1.62', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632973739.47', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.62', dlogl='7.42e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1525' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:48:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0012>
Subject: Job 934854: <4FGL_J2328.3-4036_daily_bin1525> in cluster <slac> Done

Job <4FGL_J2328.3-4036_daily_bin1525> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 20:40:37 2021
Job was executed on host(s) <bullet0012>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 20:40:39 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:39 2021
Terminated at Wed Sep 29 20:49:00 2021
Results reported at Wed Sep 29 20:49:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1525 352.082 -40.6037 634608001 634867201 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 :                                   464.13 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             263.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   500 sec.
    Turnaround time :                            503 sec.

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

