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


Performing analysis on: 4FGL_J2327.5-3259_daily_bin734
RA = 351.883, Dec = -32.9869
tmin = 429580801, tmax = 429840001
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='915744', job_status='RUN', time_executed='2021-09-29 20:08:05.530212', time_epoch_executed='1632971285.53' WHERE source_name='4FGL J2327.5-3259' and cadence='daily' and bin_id='734'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/915744

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/915744/ft1_4FGL_J2327.5-3259_daily_bin734.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/915744/ft2_4FGL_J2327.5-3259_daily_bin734.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/915744/ft1_4FGL_J2327.5-3259_daily_bin734.fits outfile=/scratch/kocevski/915744/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin734.fits ra=351.883 dec=-32.9869 rad=12.0 tmin=429580801.0 tmax=429840001.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 6.36
user 6.07
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/915744/ft1_filtered_4FGL_J2327.5-3259_daily_bin734.fits" evtable="EVENTS" scfile=/scratch/kocevski/915744/ft2_4FGL_J2327.5-3259_daily_bin734.fits sctable="SC_DATA" outfile=/scratch/kocevski/915744/ltcube_429580801_429840001_4FGL_J2327.5-3259_daily_bin734.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/915744/ft2_4FGL_J2327.5-3259_daily_bin734.fits
.....................!
real 12.01
user 11.65
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/915744/ft1_filtered_4FGL_J2327.5-3259_daily_bin734.fits evtable="EVENTS" scfile=/scratch/kocevski/915744/ft2_4FGL_J2327.5-3259_daily_bin734.fits sctable="SC_DATA" expcube=/scratch/kocevski/915744/ltcube_429580801_429840001_4FGL_J2327.5-3259_daily_bin734.fits outfile=/scratch/kocevski/915744/expmap_429580801_429840001_4FGL_J2327.5-3259_daily_bin734.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/915744/ltcube_429580801_429840001_4FGL_J2327.5-3259_daily_bin734.fits
.....................!
real 190.26
user 185.04
sys 4.80

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/915744/ft1_filtered_4FGL_J2327.5-3259_daily_bin734.fits scfile=/scratch/kocevski/915744/ft2_4FGL_J2327.5-3259_daily_bin734.fits outfile=/scratch/kocevski/915744/cmap_429580801_429840001_4FGL_J2327.5-3259_daily_bin734.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/915744/ft1_filtered_4FGL_J2327.5-3259_daily_bin734.fits scfile=/scratch/kocevski/915744/ft2_4FGL_J2327.5-3259_daily_bin734.fits outfile=/scratch/kocevski/915744/cmap_HighResolution_429580801_429840001_4FGL_J2327.5-3259_daily_bin734.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/915744/ft1_filtered_4FGL_J2327.5-3259_daily_bin734.fits evtable="EVENTS" scfile=/scratch/kocevski/915744/ft2_4FGL_J2327.5-3259_daily_bin734.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/915744/Model_4FGL_J2327.5-3259_daily_bin734.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/915744/ft1_filtered_4FGL_J2327.5-3259_daily_bin734.fits.....................!
real 33.93
user 32.59
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.095       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.0992       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .20406       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .25410E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .37936       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.638       1.0000         .10000E-03   10000.    
    11 'norm      '    .95441       1.0000         .10000E-03   10000.    
    12 'Prefactor '    81.306       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .35463E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .66575       1.0000         .10000E-03   10000.    
    15 'norm      '    3.7302       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.541       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.4403       1.0000         .10000E-03   10000.    
    19 'norm      '    .23301E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    36.310       1.0000         .10000E-03   10000.    
    21 'norm      '    1.0794       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    38.015       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0963       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .68965       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=   3967.575     FROM MIGRAD    STATUS=CONVERGED    736 CALLS     3442 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.101        57.204        .10493E-05    .62031E-04
   2  Prefactor     4.1140        5.4988       -.12822E-06    .26023E-03
   3  Prefactor     .14120E-01    32.979       -.25102E-05    .78627E-04
   4  Prefactor     .10000E-03    23.635       -.54015E-07** at limit **
   5  Prefactor     .10237E-03    84.840        .10386E-04** at limit **
   6  Prefactor     .10000E-03    9.0259       -.29270E-07** at limit **
   7  Prefactor     .10000E-03    3.5624       -.10027E-07** at limit **
   8  norm          .37889        7.4455        .33232E-05   -.17428E-05
   9  Prefactor     .10000E-03    7.3292        .59626E-08** at limit **
  10  Prefactor     13.652        15.086        .19823E-06    .32328E-03
  11  norm          .95443        1.1298       -.24965E-06    .11536E-02
  12  Prefactor     81.246        58.685       -.24637E-05   -.19561E-03
  13  Prefactor     .10008E-03    21.228       -.47126E-05** at limit **
  14  norm          .66645        8.3758        .49510E-06    .42845E-03
  15  norm          3.7302        4.9502        .44975E-06    .72735E-03
  16  Prefactor     13.560        43.262        .16857E-05    .22182E-03
  17  Prefactor     .10000E-03    16.203       -.68195E-07** at limit **
  18  norm          4.4371        7.3747        .71835E-06    .98804E-03
  19  norm          .10000E-03    3.4511        .13881E-05** at limit **
  20  Prefactor     36.345        40.015       -.23832E-05   -.38642E-03
  21  norm          1.0817        9.9201       -.12424E-05    .19504E-03
  22  Prefactor     .10000E-03    31.218        .98284E-07** at limit **
  23  Prefactor     .10000E-03    16.799        .26880E-07** at limit **
  24  Prefactor     .10000E-03    5.1173       -.13818E-06** at limit **
  25  Prefactor     38.023        46.107        .40693E-06    .69051E-04
  26  Normalizat    1.0959        .21229        .15863E-05    .16327E-03
  27  Prefactor     .69013        .22277       -.13474E-05    .44335E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.1012
  Prefactor  = 4.114
  Prefactor  = 0.0141198
  Prefactor  = 0.0001
  Prefactor  = 0.00010237
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.37889
  Prefactor  = 0.0001
  Prefactor  = 13.6523
  norm       = 0.954432
  Prefactor  = 81.2458
  Prefactor  = 0.000100079
  norm       = 0.666452
  norm       = 3.73025
  Prefactor  = 13.56
  Prefactor  = 0.0001
  norm       = 4.43712
  norm       = 0.0001
  Prefactor  = 36.3453
  norm       = 1.0817
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.0226
  Normalizat = 1.09589
  Prefactor  = 0.690132
 **********
 **   18 **HESSE 
 **********

 FCN=   3967.575     FROM HESSE     STATUS=OK           502 CALLS     3944 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.101        57.335        .67646E-04   -1.4522    
   2  Prefactor     4.1140        5.4755        .14264E-03   -1.5302    
   3  Prefactor     .14120E-01    32.311        .94993E-01   -1.5684    
   4  Prefactor     .10000E-03    23.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10237E-03    418.72        .75322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.0764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.5684        .11610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .37889        12.898        .21102E-02   -1.5585    
   9  Prefactor     .10000E-03    7.3343        .16649E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.652        15.217        .10846E-03   -1.4969    
  11  norm          .95443        1.1206        .48118E-03   -1.5513    
  12  Prefactor     81.246        58.954        .22271E-03   -1.3903    
  13  Prefactor     .10008E-03    71.695        .38430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .66645        8.4279        .33170E-03   -1.5545    
  15  norm          3.7302        5.0005        .79382E-03   -1.5322    
  16  Prefactor     13.560        43.028        .10885E-03   -1.4971    
  17  Prefactor     .10000E-03    16.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.4371        7.2054        .14110E-03   -1.5287    
  19  norm          .10000E-03    10.842        .20278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     36.345        39.690        .66508E-04   -1.4501    
  21  norm          1.0817        9.6557        .31510E-03   -1.5500    
  22  Prefactor     .10000E-03    31.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    16.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.1966        .13902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     38.023        46.088        .65005E-04   -1.4474    
  26  Normalizat    1.0959        .25498        .20703E-03   -.89884    
  27  Prefactor     .69013        .26469        .27924E-03   -1.0391    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0976e-08
Minuit parameter uncertainties:
  1  57.4253
  2  5.47615
  3  1.34683
  4  2.98393e-05
  5  0.0634474
  6  1.26766e-05
  7  3.38245e-06
  8  4.42166
  9  1.45498e-05
  10  15.2216
  11  1.12067
  12  58.996
  13  0.00477023
  14  4.74043
  15  5.00107
  16  43.1269
  17  1.53002e-05
  18  7.20679
  19  7.29232e-05
  20  39.719
  21  6.46469
  22  2.92637e-05
  23  1.02533e-06
  24  2.76127e-05
  25  46.1315
  26  0.255264
  27  0.265171
Done.

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

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.000e-04  1.530e-05  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:  6.901e-01  2.652e-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.096e+00  2.553e-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.65e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.41e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/915744/likelihoodResults_429580801_429840001_4FGL_J2327.5-3259_daily_bin734.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) = 3967.57489237
delta logL = -0.00029338841432

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3967.57460095
delta logL = -1.96639484784e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1876       1.0000          .0000       10.000    
     3 'Normalizat'    1.0959       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69014       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=   3967.575     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      286 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    61.309        .18142E-01** at limit **
   2  Index         2.1435        5.1100        .50000        .32484E-06
   3  Normalizat    1.0959        .86472E-02    .20703E-03    .79133E-02
   4  Prefactor     .69015        .94946E-02    .27924E-03    .58921E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100008
  Index      = 2.14351
  Normalizat = 1.0959
  Prefactor  = 0.690151
 **********
 **   18 **HESSE 
 **********

 FCN=   3967.575     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      315 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    434.71        .26154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1435        8.7643        .50000       -.60809    
   3  Normalizat    1.0959        .23679E-01    .41406E-04   -.89883    
   4  Prefactor     .69015        .25999E-01    .55849E-04   -1.0391    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.98947e-09
Minuit parameter uncertainties:
  1  0.00367361
  2  1333.34
  3  0.0236789
  4  0.0259993
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/915744': 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) = 3967.5745987
delta logL = 2.82106611849e-07

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.000e-04  3.674e-03  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  2.144e+00  1.333e+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:  6.902e-01  2.600e-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.096e+00  2.368e-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/915744/cmap_HighResolution_429580801_429840001_4FGL_J2327.5-3259_daily_bin734.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.41e-03', job_status='DONE', photon_flux_upper_limit='5.65e-08', time_completed='2021-09-29 20:18:51.325893', job_id='915744', GAL2='0.69', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1632971931.33', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='2.82e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='734' AND source_name='4FGL J2327.5-3259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:18:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 915744: <4FGL_J2327.5-3259_daily_bin734> in cluster <slac> Done

Job <4FGL_J2327.5-3259_daily_bin734> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 20:05:37 2021
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 20:05:39 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:39 2021
Terminated at Wed Sep 29 20:18:52 2021
Results reported at Wed Sep 29 20:18:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5-3259_daily_bin734 351.883 -32.9869 429580801 429840001 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 :                                   642.10 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             292.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   792 sec.
    Turnaround time :                            795 sec.

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

