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


Performing analysis on: 4FGL_J2327.5-3259_daily_bin333
RA = 351.883, Dec = -32.9869
tmin = 325641601, tmax = 325900801
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='914020', job_status='RUN', time_executed='2021-09-29 20:02:20.947544', time_epoch_executed='1632970940.95' WHERE source_name='4FGL J2327.5-3259' and cadence='daily' and bin_id='333'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/914020

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/914020/ft1_4FGL_J2327.5-3259_daily_bin333.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/914020/ft2_4FGL_J2327.5-3259_daily_bin333.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/914020/ft1_4FGL_J2327.5-3259_daily_bin333.fits outfile=/scratch/kocevski/914020/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin333.fits ra=351.883 dec=-32.9869 rad=12.0 tmin=325641601.0 tmax=325900801.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 4.02
user 3.82
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/914020/ft1_filtered_4FGL_J2327.5-3259_daily_bin333.fits" evtable="EVENTS" scfile=/scratch/kocevski/914020/ft2_4FGL_J2327.5-3259_daily_bin333.fits sctable="SC_DATA" outfile=/scratch/kocevski/914020/ltcube_325641601_325900801_4FGL_J2327.5-3259_daily_bin333.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/914020/ft2_4FGL_J2327.5-3259_daily_bin333.fits
.....................!
real 11.80
user 11.44
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/914020/ft1_filtered_4FGL_J2327.5-3259_daily_bin333.fits evtable="EVENTS" scfile=/scratch/kocevski/914020/ft2_4FGL_J2327.5-3259_daily_bin333.fits sctable="SC_DATA" expcube=/scratch/kocevski/914020/ltcube_325641601_325900801_4FGL_J2327.5-3259_daily_bin333.fits outfile=/scratch/kocevski/914020/expmap_325641601_325900801_4FGL_J2327.5-3259_daily_bin333.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/914020/ltcube_325641601_325900801_4FGL_J2327.5-3259_daily_bin333.fits
.....................!
real 190.45
user 184.74
sys 5.33

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/914020/ft1_filtered_4FGL_J2327.5-3259_daily_bin333.fits scfile=/scratch/kocevski/914020/ft2_4FGL_J2327.5-3259_daily_bin333.fits outfile=/scratch/kocevski/914020/cmap_325641601_325900801_4FGL_J2327.5-3259_daily_bin333.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.57
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/914020/ft1_filtered_4FGL_J2327.5-3259_daily_bin333.fits scfile=/scratch/kocevski/914020/ft2_4FGL_J2327.5-3259_daily_bin333.fits outfile=/scratch/kocevski/914020/cmap_HighResolution_325641601_325900801_4FGL_J2327.5-3259_daily_bin333.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/914020/ft1_filtered_4FGL_J2327.5-3259_daily_bin333.fits evtable="EVENTS" scfile=/scratch/kocevski/914020/ft2_4FGL_J2327.5-3259_daily_bin333.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/914020/Model_4FGL_J2327.5-3259_daily_bin333.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/914020/ft1_filtered_4FGL_J2327.5-3259_daily_bin333.fits.....................!
real 36.72
user 35.41
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10232E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.484       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10830E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    45.518       1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.502       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.3105       1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.249       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.9412       1.0000         .10000E-03   10000.    
    11 'norm      '    2.3943       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11267E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    9.9349       1.0000         .10000E-03   10000.    
    15 'norm      '    6.8315       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .17015E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10222E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.6371       1.0000         .10000E-03   10000.    
    19 'norm      '    1.6859       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    14.392       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10231E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .12899E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2730       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .65389       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=   4252.943     FROM MIGRAD    STATUS=CONVERGED   1159 CALLS     3804 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.467        .18142E-02** at limit **
   2  Prefactor     .10000E-03    3.4528        .11760E-02** at limit **
   3  Prefactor     11.482        25.649        .11822E-03    .50104E-04
   4  Prefactor     .10000E-03    83.646        .18142E-02** at limit **
   5  Prefactor     45.499        43.855        .59427E-04    .55134E-04
   6  Prefactor     24.502        18.062        .80926E-04    .55491E-04
   7  Prefactor     .10000E-03    4.2799        .13163E-02** at limit **
   8  norm          1.3122        8.0224        .30770E-03    .55494E-04
   9  Prefactor     19.246        18.541        .91289E-04    .15427E-03
  10  Prefactor     4.9542        18.373        .18093E-03    .26560E-03
  11  norm          2.3941        1.4105        .39698E-04    .12323E-02
  12  Prefactor     .10000E-03    20.902        .18142E-02** at limit **
  13  Prefactor     .10000E-03    5.2837        .14626E-02** at limit **
  14  norm          9.9306        9.1940        .12713E-03   -.23340E-03
  15  norm          6.8321        9.7948        .76753E-03    .35207E-03
  16  Prefactor     .10002E-03    98.841        .12317    ** at limit **
  17  Prefactor     .10000E-03    81.893        .18142E-02** at limit **
  18  norm          1.6296        10.514        .27971E-03   -.21030E-03
  19  norm          1.6859        3.1803        .15557E-03    .11509E-03
  20  Prefactor     .10000E-03    28.262        .18142E-02** at limit **
  21  norm          14.392        6.7504        .10558E-03   -.28223E-03
  22  Prefactor     .10001E-03    170.25        .18142E-02** at limit **
  23  Prefactor     .10000E-03    75.808        .18142E-02** at limit **
  24  Prefactor     .10000E-03    2.2391        .95164E-03** at limit **
  25  Prefactor     .10000E-03    194.29        .18142E-02** at limit **
  26  Normalizat    1.2730        .27352        .22180E-03    .27453E-03
  27  Prefactor     .65395        .28029        .31347E-03    .82870E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.4825
  Prefactor  = 0.0001
  Prefactor  = 45.4991
  Prefactor  = 24.5023
  Prefactor  = 0.0001
  norm       = 1.31215
  Prefactor  = 19.246
  Prefactor  = 4.95422
  norm       = 2.39405
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.93061
  norm       = 6.83214
  Prefactor  = 0.000100021
  Prefactor  = 0.0001
  norm       = 1.62964
  norm       = 1.68593
  Prefactor  = 0.0001
  norm       = 14.3924
  Prefactor  = 0.000100012
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.27295
  Prefactor  = 0.653948
 **********
 **   18 **HESSE 
 **********

 FCN=   4252.943     FROM HESSE     STATUS=OK           470 CALLS     4274 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.467        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.4532        .23520E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.482        25.647        .47286E-05   -1.5030    
   4  Prefactor     .10000E-03    83.719        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     45.499        43.854        .11885E-04   -1.4358    
   6  Prefactor     24.502        18.062        .32370E-05   -1.4718    
   7  Prefactor     .10000E-03    4.2801        .26327E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.3122        7.9923        .12308E-04   -1.5479    
   9  Prefactor     19.246        18.536        .18258E-04   -1.4830    
  10  Prefactor     4.9542        18.339        .72373E-05   -1.5263    
  11  norm          2.3941        1.4092        .15879E-05   -1.5399    
  12  Prefactor     .10000E-03    20.902        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.2838        .29252E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          9.9306        9.1866        .50852E-05   -1.5078    
  15  norm          6.8321        9.7933        .30701E-04   -1.5185    
  16  Prefactor     .10002E-03    99.537        .12238       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    81.905        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.6296        10.442        .11188E-04   -1.5453    
  19  norm          1.6859        3.1802        .62230E-05   -1.5448    
  20  Prefactor     .10000E-03    28.264        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          14.392        6.7479        .42232E-05   -1.4949    
  22  Prefactor     .10001E-03    170.26        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    75.813        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    2.2391        .19033E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    194.40        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.2730        .27375        .44361E-04   -.84377    
  27  Prefactor     .65395        .28054        .12539E-04   -1.0536    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.4891e-10
Minuit parameter uncertainties:
  1  4.47538e-06
  2  1.39789e-05
  3  25.6712
  4  0.000363087
  5  43.8852
  6  18.0661
  7  3.91021e-06
  8  6.4778
  9  18.5419
  10  18.3596
  11  1.40923
  12  2.92653e-05
  13  1.35784e-05
  14  9.18789
  15  9.79557
  16  0.00288515
  17  0.000236226
  18  8.25199
  19  3.18054
  20  1.07468e-05
  21  6.74822
  22  0.00282631
  23  0.0007953
  24  3.21258e-06
  25  0.000438286
  26  0.274065
  27  0.281142
Done.

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

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.000e-04  2.362e-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:  6.539e-01  2.811e-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.273e+00  2.741e-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: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/914020/likelihoodResults_325641601_325900801_4FGL_J2327.5-3259_daily_bin333.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) = 4252.9434241
delta logL = -5.80670257477e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4252.94336629
delta logL = -2.53806319961e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10849E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9822       1.0000          .0000       10.000    
     3 'Normalizat'    1.2730       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65395       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=   4252.943     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      283 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10373E-03    56.535        .18142E-01** at limit **
   2  Index         2.8791        5.8479        .50000        .31318E-05
   3  Normalizat    1.2730        .47075E-02    .22180E-03   -.87135E-06
   4  Prefactor     .65395        .49461E-02    .31347E-03   -.54401E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103731
  Index      = 2.87914
  Normalizat = 1.27295
  Prefactor  = 0.653951
 **********
 **   18 **HESSE 
 **********

 FCN=   4252.943     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      312 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10373E-03    377.68        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8791        5.9832        .50000       -.43805    
   3  Normalizat    1.2730        .12144E-01    .88721E-05   -.84377    
   4  Prefactor     .65395        .12759E-01    .12539E-04   -1.0536    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.56737e-10
Minuit parameter uncertainties:
  1  0.0755586
  2  751.794
  3  0.0121437
  4  0.0127592
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/914020': 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) = 4252.94336617
delta logL = -1.32033164846e-07

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.037e-04  7.556e-02  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  2.879e+00  7.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:  6.540e-01  1.276e-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.273e+00  1.214e-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/914020/cmap_HighResolution_325641601_325900801_4FGL_J2327.5-3259_daily_bin333.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.30e-03', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2021-09-29 20:13:14.688305', job_id='914020', GAL2='0.65', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1632971594.69', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='-1.32e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='333' AND source_name='4FGL J2327.5-3259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:13:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 914020: <4FGL_J2327.5-3259_daily_bin333> in cluster <slac> Done

Job <4FGL_J2327.5-3259_daily_bin333> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 20:00:19 2021
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 20:00:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 20:00:21 2021
Terminated at Wed Sep 29 20:13:15 2021
Results reported at Wed Sep 29 20:13:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5-3259_daily_bin333 351.883 -32.9869 325641601 325900801 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 :                                   651.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   773 sec.
    Turnaround time :                            776 sec.

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

