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


Performing analysis on: 4FGL_J2327.5-3259_daily_bin1639
RA = 351.883, Dec = -32.9869
tmin = 664156801, tmax = 664416001
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='202161', job_status='RUN', time_executed='2022-01-21 00:42:46.750565', time_epoch_executed='1642754566.75' WHERE source_name='4FGL J2327.5-3259' and cadence='daily' and bin_id='1639'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/202161

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/202161/ft1_4FGL_J2327.5-3259_daily_bin1639.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/202161/ft2_4FGL_J2327.5-3259_daily_bin1639.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/202161/ft1_4FGL_J2327.5-3259_daily_bin1639.fits outfile=/scratch/kocevski/202161/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin1639.fits ra=351.883 dec=-32.9869 rad=12.0 tmin=664156801.0 tmax=664416001.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.99
user 3.76
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/202161/ft1_filtered_4FGL_J2327.5-3259_daily_bin1639.fits" evtable="EVENTS" scfile=/scratch/kocevski/202161/ft2_4FGL_J2327.5-3259_daily_bin1639.fits sctable="SC_DATA" outfile=/scratch/kocevski/202161/ltcube_664156801_664416001_4FGL_J2327.5-3259_daily_bin1639.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/202161/ft2_4FGL_J2327.5-3259_daily_bin1639.fits
.....................!
real 12.26
user 11.91
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/202161/ft1_filtered_4FGL_J2327.5-3259_daily_bin1639.fits evtable="EVENTS" scfile=/scratch/kocevski/202161/ft2_4FGL_J2327.5-3259_daily_bin1639.fits sctable="SC_DATA" expcube=/scratch/kocevski/202161/ltcube_664156801_664416001_4FGL_J2327.5-3259_daily_bin1639.fits outfile=/scratch/kocevski/202161/expmap_664156801_664416001_4FGL_J2327.5-3259_daily_bin1639.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/202161/ltcube_664156801_664416001_4FGL_J2327.5-3259_daily_bin1639.fits
.....................!
real 190.81
user 185.44
sys 4.98

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/202161/ft1_filtered_4FGL_J2327.5-3259_daily_bin1639.fits scfile=/scratch/kocevski/202161/ft2_4FGL_J2327.5-3259_daily_bin1639.fits outfile=/scratch/kocevski/202161/cmap_664156801_664416001_4FGL_J2327.5-3259_daily_bin1639.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/202161/ft1_filtered_4FGL_J2327.5-3259_daily_bin1639.fits scfile=/scratch/kocevski/202161/ft2_4FGL_J2327.5-3259_daily_bin1639.fits outfile=/scratch/kocevski/202161/cmap_HighResolution_664156801_664416001_4FGL_J2327.5-3259_daily_bin1639.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/202161/ft1_filtered_4FGL_J2327.5-3259_daily_bin1639.fits evtable="EVENTS" scfile=/scratch/kocevski/202161/ft2_4FGL_J2327.5-3259_daily_bin1639.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/202161/Model_4FGL_J2327.5-3259_daily_bin1639.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/202161/ft1_filtered_4FGL_J2327.5-3259_daily_bin1639.fits......................!
real 31.67
user 30.28
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10709E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.5953       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .37945       1.0000         .10000E-03   10000.    
    12 'Prefactor '    58.404       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .21149       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .40556E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.048       1.0000         .10000E-03   10000.    
    18 'norm      '    3.3028       1.0000         .10000E-03   10000.    
    19 'norm      '    11.653       1.0000         .10000E-03   10000.    
    20 'Prefactor '    33.632       1.0000         .10000E-03   10000.    
    21 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.5382       1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.4564       1.0000         .10000E-03   10000.    
    25 'Prefactor '    33.989       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .78126       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0646       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=   3471.648     FROM MIGRAD    STATUS=CONVERGED    680 CALLS     3786 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    62.987       -.27264E-06** at limit **
   2  Prefactor     6.5929        6.4639        .35369E-06    .14679E-04
   3  Prefactor     .10000E-03    13.273       -.57540E-06** at limit **
   4  Prefactor     .10000E-03    8.5357       -.26753E-07** at limit **
   5  Prefactor     .10000E-03    32.528        .13558E-07** at limit **
   6  Prefactor     .10000E-03    14.745       -.83268E-06** at limit **
   7  Prefactor     .10000E-03    13.851        .10116E-05** at limit **
   8  norm          .10000E-03    1.5134       -.23929E-08** at limit **
   9  Prefactor     .10000E-03    6.0987        .14087E-08** at limit **
  10  Prefactor     .10000E-03    4.8884        .46781E-07** at limit **
  11  norm          .37925        .49979        .10300E-06    .33349E-03
  12  Prefactor     58.399        72.001       -.29029E-06    .34920E-04
  13  Prefactor     .10000E-03    3.7684        .11602E-07** at limit **
  14  norm          .10000E-03    1.9833       -.11755E-06** at limit **
  15  norm          .81368E-01    12.689       -.17994E-05    .50881E-03
  16  Prefactor     .10021E-03    44.844       -.63874E-05** at limit **
  17  Prefactor     11.134        117.39        .74025E-05    .12945E-03
  18  norm          3.3098        4.7832        .36556E-05    .53559E-03
  19  norm          11.653        6.0564        .35295E-06    .29889E-04
  20  Prefactor     33.615        34.288        .24798E-06   -.14414E-05
  21  norm          .10000E-03    2.4347       -.20588E-06** at limit **
  22  Prefactor     .10000E-03    40.707       -.20099E-06** at limit **
  23  Prefactor     5.5209        103.98       -.98251E-06   -.32594E-05
  24  Prefactor     7.4544        12.589        .10341E-06    .13264E-03
  25  Prefactor     33.991        67.041       -.61607E-07    .12310E-04
  26  Normalizat    .78140        .24118       -.17400E-05    .49911E-03
  27  Prefactor     1.0648        .24103       -.19967E-05    .46111E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.59289
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.379255
  Prefactor  = 58.3992
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0813679
  Prefactor  = 0.000100207
  Prefactor  = 11.1344
  norm       = 3.30978
  norm       = 11.653
  Prefactor  = 33.6152
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.52088
  Prefactor  = 7.45438
  Prefactor  = 33.9906
  Normalizat = 0.781397
  Prefactor  = 1.06479
 **********
 **   18 **HESSE 
 **********

 FCN=   3471.648     FROM HESSE     STATUS=OK           492 CALLS     4278 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    63.034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.5929        6.4518        .13541E-03   -1.5194    
   3  Prefactor     .10000E-03    13.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.5373        .16814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    32.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.5164        .70778E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.1045        .14208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.9267        .12692E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .37925        .46912        .45883E-03   -1.5585    
  12  Prefactor     58.399        72.070        .52496E-04   -1.4178    
  13  Prefactor     .10000E-03    3.7725        .11170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.9852        .81061E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .81368E-01    33.042        .55955E-01   -1.5651    
  16  Prefactor     .10021E-03    448.97        .69363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.134        128.63        .12053E-03   -1.5040    
  18  norm          3.3098        4.8213        .73947E-03   -1.5344    
  19  norm          11.653        6.0494        .98578E-04   -1.5025    
  20  Prefactor     33.615        34.289        .69098E-04   -1.4548    
  21  norm          .10000E-03    2.4448        .89752E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    40.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.5209        104.24        .17072E-03   -1.5238    
  24  Prefactor     7.4544        12.645        .14687E-03   -1.5162    
  25  Prefactor     33.991        66.805        .68735E-04   -1.4541    
  26  Normalizat    .78140        .28211        .25381E-03   -1.0076    
  27  Prefactor     1.0648        .28608        .23507E-03   -.90600    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.75632e-09
Minuit parameter uncertainties:
  1  8.59357e-05
  2  6.45247
  3  1.26471e-05
  4  7.40945e-06
  5  7.26687e-05
  6  6.57721e-05
  7  9.97968e-05
  8  3.20284e-06
  9  5.41783e-06
  10  7.09071e-06
  11  0.469126
  12  72.1782
  13  5.6266e-06
  14  6.85013e-06
  15  3.27915
  16  0.0194401
  17  75.8944
  18  4.82185
  19  6.04971
  20  34.3088
  21  4.56402e-06
  22  6.12431e-06
  23  48.0763
  24  12.6492
  25  66.9521
  26  0.282636
  27  0.286497
Done.

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

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.113e+01  7.589e+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:  1.065e+00  2.865e-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.814e-01  2.826e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.03
Ra Dec: 351.883 -32.987
Photon Flux Upper Limit: 1.45e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.13e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/202161/likelihoodResults_664156801_664416001_4FGL_J2327.5-3259_daily_bin1639.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) = 3471.58453779
delta logL = 0.0631062851066

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3471.58109562
delta logL = 0.0665484512056

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.280       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0618       1.0000          .0000       10.000    
     3 'Normalizat'    .78683       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0526       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.

 FCN=   3471.581     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      257 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.280        83.631        .17910E-02    .24296E-03
   2  Index         2.0617        1.0374        .25445E-01    .10205E-04
   3  Normalizat    .78710        .22088        .43438E-01    .24688E-04
   4  Prefactor     1.0523        .23795        .39761E-01    .24303E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.2805
  Index      = 2.06166
  Normalizat = 0.787101
  Prefactor  = 1.05228
 **********
 **   18 **HESSE 
 **********

 FCN=   3471.581     FROM HESSE     STATUS=OK            29 CALLS      286 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.280        83.295        .71641E-04   -1.4589    
   2  Index         2.0617        1.0344        .10178E-02   -.62817    
   3  Normalizat    .78710        .25985        .25295E-03   -1.0055    
   4  Prefactor     1.0523        .28014        .23627E-03   -.91007    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32615e-09
Minuit parameter uncertainties:
  1  83.6073
  2  1.04597
  3  0.260258
  4  0.280533
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/202161': 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) = 3471.58109502
delta logL = 0.0665490563251

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  3.128e+01  8.361e+01  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  2.062e+00  1.046e+00  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.052e+00  2.805e-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.871e-01  2.603e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
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/202161/cmap_HighResolution_664156801_664416001_4FGL_J2327.5-3259_daily_bin1639.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', job_status='DONE', photon_flux_upper_limit='1.45e-07', time_completed='2022-01-21 00:52:30.705034', job_id='202161', GAL2='1.05', fit_tolerance='1e-08', EG2='0.79', EG='0.78', time_epoch_completed='1642755150.71', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='6.65e-02', ts2='0.16', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='1639' AND source_name='4FGL J2327.5-3259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jan 21 00:52:30 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 202161: <4FGL_J2327.5-3259_daily_bin1639> in cluster <slac> Done

Job <4FGL_J2327.5-3259_daily_bin1639> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Jan 21 00:40:12 2022
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jan 21 00:40:15 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jan 21 00:40:15 2022
Terminated at Fri Jan 21 00:52:31 2022
Results reported at Fri Jan 21 00:52:31 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5-3259_daily_bin1639 351.883 -32.9869 664156801 664416001 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 :                                   586.20 sec.
    Max Memory :                                 1224 MB
    Average Memory :                             252.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   735 sec.
    Turnaround time :                            739 sec.

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

