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


Performing analysis on: 4FGL_J2327.5-3259_daily_bin343
RA = 351.883, Dec = -32.9869
tmin = 328233601, tmax = 328492801
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='914034', job_status='RUN', time_executed='2021-09-29 20:01:36.116555', time_epoch_executed='1632970896.12' WHERE source_name='4FGL J2327.5-3259' and cadence='daily' and bin_id='343'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/914034

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/914034/ft1_4FGL_J2327.5-3259_daily_bin343.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/914034/ft2_4FGL_J2327.5-3259_daily_bin343.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/914034/ft1_4FGL_J2327.5-3259_daily_bin343.fits outfile=/scratch/kocevski/914034/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin343.fits ra=351.883 dec=-32.9869 rad=12.0 tmin=328233601.0 tmax=328492801.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.89
user 3.69
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/914034/ft2_4FGL_J2327.5-3259_daily_bin343.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/914034/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin343.fits evtable="EVENTS" outfile="/scratch/kocevski/914034/ft1_filtered_4FGL_J2327.5-3259_daily_bin343.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.54
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/914034/ft1_filtered_4FGL_J2327.5-3259_daily_bin343.fits" evtable="EVENTS" scfile=/scratch/kocevski/914034/ft2_4FGL_J2327.5-3259_daily_bin343.fits sctable="SC_DATA" outfile=/scratch/kocevski/914034/ltcube_328233601_328492801_4FGL_J2327.5-3259_daily_bin343.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/914034/ft2_4FGL_J2327.5-3259_daily_bin343.fits
.....................!
real 11.78
user 11.42
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/914034/ft1_filtered_4FGL_J2327.5-3259_daily_bin343.fits evtable="EVENTS" scfile=/scratch/kocevski/914034/ft2_4FGL_J2327.5-3259_daily_bin343.fits sctable="SC_DATA" expcube=/scratch/kocevski/914034/ltcube_328233601_328492801_4FGL_J2327.5-3259_daily_bin343.fits outfile=/scratch/kocevski/914034/expmap_328233601_328492801_4FGL_J2327.5-3259_daily_bin343.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/914034/ltcube_328233601_328492801_4FGL_J2327.5-3259_daily_bin343.fits
.....................!
real 190.51
user 184.91
sys 5.29

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/914034/ft1_filtered_4FGL_J2327.5-3259_daily_bin343.fits scfile=/scratch/kocevski/914034/ft2_4FGL_J2327.5-3259_daily_bin343.fits outfile=/scratch/kocevski/914034/cmap_328233601_328492801_4FGL_J2327.5-3259_daily_bin343.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/914034/ft1_filtered_4FGL_J2327.5-3259_daily_bin343.fits scfile=/scratch/kocevski/914034/ft2_4FGL_J2327.5-3259_daily_bin343.fits outfile=/scratch/kocevski/914034/cmap_HighResolution_328233601_328492801_4FGL_J2327.5-3259_daily_bin343.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.987       1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.414       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.2210       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.3883       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11753E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.939       1.0000         .10000E-03   10000.    
    11 'norm      '    .37947       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.5256       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10542E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.7347       1.0000         .10000E-03   10000.    
    19 'norm      '    .10375E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.959       1.0000         .10000E-03   10000.    
    21 'norm      '    1.5335       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    28.685       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.8335       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .79169       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .89187       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6188.728     FROM MIGRAD    STATUS=CONVERGED    104 CALLS     2284 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.084        .16838E-05** at limit **
   2  Prefactor     .10000E-03    1.4389       -.28305E-06** at limit **
   3  Prefactor     .10000E-03    7.5806       -.57450E-05** at limit **
   4  Prefactor     10.986        1.0030       -.26308E-07   -.15637E-04
   5  Prefactor     21.411        1.0399       -.83438E-07    .65351E-04
   6  Prefactor     3.2204        1.0321       -.38379E-06   -.14160E-03
   7  Prefactor     .10000E-03    2.3838       -.31487E-06** at limit **
   8  norm          4.3900        1.0587       -.27096E-07   -.89723E-04
   9  Prefactor     .10000E-03    16.289        .17600E-04** at limit **
  10  Prefactor     24.960        1.5390        .44091E-06   -.45847E-03
  11  norm          .37798        .43585       -.30453E-07    .34083E-03
  12  Prefactor     .10000E-03    6.5807       -.25961E-05** at limit **
  13  Prefactor     .10000E-03    3.7323       -.17552E-06** at limit **
  14  norm          .10000E-03    3.0161       -.14348E-06** at limit **
  15  norm          4.5255        1.4297        .77128E-06    .31115E-02
  16  Prefactor     .10000E-03    95.964       -.12041E-04** at limit **
  17  Prefactor     .10000E-03    34.752        .17197E-04** at limit **
  18  norm          5.7346        3.5790        .24176E-05    .68359E-03
  19  norm          .10000E-03    2.0332       -.44766E-06** at limit **
  20  Prefactor     17.967        1.3129       -.69632E-07    .24964E-03
  21  norm          1.5344        2.9358        .37568E-06   -.77362E-04
  22  Prefactor     .10000E-03    22.375       -.17434E-04** at limit **
  23  Prefactor     28.684        1.0079       -.54971E-07    .99247E-04
  24  Prefactor     .10000E-03    2.4465       -.26955E-06** at limit **
  25  Prefactor     8.8331        1.0037       -.46310E-07    .11146E-04
  26  Normalizat    .79177        .16819       -.19361E-06   -.92407E-04
  27  Prefactor     .89178        .18728       -.19921E-07   -.76088E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.9863
  Prefactor  = 21.4113
  Prefactor  = 3.22035
  Prefactor  = 0.0001
  norm       = 4.39
  Prefactor  = 0.000100001
  Prefactor  = 24.9602
  norm       = 0.377983
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.52552
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 5.73464
  norm       = 0.0001
  Prefactor  = 17.9675
  norm       = 1.53437
  Prefactor  = 0.000100001
  Prefactor  = 28.6841
  Prefactor  = 0.0001
  Prefactor  = 8.83306
  Normalizat = 0.791767
  Prefactor  = 0.891781
 **********
 **   18 **HESSE 
 **********

 FCN=   6188.728     FROM HESSE     STATUS=OK           550 CALLS     2834 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.084        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.3988        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.687        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.986        12.814        .30217E-02   -1.5045    
   5  Prefactor     21.411        23.734        .21639E-02   -1.4782    
   6  Prefactor     3.2204        7.0629        .56431E-02   -1.5349    
   7  Prefactor     .10000E-03    2.3785        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.3900        3.8950        .48065E-02   -1.5289    
   9  Prefactor     .10000E-03    16.539        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     24.960        11.535        .20054E-02   -1.4708    
  11  norm          .37798        .59915        .10768E-01   -1.5585    
  12  Prefactor     .10000E-03    13.951        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.7222        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.9887        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.5255        4.2407        .47311E-02   -1.5282    
  16  Prefactor     .10000E-03    94.421        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    34.779        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.7346        3.6713        .41932E-02   -1.5229    
  19  norm          .10000E-03    1.2685        .34870E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     17.967        20.483        .23628E-02   -1.4860    
  21  norm          1.5344        2.9956        .86137E-02   -1.5460    
  22  Prefactor     .10000E-03    22.881        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     28.684        27.199        .18701E-02   -1.4636    
  24  Prefactor     .10000E-03    2.3585        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     8.8331        17.027        .33715E-02   -1.5113    
  26  Normalizat    .79177        .14565        .43502E-01   -1.0037    
  27  Prefactor     .89178        .15863        .44901E-01   -.96429    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23462e-07
Minuit parameter uncertainties:
  1  4.25674e-05
  2  5.63323e-06
  3  0.000112711
  4  12.8168
  5  23.7441
  6  7.06477
  7  6.45599e-06
  8  3.89523
  9  0.000292486
  10  11.5358
  11  0.599163
  12  0.000219965
  13  3.75808e-06
  14  2.57733e-06
  15  4.24101
  16  0.000415517
  17  0.000421875
  18  3.67143
  19  2.48842e-06
  20  20.4911
  21  2.99593
  22  0.000281468
  23  27.2105
  24  7.13879e-06
  25  17.0359
  26  0.145721
  27  0.158709
Done.

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

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.000e-04  4.219e-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:  8.918e-01  1.587e-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:  7.918e-01  1.457e-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: 6.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/914034/likelihoodResults_328233601_328492801_4FGL_J2327.5-3259_daily_bin343.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): 0
logL (Free Index) = 6188.72804537
delta logL = -0.000136451454637

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6188.72790913
delta logL = -2.10531652556e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4822       1.0000          .0000       10.000    
     3 'Normalizat'    .79178       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89177       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=   6188.728     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      261 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.928        .18142E-02** at limit **
   2  Index         2.5204        6.2600        .50000       -.11183E-04
   3  Normalizat    .79177        .16673        .22123E-03   -.17205E-03
   4  Prefactor     .89178        .18602        .23236E-03   -.52987E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Index      = 2.52036
  Normalizat = 0.791766
  Prefactor  = 0.891782
 **********
 **   18 **HESSE 
 **********

 FCN=   6188.728     FROM HESSE     STATUS=OK            29 CALLS      290 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.417        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5204        6.2570        .50000       -.51890    
   3  Normalizat    .79177        .16693        .88492E-05   -1.0037    
   4  Prefactor     .89178        .18624        .92945E-05   -.96429    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.9721e-10
Minuit parameter uncertainties:
  1  0.000731854
  2  4.34855
  3  0.167034
  4  0.18637
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/914034': 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): 0
logL (Free Index) = 6188.72790901
delta logL = -9.49767127167e-08

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.000e-04  7.319e-04  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  2.520e+00  4.349e+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:  8.918e-01  1.864e-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:  7.918e-01  1.670e-01  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/914034/cmap_HighResolution_328233601_328492801_4FGL_J2327.5-3259_daily_bin343.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.79e-03', job_status='DONE', photon_flux_upper_limit='6.14e-08', time_completed='2021-09-29 20:13:12.684838', job_id='914034', GAL2='0.89', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1632971592.68', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='-9.50e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='343' AND source_name='4FGL J2327.5-3259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:13:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 914034: <4FGL_J2327.5-3259_daily_bin343> in cluster <slac> Done

Job <4FGL_J2327.5-3259_daily_bin343> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 20:00:20 2021
Job was executed on host(s) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 20:00:22 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:22 2021
Terminated at Wed Sep 29 20:13:13 2021
Results reported at Wed Sep 29 20:13:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5-3259_daily_bin343 351.883 -32.9869 328233601 328492801 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 :                                   694.16 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             299.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   770 sec.
    Turnaround time :                            773 sec.

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

