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


Performing analysis on: 4FGL_J2327.5-3259_daily_bin250
RA = 351.883, Dec = -32.9869
tmin = 304128001, tmax = 304387201
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='912820', job_status='RUN', time_executed='2021-09-29 19:57:13.570799', time_epoch_executed='1632970633.57' WHERE source_name='4FGL J2327.5-3259' and cadence='daily' and bin_id='250'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/912820

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/912820/ft1_4FGL_J2327.5-3259_daily_bin250.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/912820/ft2_4FGL_J2327.5-3259_daily_bin250.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/912820/ft1_4FGL_J2327.5-3259_daily_bin250.fits outfile=/scratch/kocevski/912820/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin250.fits ra=351.883 dec=-32.9869 rad=12.0 tmin=304128001.0 tmax=304387201.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.51
user 3.25
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/912820/ft1_filtered_4FGL_J2327.5-3259_daily_bin250.fits" evtable="EVENTS" scfile=/scratch/kocevski/912820/ft2_4FGL_J2327.5-3259_daily_bin250.fits sctable="SC_DATA" outfile=/scratch/kocevski/912820/ltcube_304128001_304387201_4FGL_J2327.5-3259_daily_bin250.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/912820/ft2_4FGL_J2327.5-3259_daily_bin250.fits
.....................!
real 12.21
user 11.86
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/912820/ft1_filtered_4FGL_J2327.5-3259_daily_bin250.fits evtable="EVENTS" scfile=/scratch/kocevski/912820/ft2_4FGL_J2327.5-3259_daily_bin250.fits sctable="SC_DATA" expcube=/scratch/kocevski/912820/ltcube_304128001_304387201_4FGL_J2327.5-3259_daily_bin250.fits outfile=/scratch/kocevski/912820/expmap_304128001_304387201_4FGL_J2327.5-3259_daily_bin250.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/912820/ltcube_304128001_304387201_4FGL_J2327.5-3259_daily_bin250.fits
.....................!
real 190.37
user 184.90
sys 5.12

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/912820/ft1_filtered_4FGL_J2327.5-3259_daily_bin250.fits scfile=/scratch/kocevski/912820/ft2_4FGL_J2327.5-3259_daily_bin250.fits outfile=/scratch/kocevski/912820/cmap_304128001_304387201_4FGL_J2327.5-3259_daily_bin250.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/912820/ft1_filtered_4FGL_J2327.5-3259_daily_bin250.fits scfile=/scratch/kocevski/912820/ft2_4FGL_J2327.5-3259_daily_bin250.fits outfile=/scratch/kocevski/912820/cmap_HighResolution_304128001_304387201_4FGL_J2327.5-3259_daily_bin250.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/912820/ft1_filtered_4FGL_J2327.5-3259_daily_bin250.fits evtable="EVENTS" scfile=/scratch/kocevski/912820/ft2_4FGL_J2327.5-3259_daily_bin250.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/912820/Model_4FGL_J2327.5-3259_daily_bin250.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/912820/ft1_filtered_4FGL_J2327.5-3259_daily_bin250.fits.....................!
real 45.95
user 44.61
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .14501E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.4400       1.0000         .10000E-03   10000.    
     5 'Prefactor '    142.33       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.8580       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10190E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.690       1.0000         .10000E-03   10000.    
    11 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    36.892       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .37647E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.0113       1.0000         .10000E-03   10000.    
    16 'Prefactor '    25.329       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.102       1.0000         .10000E-03   10000.    
    18 'norm      '    4.1489       1.0000         .10000E-03   10000.    
    19 'norm      '    .73358       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.1590       1.0000         .10000E-03   10000.    
    21 'norm      '    4.2317       1.0000         .10000E-03   10000.    
    22 'Prefactor '    64.818       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.6662       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .88270       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .95766       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=   6383.732     FROM MIGRAD    STATUS=CONVERGED    659 CALLS     3330 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.247        .13991E-06** at limit **
   2  Prefactor     .10000E-03    1.4930        .40064E-06** at limit **
   3  Prefactor     .10000E-03    5.5674        .53729E-07** at limit **
   4  Prefactor     6.4396        12.975        .25469E-05   -.10624E-03
   5  Prefactor     142.31        48.784       -.28677E-06   -.99326E-04
   6  Prefactor     5.8535        9.9199        .20987E-06   -.84412E-04
   7  Prefactor     .10000E-03    3.8521       -.82424E-07** at limit **
   8  norm          .10000E-03    1.1474        .80553E-07** at limit **
   9  Prefactor     .10000E-03    4.3340        .94456E-07** at limit **
  10  Prefactor     10.676        6.7070       -.84131E-06   -.16009E-02
  11  norm          .10000E-03    .31129        .17855E-06** at limit **
  12  Prefactor     36.876        50.634       -.21639E-06   -.44935E-04
  13  Prefactor     .10002E-03    7.6818        .23190E-05** at limit **
  14  norm          .10000E-03    1.9897       -.13038E-06** at limit **
  15  norm          4.0109        6.4792        .31347E-06   -.39333E-04
  16  Prefactor     25.298        29.783       -.55900E-06   -.10081E-03
  17  Prefactor     10.095        25.843       -.75642E-08   -.25163E-04
  18  norm          4.1482        4.6185        .27579E-06    .84561E-06
  19  norm          .73394        2.3314        .99845E-06   -.12154E-03
  20  Prefactor     2.1555        34.186        .35807E-08   -.28243E-04
  21  norm          4.2315        3.3856        .36275E-07   -.25683E-04
  22  Prefactor     64.777        79.211       -.69779E-06   -.71385E-04
  23  Prefactor     .10000E-03    40.780        .25742E-06** at limit **
  24  Prefactor     1.6663        2.1823        .27912E-07   -.45737E-04
  25  Prefactor     .10000E-03    15.147        .10535E-06** at limit **
  26  Normalizat    .88326        .15985        .93820E-06   -.55860E-03
  27  Prefactor     .95705        .17373       -.17919E-05   -.29153E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.43958
  Prefactor  = 142.312
  Prefactor  = 5.85345
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.6757
  norm       = 0.0001
  Prefactor  = 36.876
  Prefactor  = 0.00010002
  norm       = 0.0001
  norm       = 4.01086
  Prefactor  = 25.2984
  Prefactor  = 10.0948
  norm       = 4.14824
  norm       = 0.733938
  Prefactor  = 2.15546
  norm       = 4.23147
  Prefactor  = 64.7768
  Prefactor  = 0.0001
  Prefactor  = 1.66632
  Prefactor  = 0.0001
  Normalizat = 0.883263
  Prefactor  = 0.957053
 **********
 **   18 **HESSE 
 **********

 FCN=   6383.732     FROM HESSE     STATUS=OK           490 CALLS     3820 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.5700        .18633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.5715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.4396        12.583        .79077E-03   -1.5200    
   5  Prefactor     142.31        48.730        .16885E-03   -1.3316    
   6  Prefactor     5.8535        9.9177        .16593E-03   -1.5224    
   7  Prefactor     .10000E-03    3.8734        .15311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.1558        .83578E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.3414        .16241E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.676        6.3081        .12254E-03   -1.5054    
  11  norm          .10000E-03    1.4951        .75866E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     36.876        50.636        .65984E-04   -1.4493    
  13  Prefactor     .10002E-03    18.032        .37348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.9918        .10995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.0109        6.4635        .20136E-03   -1.5307    
  16  Prefactor     25.298        29.773        .79596E-04   -1.4702    
  17  Prefactor     10.095        25.835        .12607E-03   -1.5072    
  18  norm          4.1482        4.5988        .14424E-03   -1.5301    
  19  norm          .73394        2.2693        .20433E-03   -1.5537    
  20  Prefactor     2.1555        33.603        .28035E-03   -1.5414    
  21  norm          4.2315        3.3758        .12362E-03   -1.5297    
  22  Prefactor     64.777        79.365        .49847E-04   -1.4097    
  23  Prefactor     .10000E-03    41.033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.6663        2.1674        .13115E-03   -1.5450    
  25  Prefactor     .10000E-03    15.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .88326        .18432        .22750E-03   -.97051    
  27  Prefactor     .95705        .19963        .24535E-03   -.94175    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27706e-09
Minuit parameter uncertainties:
  1  4.82797e-05
  2  5.4634e-05
  3  2.81807e-06
  4  12.5879
  5  48.7441
  6  9.92052
  7  3.42046e-06
  8  2.44689e-06
  9  4.78036e-06
  10  6.30848
  11  1.62099e-05
  12  50.6949
  13  0.00119127
  14  2.05185e-06
  15  6.46467
  16  29.79
  17  25.8633
  18  4.59922
  19  2.26958
  20  17.032
  21  3.37596
  22  79.4951
  23  9.86022e-05
  24  2.16746
  25  7.25721e-06
  26  0.184454
  27  0.199779
Done.

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

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.009e+01  2.586e+01  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.571e-01  1.998e-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.833e-01  1.845e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.18
Ra Dec: 351.883 -32.987
Photon Flux Upper Limit: 6.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/912820/likelihoodResults_304128001_304387201_4FGL_J2327.5-3259_daily_bin250.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) = 6383.71215154
delta logL = 0.0198963744706

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6383.70771949
delta logL = 0.0243284214175

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.858       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2597       1.0000          .0000       10.000    
     3 'Normalizat'    .88521       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95478       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=   6383.708     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      259 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.834        30.489        .11171E-03   -.22390E-05
   2  Index         2.2590        1.2560        .17265E-01    .25740E-05
   3  Normalizat    .88539        .17676        .22725E-03   -.50829E-04
   4  Prefactor     .95491        .19842        .24558E-03    .47126E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.8341
  Index      = 2.25897
  Normalizat = 0.885389
  Prefactor  = 0.954907
 **********
 **   18 **HESSE 
 **********

 FCN=   6383.708     FROM HESSE     STATUS=OK            25 CALLS      284 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.834        30.048        .44683E-05   -1.4991    
   2  Index         2.2590        1.2392        .69060E-03   -.58022    
   3  Normalizat    .88539        .17695        .90898E-05   -.96975    
   4  Prefactor     .95491        .19861        .98232E-05   -.94248    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.84652e-11
Minuit parameter uncertainties:
  1  30.0831
  2  1.25808
  3  0.177067
  4  0.198766
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/912820': 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) = 6383.70771339
delta logL = 0.0243345213985

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.283e+01  3.008e+01  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  2.259e+00  1.258e+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.549e-01  1.988e-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.854e-01  1.771e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.18
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/912820/cmap_HighResolution_304128001_304387201_4FGL_J2327.5-3259_daily_bin250.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.88e-03', job_status='DONE', photon_flux_upper_limit='6.25e-08', time_completed='2021-09-29 20:10:35.679951', job_id='912820', GAL2='0.95', fit_tolerance='1e-08', EG2='0.89', EG='0.88', time_epoch_completed='1632971435.68', return_code2='0', ts='0.18', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='2.43e-02', ts2='0.23', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='250' AND source_name='4FGL J2327.5-3259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:10:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 912820: <4FGL_J2327.5-3259_daily_bin250> in cluster <slac> Done

Job <4FGL_J2327.5-3259_daily_bin250> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 19:55:39 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 19:55:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 19:55:40 2021
Terminated at Wed Sep 29 20:10:36 2021
Results reported at Wed Sep 29 20:10:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5-3259_daily_bin250 351.883 -32.9869 304128001 304387201 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 :                                   798.26 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             303.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   895 sec.
    Turnaround time :                            897 sec.

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

