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


Performing analysis on: 4FGL_J2327.5-3259_daily_bin932
RA = 351.883, Dec = -32.9869
tmin = 480902401, tmax = 481161601
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='917081', job_status='RUN', time_executed='2021-09-29 20:13:05.971936', time_epoch_executed='1632971585.97' WHERE source_name='4FGL J2327.5-3259' and cadence='daily' and bin_id='932'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/917081

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/917081/ft1_4FGL_J2327.5-3259_daily_bin932.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/917081/ft2_4FGL_J2327.5-3259_daily_bin932.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/917081/ft1_4FGL_J2327.5-3259_daily_bin932.fits outfile=/scratch/kocevski/917081/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin932.fits ra=351.883 dec=-32.9869 rad=12.0 tmin=480902401.0 tmax=481161601.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.74
user 3.47
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/917081/ft1_filtered_4FGL_J2327.5-3259_daily_bin932.fits" evtable="EVENTS" scfile=/scratch/kocevski/917081/ft2_4FGL_J2327.5-3259_daily_bin932.fits sctable="SC_DATA" outfile=/scratch/kocevski/917081/ltcube_480902401_481161601_4FGL_J2327.5-3259_daily_bin932.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/917081/ft2_4FGL_J2327.5-3259_daily_bin932.fits
.....................!
real 11.97
user 11.61
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/917081/ft1_filtered_4FGL_J2327.5-3259_daily_bin932.fits evtable="EVENTS" scfile=/scratch/kocevski/917081/ft2_4FGL_J2327.5-3259_daily_bin932.fits sctable="SC_DATA" expcube=/scratch/kocevski/917081/ltcube_480902401_481161601_4FGL_J2327.5-3259_daily_bin932.fits outfile=/scratch/kocevski/917081/expmap_480902401_481161601_4FGL_J2327.5-3259_daily_bin932.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/917081/ltcube_480902401_481161601_4FGL_J2327.5-3259_daily_bin932.fits
.....................!
real 191.27
user 185.91
sys 5.01

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/917081/ft1_filtered_4FGL_J2327.5-3259_daily_bin932.fits scfile=/scratch/kocevski/917081/ft2_4FGL_J2327.5-3259_daily_bin932.fits outfile=/scratch/kocevski/917081/cmap_480902401_481161601_4FGL_J2327.5-3259_daily_bin932.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.56
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/917081/ft1_filtered_4FGL_J2327.5-3259_daily_bin932.fits scfile=/scratch/kocevski/917081/ft2_4FGL_J2327.5-3259_daily_bin932.fits outfile=/scratch/kocevski/917081/cmap_HighResolution_480902401_481161601_4FGL_J2327.5-3259_daily_bin932.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=351.883 yref=-32.9869 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.144       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.1462       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.2965       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .16254E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .25033       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    12.669       1.0000         .10000E-03   10000.    
    15 'norm      '    .46320E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    43.684       1.0000         .10000E-03   10000.    
    18 'norm      '    .61478       1.0000         .10000E-03   10000.    
    19 'norm      '    5.3718       1.0000         .10000E-03   10000.    
    20 'Prefactor '    36.518       1.0000         .10000E-03   10000.    
    21 'norm      '    1.5349       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    41.801       1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.7710       1.0000         .10000E-03   10000.    
    25 'Prefactor '    124.09       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .86214       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1664       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=   4318.949     FROM MIGRAD    STATUS=CONVERGED    649 CALLS     3302 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.069        53.118        .78246E-05   -.48636E-04
   2  Prefactor     2.1465        2.7234        .12565E-06   -.33037E-04
   3  Prefactor     .10000E-03    8.8839        .43397E-07** at limit **
   4  Prefactor     1.2133        93.400        .48309E-05   -.41856E-04
   5  Prefactor     .10000E-03    14.538        .29405E-06** at limit **
   6  Prefactor     .10000E-03    36.361        .24895E-05** at limit **
   7  Prefactor     .10000E-03    15.097        .14752E-05** at limit **
   8  norm          .10000E-03    1.4519        .16692E-06** at limit **
   9  Prefactor     .10000E-03    4.9379        .17284E-06** at limit **
  10  Prefactor     .10000E-03    3.0638        .27017E-06** at limit **
  11  norm          .25066        .50557        .43603E-06    .19085E-02
  12  Prefactor     .10000E-03    59.547       -.30554E-06** at limit **
  13  Prefactor     .10000E-03    4.8635        .27679E-06** at limit **
  14  norm          12.668        7.4835       -.18106E-05   -.70078E-04
  15  norm          .10000E-03    8.2194       -.33505E-05** at limit **
  16  Prefactor     .10000E-03    17.066       -.85909E-07** at limit **
  17  Prefactor     43.669        59.723        .17210E-05   -.82322E-04
  18  norm          .61688        7.3361        .20413E-04   -.24085E-03
  19  norm          5.3712        5.4895        .28384E-06   -.11992E-03
  20  Prefactor     36.510        43.213        .15822E-05   -.31097E-04
  21  norm          1.5347        3.8879       -.17309E-05    .21502E-05
  22  Prefactor     .10000E-03    46.189       -.95420E-06** at limit **
  23  Prefactor     41.800        60.787        .12723E-05   -.18159E-04
  24  Prefactor     8.7704        7.3195        .27591E-06   -.15535E-03
  25  Prefactor     124.09        65.575        .58727E-06   -.38839E-04
  26  Normalizat    .86242        .21456       -.18613E-05   -.69917E-03
  27  Prefactor     1.1661        .22752       -.35383E-05   -.88335E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.0687
  Prefactor  = 2.14649
  Prefactor  = 0.0001
  Prefactor  = 1.21326
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.250662
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 12.6681
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.6692
  norm       = 0.616883
  norm       = 5.37123
  Prefactor  = 36.5104
  norm       = 1.53468
  Prefactor  = 0.0001
  Prefactor  = 41.8002
  Prefactor  = 8.77042
  Prefactor  = 124.087
  Normalizat = 0.86242
  Prefactor  = 1.16607
 **********
 **   18 **HESSE 
 **********

 FCN=   4318.949     FROM HESSE     STATUS=OK           482 CALLS     3784 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.069        53.140        .79887E-04   -1.4706    
   2  Prefactor     2.1465        2.7137        .11864E-03   -1.5415    
   3  Prefactor     .10000E-03    8.8882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2133        95.998        .38840E-03   -1.5488    
   5  Prefactor     .10000E-03    14.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    37.512        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.708        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.4553        .77318E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.9429        .14260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.0739        .11229E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .25066        .46782        .63194E-03   -1.5608    
  12  Prefactor     .10000E-03    59.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.8775        .14150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          12.668        7.5050        .11254E-03   -1.4996    
  15  norm          .10000E-03    27.305        .35789E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    17.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     43.669        59.619        .60657E-04   -1.4385    
  18  norm          .61688        7.4397        .15967E-02   -1.5551    
  19  norm          5.3712        5.4721        .14115E-03   -1.5244    
  20  Prefactor     36.510        43.153        .66319E-04   -1.4499    
  21  norm          1.5347        3.8543        .19463E-03   -1.5460    
  22  Prefactor     .10000E-03    46.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     41.800        60.775        .62002E-04   -1.4414    
  24  Prefactor     8.7704        7.3255        .67672E-03   -1.5116    
  25  Prefactor     124.09        65.590        .36133E-04   -1.3475    
  26  Normalizat    .86242        .25973        .25884E-03   -.97794    
  27  Prefactor     1.1661        .27654        .24520E-03   -.87382    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35572e-09
Minuit parameter uncertainties:
  1  53.2404
  2  2.71383
  3  1.35942e-05
  4  21.6194
  5  3.15749e-06
  6  0.000592709
  7  0.000484095
  8  1.40875e-05
  9  2.1808e-05
  10  3.30167e-05
  11  0.467822
  12  0.000410592
  13  4.80352e-05
  14  7.50556
  15  0.000154195
  16  5.71126e-06
  17  59.7009
  18  4.28492
  19  5.47263
  20  43.1896
  21  3.85489
  22  4.24947e-05
  23  60.8651
  24  7.32621
  25  65.628
  26  0.26011
  27  0.276887
Done.

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

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  4.367e+01  5.970e+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.166e+00  2.769e-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:  8.624e-01  2.601e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/917081/likelihoodResults_480902401_481161601_4FGL_J2327.5-3259_daily_bin932.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) = 4318.79425659
delta logL = 0.154444146448

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4318.79142288
delta logL = 0.157277860038

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.197       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1215       1.0000          .0000       10.000    
     3 'Normalizat'    .84221       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1802       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=   4318.791     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      280 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.128        55.422        .72912E-04    .10447E-04
   2  Index         3.1226        1.1647        .81383E-02    .27681E-03
   3  Normalizat    .84230        .25563        .26159E-03    .24338E-05
   4  Prefactor     1.1801        .27314        .24390E-03    .86700E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.1285
  Index      = 3.12261
  Normalizat = 0.842304
  Prefactor  = 1.18012
 **********
 **   18 **HESSE 
 **********

 FCN=   4318.791     FROM HESSE     STATUS=OK            25 CALLS      305 TOTAL
                     EDM=   .40E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.128        50.673        .29165E-05   -1.4610    
   2  Index         3.1226        1.0656        .16277E-02   -.38491    
   3  Normalizat    .84230        .25605        .10464E-04   -.98518    
   4  Prefactor     1.1801        .27347        .97558E-05   -.86945    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.98388e-12
Minuit parameter uncertainties:
  1  50.7454
  2  1.07524
  3  0.256419
  4  0.273795
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/917081': 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) = 4318.79142182
delta logL = 0.157278916131

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  3.013e+01  5.075e+01  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  3.123e+00  1.075e+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.180e+00  2.738e-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:  8.423e-01  2.564e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.02
Ra Dec: 351.883 -32.987
Photon Index (Free Index): 3.12 +/- 1.08
Photon Flux (Free Index): 5.15e-08 +/- 6.07e-08
Energy Flux (Free Index): 9.73e-06 +/- 1.12e-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/917081/cmap_HighResolution_480902401_481161601_4FGL_J2327.5-3259_daily_bin932.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.11e-02', comment='SUCCESS', energy_flux2='9.73e-06', dlogl='1.57e-01', photon_flux2='5.15e-08', job_status='DONE', time_completed='2021-09-29 20:23:46.857064', photon_index_error2='1.08', photon_index2='3.12', ts='0.69', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', photon_flux_upper_limit='1.42e-07', energy_flux_error2='1.12e-05', EG='0.86', time_epoch_completed='1632972226.86', return_code='0', job_id='917081', GAL2='1.18', EG2='0.84', return_code2='0', photon_flux_error2='6.07e-08', ts2='1.02', photon_index='2.56' WHERE bin_id='932' AND source_name='4FGL J2327.5-3259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:23:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 917081: <4FGL_J2327.5-3259_daily_bin932> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5-3259_daily_bin932 351.883 -32.9869 480902401 481161601 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 :                                   632.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             314.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   809 sec.
    Turnaround time :                            810 sec.

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

