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


Performing analysis on: 4FGL_J2151.8-3027_daily_bin194
RA = 327.966, Dec = -30.46
tmin = 289612801, tmax = 289872001
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='9076', job_status='RUN', time_executed='2021-09-27 19:43:21.072424', time_epoch_executed='1632797001.07' WHERE source_name='4FGL J2151.8-3027' and cadence='daily' and bin_id='194'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/9076

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/9076/ft1_4FGL_J2151.8-3027_daily_bin194.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/9076/ft2_4FGL_J2151.8-3027_daily_bin194.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/9076/ft1_4FGL_J2151.8-3027_daily_bin194.fits outfile=/scratch/kocevski/9076/ft1_filteredMKT_4FGL_J2151.8-3027_daily_bin194.fits ra=327.966 dec=-30.46 rad=12.0 tmin=289612801.0 tmax=289872001.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.52
user 3.28
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/9076/ft2_4FGL_J2151.8-3027_daily_bin194.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/9076/ft2_4FGL_J2151.8-3027_daily_bin194.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/9076/ft1_filteredMKT_4FGL_J2151.8-3027_daily_bin194.fits evtable="EVENTS" outfile="/scratch/kocevski/9076/ft1_filtered_4FGL_J2151.8-3027_daily_bin194.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.51
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/9076/ft1_filtered_4FGL_J2151.8-3027_daily_bin194.fits" evtable="EVENTS" scfile=/scratch/kocevski/9076/ft2_4FGL_J2151.8-3027_daily_bin194.fits sctable="SC_DATA" outfile=/scratch/kocevski/9076/ltcube_289612801_289872001_4FGL_J2151.8-3027_daily_bin194.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/9076/ft2_4FGL_J2151.8-3027_daily_bin194.fits
.....................!
real 15.59
user 15.20
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/9076/ft1_filtered_4FGL_J2151.8-3027_daily_bin194.fits evtable="EVENTS" scfile=/scratch/kocevski/9076/ft2_4FGL_J2151.8-3027_daily_bin194.fits sctable="SC_DATA" expcube=/scratch/kocevski/9076/ltcube_289612801_289872001_4FGL_J2151.8-3027_daily_bin194.fits outfile=/scratch/kocevski/9076/expmap_289612801_289872001_4FGL_J2151.8-3027_daily_bin194.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/9076/ltcube_289612801_289872001_4FGL_J2151.8-3027_daily_bin194.fits
.....................!
real 192.75
user 186.61
sys 5.40

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 163 point sources and 0 extended sources

Setting source of interest to:
4FGL J2151.8-3027 @ 327.966 -30.46

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/9076/ft1_filtered_4FGL_J2151.8-3027_daily_bin194.fits scfile=/scratch/kocevski/9076/ft2_4FGL_J2151.8-3027_daily_bin194.fits outfile=/scratch/kocevski/9076/cmap_289612801_289872001_4FGL_J2151.8-3027_daily_bin194.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=327.966 yref=-30.46 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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/9076/ft1_filtered_4FGL_J2151.8-3027_daily_bin194.fits scfile=/scratch/kocevski/9076/ft2_4FGL_J2151.8-3027_daily_bin194.fits outfile=/scratch/kocevski/9076/cmap_HighResolution_289612801_289872001_4FGL_J2151.8-3027_daily_bin194.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=327.966 yref=-30.46 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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/9076/ft1_filtered_4FGL_J2151.8-3027_daily_bin194.fits evtable="EVENTS" scfile=/scratch/kocevski/9076/ft2_4FGL_J2151.8-3027_daily_bin194.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/9076/Model_4FGL_J2151.8-3027_daily_bin194.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/9076/ft1_filtered_4FGL_J2151.8-3027_daily_bin194.fits.....................!
real 46.46
user 45.08
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/9076/ft1_filtered_4FGL_J2151.8-3027_daily_bin194.fits', '/scratch/kocevski/9076/ft2_4FGL_J2151.8-3027_daily_bin194.fits', expMap='/scratch/kocevski/9076/expmap_289612801_289872001_4FGL_J2151.8-3027_daily_bin194.fits', expCube='/scratch/kocevski/9076/ltcube_289612801_289872001_4FGL_J2151.8-3027_daily_bin194.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/9076/Model_4FGL_J2151.8-3027_daily_bin194.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2151.8-3027'

4FGL J2151.8-3027
   Spectrum: LogParabola
276         norm:  7.814e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
277        alpha:  2.749e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
278         beta:  1.851e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
279           Eb:  3.065e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/9076/ft1_filtered_4FGL_J2151.8-3027_daily_bin194.fits
Spacecraft file(s): /scratch/kocevski/9076/ft2_4FGL_J2151.8-3027_daily_bin194.fits
Exposure map: /scratch/kocevski/9076/expmap_289612801_289872001_4FGL_J2151.8-3027_daily_bin194.fits
Exposure cube: /scratch/kocevski/9076/ltcube_289612801_289872001_4FGL_J2151.8-3027_daily_bin194.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/9076/Model_4FGL_J2151.8-3027_daily_bin194.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) = 5037.5206617

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.8111       1.0000         .10000E-03   10000.    
     4 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.3683       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.3100       1.0000         .10000E-03   10000.    
     9 'norm      '    .10083E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.0168       1.0000         .10000E-03   10000.    
    13 'norm      '    1.4098       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10623E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.110       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.200       1.0000         .10000E-03   10000.    
    17 'norm      '    12.367       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.4248       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .75061       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5037.431     FROM MIGRAD    STATUS=CONVERGED    404 CALLS     1718 TOTAL
                     EDM=   .27E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    17.072         .0000    ** at limit **
   2  Prefactor     .10006E-03    54.649         .0000    ** at limit **
   3  Prefactor     1.8087        11.554         .0000        .38661E-03
   4  norm          .10000E-03    8.4943         .0000    ** at limit **
   5  Prefactor     3.3621        9.5716         .0000        .48202E-02
   6  Prefactor     .10000E-03    6.2804         .0000    ** at limit **
   7  Prefactor     .10001E-03    7.9986         .0000    ** at limit **
   8  Prefactor     9.3115        7.0833         .0000        .94722E-04
   9  norm          .10000E-03    7.0878         .0000    ** at limit **
  10  Prefactor     .10002E-03    11.981         .0000    ** at limit **
  11  Prefactor     .10007E-03    55.880         .0000    ** at limit **
  12  norm          1.0185        5.1999         .0000        .14793E-01
  13  norm          1.4099        .51123         .0000        .21579E-03
  14  Prefactor     .10005E-03    15.804         .0000    ** at limit **
  15  Prefactor     14.107        21.440         .0000        .71807E-03
  16  Prefactor     12.204        9.9961         .0000        .27525E-03
  17  norm          12.367        18.945         .0000        .28716E-04
  18  Prefactor     .10001E-03    12.634         .0000    ** at limit **
  19  Normalizat    1.4242        .23315         .0000        .92157E-04
  20  Prefactor     .75108        .14803         .0000        .13530E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100047
  Prefactor  = 0.000100061
  Prefactor  = 1.80871
  norm       = 0.000100004
  Prefactor  = 3.36206
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 9.31147
  norm       = 0.000100002
  Prefactor  = 0.000100016
  Prefactor  = 0.000100069
  norm       = 1.01847
  norm       = 1.40989
  Prefactor  = 0.000100047
  Prefactor  = 14.1068
  Prefactor  = 12.2042
  norm       = 12.3675
  Prefactor  = 0.000100011
  Normalizat = 1.42418
  Prefactor  = 0.751079
 **********
 **   18 **HESSE 
 **********

 FCN=   5037.431     FROM HESSE     STATUS=OK           293 CALLS     2011 TOTAL
                     EDM=   .49E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10005E-03    17.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10006E-03    55.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.8087        11.530        .31045E-03   -1.5439    
   4  norm          .10000E-03    8.5940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.3621        9.5630        .11024E-02   -1.5341    
   6  Prefactor     .10000E-03    6.3861        .17365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    8.0077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.3115        7.0843        .13135E-03   -1.5098    
   9  norm          .10000E-03    7.1718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10002E-03    11.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10007E-03    55.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.0185        5.3998        .49083E-01   -1.5506    
  13  norm          1.4099        .51485        .27486E-04   -1.5470    
  14  Prefactor     .10005E-03    15.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.107        21.515        .10663E-03   -1.4957    
  16  Prefactor     12.204        10.090        .11469E-03   -1.5009    
  17  norm          12.367        18.945        .11391E-03   -1.5004    
  18  Prefactor     .10001E-03    12.703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.4242        .27908        .25649E-03   -.79932    
  20  Prefactor     .75108        .17522        .22686E-03   -1.0156    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.8614e-07
Minuit parameter uncertainties:
  1  0.00180296
  2  0.00366904
  3  9.13555
  4  0.000367989
  5  9.56734
  6  4.50128e-05
  7  0.000617889
  8  7.08497
  9  0.00026273
  10  0.000878819
  11  0.003923
  12  4.69062
  13  0.514847
  14  0.00173085
  15  21.527
  16  10.0918
  17  18.954
  18  0.000763153
  19  0.279379
  20  0.175353
Done.

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

Extracting fit parameters...

4FGL J2151.8-3027
   Spectrum: LogParabola
276         norm:  1.018e+00  4.691e+00  1.000e-04  1.000e+04 ( 1.000e-11)
277        alpha:  2.749e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
278         beta:  1.851e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
279           Eb:  3.065e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  7.511e-01  1.754e-01  0.000e+00  1.000e+01 ( 1.000e+00)
520        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
521        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
518   Normalization:  1.424e+00  2.794e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.04
Ra Dec: 327.966 -30.460
Photon Flux Upper Limit: 1.56e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.36e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/9076/likelihoodResults_289612801_289872001_4FGL_J2151.8-3027_daily_bin194.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) = 5037.22200564
delta logL = 0.208650184953

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5037.2165498
delta logL = 0.214106027734

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3736       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.4760       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3816       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76839       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5220E+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=   5037.217     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      255 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3820        6.4329        .12299E-03   -.12812E-02
   2  alpha         4.4707        4.5407        .85844E-01   -.19629E-04
   3  Normalizat    1.3817        .26610        .25962E-03   -.82665E-04
   4  Prefactor     .76836        .17308        .22452E-03   -.16153E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.38204
  alpha      = 4.4707
  Normalizat = 1.38169
  Prefactor  = 0.768355
 **********
 **   18 **HESSE 
 **********

 FCN=   5037.217     FROM HESSE     STATUS=OK            25 CALLS      280 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3820        3.9473        .49198E-05   -1.5473    
   2  alpha         4.4707        4.5994        .34337E-02    .90801    
   3  Normalizat    1.3817        .26630        .51925E-04   -.81160    
   4  Prefactor     .76836        .17338        .89807E-05   -1.0091    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.27021e-10
Minuit parameter uncertainties:
  1  3.94803
  2  3.08905
  3  0.266567
  4  0.173506
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/9076': 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) = 5037.21654728
delta logL = 0.214108544612

Extracting fit parameters...

4FGL J2151.8-3027
   Spectrum: LogParabola
276         norm:  1.382e+00  3.948e+00  1.000e-04  1.000e+04 ( 1.000e-11)
277        alpha:  4.471e+00  3.089e+00  0.000e+00  5.000e+00 ( 1.000e+00)
278         beta:  1.851e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
279           Eb:  3.065e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  7.684e-01  1.735e-01  0.000e+00  1.000e+01 ( 1.000e+00)
520        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
521        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
518   Normalization:  1.382e+00  2.666e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
Ra Dec: 327.966 -30.460

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/9076/cmap_HighResolution_289612801_289872001_4FGL_J2151.8-3027_daily_bin194.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.36e-05', job_status='DONE', photon_flux_upper_limit='1.56e-07', time_completed='2021-09-27 19:51:55.697927', job_id='9076', GAL2='0.77', fit_tolerance='1e-08', EG2='1.38', EG='1.42', time_epoch_completed='1632797515.7', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='2.14e-01', ts2='0.52', photon_index_error='0.00', photon_index='2.75' WHERE bin_id='194' AND source_name='4FGL J2151.8-3027' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 19:51:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0181>
Subject: Job 9076: <4FGL_J2151.8-3027_daily_bin194> in cluster <slac> Done

Job <4FGL_J2151.8-3027_daily_bin194> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep 27 19:35:24 2021
Job was executed on host(s) <bullet0181>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 19:41:01 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 27 19:41:01 2021
Terminated at Mon Sep 27 19:51:56 2021
Results reported at Mon Sep 27 19:51:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2151.8-3027_daily_bin194 327.966 -30.46 289612801 289872001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2151.8-3027 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   512.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             284.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   655 sec.
    Turnaround time :                            992 sec.

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

