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


Performing analysis on: 4FGL_J2327.5-3259_daily_bin1480
RA = 351.883, Dec = -32.9869
tmin = 622944001, tmax = 623203201
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='918860', job_status='RUN', time_executed='2021-09-29 20:17:02.732573', time_epoch_executed='1632971822.73' WHERE source_name='4FGL J2327.5-3259' and cadence='daily' and bin_id='1480'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/918860

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/918860/ft1_4FGL_J2327.5-3259_daily_bin1480.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/918860/ft2_4FGL_J2327.5-3259_daily_bin1480.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/918860/ft1_4FGL_J2327.5-3259_daily_bin1480.fits outfile=/scratch/kocevski/918860/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin1480.fits ra=351.883 dec=-32.9869 rad=12.0 tmin=622944001.0 tmax=623203201.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.00
user 2.81
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/918860/ft1_filtered_4FGL_J2327.5-3259_daily_bin1480.fits" evtable="EVENTS" scfile=/scratch/kocevski/918860/ft2_4FGL_J2327.5-3259_daily_bin1480.fits sctable="SC_DATA" outfile=/scratch/kocevski/918860/ltcube_622944001_623203201_4FGL_J2327.5-3259_daily_bin1480.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/918860/ft2_4FGL_J2327.5-3259_daily_bin1480.fits
.....................!
real 12.32
user 12.00
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/918860/ft1_filtered_4FGL_J2327.5-3259_daily_bin1480.fits evtable="EVENTS" scfile=/scratch/kocevski/918860/ft2_4FGL_J2327.5-3259_daily_bin1480.fits sctable="SC_DATA" expcube=/scratch/kocevski/918860/ltcube_622944001_623203201_4FGL_J2327.5-3259_daily_bin1480.fits outfile=/scratch/kocevski/918860/expmap_622944001_623203201_4FGL_J2327.5-3259_daily_bin1480.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/918860/ltcube_622944001_623203201_4FGL_J2327.5-3259_daily_bin1480.fits
.....................!
real 189.78
user 184.93
sys 4.49

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/918860/ft1_filtered_4FGL_J2327.5-3259_daily_bin1480.fits scfile=/scratch/kocevski/918860/ft2_4FGL_J2327.5-3259_daily_bin1480.fits outfile=/scratch/kocevski/918860/cmap_622944001_623203201_4FGL_J2327.5-3259_daily_bin1480.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/918860/ft1_filtered_4FGL_J2327.5-3259_daily_bin1480.fits scfile=/scratch/kocevski/918860/ft2_4FGL_J2327.5-3259_daily_bin1480.fits outfile=/scratch/kocevski/918860/cmap_HighResolution_622944001_623203201_4FGL_J2327.5-3259_daily_bin1480.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=351.883 yref=-32.9869 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/918860/ft1_filtered_4FGL_J2327.5-3259_daily_bin1480.fits evtable="EVENTS" scfile=/scratch/kocevski/918860/ft2_4FGL_J2327.5-3259_daily_bin1480.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/918860/Model_4FGL_J2327.5-3259_daily_bin1480.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/918860/ft1_filtered_4FGL_J2327.5-3259_daily_bin1480.fits.....................!
real 48.64
user 47.19
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.4256       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    48.436       1.0000         .10000E-03   10000.    
    11 'norm      '    3.3685       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    15.494       1.0000         .10000E-03   10000.    
    16 'Prefactor '    33.743       1.0000         .10000E-03   10000.    
    17 'Prefactor '    57.616       1.0000         .10000E-03   10000.    
    18 'norm      '    3.8687       1.0000         .10000E-03   10000.    
    19 'norm      '    13.792       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.4402       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.9056       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1596       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .90178       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=   6294.806     FROM MIGRAD    STATUS=CONVERGED    625 CALLS     3247 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.905       -.13193E-04** at limit **
   2  Prefactor     4.4257        3.8280       -.24658E-05   -.68052E-03
   3  Prefactor     .10000E-03    6.9453        .27276E-05** at limit **
   4  Prefactor     .10000E-03    5.5823       -.61398E-06** at limit **
   5  Prefactor     .10000E-03    30.223        .11595E-04** at limit **
   6  Prefactor     .10000E-03    27.749        .80323E-05** at limit **
   7  Prefactor     .10000E-03    1.6587        .93652E-07** at limit **
   8  norm          .10000E-03    1.7028        .65678E-07** at limit **
   9  Prefactor     .10000E-03    7.8543       -.42055E-05** at limit **
  10  Prefactor     48.453        18.103        .32350E-05   -.25897E-04
  11  norm          3.3676        1.3030       -.48029E-06    .14366E-03
  12  Prefactor     .10000E-03    14.623        .73589E-05** at limit **
  13  Prefactor     .10000E-03    15.499        .12280E-06** at limit **
  14  norm          .10000E-03    1.4998        .71767E-08** at limit **
  15  norm          15.495        8.5019        .23150E-05    .76177E-05
  16  Prefactor     33.717        43.666       -.32918E-04   -.66211E-04
  17  Prefactor     57.549        57.873       -.74695E-04   -.32066E-04
  18  norm          3.8716        5.0765        .64463E-05    .23300E-04
  19  norm          13.792        6.5996       -.20402E-06    .52691E-04
  20  Prefactor     .10000E-03    22.889       -.91187E-05** at limit **
  21  norm          4.4406        3.8741        .10205E-05   -.29705E-05
  22  Prefactor     .10000E-03    39.624        .15112E-05** at limit **
  23  Prefactor     .10000E-03    39.748       -.50372E-07** at limit **
  24  Prefactor     .10001E-03    3.8126       -.11989E-05** at limit **
  25  Prefactor     8.9622        65.059        .14697E-03    .40750E-04
  26  Normalizat    1.1589        .19253        .25712E-05   -.35724E-03
  27  Prefactor     .90243        .19244        .50783E-06   -.96147E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.42567
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.4529
  norm       = 3.36763
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 15.4953
  Prefactor  = 33.7165
  Prefactor  = 57.5488
  norm       = 3.87156
  norm       = 13.7925
  Prefactor  = 0.0001
  norm       = 4.44055
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100005
  Prefactor  = 8.96219
  Normalizat = 1.15895
  Prefactor  = 0.902427
 **********
 **   18 **HESSE 
 **********

 FCN=   6294.806     FROM HESSE     STATUS=OK           482 CALLS     3729 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.4257        3.8212        .13785E-03   -1.5287    
   3  Prefactor     .10000E-03    6.9437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.5851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    30.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    28.865        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.6596        .99790E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.7069        .10104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.8599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     48.453        18.265        .57618E-04   -1.4315    
  11  norm          3.3676        1.3099        .22048E-04   -1.5341    
  12  Prefactor     .10000E-03    14.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    15.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.5005        .94857E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          15.495        8.5042        .10175E-03   -1.4920    
  16  Prefactor     33.717        43.620        .68984E-04   -1.4546    
  17  Prefactor     57.549        57.985        .26426E-03   -1.4189    
  18  norm          3.8716        5.0146        .16139E-03   -1.5314    
  19  norm          13.792        6.5997        .10785E-03   -1.4965    
  20  Prefactor     .10000E-03    22.917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.4406        3.8603        .13411E-03   -1.5286    
  22  Prefactor     .10000E-03    39.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    39.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10001E-03    3.8413        .15123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     8.9622        65.344        .13431E-03   -1.5109    
  26  Normalizat    1.1589        .23602        .25159E-03   -.87881    
  27  Prefactor     .90243        .23351        .29500E-03   -.96056    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10597e-09
Minuit parameter uncertainties:
  1  8.58846e-06
  2  3.82144
  3  9.32408e-05
  4  3.9686e-06
  5  7.68065e-05
  6  0.000322555
  7  2.05852e-06
  8  1.28813e-05
  9  4.01349e-05
  10  18.2671
  11  1.30987
  12  8.6106e-06
  13  0.00016079
  14  7.41922e-06
  15  8.50486
  16  43.6613
  17  58.0417
  18  5.01509
  19  6.60002
  20  1.04276e-05
  21  3.8605
  22  8.91278e-06
  23  0.000578955
  24  0.000278363
  25  48.4738
  26  0.236235
  27  0.233766
Done.

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

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  5.755e+01  5.804e+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.024e-01  2.338e-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.159e+00  2.362e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.34
Ra Dec: 351.883 -32.987
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 4.61e-08 +/- 4.65e-08
Energy Flux (Fixed Index): 1.26e-05 +/- 1.27e-05

TS (Fixed Index): 1.34
Ra Dec: 351.883 -32.987
Photon Flux Upper Limit: 1.44e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.12e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/918860/likelihoodResults_622944001_623203201_4FGL_J2327.5-3259_daily_bin1480.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) = 6294.62405981
delta logL = 0.181520707863

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6294.61026167
delta logL = 0.195318845482

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    66.016       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0346       1.0000          .0000       10.000    
     3 'Normalizat'    1.1848       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88231       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=   6294.610     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      278 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     65.969        65.911        .24698E-03   -.59841E-06
   2  Index         2.0348        .73260        .98238E-02   -.14802E-03
   3  Normalizat    1.1849        .22093        .24916E-03    .45491E-04
   4  Prefactor     .88220        .23018        .29786E-03   -.98358E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 65.9691
  Index      = 2.03475
  Normalizat = 1.18494
  Prefactor  = 0.882204
 **********
 **   18 **HESSE 
 **********

 FCN=   6294.610     FROM HESSE     STATUS=OK            25 CALLS      303 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     65.969        66.614        .98791E-05   -1.4082    
   2  Index         2.0348        .74035        .19648E-02   -.63484    
   3  Normalizat    1.1849        .22120        .99665E-05   -.87069    
   4  Prefactor     .88220        .23041        .11914E-04   -.96766    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16387e-10
Minuit parameter uncertainties:
  1  66.689
  2  0.74459
  3  0.221378
  4  0.230664
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/918860': 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) = 6294.6102612
delta logL = 0.195319316442

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  6.597e+01  6.669e+01  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  2.035e+00  7.446e-01  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.822e-01  2.307e-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.185e+00  2.214e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.72
Ra Dec: 351.883 -32.987
Photon Index (Free Index): 2.03 +/- 0.74
Photon Flux (Free Index): 2.97e-08 +/- 4.11e-08
Energy Flux (Free Index): 1.88e-05 +/- 2.31e-05

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/918860/cmap_HighResolution_622944001_623203201_4FGL_J2327.5-3259_daily_bin1480.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.12e-02', comment='SUCCESS', photon_flux='4.61e-08', energy_flux2='1.88e-05', photon_flux_error='4.65e-08', dlogl='1.95e-01', energy_flux='1.26e-05', photon_flux2='2.97e-08', job_status='DONE', time_completed='2021-09-29 20:30:19.483962', photon_index_error2='0.74', photon_index2='2.03', ts='1.34', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.44e-07', energy_flux_error2='2.31e-05', EG='1.16', time_epoch_completed='1632972619.48', return_code='0', job_id='918860', GAL2='0.88', EG2='1.18', return_code2='0', energy_flux_error='1.27e-05', photon_flux_error2='4.11e-08', ts2='1.72', photon_index='2.56' WHERE bin_id='1480' AND source_name='4FGL J2327.5-3259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:30:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 918860: <4FGL_J2327.5-3259_daily_bin1480> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5-3259_daily_bin1480 351.883 -32.9869 622944001 623203201 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 :                                   773.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             304.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            894 sec.

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

