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


Performing analysis on: 4FGL_J2327.5-3259_daily_bin424
RA = 351.883, Dec = -32.9869
tmin = 349228801, tmax = 349488001
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='914161', job_status='RUN', time_executed='2021-09-29 20:02:40.460032', time_epoch_executed='1632970960.46' WHERE source_name='4FGL J2327.5-3259' and cadence='daily' and bin_id='424'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/914161

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/914161/ft1_4FGL_J2327.5-3259_daily_bin424.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/914161/ft2_4FGL_J2327.5-3259_daily_bin424.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/914161/ft1_4FGL_J2327.5-3259_daily_bin424.fits outfile=/scratch/kocevski/914161/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin424.fits ra=351.883 dec=-32.9869 rad=12.0 tmin=349228801.0 tmax=349488001.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.44
user 3.22
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/914161/ft2_4FGL_J2327.5-3259_daily_bin424.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/914161/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin424.fits evtable="EVENTS" outfile="/scratch/kocevski/914161/ft1_filtered_4FGL_J2327.5-3259_daily_bin424.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/914161/ft1_filtered_4FGL_J2327.5-3259_daily_bin424.fits" evtable="EVENTS" scfile=/scratch/kocevski/914161/ft2_4FGL_J2327.5-3259_daily_bin424.fits sctable="SC_DATA" outfile=/scratch/kocevski/914161/ltcube_349228801_349488001_4FGL_J2327.5-3259_daily_bin424.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/914161/ft2_4FGL_J2327.5-3259_daily_bin424.fits
.....................!
real 12.30
user 11.92
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/914161/ft1_filtered_4FGL_J2327.5-3259_daily_bin424.fits evtable="EVENTS" scfile=/scratch/kocevski/914161/ft2_4FGL_J2327.5-3259_daily_bin424.fits sctable="SC_DATA" expcube=/scratch/kocevski/914161/ltcube_349228801_349488001_4FGL_J2327.5-3259_daily_bin424.fits outfile=/scratch/kocevski/914161/expmap_349228801_349488001_4FGL_J2327.5-3259_daily_bin424.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/914161/ltcube_349228801_349488001_4FGL_J2327.5-3259_daily_bin424.fits
.....................!
real 191.17
user 185.65
sys 5.03

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/914161/ft1_filtered_4FGL_J2327.5-3259_daily_bin424.fits scfile=/scratch/kocevski/914161/ft2_4FGL_J2327.5-3259_daily_bin424.fits outfile=/scratch/kocevski/914161/cmap_349228801_349488001_4FGL_J2327.5-3259_daily_bin424.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/914161/ft1_filtered_4FGL_J2327.5-3259_daily_bin424.fits scfile=/scratch/kocevski/914161/ft2_4FGL_J2327.5-3259_daily_bin424.fits outfile=/scratch/kocevski/914161/cmap_HighResolution_349228801_349488001_4FGL_J2327.5-3259_daily_bin424.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/914161/ft1_filtered_4FGL_J2327.5-3259_daily_bin424.fits evtable="EVENTS" scfile=/scratch/kocevski/914161/ft2_4FGL_J2327.5-3259_daily_bin424.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/914161/Model_4FGL_J2327.5-3259_daily_bin424.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/914161/ft1_filtered_4FGL_J2327.5-3259_daily_bin424.fits.....................!
real 37.56
user 36.21
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10460E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.1193       1.0000         .10000E-03   10000.    
     6 'Prefactor '    25.336       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.7120       1.0000         .10000E-03   10000.    
     8 'norm      '    2.5381       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.405       1.0000         .10000E-03   10000.    
    11 'norm      '    2.3954       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.4231       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.929       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    16.973       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    10.348       1.0000         .10000E-03   10000.    
    19 'norm      '    3.2892       1.0000         .10000E-03   10000.    
    20 'Prefactor '    46.640       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    125.60       1.0000         .10000E-03   10000.    
    23 'Prefactor '    25.899       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .86006       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0192       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=   4127.545     FROM MIGRAD    STATUS=CONVERGED    666 CALLS     3312 TOTAL
                     EDM=   .49E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    87.550        .12741E-06** at limit **
   2  Prefactor     .10000E-03    1.7809        .24685E-07** at limit **
   3  Prefactor     .10000E-03    16.023        .64100E-07** at limit **
   4  Prefactor     .10000E-03    29.360        .26307E-06** at limit **
   5  Prefactor     .65835        80.183        .17973E-05   -.43200E-04
   6  Prefactor     25.338        20.100        .32564E-06   -.13555E-04
   7  Prefactor     4.7242        13.282        .11202E-05   -.14168E-04
   8  norm          2.5377        6.7716        .53523E-05   -.10138E-03
   9  Prefactor     .10000E-03    20.957        .22485E-05** at limit **
  10  Prefactor     20.404        21.371       -.14504E-05   -.78388E-04
  11  norm          2.3953        1.4834       -.14964E-06   -.32722E-03
  12  Prefactor     8.4486        78.797       -.57484E-05   -.11418E-04
  13  Prefactor     11.928        18.403        .51247E-06   -.41419E-04
  14  norm          .10000E-03    4.3603        .51903E-08** at limit **
  15  norm          16.973        9.7282        .81598E-07   -.27042E-06
  16  Prefactor     .10000E-03    25.607       -.69778E-06** at limit **
  17  Prefactor     .10000E-03    20.422       -.13212E-06** at limit **
  18  norm          10.347        5.5130        .11285E-06    .72955E-05
  19  norm          3.2882        5.3508       -.10256E-06   -.33621E-04
  20  Prefactor     46.656        51.751        .41186E-06    .82692E-05
  21  norm          .10000E-03    1.4837        .14875E-07** at limit **
  22  Prefactor     125.47        111.38        .10870E-04    .37475E-04
  23  Prefactor     26.047        61.814       -.27432E-05   -.59533E-05
  24  Prefactor     .10000E-03    2.4961        .35298E-07** at limit **
  25  Prefactor     .10000E-03    20.156       -.12277E-05** at limit **
  26  Normalizat    .86011        .22766        .13996E-05   -.38816E-04
  27  Prefactor     1.0193        .23875       -.23438E-05   -.19916E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.658352
  Prefactor  = 25.3379
  Prefactor  = 4.72423
  norm       = 2.53772
  Prefactor  = 0.0001
  Prefactor  = 20.4038
  norm       = 2.3953
  Prefactor  = 8.44859
  Prefactor  = 11.9284
  norm       = 0.0001
  norm       = 16.9726
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.3474
  norm       = 3.28823
  Prefactor  = 46.656
  norm       = 0.0001
  Prefactor  = 125.473
  Prefactor  = 26.0467
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.860109
  Prefactor  = 1.01926
 **********
 **   18 **HESSE 
 **********

 FCN=   4127.545     FROM HESSE     STATUS=OK           498 CALLS     3810 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    87.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.7955        .83701E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    29.599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .65835        84.241        .13831       -1.5546    
   6  Prefactor     25.338        20.120        .79584E-04   -1.4701    
   7  Prefactor     4.7242        13.252        .18538E-03   -1.5273    
   8  norm          2.5377        6.7958        .11999E-02   -1.5389    
   9  Prefactor     .10000E-03    20.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     20.404        21.841        .88667E-04   -1.4804    
  11  norm          2.3953        1.5211        .44204E-04   -1.5398    
  12  Prefactor     8.4486        78.642        .13813E-03   -1.5127    
  13  Prefactor     11.928        18.349        .11599E-03   -1.5017    
  14  norm          .10000E-03    4.3987        .13075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          16.973        9.7292        .97218E-04   -1.4884    
  16  Prefactor     .10000E-03    25.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    20.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          10.347        5.5053        .52661E-03   -1.5065    
  19  norm          3.2882        5.3090        .16612E-03   -1.5345    
  20  Prefactor     46.656        51.538        .58711E-04   -1.4341    
  21  norm          .10000E-03    1.4864        .76407E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     125.47        111.45        .17959E-03   -1.3463    
  23  Prefactor     26.047        61.866        .78716E-04   -1.4687    
  24  Prefactor     .10000E-03    2.5044        .99106E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    20.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .86011        .26477        .26206E-03   -.97876    
  27  Prefactor     1.0193        .27654        .26139E-03   -.92090    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.33215e-11
Minuit parameter uncertainties:
  1  4.41496e-05
  2  9.94198e-07
  3  7.67236e-06
  4  1.24405e-05
  5  14.9147
  6  20.1249
  7  13.2598
  8  6.79783
  9  5.0894e-06
  10  21.8496
  11  1.52114
  12  51.6418
  13  18.3575
  14  1.32814e-07
  15  9.73006
  16  9.77804e-06
  17  4.99732e-06
  18  5.5056
  19  5.30978
  20  51.5868
  21  4.98505e-07
  22  111.637
  23  62.0191
  24  1.50166e-06
  25  1.1982e-05
  26  0.265173
  27  0.276923
Done.

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

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.000e-04  4.997e-06  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.019e+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.601e-01  2.652e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/914161/likelihoodResults_349228801_349488001_4FGL_J2327.5-3259_daily_bin424.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) = 4127.54536563
delta logL = -0.000232877186136

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4127.54513445
delta logL = -1.6975136532e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10357E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.4650       1.0000          .0000       10.000    
     3 'Normalizat'    .86010       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0193       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=   4127.545     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      281 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    104.18        .18142E-01** at limit **
   2  Index         2.2691        8.8385        .50000        .13390E-06
   3  Normalizat    .86010        .11581E-01    .26206E-03   -.45010E-02
   4  Prefactor     1.0192        .12541E-01    .26139E-03   -.44995E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Index      = 2.26905
  Normalizat = 0.860098
  Prefactor  = 1.01924
 **********
 **   18 **HESSE 
 **********

 FCN=   4127.545     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      310 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    795.88        .28941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2691        8.8262        .50000       -.57781    
   3  Normalizat    .86010        .33610E-01    .52412E-04   -.97877    
   4  Prefactor     1.0192        .36396E-01    .52278E-04   -.92091    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.2492e-09
Minuit parameter uncertainties:
  1  0.00426247
  2  2253.43
  3  0.0336112
  4  0.0363968
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/914161': 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) = 4127.54513267
delta logL = 7.93361323304e-08

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.000e-04  4.262e-03  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  2.269e+00  2.253e+03  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.019e+00  3.640e-02  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
604   Normalization:  8.601e-01  3.361e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/914161/cmap_HighResolution_349228801_349488001_4FGL_J2327.5-3259_daily_bin424.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.66e-03', job_status='DONE', photon_flux_upper_limit='7.25e-08', time_completed='2021-09-29 20:13:01.537871', job_id='914161', GAL2='1.02', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1632971581.54', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='7.93e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='424' AND source_name='4FGL J2327.5-3259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:13:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 914161: <4FGL_J2327.5-3259_daily_bin424> in cluster <slac> Done

Job <4FGL_J2327.5-3259_daily_bin424> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 20:00:31 2021
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 20:00:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 20:00:33 2021
Terminated at Wed Sep 29 20:13:02 2021
Results reported at Wed Sep 29 20:13:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5-3259_daily_bin424 351.883 -32.9869 349228801 349488001 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 :                                   618.01 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             249.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   748 sec.
    Turnaround time :                            751 sec.

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

