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


Performing analysis on: 4FGL_J2327.5+0939_daily_bin349
RA = 351.896, Dec = 9.6543
tmin = 329788801, tmax = 330048001
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='906201', job_status='RUN', time_executed='2021-09-29 19:35:36.715181', time_epoch_executed='1632969336.72' WHERE source_name='4FGL J2327.5+0939' and cadence='daily' and bin_id='349'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/906201

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/906201/ft1_4FGL_J2327.5+0939_daily_bin349.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/906201/ft2_4FGL_J2327.5+0939_daily_bin349.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/906201/ft1_4FGL_J2327.5+0939_daily_bin349.fits outfile=/scratch/kocevski/906201/ft1_filteredMKT_4FGL_J2327.5+0939_daily_bin349.fits ra=351.896 dec=9.6543 rad=12.0 tmin=329788801.0 tmax=330048001.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.53
user 3.26
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/906201/ft1_filtered_4FGL_J2327.5+0939_daily_bin349.fits evtable="EVENTS" scfile=/scratch/kocevski/906201/ft2_4FGL_J2327.5+0939_daily_bin349.fits sctable="SC_DATA" expcube=/scratch/kocevski/906201/ltcube_329788801_330048001_4FGL_J2327.5+0939_daily_bin349.fits outfile=/scratch/kocevski/906201/expmap_329788801_330048001_4FGL_J2327.5+0939_daily_bin349.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/906201/ltcube_329788801_330048001_4FGL_J2327.5+0939_daily_bin349.fits
.....................!
real 190.22
user 185.46
sys 4.39

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/906201/ft1_filtered_4FGL_J2327.5+0939_daily_bin349.fits scfile=/scratch/kocevski/906201/ft2_4FGL_J2327.5+0939_daily_bin349.fits outfile=/scratch/kocevski/906201/cmap_329788801_330048001_4FGL_J2327.5+0939_daily_bin349.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.52
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/906201/ft1_filtered_4FGL_J2327.5+0939_daily_bin349.fits scfile=/scratch/kocevski/906201/ft2_4FGL_J2327.5+0939_daily_bin349.fits outfile=/scratch/kocevski/906201/cmap_HighResolution_329788801_330048001_4FGL_J2327.5+0939_daily_bin349.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .66572       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.802       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.8068       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.0428       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.561       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.4220       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.2485       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.5626       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    8.0150       1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    37.458       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.3648       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1766       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .80480       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=   6661.146     FROM MIGRAD    STATUS=CONVERGED    441 CALLS     2304 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.119       -.35017E-07** at limit **
   2  Prefactor     .10000E-03    6.1603       -.95932E-07** at limit **
   3  Prefactor     .66573        .17169        .10160E-07   -.21138E-03
   4  Prefactor     10.841        38.754        .19975E-05    .70988E-04
   5  Prefactor     6.8057        5.6315        .26174E-07   -.94029E-05
   6  Prefactor     7.0427        6.8066        .11245E-07   -.29355E-04
   7  Prefactor     .10000E-03    12.034        .23854E-06** at limit **
   8  Prefactor     12.561        7.2207        .21717E-06   -.38104E-04
   9  Prefactor     .10000E-03    6.1469       -.24190E-06** at limit **
  10  Prefactor     .10000E-03    17.542       -.12587E-06** at limit **
  11  Prefactor     .10000E-03    19.959       -.14698E-06** at limit **
  12  norm          1.4196        14.170        .66068E-05   -.63284E-05
  13  Prefactor     8.2554        9.5363       -.17642E-05   -.40076E-03
  14  Prefactor     3.5640        11.455        .80462E-06   -.16151E-04
  15  Prefactor     .10000E-03    16.908       -.12220E-06** at limit **
  16  norm          8.0146        9.0890        .86055E-07   -.99251E-05
  17  norm          .10000E-03    10.382       -.16033E-08** at limit **
  18  Prefactor     37.460        43.459        .69590E-06   -.28899E-04
  19  Prefactor     4.3664        25.316        .91167E-06   -.14470E-04
  20  Prefactor     .10000E-03    3.3745       -.15601E-06** at limit **
  21  Normalizat    1.1763        .22681       -.31988E-05    .47462E-04
  22  Prefactor     .80503        .12806        .18052E-05   -.33282E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.665728
  Prefactor  = 10.8412
  Prefactor  = 6.80571
  Prefactor  = 7.04273
  Prefactor  = 0.0001
  Prefactor  = 12.5609
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.41956
  Prefactor  = 8.25537
  Prefactor  = 3.56401
  Prefactor  = 0.0001
  norm       = 8.01461
  norm       = 0.0001
  Prefactor  = 37.4603
  Prefactor  = 4.36645
  Prefactor  = 0.0001
  Normalizat = 1.17626
  Prefactor  = 0.805025
 **********
 **   18 **HESSE 
 **********

 FCN=   6661.146     FROM HESSE     STATUS=OK           344 CALLS     2648 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.1669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .66573        .17139        .16414E-04   -1.5545    
   4  Prefactor     10.841        38.877        .12190E-03   -1.5049    
   5  Prefactor     6.8057        5.6303        .15379E-03   -1.5186    
   6  Prefactor     7.0427        6.8065        .15116E-03   -1.5177    
   7  Prefactor     .10000E-03    12.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.561        7.2180        .11302E-03   -1.4999    
   9  Prefactor     .10000E-03    6.2237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    17.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    19.970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.4196        14.870        .36270E-03   -1.5470    
  13  Prefactor     8.2554        9.7712        .13959E-03   -1.5133    
  14  Prefactor     3.5640        11.423        .21413E-03   -1.5330    
  15  Prefactor     .10000E-03    17.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.0146        9.0886        .14162E-03   -1.5142    
  17  norm          .10000E-03    10.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     37.460        43.619        .65485E-04   -1.4483    
  19  Prefactor     4.3664        25.206        .19279E-03   -1.5290    
  20  Prefactor     .10000E-03    3.4256        .14635E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1763        .25275        .28223E-03   -.87340    
  22  Prefactor     .80503        .14348        .20807E-03   -.99543    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.20749e-10
Minuit parameter uncertainties:
  1  1.57594e-06
  2  1.50624e-05
  3  0.171389
  4  38.9677
  5  5.63072
  6  6.80729
  7  2.33858e-05
  8  7.21854
  9  2.60948e-05
  10  4.75815e-05
  11  5.34315e-05
  12  9.19161
  13  9.77312
  14  11.43
  15  4.79621e-06
  16  9.09018
  17  1.51432e-06
  18  43.6557
  19  20.9952
  20  6.2265e-06
  21  0.253012
  22  0.143551
Done.

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

Extracting fit parameters...

4FGL J2327.5+0939
   Spectrum: LogParabola
409         norm:  1.420e+00  9.192e+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:  8.050e-01  1.436e-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:  1.176e+00  2.530e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/906201/likelihoodResults_329788801_330048001_4FGL_J2327.5+0939_daily_bin349.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) = 6660.6560124
delta logL = 0.489820727861

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6660.63427246
delta logL = 0.51156066464

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .82674       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.6430       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1130       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82832       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=   6660.634     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      264 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .82387        2.6480        .74581E-04   -.72055E-03
   2  alpha         4.6452        4.3512        .21880E-02   -.12377E-04
   3  Normalizat    1.1130        .23525        .28883E-03   -.58452E-04
   4  Prefactor     .82835        .14326        .20532E-03   -.43742E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.823874
  alpha      = 4.64517
  Normalizat = 1.11298
  Prefactor  = 0.82835
 **********
 **   18 **HESSE 
 **********

 FCN=   6660.634     FROM HESSE     STATUS=OK            23 CALLS      287 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .82387        2.4171        .29832E-05   -1.5526    
   2  alpha         4.6452        4.1981        .87519E-04    1.0315    
   3  Normalizat    1.1130        .23554        .11553E-04   -.89336    
   4  Prefactor     .82835        .14339        .82129E-05   -.98692    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.55948e-11
Minuit parameter uncertainties:
  1  2.41741
  2  1.99713
  3  0.235763
  4  0.143459
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/906201': 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) = 6660.6342717
delta logL = 0.511561421669

Extracting fit parameters...

4FGL J2327.5+0939
   Spectrum: LogParabola
409         norm:  8.239e-01  2.417e+00  1.000e-04  1.000e+04 ( 1.000e-12)
410        alpha:  4.645e+00  1.997e+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:  8.283e-01  1.435e-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:  1.113e+00  2.358e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.14
Ra Dec: 351.896 9.654
Photon Index (Free Index): 4.65 +/- 2.00
Photon Flux (Free Index): 6.08e-08 +/- 6.58e-08
Energy Flux (Free Index): 8.62e-06 +/- 9.22e-06

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.63e-05', comment='SUCCESS', energy_flux2='8.62e-06', dlogl='5.12e-01', photon_flux2='6.08e-08', job_status='DONE', time_completed='2021-09-29 19:46:10.280456', photon_index_error2='2.00', photon_index2='4.65', ts='0.04', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='1.06e-07', energy_flux_error2='9.22e-06', EG='1.18', time_epoch_completed='1632969970.28', return_code='0', job_id='906201', GAL2='0.83', EG2='1.11', return_code2='0', photon_flux_error2='6.58e-08', ts2='1.14', photon_index='2.68' WHERE bin_id='349' AND source_name='4FGL J2327.5+0939' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:46:10 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5+0939_daily_bin349 351.896 9.6543 329788801 330048001 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 :                                   630.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             348.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   648 sec.
    Turnaround time :                            651 sec.

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

