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


Performing analysis on: 4FGL_J2327.5-3259_daily_bin546
RA = 351.883, Dec = -32.9869
tmin = 380851201, tmax = 381110401
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='914354', job_status='RUN', time_executed='2021-09-29 20:03:56.252509', time_epoch_executed='1632971036.25' WHERE source_name='4FGL J2327.5-3259' and cadence='daily' and bin_id='546'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/914354

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/914354/ft1_4FGL_J2327.5-3259_daily_bin546.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/914354/ft2_4FGL_J2327.5-3259_daily_bin546.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/914354/ft1_4FGL_J2327.5-3259_daily_bin546.fits outfile=/scratch/kocevski/914354/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin546.fits ra=351.883 dec=-32.9869 rad=12.0 tmin=380851201.0 tmax=381110401.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.23
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/914354/ft1_filtered_4FGL_J2327.5-3259_daily_bin546.fits" evtable="EVENTS" scfile=/scratch/kocevski/914354/ft2_4FGL_J2327.5-3259_daily_bin546.fits sctable="SC_DATA" outfile=/scratch/kocevski/914354/ltcube_380851201_381110401_4FGL_J2327.5-3259_daily_bin546.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/914354/ft2_4FGL_J2327.5-3259_daily_bin546.fits
.....................!
real 11.60
user 11.25
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/914354/ft1_filtered_4FGL_J2327.5-3259_daily_bin546.fits evtable="EVENTS" scfile=/scratch/kocevski/914354/ft2_4FGL_J2327.5-3259_daily_bin546.fits sctable="SC_DATA" expcube=/scratch/kocevski/914354/ltcube_380851201_381110401_4FGL_J2327.5-3259_daily_bin546.fits outfile=/scratch/kocevski/914354/expmap_380851201_381110401_4FGL_J2327.5-3259_daily_bin546.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/914354/ltcube_380851201_381110401_4FGL_J2327.5-3259_daily_bin546.fits
.....................!
real 196.23
user 191.49
sys 4.41

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/914354/ft1_filtered_4FGL_J2327.5-3259_daily_bin546.fits scfile=/scratch/kocevski/914354/ft2_4FGL_J2327.5-3259_daily_bin546.fits outfile=/scratch/kocevski/914354/cmap_380851201_381110401_4FGL_J2327.5-3259_daily_bin546.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/914354/ft1_filtered_4FGL_J2327.5-3259_daily_bin546.fits scfile=/scratch/kocevski/914354/ft2_4FGL_J2327.5-3259_daily_bin546.fits outfile=/scratch/kocevski/914354/cmap_HighResolution_380851201_381110401_4FGL_J2327.5-3259_daily_bin546.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/914354/ft1_filtered_4FGL_J2327.5-3259_daily_bin546.fits evtable="EVENTS" scfile=/scratch/kocevski/914354/ft2_4FGL_J2327.5-3259_daily_bin546.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/914354/Model_4FGL_J2327.5-3259_daily_bin546.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/914354/ft1_filtered_4FGL_J2327.5-3259_daily_bin546.fits.....................!
real 33.78
user 32.55
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .66047E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.845       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.833       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.1576       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    15.375       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .44798       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .58203       1.0000         .10000E-03   10000.    
    12 'Prefactor '    69.208       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .11379E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    140.65       1.0000         .10000E-03   10000.    
    18 'norm      '    .11925E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10485E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    56.364       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.3210       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .71213       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=   3773.908     FROM MIGRAD    STATUS=CONVERGED    664 CALLS     3317 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.359       -.10122E-05** at limit **
   2  Prefactor     .10001E-03    4.6500        .26424E-05** at limit **
   3  Prefactor     22.859        25.197        .41395E-06    .81223E-04
   4  Prefactor     15.836        22.460        .13596E-06    .19900E-04
   5  Prefactor     .10000E-03    26.508        .16014E-06** at limit **
   6  Prefactor     2.1499        37.494       -.69188E-05   -.45479E-05
   7  Prefactor     .10000E-03    6.7157       -.47794E-06** at limit **
   8  norm          15.360        8.5119        .77163E-06    .45463E-03
   9  Prefactor     .53787        106.02       -.26404E-04    .93603E-04
  10  Prefactor     .10000E-03    8.4811       -.14128E-06** at limit **
  11  norm          .58148        .92354        .23785E-06    .90679E-03
  12  Prefactor     69.196        79.333        .69780E-06    .23968E-04
  13  Prefactor     .10000E-03    6.7013       -.71422E-06** at limit **
  14  norm          .10000E-03    2.4791       -.11803E-06** at limit **
  15  norm          .10000E-03    9.0213        .15940E-05** at limit **
  16  Prefactor     .10000E-03    66.988       -.22760E-05** at limit **
  17  Prefactor     140.56        83.760        .14262E-05    .80783E-04
  18  norm          .10000E-03    4.1071        .47773E-06** at limit **
  19  norm          .10000E-03    2.1708       -.60038E-06** at limit **
  20  Prefactor     .10000E-03    44.863       -.11897E-07** at limit **
  21  norm          .10000E-03    6.5937       -.11259E-05** at limit **
  22  Prefactor     .10000E-03    173.48        .16755E-05** at limit **
  23  Prefactor     56.316        75.450        .99151E-06    .46166E-04
  24  Prefactor     .10000E-03    3.7877        .15040E-06** at limit **
  25  Prefactor     .10000E-03    30.328        .27300E-06** at limit **
  26  Normalizat    1.3218        .24473        .21725E-05    .83828E-03
  27  Prefactor     .71123        .26005        .18932E-05    .17477E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 22.8594
  Prefactor  = 15.8358
  Prefactor  = 0.0001
  Prefactor  = 2.14989
  Prefactor  = 0.0001
  norm       = 15.3599
  Prefactor  = 0.537873
  Prefactor  = 0.0001
  norm       = 0.581481
  Prefactor  = 69.1964
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 140.562
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 56.3163
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.32183
  Prefactor  = 0.711235
 **********
 **   18 **HESSE 
 **********

 FCN=   3773.908     FROM HESSE     STATUS=OK           480 CALLS     3797 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    31.523        .20949E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     22.859        24.776        .83803E-04   -1.4751    
   4  Prefactor     15.836        22.450        .10066E-03   -1.4912    
   5  Prefactor     .10000E-03    26.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.1499        38.818        .28046E-03   -1.5415    
   7  Prefactor     .10000E-03    6.7421        .15556E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          15.360        8.5515        .10215E-03   -1.4924    
   9  Prefactor     .53787        124.77        .41465E-02   -1.5561    
  10  Prefactor     .10000E-03    8.5190        .17427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .58148        .84748        .61511E-03   -1.5555    
  12  Prefactor     69.196        79.239        .48250E-04   -1.4042    
  13  Prefactor     .10000E-03    6.7174        .15526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.4810        .94459E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    8.9473        .17882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    67.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     140.56        83.734        .16984E-03   -1.3331    
  18  norm          .10000E-03    17.675        .23168E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.1970        .88563E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    45.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    6.8207        .30698E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    173.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     56.316        75.450        .53432E-04   -1.4206    
  24  Prefactor     .10000E-03    3.8004        .11666E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    30.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.3218        .29418        .22499E-03   -.82917    
  27  Prefactor     .71123        .30123        .30859E-03   -1.0309    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.16715e-09
Minuit parameter uncertainties:
  1  8.07023e-05
  2  0.001283
  3  24.7872
  4  22.4617
  5  2.93942e-05
  6  18.284
  7  1.06039e-05
  8  8.55218
  9  16.4177
  10  1.80689e-05
  11  0.847493
  12  79.3602
  13  1.98813e-05
  14  1.74593e-06
  15  0.000126684
  16  0.000194021
  17  83.8051
  18  0.000183176
  19  1.35641e-05
  20  1.04675e-05
  21  9.96171e-06
  22  0.000382057
  23  75.5783
  24  2.63975e-05
  25  0.00016009
  26  0.294556
  27  0.301927
Done.

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

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.406e+02  8.381e+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:  7.112e-01  3.019e-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.322e+00  2.946e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.72
Ra Dec: 351.883 -32.987
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 1.13e-07 +/- 6.71e-08
Energy Flux (Fixed Index): 3.08e-05 +/- 1.84e-05

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) = 3773.84572489
delta logL = 0.0627480906978

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3773.84345824
delta logL = 0.0650147429901

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    157.04       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3576       1.0000          .0000       10.000    
     3 'Normalizat'    1.3425       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69392       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=   3773.843     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      296 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     156.85        100.71        .16087E-03    .48240E-04
   2  Index         2.3562        .54363        .60728E-02   -.17552E-04
   3  Normalizat    1.3426        .29267        .22356E-03   -.10750E-04
   4  Prefactor     .69395        .29986        .31202E-03    .13117E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 156.848
  Index      = 2.35618
  Normalizat = 1.34264
  Prefactor  = 0.693952
 **********
 **   18 **HESSE 
 **********

 FCN=   3773.843     FROM HESSE     STATUS=OK            25 CALLS      321 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     156.85        99.673        .32173E-04   -1.3197    
   2  Index         2.3562        .53764        .24291E-03   -.55714    
   3  Normalizat    1.3426        .29288        .44712E-04   -.82302    
   4  Prefactor     .69395        .30002        .12481E-04   -1.0376    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.98233e-11
Minuit parameter uncertainties:
  1  99.7805
  2  0.539088
  3  0.293241
  4  0.300723
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/914354': 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) = 3773.8434506
delta logL = 0.065022381435

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.568e+02  9.978e+01  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  2.356e+00  5.391e-01  0.000e+00  1.000e+01 (-1.000e+00)
456        Scale:  6.601e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  6.940e-01  3.007e-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.343e+00  2.932e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.81
Ra Dec: 351.883 -32.987
Photon Index (Free Index): 2.36 +/- 0.54
Photon Flux (Free Index): 9.88e-08 +/- 7.34e-08
Energy Flux (Free Index): 3.44e-05 +/- 2.39e-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/914354/cmap_HighResolution_380851201_381110401_4FGL_J2327.5-3259_daily_bin546.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.13e-07', energy_flux2='3.44e-05', photon_flux_error='6.71e-08', dlogl='6.50e-02', energy_flux='3.08e-05', photon_flux2='9.88e-08', job_status='DONE', time_completed='2021-09-29 20:13:00.046017', photon_index_error2='0.54', photon_index2='2.36', ts='5.72', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', energy_flux_error2='2.39e-05', EG='1.32', time_epoch_completed='1632971580.05', return_code='0', job_id='914354', GAL2='0.69', EG2='1.34', return_code2='0', energy_flux_error='1.84e-05', photon_flux_error2='7.34e-08', ts2='5.81', photon_index='2.56' WHERE bin_id='546' AND source_name='4FGL J2327.5-3259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:13:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 914354: <4FGL_J2327.5-3259_daily_bin546> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5-3259_daily_bin546 351.883 -32.9869 380851201 381110401 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 :                                   542.33 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             252.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   731 sec.
    Turnaround time :                            733 sec.

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

