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


Performing analysis on: 4FGL_J2327.5-3259_daily_bin1036
RA = 351.883, Dec = -32.9869
tmin = 507859201, tmax = 508118401
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='917243', job_status='RUN', time_executed='2021-09-29 20:11:19.604175', time_epoch_executed='1632971479.6' WHERE source_name='4FGL J2327.5-3259' and cadence='daily' and bin_id='1036'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/917243

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/917243/ft1_4FGL_J2327.5-3259_daily_bin1036.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/917243/ft2_4FGL_J2327.5-3259_daily_bin1036.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/917243/ft1_4FGL_J2327.5-3259_daily_bin1036.fits outfile=/scratch/kocevski/917243/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin1036.fits ra=351.883 dec=-32.9869 rad=12.0 tmin=507859201.0 tmax=508118401.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.23
user 3.98
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/917243/ft2_4FGL_J2327.5-3259_daily_bin1036.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/917243/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin1036.fits evtable="EVENTS" outfile="/scratch/kocevski/917243/ft1_filtered_4FGL_J2327.5-3259_daily_bin1036.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.53
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/917243/ft1_filtered_4FGL_J2327.5-3259_daily_bin1036.fits" evtable="EVENTS" scfile=/scratch/kocevski/917243/ft2_4FGL_J2327.5-3259_daily_bin1036.fits sctable="SC_DATA" outfile=/scratch/kocevski/917243/ltcube_507859201_508118401_4FGL_J2327.5-3259_daily_bin1036.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/917243/ft2_4FGL_J2327.5-3259_daily_bin1036.fits
.....................!
real 11.72
user 11.37
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/917243/ft1_filtered_4FGL_J2327.5-3259_daily_bin1036.fits evtable="EVENTS" scfile=/scratch/kocevski/917243/ft2_4FGL_J2327.5-3259_daily_bin1036.fits sctable="SC_DATA" expcube=/scratch/kocevski/917243/ltcube_507859201_508118401_4FGL_J2327.5-3259_daily_bin1036.fits outfile=/scratch/kocevski/917243/expmap_507859201_508118401_4FGL_J2327.5-3259_daily_bin1036.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/917243/ltcube_507859201_508118401_4FGL_J2327.5-3259_daily_bin1036.fits
.....................!
real 191.33
user 185.66
sys 5.23

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/917243/ft1_filtered_4FGL_J2327.5-3259_daily_bin1036.fits scfile=/scratch/kocevski/917243/ft2_4FGL_J2327.5-3259_daily_bin1036.fits outfile=/scratch/kocevski/917243/cmap_507859201_508118401_4FGL_J2327.5-3259_daily_bin1036.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.55
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/917243/ft1_filtered_4FGL_J2327.5-3259_daily_bin1036.fits scfile=/scratch/kocevski/917243/ft2_4FGL_J2327.5-3259_daily_bin1036.fits outfile=/scratch/kocevski/917243/cmap_HighResolution_507859201_508118401_4FGL_J2327.5-3259_daily_bin1036.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.54
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/917243/ft1_filtered_4FGL_J2327.5-3259_daily_bin1036.fits evtable="EVENTS" scfile=/scratch/kocevski/917243/ft2_4FGL_J2327.5-3259_daily_bin1036.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/917243/Model_4FGL_J2327.5-3259_daily_bin1036.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/917243/ft1_filtered_4FGL_J2327.5-3259_daily_bin1036.fits.....................!
real 45.56
user 44.18
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/917243/ft1_filtered_4FGL_J2327.5-3259_daily_bin1036.fits', '/scratch/kocevski/917243/ft2_4FGL_J2327.5-3259_daily_bin1036.fits', expMap='/scratch/kocevski/917243/expmap_507859201_508118401_4FGL_J2327.5-3259_daily_bin1036.fits', expCube='/scratch/kocevski/917243/ltcube_507859201_508118401_4FGL_J2327.5-3259_daily_bin1036.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/917243/Model_4FGL_J2327.5-3259_daily_bin1036.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/917243/ft1_filtered_4FGL_J2327.5-3259_daily_bin1036.fits
Spacecraft file(s): /scratch/kocevski/917243/ft2_4FGL_J2327.5-3259_daily_bin1036.fits
Exposure map: /scratch/kocevski/917243/expmap_507859201_508118401_4FGL_J2327.5-3259_daily_bin1036.fits
Exposure cube: /scratch/kocevski/917243/ltcube_507859201_508118401_4FGL_J2327.5-3259_daily_bin1036.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/917243/Model_4FGL_J2327.5-3259_daily_bin1036.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) = 5765.0197861

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.1518       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    35.346       1.0000         .10000E-03   10000.    
     5 'Prefactor '    26.138       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.750       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .29270       1.0000         .10000E-03   10000.    
     8 'norm      '    10.786       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.1586       1.0000         .10000E-03   10000.    
    11 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    47.568       1.0000         .10000E-03   10000.    
    16 'Prefactor '    53.726       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.6766       1.0000         .10000E-03   10000.    
    19 'norm      '    2.3851       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    48.664       1.0000         .10000E-03   10000.    
    23 'Prefactor '    115.57       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10396E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .75732       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1562       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=   5765.014     FROM MIGRAD    STATUS=CONVERGED    635 CALLS     3320 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.513        .15734E-07** at limit **
   2  Prefactor     4.1497        3.9196        .95521E-07    .11585E-03
   3  Prefactor     .10000E-03    17.733       -.19314E-05** at limit **
   4  Prefactor     35.343        22.939       -.14634E-06   -.11979E-04
   5  Prefactor     26.144        43.538        .69642E-06    .28440E-04
   6  Prefactor     11.749        10.036        .82854E-06   -.18123E-03
   7  Prefactor     .29945        7.1135       -.13420E-06    .95642E-04
   8  norm          10.784        4.7847       -.38373E-06   -.17319E-03
   9  Prefactor     .10000E-03    5.3741       -.17066E-06** at limit **
  10  Prefactor     1.1617        8.2320        .38269E-05   -.49249E-04
  11  norm          .10000E-03    .15335       -.15536E-06** at limit **
  12  Prefactor     .10000E-03    14.171        .90604E-06** at limit **
  13  Prefactor     .10000E-03    4.3408       -.29761E-06** at limit **
  14  norm          .10000E-03    2.1742        .10906E-06** at limit **
  15  norm          47.568        13.322        .74136E-07   -.35713E-05
  16  Prefactor     53.744        44.211        .55831E-06    .65106E-04
  17  Prefactor     .10000E-03    24.419        .46569E-06** at limit **
  18  norm          2.6743        5.1375        .27160E-06   -.11955E-03
  19  norm          2.3853        3.6559        .42909E-06   -.14252E-03
  20  Prefactor     .10000E-03    30.887        .24006E-05** at limit **
  21  norm          .10000E-03    2.5622        .18129E-06** at limit **
  22  Prefactor     48.660        95.802        .33010E-06   -.10672E-04
  23  Prefactor     115.56        64.371       -.10404E-05   -.35660E-04
  24  Prefactor     .10000E-03    6.5816       -.16108E-06** at limit **
  25  Prefactor     .10000E-03    44.087       -.27216E-05** at limit **
  26  Normalizat    .75754        .18709       -.18490E-05    .20852E-04
  27  Prefactor     1.1560        .19601        .40430E-06   -.72021E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.14969
  Prefactor  = 0.0001
  Prefactor  = 35.3428
  Prefactor  = 26.1444
  Prefactor  = 11.7488
  Prefactor  = 0.299455
  norm       = 10.7844
  Prefactor  = 0.0001
  Prefactor  = 1.16168
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 47.5677
  Prefactor  = 53.7438
  Prefactor  = 0.0001
  norm       = 2.67426
  norm       = 2.38525
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 48.6598
  Prefactor  = 115.556
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.757537
  Prefactor  = 1.15596
 **********
 **   18 **HESSE 
 **********

 FCN=   5765.014     FROM HESSE     STATUS=OK           486 CALLS     3806 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.1497        3.9174        .13912E-03   -1.5301    
   3  Prefactor     .10000E-03    17.957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     35.343        22.934        .67407E-04   -1.4518    
   5  Prefactor     26.144        43.339        .78356E-04   -1.4685    
   6  Prefactor     11.749        9.9947        .58434E-03   -1.5022    
   7  Prefactor     .29945        43.434        .38134E-02   -1.5599    
   8  norm          10.784        4.7390        .99214E-04   -1.5051    
   9  Prefactor     .10000E-03    5.3897        .17194E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.1617        8.5570        .38715E-03   -1.5492    
  11  norm          .10000E-03    .16184        .58527E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    14.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.3750        .15466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.1765        .10921E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          47.568        13.326        .58139E-04   -1.4327    
  16  Prefactor     53.744        44.105        .54721E-04   -1.4240    
  17  Prefactor     .10000E-03    24.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.6743        5.0853        .17436E-03   -1.5381    
  19  norm          2.3853        3.6446        .17174E-03   -1.5399    
  20  Prefactor     .10000E-03    31.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.6218        .23692E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     48.660        95.927        .57483E-04   -1.4312    
  23  Prefactor     115.56        64.634        .18712E-03   -1.3554    
  24  Prefactor     .10000E-03    6.7518        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    44.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .75754        .21915        .26625E-03   -1.0166    
  27  Prefactor     1.1560        .23312        .24517E-03   -.87698    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.5776e-10
Minuit parameter uncertainties:
  1  5.63187e-06
  2  3.91766
  3  9.49622e-05
  4  22.9399
  5  43.3917
  6  9.99615
  7  7.21701
  8  4.73918
  9  2.17138e-05
  10  6.30671
  11  2.67976e-06
  12  4.69438e-05
  13  2.54292e-05
  14  5.63139e-06
  15  13.3269
  16  44.1322
  17  4.72447e-05
  18  5.0861
  19  3.64494
  20  0.0001991
  21  6.00111e-06
  22  96.2331
  23  64.6732
  24  3.62696e-05
  25  8.95912e-05
  26  0.219406
  27  0.233326
Done.

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

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.000e-04  4.724e-05  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:  1.156e+00  2.333e-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:  7.575e-01  2.194e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 351.883 -32.987
Photon Flux Upper Limit: 6.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.46e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/917243/likelihoodResults_507859201_508118401_4FGL_J2327.5-3259_daily_bin1036.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) = 5765.01458578
delta logL = -0.000194671630197

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5765.01439191
delta logL = -8.00154339231e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0142       1.0000          .0000       10.000    
     3 'Normalizat'    .75753       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1560       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=   5765.014     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      276 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10377E-03    17.476        .18142E-01** at limit **
   2  Index         2.9114        8.4640        .50000        .11595E-04
   3  Normalizat    .75753        .40036E-02    .26626E-03   -.44961E-04
   4  Prefactor     1.1560        .44844E-02    .24517E-03    .55459E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103775
  Index      = 2.91138
  Normalizat = 0.757534
  Prefactor  = 1.15596
 **********
 **   18 **HESSE 
 **********

 FCN=   5765.014     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      305 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10377E-03    105.91        .32667E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9114        7.3360        .50000       -.43094    
   3  Normalizat    .75753        .98716E-02    .10650E-04   -1.0166    
   4  Prefactor     1.1560        .11057E-01    .98069E-05   -.87698    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.27335e-09
Minuit parameter uncertainties:
  1  0.0400595
  2  395.187
  3  0.00987161
  4  0.0110572
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/917243': 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): 102
logL (Free Index) = 5765.01439171
delta logL = -6.06828507443e-07

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.038e-04  4.006e-02  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  2.911e+00  3.952e+02  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:  1.156e+00  1.106e-02  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:  7.575e-01  9.872e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 351.883 -32.987

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/917243/cmap_HighResolution_507859201_508118401_4FGL_J2327.5-3259_daily_bin1036.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.46e-03', job_status='DONE', photon_flux_upper_limit='6.99e-08', time_completed='2021-09-29 20:24:06.426911', job_id='917243', GAL2='1.16', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1632972246.43', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='-6.07e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='1036' AND source_name='4FGL J2327.5-3259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:24:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 917243: <4FGL_J2327.5-3259_daily_bin1036> in cluster <slac> Done

Job <4FGL_J2327.5-3259_daily_bin1036> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 20:10:32 2021
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 20:10:33 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:10:33 2021
Terminated at Wed Sep 29 20:24:07 2021
Results reported at Wed Sep 29 20:24:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5-3259_daily_bin1036 351.883 -32.9869 507859201 508118401 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 :                                   760.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             364.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            815 sec.

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

