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


Performing analysis on: 4FGL_J2327.5-3259_daily_bin695
RA = 351.883, Dec = -32.9869
tmin = 419472001, tmax = 419731201
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='915684', job_status='RUN', time_executed='2021-09-29 20:09:20.746283', time_epoch_executed='1632971360.75' WHERE source_name='4FGL J2327.5-3259' and cadence='daily' and bin_id='695'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/915684

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/915684/ft1_4FGL_J2327.5-3259_daily_bin695.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/915684/ft2_4FGL_J2327.5-3259_daily_bin695.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/915684/ft1_4FGL_J2327.5-3259_daily_bin695.fits outfile=/scratch/kocevski/915684/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin695.fits ra=351.883 dec=-32.9869 rad=12.0 tmin=419472001.0 tmax=419731201.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 5.75
user 5.52
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/915684/ft2_4FGL_J2327.5-3259_daily_bin695.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/915684/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin695.fits evtable="EVENTS" outfile="/scratch/kocevski/915684/ft1_filtered_4FGL_J2327.5-3259_daily_bin695.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/915684/ft1_filtered_4FGL_J2327.5-3259_daily_bin695.fits" evtable="EVENTS" scfile=/scratch/kocevski/915684/ft2_4FGL_J2327.5-3259_daily_bin695.fits sctable="SC_DATA" outfile=/scratch/kocevski/915684/ltcube_419472001_419731201_4FGL_J2327.5-3259_daily_bin695.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/915684/ft2_4FGL_J2327.5-3259_daily_bin695.fits
.....................!
real 14.72
user 14.36
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/915684/ft1_filtered_4FGL_J2327.5-3259_daily_bin695.fits evtable="EVENTS" scfile=/scratch/kocevski/915684/ft2_4FGL_J2327.5-3259_daily_bin695.fits sctable="SC_DATA" expcube=/scratch/kocevski/915684/ltcube_419472001_419731201_4FGL_J2327.5-3259_daily_bin695.fits outfile=/scratch/kocevski/915684/expmap_419472001_419731201_4FGL_J2327.5-3259_daily_bin695.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/915684/ltcube_419472001_419731201_4FGL_J2327.5-3259_daily_bin695.fits
.....................!
real 190.79
user 185.44
sys 4.99

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/915684/ft1_filtered_4FGL_J2327.5-3259_daily_bin695.fits scfile=/scratch/kocevski/915684/ft2_4FGL_J2327.5-3259_daily_bin695.fits outfile=/scratch/kocevski/915684/cmap_419472001_419731201_4FGL_J2327.5-3259_daily_bin695.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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/915684/ft1_filtered_4FGL_J2327.5-3259_daily_bin695.fits scfile=/scratch/kocevski/915684/ft2_4FGL_J2327.5-3259_daily_bin695.fits outfile=/scratch/kocevski/915684/cmap_HighResolution_419472001_419731201_4FGL_J2327.5-3259_daily_bin695.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.56
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/915684/ft1_filtered_4FGL_J2327.5-3259_daily_bin695.fits evtable="EVENTS" scfile=/scratch/kocevski/915684/ft2_4FGL_J2327.5-3259_daily_bin695.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/915684/Model_4FGL_J2327.5-3259_daily_bin695.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/915684/ft1_filtered_4FGL_J2327.5-3259_daily_bin695.fits.....................!
real 31.11
user 29.62
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.324       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.9553       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .24214E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.074       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    66.309       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.0051       1.0000         .10000E-03   10000.    
    14 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.2601       1.0000         .10000E-03   10000.    
    16 'Prefactor '    147.56       1.0000         .10000E-03   10000.    
    17 'Prefactor '    81.047       1.0000         .10000E-03   10000.    
    18 'norm      '    .26307E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    33.660       1.0000         .10000E-03   10000.    
    21 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    18.645       1.0000         .10000E-03   10000.    
    23 'Prefactor '    33.417       1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.3888       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .58195       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .81497       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .95075       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=   3303.938     FROM MIGRAD    STATUS=CONVERGED    678 CALLS     3342 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.313        49.907       -.11190E-05   -.18518E-05
   2  Prefactor     1.9559        2.5384        .39096E-06    .31612E-03
   3  Prefactor     .10000E-03    7.9888        .19558E-06** at limit **
   4  Prefactor     .10000E-03    78.766        .67837E-05** at limit **
   5  Prefactor     .10000E-03    72.422       -.23780E-04** at limit **
   6  Prefactor     .10033E-03    8.9839        .37040E-05** at limit **
   7  Prefactor     .10000E-03    12.342        .48641E-06** at limit **
   8  norm          .10000E-03    2.1567       -.96219E-08** at limit **
   9  Prefactor     .10000E-03    6.6642        .14960E-06** at limit **
  10  Prefactor     16.077        13.292        .89568E-06   -.32052E-03
  11  norm          .10000E-03    .33032       -.70374E-07** at limit **
  12  Prefactor     66.302        72.043       -.59546E-05   -.42672E-04
  13  Prefactor     3.0033        15.801        .30929E-05   -.17118E-03
  14  norm          .10000E-03    3.8057        .79808E-07** at limit **
  15  norm          6.2552        12.119       -.39117E-07   -.13354E-03
  16  Prefactor     147.52        60.480       -.46798E-05   -.44953E-03
  17  Prefactor     81.056        63.510       -.21071E-05   -.62335E-05
  18  norm          .10002E-03    5.9626        .25380E-05** at limit **
  19  norm          .10000E-03    1.7758        .37279E-06** at limit **
  20  Prefactor     33.655        33.757       -.18790E-04   -.58856E-04
  21  norm          .10000E-03    2.3503        .25072E-06** at limit **
  22  Prefactor     18.823        130.21        .24024E-03    .21876E-04
  23  Prefactor     33.413        61.259        .59013E-04    .16550E-03
  24  Prefactor     5.3958        7.6980       -.29696E-05    .33817E-03
  25  Prefactor     .32288        56.494       -.12184E-04   -.56532E-04
  26  Normalizat    .81478        .22877       -.74010E-05    .10316E-03
  27  Prefactor     .95105        .23470       -.20420E-05   -.80313E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.3133
  Prefactor  = 1.95587
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100334
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.0769
  norm       = 0.0001
  Prefactor  = 66.3022
  Prefactor  = 3.00331
  norm       = 0.0001
  norm       = 6.25521
  Prefactor  = 147.521
  Prefactor  = 81.0561
  norm       = 0.000100025
  norm       = 0.0001
  Prefactor  = 33.655
  norm       = 0.0001
  Prefactor  = 18.8234
  Prefactor  = 33.4131
  Prefactor  = 5.39577
  Prefactor  = 0.322882
  Normalizat = 0.814777
  Prefactor  = 0.951052
 **********
 **   18 **HESSE 
 **********

 FCN=   3303.938     FROM HESSE     STATUS=OK           490 CALLS     3832 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.313        49.911        .76640E-04   -1.4662    
   2  Prefactor     1.9559        2.5239        .10044E-03   -1.5428    
   3  Prefactor     .10000E-03    7.9911        .15868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    81.663        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    72.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10033E-03    65.223        .33042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.1695        .82357E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.6646        .14489E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     16.077        12.934        .99900E-04   -1.4906    
  11  norm          .10000E-03    .33489        .63442E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     66.302        72.067        .49287E-04   -1.4078    
  13  Prefactor     3.0033        15.076        .23414E-03   -1.5361    
  14  norm          .10000E-03    3.8129        .10948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.2552        12.098        .16044E-03   -1.5208    
  16  Prefactor     147.52        57.162        .16587E-03   -1.3273    
  17  Prefactor     81.056        63.611        .44614E-04   -1.3905    
  18  norm          .10002E-03    13.193        .25596E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.7926        .74729E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     33.655        33.780        .69069E-04   -1.4547    
  21  norm          .10000E-03    2.3691        .86021E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     18.823        128.83        .92755E-04   -1.4840    
  23  Prefactor     33.413        61.608        .69319E-04   -1.4551    
  24  Prefactor     5.3958        7.7218        .17289E-03   -1.5243    
  25  Prefactor     .32288        75.176        .11362       -1.5594    
  26  Normalizat    .81478        .26728        .23950E-03   -.99523    
  27  Prefactor     .95105        .27413        .24660E-03   -.94379    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.60124e-09
Minuit parameter uncertainties:
  1  49.9877
  2  2.52401
  3  1.17966e-05
  4  0.000543998
  5  0.000552145
  6  0.00934165
  7  9.96476e-05
  8  6.72588e-07
  9  8.79396e-06
  10  12.9363
  11  3.69267e-06
  12  72.1619
  13  13.4627
  14  1.99562e-05
  15  12.1027
  16  57.1834
  17  63.665
  18  0.00114018
  19  4.38298e-05
  20  33.7994
  21  2.63221e-05
  22  98.7953
  23  61.7259
  24  7.7232
  25  9.86453
  26  0.267708
  27  0.27453
Done.

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

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  8.106e+01  6.366e+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.511e-01  2.745e-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.148e-01  2.677e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.56
Ra Dec: 351.883 -32.987
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 6.50e-08 +/- 5.10e-08
Energy Flux (Fixed Index): 1.78e-05 +/- 1.39e-05

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

Saving results to:
/scratch/kocevski/915684/likelihoodResults_419472001_419731201_4FGL_J2327.5-3259_daily_bin695.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) = 3303.93825913
delta logL = 0.000100560358078

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3303.93819353
delta logL = 0.000166156040905

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    81.862       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5420       1.0000          .0000       10.000    
     3 'Normalizat'    .81558       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95055       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=   3303.938     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      249 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     81.926        81.922        .22196E-03    .16185E-04
   2  Index         2.5428        .79788        .63500E-02    .15177E-03
   3  Normalizat    .81554        .24918        .23940E-03    .10400E-04
   4  Prefactor     .95040        .27278        .24667E-03   -.81807E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 81.9264
  Index      = 2.54281
  Normalizat = 0.815543
  Prefactor  = 0.950398
 **********
 **   18 **HESSE 
 **********

 FCN=   3303.938     FROM HESSE     STATUS=OK            25 CALLS      274 TOTAL
                     EDM=   .75E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     81.926        79.446        .88785E-05   -1.3895    
   2  Index         2.5428        .77351        .12700E-02   -.51374    
   3  Normalizat    .81554        .24931        .95761E-05   -.99495    
   4  Prefactor     .95040        .27290        .98668E-05   -.94402    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.51419e-12
Minuit parameter uncertainties:
  1  79.5489
  2  0.777637
  3  0.249661
  4  0.273296
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/915684': 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) = 3303.93819076
delta logL = 0.000168925371327

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  8.193e+01  7.955e+01  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  2.543e+00  7.776e-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:  9.504e-01  2.733e-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.155e-01  2.497e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.54
Ra Dec: 351.883 -32.987
Photon Index (Free Index): 2.54 +/- 0.78
Photon Flux (Free Index): 6.45e-08 +/- 5.59e-08
Energy Flux (Free Index): 1.79e-05 +/- 1.58e-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/915684/cmap_HighResolution_419472001_419731201_4FGL_J2327.5-3259_daily_bin695.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.36e-02', comment='SUCCESS', photon_flux='6.50e-08', energy_flux2='1.79e-05', photon_flux_error='5.10e-08', dlogl='1.69e-04', energy_flux='1.78e-05', photon_flux2='6.45e-08', job_status='DONE', time_completed='2021-09-29 20:19:09.836265', photon_index_error2='0.78', photon_index2='2.54', ts='2.56', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.74e-07', energy_flux_error2='1.58e-05', EG='0.81', time_epoch_completed='1632971949.84', return_code='0', job_id='915684', GAL2='0.95', EG2='0.82', return_code2='0', energy_flux_error='1.39e-05', photon_flux_error2='5.59e-08', ts2='2.54', photon_index='2.56' WHERE bin_id='695' AND source_name='4FGL J2327.5-3259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:19:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 915684: <4FGL_J2327.5-3259_daily_bin695> in cluster <slac> Done

Job <4FGL_J2327.5-3259_daily_bin695> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 20:05:31 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 20:05:34 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:34 2021
Terminated at Wed Sep 29 20:19:10 2021
Results reported at Wed Sep 29 20:19:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5-3259_daily_bin695 351.883 -32.9869 419472001 419731201 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 :                                   588.42 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             251.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            819 sec.

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

