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


Performing analysis on: 4FGL_J2327.5+0939_daily_bin323
RA = 351.896, Dec = 9.6543
tmin = 323049601, tmax = 323308801
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='906159', job_status='RUN', time_executed='2021-09-29 19:37:54.816561', time_epoch_executed='1632969474.82' WHERE source_name='4FGL J2327.5+0939' and cadence='daily' and bin_id='323'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/906159

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/906159/ft1_4FGL_J2327.5+0939_daily_bin323.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/906159/ft2_4FGL_J2327.5+0939_daily_bin323.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/906159/ft1_4FGL_J2327.5+0939_daily_bin323.fits outfile=/scratch/kocevski/906159/ft1_filteredMKT_4FGL_J2327.5+0939_daily_bin323.fits ra=351.896 dec=9.6543 rad=12.0 tmin=323049601.0 tmax=323308801.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.33
user 3.07
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/906159/ft2_4FGL_J2327.5+0939_daily_bin323.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/906159/ft1_filteredMKT_4FGL_J2327.5+0939_daily_bin323.fits evtable="EVENTS" outfile="/scratch/kocevski/906159/ft1_filtered_4FGL_J2327.5+0939_daily_bin323.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.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/906159/ft1_filtered_4FGL_J2327.5+0939_daily_bin323.fits evtable="EVENTS" scfile=/scratch/kocevski/906159/ft2_4FGL_J2327.5+0939_daily_bin323.fits sctable="SC_DATA" expcube=/scratch/kocevski/906159/ltcube_323049601_323308801_4FGL_J2327.5+0939_daily_bin323.fits outfile=/scratch/kocevski/906159/expmap_323049601_323308801_4FGL_J2327.5+0939_daily_bin323.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/906159/ltcube_323049601_323308801_4FGL_J2327.5+0939_daily_bin323.fits
.....................!
real 190.05
user 184.53
sys 5.15

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/906159/ft1_filtered_4FGL_J2327.5+0939_daily_bin323.fits scfile=/scratch/kocevski/906159/ft2_4FGL_J2327.5+0939_daily_bin323.fits outfile=/scratch/kocevski/906159/cmap_323049601_323308801_4FGL_J2327.5+0939_daily_bin323.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/906159/ft1_filtered_4FGL_J2327.5+0939_daily_bin323.fits scfile=/scratch/kocevski/906159/ft2_4FGL_J2327.5+0939_daily_bin323.fits outfile=/scratch/kocevski/906159/cmap_HighResolution_323049601_323308801_4FGL_J2327.5+0939_daily_bin323.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.54
user 0.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/906159/ft1_filtered_4FGL_J2327.5+0939_daily_bin323.fits', '/scratch/kocevski/906159/ft2_4FGL_J2327.5+0939_daily_bin323.fits', expMap='/scratch/kocevski/906159/expmap_323049601_323308801_4FGL_J2327.5+0939_daily_bin323.fits', expCube='/scratch/kocevski/906159/ltcube_323049601_323308801_4FGL_J2327.5+0939_daily_bin323.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/906159/Model_4FGL_J2327.5+0939_daily_bin323.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/906159/ft1_filtered_4FGL_J2327.5+0939_daily_bin323.fits
Spacecraft file(s): /scratch/kocevski/906159/ft2_4FGL_J2327.5+0939_daily_bin323.fits
Exposure map: /scratch/kocevski/906159/expmap_323049601_323308801_4FGL_J2327.5+0939_daily_bin323.fits
Exposure cube: /scratch/kocevski/906159/ltcube_323049601_323308801_4FGL_J2327.5+0939_daily_bin323.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/906159/Model_4FGL_J2327.5+0939_daily_bin323.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) = 8942.0925271

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4655       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.8676       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.4669       1.0000         .10000E-03   10000.    
     4 'Prefactor '    26.190       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.665       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.3322       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.0234       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10290E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.148       1.0000         .10000E-03   10000.    
    16 'norm      '    29.446       1.0000         .10000E-03   10000.    
    17 'norm      '    .12434E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    44.065       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.3529       1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.234       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .79925       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1393       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=   8942.061     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     2387 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2197        212.42       -.13769E-04   -.17725E-04
   2  Prefactor     7.8628        16.584        .14098E-04   -.18478E-04
   3  Prefactor     1.4673        .23794       -.22864E-07    .34406E-03
   4  Prefactor     26.191        37.167       -.39975E-05   -.13790E-04
   5  Prefactor     .10000E-03    2.5562       -.46602E-06** at limit **
   6  Prefactor     .10000E-03    11.679        .33741E-06** at limit **
   7  Prefactor     14.662        19.383        .53837E-05   -.30770E-04
   8  Prefactor     .10000E-03    6.3596        .61089E-06** at limit **
   9  Prefactor     3.3233        12.125       -.67927E-05   -.29066E-03
  10  Prefactor     .10000E-03    15.735       -.20476E-05** at limit **
  11  Prefactor     .10000E-03    16.511        .34889E-05** at limit **
  12  norm          6.0242        9.0140        .29015E-05   -.10413E-03
  13  Prefactor     .10000E-03    3.4528       -.28235E-06** at limit **
  14  Prefactor     .10000E-03    8.9493        .15341E-06** at limit **
  15  Prefactor     22.141        30.218        .64379E-05   -.33647E-04
  16  norm          29.445        15.260        .10415E-05   -.58743E-05
  17  norm          .10000E-03    37.597        .12817E-05** at limit **
  18  Prefactor     44.074        41.062       -.13668E-05   -.87437E-04
  19  Prefactor     4.3431        33.113        .33447E-04   -.39326E-04
  20  Prefactor     17.234        8.7038        .44874E-06   -.36244E-04
  21  Normalizat    .79900        .21286       -.46752E-05   -.72108E-04
  22  Prefactor     1.1395        .12596       -.11919E-06   -.17384E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.21969
  Prefactor  = 7.86279
  Prefactor  = 1.46727
  Prefactor  = 26.1912
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.6624
  Prefactor  = 0.0001
  Prefactor  = 3.32335
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.0242
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.1406
  norm       = 29.4452
  norm       = 0.0001
  Prefactor  = 44.0741
  Prefactor  = 4.34314
  Prefactor  = 17.2345
  Normalizat = 0.799002
  Prefactor  = 1.13948
 **********
 **   18 **HESSE 
 **********

 FCN=   8942.061     FROM HESSE     STATUS=OK           344 CALLS     2731 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2197        214.55        .26044E-03   -1.5410    
   2  Prefactor     7.8628        16.559        .14295E-03   -1.5147    
   3  Prefactor     1.4673        .23831        .16763E-04   -1.5466    
   4  Prefactor     26.191        37.211        .78279E-04   -1.4684    
   5  Prefactor     .10000E-03    2.5670        .14761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.662        19.373        .10459E-03   -1.4942    
   8  Prefactor     .10000E-03    6.5347        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.3233        11.963        .22174E-03   -1.5343    
  10  Prefactor     .10000E-03    15.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.0242        8.8655        .16360E-03   -1.5217    
  13  Prefactor     .10000E-03    3.4743        .17128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.1148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     22.141        30.075        .85111E-04   -1.4767    
  16  norm          29.445        15.261        .73833E-04   -1.4622    
  17  norm          .10000E-03    38.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     44.074        41.155        .60395E-04   -1.4379    
  19  Prefactor     4.3431        32.357        .19306E-03   -1.5291    
  20  Prefactor     17.234        8.7098        .96477E-04   -1.4877    
  21  Normalizat    .79900        .24051        .37407E-03   -1.0011    
  22  Prefactor     1.1395        .14339        .20156E-03   -.88214    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.13879e-10
Minuit parameter uncertainties:
  1  43.8071
  2  16.5683
  3  0.238309
  4  37.2437
  5  3.10671e-06
  6  4.34278e-05
  7  19.3811
  8  4.3508e-05
  9  11.9717
  10  6.50014e-05
  11  3.2758e-06
  12  8.86741
  13  2.87555e-05
  14  2.42845e-05
  15  30.0954
  16  15.263
  17  0.000105497
  18  41.182
  19  23.7269
  20  8.71044
  21  0.240828
  22  0.143443
Done.

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

Extracting fit parameters...

4FGL J2327.5+0939
   Spectrum: LogParabola
409         norm:  6.024e+00  8.867e+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:  1.139e+00  1.434e-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.990e-01  2.408e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.76
Ra Dec: 351.896 9.654
Photon Flux Upper Limit: 1.26e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.12e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/906159/likelihoodResults_323049601_323308801_4FGL_J2327.5+0939_daily_bin323.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) = 8941.85232396
delta logL = 0.208317833893

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8941.84741292
delta logL = 0.213228868242

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8577       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4057       1.0000          .0000       5.0000    
     3 'Normalizat'    .77641       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1488       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8941.847     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      292 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8565        8.8710        .18171E-03    .71485E-03
   2  alpha         3.4050        1.4899        .24713E-01    .54538E-04
   3  Normalizat    .77637        .22827        .37896E-03   -.28062E-03
   4  Prefactor     1.1489        .14339        .20081E-03   -.51278E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.85647
  alpha      = 3.40502
  Normalizat = 0.776373
  Prefactor  = 1.14894
 **********
 **   18 **HESSE 
 **********

 FCN=   8941.847     FROM HESSE     STATUS=OK            25 CALLS      317 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8565        6.6554        .72686E-05   -1.5315    
   2  alpha         3.4050        1.1575        .98851E-03    .37042    
   3  Normalizat    .77637        .22843        .15158E-04   -1.0095    
   4  Prefactor     1.1489        .14323        .40162E-04   -.87917    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.59062e-10
Minuit parameter uncertainties:
  1  6.65663
  2  1.21129
  3  0.228709
  4  0.143275
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/906159': 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) = 8941.84741167
delta logL = 0.213230124038

Extracting fit parameters...

4FGL J2327.5+0939
   Spectrum: LogParabola
409         norm:  3.856e+00  6.657e+00  1.000e-04  1.000e+04 ( 1.000e-12)
410        alpha:  3.405e+00  1.211e+00  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:  1.149e+00  1.433e-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.764e-01  2.287e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.21
Ra Dec: 351.896 9.654
Photon Index (Free Index): 3.41 +/- 1.21
Photon Flux (Free Index): 5.04e-08 +/- 5.34e-08
Energy Flux (Free Index): 9.08e-06 +/- 9.57e-06

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/906159/cmap_HighResolution_323049601_323308801_4FGL_J2327.5+0939_daily_bin323.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.12e-05', comment='SUCCESS', energy_flux2='9.08e-06', dlogl='2.13e-01', photon_flux2='5.04e-08', job_status='DONE', time_completed='2021-09-29 19:50:31.758277', photon_index_error2='1.21', photon_index2='3.41', ts='0.76', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='1.26e-07', energy_flux_error2='9.57e-06', EG='0.80', time_epoch_completed='1632970231.76', return_code='0', job_id='906159', GAL2='1.15', EG2='0.78', return_code2='0', photon_flux_error2='5.34e-08', ts2='1.21', photon_index='2.68' WHERE bin_id='323' AND source_name='4FGL J2327.5+0939' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:50:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 906159: <4FGL_J2327.5+0939_daily_bin323> in cluster <slac> Done

Job <4FGL_J2327.5+0939_daily_bin323> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 19:35:15 2021
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 19:35:18 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:35:18 2021
Terminated at Wed Sep 29 19:50:32 2021
Results reported at Wed Sep 29 19:50:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5+0939_daily_bin323 351.896 9.6543 323049601 323308801 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 :                                   754.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            917 sec.

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

