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


Performing analysis on: 4FGL_J2327.5+0939_daily_bin334
RA = 351.896, Dec = 9.6543
tmin = 325900801, tmax = 326160001
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='906178', job_status='RUN', time_executed='2021-09-29 19:38:03.488796', time_epoch_executed='1632969483.49' WHERE source_name='4FGL J2327.5+0939' and cadence='daily' and bin_id='334'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/906178

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/906178/ft1_4FGL_J2327.5+0939_daily_bin334.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/906178/ft2_4FGL_J2327.5+0939_daily_bin334.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/906178/ft1_4FGL_J2327.5+0939_daily_bin334.fits outfile=/scratch/kocevski/906178/ft1_filteredMKT_4FGL_J2327.5+0939_daily_bin334.fits ra=351.896 dec=9.6543 rad=12.0 tmin=325900801.0 tmax=326160001.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.56
user 3.34
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/906178/ft1_filtered_4FGL_J2327.5+0939_daily_bin334.fits" evtable="EVENTS" scfile=/scratch/kocevski/906178/ft2_4FGL_J2327.5+0939_daily_bin334.fits sctable="SC_DATA" outfile=/scratch/kocevski/906178/ltcube_325900801_326160001_4FGL_J2327.5+0939_daily_bin334.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/906178/ft2_4FGL_J2327.5+0939_daily_bin334.fits
.....................!
real 12.49
user 11.89
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/906178/ft1_filtered_4FGL_J2327.5+0939_daily_bin334.fits evtable="EVENTS" scfile=/scratch/kocevski/906178/ft2_4FGL_J2327.5+0939_daily_bin334.fits sctable="SC_DATA" expcube=/scratch/kocevski/906178/ltcube_325900801_326160001_4FGL_J2327.5+0939_daily_bin334.fits outfile=/scratch/kocevski/906178/expmap_325900801_326160001_4FGL_J2327.5+0939_daily_bin334.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/906178/ltcube_325900801_326160001_4FGL_J2327.5+0939_daily_bin334.fits
.....................!
real 191.90
user 186.07
sys 5.44

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/906178/ft1_filtered_4FGL_J2327.5+0939_daily_bin334.fits scfile=/scratch/kocevski/906178/ft2_4FGL_J2327.5+0939_daily_bin334.fits outfile=/scratch/kocevski/906178/cmap_325900801_326160001_4FGL_J2327.5+0939_daily_bin334.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/906178/ft1_filtered_4FGL_J2327.5+0939_daily_bin334.fits scfile=/scratch/kocevski/906178/ft2_4FGL_J2327.5+0939_daily_bin334.fits outfile=/scratch/kocevski/906178/cmap_HighResolution_325900801_326160001_4FGL_J2327.5+0939_daily_bin334.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.1784       1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.587       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.3235       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .15770E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.096       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.7271       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.9900       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .12299E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.7275       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    53.587       1.0000         .10000E-03   10000.    
    16 'norm      '    25.759       1.0000         .10000E-03   10000.    
    17 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.9742       1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.502       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .21072       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .59892       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0434       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6667.127     FROM MIGRAD    STATUS=CONVERGED    471 CALLS     2934 TOTAL
                     EDM=   .74E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    12.995         .0000    ** at limit **
   2  Prefactor     .10000E-03    4.9364         .0000    ** at limit **
   3  Prefactor     1.1784        .19526         .0000        .80686E-04
   4  Prefactor     19.588        29.446         .0000       -.93861E-03
   5  Prefactor     3.3238        6.5369         .0000        .10674E-01
   6  Prefactor     .10000E-03    4.1873         .0000    ** at limit **
   7  Prefactor     12.098        19.599         .0000       -.46132E-03
   8  Prefactor     5.7263        5.3820         .0000        .47557E-02
   9  Prefactor     2.9869        9.7948         .0000        .57399E-02
  10  Prefactor     .10000E-03    8.2462         .0000    ** at limit **
  11  Prefactor     .10001E-03    11.427         .0000    ** at limit **
  12  norm          .10000E-03    8.0027         .0000    ** at limit **
  13  Prefactor     1.7266        9.4871         .0000        .17784E-01
  14  Prefactor     .10000E-03    5.7493         .0000    ** at limit **
  15  Prefactor     53.586        28.119         .0000        .12667E-02
  16  norm          25.758        14.647         .0000        .39206E-03
  17  norm          .10002E-03    9.3776         .0000    ** at limit **
  18  Prefactor     9.9736        28.300         .0000        .37208E-03
  19  Prefactor     17.503        22.850         .0000       -.22417E-03
  20  Prefactor     .21056        3.2693         .0000        .87654E-03
  21  Normalizat    .59891        .20750         .0000        .53150E-04
  22  Prefactor     1.0433        .12520         .0000        .23403E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 1.17837
  Prefactor  = 19.5881
  Prefactor  = 3.32383
  Prefactor  = 0.000100004
  Prefactor  = 12.0977
  Prefactor  = 5.72634
  Prefactor  = 2.98685
  Prefactor  = 0.000100002
  Prefactor  = 0.000100012
  norm       = 0.0001
  Prefactor  = 1.72655
  Prefactor  = 0.0001
  Prefactor  = 53.5858
  norm       = 25.7582
  norm       = 0.000100016
  Prefactor  = 9.97363
  Prefactor  = 17.5028
  Prefactor  = 0.21056
  Normalizat = 0.598905
  Prefactor  = 1.04335
 **********
 **   18 **HESSE 
 **********

 FCN=   6667.127     FROM HESSE     STATUS=OK           342 CALLS     3276 TOTAL
                     EDM=   .69E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    13.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.9385        .17718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.1784        .19525        .14045E-04   -1.5491    
   4  Prefactor     19.588        29.441        .90499E-04   -1.4823    
   5  Prefactor     3.3238        6.5283        .11102E-02   -1.5343    
   6  Prefactor     .10000E-03    10.662        .32463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.098        19.602        .11518E-03   -1.5012    
   8  Prefactor     5.7263        5.3767        .83920E-03   -1.5229    
   9  Prefactor     2.9869        9.4663        .11738E-02   -1.5362    
  10  Prefactor     .10000E-03    8.2693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    11.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    29.888        .36210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.7266        7.1149        .15974E-02   -1.5445    
  14  Prefactor     .10000E-03    5.7709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     53.586        27.915        .54792E-04   -1.4243    
  16  norm          25.758        14.640        .78929E-04   -1.4692    
  17  norm          .10002E-03    9.3849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.9736        28.287        .12688E-03   -1.5076    
  19  Prefactor     17.503        22.850        .95735E-04   -1.4871    
  20  Prefactor     .21056        11.619        .28533E-02   -1.5616    
  21  Normalizat    .59891        .23098        .36014E-03   -1.0803    
  22  Prefactor     1.0433        .14228        .18190E-03   -.91298    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.8821e-08
Minuit parameter uncertainties:
  1  0.000659033
  2  1.86436e-06
  3  0.195253
  4  29.4626
  5  6.52969
  6  0.000388023
  7  19.6123
  8  5.37717
  9  9.47106
  10  0.000266667
  11  0.000746749
  12  8.21993e-05
  13  7.01103
  14  7.79491e-06
  15  27.9215
  16  14.6425
  17  0.000785829
  18  28.3251
  19  22.8612
  20  3.12814
  21  0.23135
  22  0.142331
Done.

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

Extracting fit parameters...

4FGL J2327.5+0939
   Spectrum: LogParabola
409         norm:  1.000e-04  8.220e-05  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.043e+00  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:  5.989e-01  2.313e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 351.896 9.654
Photon Flux Upper Limit: 9.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.41e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/906178/likelihoodResults_325900801_326160001_4FGL_J2327.5+0939_daily_bin334.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) = 6667.12752455
delta logL = -0.000158774345437

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6667.12736543
delta logL = 3.5051471059e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .16706E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8026       1.0000          .0000       5.0000    
     3 'Normalizat'    .59909       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0433       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6667.054     FROM MIGRAD    STATUS=FAILED       200 CALLS      367 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .21265        .61703        .93783E-04    .33336E-04
   2  alpha         4.7972        4.4532        .50000        .14053E-02
   3  Normalizat    .57582        .23001        .36676E-03    .28889E-04
   4  Prefactor     1.0518        .14429        .18121E-03   -.17127E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6667.054     FROM SIMPLEX   STATUS=UNCHANGED     68 CALLS      435 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .21265        .61703        .21240E-03   -1.5616    
   2  alpha         4.7972        4.4532        .25829E-01    1.9763    
   3  Normalizat    .57582        .23001        .39434E-03   -1.0902    
   4  Prefactor     1.0518        .14429        .14031E-03   -.91022    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6667.054     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      486 TOTAL
                     EDM=   .70E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .21265        .61262         .0000        .21820E-04
   2  alpha         4.7972        4.4359         .0000        .14053E-02
   3  Normalizat    .57582        .23033         .0000        .15499E-06
   4  Prefactor     1.0518        .14442         .0000         .0000    
                               ERR DEF=  .500    
Final values: 
  norm       = 0.212649
  alpha      = 4.79722
  Normalizat = 0.575819
  Prefactor  = 1.0518
 **********
 **   18 **HESSE 
 **********

 FCN=   6667.054     FROM HESSE     STATUS=OK            27 CALLS      513 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .21265        .61234        .75027E-06   -1.5616    
   2  alpha         4.7972        4.4355        .50000        1.9763    
   3  Normalizat    .57582        .23036        .29341E-05   -1.0902    
   4  Prefactor     1.0518        .14443        .72485E-05   -.91022    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39456e-05
Minuit parameter uncertainties:
  1  0.612354
  2  2.62082
  3  0.230741
  4  0.144481
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/906178': 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) = 6667.05401055
delta logL = 0.0733552305737

Extracting fit parameters...

4FGL J2327.5+0939
   Spectrum: LogParabola
409         norm:  2.126e-01  6.124e-01  1.000e-04  1.000e+04 ( 1.000e-12)
410        alpha:  4.797e+00  2.621e+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.052e+00  1.445e-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:  5.758e-01  2.307e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 351.896 9.654

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/906178/cmap_HighResolution_325900801_326160001_4FGL_J2327.5+0939_daily_bin334.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.41e-05', job_status='DONE', photon_flux_upper_limit='9.69e-08', time_completed='2021-09-29 19:49:40.163011', job_id='906178', GAL2='1.05', fit_tolerance='1e-08', EG2='0.58', EG='0.60', time_epoch_completed='1632970180.16', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='7.34e-02', ts2='0.16', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='334' AND source_name='4FGL J2327.5+0939' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:49:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 906178: <4FGL_J2327.5+0939_daily_bin334> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5+0939_daily_bin334 351.896 9.6543 325900801 326160001 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 :                                   693.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             250.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            863 sec.

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

