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


Performing analysis on: 4FGL_J2327.5-3259_daily_bin319
RA = 351.883, Dec = -32.9869
tmin = 322012801, tmax = 322272001
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='912928', job_status='RUN', time_executed='2021-09-29 19:59:50.868833', time_epoch_executed='1632970790.87' WHERE source_name='4FGL J2327.5-3259' and cadence='daily' and bin_id='319'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/912928

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/912928/ft1_4FGL_J2327.5-3259_daily_bin319.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/912928/ft2_4FGL_J2327.5-3259_daily_bin319.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/912928/ft1_4FGL_J2327.5-3259_daily_bin319.fits outfile=/scratch/kocevski/912928/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin319.fits ra=351.883 dec=-32.9869 rad=12.0 tmin=322012801.0 tmax=322272001.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.36
user 3.15
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/912928/ft1_filtered_4FGL_J2327.5-3259_daily_bin319.fits" evtable="EVENTS" scfile=/scratch/kocevski/912928/ft2_4FGL_J2327.5-3259_daily_bin319.fits sctable="SC_DATA" outfile=/scratch/kocevski/912928/ltcube_322012801_322272001_4FGL_J2327.5-3259_daily_bin319.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/912928/ft2_4FGL_J2327.5-3259_daily_bin319.fits
.....................!
real 11.69
user 11.30
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/912928/ft1_filtered_4FGL_J2327.5-3259_daily_bin319.fits evtable="EVENTS" scfile=/scratch/kocevski/912928/ft2_4FGL_J2327.5-3259_daily_bin319.fits sctable="SC_DATA" expcube=/scratch/kocevski/912928/ltcube_322012801_322272001_4FGL_J2327.5-3259_daily_bin319.fits outfile=/scratch/kocevski/912928/expmap_322012801_322272001_4FGL_J2327.5-3259_daily_bin319.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/912928/ltcube_322012801_322272001_4FGL_J2327.5-3259_daily_bin319.fits
.....................!
real 190.58
user 185.17
sys 5.11

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/912928/ft1_filtered_4FGL_J2327.5-3259_daily_bin319.fits scfile=/scratch/kocevski/912928/ft2_4FGL_J2327.5-3259_daily_bin319.fits outfile=/scratch/kocevski/912928/cmap_322012801_322272001_4FGL_J2327.5-3259_daily_bin319.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/912928/ft1_filtered_4FGL_J2327.5-3259_daily_bin319.fits scfile=/scratch/kocevski/912928/ft2_4FGL_J2327.5-3259_daily_bin319.fits outfile=/scratch/kocevski/912928/cmap_HighResolution_322012801_322272001_4FGL_J2327.5-3259_daily_bin319.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/912928/ft1_filtered_4FGL_J2327.5-3259_daily_bin319.fits evtable="EVENTS" scfile=/scratch/kocevski/912928/ft2_4FGL_J2327.5-3259_daily_bin319.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/912928/Model_4FGL_J2327.5-3259_daily_bin319.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/912928/ft1_filtered_4FGL_J2327.5-3259_daily_bin319.fits.....................!
real 40.03
user 38.76
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10235E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.7105       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.125       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.450       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.9564       1.0000         .10000E-03   10000.    
     8 'norm      '    .10320E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.5935       1.0000         .10000E-03   10000.    
    11 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    31.943       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      '    22.650       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.425       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.4695       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.507       1.0000         .10000E-03   10000.    
    21 'norm      '    2.0834       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11303E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    35.758       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .90021       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0167       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=   4899.067     FROM MIGRAD    STATUS=CONVERGED    641 CALLS     3228 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.973        .15735E-05** at limit **
   2  Prefactor     .10000E-03    1.9045        .85790E-07** at limit **
   3  Prefactor     4.7025        15.304        .20997E-05    .17842E-04
   4  Prefactor     .10000E-03    14.587        .14450E-05** at limit **
   5  Prefactor     22.125        29.923       -.44583E-06    .58694E-06
   6  Prefactor     12.452        14.607       -.79564E-06    .70443E-04
   7  Prefactor     6.9566        6.6120       -.12930E-06    .45351E-03
   8  norm          .10000E-03    4.6462       -.71561E-06** at limit **
   9  Prefactor     .10000E-03    6.4087        .26094E-06** at limit **
  10  Prefactor     2.5937        4.9000        .20709E-05   -.16408E-02
  11  norm          .10000E-03    .22515       -.40074E-06** at limit **
  12  Prefactor     31.944        39.543        .59476E-06    .18313E-04
  13  Prefactor     .10000E-03    7.2305       -.99502E-06** at limit **
  14  norm          .10000E-03    2.2673        .75884E-07** at limit **
  15  norm          22.650        10.510       -.10221E-06    .21967E-04
  16  Prefactor     13.420        36.504       -.57927E-05   -.10180E-03
  17  Prefactor     .10000E-03    16.591       -.42407E-05** at limit **
  18  norm          5.4702        5.3750       -.18082E-05   -.52522E-03
  19  norm          .10000E-03    1.3923       -.28149E-07** at limit **
  20  Prefactor     19.510        35.773        .31052E-05    .62682E-04
  21  norm          2.0837        2.7341        .61052E-06    .13095E-03
  22  Prefactor     .10000E-03    26.291        .23770E-05** at limit **
  23  Prefactor     .10000E-03    63.600       -.92280E-06** at limit **
  24  Prefactor     .10000E-03    2.6406        .14961E-06** at limit **
  25  Prefactor     35.741        48.182       -.15046E-04   -.15429E-03
  26  Normalizat    .90012        .19317        .27223E-05    .43526E-04
  27  Prefactor     1.0168        .20030       -.50505E-06    .22268E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.70246
  Prefactor  = 0.0001
  Prefactor  = 22.1248
  Prefactor  = 12.4518
  Prefactor  = 6.95658
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.59366
  norm       = 0.0001
  Prefactor  = 31.9442
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 22.65
  Prefactor  = 13.4196
  Prefactor  = 0.0001
  norm       = 5.47022
  norm       = 0.0001
  Prefactor  = 19.5103
  norm       = 2.08365
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.7406
  Normalizat = 0.900119
  Prefactor  = 1.01677
 **********
 **   18 **HESSE 
 **********

 FCN=   4899.067     FROM HESSE     STATUS=OK           484 CALLS     3712 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.9344        .94212E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.7025        15.278        .18541E-03   -1.5274    
   4  Prefactor     .10000E-03    14.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     22.125        29.954        .85155E-04   -1.4767    
   6  Prefactor     12.452        14.723        .11353E-03   -1.5002    
   7  Prefactor     6.9566        6.6272        .76054E-03   -1.5180    
   8  norm          .10000E-03    4.8539        .29449E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.4214        .17305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.5937        9.4696        .12668E-02   -1.5386    
  11  norm          .10000E-03    .27584        .64755E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     31.944        39.560        .70895E-04   -1.4577    
  13  Prefactor     .10000E-03    7.2717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.2717        .10291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          22.650        10.523        .84164E-04   -1.4756    
  16  Prefactor     13.420        36.445        .10932E-03   -1.4975    
  17  Prefactor     .10000E-03    16.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.4702        5.3666        .12648E-03   -1.5240    
  19  norm          .10000E-03    1.4070        .80611E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     19.510        35.944        .90685E-04   -1.4824    
  21  norm          2.0837        2.7178        .12688E-03   -1.5419    
  22  Prefactor     .10000E-03    26.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    64.033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    2.6568        .11105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     35.741        48.948        .67018E-04   -1.4512    
  26  Normalizat    .90012        .23420        .23518E-03   -.96456    
  27  Prefactor     1.0168        .23810        .24483E-03   -.92173    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01246e-08
Minuit parameter uncertainties:
  1  3.79123e-05
  2  1.44505e-05
  3  15.2911
  4  2.40738e-05
  5  29.9746
  6  14.7276
  7  6.62791
  8  1.45268e-05
  9  2.36136e-06
  10  9.47503
  11  1.26874e-06
  12  39.592
  13  3.40264e-05
  14  1.93325e-05
  15  10.5243
  16  36.505
  17  0.000127994
  18  5.36704
  19  7.21891e-06
  20  35.984
  21  2.71791
  22  7.42794e-05
  23  0.000213671
  24  3.35915e-05
  25  49.0033
  26  0.234465
  27  0.238343
Done.

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

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.000e-04  1.280e-04  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.017e+00  2.383e-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:  9.001e-01  2.345e-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: 5.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/912928/likelihoodResults_322012801_322272001_4FGL_J2327.5-3259_daily_bin319.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) = 4899.06743753
delta logL = -0.000286691354631

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4899.06715341
delta logL = -2.57484680333e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10629E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1180       1.0000          .0000       10.000    
     3 'Normalizat'    .90012       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0168       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=   4899.067     FROM MIGRAD    STATUS=CONVERGED    110 CALLS      289 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    90.285        .18142E-01** at limit **
   2  Index         1.9551        5.4363        .50000       -.22897E-07
   3  Normalizat    .90012        .90193E-02    .23518E-03   -.24636E-03
   4  Prefactor     1.0168        .99730E-02    .24484E-03   -.23748E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.95508
  Normalizat = 0.900121
  Prefactor  = 1.01676
 **********
 **   18 **HESSE 
 **********

 FCN=   4899.067     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      318 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    509.46        .31668E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9551        8.1843        .50000       -.65478    
   3  Normalizat    .90012        .22027E-01    .47036E-04   -.96456    
   4  Prefactor     1.0168        .24355E-01    .48967E-04   -.92173    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.40124e-11
Minuit parameter uncertainties:
  1  9.57013e-05
  2  1134.08
  3  0.0220268
  4  0.0243557
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/912928': 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) = 4899.06715015
delta logL = 6.82535755914e-07

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.000e-04  9.570e-05  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  1.955e+00  1.134e+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.017e+00  2.436e-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:  9.001e-01  2.203e-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/912928/cmap_HighResolution_322012801_322272001_4FGL_J2327.5-3259_daily_bin319.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.65e-03', job_status='DONE', photon_flux_upper_limit='5.95e-08', time_completed='2021-09-29 20:10:57.481088', job_id='912928', GAL2='1.02', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1632971457.48', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='6.83e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='319' AND source_name='4FGL J2327.5-3259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:10:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 912928: <4FGL_J2327.5-3259_daily_bin319> in cluster <slac> Done

Job <4FGL_J2327.5-3259_daily_bin319> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 19:55:47 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 19:55: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 19:55:49 2021
Terminated at Wed Sep 29 20:10:57 2021
Results reported at Wed Sep 29 20:10:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5-3259_daily_bin319 351.883 -32.9869 322012801 322272001 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 :                                   665.38 sec.
    Max Memory :                                 1215 MB
    Average Memory :                             228.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            910 sec.

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

