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


Performing analysis on: 4FGL_J2327.5+0939_daily_bin814
RA = 351.896, Dec = 9.6543
tmin = 450316801, tmax = 450576001
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='908006', job_status='RUN', time_executed='2021-09-29 19:44:09.034180', time_epoch_executed='1632969849.03' WHERE source_name='4FGL J2327.5+0939' and cadence='daily' and bin_id='814'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/908006

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/908006/ft1_4FGL_J2327.5+0939_daily_bin814.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/908006/ft2_4FGL_J2327.5+0939_daily_bin814.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/908006/ft1_4FGL_J2327.5+0939_daily_bin814.fits outfile=/scratch/kocevski/908006/ft1_filteredMKT_4FGL_J2327.5+0939_daily_bin814.fits ra=351.896 dec=9.6543 rad=12.0 tmin=450316801.0 tmax=450576001.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.96
user 3.72
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/908006/ft2_4FGL_J2327.5+0939_daily_bin814.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/908006/ft1_filteredMKT_4FGL_J2327.5+0939_daily_bin814.fits evtable="EVENTS" outfile="/scratch/kocevski/908006/ft1_filtered_4FGL_J2327.5+0939_daily_bin814.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/908006/ft1_filtered_4FGL_J2327.5+0939_daily_bin814.fits evtable="EVENTS" scfile=/scratch/kocevski/908006/ft2_4FGL_J2327.5+0939_daily_bin814.fits sctable="SC_DATA" expcube=/scratch/kocevski/908006/ltcube_450316801_450576001_4FGL_J2327.5+0939_daily_bin814.fits outfile=/scratch/kocevski/908006/expmap_450316801_450576001_4FGL_J2327.5+0939_daily_bin814.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/908006/ltcube_450316801_450576001_4FGL_J2327.5+0939_daily_bin814.fits
.....................!
real 189.23
user 184.70
sys 4.18

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/908006/ft1_filtered_4FGL_J2327.5+0939_daily_bin814.fits scfile=/scratch/kocevski/908006/ft2_4FGL_J2327.5+0939_daily_bin814.fits outfile=/scratch/kocevski/908006/cmap_450316801_450576001_4FGL_J2327.5+0939_daily_bin814.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/908006/ft1_filtered_4FGL_J2327.5+0939_daily_bin814.fits scfile=/scratch/kocevski/908006/ft2_4FGL_J2327.5+0939_daily_bin814.fits outfile=/scratch/kocevski/908006/cmap_HighResolution_450316801_450576001_4FGL_J2327.5+0939_daily_bin814.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.403       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.3692       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.4001       1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.353       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.7098       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.1409       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.279       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.805       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.1855       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.2888       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11419E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    39.899       1.0000         .10000E-03   10000.    
    18 'Prefactor '    58.330       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .17504E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .76564       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0283       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=   6359.108     FROM MIGRAD    STATUS=CONVERGED    493 CALLS     2749 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.412        43.703        .55267E-05   -.43635E-05
   2  Prefactor     6.3735        20.319        .13597E-05   -.26233E-04
   3  Prefactor     1.4001        .25137       -.40915E-07    .13072E-02
   4  Prefactor     23.358        29.884       -.97674E-06   -.10136E-04
   5  Prefactor     2.7116        8.8248       -.16749E-05   -.28764E-03
   6  Prefactor     7.1430        12.422        .12294E-05   -.52502E-04
   7  Prefactor     14.283        19.653        .18641E-05   -.21926E-04
   8  Prefactor     13.809        7.3907        .33317E-05    .72784E-03
   9  Prefactor     .10000E-03    3.2702        .60535E-07** at limit **
  10  Prefactor     .10007E-03    10.508       -.30179E-05** at limit **
  11  Prefactor     .10000E-03    17.917        .34104E-05** at limit **
  12  norm          5.1827        12.988       -.23945E-05   -.33029E-03
  13  Prefactor     2.2894        13.617        .38404E-05   -.37230E-03
  14  Prefactor     .10000E-03    22.908       -.43490E-06** at limit **
  15  Prefactor     .10000E-03    16.963       -.28565E-05** at limit **
  16  norm          .10000E-03    4.6257       -.73568E-08** at limit **
  17  norm          39.893        27.313        .77891E-06   -.32532E-05
  18  Prefactor     58.295        42.287       -.12267E-04   -.17924E-03
  19  Prefactor     .10002E-03    21.649        .42623E-05** at limit **
  20  Prefactor     .10000E-03    10.832        .20366E-06** at limit **
  21  Normalizat    .76601        .23010       -.60903E-06   -.10819E-03
  22  Prefactor     1.0279        .13676        .16007E-06   -.97132E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.4121
  Prefactor  = 6.37348
  Prefactor  = 1.40012
  Prefactor  = 23.3579
  Prefactor  = 2.7116
  Prefactor  = 7.14302
  Prefactor  = 14.2825
  Prefactor  = 13.8089
  Prefactor  = 0.0001
  Prefactor  = 0.000100072
  Prefactor  = 0.0001
  norm       = 5.18274
  Prefactor  = 2.28936
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 39.8933
  Prefactor  = 58.2946
  Prefactor  = 0.000100018
  Prefactor  = 0.0001
  Normalizat = 0.766011
  Prefactor  = 1.02793
 **********
 **   18 **HESSE 
 **********

 FCN=   6359.108     FROM HESSE     STATUS=OK           348 CALLS     3097 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.412        43.824        .84626E-04   -1.4761    
   2  Prefactor     6.3735        20.312        .15904E-03   -1.5203    
   3  Prefactor     1.4001        .25251        .15222E-04   -1.5471    
   4  Prefactor     23.358        29.863        .82888E-04   -1.4741    
   5  Prefactor     2.7116        8.8164        .24743E-03   -1.5379    
   6  Prefactor     7.1430        12.390        .15011E-03   -1.5173    
   7  Prefactor     14.283        19.615        .10600E-03   -1.4952    
   8  Prefactor     13.809        7.2672        .10780E-03   -1.4965    
   9  Prefactor     .10000E-03    3.2733        .14081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10007E-03    104.58        .47739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    17.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.1827        11.934        .17653E-03   -1.5253    
  13  Prefactor     2.2894        11.341        .27134E-03   -1.5405    
  14  Prefactor     .10000E-03    23.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    16.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.6280        .16750E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          39.893        27.153        .63457E-04   -1.4444    
  18  Prefactor     58.295        42.240        .52529E-04   -1.4179    
  19  Prefactor     .10002E-03    181.75        .69006E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.227        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .76601        .25808        .35226E-03   -1.0134    
  22  Prefactor     1.0279        .15810        .19689E-03   -.91804    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68899e-09
Minuit parameter uncertainties:
  1  43.8869
  2  20.3342
  3  0.252513
  4  29.8817
  5  8.82061
  6  12.3948
  7  19.6242
  8  7.26762
  9  4.72373e-06
  10  0.00550411
  11  2.13596e-05
  12  11.9394
  13  10.1937
  14  4.39659e-05
  15  3.92611e-05
  16  3.012e-06
  17  27.1611
  18  42.2613
  19  0.00366341
  20  5.32192e-06
  21  0.258495
  22  0.158171
Done.

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

Extracting fit parameters...

4FGL J2327.5+0939
   Spectrum: LogParabola
409         norm:  5.183e+00  1.194e+01  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.028e+00  1.582e-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.660e-01  2.585e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/908006/likelihoodResults_450316801_450576001_4FGL_J2327.5+0939_daily_bin814.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) = 6358.9192542
delta logL = 0.189108371887

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6358.9076629
delta logL = 0.200699669186

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .63860       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.7543       1.0000          .0000       5.0000    
     3 'Normalizat'    .71618       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0530       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6358.908     FROM MIGRAD    STATUS=FAILED        91 CALLS      347 TOTAL
                     EDM=   .29E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .63711        44.595        .74131E-04   -.13802E-04
   2  alpha         4.7575        3.8476        .75323E-01   -.16418E-03
   3  Normalizat    .71637        .23406        .36339E-03   -.16202E-03
   4  Prefactor     1.0529        .14474        .19482E-03   -.24111E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6358.908     FROM SIMPLEX   STATUS=UNCHANGED     91 CALLS      438 TOTAL
                     EDM=   .74E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .63711        44.595        .77988E-04   -.13802E-04
   2  alpha         4.7575        3.8476        .27360E-02   -.16418E-03
   3  Normalizat    .71637        .23406        .11017E-03   -.16202E-03
   4  Prefactor     1.0529        .14474        .48809E-04   -.24111E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6358.908     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      468 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .63712        3.5490        .29652E-05    .32972E-04
   2  alpha         4.7575        4.8493        .15065E-01   -.48601E-06
   3  Normalizat    .71637        .25678        .14536E-04   -.14328E-03
   4  Prefactor     1.0529        .16019        .38964E-04   -.21025E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.637118
  alpha      = 4.75746
  Normalizat = 0.716372
  Prefactor  = 1.05289
 **********
 **   18 **HESSE 
 **********

 FCN=   6358.908     FROM HESSE     STATUS=OK            25 CALLS      493 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .63712        2.5175        .59304E-06   -1.5548    
   2  alpha         4.7575        4.8382        .60258E-03    1.1267    
   3  Normalizat    .71637        .25684        .29072E-05   -1.0325    
   4  Prefactor     1.0529        .16015        .77927E-05   -.90987    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.57479e-11
Minuit parameter uncertainties:
  1  2.51795
  2  2.62318
  3  0.257271
  4  0.160222
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/908006': 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) = 6358.90765964
delta logL = 0.200702934681

Extracting fit parameters...

4FGL J2327.5+0939
   Spectrum: LogParabola
409         norm:  6.371e-01  2.518e+00  1.000e-04  1.000e+04 ( 1.000e-12)
410        alpha:  4.757e+00  2.623e+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.053e+00  1.602e-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.164e-01  2.573e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.39
Ra Dec: 351.896 9.654

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/908006/cmap_HighResolution_450316801_450576001_4FGL_J2327.5+0939_daily_bin814.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.39e-05', job_status='DONE', photon_flux_upper_limit='1.36e-07', time_completed='2021-09-29 19:55:13.610979', job_id='908006', GAL2='1.05', fit_tolerance='1e-08', EG2='0.72', EG='0.77', time_epoch_completed='1632970513.61', return_code2='0', ts='0.39', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='2.01e-01', ts2='0.86', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='814' AND source_name='4FGL J2327.5+0939' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:55:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 908006: <4FGL_J2327.5+0939_daily_bin814> in cluster <slac> Done

Job <4FGL_J2327.5+0939_daily_bin814> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 19:40:52 2021
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 19:40:53 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:40:53 2021
Terminated at Wed Sep 29 19:55:14 2021
Results reported at Wed Sep 29 19:55:14 2021

Your job looked like:

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

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

