/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 226 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 = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2327.5+0939_daily_bin558
RA = 351.896, Dec = 9.6543
tmin = 383961601, tmax = 384220801
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='906550', job_status='RUN', time_executed='2021-09-29 19:39:53.178561', time_epoch_executed='1632969593.18' WHERE source_name='4FGL J2327.5+0939' and cadence='daily' and bin_id='558'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/906550

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/906550/ft1_4FGL_J2327.5+0939_daily_bin558.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/906550/ft2_4FGL_J2327.5+0939_daily_bin558.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/906550/ft1_4FGL_J2327.5+0939_daily_bin558.fits outfile=/scratch/kocevski/906550/ft1_filteredMKT_4FGL_J2327.5+0939_daily_bin558.fits ra=351.896 dec=9.6543 rad=12.0 tmin=383961601.0 tmax=384220801.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 8.60
user 8.28
sys 0.30

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/906550/ft1_filtered_4FGL_J2327.5+0939_daily_bin558.fits" evtable="EVENTS" scfile=/scratch/kocevski/906550/ft2_4FGL_J2327.5+0939_daily_bin558.fits sctable="SC_DATA" outfile=/scratch/kocevski/906550/ltcube_383961601_384220801_4FGL_J2327.5+0939_daily_bin558.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/906550/ft2_4FGL_J2327.5+0939_daily_bin558.fits
.....................!
real 12.03
user 11.04
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/906550/ft1_filtered_4FGL_J2327.5+0939_daily_bin558.fits evtable="EVENTS" scfile=/scratch/kocevski/906550/ft2_4FGL_J2327.5+0939_daily_bin558.fits sctable="SC_DATA" expcube=/scratch/kocevski/906550/ltcube_383961601_384220801_4FGL_J2327.5+0939_daily_bin558.fits outfile=/scratch/kocevski/906550/expmap_383961601_384220801_4FGL_J2327.5+0939_daily_bin558.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/906550/ltcube_383961601_384220801_4FGL_J2327.5+0939_daily_bin558.fits
.....................!
real 192.22
user 187.16
sys 4.68

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/906550/ft1_filtered_4FGL_J2327.5+0939_daily_bin558.fits scfile=/scratch/kocevski/906550/ft2_4FGL_J2327.5+0939_daily_bin558.fits outfile=/scratch/kocevski/906550/cmap_383961601_384220801_4FGL_J2327.5+0939_daily_bin558.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/906550/ft1_filtered_4FGL_J2327.5+0939_daily_bin558.fits scfile=/scratch/kocevski/906550/ft2_4FGL_J2327.5+0939_daily_bin558.fits outfile=/scratch/kocevski/906550/cmap_HighResolution_383961601_384220801_4FGL_J2327.5+0939_daily_bin558.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    47.863       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.3305       1.0000         .10000E-03   10000.    
     4 'Prefactor '    28.671       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.610       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.355       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.5492       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    21.422       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.9615       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .53076       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.3083       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=   5576.321     FROM MIGRAD    STATUS=CONVERGED    463 CALLS     2354 TOTAL
                     EDM=   .44E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    110.91       -.36979E-05** at limit **
   2  Prefactor     47.867        40.855        .24687E-05   -.39398E-04
   3  Prefactor     1.3304        .29480       -.35709E-07   -.89649E-03
   4  Prefactor     28.674        33.254        .12781E-05    .16878E-05
   5  Prefactor     .10000E-03    10.900        .69179E-05** at limit **
   6  Prefactor     .10000E-03    14.277        .84313E-06** at limit **
   7  Prefactor     13.607        21.247        .39932E-06   -.15280E-04
   8  Prefactor     .10000E-03    4.8485        .31539E-07** at limit **
   9  Prefactor     12.356        10.730        .67690E-07    .11677E-03
  10  Prefactor     .10000E-03    6.6270        .31029E-07** at limit **
  11  Prefactor     .10000E-03    19.562        .44641E-05** at limit **
  12  norm          .10000E-03    10.891       -.62355E-05** at limit **
  13  Prefactor     5.5511        10.231        .37256E-07    .11355E-04
  14  Prefactor     .10000E-03    34.381        .71981E-05** at limit **
  15  Prefactor     .10000E-03    17.720        .76759E-06** at limit **
  16  norm          .10000E-03    19.074        .42289E-05** at limit **
  17  norm          21.418        23.167       -.17404E-07   -.13112E-03
  18  Prefactor     .10000E-03    15.251       -.50659E-05** at limit **
  19  Prefactor     .10000E-03    25.208       -.11639E-04** at limit **
  20  Prefactor     7.9616        7.1891        .76388E-06    .21256E-04
  21  Normalizat    .53082        .27433       -.10758E-05   -.45310E-04
  22  Prefactor     1.3082        .17013        .39689E-07   -.33541E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 47.8666
  Prefactor  = 1.33042
  Prefactor  = 28.6737
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.6074
  Prefactor  = 0.0001
  Prefactor  = 12.3558
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.55105
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 21.4182
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.96159
  Normalizat = 0.530816
  Prefactor  = 1.30822
 **********
 **   18 **HESSE 
 **********

 FCN=   5576.321     FROM HESSE     STATUS=OK           336 CALLS     2690 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    111.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     47.867        41.032        .57960E-04   -1.4323    
   3  Prefactor     1.3304        .29603        .17398E-04   -1.5477    
   4  Prefactor     28.674        33.246        .74821E-04   -1.4636    
   5  Prefactor     .10000E-03    11.034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.607        21.246        .10857E-03   -1.4970    
   8  Prefactor     .10000E-03    4.9024        .16052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.356        10.721        .11396E-03   -1.5005    
  10  Prefactor     .10000E-03    6.6320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    19.574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    10.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.5511        10.165        .17055E-03   -1.5237    
  14  Prefactor     .10000E-03    34.876        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    17.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    19.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          21.418        23.037        .86540E-04   -1.4782    
  18  Prefactor     .10000E-03    15.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    25.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.9616        7.1929        .14210E-03   -1.5144    
  21  Normalizat    .53082        .28956        .44900E-03   -1.1101    
  22  Prefactor     1.3082        .18221        .19001E-03   -.83063    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.12284e-11
Minuit parameter uncertainties:
  1  3.77978e-05
  2  41.0563
  3  0.296029
  4  33.2676
  5  4.75524e-05
  6  8.96264e-06
  7  21.2574
  8  2.09861e-06
  9  10.7229
  10  5.77602e-07
  11  2.67182e-08
  12  2.65968e-05
  13  10.1686
  14  8.54006e-05
  15  1.35422e-05
  16  4.93359e-06
  17  23.0468
  18  5.06643e-06
  19  3.9786e-05
  20  7.19372
  21  0.290384
  22  0.182302
Done.

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

Extracting fit parameters...

4FGL J2327.5+0939
   Spectrum: LogParabola
409         norm:  1.000e-04  2.660e-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.308e+00  1.823e-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.308e-01  2.904e-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: 1.33e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.31e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/906550/likelihoodResults_383961601_384220801_4FGL_J2327.5+0939_daily_bin558.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): 102
logL (Free Index) = 5576.32118548
delta logL = -0.000436214073488

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5576.3207534
delta logL = -4.13665657106e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13819E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6627       1.0000          .0000       5.0000    
     3 'Normalizat'    .53021       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3086       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=   5576.321     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      243 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    240.19        .18142E-01** at limit **
   2  alpha         2.3563        3.5067        .16505        .10291E-06
   3  Normalizat    .53082        .28047E-01    .44900E-03    .60767E-06
   4  Prefactor     1.3082        .18085E-01    .19001E-03    .86159E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100004
  alpha      = 2.35625
  Normalizat = 0.530817
  Prefactor  = 1.30822
 **********
 **   18 **HESSE 
 **********

 FCN=   5576.321     FROM HESSE     STATUS=OK            23 CALLS      266 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.405        .50380E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3563        3.7837        .66020E-02   -.57530E-01
   3  Normalizat    .53082        .27897        .17960E-04   -1.1101    
   4  Prefactor     1.3082        .18028        .76003E-05   -.83063    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.61122e-10
Minuit parameter uncertainties:
  1  0.000428472
  2  324.639
  3  0.279713
  4  0.180369
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/906550': 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) = 5576.32074873
delta logL = 5.38823769602e-07

Extracting fit parameters...

4FGL J2327.5+0939
   Spectrum: LogParabola
409         norm:  1.000e-04  4.285e-04  1.000e-04  1.000e+04 ( 1.000e-12)
410        alpha:  2.356e+00  3.246e+02  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.308e+00  1.804e-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.308e-01  2.797e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/906550/cmap_HighResolution_383961601_384220801_4FGL_J2327.5+0939_daily_bin558.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.31e-05', job_status='DONE', photon_flux_upper_limit='1.33e-07', time_completed='2021-09-29 19:49:49.815365', job_id='906550', GAL2='1.31', fit_tolerance='1e-08', EG2='0.53', EG='0.53', time_epoch_completed='1632970189.82', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.31', dlogl='5.39e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='558' AND source_name='4FGL J2327.5+0939' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:49:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 906550: <4FGL_J2327.5+0939_daily_bin558> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5+0939_daily_bin558 351.896 9.6543 383961601 384220801 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 :                                   592.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             223.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   834 sec.
    Turnaround time :                            836 sec.

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

