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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1355
RA = 352.082, Dec = -40.6037
tmin = 590544001, tmax = 590803201
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='934411', job_status='RUN', time_executed='2021-09-29 20:41:31.933096', time_epoch_executed='1632973291.93' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1355'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934411

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934411/ft1_4FGL_J2328.3-4036_daily_bin1355.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934411/ft2_4FGL_J2328.3-4036_daily_bin1355.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934411/ft1_4FGL_J2328.3-4036_daily_bin1355.fits outfile=/scratch/kocevski/934411/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1355.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=590544001.0 tmax=590803201.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 4.22
user 3.98
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/934411/ft1_filtered_4FGL_J2328.3-4036_daily_bin1355.fits" evtable="EVENTS" scfile=/scratch/kocevski/934411/ft2_4FGL_J2328.3-4036_daily_bin1355.fits sctable="SC_DATA" outfile=/scratch/kocevski/934411/ltcube_590544001_590803201_4FGL_J2328.3-4036_daily_bin1355.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/934411/ft2_4FGL_J2328.3-4036_daily_bin1355.fits
.....................!
real 11.69
user 11.34
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934411/ft1_filtered_4FGL_J2328.3-4036_daily_bin1355.fits evtable="EVENTS" scfile=/scratch/kocevski/934411/ft2_4FGL_J2328.3-4036_daily_bin1355.fits sctable="SC_DATA" expcube=/scratch/kocevski/934411/ltcube_590544001_590803201_4FGL_J2328.3-4036_daily_bin1355.fits outfile=/scratch/kocevski/934411/expmap_590544001_590803201_4FGL_J2328.3-4036_daily_bin1355.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/934411/ltcube_590544001_590803201_4FGL_J2328.3-4036_daily_bin1355.fits
.....................!
real 190.39
user 185.54
sys 4.53

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/934411/ft1_filtered_4FGL_J2328.3-4036_daily_bin1355.fits scfile=/scratch/kocevski/934411/ft2_4FGL_J2328.3-4036_daily_bin1355.fits outfile=/scratch/kocevski/934411/cmap_590544001_590803201_4FGL_J2328.3-4036_daily_bin1355.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/934411/ft1_filtered_4FGL_J2328.3-4036_daily_bin1355.fits scfile=/scratch/kocevski/934411/ft2_4FGL_J2328.3-4036_daily_bin1355.fits outfile=/scratch/kocevski/934411/cmap_HighResolution_590544001_590803201_4FGL_J2328.3-4036_daily_bin1355.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.40
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/934411/ft1_filtered_4FGL_J2328.3-4036_daily_bin1355.fits evtable="EVENTS" scfile=/scratch/kocevski/934411/ft2_4FGL_J2328.3-4036_daily_bin1355.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/934411/Model_4FGL_J2328.3-4036_daily_bin1355.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/934411/ft1_filtered_4FGL_J2328.3-4036_daily_bin1355.fits.....................!
real 38.21
user 37.01
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16132E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .14899E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .22610E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .33096E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.1954       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .67043E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    28.948       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .20459E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.931       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .22982E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    29.546       1.0000         .10000E-03   10000.    
    13 'Prefactor '    37.062       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.4153       1.0000         .10000E-03   10000.    
    15 'norm      '    .10539E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10171E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .12469E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .28107E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .18427E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.801       1.0000         .10000E-03   10000.    
    22 'norm      '    .16409E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    28.695       1.0000         .10000E-03   10000.    
    24 'norm      '    1.3119       1.0000         .10000E-03   10000.    
    25 'norm      '    4.7362       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .29938       1.0000         .10000E-03   10000.    
    27 'Prefactor '    25.281       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .32558E-01   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .33837E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    4.7023       1.0000         .10000E-03   10000.    
    31 'Prefactor '    2.8528       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.5321       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .53831       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=   4630.264     FROM MIGRAD    STATUS=CONVERGED    186 CALLS     3315 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10036E-03    55.450       -.23115E-04** at limit **
   2  Prefactor     .10040E-03    23.172        .14256E-04** at limit **
   3  Prefactor     .10000E-03    25.786        .92831E-06** at limit **
   4  Prefactor     .10001E-03    11.581       -.29498E-05** at limit **
   5  Prefactor     .10000E-03    4.7221       -.15687E-05** at limit **
   6  Prefactor     3.1934        3.0075       -.17814E-05   -.15625E-03
   7  Prefactor     .10014E-03    39.916       -.18755E-04** at limit **
   8  Prefactor     28.937        1.3734       -.35257E-06    .54654E-03
   9  Prefactor     .10000E-03    7.1596       -.21578E-05** at limit **
  10  Prefactor     14.792        12.873        .12074E-05    .23895E-02
  11  Prefactor     .10000E-03    6.1381        .21762E-05** at limit **
  12  Prefactor     29.535        7.5155       -.36299E-05   -.16426E-02
  13  Prefactor     36.838        28.569        .15802E-04   -.50971E-02
  14  Prefactor     9.3323        5.1672       -.79431E-06   -.31748E-02
  15  norm          .10000E-03    4.8194        .43838E-06** at limit **
  16  norm          .10000E-03    9.2131       -.65044E-06** at limit **
  17  norm          .10000E-03    3.0031       -.39295E-07** at limit **
  18  norm          .10029E-03    3.0286       -.71157E-05** at limit **
  19  Prefactor     .10000E-03    12.227        .64276E-05** at limit **
  20  Prefactor     .10047E-03    28.601        .15758E-04** at limit **
  21  Prefactor     13.876        22.774       -.19186E-04    .96329E-03
  22  norm          .10764E-03    76.846       -.26403E-04** at limit **
  23  Prefactor     28.851        8.7937       -.33114E-05   -.71461E-02
  24  norm          1.3093        1.2542        .25157E-06    .88802E-04
  25  norm          4.7477        6.0085       -.21166E-05    .13671E-03
  26  Prefactor     .27509        14.106       -.35604E-04   -.81826E-04
  27  Prefactor     25.234        11.206        .41408E-05    .46951E-02
  28  Prefactor     .10974E-03    48.239       -.21083E-04** at limit **
  29  Prefactor     .10000E-03    18.159        .64303E-05** at limit **
  30  Prefactor     4.6862        2.6540        .20290E-05   -.63453E-03
  31  Prefactor     .10102E-03    757.00        .70544E-04** at limit **
  32  Normalizat    1.5338        .25222       -.29985E-05    .52133E-04
  33  Prefactor     .53809        .26187        .12834E-04    .50806E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100362
  Prefactor  = 0.000100403
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 3.19338
  Prefactor  = 0.000100138
  Prefactor  = 28.9369
  Prefactor  = 0.0001
  Prefactor  = 14.7915
  Prefactor  = 0.0001
  Prefactor  = 29.5349
  Prefactor  = 36.8378
  Prefactor  = 9.33232
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100291
  Prefactor  = 0.0001
  Prefactor  = 0.000100466
  Prefactor  = 13.8758
  norm       = 0.000107644
  Prefactor  = 28.8513
  norm       = 1.30934
  norm       = 4.74772
  Prefactor  = 0.27509
  Prefactor  = 25.2345
  Prefactor  = 0.000109735
  Prefactor  = 0.0001
  Prefactor  = 4.6862
  Prefactor  = 0.000101018
  Normalizat = 1.53382
  Prefactor  = 0.538089
 **********
 **   18 **HESSE 
 **********

 FCN=   4630.264     FROM HESSE     STATUS=OK           783 CALLS     4098 TOTAL
                     EDM=   .51E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10036E-03    57.935        .91034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10040E-03    74.283        .90973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    25.835        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    12.700        .10674E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.6995        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.1934        3.0131        .56668E-02   -1.5351    
   7  Prefactor     .10014E-03    40.574        .10502E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     28.937        19.810        .18616E-02   -1.4632    
   9  Prefactor     .10000E-03    7.1552        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.792        13.530        .25913E-02   -1.4939    
  11  Prefactor     .10000E-03    6.0672        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     29.535        34.783        .18427E-02   -1.4621    
  13  Prefactor     36.838        44.163        .16458E-02   -1.4493    
  14  Prefactor     9.3323        13.786        .32652E-02   -1.5097    
  15  norm          .10000E-03    4.8205        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    8.9846        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.9857        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10029E-03    6.6963        .58373E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    12.041        .10709E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10047E-03    75.525        .91148E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     13.876        41.245        .26955E-02   -1.4963    
  22  norm          .10764E-03    3.7067        .69416E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     28.851        18.765        .18698E-02   -1.4633    
  24  norm          1.3093        1.3217        .96210E-02   -1.5479    
  25  norm          4.7477        6.7141        .46223E-02   -1.5272    
  26  Prefactor     .27509        3.0389        .64753E-01   -1.5603    
  27  Prefactor     25.234        29.597        .19917E-02   -1.4703    
  28  Prefactor     .10974E-03    92.795        .91846E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    17.425        .10669E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     4.6862        6.8570        .46393E-02   -1.5275    
  31  Prefactor     .10102E-03    755.15        .60177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.5338        .22235        .47501E-01   -.76832    
  33  Prefactor     .53809        .22952        .80198E-01   -1.1026    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.06842e-07
Minuit parameter uncertainties:
  1  0.00916377
  2  0.01096
  3  4.77474e-05
  4  0.000518526
  5  1.00597e-05
  6  3.01328
  7  0.00474253
  8  19.8143
  9  7.34845e-06
  10  13.5326
  11  1.88094e-05
  12  34.8064
  13  44.2021
  14  13.7911
  15  5.31866e-06
  16  6.75135e-05
  17  5.82838e-07
  18  0.00279091
  19  0.000104606
  20  0.0118839
  21  41.3302
  22  0.0106464
  23  18.7686
  24  1.32169
  25  6.71517
  26  1.82841
  27  29.6143
  28  0.0602065
  29  0.000106372
  30  6.85813
  31  0.0561775
  32  0.22249
  33  0.229917
Done.

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

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  1.076e-04  1.065e-02  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:  5.381e-01  2.299e-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.534e+00  2.225e-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: 9.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.30e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/934411/likelihoodResults_590544001_590803201_4FGL_J2328.3-4036_daily_bin1355.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) = 4630.26446663
delta logL = -4.3739960347e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4630.05563101
delta logL = 0.208791874549

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .86544       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5301       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4929       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56011       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.

 FCN=   4630.056     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      272 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .86463        30.729        .12682E-01    .86794E-03
   2  alpha         3.5304        4.1051        .46780        .33830E-04
   3  Normalizat    1.4928        .40496E-01    .48006E-01   -.76500E-05
   4  Prefactor     .56015        .43033E-01    .78659E-01    .23501E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.864626
  alpha      = 3.53043
  Normalizat = 1.49275
  Prefactor  = 0.560145
 **********
 **   18 **HESSE 
 **********

 FCN=   4630.056     FROM HESSE     STATUS=OK            33 CALLS      305 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .86463        3.0664        .98843E-04   -1.5522    
   2  alpha         3.5304        1.8076        .22340E-01    .42483    
   3  Normalizat    1.4928        .25572        .21222E-03   -.77982    
   4  Prefactor     .56015        .26434        .34834E-03   -1.0929    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59828e-08
Minuit parameter uncertainties:
  1  3.06694
  2  2.08805
  3  0.255943
  4  0.264927
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934411': 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) = 4630.05563001
delta logL = 0.208792881175

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  8.646e-01  3.067e+00  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  3.530e+00  2.088e+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:  5.601e-01  2.649e-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.493e+00  2.559e-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/934411/cmap_HighResolution_590544001_590803201_4FGL_J2328.3-4036_daily_bin1355.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.30e-05', job_status='DONE', photon_flux_upper_limit='9.45e-08', time_completed='2021-09-29 20:53:52.712668', job_id='934411', GAL2='0.56', fit_tolerance='1e-08', EG2='1.49', EG='1.53', time_epoch_completed='1632974032.71', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.54', dlogl='2.09e-01', ts2='0.43', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1355' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:53:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0194>
Subject: Job 934411: <4FGL_J2328.3-4036_daily_bin1355> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1355 352.082 -40.6037 590544001 590803201 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 :                                   722.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             271.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            813 sec.

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

