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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1232
RA = 352.082, Dec = -40.6037
tmin = 558662401, tmax = 558921601
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='930038', job_status='RUN', time_executed='2021-09-29 20:36:52.056267', time_epoch_executed='1632973012.06' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1232'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/930038

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/930038/ft1_4FGL_J2328.3-4036_daily_bin1232.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/930038/ft2_4FGL_J2328.3-4036_daily_bin1232.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/930038/ft1_4FGL_J2328.3-4036_daily_bin1232.fits outfile=/scratch/kocevski/930038/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1232.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=558662401.0 tmax=558921601.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.54
user 3.34
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/930038/ft1_filtered_4FGL_J2328.3-4036_daily_bin1232.fits" evtable="EVENTS" scfile=/scratch/kocevski/930038/ft2_4FGL_J2328.3-4036_daily_bin1232.fits sctable="SC_DATA" outfile=/scratch/kocevski/930038/ltcube_558662401_558921601_4FGL_J2328.3-4036_daily_bin1232.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/930038/ft2_4FGL_J2328.3-4036_daily_bin1232.fits
.....................!
real 11.56
user 11.21
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/930038/ft1_filtered_4FGL_J2328.3-4036_daily_bin1232.fits evtable="EVENTS" scfile=/scratch/kocevski/930038/ft2_4FGL_J2328.3-4036_daily_bin1232.fits sctable="SC_DATA" expcube=/scratch/kocevski/930038/ltcube_558662401_558921601_4FGL_J2328.3-4036_daily_bin1232.fits outfile=/scratch/kocevski/930038/expmap_558662401_558921601_4FGL_J2328.3-4036_daily_bin1232.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/930038/ltcube_558662401_558921601_4FGL_J2328.3-4036_daily_bin1232.fits
.....................!
real 190.62
user 185.75
sys 4.55

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/930038/ft1_filtered_4FGL_J2328.3-4036_daily_bin1232.fits scfile=/scratch/kocevski/930038/ft2_4FGL_J2328.3-4036_daily_bin1232.fits outfile=/scratch/kocevski/930038/cmap_558662401_558921601_4FGL_J2328.3-4036_daily_bin1232.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/930038/ft1_filtered_4FGL_J2328.3-4036_daily_bin1232.fits scfile=/scratch/kocevski/930038/ft2_4FGL_J2328.3-4036_daily_bin1232.fits outfile=/scratch/kocevski/930038/cmap_HighResolution_558662401_558921601_4FGL_J2328.3-4036_daily_bin1232.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.39
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/930038/ft1_filtered_4FGL_J2328.3-4036_daily_bin1232.fits evtable="EVENTS" scfile=/scratch/kocevski/930038/ft2_4FGL_J2328.3-4036_daily_bin1232.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/930038/Model_4FGL_J2328.3-4036_daily_bin1232.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/930038/ft1_filtered_4FGL_J2328.3-4036_daily_bin1232.fits...............................!
real 15.86
user 14.64
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/930038/ft1_filtered_4FGL_J2328.3-4036_daily_bin1232.fits', '/scratch/kocevski/930038/ft2_4FGL_J2328.3-4036_daily_bin1232.fits', expMap='/scratch/kocevski/930038/expmap_558662401_558921601_4FGL_J2328.3-4036_daily_bin1232.fits', expCube='/scratch/kocevski/930038/ltcube_558662401_558921601_4FGL_J2328.3-4036_daily_bin1232.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/930038/Model_4FGL_J2328.3-4036_daily_bin1232.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/930038/ft1_filtered_4FGL_J2328.3-4036_daily_bin1232.fits
Spacecraft file(s): /scratch/kocevski/930038/ft2_4FGL_J2328.3-4036_daily_bin1232.fits
Exposure map: /scratch/kocevski/930038/expmap_558662401_558921601_4FGL_J2328.3-4036_daily_bin1232.fits
Exposure cube: /scratch/kocevski/930038/ltcube_558662401_558921601_4FGL_J2328.3-4036_daily_bin1232.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/930038/Model_4FGL_J2328.3-4036_daily_bin1232.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 412.026950627

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 410.168074597

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    354.75       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .82022       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.4294       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .39505E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .37902E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .66246E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.0523       1.0000         .10000E-03   10000.    
     8 'Prefactor '    136.35       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .76921E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .35047E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10802       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.4495       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .35228E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.5499       1.0000         .10000E-03   10000.    
    15 'norm      '    .15353       1.0000         .10000E-03   10000.    
    16 'norm      '    1.1394       1.0000         .10000E-03   10000.    
    17 'norm      '    .33843       1.0000         .10000E-03   10000.    
    18 'norm      '    19.144       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .27092E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .44746       1.0000         .10000E-03   10000.    
    21 'Prefactor '    206.01       1.0000         .10000E-03   10000.    
    22 'norm      '    .24500E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .12302       1.0000         .10000E-03   10000.    
    24 'norm      '    7.2906       1.0000         .10000E-03   10000.    
    25 'norm      '    .10178E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.5694       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .62941       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .22286E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10854E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .24335       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .45161       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .84367       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   410.1569     FROM MIGRAD    STATUS=CONVERGED    373 CALLS      702 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     366.71        350.74        .54061E-03    .85949E-02
   2  Prefactor     .10005E-03    522.21        .12515E-01** at limit **
   3  Prefactor     .23849E-01    7340.8        .36786E-02    .13515E-02
   4  Prefactor     .10000E-03    81.871        .92187E-02** at limit **
   5  Prefactor     .10000E-03    22.671        .92109E-02** at limit **
   6  Prefactor     .64355E-02    1137.3        .93491E-02    .33634E-02
   7  Prefactor     .38267E-03    1201.7        .12042E-01** at limit **
   8  Prefactor     134.44        191.78        .86229E-03    .94359E-02
   9  Prefactor     .10000E-03    247.32        .94006E-02** at limit **
  10  Prefactor     .10000E-03    40.796        .91968E-02** at limit **
  11  Prefactor     .10000E-03    92.878        .95494E-02** at limit **
  12  Prefactor     7.4495        1.0023         .0000         .0000    
  13  Prefactor     .10082E-03    .21149       -.39267E-05** at limit **
  14  Prefactor     3.5499        1.0103         .0000         .0000    
  15  norm          .10002E-03    .23831       -.19549E-05** at limit **
  16  norm          1.1394        1.1628         .0000         .0000    
  17  norm          .10108E-03    .28049       -.25406E-04** at limit **
  18  norm          24.318        1.1272        .10752E-05    .28381E-03
  19  Prefactor     .84901E-03    .28708        .77033E-05** at limit **
  20  Prefactor     .10000E-03    .30549        .66917E-06** at limit **
  21  Prefactor     201.63        .98955       -.72893E-05   -.87299E-02
  22  norm          .10000E-03    .20907       -.18633E-06** at limit **
  23  Prefactor     .20688E-02    .23138        .36318E-04** at limit **
  24  norm          7.2906        1.0024         .0000         .0000    
  25  norm          .10000E-03    .20571       -.11846E-06** at limit **
  26  Prefactor     1.5694        1.0628         .0000         .0000    
  27  Prefactor     .36567E-02    .34740       -.41048E-04   -.10657E-02
  28  Prefactor     .10000E-03    .20571       -.35762E-08** at limit **
  29  Prefactor     .10000E-03    .20571       -.20092E-06** at limit **
  30  Prefactor     .10000E-03    .20571       -.12526E-06** at limit **
  31  Prefactor     2.0927        1.4716       -.12132E-04   -.68748E-03
  32  Normalizat    .45555        .78151        .34118E-05    .55676E-04
  33  Prefactor     .82190        1.1769        .95418E-05    .75989E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 366.709
  Prefactor  = 0.000100046
  Prefactor  = 0.023849
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00643552
  Prefactor  = 0.000382666
  Prefactor  = 134.44
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.44949
  Prefactor  = 0.000100824
  Prefactor  = 3.54989
  norm       = 0.000100023
  norm       = 1.13943
  norm       = 0.000101081
  norm       = 24.3184
  Prefactor  = 0.000849006
  Prefactor  = 0.0001
  Prefactor  = 201.634
  norm       = 0.0001
  Prefactor  = 0.00206876
  norm       = 7.2906
  norm       = 0.0001
  Prefactor  = 1.5694
  Prefactor  = 0.00365675
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.09274
  Normalizat = 0.455553
  Prefactor  = 0.821902
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   410.1569     FROM HESSE     STATUS=FAILED        33 CALLS      735 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     366.71        350.74        .54061E-03   -1.1854    
   2  Prefactor     .10005E-03    522.21        .12515E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .23849E-01    7340.8        .36786E-02   -1.5677    
   4  Prefactor     .10000E-03    81.871        .92187E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    22.671        .92109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .64355E-02    1137.3        .93491E-02   -1.5692    
   7  Prefactor     .38267E-03    1201.7        .12042E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     134.44        191.78        .86229E-03   -1.3384    
   9  Prefactor     .10000E-03    247.32        .94006E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    40.796        .91968E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    92.878        .95494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     509.59        502.10         .0000       -1.5162    
  13  Prefactor     .10082E-03    .21149       -.39267E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.5499        1.0103         .0000       -1.5331    
  15  norm          .10002E-03    .23831       -.19549E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.1394        1.1628         .0000       -1.5494    
  17  norm          .10108E-03    .28049       -.25406E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          24.318        1.1272        .10752E-05   -1.4721    
  19  Prefactor     .84901E-03    .28708        .77033E-05   -1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    .30549        .66917E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     201.63        .98955       -.72893E-05   -1.2858    
  22  norm          .10000E-03    .20907       -.18633E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .20688E-02    .23138        .36318E-04   -1.5717    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          7.2906        1.0024         .0000       -1.5168    
  25  norm          .10000E-03    .20571       -.11846E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.5694        1.0628         .0000       -1.5457    
  27  Prefactor     .36567E-02    .34740       -.41048E-04   -1.5720    
  28  Prefactor     .10000E-03    .20571       -.35762E-08   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    .20571       -.20092E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    .20571       -.12526E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     2.0927        1.4716       -.12132E-04   -1.5419    
  32  Normalizat    .45555        .78151        .34118E-05   -1.1452    
  33  Prefactor     .82190        1.1769        .95418E-05   -.98926    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.80436e-09
Minuit parameter uncertainties:
  1  352.805
  2  0.00988698
  3  23.2726
  4  0.000112586
  5  1.25865e-06
  6  5.47598
  7  1.19033
  8  192.675
  9  0.00188292
  10  3.41054e-05
  11  0.000144845
  12  1.00227
  13  0.000835046
  14  1.01028
  15  0.000148209
  16  1.16278
  17  0.0011011
  18  1.12718
  19  0.0293278
  20  2.51349e-06
  21  0.98955
  22  1.48675e-06
  23  0.0426865
  24  1.00237
  25  7.39443e-07
  26  1.06278
  27  0.0703031
  28  2.35018e-06
  29  1.42601e-06
  30  8.28542e-07
  31  1.47158
  32  0.801536
  33  1.21625
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 410.156885714

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  1.000e-04  1.487e-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:  8.219e-01  1.216e+00  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:  4.556e-01  8.015e-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: 6.76e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.36e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/930038/likelihoodResults_558662401_558921601_4FGL_J2328.3-4036_daily_bin1232.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): 102
logL (Free Index) = 410.157056776
delta logL = -0.000171062214349

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 410.156889242
delta logL = -3.52785502855e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10484E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1222       1.0000          .0000       5.0000    
     3 'Normalizat'    .45560       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82188       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=   410.1569     FROM MIGRAD    STATUS=FAILED        97 CALLS      267 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    1811.1        .63725E-02** at limit **
   2  alpha         1.9035        3.4237        .17156        .44468E-07
   3  Normalizat    .45557        .10955        .29599E-03    .28643E-03
   4  Prefactor     .82189        .11920        .24124E-03    .28678E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   410.1569     FROM SIMPLEX   STATUS=UNCHANGED    172 CALLS      439 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    1811.1        .10241E-02** at limit **
   2  alpha         1.9035        3.4237        .52608E-06    .44468E-07
   3  Normalizat    .45557        .10955        .80508E-07    .28643E-03
   4  Prefactor     .82189        .11920        .25055E-07    .28678E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   410.1569     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      467 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    34.725        .11650E-02** at limit **
   2  alpha         1.8970        2.7039        .68625E-02   -.17830E-07
   3  Normalizat    .45557        .66525        .59198E-04    .28561E-03
   4  Prefactor     .82189        .72783        .48248E-04    .28586E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.89704
  Normalizat = 0.45557
  Prefactor  = 0.821894
 **********
 **   18 **HESSE 
 **********

 FCN=   410.1569     FROM HESSE     STATUS=OK            23 CALLS      490 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    34.659        .23299E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8970        2.6947        .13725E-02   -.24359    
   3  Normalizat    .45557        .66539        .11840E-04   -1.1452    
   4  Prefactor     .82189        .72798        .96496E-05   -.98926    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88789e-09
Minuit parameter uncertainties:
  1  0.000229798
  2  502.677
  3  0.677513
  4  0.736784
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/930038': 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) = 410.156885346
delta logL = 3.68169764897e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  8.219e-01  7.368e-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:  4.556e-01  6.775e-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/930038/cmap_HighResolution_558662401_558921601_4FGL_J2328.3-4036_daily_bin1232.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.36e-04', job_status='DONE', photon_flux_upper_limit='6.76e-07', time_completed='2021-09-29 20:42:27.923920', job_id='930038', GAL2='0.82', fit_tolerance='1e-08', EG2='0.46', EG='0.46', time_epoch_completed='1632973347.92', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.82', dlogl='3.68e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1232' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:42:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0170>
Subject: Job 930038: <4FGL_J2328.3-4036_daily_bin1232> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1232 352.082 -40.6037 558662401 558921601 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 :                                   330.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   409 sec.
    Turnaround time :                            410 sec.

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

