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


Performing analysis on: 4FGL_J2327.5+0939_daily_bin704
RA = 351.896, Dec = 9.6543
tmin = 421804801, tmax = 422064001
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='907822', job_status='RUN', time_executed='2021-09-29 19:44:09.410045', time_epoch_executed='1632969849.41' WHERE source_name='4FGL J2327.5+0939' and cadence='daily' and bin_id='704'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/907822

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/907822/ft1_4FGL_J2327.5+0939_daily_bin704.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/907822/ft2_4FGL_J2327.5+0939_daily_bin704.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/907822/ft1_4FGL_J2327.5+0939_daily_bin704.fits outfile=/scratch/kocevski/907822/ft1_filteredMKT_4FGL_J2327.5+0939_daily_bin704.fits ra=351.896 dec=9.6543 rad=12.0 tmin=421804801.0 tmax=422064001.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.57
user 3.33
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/907822/ft2_4FGL_J2327.5+0939_daily_bin704.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/907822/ft1_filteredMKT_4FGL_J2327.5+0939_daily_bin704.fits evtable="EVENTS" outfile="/scratch/kocevski/907822/ft1_filtered_4FGL_J2327.5+0939_daily_bin704.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/907822/ft1_filtered_4FGL_J2327.5+0939_daily_bin704.fits" evtable="EVENTS" scfile=/scratch/kocevski/907822/ft2_4FGL_J2327.5+0939_daily_bin704.fits sctable="SC_DATA" outfile=/scratch/kocevski/907822/ltcube_421804801_422064001_4FGL_J2327.5+0939_daily_bin704.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/907822/ft2_4FGL_J2327.5+0939_daily_bin704.fits
.....................!
real 12.08
user 11.72
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/907822/ft1_filtered_4FGL_J2327.5+0939_daily_bin704.fits evtable="EVENTS" scfile=/scratch/kocevski/907822/ft2_4FGL_J2327.5+0939_daily_bin704.fits sctable="SC_DATA" expcube=/scratch/kocevski/907822/ltcube_421804801_422064001_4FGL_J2327.5+0939_daily_bin704.fits outfile=/scratch/kocevski/907822/expmap_421804801_422064001_4FGL_J2327.5+0939_daily_bin704.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/907822/ltcube_421804801_422064001_4FGL_J2327.5+0939_daily_bin704.fits
.....................!
real 191.48
user 186.54
sys 4.57

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/907822/ft1_filtered_4FGL_J2327.5+0939_daily_bin704.fits scfile=/scratch/kocevski/907822/ft2_4FGL_J2327.5+0939_daily_bin704.fits outfile=/scratch/kocevski/907822/cmap_421804801_422064001_4FGL_J2327.5+0939_daily_bin704.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.56
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/907822/ft1_filtered_4FGL_J2327.5+0939_daily_bin704.fits scfile=/scratch/kocevski/907822/ft2_4FGL_J2327.5+0939_daily_bin704.fits outfile=/scratch/kocevski/907822/cmap_HighResolution_421804801_422064001_4FGL_J2327.5+0939_daily_bin704.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.60
user 0.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10255E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.2844       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.1914       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.5394       1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.246       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.1849       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.4664       1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.074       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.7199       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.5008       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .44851       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .73162       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0503       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=   7714.833     FROM MIGRAD    STATUS=CONVERGED    475 CALLS     2347 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.625       -.19735E-06** at limit **
   2  Prefactor     .10000E-03    30.968       -.10054E-05** at limit **
   3  Prefactor     3.2844        .29056        .11167E-07    .25645E-03
   4  Prefactor     8.1883        20.111       -.27824E-05   -.23037E-04
   5  Prefactor     .10000E-03    2.6115        .37069E-07** at limit **
   6  Prefactor     1.5390        14.187       -.18835E-05   -.35716E-03
   7  Prefactor     21.244        16.816       -.62313E-06   -.11356E-04
   8  Prefactor     .10000E-03    2.7459        .20958E-07** at limit **
   9  Prefactor     3.1823        7.8547       -.21494E-05   -.40168E-03
  10  Prefactor     .10000E-03    4.6128       -.97078E-07** at limit **
  11  Prefactor     .10000E-03    18.307        .36880E-06** at limit **
  12  norm          .10000E-03    2.4863        .33837E-08** at limit **
  13  Prefactor     6.4662        6.2546       -.12440E-06   -.31662E-03
  14  Prefactor     19.075        14.155       -.99298E-06   -.16408E-04
  15  Prefactor     1.6781        54.108        .27513E-04   -.77414E-04
  16  norm          .10000E-03    4.3077       -.39506E-07** at limit **
  17  norm          .10000E-03    12.627        .42271E-06** at limit **
  18  Prefactor     8.5052        27.356        .13268E-04    .25388E-04
  19  Prefactor     .36218        12.420       -.38683E-05    .22293E-03
  20  Prefactor     .10000E-03    6.0835       -.52925E-07** at limit **
  21  Normalizat    .73172        .19605       -.14600E-05    .99752E-04
  22  Prefactor     1.0503        .12150       -.43796E-07    .12416E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.28441
  Prefactor  = 8.1883
  Prefactor  = 0.0001
  Prefactor  = 1.53898
  Prefactor  = 21.2439
  Prefactor  = 0.0001
  Prefactor  = 3.18234
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.46619
  Prefactor  = 19.075
  Prefactor  = 1.67808
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 8.50523
  Prefactor  = 0.362176
  Prefactor  = 0.0001
  Normalizat = 0.731715
  Prefactor  = 1.05028
 **********
 **   18 **HESSE 
 **********

 FCN=   7714.833     FROM HESSE     STATUS=OK           344 CALLS     2691 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    32.420        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.2844        .29066        .13572E-04   -1.5345    
   4  Prefactor     8.1883        20.127        .14008E-03   -1.5136    
   5  Prefactor     .10000E-03    2.6428        .13860E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.5390        14.698        .34368E-03   -1.5460    
   7  Prefactor     21.244        16.827        .86896E-04   -1.4786    
   8  Prefactor     .10000E-03    2.7820        .14209E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.1823        7.9178        .22706E-03   -1.5351    
  10  Prefactor     .10000E-03    4.6168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    18.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.4900        .13514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.4662        6.2560        .15783E-03   -1.5199    
  14  Prefactor     19.075        14.180        .91708E-04   -1.4834    
  15  Prefactor     1.6781        50.544        .32033E-03   -1.5449    
  16  norm          .10000E-03    4.3116        .17804E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    12.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.5052        27.294        .13749E-03   -1.5125    
  19  Prefactor     .36218        143.49        .58081E-02   -1.5588    
  20  Prefactor     .10000E-03    6.2813        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .73172        .22114        .36064E-03   -1.0265    
  22  Prefactor     1.0503        .13861        .19797E-03   -.91072    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.95083e-09
Minuit parameter uncertainties:
  1  7.65129e-07
  2  4.73305e-05
  3  0.29066
  4  20.1436
  5  3.00585e-06
  6  9.51493
  7  16.8304
  8  4.65863e-06
  9  7.92044
  10  2.7652e-06
  11  1.07147e-05
  12  6.71733e-06
  13  6.2566
  14  14.1829
  15  18.4359
  16  1.43814e-06
  17  1.8655e-05
  18  27.3339
  19  14.4509
  20  1.29652e-05
  21  0.22141
  22  0.138659
Done.

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

Extracting fit parameters...

4FGL J2327.5+0939
   Spectrum: LogParabola
409         norm:  1.000e-04  6.717e-06  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.050e+00  1.387e-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.317e-01  2.214e-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: 6.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.60e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/907822/likelihoodResults_421804801_422064001_4FGL_J2327.5+0939_daily_bin704.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) = 7714.83538788
delta logL = -0.00190727290374

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7714.83348058
delta logL = 2.08638084587e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6697       1.0000          .0000       5.0000    
     3 'Normalizat'    .73172       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0503       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=   7714.833     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      229 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    135.36        .13598E-01** at limit **
   2  alpha         2.0824        2.6142        .16509        .42283E-07
   3  Normalizat    .73172        .34921E-01    .36064E-03    .15819E-03
   4  Prefactor     1.0503        .22779E-01    .19797E-03    .31973E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.08237
  Normalizat = 0.731715
  Prefactor  = 1.05028
 **********
 **   18 **HESSE 
 **********

 FCN=   7714.833     FROM HESSE     STATUS=OK            23 CALLS      252 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.9292        .14639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0824        3.8860        .66035E-02   -.16784    
   3  Normalizat    .73172        .21074        .14426E-04   -1.0265    
   4  Prefactor     1.0503        .13758        .39594E-04   -.91072    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.27493e-11
Minuit parameter uncertainties:
  1  2.96397e-06
  2  242.665
  3  0.210978
  4  0.137625
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/907822': 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) = 7714.83347763
delta logL = 2.97194128507e-06

Extracting fit parameters...

4FGL J2327.5+0939
   Spectrum: LogParabola
409         norm:  1.000e-04  2.964e-06  1.000e-04  1.000e+04 ( 1.000e-12)
410        alpha:  2.082e+00  2.427e+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.050e+00  1.376e-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.317e-01  2.110e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/907822/cmap_HighResolution_421804801_422064001_4FGL_J2327.5+0939_daily_bin704.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.60e-05', job_status='DONE', photon_flux_upper_limit='6.44e-08', time_completed='2021-09-29 19:55:52.256270', job_id='907822', GAL2='1.05', fit_tolerance='1e-08', EG2='0.73', EG='0.73', time_epoch_completed='1632970552.26', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='2.97e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='704' AND source_name='4FGL J2327.5+0939' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:55:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 907822: <4FGL_J2327.5+0939_daily_bin704> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5+0939_daily_bin704 351.896 9.6543 421804801 422064001 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 :                                   699.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            918 sec.

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

