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


Performing analysis on: 4FGL_J2327.5-3259_daily_bin1476
RA = 351.883, Dec = -32.9869
tmin = 621907201, tmax = 622166401
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='918854', job_status='RUN', time_executed='2021-09-29 20:15:45.028880', time_epoch_executed='1632971745.03' WHERE source_name='4FGL J2327.5-3259' and cadence='daily' and bin_id='1476'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/918854

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/918854/ft1_4FGL_J2327.5-3259_daily_bin1476.fits


Retrieving the FT1 file...

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

Retrieving 42 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/918854/ft2_4FGL_J2327.5-3259_daily_bin1476.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/918854/ft1_4FGL_J2327.5-3259_daily_bin1476.fits outfile=/scratch/kocevski/918854/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin1476.fits ra=351.883 dec=-32.9869 rad=12.0 tmin=621907201.0 tmax=622166401.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.48
user 3.24
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/918854/ft1_filtered_4FGL_J2327.5-3259_daily_bin1476.fits" evtable="EVENTS" scfile=/scratch/kocevski/918854/ft2_4FGL_J2327.5-3259_daily_bin1476.fits sctable="SC_DATA" outfile=/scratch/kocevski/918854/ltcube_621907201_622166401_4FGL_J2327.5-3259_daily_bin1476.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/918854/ft2_4FGL_J2327.5-3259_daily_bin1476.fits
.....................!
real 10.23
user 9.90
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/918854/ft1_filtered_4FGL_J2327.5-3259_daily_bin1476.fits evtable="EVENTS" scfile=/scratch/kocevski/918854/ft2_4FGL_J2327.5-3259_daily_bin1476.fits sctable="SC_DATA" expcube=/scratch/kocevski/918854/ltcube_621907201_622166401_4FGL_J2327.5-3259_daily_bin1476.fits outfile=/scratch/kocevski/918854/expmap_621907201_622166401_4FGL_J2327.5-3259_daily_bin1476.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/918854/ltcube_621907201_622166401_4FGL_J2327.5-3259_daily_bin1476.fits
.....................!
real 190.18
user 185.18
sys 4.64

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/918854/ft1_filtered_4FGL_J2327.5-3259_daily_bin1476.fits scfile=/scratch/kocevski/918854/ft2_4FGL_J2327.5-3259_daily_bin1476.fits outfile=/scratch/kocevski/918854/cmap_621907201_622166401_4FGL_J2327.5-3259_daily_bin1476.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/918854/ft1_filtered_4FGL_J2327.5-3259_daily_bin1476.fits scfile=/scratch/kocevski/918854/ft2_4FGL_J2327.5-3259_daily_bin1476.fits outfile=/scratch/kocevski/918854/cmap_HighResolution_621907201_622166401_4FGL_J2327.5-3259_daily_bin1476.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.57
user 0.38
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/918854/ft1_filtered_4FGL_J2327.5-3259_daily_bin1476.fits evtable="EVENTS" scfile=/scratch/kocevski/918854/ft2_4FGL_J2327.5-3259_daily_bin1476.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/918854/Model_4FGL_J2327.5-3259_daily_bin1476.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/918854/ft1_filtered_4FGL_J2327.5-3259_daily_bin1476.fits.....................!
real 36.45
user 35.15
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.6220       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    37.630       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.5109       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.648       1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.177       1.0000         .10000E-03   10000.    
    11 'norm      '    2.8406       1.0000         .10000E-03   10000.    
    12 'Prefactor '    37.070       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    8.9189       1.0000         .10000E-03   10000.    
    15 'norm      '    .37188E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.0602       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.890       1.0000         .10000E-03   10000.    
    18 'norm      '    .10575E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    9.9876       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.0592       1.0000         .10000E-03   10000.    
    24 'Prefactor '    15.225       1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.1138       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .84277       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .82262       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=   4474.246     FROM MIGRAD    STATUS=CONVERGED    617 CALLS     3235 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.904       -.46458E-06** at limit **
   2  Prefactor     3.6198        5.3592        .12595E-05    .26245E-03
   3  Prefactor     .10000E-03    9.4877       -.24989E-07** at limit **
   4  Prefactor     37.629        21.557        .11910E-06    .11757E-04
   5  Prefactor     .10000E-03    10.711        .23221E-06** at limit **
   6  Prefactor     8.5123        9.8019        .34706E-06    .65642E-04
   7  Prefactor     .10000E-03    2.7123        .49381E-07** at limit **
   8  norm          .10000E-03    2.1457       -.17260E-06** at limit **
   9  Prefactor     21.648        25.163       -.42448E-06    .79341E-06
  10  Prefactor     17.167        15.953        .63365E-06    .23484E-05
  11  norm          2.8385        1.1103       -.50233E-07    .16624E-03
  12  Prefactor     37.194        64.719        .18805E-05    .55373E-04
  13  Prefactor     .10000E-03    8.2094       -.41296E-06** at limit **
  14  norm          8.9195        6.3115       -.19721E-07   -.12800E-03
  15  norm          .10003E-03    5.0967       -.60240E-06** at limit **
  16  Prefactor     6.0812        29.227        .54565E-07   -.49020E-04
  17  Prefactor     12.913        42.669        .17204E-05    .20750E-04
  18  norm          .10000E-03    3.6162        .17942E-05** at limit **
  19  norm          9.9872        4.1909        .22069E-07    .25624E-04
  20  Prefactor     .10000E-03    11.571       -.29390E-06** at limit **
  21  norm          .10000E-03    1.4019        .16663E-06** at limit **
  22  Prefactor     .10000E-03    24.454       -.73996E-07** at limit **
  23  Prefactor     8.0658        63.019        .26628E-05    .15125E-04
  24  Prefactor     15.230        9.8899        .88773E-06    .98501E-04
  25  Prefactor     8.1476        140.21       -.47083E-05   -.12220E-04
  26  Normalizat    .84232        .22953       -.66775E-05    .10863E-03
  27  Prefactor     .82308        .23395        .63049E-05   -.50066E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.61979
  Prefactor  = 0.0001
  Prefactor  = 37.629
  Prefactor  = 0.0001
  Prefactor  = 8.51229
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 21.648
  Prefactor  = 17.1666
  norm       = 2.83849
  Prefactor  = 37.1944
  Prefactor  = 0.0001
  norm       = 8.91951
  norm       = 0.000100025
  Prefactor  = 6.08116
  Prefactor  = 12.9132
  norm       = 0.0001
  norm       = 9.9872
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.06578
  Prefactor  = 15.2297
  Prefactor  = 8.14757
  Normalizat = 0.842323
  Prefactor  = 0.823082
 **********
 **   18 **HESSE 
 **********

 FCN=   4474.246     FROM HESSE     STATUS=OK           494 CALLS     3729 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.6198        5.3701        .16423E-03   -1.5327    
   3  Prefactor     .10000E-03    9.4908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     37.629        21.555        .65336E-04   -1.4480    
   5  Prefactor     .10000E-03    10.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.5123        9.8047        .13741E-03   -1.5124    
   7  Prefactor     .10000E-03    2.7165        .10759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.1575        .95599E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     21.648        25.110        .86088E-04   -1.4777    
  10  Prefactor     17.167        16.223        .96638E-04   -1.4879    
  11  norm          2.8385        1.1428        .33732E-04   -1.5371    
  12  Prefactor     37.194        64.764        .32913E-03   -1.4487    
  13  Prefactor     .10000E-03    8.3064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          8.9195        6.2971        .13345E-03   -1.5111    
  15  norm          .10003E-03    40.241        .28659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.0812        28.772        .16310E-03   -1.5215    
  17  Prefactor     12.913        42.590        .11157E-03   -1.4989    
  18  norm          .10000E-03    3.8038        .25124E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          9.9872        4.1907        .86057E-04   -1.5076    
  20  Prefactor     .10000E-03    11.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.4065        .77347E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    24.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     8.0658        62.771        .14123E-03   -1.5140    
  24  Prefactor     15.230        9.8539        .10265E-03   -1.4927    
  25  Prefactor     8.1476        138.02        .14075E-03   -1.5137    
  26  Normalizat    .84232        .23453        .23382E-03   -.98517    
  27  Prefactor     .82308        .23941        .25893E-03   -.98883    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03616e-09
Minuit parameter uncertainties:
  1  4.60826e-05
  2  5.37078
  3  2.08088e-07
  4  21.5597
  5  1.9617e-05
  6  9.80657
  7  3.25922e-06
  8  6.17809e-06
  9  25.122
  10  16.2275
  11  1.14283
  12  64.8868
  13  2.79278e-05
  14  6.29758
  15  0.00200739
  16  26.4757
  17  42.6902
  18  7.28765e-05
  19  4.19079
  20  2.46069e-05
  21  4.45949e-06
  22  9.90698e-06
  23  45.0675
  24  9.85495
  25  67.251
  26  0.234811
  27  0.239716
Done.

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

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.291e+01  4.269e+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.231e-01  2.397e-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.423e-01  2.348e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/918854/likelihoodResults_621907201_622166401_4FGL_J2327.5-3259_daily_bin1476.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) = 4474.23973256
delta logL = 0.0066888924639

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4474.23902196
delta logL = 0.00739949383023

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.620       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7767       1.0000          .0000       10.000    
     3 'Normalizat'    .83915       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82543       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=   4474.239     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      276 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.615        42.436        .11752E-03    .15284E-04
   2  Index         2.7815        1.9471        .10340E-01    .86221E-05
   3  Normalizat    .83934        .21495        .23421E-03   -.49136E-03
   4  Prefactor     .82513        .23361        .25865E-03   -.44673E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.6152
  Index      = 2.78145
  Normalizat = 0.839338
  Prefactor  = 0.825131
 **********
 **   18 **HESSE 
 **********

 FCN=   4474.239     FROM HESSE     STATUS=OK            25 CALLS      301 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.615        40.404        .47009E-05   -1.5026    
   2  Index         2.7815        1.8583        .41361E-03   -.45973    
   3  Normalizat    .83934        .21519        .46843E-04   -.98626    
   4  Prefactor     .82513        .23376        .51729E-04   -.98809    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.772e-10
Minuit parameter uncertainties:
  1  40.4991
  2  1.91613
  3  0.215405
  4  0.234037
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/918854': 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) = 4474.23901702
delta logL = 0.0074044358862

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.162e+01  4.050e+01  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  2.781e+00  1.916e+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.251e-01  2.340e-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.393e-01  2.154e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.11
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/918854/cmap_HighResolution_621907201_622166401_4FGL_J2327.5-3259_daily_bin1476.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.42e-03', job_status='DONE', photon_flux_upper_limit='9.50e-08', time_completed='2021-09-29 20:26:34.641344', job_id='918854', GAL2='0.83', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1632972394.64', return_code2='0', ts='0.11', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='7.40e-03', ts2='0.12', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='1476' AND source_name='4FGL J2327.5-3259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:26:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 918854: <4FGL_J2327.5-3259_daily_bin1476> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5-3259_daily_bin1476 351.883 -32.9869 621907201 622166401 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 :                                   639.46 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             341.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   668 sec.
    Turnaround time :                            670 sec.

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

