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


Performing analysis on: 4FGL_J2327.5-3259_daily_bin640
RA = 351.883, Dec = -32.9869
tmin = 405216001, tmax = 405475201
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='915597', job_status='RUN', time_executed='2021-09-29 20:05:56.309806', time_epoch_executed='1632971156.31' WHERE source_name='4FGL J2327.5-3259' and cadence='daily' and bin_id='640'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/915597

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/915597/ft1_4FGL_J2327.5-3259_daily_bin640.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/915597/ft2_4FGL_J2327.5-3259_daily_bin640.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/915597/ft1_4FGL_J2327.5-3259_daily_bin640.fits outfile=/scratch/kocevski/915597/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin640.fits ra=351.883 dec=-32.9869 rad=12.0 tmin=405216001.0 tmax=405475201.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.39
user 3.16
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/915597/ft1_filtered_4FGL_J2327.5-3259_daily_bin640.fits" evtable="EVENTS" scfile=/scratch/kocevski/915597/ft2_4FGL_J2327.5-3259_daily_bin640.fits sctable="SC_DATA" outfile=/scratch/kocevski/915597/ltcube_405216001_405475201_4FGL_J2327.5-3259_daily_bin640.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/915597/ft2_4FGL_J2327.5-3259_daily_bin640.fits
.....................!
real 12.10
user 11.76
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/915597/ft1_filtered_4FGL_J2327.5-3259_daily_bin640.fits evtable="EVENTS" scfile=/scratch/kocevski/915597/ft2_4FGL_J2327.5-3259_daily_bin640.fits sctable="SC_DATA" expcube=/scratch/kocevski/915597/ltcube_405216001_405475201_4FGL_J2327.5-3259_daily_bin640.fits outfile=/scratch/kocevski/915597/expmap_405216001_405475201_4FGL_J2327.5-3259_daily_bin640.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/915597/ltcube_405216001_405475201_4FGL_J2327.5-3259_daily_bin640.fits
.....................!
real 189.94
user 184.99
sys 4.55

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/915597/ft1_filtered_4FGL_J2327.5-3259_daily_bin640.fits scfile=/scratch/kocevski/915597/ft2_4FGL_J2327.5-3259_daily_bin640.fits outfile=/scratch/kocevski/915597/cmap_405216001_405475201_4FGL_J2327.5-3259_daily_bin640.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.38
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/915597/ft1_filtered_4FGL_J2327.5-3259_daily_bin640.fits evtable="EVENTS" scfile=/scratch/kocevski/915597/ft2_4FGL_J2327.5-3259_daily_bin640.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/915597/Model_4FGL_J2327.5-3259_daily_bin640.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/915597/ft1_filtered_4FGL_J2327.5-3259_daily_bin640.fits.....................!
real 46.45
user 45.19
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.039       1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.931       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.5477       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.3274       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.7752       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10570E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.5138       1.0000         .10000E-03   10000.    
    14 'norm      '    8.7215       1.0000         .10000E-03   10000.    
    15 'norm      '    .29368E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    39.852       1.0000         .10000E-03   10000.    
    19 'norm      '    .10633E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    42.577       1.0000         .10000E-03   10000.    
    21 'norm      '    .85130       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    47.695       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    20.606       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0699       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .59585       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=   6109.121     FROM MIGRAD    STATUS=CONVERGED    662 CALLS     3305 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.204        .32770E-06** at limit **
   2  Prefactor     .10000E-03    1.5012       -.13930E-07** at limit **
   3  Prefactor     10.038        14.774        .22732E-06    .31255E-05
   4  Prefactor     27.927        19.986        .20129E-06    .13357E-04
   5  Prefactor     .10000E-03    12.611       -.13525E-06** at limit **
   6  Prefactor     .10000E-03    2.9280        .14949E-08** at limit **
   7  Prefactor     .10000E-03    3.0672       -.96839E-08** at limit **
   8  norm          3.5472        3.0036       -.68920E-07   -.10057E-03
   9  Prefactor     1.3300        28.668        .52877E-05    .64076E-04
  10  Prefactor     9.7709        9.4868       -.10175E-05   -.20320E-03
  11  norm          .10000E-03    .17313       -.70857E-07** at limit **
  12  Prefactor     .10000E-03    95.339        .98452E-06** at limit **
  13  Prefactor     2.5116        8.5244        .10308E-05   -.22661E-05
  14  norm          8.7213        6.2200       -.16709E-06   -.14686E-03
  15  norm          .10002E-03    6.4076       -.14743E-05** at limit **
  16  Prefactor     .10000E-03    59.595       -.51789E-06** at limit **
  17  Prefactor     .10000E-03    16.293        .10606E-05** at limit **
  18  norm          39.853        7.3688       -.67009E-07   -.11266E-03
  19  norm          .10004E-03    1.9150       -.47355E-06** at limit **
  20  Prefactor     42.612        33.508        .43284E-06    .31919E-03
  21  norm          .85100        2.6071        .88864E-06    .15198E-03
  22  Prefactor     .10000E-03    25.768       -.71437E-07** at limit **
  23  Prefactor     47.709        37.976        .13536E-05    .12351E-03
  24  Prefactor     .10000E-03    1.0427       -.10913E-07** at limit **
  25  Prefactor     20.599        31.543       -.29167E-06   -.26975E-04
  26  Normalizat    1.0699        .16169       -.11993E-05    .17637E-03
  27  Prefactor     .59589        .16443        .63021E-06    .65906E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.0379
  Prefactor  = 27.9271
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.54723
  Prefactor  = 1.32997
  Prefactor  = 9.77086
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.51163
  norm       = 8.72135
  norm       = 0.000100019
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 39.8533
  norm       = 0.000100036
  Prefactor  = 42.6121
  norm       = 0.850998
  Prefactor  = 0.0001
  Prefactor  = 47.7093
  Prefactor  = 0.0001
  Prefactor  = 20.5995
  Normalizat = 1.06992
  Prefactor  = 0.595886
 **********
 **   18 **HESSE 
 **********

 FCN=   6109.121     FROM HESSE     STATUS=OK           486 CALLS     3791 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.5187        .93312E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.038        14.744        .12647E-03   -1.5074    
   4  Prefactor     27.927        19.983        .75805E-04   -1.4651    
   5  Prefactor     .10000E-03    12.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.9336        .13061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.1028        .13368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.5472        2.9976        .11715E-03   -1.5331    
   9  Prefactor     1.3300        28.468        .38141E-03   -1.5477    
  10  Prefactor     9.7709        9.2423        .12817E-03   -1.5083    
  11  norm          .10000E-03    .18599        .61468E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    98.848        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.5116        8.3761        .25769E-03   -1.5391    
  14  norm          8.7213        6.2264        .13573E-03   -1.5117    
  15  norm          .10002E-03    15.300        .35344E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    59.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    16.410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          39.853        7.3286        .63495E-04   -1.4445    
  19  norm          .10004E-03    15.205        .19238E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     42.612        33.859        .61437E-04   -1.4401    
  21  norm          .85100        2.5478        .21008E-03   -1.5523    
  22  Prefactor     .10000E-03    25.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     47.709        38.163        .29031E-03   -1.4325    
  24  Prefactor     .10000E-03    1.0442        .77927E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     20.599        31.625        .88235E-04   -1.4800    
  26  Normalizat    1.0699        .18603        .20812E-03   -.90724    
  27  Prefactor     .59589        .19019        .29040E-03   -1.0776    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.99588e-09
Minuit parameter uncertainties:
  1  3.97583e-05
  2  2.09785e-06
  3  14.7495
  4  19.9876
  5  9.379e-06
  6  3.50238e-06
  7  2.00023e-06
  8  2.99775
  9  12.3126
  10  9.24367
  11  7.66774e-07
  12  0.000337298
  13  8.37999
  14  6.2269
  15  0.00107842
  16  2.24023e-05
  17  0.000149602
  18  7.32874
  19  0.00148451
  20  33.8738
  21  2.54813
  22  2.57524e-05
  23  38.1827
  24  7.67852e-07
  25  31.6506
  26  0.186148
  27  0.190395
Done.

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

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.000e-04  1.496e-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:  5.959e-01  1.904e-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.070e+00  1.861e-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.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.27e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/915597/likelihoodResults_405216001_405475201_4FGL_J2327.5-3259_daily_bin640.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) = 6109.12089282
delta logL = -0.000290308060357

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6109.12060938
delta logL = -6.87076135364e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.1296       1.0000          .0000       10.000    
     3 'Normalizat'    1.0699       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59590       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6109.023     FROM MIGRAD    STATUS=FAILED       179 CALLS      368 TOTAL
                     EDM=   .73E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .10674E-01    .55967E-03** at limit **
   2  Index         9.9919        9.9432        .50000        .16910E-02
   3  Normalizat    1.0457        .43083E-01    .20812E-03    .72107E-05
   4  Prefactor     .61342        .44967E-01    .29040E-03    .17499E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6109.023     FROM SIMPLEX   STATUS=UNCHANGED    161 CALLS      529 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .10674E-01    .13855E-04** at limit **
   2  Index         9.9919        9.9432        .31792E-01    .16910E-02
   3  Normalizat    1.0457        .43083E-01    .22621E-06    .72107E-05
   4  Prefactor     .61342        .44967E-01    .13239E-05    .17499E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6109.023     FROM MIGRAD    STATUS=FAILED        57 CALLS      586 TOTAL
                     EDM=   .73E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .59745E-01     .0000    ** at limit **
   2  Index         9.9919        9.7245         .0000        .16910E-02
   3  Normalizat    1.0457        .97440E-01     .0000        .73746E-05
   4  Prefactor     .61342        .94034E-01     .0000        .17421E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 9.99186
  Normalizat = 1.04567
  Prefactor  = 0.613416
 **********
 **   18 **HESSE 
 **********

 FCN=   6109.023     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      623 TOTAL
                     EDM=   .12E-02    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .34895E-01    .34414E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.9919        7.8066        .50000        1.6279    
   3  Normalizat    1.0457        .69626E-01    .16649E-05   -.91516    
   4  Prefactor     .61342        .69818E-01    .23232E-05   -1.0702    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 0.00121431
Minuit parameter uncertainties:
  1  1.44287e-07
  2  5.87565
  3  0.0696322
  4  0.0698278
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/915597': 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): 1
logL (Free Index) = 6109.02295769
delta logL = 0.0976448192505

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.000e-04  1.443e-07  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  9.992e+00  5.876e+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:  6.134e-01  6.983e-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:  1.046e+00  6.963e-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/915597/cmap_HighResolution_405216001_405475201_4FGL_J2327.5-3259_daily_bin640.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.27e-03', job_status='DONE', photon_flux_upper_limit='5.47e-08', time_completed='2021-09-29 20:19:16.838862', job_id='915597', GAL2='0.61', fit_tolerance='1e-08', EG2='1.05', EG='1.07', time_epoch_completed='1632971956.84', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.60', dlogl='9.76e-02', ts2='0.21', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='640' AND source_name='4FGL J2327.5-3259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:19:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 915597: <4FGL_J2327.5-3259_daily_bin640> in cluster <slac> Done

Job <4FGL_J2327.5-3259_daily_bin640> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 20:05:23 2021
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 20:05:25 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:05:25 2021
Terminated at Wed Sep 29 20:19:17 2021
Results reported at Wed Sep 29 20:19:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5-3259_daily_bin640 351.883 -32.9869 405216001 405475201 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 :                                   798.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             341.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            834 sec.

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

