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


Performing analysis on: 4FGL_J2327.5-3259_daily_bin985
RA = 351.883, Dec = -32.9869
tmin = 494640001, tmax = 494899201
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='917162', job_status='RUN', time_executed='2021-09-29 20:12:40.308028', time_epoch_executed='1632971560.31' WHERE source_name='4FGL J2327.5-3259' and cadence='daily' and bin_id='985'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/917162

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/917162/ft1_4FGL_J2327.5-3259_daily_bin985.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/917162/ft2_4FGL_J2327.5-3259_daily_bin985.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/917162/ft1_4FGL_J2327.5-3259_daily_bin985.fits outfile=/scratch/kocevski/917162/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin985.fits ra=351.883 dec=-32.9869 rad=12.0 tmin=494640001.0 tmax=494899201.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.99
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/917162/ft2_4FGL_J2327.5-3259_daily_bin985.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/917162/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin985.fits evtable="EVENTS" outfile="/scratch/kocevski/917162/ft1_filtered_4FGL_J2327.5-3259_daily_bin985.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/917162/ft1_filtered_4FGL_J2327.5-3259_daily_bin985.fits" evtable="EVENTS" scfile=/scratch/kocevski/917162/ft2_4FGL_J2327.5-3259_daily_bin985.fits sctable="SC_DATA" outfile=/scratch/kocevski/917162/ltcube_494640001_494899201_4FGL_J2327.5-3259_daily_bin985.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/917162/ft2_4FGL_J2327.5-3259_daily_bin985.fits
.....................!
real 11.63
user 11.30
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/917162/ft1_filtered_4FGL_J2327.5-3259_daily_bin985.fits evtable="EVENTS" scfile=/scratch/kocevski/917162/ft2_4FGL_J2327.5-3259_daily_bin985.fits sctable="SC_DATA" expcube=/scratch/kocevski/917162/ltcube_494640001_494899201_4FGL_J2327.5-3259_daily_bin985.fits outfile=/scratch/kocevski/917162/expmap_494640001_494899201_4FGL_J2327.5-3259_daily_bin985.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/917162/ltcube_494640001_494899201_4FGL_J2327.5-3259_daily_bin985.fits
.....................!
real 190.56
user 185.29
sys 4.96

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/917162/ft1_filtered_4FGL_J2327.5-3259_daily_bin985.fits scfile=/scratch/kocevski/917162/ft2_4FGL_J2327.5-3259_daily_bin985.fits outfile=/scratch/kocevski/917162/cmap_494640001_494899201_4FGL_J2327.5-3259_daily_bin985.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/917162/ft1_filtered_4FGL_J2327.5-3259_daily_bin985.fits scfile=/scratch/kocevski/917162/ft2_4FGL_J2327.5-3259_daily_bin985.fits outfile=/scratch/kocevski/917162/cmap_HighResolution_494640001_494899201_4FGL_J2327.5-3259_daily_bin985.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/917162/ft1_filtered_4FGL_J2327.5-3259_daily_bin985.fits evtable="EVENTS" scfile=/scratch/kocevski/917162/ft2_4FGL_J2327.5-3259_daily_bin985.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/917162/Model_4FGL_J2327.5-3259_daily_bin985.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/917162/ft1_filtered_4FGL_J2327.5-3259_daily_bin985.fits.....................!
real 35.92
user 34.66
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.0358       1.0000         .10000E-03   10000.    
     3 'Prefactor '    24.721       1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.524       1.0000         .10000E-03   10000.    
     5 'Prefactor '    58.904       1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.750       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.7870       1.0000         .10000E-03   10000.    
     8 'norm      '    .14660E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.415       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .53179       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .21116E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.2528       1.0000         .10000E-03   10000.    
    18 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.7992       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.2287       1.0000         .10000E-03   10000.    
    22 'Prefactor '    66.997       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.7390       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .97457       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .95479       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=   4109.156     FROM MIGRAD    STATUS=CONVERGED    649 CALLS     3366 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.789       -.17171E-06** at limit **
   2  Prefactor     2.0358        3.6801        .28983E-06   -.86734E-05
   3  Prefactor     24.722        22.283       -.21348E-06   -.26975E-05
   4  Prefactor     23.529        31.539        .77683E-06    .23001E-05
   5  Prefactor     58.904        49.243       -.40337E-06   -.18959E-04
   6  Prefactor     19.750        17.484        .58074E-06   -.15977E-03
   7  Prefactor     6.7878        10.329        .35634E-05    .28763E-04
   8  norm          .10000E-03    4.9441       -.63488E-07** at limit **
   9  Prefactor     11.387        14.653       -.13759E-07   -.19116E-03
  10  Prefactor     .56125        8.7753        .14609E-05   -.25607E-03
  11  norm          .10000E-03    .40887       -.41050E-07** at limit **
  12  Prefactor     .10000E-03    58.288       -.36118E-06** at limit **
  13  Prefactor     .10000E-03    5.4012       -.26352E-07** at limit **
  14  norm          .10000E-03    2.3293       -.59763E-08** at limit **
  15  norm          .10013E-03    8.7397        .14323E-05** at limit **
  16  Prefactor     .10000E-03    24.774       -.13001E-06** at limit **
  17  Prefactor     3.3111        157.00        .19229E-06    .39230E-04
  18  norm          .10000E-03    2.6707       -.25213E-07** at limit **
  19  norm          3.8000        3.6849        .26816E-06   -.15188E-04
  20  Prefactor     .10000E-03    45.706       -.90686E-07** at limit **
  21  norm          1.2294        3.9174        .10295E-05    .28047E-04
  22  Prefactor     66.924        94.951        .87653E-07   -.11338E-03
  23  Prefactor     .10000E-03    14.989        .10677E-06** at limit **
  24  Prefactor     6.7408        8.5440        .46689E-05    .27817E-04
  25  Prefactor     .10000E-03    12.714       -.24803E-06** at limit **
  26  Normalizat    .97431        .22351       -.37707E-05   -.21897E-03
  27  Prefactor     .95493        .22067        .75973E-06   -.32859E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.03583
  Prefactor  = 24.7223
  Prefactor  = 23.5289
  Prefactor  = 58.9043
  Prefactor  = 19.7496
  Prefactor  = 6.78784
  norm       = 0.0001
  Prefactor  = 11.3874
  Prefactor  = 0.561247
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100129
  Prefactor  = 0.0001
  Prefactor  = 3.31113
  norm       = 0.0001
  norm       = 3.80002
  Prefactor  = 0.000100001
  norm       = 1.22936
  Prefactor  = 66.924
  Prefactor  = 0.0001
  Prefactor  = 6.74077
  Prefactor  = 0.0001
  Normalizat = 0.974306
  Prefactor  = 0.954929
 **********
 **   18 **HESSE 
 **********

 FCN=   4109.156     FROM HESSE     STATUS=OK           492 CALLS     3858 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.0358        3.6564        .15648E-03   -1.5423    
   3  Prefactor     24.722        22.280        .80566E-04   -1.4713    
   4  Prefactor     23.529        31.538        .82587E-04   -1.4737    
   5  Prefactor     58.904        49.222        .52274E-04   -1.4171    
   6  Prefactor     19.750        17.494        .90126E-04   -1.4819    
   7  Prefactor     6.7878        10.332        .77007E-03   -1.5187    
   8  norm          .10000E-03    9.0081        .25714E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.387        15.029        .11857E-03   -1.5033    
  10  Prefactor     .56125        52.680        .28972E-02   -1.5558    
  11  norm          .10000E-03    .51177        .73618E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    58.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.4126        .14537E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.3333        .95543E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10013E-03    63.391        .35815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    24.837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.3111        152.59        .22456E-03   -1.5344    
  18  norm          .10000E-03    2.6980        .10216E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.8000        3.6848        .11713E-03   -1.5318    
  20  Prefactor     .10000E-03    45.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.2294        3.8738        .21608E-03   -1.5486    
  22  Prefactor     66.924        94.830        .24517E-03   -1.4070    
  23  Prefactor     .10000E-03    14.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     6.7408        8.5506        .77284E-03   -1.5189    
  25  Prefactor     .10000E-03    12.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .97431        .26467        .23524E-03   -.93896    
  27  Prefactor     .95493        .26130        .25405E-03   -.94247    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.20145e-09
Minuit parameter uncertainties:
  1  6.79525e-05
  2  3.65679
  3  22.2876
  4  31.5603
  5  49.2563
  6  17.499
  7  10.335
  8  9.24458e-07
  9  15.0341
  10  10.8839
  11  8.05194e-07
  12  0.000275479
  13  3.90875e-07
  14  9.35483e-07
  15  0.00572753
  16  3.46404e-05
  17  45.0769
  18  9.17848e-07
  19  3.685
  20  0.000464454
  21  3.87461
  22  95.0449
  23  7.22279e-05
  24  8.55215
  25  6.28001e-05
  26  0.265025
  27  0.261646
Done.

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

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  3.311e+00  4.508e+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:  9.549e-01  2.616e-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.743e-01  2.650e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 351.883 -32.987
Photon Flux Upper Limit: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/917162/likelihoodResults_494640001_494899201_4FGL_J2327.5-3259_daily_bin985.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) = 4108.97014744
delta logL = 0.186001897194

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4108.90040979
delta logL = 0.255739547002

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .97137       1.0000         .10000E-03   10000.    
     2 'Index     '    5.1500       1.0000          .0000       10.000    
     3 'Normalizat'    .92475       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98969       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=   4108.900     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      225 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .95105        24.701        .20836E-01    .76636E-03
   2  Index         5.1618        3.6211        .20145        .66862E-04
   3  Normalizat    .92477        .34288E-01    .45217E-01    .11220E-04
   4  Prefactor     .98994        .36905E-01    .46138E-01    .80358E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.951054
  Index      = 5.16175
  Normalizat = 0.924765
  Prefactor  = 0.989942
 **********
 **   18 **HESSE 
 **********

 FCN=   4108.900     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      260 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .95105        105.13        .94553E-03   -1.5513    
   2  Index         5.1618        6.5723        .77057E-02    .32356E-01
   3  Normalizat    .92477        .16688        .24083E-03   -.95595    
   4  Prefactor     .98994        .17692        .25007E-03   -.93066    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.02176e-11
Minuit parameter uncertainties:
  1  20.0333
  2  12.667
  3  0.166976
  4  0.177025
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/917162': 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) = 4108.9004013
delta logL = 0.255748034935

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  9.511e-01  2.003e+01  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  5.162e+00  1.267e+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:  9.899e-01  1.770e-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.248e-01  1.670e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/917162/cmap_HighResolution_494640001_494899201_4FGL_J2327.5-3259_daily_bin985.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.88e-03', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2021-09-29 20:23:19.447628', job_id='917162', GAL2='0.99', fit_tolerance='1e-08', EG2='0.92', EG='0.97', time_epoch_completed='1632972199.45', return_code2='102', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='2.56e-01', ts2='0.55', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='985' AND source_name='4FGL J2327.5-3259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:23:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 917162: <4FGL_J2327.5-3259_daily_bin985> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5-3259_daily_bin985 351.883 -32.9869 494640001 494899201 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 :                                   622.03 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             265.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   772 sec.
    Turnaround time :                            775 sec.

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

