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


Performing analysis on: 4FGL_J2327.5-3259_daily_bin1641
RA = 351.883, Dec = -32.9869
tmin = 664675201, tmax = 664934401
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='374081', job_status='RUN', time_executed='2022-01-27 00:41:30.248767', time_epoch_executed='1643272890.25' WHERE source_name='4FGL J2327.5-3259' and cadence='daily' and bin_id='1641'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/374081

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/374081/ft1_4FGL_J2327.5-3259_daily_bin1641.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/374081/ft2_4FGL_J2327.5-3259_daily_bin1641.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/374081/ft1_4FGL_J2327.5-3259_daily_bin1641.fits outfile=/scratch/kocevski/374081/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin1641.fits ra=351.883 dec=-32.9869 rad=12.0 tmin=664675201.0 tmax=664934401.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.68
user 3.45
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/374081/ft1_filtered_4FGL_J2327.5-3259_daily_bin1641.fits" evtable="EVENTS" scfile=/scratch/kocevski/374081/ft2_4FGL_J2327.5-3259_daily_bin1641.fits sctable="SC_DATA" outfile=/scratch/kocevski/374081/ltcube_664675201_664934401_4FGL_J2327.5-3259_daily_bin1641.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/374081/ft2_4FGL_J2327.5-3259_daily_bin1641.fits
.....................!
real 11.94
user 11.58
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/374081/ft1_filtered_4FGL_J2327.5-3259_daily_bin1641.fits evtable="EVENTS" scfile=/scratch/kocevski/374081/ft2_4FGL_J2327.5-3259_daily_bin1641.fits sctable="SC_DATA" expcube=/scratch/kocevski/374081/ltcube_664675201_664934401_4FGL_J2327.5-3259_daily_bin1641.fits outfile=/scratch/kocevski/374081/expmap_664675201_664934401_4FGL_J2327.5-3259_daily_bin1641.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/374081/ltcube_664675201_664934401_4FGL_J2327.5-3259_daily_bin1641.fits
.....................!
real 191.24
user 185.65
sys 5.16

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/374081/ft1_filtered_4FGL_J2327.5-3259_daily_bin1641.fits scfile=/scratch/kocevski/374081/ft2_4FGL_J2327.5-3259_daily_bin1641.fits outfile=/scratch/kocevski/374081/cmap_664675201_664934401_4FGL_J2327.5-3259_daily_bin1641.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/374081/ft1_filtered_4FGL_J2327.5-3259_daily_bin1641.fits scfile=/scratch/kocevski/374081/ft2_4FGL_J2327.5-3259_daily_bin1641.fits outfile=/scratch/kocevski/374081/cmap_HighResolution_664675201_664934401_4FGL_J2327.5-3259_daily_bin1641.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/374081/ft1_filtered_4FGL_J2327.5-3259_daily_bin1641.fits evtable="EVENTS" scfile=/scratch/kocevski/374081/ft2_4FGL_J2327.5-3259_daily_bin1641.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/374081/Model_4FGL_J2327.5-3259_daily_bin1641.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/374081/ft1_filtered_4FGL_J2327.5-3259_daily_bin1641.fits.....................!
real 36.40
user 35.04
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    112.43       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.0095       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.771       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.3719       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.2045       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    13.975       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.181       1.0000         .10000E-03   10000.    
    17 'Prefactor '    56.595       1.0000         .10000E-03   10000.    
    18 'norm      '    3.7445       1.0000         .10000E-03   10000.    
    19 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.1641       1.0000         .10000E-03   10000.    
    21 'norm      '    4.0867       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    46.815       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    27.381       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.4946       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .58384       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=   4093.338     FROM MIGRAD    STATUS=CONVERGED    642 CALLS     3350 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     112.41        88.170       -.13847E-05   -.15386E-04
   2  Prefactor     6.0079        5.5900       -.58950E-07    .12802E-03
   3  Prefactor     .10000E-03    49.415        .83012E-06** at limit **
   4  Prefactor     .10000E-03    13.265        .17083E-06** at limit **
   5  Prefactor     16.770        43.547       -.11777E-05    .16423E-05
   6  Prefactor     2.3589        31.865       -.83361E-06    .38772E-04
   7  Prefactor     .10000E-03    3.5564       -.27935E-07** at limit **
   8  norm          5.2039        4.5891       -.13406E-06   -.38075E-03
   9  Prefactor     .10000E-03    8.3955        .18807E-06** at limit **
  10  Prefactor     .10000E-03    5.6859        .23792E-06** at limit **
  11  norm          .10000E-03    .48395        .39727E-06** at limit **
  12  Prefactor     .10000E-03    45.149       -.33876E-07** at limit **
  13  Prefactor     .10000E-03    6.6875        .35554E-06** at limit **
  14  norm          .10000E-03    2.2619        .55956E-07** at limit **
  15  norm          13.974        13.700       -.99507E-08   -.11899E-04
  16  Prefactor     13.094        49.844       -.24210E-05   -.75623E-04
  17  Prefactor     56.561        78.700       -.40089E-05   -.42929E-04
  18  norm          3.7482        4.2966       -.39973E-06   -.30135E-03
  19  norm          .10000E-03    1.2896       -.44504E-07** at limit **
  20  Prefactor     3.1508        86.335       -.16836E-05    .84992E-05
  21  norm          4.0894        4.8945       -.35737E-06   -.16830E-03
  22  Prefactor     .10000E-03    73.059        .38236E-06** at limit **
  23  Prefactor     46.815        44.099       -.14060E-06   -.11727E-05
  24  Prefactor     .10000E-03    7.2342        .42237E-07** at limit **
  25  Prefactor     27.372        49.346       -.13959E-05   -.16252E-04
  26  Normalizat    1.4947        .30803        .11276E-04   -.35723E-03
  27  Prefactor     .58375        .28050       -.17072E-04   -.19812E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 112.415
  Prefactor  = 6.00791
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.7701
  Prefactor  = 2.3589
  Prefactor  = 0.0001
  norm       = 5.20395
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 13.9741
  Prefactor  = 13.094
  Prefactor  = 56.5611
  norm       = 3.74824
  norm       = 0.0001
  Prefactor  = 3.15078
  norm       = 4.08938
  Prefactor  = 0.0001
  Prefactor  = 46.8146
  Prefactor  = 0.0001
  Prefactor  = 27.3719
  Normalizat = 1.49467
  Prefactor  = 0.583755
 **********
 **   18 **HESSE 
 **********

 FCN=   4093.338     FROM HESSE     STATUS=OK           482 CALLS     3832 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     112.41        88.071        .37938E-04   -1.3583    
   2  Prefactor     6.0079        5.5849        .13737E-03   -1.5218    
   3  Prefactor     .10000E-03    49.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.770        43.513        .97799E-04   -1.4889    
   6  Prefactor     2.3589        32.042        .26603E-03   -1.5401    
   7  Prefactor     .10000E-03    3.5587        .11784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.2039        4.5571        .12320E-03   -1.5252    
   9  Prefactor     .10000E-03    8.4072        .18104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.7176        .14883E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.0174        .84697E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    45.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.7109        .16158E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.2634        .93929E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          13.974        13.684        .10714E-03   -1.4960    
  16  Prefactor     13.094        49.988        .11033E-03   -1.4984    
  17  Prefactor     56.561        78.572        .53324E-04   -1.4202    
  18  norm          3.7482        4.2875        .12500E-03   -1.5321    
  19  norm          .10000E-03    1.2915        .70927E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.1508        86.654        .22785E-03   -1.5353    
  21  norm          4.0894        4.8751        .14401E-03   -1.5303    
  22  Prefactor     .10000E-03    73.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     46.815        44.091        .58602E-04   -1.4338    
  24  Prefactor     .10000E-03    7.3205        .16793E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     27.372        49.252        .76561E-04   -1.4661    
  26  Normalizat    1.4947        .30658        .21942E-03   -.77928    
  27  Prefactor     .58375        .28173        .33835E-03   -1.0827    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.01317e-10
Minuit parameter uncertainties:
  1  88.1734
  2  5.58543
  3  0.00030585
  4  1.45587e-05
  5  43.5951
  6  17.3989
  7  3.05662e-06
  8  4.55745
  9  2.4935e-05
  10  2.93471e-06
  11  2.10854e-06
  12  9.3026e-05
  13  3.77478e-05
  14  6.00536e-06
  15  13.6866
  16  50.1491
  17  78.716
  18  4.28786
  19  1.7591e-06
  20  33.0998
  21  4.87553
  22  0.000203849
  23  44.1218
  24  2.09566e-05
  25  49.3255
  26  0.306964
  27  0.282408
Done.

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

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  5.656e+01  7.872e+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:  5.838e-01  2.824e-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.495e+00  3.070e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/374081/likelihoodResults_664675201_664934401_4FGL_J2327.5-3259_daily_bin1641.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) = 4091.7729909
delta logL = 1.56488997943

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4091.69064901
delta logL = 1.64723186686

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2749       1.0000         .10000E-03   10000.    
     2 'Index     '    5.0473       1.0000          .0000       10.000    
     3 'Normalizat'    1.3757       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67370       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=   4091.691     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      326 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2581        55.740        .48716E-02   -.30747E-04
   2  Index         5.0495        3.5702        .10070        .65077E-04
   3  Normalizat    1.3758        .87120E-01    .51218E-01   -.30556E-03
   4  Prefactor     .67359        .88593E-01    .71584E-01   -.11693E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.25811
  Index      = 5.04949
  Normalizat = 1.37578
  Prefactor  = 0.673595
 **********
 **   18 **HESSE 
 **********

 FCN=   4091.691     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      357 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2581        82.099        .77729E-04   -1.5295    
   2  Index         5.0495        7.1660        .41335E-02    .98988E-02
   3  Normalizat    1.3758        .25606        .22644E-03   -.81332    
   4  Prefactor     .67359        .25273        .31683E-03   -1.0457    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.57822e-10
Minuit parameter uncertainties:
  1  37.4533
  2  5.19137
  3  0.256298
  4  0.253156
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/374081': 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): 102
logL (Free Index) = 4091.69064842
delta logL = 1.64723245865

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  4.258e+00  3.745e+01  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  5.049e+00  5.191e+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:  6.736e-01  2.532e-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.376e+00  2.563e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.19
Ra Dec: 351.883 -32.987
Photon Index (Free Index): 5.05 +/- 5.19
Photon Flux (Free Index): 1.46e-07 +/- 9.73e-08
Energy Flux (Free Index): 1.93e-05 +/- 1.77e-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/374081/cmap_HighResolution_664675201_664934401_4FGL_J2327.5-3259_daily_bin1641.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.37e-02', comment='SUCCESS', energy_flux2='1.93e-05', dlogl='1.65e+00', photon_flux2='1.46e-07', job_status='DONE', time_completed='2022-01-27 00:51:47.360401', photon_index_error2='5.19', photon_index2='5.05', ts='0.66', fit_tolerance='1e-08', GAL='0.58', photon_index_error='0.00', photon_flux_upper_limit='1.76e-07', energy_flux_error2='1.77e-05', EG='1.49', time_epoch_completed='1643273507.36', return_code='0', job_id='374081', GAL2='0.67', EG2='1.38', return_code2='102', photon_flux_error2='9.73e-08', ts2='4.19', photon_index='2.56' WHERE bin_id='1641' AND source_name='4FGL J2327.5-3259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jan 27 00:51:47 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 374081: <4FGL_J2327.5-3259_daily_bin1641> in cluster <slac> Done

Job <4FGL_J2327.5-3259_daily_bin1641> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Jan 27 00:40:46 2022
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jan 27 00:40:48 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jan 27 00:40:48 2022
Terminated at Thu Jan 27 00:51:48 2022
Results reported at Thu Jan 27 00:51:48 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5-3259_daily_bin1641 351.883 -32.9869 664675201 664934401 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 :                                   619.03 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             328.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   659 sec.
    Turnaround time :                            662 sec.

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

