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


Performing analysis on: 4FGL_J2327.5-3259_daily_bin1006
RA = 351.883, Dec = -32.9869
tmin = 500083201, tmax = 500342401
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='917195', job_status='RUN', time_executed='2021-09-29 20:13:22.436359', time_epoch_executed='1632971602.44' WHERE source_name='4FGL J2327.5-3259' and cadence='daily' and bin_id='1006'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/917195

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/917195/ft1_4FGL_J2327.5-3259_daily_bin1006.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/917195/ft2_4FGL_J2327.5-3259_daily_bin1006.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/917195/ft1_4FGL_J2327.5-3259_daily_bin1006.fits outfile=/scratch/kocevski/917195/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin1006.fits ra=351.883 dec=-32.9869 rad=12.0 tmin=500083201.0 tmax=500342401.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 5.65
user 5.36
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/917195/ft1_filtered_4FGL_J2327.5-3259_daily_bin1006.fits" evtable="EVENTS" scfile=/scratch/kocevski/917195/ft2_4FGL_J2327.5-3259_daily_bin1006.fits sctable="SC_DATA" outfile=/scratch/kocevski/917195/ltcube_500083201_500342401_4FGL_J2327.5-3259_daily_bin1006.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/917195/ft2_4FGL_J2327.5-3259_daily_bin1006.fits
.....................!
real 11.79
user 11.44
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/917195/ft1_filtered_4FGL_J2327.5-3259_daily_bin1006.fits evtable="EVENTS" scfile=/scratch/kocevski/917195/ft2_4FGL_J2327.5-3259_daily_bin1006.fits sctable="SC_DATA" expcube=/scratch/kocevski/917195/ltcube_500083201_500342401_4FGL_J2327.5-3259_daily_bin1006.fits outfile=/scratch/kocevski/917195/expmap_500083201_500342401_4FGL_J2327.5-3259_daily_bin1006.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/917195/ltcube_500083201_500342401_4FGL_J2327.5-3259_daily_bin1006.fits
.....................!
real 192.47
user 186.11
sys 5.97

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/917195/ft1_filtered_4FGL_J2327.5-3259_daily_bin1006.fits scfile=/scratch/kocevski/917195/ft2_4FGL_J2327.5-3259_daily_bin1006.fits outfile=/scratch/kocevski/917195/cmap_500083201_500342401_4FGL_J2327.5-3259_daily_bin1006.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=351.883 yref=-32.9869 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/917195/ft1_filtered_4FGL_J2327.5-3259_daily_bin1006.fits scfile=/scratch/kocevski/917195/ft2_4FGL_J2327.5-3259_daily_bin1006.fits outfile=/scratch/kocevski/917195/cmap_HighResolution_500083201_500342401_4FGL_J2327.5-3259_daily_bin1006.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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/917195/ft1_filtered_4FGL_J2327.5-3259_daily_bin1006.fits evtable="EVENTS" scfile=/scratch/kocevski/917195/ft2_4FGL_J2327.5-3259_daily_bin1006.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/917195/Model_4FGL_J2327.5-3259_daily_bin1006.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/917195/ft1_filtered_4FGL_J2327.5-3259_daily_bin1006.fits......................!
real 24.13
user 22.83
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.5076       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    38.816       1.0000         .10000E-03   10000.    
     5 'Prefactor '    37.146       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.6213       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.2765       1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .57129       1.0000         .10000E-03   10000.    
    12 'Prefactor '    38.910       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    20.505       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.0250       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.0037       1.0000         .10000E-03   10000.    
    18 'norm      '    7.5851       1.0000         .10000E-03   10000.    
    19 'norm      '    .21522E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    54.565       1.0000         .10000E-03   10000.    
    21 'norm      '    2.2948       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    54.748       1.0000         .10000E-03   10000.    
    24 'Prefactor '    27.683       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .61734       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1271       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=   1772.214     FROM MIGRAD    STATUS=CONVERGED    649 CALLS     4060 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    183.12       -.13640E-05** at limit **
   2  Prefactor     4.5104        7.9006        .73311E-06    .68471E-04
   3  Prefactor     .10000E-03    71.820        .32251E-06** at limit **
   4  Prefactor     38.826        52.180       -.14670E-06    .42631E-04
   5  Prefactor     37.182        75.926        .35982E-05    .42530E-04
   6  Prefactor     9.6139        30.506        .52613E-05    .72276E-04
   7  Prefactor     9.2756        16.599       -.84718E-07    .49028E-04
   8  norm          .10000E-03    3.1282       -.38625E-06** at limit **
   9  Prefactor     .10000E-03    7.5967       -.17009E-06** at limit **
  10  Prefactor     .10000E-03    6.1799       -.24111E-06** at limit **
  11  norm          .57127        .76016       -.56738E-07    .50895E-03
  12  Prefactor     38.964        134.84        .21848E-05    .35333E-04
  13  Prefactor     .10000E-03    10.039       -.38342E-06** at limit **
  14  norm          .10000E-03    6.9398       -.94474E-07** at limit **
  15  norm          20.495        26.130        .26876E-05    .14803E-03
  16  Prefactor     9.0993        409.86       -.38955E-05   -.61112E-05
  17  Prefactor     7.2780        616.15       -.15349E-04    .74238E-05
  18  norm          7.5852        12.381       -.27467E-06    .74416E-04
  19  norm          .10004E-03    8.9582       -.39426E-05** at limit **
  20  Prefactor     54.554        77.041        .12797E-04    .43977E-03
  21  norm          2.2948        32.171        .64422E-05    .15163E-03
  22  Prefactor     .10001E-03    241.48       -.27871E-05** at limit **
  23  Prefactor     54.796        114.69        .21657E-05    .47354E-04
  24  Prefactor     27.691        18.774        .13532E-05    .10256E-03
  25  Prefactor     .10000E-03    77.364        .87906E-06** at limit **
  26  Normalizat    .61582        .47885       -.31310E-04    .43121E-03
  27  Prefactor     1.1284        .41571        .23606E-04    .27737E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 4.51035
  Prefactor  = 0.0001
  Prefactor  = 38.8261
  Prefactor  = 37.1823
  Prefactor  = 9.61391
  Prefactor  = 9.27565
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.571272
  Prefactor  = 38.9635
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 20.4948
  Prefactor  = 9.09929
  Prefactor  = 7.27798
  norm       = 7.58523
  norm       = 0.000100044
  Prefactor  = 54.5537
  norm       = 2.29481
  Prefactor  = 0.000100007
  Prefactor  = 54.7956
  Prefactor  = 27.6912
  Prefactor  = 0.0001
  Normalizat = 0.615823
  Prefactor  = 1.12844
 **********
 **   18 **HESSE 
 **********

 FCN=   1772.214     FROM HESSE     STATUS=OK           480 CALLS     4540 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    183.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.5104        7.8801        .14687E-03   -1.5283    
   3  Prefactor     .10000E-03    71.863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     38.826        52.122        .64333E-04   -1.4461    
   5  Prefactor     37.182        75.784        .65759E-04   -1.4488    
   6  Prefactor     9.6139        30.394        .12919E-03   -1.5088    
   7  Prefactor     9.2756        16.580        .13158E-03   -1.5099    
   8  norm          .10000E-03    3.1429        .72706E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.5990        .11333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.1887        .10214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .57127        .72885        .40446E-03   -1.5557    
  12  Prefactor     38.964        134.65        .64256E-04   -1.4459    
  13  Prefactor     .10000E-03    10.058        .13028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    6.9416        .10825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          20.495        26.055        .88452E-04   -1.4802    
  16  Prefactor     9.0993        385.04        .13341E-03   -1.5105    
  17  Prefactor     7.2780        600.19        .15159E-03   -1.5168    
  18  norm          7.5852        12.196        .14561E-03   -1.5157    
  19  norm          .10004E-03    46.003        .22739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     54.554        76.399        .54301E-04   -1.4229    
  21  norm          2.2948        29.186        .27094E-03   -1.5405    
  22  Prefactor     .10001E-03    241.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     54.796        114.57        .54211E-04   -1.4226    
  24  Prefactor     27.691        18.745        .76142E-04   -1.4655    
  25  Prefactor     .10000E-03    77.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .61582        .48638        .30365E-03   -1.0732    
  27  Prefactor     1.1284        .42328        .23676E-03   -.88563    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.76118e-09
Minuit parameter uncertainties:
  1  0.000992008
  2  7.88189
  3  0.000254088
  4  52.1833
  5  75.9812
  6  30.4429
  7  16.5877
  8  1.95271e-05
  9  1.29525e-05
  10  1.01061e-05
  11  0.728859
  12  135.722
  13  4.36599e-05
  14  1.40249e-05
  15  26.0693
  16  119.211
  17  133.594
  18  12.2004
  19  0.00285475
  20  76.5364
  21  16.3772
  22  0.00255071
  23  115.035
  24  18.7486
  25  0.000315222
  26  0.489819
  27  0.424551
Done.

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

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  7.278e+00  1.336e+02  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.128e+00  4.246e-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:  6.158e-01  4.898e-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: 2.72e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.12e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/917195/likelihoodResults_500083201_500342401_4FGL_J2327.5-3259_daily_bin1006.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) = 1771.93279588
delta logL = 0.280708417392

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1771.87670248
delta logL = 0.33680180929

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.397       1.0000         .10000E-03   10000.    
     2 'Index     '    4.3411       1.0000          .0000       10.000    
     3 'Normalizat'    .48849       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2114       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=   1771.877     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      239 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.463        540.54        .28443E-02   -.30034E-03
   2  Index         4.3376        7.1671        .14585       -.29018E-04
   3  Normalizat    .48883        .10654        .76486E-01   -.33289E-03
   4  Prefactor     1.2109        .10841        .51904E-01   -.58037E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.4632
  Index      = 4.33763
  Normalizat = 0.488826
  Prefactor  = 1.21089
 **********
 **   18 **HESSE 
 **********

 FCN=   1771.877     FROM HESSE     STATUS=OK            29 CALLS      268 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.463        81.498        .11377E-03   -1.5002    
   2  Index         4.3376        3.0392        .52737E-02   -.13287    
   3  Normalizat    .48883        .41625        .33869E-03   -1.1294    
   4  Prefactor     1.2109        .41662        .22946E-03   -.85997    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43924e-09
Minuit parameter uncertainties:
  1  63.8677
  2  3.27169
  3  0.418938
  4  0.417766
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/917195': 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) = 1771.87670023
delta logL = 0.33680406793

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.246e+01  6.387e+01  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  4.338e+00  3.272e+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.211e+00  4.178e-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:  4.888e-01  4.189e-01  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/917195/cmap_HighResolution_500083201_500342401_4FGL_J2327.5-3259_daily_bin1006.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.12e-02', job_status='DONE', photon_flux_upper_limit='2.72e-07', time_completed='2021-09-29 20:21:16.848056', job_id='917195', GAL2='1.21', fit_tolerance='1e-08', EG2='0.49', EG='0.62', time_epoch_completed='1632972076.85', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='3.37e-01', ts2='0.78', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='1006' AND source_name='4FGL J2327.5-3259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:21:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 917195: <4FGL_J2327.5-3259_daily_bin1006> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5-3259_daily_bin1006 351.883 -32.9869 500083201 500342401 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 :                                   470.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             251.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   648 sec.
    Turnaround time :                            649 sec.

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

