/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 100 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 = 7415
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2327.5+0939_daily_bin154
RA = 351.896, Dec = 9.6543
tmin = 279244801, tmax = 279504001
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='904928', job_status='RUN', time_executed='2021-09-29 19:32:42.451791', time_epoch_executed='1632969162.45' WHERE source_name='4FGL J2327.5+0939' and cadence='daily' and bin_id='154'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/904928

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/904928/ft1_4FGL_J2327.5+0939_daily_bin154.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/904928/ft2_4FGL_J2327.5+0939_daily_bin154.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/904928/ft1_4FGL_J2327.5+0939_daily_bin154.fits outfile=/scratch/kocevski/904928/ft1_filteredMKT_4FGL_J2327.5+0939_daily_bin154.fits ra=351.896 dec=9.6543 rad=12.0 tmin=279244801.0 tmax=279504001.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.65
user 3.42
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/904928/ft2_4FGL_J2327.5+0939_daily_bin154.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/904928/ft2_4FGL_J2327.5+0939_daily_bin154.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/904928/ft1_filteredMKT_4FGL_J2327.5+0939_daily_bin154.fits evtable="EVENTS" outfile="/scratch/kocevski/904928/ft1_filtered_4FGL_J2327.5+0939_daily_bin154.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.58
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/904928/ft1_filtered_4FGL_J2327.5+0939_daily_bin154.fits" evtable="EVENTS" scfile=/scratch/kocevski/904928/ft2_4FGL_J2327.5+0939_daily_bin154.fits sctable="SC_DATA" outfile=/scratch/kocevski/904928/ltcube_279244801_279504001_4FGL_J2327.5+0939_daily_bin154.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/904928/ft2_4FGL_J2327.5+0939_daily_bin154.fits
.....................!
real 12.17
user 11.76
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/904928/ft1_filtered_4FGL_J2327.5+0939_daily_bin154.fits evtable="EVENTS" scfile=/scratch/kocevski/904928/ft2_4FGL_J2327.5+0939_daily_bin154.fits sctable="SC_DATA" expcube=/scratch/kocevski/904928/ltcube_279244801_279504001_4FGL_J2327.5+0939_daily_bin154.fits outfile=/scratch/kocevski/904928/expmap_279244801_279504001_4FGL_J2327.5+0939_daily_bin154.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/904928/ltcube_279244801_279504001_4FGL_J2327.5+0939_daily_bin154.fits
.....................!
real 190.93
user 185.60
sys 4.97

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 155 point sources and 0 extended sources

Setting source of interest to:
4FGL J2327.5+0939 @ 351.896 9.6543

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/904928/ft1_filtered_4FGL_J2327.5+0939_daily_bin154.fits scfile=/scratch/kocevski/904928/ft2_4FGL_J2327.5+0939_daily_bin154.fits outfile=/scratch/kocevski/904928/cmap_279244801_279504001_4FGL_J2327.5+0939_daily_bin154.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.896 yref=9.6543 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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/904928/ft1_filtered_4FGL_J2327.5+0939_daily_bin154.fits scfile=/scratch/kocevski/904928/ft2_4FGL_J2327.5+0939_daily_bin154.fits outfile=/scratch/kocevski/904928/cmap_HighResolution_279244801_279504001_4FGL_J2327.5+0939_daily_bin154.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.896 yref=9.6543 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/904928/ft1_filtered_4FGL_J2327.5+0939_daily_bin154.fits evtable="EVENTS" scfile=/scratch/kocevski/904928/ft2_4FGL_J2327.5+0939_daily_bin154.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/904928/Model_4FGL_J2327.5+0939_daily_bin154.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/904928/ft1_filtered_4FGL_J2327.5+0939_daily_bin154.fits....................!
real 85.87
user 84.29
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/904928/ft1_filtered_4FGL_J2327.5+0939_daily_bin154.fits', '/scratch/kocevski/904928/ft2_4FGL_J2327.5+0939_daily_bin154.fits', expMap='/scratch/kocevski/904928/expmap_279244801_279504001_4FGL_J2327.5+0939_daily_bin154.fits', expCube='/scratch/kocevski/904928/ltcube_279244801_279504001_4FGL_J2327.5+0939_daily_bin154.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/904928/Model_4FGL_J2327.5+0939_daily_bin154.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2327.5+0939'

4FGL J2327.5+0939
   Spectrum: LogParabola
409         norm:  8.298e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
410        alpha:  2.682e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
411         beta:  1.276e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
412           Eb:  5.819e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/904928/ft1_filtered_4FGL_J2327.5+0939_daily_bin154.fits
Spacecraft file(s): /scratch/kocevski/904928/ft2_4FGL_J2327.5+0939_daily_bin154.fits
Exposure map: /scratch/kocevski/904928/expmap_279244801_279504001_4FGL_J2327.5+0939_daily_bin154.fits
Exposure cube: /scratch/kocevski/904928/ltcube_279244801_279504001_4FGL_J2327.5+0939_daily_bin154.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/904928/Model_4FGL_J2327.5+0939_daily_bin154.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) = 7460.18414719

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.973       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.937       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.3797       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .46005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.047       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.9525       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .24553       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.3768       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    18.942       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.5767       1.0000         .10000E-03   10000.    
    15 'Prefactor '    39.863       1.0000         .10000E-03   10000.    
    16 'norm      '    12.546       1.0000         .10000E-03   10000.    
    17 'norm      '    .10245E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.930       1.0000         .10000E-03   10000.    
    19 'Prefactor '    24.948       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .54727       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .67013       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .94600       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7460.141     FROM MIGRAD    STATUS=CONVERGED    469 CALLS     2393 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.055        55.758        .10238E-03   -.41428E-04
   2  Prefactor     11.940        24.611       -.62651E-06   -.88143E-04
   3  Prefactor     4.3794        .36895       -.45955E-06    .10580E-01
   4  Prefactor     .10000E-03    116.37       -.14193E-04** at limit **
   5  Prefactor     15.045        8.9334       -.83962E-08   -.15843E-03
   6  Prefactor     .10000E-03    5.5305       -.90066E-07** at limit **
   7  Prefactor     .10000E-03    6.0376        .74881E-07** at limit **
   8  Prefactor     2.9489        6.7087       -.74967E-05   -.57868E-03
   9  Prefactor     .29310        7.3628        .38083E-05    .37643E-04
  10  Prefactor     9.3706        18.092        .26452E-05    .60492E-04
  11  Prefactor     .10000E-03    20.643       -.16297E-05** at limit **
  12  norm          18.941        8.9898        .14737E-05   -.84089E-03
  13  Prefactor     .10000E-03    2.0692        .75910E-07** at limit **
  14  Prefactor     9.5646        12.944        .60928E-05   -.38235E-04
  15  Prefactor     39.857        27.850       -.17474E-04   -.48069E-03
  16  norm          12.543        10.321        .22951E-06   -.98965E-06
  17  norm          .10000E-03    14.708       -.10568E-05** at limit **
  18  Prefactor     10.916        27.476       -.11985E-04   -.42073E-04
  19  Prefactor     24.934        17.030        .53732E-05   -.42875E-04
  20  Prefactor     .50926        5.8561       -.20037E-07   -.74585E-03
  21  Normalizat    .67051        .20585        .49672E-05   -.34212E-03
  22  Prefactor     .94602        .12549       -.16168E-05   -.22015E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.0553
  Prefactor  = 11.9405
  Prefactor  = 4.37936
  Prefactor  = 0.0001
  Prefactor  = 15.0448
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.9489
  Prefactor  = 0.293104
  Prefactor  = 9.37056
  Prefactor  = 0.0001
  norm       = 18.9407
  Prefactor  = 0.0001
  Prefactor  = 9.56457
  Prefactor  = 39.8571
  norm       = 12.5429
  norm       = 0.000100001
  Prefactor  = 10.9155
  Prefactor  = 24.9341
  Prefactor  = 0.509264
  Normalizat = 0.670514
  Prefactor  = 0.946016
 **********
 **   18 **HESSE 
 **********

 FCN=   7460.141     FROM HESSE     STATUS=OK           346 CALLS     2739 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.055        55.536        .62624E-04   -1.4426    
   2  Prefactor     11.940        24.646        .11595E-03   -1.5017    
   3  Prefactor     4.3794        .37013        .13854E-04   -1.5289    
   4  Prefactor     .10000E-03    118.83        .21198E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.045        8.9391        .10325E-03   -1.4932    
   6  Prefactor     .10000E-03    5.5449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.0421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.9489        6.6464        .23635E-03   -1.5365    
   9  Prefactor     .29310        96.609        .41552E-02   -1.5600    
  10  Prefactor     9.3706        17.929        .13088E-03   -1.5096    
  11  Prefactor     .10000E-03    20.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          18.941        9.0047        .92026E-04   -1.4837    
  13  Prefactor     .10000E-03    2.0786        .12129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.5646        12.936        .12950E-03   -1.5089    
  15  Prefactor     39.857        27.983        .63486E-04   -1.4444    
  16  norm          12.543        10.322        .11309E-03   -1.4999    
  17  norm          .10000E-03    14.720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.916        27.492        .12118E-03   -1.5047    
  19  Prefactor     24.934        17.031        .80199E-04   -1.4709    
  20  Prefactor     .50926        21.399        .39046E-02   -1.5565    
  21  Normalizat    .67051        .23135        .38191E-03   -1.0507    
  22  Prefactor     .94602        .14401        .21025E-03   -.94551    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.81872e-09
Minuit parameter uncertainties:
  1  55.606
  2  24.6671
  3  0.370134
  4  0.00024353
  5  8.93987
  6  5.46202e-06
  7  4.1054e-06
  8  6.64808
  9  10.6582
  10  17.9392
  11  4.45973e-06
  12  9.0053
  13  8.32407e-06
  14  12.9401
  15  27.9919
  16  10.3238
  17  0.000192401
  18  27.5235
  19  17.0345
  20  6.60424
  21  0.231688
  22  0.144067
Done.

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

Extracting fit parameters...

4FGL J2327.5+0939
   Spectrum: LogParabola
409         norm:  1.894e+01  9.005e+00  1.000e-04  1.000e+04 ( 1.000e-12)
410        alpha:  2.682e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
411         beta:  1.276e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
412           Eb:  5.819e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  9.460e-01  1.441e-01  0.000e+00  1.000e+01 ( 1.000e+00)
504        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
505        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
502   Normalization:  6.705e-01  2.317e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.40
Ra Dec: 351.896 9.654
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 1.03e-07 +/- 4.88e-08
Energy Flux (Fixed Index): 2.55e-05 +/- 1.21e-05

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) = 7458.04485788
delta logL = 2.0966235008

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7457.74815524
delta logL = 2.3933261443

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    27.856       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7742       1.0000          .0000       5.0000    
     3 'Normalizat'    .71944       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92190       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7457.748     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      215 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          27.858        12.038        .30377E-05   -.66065E-03
   2  alpha         1.7742        .30456       -.53442E-05   -.38827E-03
   3  Normalizat    .71943        .19159       -.13707E-06   -.41656E-05
   4  Prefactor     .92190        .12399       -.28869E-06    .47495E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 27.8579
  alpha      = 1.77419
  Normalizat = 0.719433
  Prefactor  = 0.9219
 **********
 **   18 **HESSE 
 **********

 FCN=   7457.748     FROM HESSE     STATUS=OK            31 CALLS      246 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          27.858        12.406        .75906E-04   -1.4652    
   2  alpha         1.7742        .36857        .11961E-01   -.29456    
   3  Normalizat    .71943        .21904        .36975E-03   -1.0313    
   4  Prefactor     .92190        .14223        .21248E-03   -.95380    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.1929e-09
Minuit parameter uncertainties:
  1  12.4069
  2  0.370046
  3  0.219303
  4  0.14229
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/904928': 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) = 7457.74815523
delta logL = 2.39332615558

Extracting fit parameters...

4FGL J2327.5+0939
   Spectrum: LogParabola
409         norm:  2.786e+01  1.241e+01  1.000e-04  1.000e+04 ( 1.000e-12)
410        alpha:  1.774e+00  3.700e-01  0.000e+00  5.000e+00 ( 1.000e+00)
411         beta:  1.276e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
412           Eb:  5.819e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  9.219e-01  1.423e-01  0.000e+00  1.000e+01 ( 1.000e+00)
504        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
505        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
502   Normalization:  7.194e-01  2.193e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.13
Ra Dec: 351.896 9.654
Photon Index (Free Index): 1.77 +/- 0.37
Photon Flux (Free Index): 6.77e-08 +/- 3.52e-08
Energy Flux (Free Index): 4.62e-05 +/- 2.63e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/904928/cmap_HighResolution_279244801_279504001_4FGL_J2327.5+0939_daily_bin154.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.03e-07', energy_flux2='4.62e-05', photon_flux_error='4.88e-08', dlogl='2.39e+00', energy_flux='2.55e-05', photon_flux2='6.77e-08', job_status='DONE', time_completed='2021-09-29 19:43:23.204854', photon_index_error2='0.37', photon_index2='1.77', ts='11.40', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='2.63e-05', EG='0.67', time_epoch_completed='1632969803.2', return_code='0', job_id='904928', GAL2='0.92', EG2='0.72', return_code2='0', energy_flux_error='1.21e-05', photon_flux_error2='3.52e-08', ts2='16.13', photon_index='2.68' WHERE bin_id='154' AND source_name='4FGL J2327.5+0939' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:43:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 904928: <4FGL_J2327.5+0939_daily_bin154> in cluster <slac> Done

Job <4FGL_J2327.5+0939_daily_bin154> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 19:30:51 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 19:30:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 19:30:52 2021
Terminated at Wed Sep 29 19:43:24 2021
Results reported at Wed Sep 29 19:43:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5+0939_daily_bin154 351.896 9.6543 279244801 279504001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2327.5+0939 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   638.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             312.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   751 sec.
    Turnaround time :                            753 sec.

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

