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


Performing analysis on: 4FGL_J2327.5+0939_daily_bin546
RA = 351.896, Dec = 9.6543
tmin = 380851201, tmax = 381110401
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='906526', job_status='RUN', time_executed='2021-09-29 19:39:41.790225', time_epoch_executed='1632969581.79' WHERE source_name='4FGL J2327.5+0939' and cadence='daily' and bin_id='546'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/906526

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/906526/ft1_4FGL_J2327.5+0939_daily_bin546.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/906526/ft2_4FGL_J2327.5+0939_daily_bin546.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/906526/ft1_4FGL_J2327.5+0939_daily_bin546.fits outfile=/scratch/kocevski/906526/ft1_filteredMKT_4FGL_J2327.5+0939_daily_bin546.fits ra=351.896 dec=9.6543 rad=12.0 tmin=380851201.0 tmax=381110401.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.45
user 3.23
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/906526/ft1_filtered_4FGL_J2327.5+0939_daily_bin546.fits" evtable="EVENTS" scfile=/scratch/kocevski/906526/ft2_4FGL_J2327.5+0939_daily_bin546.fits sctable="SC_DATA" outfile=/scratch/kocevski/906526/ltcube_380851201_381110401_4FGL_J2327.5+0939_daily_bin546.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/906526/ft2_4FGL_J2327.5+0939_daily_bin546.fits
.....................!
real 12.42
user 12.04
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/906526/ft1_filtered_4FGL_J2327.5+0939_daily_bin546.fits evtable="EVENTS" scfile=/scratch/kocevski/906526/ft2_4FGL_J2327.5+0939_daily_bin546.fits sctable="SC_DATA" expcube=/scratch/kocevski/906526/ltcube_380851201_381110401_4FGL_J2327.5+0939_daily_bin546.fits outfile=/scratch/kocevski/906526/expmap_380851201_381110401_4FGL_J2327.5+0939_daily_bin546.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/906526/ltcube_380851201_381110401_4FGL_J2327.5+0939_daily_bin546.fits
.....................!
real 189.28
user 185.15
sys 3.79

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/906526/ft1_filtered_4FGL_J2327.5+0939_daily_bin546.fits scfile=/scratch/kocevski/906526/ft2_4FGL_J2327.5+0939_daily_bin546.fits outfile=/scratch/kocevski/906526/cmap_380851201_381110401_4FGL_J2327.5+0939_daily_bin546.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/906526/ft1_filtered_4FGL_J2327.5+0939_daily_bin546.fits scfile=/scratch/kocevski/906526/ft2_4FGL_J2327.5+0939_daily_bin546.fits outfile=/scratch/kocevski/906526/cmap_HighResolution_380851201_381110401_4FGL_J2327.5+0939_daily_bin546.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.358       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.5604       1.0000         .10000E-03   10000.    
     4 'Prefactor '    35.091       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    41.000       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.375       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.3688       1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.184       1.0000         .10000E-03   10000.    
    11 'Prefactor '    32.168       1.0000         .10000E-03   10000.    
    12 'norm      '    3.1696       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    26.353       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    22.367       1.0000         .10000E-03   10000.    
    17 'norm      '    .10094E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.1900       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.9878       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .32607       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.3292       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=   7229.798     FROM MIGRAD    STATUS=CONVERGED    460 CALLS     2334 TOTAL
                     EDM=   .74E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.359        23.424       -.11218E-06   -.23810E-05
   2  Prefactor     .10000E-03    6.0269       -.74112E-07** at limit **
   3  Prefactor     2.5605        .27442       -.34212E-08   -.70783E-03
   4  Prefactor     35.107        33.768       -.15334E-05   -.19681E-05
   5  Prefactor     .10000E-03    14.038        .41842E-07** at limit **
   6  Prefactor     .10000E-03    7.6340        .12549E-07** at limit **
   7  Prefactor     41.008        22.241       -.34468E-06   -.92350E-05
   8  Prefactor     10.377        6.1456        .72311E-07   -.58218E-04
   9  Prefactor     5.3721        9.7378        .34480E-06   -.43691E-04
  10  Prefactor     27.201        21.792       -.11289E-05   -.97375E-05
  11  Prefactor     32.217        73.959       -.58215E-05   -.12721E-05
  12  norm          3.1733        6.5959        .13238E-05   -.61840E-04
  13  Prefactor     .10000E-03    3.5829        .19661E-06** at limit **
  14  Prefactor     26.352        16.494       -.50656E-07   -.35366E-04
  15  Prefactor     .10000E-03    8.7243       -.11628E-07** at limit **
  16  norm          22.372        14.624       -.12832E-06   -.19750E-04
  17  norm          .10000E-03    24.382       -.43939E-06** at limit **
  18  Prefactor     3.1571        77.937        .74805E-05   -.23396E-04
  19  Prefactor     .10000E-03    6.0560       -.32263E-07** at limit **
  20  Prefactor     4.9908        5.0209        .10219E-06   -.49715E-04
  21  Normalizat    .32500        .26280        .43475E-05    .21292E-04
  22  Prefactor     1.3298        .16522       -.13686E-05   -.12077E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.3594
  Prefactor  = 0.0001
  Prefactor  = 2.56046
  Prefactor  = 35.107
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.0083
  Prefactor  = 10.3771
  Prefactor  = 5.37211
  Prefactor  = 27.2012
  Prefactor  = 32.2171
  norm       = 3.17332
  Prefactor  = 0.0001
  Prefactor  = 26.3523
  Prefactor  = 0.0001
  norm       = 22.3716
  norm       = 0.0001
  Prefactor  = 3.15706
  Prefactor  = 0.0001
  Prefactor  = 4.99082
  Normalizat = 0.325003
  Prefactor  = 1.3298
 **********
 **   18 **HESSE 
 **********

 FCN=   7229.798     FROM HESSE     STATUS=OK           348 CALLS     2682 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.359        23.437        .82880E-04   -1.4741    
   2  Prefactor     .10000E-03    6.0294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.5605        .27414        .13980E-04   -1.5388    
   4  Prefactor     35.107        33.758        .67651E-04   -1.4522    
   5  Prefactor     .10000E-03    14.669        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.6729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     41.008        22.236        .62603E-04   -1.4426    
   8  Prefactor     10.377        6.1265        .12439E-03   -1.5064    
   9  Prefactor     5.3721        9.6288        .86720E-03   -1.5244    
  10  Prefactor     27.201        21.768        .76837E-04   -1.4664    
  11  Prefactor     32.217        74.074        .70648E-04   -1.4572    
  12  norm          3.1733        6.5863        .11382E-02   -1.5352    
  13  Prefactor     .10000E-03    3.6111        .15701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     26.352        16.437        .78036E-04   -1.4681    
  15  Prefactor     .10000E-03    8.7375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          22.372        14.614        .84694E-04   -1.4762    
  17  norm          .10000E-03    24.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.1571        74.247        .22687E-03   -1.5353    
  19  Prefactor     .10000E-03    6.0621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.9908        4.9962        .18007E-03   -1.5261    
  21  Normalizat    .32500        .23977        .54070E-03   -1.2138    
  22  Prefactor     1.3298        .15498        .18813E-03   -.82425    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02852e-10
Minuit parameter uncertainties:
  1  23.4461
  2  2.65142e-07
  3  0.274139
  4  33.7762
  5  1.06547e-05
  6  2.9594e-06
  7  22.2403
  8  6.12687
  9  9.63153
  10  21.7741
  11  74.2862
  12  6.58776
  13  9.14879e-06
  14  16.4396
  15  7.16334e-06
  16  14.616
  17  1.94501e-05
  18  30.6628
  19  9.89688e-06
  20  4.99663
  21  0.240533
  22  0.155038
Done.

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

Extracting fit parameters...

4FGL J2327.5+0939
   Spectrum: LogParabola
409         norm:  3.173e+00  6.588e+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.330e+00  1.550e-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:  3.250e-01  2.405e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/906526/likelihoodResults_380851201_381110401_4FGL_J2327.5+0939_daily_bin546.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) = 7228.52412631
delta logL = 1.27412155703

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7228.51614551
delta logL = 1.28210235706

Fit tolerance = 1e-08

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

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

 FCN=   7228.516     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      213 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6204        2.9469        .62963E-02   -.99236E-04
   2  alpha        1.00000        .50647        .49435       -.48810E-04
   3  Normalizat    .34091        .24085        .11921        .84524E-04
   4  Prefactor     1.3229        .16326        .32222E-01   -.14020E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.62044
  alpha      = 0.999997
  Normalizat = 0.340912
  Prefactor  = 1.32288
 **********
 **   18 **HESSE 
 **********

 FCN=   7228.516     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6204        4.6015        .14719E-03   -1.5384    
   2  alpha        1.00000        .81920        .20703E-01   -.64350    
   3  Normalizat    .34091        .22753        .52807E-03   -1.2048    
   4  Prefactor     1.3229        .15462        .18838E-03   -.82629    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56934e-11
Minuit parameter uncertainties:
  1  4.60211
  2  0.844033
  3  0.22815
  4  0.15467
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/906526': 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) = 7228.51614543
delta logL = 1.28210243541

Extracting fit parameters...

4FGL J2327.5+0939
   Spectrum: LogParabola
409         norm:  2.620e+00  4.602e+00  1.000e-04  1.000e+04 ( 1.000e-12)
410        alpha:  1.000e+00  8.440e-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:  1.323e+00  1.547e-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:  3.409e-01  2.281e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.88
Ra Dec: 351.896 9.654
Photon Index (Free Index): 1.00 +/- 0.84
Photon Flux (Free Index): 6.12e-09 +/- 8.47e-09
Energy Flux (Free Index): 2.28e-05 +/- 3.70e-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/906526/cmap_HighResolution_380851201_381110401_4FGL_J2327.5+0939_daily_bin546.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.65e-05', comment='SUCCESS', energy_flux2='2.28e-05', dlogl='1.28e+00', photon_flux2='6.12e-09', job_status='DONE', time_completed='2021-09-29 19:50:55.951334', photon_index_error2='0.84', photon_index2='1.00', ts='0.32', fit_tolerance='1e-08', GAL='1.33', photon_index_error='0.00', photon_flux_upper_limit='1.06e-07', energy_flux_error2='3.70e-05', EG='0.33', time_epoch_completed='1632970255.95', return_code='0', job_id='906526', GAL2='1.32', EG2='0.34', return_code2='0', photon_flux_error2='8.47e-09', ts2='2.88', photon_index='2.68' WHERE bin_id='546' AND source_name='4FGL J2327.5+0939' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:50:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 906526: <4FGL_J2327.5+0939_daily_bin546> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5+0939_daily_bin546 351.896 9.6543 380851201 381110401 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 :                                   673.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             325.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            904 sec.

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

