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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1221
RA = 352.082, Dec = -40.6037
tmin = 555811201, tmax = 556070401
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='930005', job_status='RUN', time_executed='2021-09-29 20:37:01.324293', time_epoch_executed='1632973021.32' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1221'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/930005

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/930005/ft1_4FGL_J2328.3-4036_daily_bin1221.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/930005/ft2_4FGL_J2328.3-4036_daily_bin1221.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/930005/ft1_4FGL_J2328.3-4036_daily_bin1221.fits outfile=/scratch/kocevski/930005/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1221.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=555811201.0 tmax=556070401.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.56
user 3.33
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/930005/ft2_4FGL_J2328.3-4036_daily_bin1221.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/930005/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1221.fits evtable="EVENTS" outfile="/scratch/kocevski/930005/ft1_filtered_4FGL_J2328.3-4036_daily_bin1221.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/930005/ft1_filtered_4FGL_J2328.3-4036_daily_bin1221.fits" evtable="EVENTS" scfile=/scratch/kocevski/930005/ft2_4FGL_J2328.3-4036_daily_bin1221.fits sctable="SC_DATA" outfile=/scratch/kocevski/930005/ltcube_555811201_556070401_4FGL_J2328.3-4036_daily_bin1221.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/930005/ft2_4FGL_J2328.3-4036_daily_bin1221.fits
.....................!
real 12.72
user 12.32
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/930005/ft1_filtered_4FGL_J2328.3-4036_daily_bin1221.fits evtable="EVENTS" scfile=/scratch/kocevski/930005/ft2_4FGL_J2328.3-4036_daily_bin1221.fits sctable="SC_DATA" expcube=/scratch/kocevski/930005/ltcube_555811201_556070401_4FGL_J2328.3-4036_daily_bin1221.fits outfile=/scratch/kocevski/930005/expmap_555811201_556070401_4FGL_J2328.3-4036_daily_bin1221.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/930005/ltcube_555811201_556070401_4FGL_J2328.3-4036_daily_bin1221.fits
.....................!
real 191.03
user 185.31
sys 5.38

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/930005/ft1_filtered_4FGL_J2328.3-4036_daily_bin1221.fits scfile=/scratch/kocevski/930005/ft2_4FGL_J2328.3-4036_daily_bin1221.fits outfile=/scratch/kocevski/930005/cmap_555811201_556070401_4FGL_J2328.3-4036_daily_bin1221.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/930005/ft1_filtered_4FGL_J2328.3-4036_daily_bin1221.fits scfile=/scratch/kocevski/930005/ft2_4FGL_J2328.3-4036_daily_bin1221.fits outfile=/scratch/kocevski/930005/cmap_HighResolution_555811201_556070401_4FGL_J2328.3-4036_daily_bin1221.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/930005/ft1_filtered_4FGL_J2328.3-4036_daily_bin1221.fits evtable="EVENTS" scfile=/scratch/kocevski/930005/ft2_4FGL_J2328.3-4036_daily_bin1221.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/930005/Model_4FGL_J2328.3-4036_daily_bin1221.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/930005/ft1_filtered_4FGL_J2328.3-4036_daily_bin1221.fits.......................!
real 19.73
user 18.53
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11658E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    71.029       1.0000         .10000E-03   10000.    
     4 'Prefactor '    54.278       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.5390       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10375E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    181.21       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .43332E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .60357E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    21.707       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.2880       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12203E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    9.1660       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .21211E-02   1.0000         .10000E-03   10000.    
    24 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.4227       1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.7871       1.0000         .10000E-03   10000.    
    27 'Prefactor '    70.721       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.3310       1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.7610       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .72098       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0051       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .67801       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=   1263.114     FROM MIGRAD    STATUS=CONVERGED    878 CALLS     4606 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    88.540        .49909E-05** at limit **
   2  Prefactor     .10000E-03    76.755       -.62566E-06** at limit **
   3  Prefactor     71.034        168.71        .81639E-06    .26399E-05
   4  Prefactor     54.288        57.259        .61779E-06    .29268E-05
   5  Prefactor     .10000E-03    8.3395        .32201E-06** at limit **
   6  Prefactor     4.5411        7.5639        .18837E-06    .44700E-04
   7  Prefactor     .10000E-03    48.290       -.83960E-06** at limit **
   8  Prefactor     .10000E-03    17.091       -.27643E-06** at limit **
   9  Prefactor     .10000E-03    30.204       -.57462E-06** at limit **
  10  Prefactor     .10000E-03    46.161       -.80402E-06** at limit **
  11  Prefactor     .10000E-03    14.636       -.71015E-07** at limit **
  12  Prefactor     .10000E-03    63.740       -.41025E-05** at limit **
  13  Prefactor     181.13        181.74       -.35689E-05   -.42480E-04
  14  Prefactor     .10001E-03    233.56       -.22823E-05** at limit **
  15  norm          .10000E-03    12.378        .18270E-07** at limit **
  16  norm          .10004E-03    110.54       -.19359E-04** at limit **
  17  norm          .10000E-03    16.569       -.40929E-06** at limit **
  18  norm          21.706        20.221        .15744E-06    .16940E-04
  19  Prefactor     9.2642        12.941        .37586E-06    .26795E-03
  20  Prefactor     .10000E-03    208.60        .23831E-05** at limit **
  21  Prefactor     .10000E-03    47.792       -.60361E-06** at limit **
  22  norm          9.1672        9.8535        .60212E-06    .12456E-03
  23  Prefactor     .10019E-03    274.19       -.34635E-04** at limit **
  24  norm          .10000E-03    2.0639       -.46948E-07** at limit **
  25  norm          3.4229        8.1774       -.24342E-06   -.24788E-06
  26  Prefactor     4.7855        10.745        .43555E-06    .56694E-04
  27  Prefactor     70.721        68.556       -.17706E-06    .10689E-04
  28  Prefactor     .10000E-03    42.175        .26692E-05** at limit **
  29  Prefactor     2.3343        12.958        .19467E-05    .13280E-03
  30  Prefactor     1.7630        10.288        .10457E-05    .11289E-03
  31  Prefactor     .71405        166.69       -.13996E-04    .69816E-05
  32  Normalizat    1.0054        .38959       -.57154E-05   -.17275E-03
  33  Prefactor     .67758        .41773        .67540E-05    .12257E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 71.0341
  Prefactor  = 54.2882
  Prefactor  = 0.0001
  Prefactor  = 4.54114
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 181.133
  Prefactor  = 0.000100013
  norm       = 0.0001
  norm       = 0.000100035
  norm       = 0.0001
  norm       = 21.7062
  Prefactor  = 9.26419
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.16715
  Prefactor  = 0.000100187
  norm       = 0.0001
  norm       = 3.42294
  Prefactor  = 4.78553
  Prefactor  = 70.721
  Prefactor  = 0.000100001
  Prefactor  = 2.33431
  Prefactor  = 1.76304
  Prefactor  = 0.714049
  Normalizat = 1.00537
  Prefactor  = 0.677584
 **********
 **   18 **HESSE 
 **********

 FCN=   1263.114     FROM HESSE     STATUS=OK           689 CALLS     5295 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    89.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    77.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     71.034        168.96        .47632E-04   -1.4020    
   4  Prefactor     54.288        57.231        .54444E-04   -1.4233    
   5  Prefactor     .10000E-03    8.3451        .10016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.5411        7.5595        .12187E-03   -1.5282    
   7  Prefactor     .10000E-03    48.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    17.091        .14355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    30.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    46.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.714        .13282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    64.151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     181.13        181.81        .14994E-03   -1.3008    
  14  Prefactor     .10001E-03    342.45        .50887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    12.379        .12216E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10004E-03    161.21        .36547E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    16.641        .14105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          21.706        20.232        .85969E-04   -1.4776    
  19  Prefactor     9.2642        13.012        .13150E-03   -1.5099    
  20  Prefactor     .10000E-03    209.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    47.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          9.1672        9.8847        .10758E-03   -1.5102    
  23  Prefactor     .10019E-03    395.20        .43201E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.1026        .98687E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.4229        8.1725        .14673E-03   -1.5338    
  26  Prefactor     4.7855        10.678        .15015E-03   -1.5270    
  27  Prefactor     70.721        68.382        .47735E-04   -1.4024    
  28  Prefactor     .10000E-03    42.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     2.3343        13.047        .23701E-03   -1.5402    
  30  Prefactor     1.7630        10.289        .21349E-03   -1.5442    
  31  Prefactor     .71405        1520.7        .76059E-02   -1.5539    
  32  Normalizat    1.0054        .47008        .21910E-03   -.92851    
  33  Prefactor     .67758        .49877        .28959E-03   -1.0441    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.77973e-09
Minuit parameter uncertainties:
  1  0.00107976
  2  0.000374069
  3  170.119
  4  57.2888
  5  5.37491e-06
  6  7.56112
  7  0.000129979
  8  2.08552e-05
  9  4.41257e-05
  10  6.51888e-05
  11  1.0485e-05
  12  0.000755474
  13  182.373
  14  0.00422035
  15  2.79881e-06
  16  0.00477866
  17  0.000153322
  18  20.2385
  19  13.0156
  20  0.000315614
  21  9.77832e-05
  22  9.88646
  23  0.0173157
  24  5.87773e-06
  25  8.17512
  26  10.6822
  27  68.4581
  28  0.000402768
  29  11.0408
  30  8.52028
  31  67.6984
  32  0.472033
  33  0.502104
Done.

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

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  9.167e+00  9.886e+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

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  6.776e-01  5.021e-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.005e+00  4.720e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.35
Ra Dec: 352.082 -40.604
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 6.93e-08 +/- 7.46e-08
Energy Flux (Fixed Index): 2.42e-05 +/- 2.61e-05

TS (Fixed Index): 2.35
Ra Dec: 352.082 -40.604
Photon Flux Upper Limit: 2.68e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.38e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/930005/likelihoodResults_555811201_556070401_4FGL_J2328.3-4036_daily_bin1221.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) = 1263.05493754
delta logL = 0.0593375746957

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1263.05156158
delta logL = 0.0627135360739

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.7254       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9140       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0417       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65012       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=   1263.052     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      203 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 34.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.7262        9.4714        .24659E-05   -.10309E-02
   2  alpha         1.9125        .82449       -.20684E-04   -.12052E-03
   3  Normalizat    1.0411        .36728        .10389E-05    .90516E-04
   4  Prefactor     .65080        .40305       -.11842E-05    .56491E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.7262
  alpha      = 1.91246
  Normalizat = 1.04111
  Prefactor  = 0.650802
 **********
 **   18 **HESSE 
 **********

 FCN=   1263.052     FROM HESSE     STATUS=OK            29 CALLS      232 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.7262        10.662        .11716E-03   -1.5084    
   2  alpha         1.9125        1.0734        .12950E-01   -.23723    
   3  Normalizat    1.0411        .44333        .21576E-03   -.91666    
   4  Prefactor     .65080        .48457        .29497E-03   -1.0549    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.95869e-09
Minuit parameter uncertainties:
  1  10.6637
  2  1.1118
  3  0.444918
  4  0.487738
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/930005': 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) = 1263.0515594
delta logL = 0.0627157186593

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  6.508e-01  4.877e-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.041e+00  4.449e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.49
Ra Dec: 352.082 -40.604
Photon Index (Free Index): 1.91 +/- 1.11
Photon Flux (Free Index): 4.62e-08 +/- 7.36e-08
Energy Flux (Free Index): 3.12e-05 +/- 4.73e-05

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/930005/cmap_HighResolution_555811201_556070401_4FGL_J2328.3-4036_daily_bin1221.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.38e-05', comment='SUCCESS', photon_flux='6.93e-08', energy_flux2='3.12e-05', photon_flux_error='7.46e-08', dlogl='6.27e-02', energy_flux='2.42e-05', photon_flux2='4.62e-08', job_status='DONE', time_completed='2021-09-29 20:44:54.908250', photon_index_error2='1.11', photon_index2='1.91', ts='2.35', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', photon_flux_upper_limit='2.68e-07', energy_flux_error2='4.73e-05', EG='1.01', time_epoch_completed='1632973494.91', return_code='0', job_id='930005', GAL2='0.65', EG2='1.04', return_code2='0', energy_flux_error='2.61e-05', photon_flux_error2='7.36e-08', ts2='2.49', photon_index='2.33' WHERE bin_id='1221' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:44:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 930005: <4FGL_J2328.3-4036_daily_bin1221> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1221 352.082 -40.6037 555811201 556070401 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 :                                   451.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             242.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   558 sec.
    Turnaround time :                            559 sec.

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

