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


Performing analysis on: 4FGL_J2327.5+0939_daily_bin463
RA = 351.896, Dec = 9.6543
tmin = 359337601, tmax = 359596801
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='906392', job_status='RUN', time_executed='2021-09-29 19:35:55.526120', time_epoch_executed='1632969355.53' WHERE source_name='4FGL J2327.5+0939' and cadence='daily' and bin_id='463'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/906392

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/906392/ft1_4FGL_J2327.5+0939_daily_bin463.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/906392/ft2_4FGL_J2327.5+0939_daily_bin463.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/906392/ft1_4FGL_J2327.5+0939_daily_bin463.fits outfile=/scratch/kocevski/906392/ft1_filteredMKT_4FGL_J2327.5+0939_daily_bin463.fits ra=351.896 dec=9.6543 rad=12.0 tmin=359337601.0 tmax=359596801.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.34
user 3.13
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/906392/ft1_filtered_4FGL_J2327.5+0939_daily_bin463.fits evtable="EVENTS" scfile=/scratch/kocevski/906392/ft2_4FGL_J2327.5+0939_daily_bin463.fits sctable="SC_DATA" expcube=/scratch/kocevski/906392/ltcube_359337601_359596801_4FGL_J2327.5+0939_daily_bin463.fits outfile=/scratch/kocevski/906392/expmap_359337601_359596801_4FGL_J2327.5+0939_daily_bin463.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/906392/ltcube_359337601_359596801_4FGL_J2327.5+0939_daily_bin463.fits
.....................!
real 191.15
user 185.44
sys 5.00

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/906392/ft1_filtered_4FGL_J2327.5+0939_daily_bin463.fits scfile=/scratch/kocevski/906392/ft2_4FGL_J2327.5+0939_daily_bin463.fits outfile=/scratch/kocevski/906392/cmap_359337601_359596801_4FGL_J2327.5+0939_daily_bin463.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/906392/ft1_filtered_4FGL_J2327.5+0939_daily_bin463.fits scfile=/scratch/kocevski/906392/ft2_4FGL_J2327.5+0939_daily_bin463.fits outfile=/scratch/kocevski/906392/cmap_HighResolution_359337601_359596801_4FGL_J2327.5+0939_daily_bin463.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.798       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.5061       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.6397       1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.239       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.6414       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.5562       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.0793       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.944       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.6441       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.217       1.0000         .10000E-03   10000.    
    16 'norm      '    16.169       1.0000         .10000E-03   10000.    
    17 'norm      '    18.570       1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.925       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.7787       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .85991       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .90536       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=   7655.449     FROM MIGRAD    STATUS=CONVERGED    460 CALLS     2376 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.762        36.956       -.66461E-05   -.31993E-03
   2  Prefactor     .10000E-03    12.686       -.45941E-06** at limit **
   3  Prefactor     .10000E-03    .64209E-01    .40652E-09** at limit **
   4  Prefactor     .10000E-03    23.870        .30338E-06** at limit **
   5  Prefactor     .10000E-03    2.9991       -.53407E-07** at limit **
   6  Prefactor     6.5050        10.552        .29330E-05   -.22635E-03
   7  Prefactor     2.6391        13.926        .16498E-06   -.20507E-04
   8  Prefactor     14.239        9.4690        .12878E-05   -.21215E-03
   9  Prefactor     4.6415        7.5889        .38709E-05   -.38253E-03
  10  Prefactor     5.5557        35.357       -.31179E-05   -.21955E-04
  11  Prefactor     3.0812        62.507        .18000E-05    .37529E-05
  12  norm          .10000E-03    3.9796       -.24972E-06** at limit **
  13  Prefactor     13.945        7.1579       -.25216E-06   -.24322E-04
  14  Prefactor     2.6405        10.153       -.58575E-06   -.56639E-04
  15  Prefactor     12.219        17.826       -.47499E-06    .27371E-05
  16  norm          16.169        13.493       -.44037E-07   -.34090E-05
  17  norm          18.576        18.510        .11392E-05    .83704E-04
  18  Prefactor     14.930        26.080        .15710E-05    .42665E-04
  19  Prefactor     2.7772        35.800       -.11154E-05   -.20181E-04
  20  Prefactor     .10000E-03    7.1908        .17867E-06** at limit **
  21  Normalizat    .85983        .18375       -.16807E-06   -.31359E-04
  22  Prefactor     .90541        .10780        .23879E-06   -.78270E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.7617
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.50497
  Prefactor  = 2.63908
  Prefactor  = 14.2391
  Prefactor  = 4.6415
  Prefactor  = 5.55574
  Prefactor  = 3.08123
  norm       = 0.0001
  Prefactor  = 13.9449
  Prefactor  = 2.64054
  Prefactor  = 12.2187
  norm       = 16.169
  norm       = 18.5759
  Prefactor  = 14.9299
  Prefactor  = 2.77723
  Prefactor  = 0.0001
  Normalizat = 0.859828
  Prefactor  = 0.905414
 **********
 **   18 **HESSE 
 **********

 FCN=   7655.449     FROM HESSE     STATUS=OK           350 CALLS     2726 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.762        39.523        .69968E-04   -1.4563    
   2  Prefactor     .10000E-03    12.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    .42229        .41452E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    23.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.0181        .14793E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.5050        10.651        .78670E-03   -1.5198    
   7  Prefactor     2.6391        13.906        .25095E-03   -1.5383    
   8  Prefactor     14.239        9.3737        .53072E-03   -1.4953    
   9  Prefactor     4.6415        7.8011        .93407E-03   -1.5277    
  10  Prefactor     5.5557        34.253        .17044E-03   -1.5237    
  11  Prefactor     3.0812        62.449        .23114E-03   -1.5357    
  12  norm          .10000E-03    4.0297        .17035E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.945        7.1689        .10726E-03   -1.4961    
  14  Prefactor     2.6405        10.063        .25073E-03   -1.5383    
  15  Prefactor     12.219        17.807        .11461E-03   -1.5009    
  16  norm          16.169        13.496        .99605E-04   -1.4904    
  17  norm          18.576        18.343        .92943E-04   -1.4846    
  18  Prefactor     14.930        26.091        .10367E-03   -1.4935    
  19  Prefactor     2.7772        35.769        .24412E-03   -1.5375    
  20  Prefactor     .10000E-03    7.4027        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .85983        .21388        .30475E-03   -.97886    
  22  Prefactor     .90541        .12624        .18640E-03   -.95952    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.44266e-09
Minuit parameter uncertainties:
  1  39.5543
  2  4.96589e-05
  3  7.3493e-05
  4  2.89246e-05
  5  7.75728e-06
  6  10.6541
  7  12.12
  8  9.37469
  9  7.80284
  10  27.6131
  11  27.7758
  12  2.93645e-05
  13  7.16934
  14  10.0695
  15  17.8143
  16  13.499
  17  18.3488
  18  26.1109
  19  19.9481
  20  7.43037e-06
  21  0.214092
  22  0.126285
Done.

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

Extracting fit parameters...

4FGL J2327.5+0939
   Spectrum: LogParabola
409         norm:  1.000e-04  2.936e-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:  9.054e-01  1.263e-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:  8.598e-01  2.141e-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: 7.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.76e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/906392/likelihoodResults_359337601_359596801_4FGL_J2327.5+0939_daily_bin463.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) = 7655.44987355
delta logL = -0.0011828264569

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7655.44869169
delta logL = -9.68346284935e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10077E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6767       1.0000          .0000       5.0000    
     3 'Normalizat'    .85970       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90541       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=   7655.449     FROM MIGRAD    STATUS=FAILED        89 CALLS      234 TOTAL
                     EDM=   .54E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    791.53        .17056E-02** at limit **
   2  alpha         2.5212        3.7447        .16513       -.43925E-07
   3  Normalizat    .85983        .97579E-01    .30475E-03    .49846E-03
   4  Prefactor     .90541        .61530E-01    .18640E-03    .80481E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7655.449     FROM SIMPLEX   STATUS=UNCHANGED    198 CALLS      432 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    791.53        .39296E-03** at limit **
   2  alpha         2.5212        3.7447        .44156E-06   -.43925E-07
   3  Normalizat    .85983        .97579E-01    .22003E-07    .49846E-03
   4  Prefactor     .90541        .61530E-01    .12370E-07    .80481E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7655.449     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      460 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.1013        .34112E-03** at limit **
   2  alpha         2.5233        3.0659        .66052E-02    .37866E-07
   3  Normalizat    .85983        .19779        .60951E-04    .49731E-03
   4  Prefactor     .90541        .12479        .37280E-04    .80417E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.52331
  Normalizat = 0.859829
  Prefactor  = 0.905414
 **********
 **   18 **HESSE 
 **********

 FCN=   7655.449     FROM HESSE     STATUS=OK            23 CALLS      483 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.1007        .68223E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5233        3.1649        .13210E-02    .93251E-02
   3  Normalizat    .85983        .19782        .12190E-04   -.97886    
   4  Prefactor     .90541        .12481        .74559E-05   -.95952    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.6119e-10
Minuit parameter uncertainties:
  1  3.08098e-05
  2  249.91
  3  0.197985
  4  0.124845
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/906392': 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) = 7655.44869051
delta logL = 2.09540303331e-07

Extracting fit parameters...

4FGL J2327.5+0939
   Spectrum: LogParabola
409         norm:  1.000e-04  3.081e-05  1.000e-04  1.000e+04 ( 1.000e-12)
410        alpha:  2.523e+00  2.499e+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:  9.054e-01  1.248e-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:  8.598e-01  1.980e-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/906392/cmap_HighResolution_359337601_359596801_4FGL_J2327.5+0939_daily_bin463.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.76e-05', job_status='DONE', photon_flux_upper_limit='7.09e-08', time_completed='2021-09-29 19:47:37.757645', job_id='906392', GAL2='0.91', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1632970057.76', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='2.10e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='463' AND source_name='4FGL J2327.5+0939' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:47:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 906392: <4FGL_J2327.5+0939_daily_bin463> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5+0939_daily_bin463 351.896 9.6543 359337601 359596801 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 :                                   695.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   718 sec.
    Turnaround time :                            720 sec.

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

