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


Performing analysis on: 4FGL_J2327.5-3259_daily_bin772
RA = 351.883, Dec = -32.9869
tmin = 439430401, tmax = 439689601
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='915803', job_status='RUN', time_executed='2021-09-29 20:05:56.341877', time_epoch_executed='1632971156.34' WHERE source_name='4FGL J2327.5-3259' and cadence='daily' and bin_id='772'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/915803

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/915803/ft1_4FGL_J2327.5-3259_daily_bin772.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/915803/ft2_4FGL_J2327.5-3259_daily_bin772.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/915803/ft1_4FGL_J2327.5-3259_daily_bin772.fits outfile=/scratch/kocevski/915803/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin772.fits ra=351.883 dec=-32.9869 rad=12.0 tmin=439430401.0 tmax=439689601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.88
user 4.66
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/915803/ft1_filtered_4FGL_J2327.5-3259_daily_bin772.fits" evtable="EVENTS" scfile=/scratch/kocevski/915803/ft2_4FGL_J2327.5-3259_daily_bin772.fits sctable="SC_DATA" outfile=/scratch/kocevski/915803/ltcube_439430401_439689601_4FGL_J2327.5-3259_daily_bin772.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/915803/ft2_4FGL_J2327.5-3259_daily_bin772.fits
.....................!
real 11.56
user 11.20
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/915803/ft1_filtered_4FGL_J2327.5-3259_daily_bin772.fits evtable="EVENTS" scfile=/scratch/kocevski/915803/ft2_4FGL_J2327.5-3259_daily_bin772.fits sctable="SC_DATA" expcube=/scratch/kocevski/915803/ltcube_439430401_439689601_4FGL_J2327.5-3259_daily_bin772.fits outfile=/scratch/kocevski/915803/expmap_439430401_439689601_4FGL_J2327.5-3259_daily_bin772.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/915803/ltcube_439430401_439689601_4FGL_J2327.5-3259_daily_bin772.fits
.....................!
real 191.92
user 186.17
sys 5.40

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/915803/ft1_filtered_4FGL_J2327.5-3259_daily_bin772.fits scfile=/scratch/kocevski/915803/ft2_4FGL_J2327.5-3259_daily_bin772.fits outfile=/scratch/kocevski/915803/cmap_439430401_439689601_4FGL_J2327.5-3259_daily_bin772.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/915803/ft1_filtered_4FGL_J2327.5-3259_daily_bin772.fits scfile=/scratch/kocevski/915803/ft2_4FGL_J2327.5-3259_daily_bin772.fits outfile=/scratch/kocevski/915803/cmap_HighResolution_439430401_439689601_4FGL_J2327.5-3259_daily_bin772.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/915803/ft1_filtered_4FGL_J2327.5-3259_daily_bin772.fits evtable="EVENTS" scfile=/scratch/kocevski/915803/ft2_4FGL_J2327.5-3259_daily_bin772.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/915803/Model_4FGL_J2327.5-3259_daily_bin772.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/915803/ft1_filtered_4FGL_J2327.5-3259_daily_bin772.fits.....................!
real 40.31
user 38.93
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.2864       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    45.078       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    40.151       1.0000         .10000E-03   10000.    
    11 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.364       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    8.8040       1.0000         .10000E-03   10000.    
    15 'norm      '    23.539       1.0000         .10000E-03   10000.    
    16 'Prefactor '    43.998       1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.845       1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.2607       1.0000         .10000E-03   10000.    
    20 'Prefactor '    25.929       1.0000         .10000E-03   10000.    
    21 'norm      '    3.4295       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.646       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.7516       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .92550       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .85626       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=   4825.259     FROM MIGRAD    STATUS=CONVERGED    646 CALLS     3271 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    35.131        .22321E-04** at limit **
   2  Prefactor     2.2866        3.5701       -.23638E-06   -.55116E-03
   3  Prefactor     .10000E-03    17.770        .66536E-05** at limit **
   4  Prefactor     45.071        24.332       -.90694E-06   -.11972E-04
   5  Prefactor     .10000E-03    16.233        .10457E-04** at limit **
   6  Prefactor     .10000E-03    13.833       -.71435E-05** at limit **
   7  Prefactor     .10000E-03    6.3082        .84620E-06** at limit **
   8  norm          .10000E-03    4.4055       -.98474E-06** at limit **
   9  Prefactor     .10000E-03    24.220       -.24376E-04** at limit **
  10  Prefactor     40.136        11.705        .11322E-05    .18165E-02
  11  norm          .10000E-03    .56377       -.11563E-06** at limit **
  12  Prefactor     24.363        41.462       -.37126E-06   -.15282E-05
  13  Prefactor     .10000E-03    5.5186       -.83644E-06** at limit **
  14  norm          8.8047        5.6207       -.34775E-06    .60802E-04
  15  norm          23.541        10.984       -.28306E-06   -.39025E-04
  16  Prefactor     44.011        42.507        .11851E-04   -.47620E-05
  17  Prefactor     18.855        43.367        .13816E-04   -.84828E-05
  18  norm          .10000E-03    2.8730       -.46193E-06** at limit **
  19  norm          3.2602        3.0496       -.12229E-06   -.56613E-04
  20  Prefactor     25.938        29.854        .64265E-05   -.11729E-05
  21  norm          3.4302        3.8269       -.61739E-06   -.21376E-03
  22  Prefactor     .10000E-03    80.248       -.11699E-04** at limit **
  23  Prefactor     14.657        65.892        .22325E-04   -.11654E-04
  24  Prefactor     .10000E-03    4.5890        .13628E-05** at limit **
  25  Prefactor     8.7535        50.750        .30838E-05   -.33540E-04
  26  Normalizat    .92501        .20364       -.56232E-05    .27048E-03
  27  Prefactor     .85677        .20896        .88376E-06   -.25562E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.28663
  Prefactor  = 0.0001
  Prefactor  = 45.0713
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.1356
  norm       = 0.0001
  Prefactor  = 24.3632
  Prefactor  = 0.0001
  norm       = 8.80469
  norm       = 23.5412
  Prefactor  = 44.0107
  Prefactor  = 18.8552
  norm       = 0.0001
  norm       = 3.26022
  Prefactor  = 25.9383
  norm       = 3.43018
  Prefactor  = 0.0001
  Prefactor  = 14.6569
  Prefactor  = 0.0001
  Prefactor  = 8.75352
  Normalizat = 0.925013
  Prefactor  = 0.856771
 **********
 **   18 **HESSE 
 **********

 FCN=   4825.259     FROM HESSE     STATUS=OK           488 CALLS     3759 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    35.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.2866        3.5483        .15637E-03   -1.5406    
   3  Prefactor     .10000E-03    17.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     45.071        24.337        .59715E-04   -1.4364    
   5  Prefactor     .10000E-03    16.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.4183        .17037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.5232        .28368E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    24.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     40.136        10.554        .63259E-04   -1.4440    
  11  norm          .10000E-03    1.4515        .90478E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     24.363        41.468        .81154E-04   -1.4720    
  13  Prefactor     .10000E-03    5.5422        .15926E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          8.8047        5.6203        .12693E-03   -1.5114    
  15  norm          23.541        10.990        .82561E-04   -1.4737    
  16  Prefactor     44.011        42.674        .60441E-04   -1.4380    
  17  Prefactor     18.855        43.332        .92262E-04   -1.4839    
  18  norm          .10000E-03    2.8940        .11464E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.2602        3.0465        .11325E-03   -1.5347    
  20  Prefactor     25.938        29.827        .78671E-04   -1.4689    
  21  norm          3.4302        3.8150        .13484E-03   -1.5338    
  22  Prefactor     .10000E-03    80.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     14.657        65.647        .10466E-03   -1.4942    
  24  Prefactor     .10000E-03    4.6313        .14516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     8.7535        50.439        .13549E-03   -1.5116    
  26  Normalizat    .92501        .24311        .23806E-03   -.95587    
  27  Prefactor     .85677        .24894        .26568E-03   -.97668    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76669e-09
Minuit parameter uncertainties:
  1  4.38614e-05
  2  3.54858
  3  1.63885e-05
  4  24.3425
  5  3.06732e-05
  6  0.000157041
  7  1.72317e-05
  8  6.93061e-06
  9  3.19258e-05
  10  10.554
  11  1.4842e-05
  12  41.5167
  13  1.51848e-06
  14  5.62064
  15  10.9907
  16  42.7035
  17  43.4039
  18  7.00622e-05
  19  3.04667
  20  29.8444
  21  3.81524
  22  7.94662e-05
  23  62.1517
  24  3.94167e-06
  25  42.0782
  26  0.243402
  27  0.249268
Done.

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

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.886e+01  4.340e+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:  8.568e-01  2.493e-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:  9.250e-01  2.434e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.23
Ra Dec: 351.883 -32.987
Photon Flux Upper Limit: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/915803/likelihoodResults_439430401_439689601_4FGL_J2327.5-3259_daily_bin772.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) = 4825.25731078
delta logL = 0.00171939667689

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4825.25698769
delta logL = 0.00204249142189

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.758       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6442       1.0000          .0000       10.000    
     3 'Normalizat'    .92360       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85797       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=   4825.257     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      252 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.757        47.837        .95044E-04    .14911E-03
   2  Index         2.6442        1.4468        .14455E-01    .50807E-04
   3  Normalizat    .92381        .22828        .23820E-03   -.88964E-04
   4  Prefactor     .85775        .24545        .26555E-03   -.78047E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.7566
  Index      = 2.64424
  Normalizat = 0.923814
  Prefactor  = 0.857748
 **********
 **   18 **HESSE 
 **********

 FCN=   4825.257     FROM HESSE     STATUS=OK            25 CALLS      277 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.757        45.115        .19009E-04   -1.4865    
   2  Index         2.6442        1.3670        .57820E-03   -.49060    
   3  Normalizat    .92381        .22859        .95280E-05   -.95628    
   4  Prefactor     .85775        .24568        .10622E-04   -.97634    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79593e-10
Minuit parameter uncertainties:
  1  45.2015
  2  1.38985
  3  0.228833
  4  0.245993
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/915803': 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) = 4825.25698724
delta logL = 0.00204294623563

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.776e+01  4.520e+01  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  2.644e+00  1.390e+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.577e-01  2.460e-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:  9.238e-01  2.288e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.23
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/915803/cmap_HighResolution_439430401_439689601_4FGL_J2327.5-3259_daily_bin772.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.11e-03', job_status='DONE', photon_flux_upper_limit='1.04e-07', time_completed='2021-09-29 20:17:18.222148', job_id='915803', GAL2='0.86', fit_tolerance='1e-08', EG2='0.92', EG='0.93', time_epoch_completed='1632971838.22', return_code2='0', ts='0.23', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='2.04e-03', ts2='0.24', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='772' AND source_name='4FGL J2327.5-3259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:17:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 915803: <4FGL_J2327.5-3259_daily_bin772> in cluster <slac> Done

Job <4FGL_J2327.5-3259_daily_bin772> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 20:05:42 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 20:05:44 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:05:44 2021
Terminated at Wed Sep 29 20:17:18 2021
Results reported at Wed Sep 29 20:17:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5-3259_daily_bin772 351.883 -32.9869 439430401 439689601 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 :                                   677.15 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             352.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   694 sec.
    Turnaround time :                            696 sec.

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

