/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 216 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_bin364
RA = 351.883, Dec = -32.9869
tmin = 333676801, tmax = 333936001
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='914066', job_status='RUN', time_executed='2021-09-29 20:04:10.031652', time_epoch_executed='1632971050.03' WHERE source_name='4FGL J2327.5-3259' and cadence='daily' and bin_id='364'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/914066

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/914066/ft1_4FGL_J2327.5-3259_daily_bin364.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/914066/ft2_4FGL_J2327.5-3259_daily_bin364.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/914066/ft1_4FGL_J2327.5-3259_daily_bin364.fits outfile=/scratch/kocevski/914066/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin364.fits ra=351.883 dec=-32.9869 rad=12.0 tmin=333676801.0 tmax=333936001.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.81
user 3.57
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/914066/ft1_filtered_4FGL_J2327.5-3259_daily_bin364.fits" evtable="EVENTS" scfile=/scratch/kocevski/914066/ft2_4FGL_J2327.5-3259_daily_bin364.fits sctable="SC_DATA" outfile=/scratch/kocevski/914066/ltcube_333676801_333936001_4FGL_J2327.5-3259_daily_bin364.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/914066/ft2_4FGL_J2327.5-3259_daily_bin364.fits
.....................!
real 11.65
user 11.32
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/914066/ft1_filtered_4FGL_J2327.5-3259_daily_bin364.fits evtable="EVENTS" scfile=/scratch/kocevski/914066/ft2_4FGL_J2327.5-3259_daily_bin364.fits sctable="SC_DATA" expcube=/scratch/kocevski/914066/ltcube_333676801_333936001_4FGL_J2327.5-3259_daily_bin364.fits outfile=/scratch/kocevski/914066/expmap_333676801_333936001_4FGL_J2327.5-3259_daily_bin364.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/914066/ltcube_333676801_333936001_4FGL_J2327.5-3259_daily_bin364.fits
.....................!
real 190.39
user 184.79
sys 5.24

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/914066/ft1_filtered_4FGL_J2327.5-3259_daily_bin364.fits scfile=/scratch/kocevski/914066/ft2_4FGL_J2327.5-3259_daily_bin364.fits outfile=/scratch/kocevski/914066/cmap_333676801_333936001_4FGL_J2327.5-3259_daily_bin364.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/914066/ft1_filtered_4FGL_J2327.5-3259_daily_bin364.fits scfile=/scratch/kocevski/914066/ft2_4FGL_J2327.5-3259_daily_bin364.fits outfile=/scratch/kocevski/914066/cmap_HighResolution_333676801_333936001_4FGL_J2327.5-3259_daily_bin364.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/914066/ft1_filtered_4FGL_J2327.5-3259_daily_bin364.fits evtable="EVENTS" scfile=/scratch/kocevski/914066/ft2_4FGL_J2327.5-3259_daily_bin364.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/914066/Model_4FGL_J2327.5-3259_daily_bin364.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/914066/ft1_filtered_4FGL_J2327.5-3259_daily_bin364.fits.....................!
real 41.79
user 39.83
sys 1.35

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    101.97       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.6317       1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.655       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.786       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.992       1.0000         .10000E-03   10000.    
     8 'norm      '    21.420       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.5015       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.9768       1.0000         .10000E-03   10000.    
    11 'norm      '    .10188E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10421E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .17287E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.5700       1.0000         .10000E-03   10000.    
    15 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10584E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.6468       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .20956E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    52.989       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11309E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.0036       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10798E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1877       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .76721       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=   5469.598     FROM MIGRAD    STATUS=CONVERGED    108 CALLS     3427 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     101.94        13.008       -.78486E-05    .16274E-01
   2  Prefactor     6.6285        5.2310       -.43027E-05   -.11114E-02
   3  Prefactor     20.665        2.3520        .25076E-05   -.53848E-03
   4  Prefactor     10.782        1.2966        .14277E-05    .41790E-03
   5  Prefactor     .10021E-03    5.9433       -.56354E-05** at limit **
   6  Prefactor     .10018E-03    6.4304        .10774E-04** at limit **
   7  Prefactor     12.991        1.0453       -.18504E-06   -.16309E-04
   8  norm          21.424        4.4393       -.16054E-05   -.25081E-02
   9  Prefactor     2.4862        7.2477        .22340E-04    .15937E-02
  10  Prefactor     8.9993        6.1455       -.11783E-04   -.35895E-02
  11  norm          .10000E-03    .45999       -.63508E-06** at limit **
  12  Prefactor     .10010E-03    38.738        .23587E-04** at limit **
  13  Prefactor     .10000E-03    8.6992        .56142E-05** at limit **
  14  norm          3.5703        3.9928        .78485E-06   -.32778E-03
  15  norm          .10000E-03    4.6923        .53663E-06** at limit **
  16  Prefactor     .10023E-03    85.994       -.87366E-04** at limit **
  17  Prefactor     .10001E-03    8.8290        .38049E-05** at limit **
  18  norm          3.6462        3.7214        .48355E-08   -.32979E-03
  19  norm          .10000E-03    .99512       -.32873E-06** at limit **
  20  Prefactor     .10003E-03    12.041       -.71261E-05** at limit **
  21  norm          .10001E-03    8.4210       -.33990E-05** at limit **
  22  Prefactor     52.987        1.1902       -.53947E-06    .68130E-03
  23  Prefactor     .10002E-03    44.068        .36247E-04** at limit **
  24  Prefactor     5.0004        1.2706       -.49664E-06   -.35365E-04
  25  Prefactor     .10000E-03    26.295       -.11621E-04** at limit **
  26  Normalizat    1.1881        .23161        .96765E-05   -.89529E-04
  27  Prefactor     .76690        .24423       -.44443E-05   -.47763E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 101.937
  Prefactor  = 6.62846
  Prefactor  = 20.6651
  Prefactor  = 10.7824
  Prefactor  = 0.000100212
  Prefactor  = 0.000100176
  Prefactor  = 12.9907
  norm       = 21.4241
  Prefactor  = 2.4862
  Prefactor  = 8.9993
  norm       = 0.0001
  Prefactor  = 0.000100097
  Prefactor  = 0.0001
  norm       = 3.57028
  norm       = 0.0001
  Prefactor  = 0.000100228
  Prefactor  = 0.00010001
  norm       = 3.64615
  norm       = 0.0001
  Prefactor  = 0.000100033
  norm       = 0.00010001
  Prefactor  = 52.9872
  Prefactor  = 0.000100016
  Prefactor  = 5.00036
  Prefactor  = 0.0001
  Normalizat = 1.18805
  Prefactor  = 0.766895
 **********
 **   18 **HESSE 
 **********

 FCN=   5469.598     FROM HESSE     STATUS=OK           554 CALLS     3981 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     101.94        77.316        .99541E-03   -1.3685    
   2  Prefactor     6.6285        5.9357        .38956E-02   -1.5193    
   3  Prefactor     20.665        28.906        .22032E-02   -1.4798    
   4  Prefactor     10.782        17.999        .30498E-02   -1.5051    
   5  Prefactor     .10021E-03    10.448        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10018E-03    9.6253        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.991        8.9922        .27782E-02   -1.4987    
   8  norm          21.424        6.3565        .21636E-02   -1.4782    
   9  Prefactor     2.4862        18.280        .64597E-02   -1.5393    
  10  Prefactor     8.9993        11.969        .33444E-02   -1.5108    
  11  norm          .10000E-03    .34100        .20547E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10010E-03    96.981        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    16.929        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.5703        3.9931        .53474E-02   -1.5330    
  15  norm          .10000E-03    4.6349        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10023E-03    117.83        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    17.572        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.6462        3.8302        .52885E-02   -1.5326    
  19  norm          .10000E-03    .99108        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10003E-03    12.991        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10001E-03    2.9910        .64290E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     52.987        87.943        .13775E-02   -1.4251    
  23  Prefactor     .10002E-03    93.877        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     5.0004        6.8684        .44944E-02   -1.5261    
  25  Prefactor     .10000E-03    26.512        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1881        .19389        .50790E-01   -.86973    
  27  Prefactor     .76690        .19986        .66020E-01   -1.0096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72567e-06
Minuit parameter uncertainties:
  1  77.3921
  2  5.93622
  3  28.9256
  4  18.0079
  5  0.00297985
  6  0.00260486
  7  8.99315
  8  6.35674
  9  13.4885
  10  11.9725
  11  4.27605e-06
  12  0.00614719
  13  0.000156629
  14  3.99343
  15  1.37024e-05
  16  0.0103773
  17  0.000838298
  18  3.8305
  19  3.76441e-06
  20  0.00130753
  21  0.00034522
  22  88.16
  23  0.00246528
  24  6.86949
  25  0.000179889
  26  0.194004
  27  0.200051
Done.

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

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.000e-04  8.383e-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:  7.669e-01  2.001e-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.188e+00  1.940e-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.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/914066/likelihoodResults_333676801_333936001_4FGL_J2327.5-3259_daily_bin364.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) = 5469.59859287
delta logL = -0.000270703352726

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5469.59832453
delta logL = -2.35665902437e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.5629       1.0000          .0000       10.000    
     3 'Normalizat'    1.1880       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76690       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   5469.598     FROM MIGRAD    STATUS=FAILED       103 CALLS      286 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    693.99        .18142E-01** at limit **
   2  Index         2.2343        8.5087        .84320E-01   -.63369E-08
   3  Normalizat    1.1881        .28868E-01    .22455E-03    .33961E-03
   4  Prefactor     .76690        .30976E-01    .29208E-03    .26266E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5469.598     FROM SIMPLEX   STATUS=UNCHANGED    172 CALLS      458 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    693.99        .72524E-03** at limit **
   2  Index         2.2343        8.5087        .59062E-05   -.63369E-08
   3  Normalizat    1.1881        .28868E-01    .10865E-06    .33961E-03
   4  Prefactor     .76690        .30976E-01    .11934E-06    .26266E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5469.598     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      486 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.332        .31133E-02** at limit **
   2  Index         2.2436        8.4702        .33728E-02    .12067E-06
   3  Normalizat    1.1881        .22646        .44910E-04    .33977E-03
   4  Prefactor     .76690        .24287        .11683E-04    .26293E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Index      = 2.24359
  Normalizat = 1.18805
  Prefactor  = 0.766895
 **********
 **   18 **HESSE 
 **********

 FCN=   5469.598     FROM HESSE     STATUS=OK            29 CALLS      515 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.167        .62267E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2436        5.7011        .67456E-01   -.58390    
   3  Normalizat    1.1881        .22634        .89821E-05   -.86973    
   4  Prefactor     .76690        .24269        .23366E-05   -1.0096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.89859e-10
Minuit parameter uncertainties:
  1  0.000625597
  2  586.166
  3  0.226522
  4  0.24303
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/914066': 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) = 5469.59832201
delta logL = 1.55590896611e-07

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.000e-04  6.256e-04  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  2.244e+00  5.862e+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:  7.669e-01  2.430e-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.188e+00  2.265e-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/914066/cmap_HighResolution_333676801_333936001_4FGL_J2327.5-3259_daily_bin364.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.72e-03', job_status='DONE', photon_flux_upper_limit='6.05e-08', time_completed='2021-09-29 20:16:33.779986', job_id='914066', GAL2='0.77', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1632971793.78', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='1.56e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='364' AND source_name='4FGL J2327.5-3259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:16:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 914066: <4FGL_J2327.5-3259_daily_bin364> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5-3259_daily_bin364 351.883 -32.9869 333676801 333936001 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 :                                   741.39 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             251.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   969 sec.
    Turnaround time :                            971 sec.

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

