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


Performing analysis on: 4FGL_J2327.5-3259_daily_bin309
RA = 351.883, Dec = -32.9869
tmin = 319420801, tmax = 319680001
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='912913', job_status='RUN', time_executed='2021-09-29 19:59:33.494222', time_epoch_executed='1632970773.49' WHERE source_name='4FGL J2327.5-3259' and cadence='daily' and bin_id='309'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/912913

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/912913/ft1_4FGL_J2327.5-3259_daily_bin309.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/912913/ft2_4FGL_J2327.5-3259_daily_bin309.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/912913/ft1_4FGL_J2327.5-3259_daily_bin309.fits outfile=/scratch/kocevski/912913/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin309.fits ra=351.883 dec=-32.9869 rad=12.0 tmin=319420801.0 tmax=319680001.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.45
user 3.21
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/912913/ft1_filtered_4FGL_J2327.5-3259_daily_bin309.fits" evtable="EVENTS" scfile=/scratch/kocevski/912913/ft2_4FGL_J2327.5-3259_daily_bin309.fits sctable="SC_DATA" outfile=/scratch/kocevski/912913/ltcube_319420801_319680001_4FGL_J2327.5-3259_daily_bin309.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/912913/ft2_4FGL_J2327.5-3259_daily_bin309.fits
.....................!
real 11.72
user 11.35
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/912913/ft1_filtered_4FGL_J2327.5-3259_daily_bin309.fits evtable="EVENTS" scfile=/scratch/kocevski/912913/ft2_4FGL_J2327.5-3259_daily_bin309.fits sctable="SC_DATA" expcube=/scratch/kocevski/912913/ltcube_319420801_319680001_4FGL_J2327.5-3259_daily_bin309.fits outfile=/scratch/kocevski/912913/expmap_319420801_319680001_4FGL_J2327.5-3259_daily_bin309.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/912913/ltcube_319420801_319680001_4FGL_J2327.5-3259_daily_bin309.fits
.....................!
real 189.74
user 185.08
sys 4.30

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/912913/ft1_filtered_4FGL_J2327.5-3259_daily_bin309.fits scfile=/scratch/kocevski/912913/ft2_4FGL_J2327.5-3259_daily_bin309.fits outfile=/scratch/kocevski/912913/cmap_HighResolution_319420801_319680001_4FGL_J2327.5-3259_daily_bin309.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.55
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/912913/ft1_filtered_4FGL_J2327.5-3259_daily_bin309.fits evtable="EVENTS" scfile=/scratch/kocevski/912913/ft2_4FGL_J2327.5-3259_daily_bin309.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/912913/Model_4FGL_J2327.5-3259_daily_bin309.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/912913/ft1_filtered_4FGL_J2327.5-3259_daily_bin309.fits.....................!
real 44.66
user 43.32
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10301E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.1072       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.4631       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .27896E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.1577       1.0000         .10000E-03   10000.    
    12 'Prefactor '    28.243       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.240       1.0000         .10000E-03   10000.    
    14 'norm      '    1.1801       1.0000         .10000E-03   10000.    
    15 'norm      '    7.4968       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .58788       1.0000         .10000E-03   10000.    
    19 'norm      '    1.0272       1.0000         .10000E-03   10000.    
    20 'Prefactor '    29.828       1.0000         .10000E-03   10000.    
    21 'norm      '    .27048E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.1132       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .68157       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2599       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=   5794.397     FROM MIGRAD    STATUS=CONVERGED    666 CALLS     3322 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    93.267       -.72014E-05** at limit **
   2  Prefactor     1.1073        2.9420        .72553E-06   -.26906E-03
   3  Prefactor     .10000E-03    6.5085       -.84580E-08** at limit **
   4  Prefactor     5.4651        22.168        .99541E-06   -.76420E-05
   5  Prefactor     .10000E-03    10.954        .12026E-06** at limit **
   6  Prefactor     .10000E-03    3.5197        .16697E-07** at limit **
   7  Prefactor     .10000E-03    2.9170        .82637E-07** at limit **
   8  norm          .10000E-03    1.4258        .40472E-07** at limit **
   9  Prefactor     .10000E-03    5.1247        .88990E-08** at limit **
  10  Prefactor     .10000E-03    4.3115        .15490E-07** at limit **
  11  norm          1.1569        .63571       -.54071E-07   -.49163E-04
  12  Prefactor     28.235        45.344       -.21317E-05   -.15133E-03
  13  Prefactor     10.229        10.996        .46014E-06    .19059E-03
  14  norm          1.1799        3.7829        .10788E-08   -.28205E-03
  15  norm          7.4971        7.9934        .17455E-05   -.63718E-03
  16  Prefactor     .10000E-03    46.354       -.28421E-05** at limit **
  17  Prefactor     .10000E-03    13.969       -.33039E-06** at limit **
  18  norm          .58854        4.4199        .14747E-05   -.43089E-03
  19  norm          1.0262        3.1005        .77851E-06   -.23029E-03
  20  Prefactor     29.834        31.285        .17315E-06    .53792E-04
  21  norm          .10038E-03    1.9021        .59112E-06** at limit **
  22  Prefactor     .10000E-03    32.938        .11437E-05** at limit **
  23  Prefactor     .10000E-03    34.663       -.16736E-05** at limit **
  24  Prefactor     5.1135        5.1142        .44629E-06    .48055E-04
  25  Prefactor     .10003E-03    66.666        .87716E-05** at limit **
  26  Normalizat    .68148        .16554       -.94670E-06   -.19407E-03
  27  Prefactor     1.2600        .18499       -.45417E-06   -.19043E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100024
  Prefactor  = 1.10727
  Prefactor  = 0.0001
  Prefactor  = 5.46507
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.15686
  Prefactor  = 28.2349
  Prefactor  = 10.2286
  norm       = 1.17991
  norm       = 7.49706
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.588543
  norm       = 1.02621
  Prefactor  = 29.8341
  norm       = 0.000100375
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 5.11349
  Prefactor  = 0.000100033
  Normalizat = 0.681475
  Prefactor  = 1.25997
 **********
 **   18 **HESSE 
 **********

 FCN=   5794.397     FROM HESSE     STATUS=OK           488 CALLS     3810 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    97.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.1073        2.9496        .20474E-03   -1.5498    
   3  Prefactor     .10000E-03    6.5102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.4651        22.143        .17191E-03   -1.5240    
   5  Prefactor     .10000E-03    10.962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.5358        .13945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.9272        .12698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.4352        .88682E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.1304        .16820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.375        .26583E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.1569        .60077        .38182E-04   -1.5493    
  12  Prefactor     28.235        45.930        .75385E-04   -1.4645    
  13  Prefactor     10.229        10.576        .12521E-03   -1.5068    
  14  norm          1.1799        3.6243        .24154E-03   -1.5491    
  15  norm          7.4971        8.3172        .73237E-03   -1.5160    
  16  Prefactor     .10000E-03    47.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .58854        4.1634        .28446E-03   -1.5555    
  19  norm          1.0262        3.0692        .21125E-03   -1.5505    
  20  Prefactor     29.834        30.622        .73360E-04   -1.4615    
  21  norm          .10038E-03    30.085        .19246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    33.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    34.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     5.1135        5.0936        .16396E-03   -1.5256    
  25  Prefactor     .10003E-03    72.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .68148        .19525        .25570E-03   -1.0463    
  27  Prefactor     1.2600        .22153        .22171E-03   -.84505    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31105e-08
Minuit parameter uncertainties:
  1  0.00305202
  2  2.94994
  3  1.7584e-06
  4  22.0151
  5  2.17474e-05
  6  4.35555e-06
  7  7.49375e-06
  8  3.144e-06
  9  6.51254e-07
  10  0.000171556
  11  0.600771
  12  45.9877
  13  10.5777
  14  3.62495
  15  8.31851
  16  0.000792196
  17  5.40573e-05
  18  3.13076
  19  3.06963
  20  30.6385
  21  0.00672343
  22  0.000284547
  23  0.000451813
  24  5.09401
  25  0.00308166
  26  0.195454
  27  0.221697
Done.

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

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.000e-04  5.406e-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:  1.260e+00  2.217e-01  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
604   Normalization:  6.815e-01  1.955e-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.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/912913/likelihoodResults_319420801_319680001_4FGL_J2327.5-3259_daily_bin309.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) = 5794.3968521
delta logL = -0.000340289086125

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5794.3965118
delta logL = 1.19525793707e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10229E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5317       1.0000          .0000       10.000    
     3 'Normalizat'    .68147       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2600       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=   5794.397     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      262 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    74.732        .18142E-01** at limit **
   2  Index         1.9246        5.1229        .50000       -.56370E-06
   3  Normalizat    .68148        .72955E-02    .25570E-03    .40282E-04
   4  Prefactor     1.2600        .83942E-02    .22171E-03    .50118E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.92457
  Normalizat = 0.681476
  Prefactor  = 1.25997
 **********
 **   18 **HESSE 
 **********

 FCN=   5794.397     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      289 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    389.32        .34004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9246        6.4371        .50000       -.66249    
   3  Normalizat    .68148        .16985E-01    .10228E-04   -1.0463    
   4  Prefactor     1.2600        .19543E-01    .44342E-04   -.84505    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.63908e-08
Minuit parameter uncertainties:
  1  0.000261747
  2  851.802
  3  0.0169855
  4  0.0195436
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/912913': 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) = 5794.39651062
delta logL = 1.1915271898e-06

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.000e-04  2.617e-04  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  1.925e+00  8.518e+02  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.260e+00  1.954e-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:  6.815e-01  1.699e-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/912913/cmap_HighResolution_319420801_319680001_4FGL_J2327.5-3259_daily_bin309.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.03e-03', job_status='DONE', photon_flux_upper_limit='5.16e-08', time_completed='2021-09-29 20:11:54.030355', job_id='912913', GAL2='1.26', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1632971514.03', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.26', dlogl='1.19e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='309' AND source_name='4FGL J2327.5-3259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:11:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 912913: <4FGL_J2327.5-3259_daily_bin309> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5-3259_daily_bin309 351.883 -32.9869 319420801 319680001 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 :                                   738.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             237.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   966 sec.
    Turnaround time :                            969 sec.

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

