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


Performing analysis on: 4FGL_J2327.5-3259_daily_bin1016
RA = 351.883, Dec = -32.9869
tmin = 502675201, tmax = 502934401
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='917211', job_status='RUN', time_executed='2021-09-29 20:13:25.258291', time_epoch_executed='1632971605.26' WHERE source_name='4FGL J2327.5-3259' and cadence='daily' and bin_id='1016'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/917211

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/917211/ft1_4FGL_J2327.5-3259_daily_bin1016.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/917211/ft2_4FGL_J2327.5-3259_daily_bin1016.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/917211/ft1_4FGL_J2327.5-3259_daily_bin1016.fits outfile=/scratch/kocevski/917211/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin1016.fits ra=351.883 dec=-32.9869 rad=12.0 tmin=502675201.0 tmax=502934401.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.62
user 3.38
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/917211/ft1_filtered_4FGL_J2327.5-3259_daily_bin1016.fits evtable="EVENTS" scfile=/scratch/kocevski/917211/ft2_4FGL_J2327.5-3259_daily_bin1016.fits sctable="SC_DATA" expcube=/scratch/kocevski/917211/ltcube_502675201_502934401_4FGL_J2327.5-3259_daily_bin1016.fits outfile=/scratch/kocevski/917211/expmap_502675201_502934401_4FGL_J2327.5-3259_daily_bin1016.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/917211/ltcube_502675201_502934401_4FGL_J2327.5-3259_daily_bin1016.fits
.....................!
real 191.07
user 185.65
sys 5.09

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/917211/ft1_filtered_4FGL_J2327.5-3259_daily_bin1016.fits scfile=/scratch/kocevski/917211/ft2_4FGL_J2327.5-3259_daily_bin1016.fits outfile=/scratch/kocevski/917211/cmap_502675201_502934401_4FGL_J2327.5-3259_daily_bin1016.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/917211/ft1_filtered_4FGL_J2327.5-3259_daily_bin1016.fits scfile=/scratch/kocevski/917211/ft2_4FGL_J2327.5-3259_daily_bin1016.fits outfile=/scratch/kocevski/917211/cmap_HighResolution_502675201_502934401_4FGL_J2327.5-3259_daily_bin1016.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.53
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.7374       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .63988       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.8043       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.909       1.0000         .10000E-03   10000.    
     5 'Prefactor '    45.897       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.0268       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14831E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .51093       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .74465E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .61056       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.0415       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .41982       1.0000         .10000E-03   10000.    
    19 'norm      '    1.8525       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.0231       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    21.869       1.0000         .10000E-03   10000.    
    24 'Prefactor '    11.072       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .83805       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .97846       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=   6730.215     FROM MIGRAD    STATUS=CONVERGED    648 CALLS     3331 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.7362        22.457       -.92292E-07   -.23746E-04
   2  Prefactor     .64025        2.3256        .10852E-05   -.26680E-03
   3  Prefactor     6.8021        18.385       -.10928E-05   -.66674E-04
   4  Prefactor     20.910        15.609        .24809E-06    .70745E-05
   5  Prefactor     45.883        30.660       -.20953E-05   -.50501E-03
   6  Prefactor     8.0269        9.1896        .22878E-05   -.71976E-03
   7  Prefactor     .10000E-03    15.449        .27732E-05** at limit **
   8  norm          .51208        2.4725        .36807E-06   -.52029E-03
   9  Prefactor     .10000E-03    4.3694       -.13288E-07** at limit **
  10  Prefactor     .10003E-03    3.5925        .16446E-07** at limit **
  11  norm          .61050        .61192       -.41405E-07   -.12733E-02
  12  Prefactor     .10000E-03    39.871        .32236E-05** at limit **
  13  Prefactor     2.0430        4.6676        .13519E-05    .23620E-03
  14  norm          .10000E-03    1.1822       -.25193E-07** at limit **
  15  norm          .10000E-03    6.2446        .96303E-07** at limit **
  16  Prefactor     .10003E-03    49.193       -.95990E-05** at limit **
  17  Prefactor     .10000E-03    39.761        .34802E-05** at limit **
  18  norm          .42059        3.2184       -.24012E-07   -.42401E-03
  19  norm          1.8530        2.4620        .19219E-06   -.43629E-04
  20  Prefactor     .10001E-03    20.343       -.47793E-05** at limit **
  21  norm          3.0225        3.1669        .18614E-05   -.16631E-02
  22  Prefactor     .10000E-03    33.902        .31173E-05** at limit **
  23  Prefactor     21.870        22.668        .17706E-06    .12778E-04
  24  Prefactor     11.073        5.0739       -.11641E-06   -.37501E-03
  25  Prefactor     .10000E-03    12.420       -.49963E-06** at limit **
  26  Normalizat    .83805        .14710       -.68540E-06   -.88934E-04
  27  Prefactor     .97850        .16123       -.55729E-06   -.72568E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.73624
  Prefactor  = 0.640252
  Prefactor  = 6.80213
  Prefactor  = 20.9101
  Prefactor  = 45.8832
  Prefactor  = 8.02691
  Prefactor  = 0.000100004
  norm       = 0.512084
  Prefactor  = 0.0001
  Prefactor  = 0.000100034
  norm       = 0.610497
  Prefactor  = 0.000100005
  Prefactor  = 2.04298
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100035
  Prefactor  = 0.000100005
  norm       = 0.420589
  norm       = 1.85296
  Prefactor  = 0.00010001
  norm       = 3.02254
  Prefactor  = 0.000100004
  Prefactor  = 21.8698
  Prefactor  = 11.0727
  Prefactor  = 0.0001
  Normalizat = 0.838052
  Prefactor  = 0.978497
 **********
 **   18 **HESSE 
 **********

 FCN=   6730.215     FROM HESSE     STATUS=OK           496 CALLS     3827 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.7362        22.461        .14416E-03   -1.5152    
   2  Prefactor     .64025        2.2626        .20706E-03   -1.5548    
   3  Prefactor     6.8021        17.858        .15382E-03   -1.5186    
   4  Prefactor     20.910        15.612        .87594E-04   -1.4793    
   5  Prefactor     45.883        31.375        .59182E-04   -1.4352    
   6  Prefactor     8.0269        9.4074        .70759E-03   -1.5141    
   7  Prefactor     .10000E-03    16.292        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .51208        3.7933        .21720E-02   -1.5565    
   9  Prefactor     .10000E-03    4.3734        .16727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10003E-03    20.746        .24464E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .61050        .51454        .48500E-03   -1.5552    
  12  Prefactor     .10000E-03    40.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.0430        4.5803        .24882E-03   -1.5422    
  14  norm          .10000E-03    1.1825        .87091E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    6.4009        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10003E-03    51.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    40.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .42059        3.0675        .26822E-03   -1.5578    
  19  norm          1.8530        2.4466        .14307E-03   -1.5436    
  20  Prefactor     .10001E-03    21.113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.0225        3.2531        .71899E-03   -1.5360    
  22  Prefactor     .10000E-03    34.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     21.870        22.669        .85652E-04   -1.4772    
  24  Prefactor     11.073        5.0940        .11989E-03   -1.5042    
  25  Prefactor     .10000E-03    12.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .83805        .17520        .22430E-03   -.98672    
  27  Prefactor     .97850        .19299        .23440E-03   -.93450    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.80375e-09
Minuit parameter uncertainties:
  1  22.4853
  2  2.26288
  3  17.8718
  4  15.6147
  5  31.3865
  6  9.40911
  7  0.000494023
  8  2.78744
  9  6.41889e-06
  10  0.00168631
  11  0.514547
  12  0.000870855
  13  4.58107
  14  9.56796e-09
  15  4.93497e-06
  16  0.00268446
  17  0.000887309
  18  2.27158
  19  2.44671
  20  0.000914267
  21  3.25332
  22  0.000759055
  23  22.6774
  24  5.09417
  25  7.06725e-05
  26  0.17532
  27  0.193129
Done.

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

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.000e-04  8.873e-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:  9.785e-01  1.931e-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:  8.381e-01  1.753e-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.26e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/917211/likelihoodResults_502675201_502934401_4FGL_J2327.5-3259_daily_bin1016.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) = 6730.21482084
delta logL = -0.000118279297567

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6730.21470266
delta logL = -9.7037627711e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4893       1.0000          .0000       10.000    
     3 'Normalizat'    .83806       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97850       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.

 FCN=   6730.215     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      234 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7596.5        .90712E-02** at limit **
   2  Index         2.5129        5.9123        .50000       -.55903E-05
   3  Normalizat    .83805        .62223E-01    .44105E-01    .67574E-05
   4  Prefactor     .97850        .69749E-01    .45998E-01    .10496E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.51289
  Normalizat = 0.838052
  Prefactor  = 0.978497
 **********
 **   18 **HESSE 
 **********

 FCN=   6730.215     FROM HESSE     STATUS=OK            33 CALLS      267 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    47.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5129        6.2505        .50000       -.52062    
   3  Normalizat    .83805        .16794        .22430E-03   -.98672    
   4  Prefactor     .97850        .18932        .23440E-03   -.93450    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.53358e-11
Minuit parameter uncertainties:
  1  7.20944e-05
  2  4.8547
  3  0.168042
  4  0.189444
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/917211': 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) = 6730.21470262
delta logL = -5.63713911106e-08

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.000e-04  7.209e-05  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  2.513e+00  4.855e+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:  9.785e-01  1.894e-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:  8.381e-01  1.680e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/917211/cmap_HighResolution_502675201_502934401_4FGL_J2327.5-3259_daily_bin1016.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.89e-03', job_status='DONE', photon_flux_upper_limit='6.26e-08', time_completed='2021-09-29 20:27:03.949035', job_id='917211', GAL2='0.98', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1632972423.95', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='-5.64e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='1016' AND source_name='4FGL J2327.5-3259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:27:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 917211: <4FGL_J2327.5-3259_daily_bin1016> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5-3259_daily_bin1016 351.883 -32.9869 502675201 502934401 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 :                                   815.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             265.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   994 sec.
    Turnaround time :                            995 sec.

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

