/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 188 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 = 7169
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2327.5-3259_daily_bin260
RA = 351.883, Dec = -32.9869
tmin = 306720001, tmax = 306979201
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='912835', job_status='RUN', time_executed='2021-09-29 19:58:58.105347', time_epoch_executed='1632970738.11' WHERE source_name='4FGL J2327.5-3259' and cadence='daily' and bin_id='260'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/912835

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/912835/ft1_4FGL_J2327.5-3259_daily_bin260.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/912835/ft2_4FGL_J2327.5-3259_daily_bin260.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/912835/ft1_4FGL_J2327.5-3259_daily_bin260.fits outfile=/scratch/kocevski/912835/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin260.fits ra=351.883 dec=-32.9869 rad=12.0 tmin=306720001.0 tmax=306979201.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.93
user 4.71
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/912835/ft2_4FGL_J2327.5-3259_daily_bin260.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/912835/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin260.fits evtable="EVENTS" outfile="/scratch/kocevski/912835/ft1_filtered_4FGL_J2327.5-3259_daily_bin260.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/912835/ft1_filtered_4FGL_J2327.5-3259_daily_bin260.fits" evtable="EVENTS" scfile=/scratch/kocevski/912835/ft2_4FGL_J2327.5-3259_daily_bin260.fits sctable="SC_DATA" outfile=/scratch/kocevski/912835/ltcube_306720001_306979201_4FGL_J2327.5-3259_daily_bin260.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/912835/ft2_4FGL_J2327.5-3259_daily_bin260.fits
.....................!
real 11.55
user 11.18
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/912835/ft1_filtered_4FGL_J2327.5-3259_daily_bin260.fits evtable="EVENTS" scfile=/scratch/kocevski/912835/ft2_4FGL_J2327.5-3259_daily_bin260.fits sctable="SC_DATA" expcube=/scratch/kocevski/912835/ltcube_306720001_306979201_4FGL_J2327.5-3259_daily_bin260.fits outfile=/scratch/kocevski/912835/expmap_306720001_306979201_4FGL_J2327.5-3259_daily_bin260.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/912835/ltcube_306720001_306979201_4FGL_J2327.5-3259_daily_bin260.fits
.....................!
real 190.72
user 186.63
sys 3.77

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/912835/ft1_filtered_4FGL_J2327.5-3259_daily_bin260.fits scfile=/scratch/kocevski/912835/ft2_4FGL_J2327.5-3259_daily_bin260.fits outfile=/scratch/kocevski/912835/cmap_306720001_306979201_4FGL_J2327.5-3259_daily_bin260.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/912835/ft1_filtered_4FGL_J2327.5-3259_daily_bin260.fits scfile=/scratch/kocevski/912835/ft2_4FGL_J2327.5-3259_daily_bin260.fits outfile=/scratch/kocevski/912835/cmap_HighResolution_306720001_306979201_4FGL_J2327.5-3259_daily_bin260.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/912835/ft1_filtered_4FGL_J2327.5-3259_daily_bin260.fits evtable="EVENTS" scfile=/scratch/kocevski/912835/ft2_4FGL_J2327.5-3259_daily_bin260.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/912835/Model_4FGL_J2327.5-3259_daily_bin260.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/912835/ft1_filtered_4FGL_J2327.5-3259_daily_bin260.fits.....................!
real 31.02
user 29.79
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .47983       1.0000         .10000E-03   10000.    
     4 'Prefactor '    33.168       1.0000         .10000E-03   10000.    
     5 'Prefactor '    79.462       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.7665       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.3655       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    153.74       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.4602       1.0000         .10000E-03   10000.    
    15 'norm      '    47.323       1.0000         .10000E-03   10000.    
    16 'Prefactor '    40.718       1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.342       1.0000         .10000E-03   10000.    
    18 'norm      '    .10106E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.1306       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.5339       1.0000         .10000E-03   10000.    
    21 'norm      '    3.3410       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.3439       1.0000         .10000E-03   10000.    
    23 'Prefactor '    83.403       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .27014E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.3604       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .45249       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=   3346.981     FROM MIGRAD    STATUS=CONVERGED    629 CALLS     3342 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    48.749       -.62862E-06** at limit **
   2  Prefactor     .10000E-03    3.8115       -.88042E-06** at limit **
   3  Prefactor     .72465        27.436        .86892E-07    .12240E-04
   4  Prefactor     33.177        37.668        .20815E-07    .63399E-05
   5  Prefactor     79.477        48.304        .42136E-06    .23546E-04
   6  Prefactor     8.7714        15.771        .17359E-06    .31186E-05
   7  Prefactor     .10000E-03    4.0853        .16584E-06** at limit **
   8  norm          3.3659        3.2763       -.23722E-07   -.10822E-04
   9  Prefactor     .10000E-03    4.1241       -.11416E-06** at limit **
  10  Prefactor     .10000E-03    2.7712       -.17596E-06** at limit **
  11  norm          .10000E-03    .23533       -.26026E-06** at limit **
  12  Prefactor     153.99        109.99        .25301E-05    .20470E-03
  13  Prefactor     .10000E-03    3.2316       -.16336E-06** at limit **
  14  norm          2.4590        5.3045        .64360E-05    .68930E-03
  15  norm          47.318        19.803        .56897E-07   -.71239E-04
  16  Prefactor     40.733        53.144       -.27744E-05    .28602E-04
  17  Prefactor     23.456        74.612        .62860E-05    .53261E-04
  18  norm          .10000E-03    5.5647       -.25021E-06** at limit **
  19  norm          4.1308        3.5483       -.13491E-08    .54392E-05
  20  Prefactor     3.5370        46.633       -.13464E-06   -.24936E-06
  21  norm          3.3415        5.8642        .50316E-06   -.98045E-05
  22  Prefactor     1.3170        1257.0       -.10499E-04   -.93512E-05
  23  Prefactor     83.387        60.128        .40443E-06   -.53147E-04
  24  Prefactor     .10000E-03    3.2559       -.22153E-06** at limit **
  25  Prefactor     .10000E-03    190.72       -.57493E-05** at limit **
  26  Normalizat    1.3598        .28934       -.12967E-04    .37619E-03
  27  Prefactor     .45295        .28366        .21461E-04   -.26965E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.724647
  Prefactor  = 33.1769
  Prefactor  = 79.4769
  Prefactor  = 8.77141
  Prefactor  = 0.0001
  norm       = 3.36589
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 153.987
  Prefactor  = 0.0001
  norm       = 2.45903
  norm       = 47.3176
  Prefactor  = 40.7333
  Prefactor  = 23.4559
  norm       = 0.0001
  norm       = 4.13079
  Prefactor  = 3.53704
  norm       = 3.34154
  Prefactor  = 1.31703
  Prefactor  = 83.3867
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.35982
  Prefactor  = 0.452946
 **********
 **   18 **HESSE 
 **********

 FCN=   3346.981     FROM HESSE     STATUS=OK           490 CALLS     3832 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    48.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.8555        .11011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .72465        170.38        .58221E-02   -1.5538    
   4  Prefactor     33.177        37.646        .69578E-04   -1.4555    
   5  Prefactor     79.477        48.309        .22526E-03   -1.3923    
   6  Prefactor     8.7714        15.748        .13538E-03   -1.5116    
   7  Prefactor     .10000E-03    4.0886        .11421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.3659        3.2817        .10034E-03   -1.5341    
   9  Prefactor     .10000E-03    4.1252        .11475E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.7766        .94041E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .26007        .54728E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     153.99        110.22        .16256E-03   -1.3220    
  13  Prefactor     .10000E-03    3.2364        .10157E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.4590        5.5319        .94049E-03   -1.5394    
  15  norm          47.318        19.789        .58288E-04   -1.4331    
  16  Prefactor     40.733        53.729        .62818E-04   -1.4431    
  17  Prefactor     23.456        74.772        .82909E-04   -1.4739    
  18  norm          .10000E-03    5.5986        .13267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.1308        3.5441        .97286E-04   -1.5301    
  20  Prefactor     3.5370        46.332        .21503E-03   -1.5332    
  21  norm          3.3415        5.8283        .17203E-03   -1.5342    
  22  Prefactor     1.3170        1320.9        .37786E-02   -1.5478    
  23  Prefactor     83.387        60.124        .21992E-03   -1.3879    
  24  Prefactor     .10000E-03    3.2732        .10194E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    193.88        .21433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.3598        .30861        .21370E-03   -.81798    
  27  Prefactor     .45295        .29972        .35512E-03   -1.1419    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51397e-09
Minuit parameter uncertainties:
  1  3.20608e-05
  2  7.64069e-06
  3  22.2859
  4  37.6725
  5  48.3326
  6  15.7556
  7  5.56906e-06
  8  3.28191
  9  2.67179e-06
  10  1.0717e-06
  11  1.33246e-06
  12  110.368
  13  1.19586e-06
  14  5.53309
  15  19.7913
  16  53.793
  17  75.0728
  18  9.97094e-05
  19  3.54433
  20  25.6269
  21  5.82926
  22  85.3775
  23  60.168
  24  4.12688e-07
  25  0.000611017
  26  0.309027
  27  0.300771
Done.

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

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  2.346e+01  7.507e+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:  4.529e-01  3.008e-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:  1.360e+00  3.090e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/912835/likelihoodResults_306720001_306979201_4FGL_J2327.5-3259_daily_bin260.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) = 3346.08806273
delta logL = 0.89315779398

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3346.07472069
delta logL = 0.906499829085

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8031       1.0000         .10000E-03   10000.    
     2 'Index     '    4.4286       1.0000          .0000       10.000    
     3 'Normalizat'    1.2678       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .51684       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=   3346.075     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      361 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8122        176.40        .12946E-03    .37562E-03
   2  Index         4.4277        7.1073        .49746E-02    .73267E-04
   3  Normalizat    1.2685        .30163        .21946E-03   -.10825E-03
   4  Prefactor     .51616        .29718        .33373E-03   -.23716E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.81222
  Index      = 4.42765
  Normalizat = 1.2685
  Prefactor  = 0.516164
 **********
 **   18 **HESSE 
 **********

 FCN=   3346.075     FROM HESSE     STATUS=OK            25 CALLS      386 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8122        20.874        .51786E-05   -1.5149    
   2  Index         4.4277        1.5910        .19898E-03   -.11472    
   3  Normalizat    1.2685        .29952        .43891E-04   -.84511    
   4  Prefactor     .51616        .29737        .13349E-04   -1.1124    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.33347e-10
Minuit parameter uncertainties:
  1  20.8939
  2  1.61955
  3  0.29993
  4  0.298274
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/912835': 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) = 3346.07471793
delta logL = 0.906502590562

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  7.812e+00  2.089e+01  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  4.428e+00  1.620e+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:  5.162e-01  2.983e-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:  1.269e+00  2.999e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.02
Ra Dec: 351.883 -32.987
Photon Index (Free Index): 4.43 +/- 1.62
Photon Flux (Free Index): 9.74e-08 +/- 8.30e-08
Energy Flux (Free Index): 1.37e-05 +/- 1.19e-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/912835/cmap_HighResolution_306720001_306979201_4FGL_J2327.5-3259_daily_bin260.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.24e-02', comment='SUCCESS', energy_flux2='1.37e-05', dlogl='9.07e-01', photon_flux2='9.74e-08', job_status='DONE', time_completed='2021-09-29 20:08:33.879335', photon_index_error2='1.62', photon_index2='4.43', ts='0.12', fit_tolerance='1e-08', GAL='0.45', photon_index_error='0.00', photon_flux_upper_limit='1.59e-07', energy_flux_error2='1.19e-05', EG='1.36', time_epoch_completed='1632971313.88', return_code='0', job_id='912835', GAL2='0.52', EG2='1.27', return_code2='0', photon_flux_error2='8.30e-08', ts2='2.02', photon_index='2.56' WHERE bin_id='260' AND source_name='4FGL J2327.5-3259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:08:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 912835: <4FGL_J2327.5-3259_daily_bin260> in cluster <slac> Done

Job <4FGL_J2327.5-3259_daily_bin260> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 19:55:40 2021
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 19:55:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 19:55:41 2021
Terminated at Wed Sep 29 20:08:34 2021
Results reported at Wed Sep 29 20:08:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5-3259_daily_bin260 351.883 -32.9869 306720001 306979201 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 :                                   572.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             216.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              6
    Max Threads :                                22
    Run time :                                   773 sec.
    Turnaround time :                            774 sec.

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

