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


Performing analysis on: 4FGL_J2327.5-3259_daily_bin799
RA = 351.883, Dec = -32.9869
tmin = 446428801, tmax = 446688001
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='915843', job_status='RUN', time_executed='2021-09-29 20:07:41.292142', time_epoch_executed='1632971261.29' WHERE source_name='4FGL J2327.5-3259' and cadence='daily' and bin_id='799'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/915843

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/915843/ft1_4FGL_J2327.5-3259_daily_bin799.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/915843/ft2_4FGL_J2327.5-3259_daily_bin799.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/915843/ft1_4FGL_J2327.5-3259_daily_bin799.fits outfile=/scratch/kocevski/915843/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin799.fits ra=351.883 dec=-32.9869 rad=12.0 tmin=446428801.0 tmax=446688001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.51
user 3.26
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/915843/ft2_4FGL_J2327.5-3259_daily_bin799.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/915843/ft2_4FGL_J2327.5-3259_daily_bin799.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/915843/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin799.fits evtable="EVENTS" outfile="/scratch/kocevski/915843/ft1_filtered_4FGL_J2327.5-3259_daily_bin799.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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/915843/ft1_filtered_4FGL_J2327.5-3259_daily_bin799.fits" evtable="EVENTS" scfile=/scratch/kocevski/915843/ft2_4FGL_J2327.5-3259_daily_bin799.fits sctable="SC_DATA" outfile=/scratch/kocevski/915843/ltcube_446428801_446688001_4FGL_J2327.5-3259_daily_bin799.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/915843/ft2_4FGL_J2327.5-3259_daily_bin799.fits
.....................!
real 12.39
user 11.98
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/915843/ft1_filtered_4FGL_J2327.5-3259_daily_bin799.fits evtable="EVENTS" scfile=/scratch/kocevski/915843/ft2_4FGL_J2327.5-3259_daily_bin799.fits sctable="SC_DATA" expcube=/scratch/kocevski/915843/ltcube_446428801_446688001_4FGL_J2327.5-3259_daily_bin799.fits outfile=/scratch/kocevski/915843/expmap_446428801_446688001_4FGL_J2327.5-3259_daily_bin799.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/915843/ltcube_446428801_446688001_4FGL_J2327.5-3259_daily_bin799.fits
.....................!
real 192.02
user 187.48
sys 4.10

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 190 point sources and 0 extended sources

Setting source of interest to:
4FGL J2327.5-3259 @ 351.883 -32.9869

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/915843/ft1_filtered_4FGL_J2327.5-3259_daily_bin799.fits scfile=/scratch/kocevski/915843/ft2_4FGL_J2327.5-3259_daily_bin799.fits outfile=/scratch/kocevski/915843/cmap_446428801_446688001_4FGL_J2327.5-3259_daily_bin799.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=351.883 yref=-32.9869 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/915843/ft1_filtered_4FGL_J2327.5-3259_daily_bin799.fits scfile=/scratch/kocevski/915843/ft2_4FGL_J2327.5-3259_daily_bin799.fits outfile=/scratch/kocevski/915843/cmap_HighResolution_446428801_446688001_4FGL_J2327.5-3259_daily_bin799.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=351.883 yref=-32.9869 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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/915843/ft1_filtered_4FGL_J2327.5-3259_daily_bin799.fits evtable="EVENTS" scfile=/scratch/kocevski/915843/ft2_4FGL_J2327.5-3259_daily_bin799.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/915843/Model_4FGL_J2327.5-3259_daily_bin799.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/915843/ft1_filtered_4FGL_J2327.5-3259_daily_bin799.fits.....................!
real 41.37
user 39.93
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/915843/ft1_filtered_4FGL_J2327.5-3259_daily_bin799.fits', '/scratch/kocevski/915843/ft2_4FGL_J2327.5-3259_daily_bin799.fits', expMap='/scratch/kocevski/915843/expmap_446428801_446688001_4FGL_J2327.5-3259_daily_bin799.fits', expCube='/scratch/kocevski/915843/ltcube_446428801_446688001_4FGL_J2327.5-3259_daily_bin799.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/915843/Model_4FGL_J2327.5-3259_daily_bin799.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2327.5-3259'

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  7.111e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  2.557e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
456        Scale:  6.601e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/915843/ft1_filtered_4FGL_J2327.5-3259_daily_bin799.fits
Spacecraft file(s): /scratch/kocevski/915843/ft2_4FGL_J2327.5-3259_daily_bin799.fits
Exposure map: /scratch/kocevski/915843/expmap_446428801_446688001_4FGL_J2327.5-3259_daily_bin799.fits
Exposure cube: /scratch/kocevski/915843/ltcube_446428801_446688001_4FGL_J2327.5-3259_daily_bin799.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/915843/Model_4FGL_J2327.5-3259_daily_bin799.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) = 5324.60951793

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.584       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    30.812       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.8896       1.0000         .10000E-03   10000.    
     8 'norm      '    .31191E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.1650       1.0000         .10000E-03   10000.    
    11 'norm      '    .26257       1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.007       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    16.572       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10599E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    96.916       1.0000         .10000E-03   10000.    
    18 'norm      '    .82975       1.0000         .10000E-03   10000.    
    19 'norm      '    .21597       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.7538       1.0000         .10000E-03   10000.    
    25 'Prefactor '    68.922       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .91009       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .82215       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5324.592     FROM MIGRAD    STATUS=CONVERGED    663 CALLS     3391 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.585        24.436        .30867E-06   -.99296E-05
   2  Prefactor     .10000E-03    .98005        .69565E-08** at limit **
   3  Prefactor     .10000E-03    4.7274       -.22950E-06** at limit **
   4  Prefactor     .10000E-03    12.974       -.70526E-06** at limit **
   5  Prefactor     30.818        48.040        .60400E-05   -.11995E-03
   6  Prefactor     .10000E-03    2.7499        .27203E-06** at limit **
   7  Prefactor     6.8900        10.065       -.71844E-06   -.66472E-04
   8  norm          .10000E-03    2.0112        .27318E-06** at limit **
   9  Prefactor     .10000E-03    4.8928       -.41365E-06** at limit **
  10  Prefactor     4.1851        9.6415       -.10685E-05   -.34329E-03
  11  norm          .26206        .56650        .95091E-07   -.13938E-02
  12  Prefactor     27.014        37.430        .47860E-05   -.14071E-03
  13  Prefactor     .10000E-03    4.4354       -.18403E-06** at limit **
  14  norm          .10000E-03    3.2931        .20957E-06** at limit **
  15  norm          16.572        8.3965       -.12555E-06    .79247E-04
  16  Prefactor     .10000E-03    92.246        .24220E-05** at limit **
  17  Prefactor     96.919        48.432        .17883E-05   -.86386E-04
  18  norm          .83422        3.0186       -.24276E-05   -.87807E-03
  19  norm          .22431        1.5686       -.71782E-07   -.42168E-03
  20  Prefactor     .10000E-03    10.808       -.76939E-06** at limit **
  21  norm          .10000E-03    3.0914        .93931E-07** at limit **
  22  Prefactor     .10000E-03    34.255        .23068E-06** at limit **
  23  Prefactor     .10000E-03    21.182        .34073E-06** at limit **
  24  Prefactor     7.7543        5.7350        .40438E-06   -.11276E-03
  25  Prefactor     68.915        45.546       -.41621E-05    .21026E-03
  26  Normalizat    .91002        .16860       -.34758E-06    .14058E-03
  27  Prefactor     .82218        .17632       -.20631E-06    .96904E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.5853
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.8178
  Prefactor  = 0.0001
  Prefactor  = 6.89002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.18509
  norm       = 0.262059
  Prefactor  = 27.0137
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 16.5719
  Prefactor  = 0.000100003
  Prefactor  = 96.9188
  norm       = 0.834216
  norm       = 0.22431
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.75427
  Prefactor  = 68.915
  Normalizat = 0.910019
  Prefactor  = 0.822177
 **********
 **   18 **HESSE 
 **********

 FCN=   5324.592     FROM HESSE     STATUS=OK           484 CALLS     3875 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.585        24.427        .11292E-03   -1.4998    
   2  Prefactor     .10000E-03    .98948        .70514E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.7270        .15492E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     30.818        47.095        .72182E-04   -1.4597    
   6  Prefactor     .10000E-03    2.7523        .11814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.8900        10.074        .15285E-03   -1.5183    
   8  norm          .10000E-03    9.6994        .18796E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.8887        .15739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.1851        8.7888        .19749E-03   -1.5299    
  11  norm          .26206        .49653        .61666E-03   -1.5606    
  12  Prefactor     27.014        36.765        .77088E-04   -1.4668    
  13  Prefactor     .10000E-03    4.4437        .14982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.3568        .12912E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          16.572        8.3914        .98387E-04   -1.4894    
  16  Prefactor     .10000E-03    94.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     96.919        48.175        .40830E-04   -1.3736    
  18  norm          .83422        3.3779        .25292E-03   -1.5525    
  19  norm          .22431        6.5201        .17633E-02   -1.5613    
  20  Prefactor     .10000E-03    10.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.2073        .24997E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    34.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    21.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     7.7543        5.7061        .13789E-03   -1.5151    
  25  Prefactor     68.915        45.031        .48350E-04   -1.4046    
  26  Normalizat    .91002        .20152        .21635E-03   -.96109    
  27  Prefactor     .82218        .21111        .24897E-03   -.98916    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.38775e-09
Minuit parameter uncertainties:
  1  24.4465
  2  5.60581e-06
  3  1.35621e-05
  4  3.23634e-05
  5  47.1521
  6  7.29641e-06
  7  10.0761
  8  6.17984e-05
  9  2.16246e-05
  10  8.79149
  11  0.496537
  12  36.7961
  13  1.79157e-05
  14  4.88271e-05
  15  8.39195
  16  0.00113171
  17  48.1941
  18  3.35747
  19  2.41844
  20  4.22102e-05
  21  4.83356e-05
  22  6.96319e-06
  23  1.76452e-05
  24  5.70651
  25  45.0534
  26  0.201691
  27  0.211316
Done.

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

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  9.692e+01  4.819e+01  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  2.557e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
456        Scale:  6.601e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  8.222e-01  2.113e-01  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
604   Normalization:  9.100e-01  2.017e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.90
Ra Dec: 351.883 -32.987
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 7.77e-08 +/- 3.86e-08
Energy Flux (Fixed Index): 2.12e-05 +/- 1.06e-05

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) = 5324.4172345
delta logL = 0.174654829

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5324.41697283
delta logL = 0.174916504214

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    113.98       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2896       1.0000          .0000       10.000    
     3 'Normalizat'    .92538       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81018       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5324.417     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      294 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     113.84        61.697        .18842E-03    .46219E-04
   2  Index         2.2882        .44263        .60750E-02   -.10914E-04
   3  Normalizat    .92554        .18746        .21483E-03   -.12807E-04
   4  Prefactor     .81013        .20451        .25061E-03   -.49900E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 113.837
  Index      = 2.28825
  Normalizat = 0.925539
  Prefactor  = 0.810131
 **********
 **   18 **HESSE 
 **********

 FCN=   5324.417     FROM HESSE     STATUS=OK            25 CALLS      319 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     113.84        61.094        .75366E-05   -1.3570    
   2  Index         2.2882        .43814        .24300E-03   -.57323    
   3  Normalizat    .92554        .18763        .85930E-05   -.95568    
   4  Prefactor     .81013        .20468        .10024E-04   -.99356    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39927e-11
Minuit parameter uncertainties:
  1  61.1275
  2  0.438935
  3  0.187766
  4  0.204875
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/915843': 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) = 5324.41696259
delta logL = 0.174926741337

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.138e+02  6.113e+01  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  2.288e+00  4.389e-01  0.000e+00  1.000e+01 (-1.000e+00)
456        Scale:  6.601e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  8.101e-01  2.049e-01  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
604   Normalization:  9.255e-01  1.878e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.25
Ra Dec: 351.883 -32.987
Photon Index (Free Index): 2.29 +/- 0.44
Photon Flux (Free Index): 6.64e-08 +/- 4.06e-08
Energy Flux (Free Index): 2.56e-05 +/- 1.62e-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/915843/cmap_HighResolution_446428801_446688001_4FGL_J2327.5-3259_daily_bin799.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.77e-08', energy_flux2='2.56e-05', photon_flux_error='3.86e-08', dlogl='1.75e-01', energy_flux='2.12e-05', photon_flux2='6.64e-08', job_status='DONE', time_completed='2021-09-29 20:18:47.286076', photon_index_error2='0.44', photon_index2='2.29', ts='8.90', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='1.62e-05', EG='0.91', time_epoch_completed='1632971927.29', return_code='0', job_id='915843', GAL2='0.81', EG2='0.93', return_code2='0', energy_flux_error='1.06e-05', photon_flux_error2='4.06e-08', ts2='9.25', photon_index='2.56' WHERE bin_id='799' AND source_name='4FGL J2327.5-3259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:18:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 915843: <4FGL_J2327.5-3259_daily_bin799> in cluster <slac> Done

Job <4FGL_J2327.5-3259_daily_bin799> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 20:05:45 2021
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 20:05:47 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:05:47 2021
Terminated at Wed Sep 29 20:18:48 2021
Results reported at Wed Sep 29 20:18:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5-3259_daily_bin799 351.883 -32.9869 446428801 446688001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2327.5-3259 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   649.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             308.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            783 sec.

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

