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


Performing analysis on: 4FGL_J1154.0+6018_daily_bin1525
RA = 178.519, Dec = 60.3107
tmin = 634608001, tmax = 634867201
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='175948', job_status='RUN', time_executed='2021-09-04 16:28:51.829442', time_epoch_executed='1630798131.83' WHERE source_name='4FGL J1154.0+6018' and cadence='daily' and bin_id='1525'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/175948

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/175948/ft1_4FGL_J1154.0+6018_daily_bin1525.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/175948/ft2_4FGL_J1154.0+6018_daily_bin1525.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/175948/ft1_4FGL_J1154.0+6018_daily_bin1525.fits outfile=/scratch/kocevski/175948/ft1_filteredMKT_4FGL_J1154.0+6018_daily_bin1525.fits ra=178.519 dec=60.3107 rad=12.0 tmin=634608001.0 tmax=634867201.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.06
user 2.86
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/175948/ft2_4FGL_J1154.0+6018_daily_bin1525.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/175948/ft2_4FGL_J1154.0+6018_daily_bin1525.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/175948/ft1_filteredMKT_4FGL_J1154.0+6018_daily_bin1525.fits evtable="EVENTS" outfile="/scratch/kocevski/175948/ft1_filtered_4FGL_J1154.0+6018_daily_bin1525.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.58
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/175948/ft1_filtered_4FGL_J1154.0+6018_daily_bin1525.fits" evtable="EVENTS" scfile=/scratch/kocevski/175948/ft2_4FGL_J1154.0+6018_daily_bin1525.fits sctable="SC_DATA" outfile=/scratch/kocevski/175948/ltcube_634608001_634867201_4FGL_J1154.0+6018_daily_bin1525.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/175948/ft2_4FGL_J1154.0+6018_daily_bin1525.fits
.....................!
real 13.00
user 12.64
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/175948/ft1_filtered_4FGL_J1154.0+6018_daily_bin1525.fits evtable="EVENTS" scfile=/scratch/kocevski/175948/ft2_4FGL_J1154.0+6018_daily_bin1525.fits sctable="SC_DATA" expcube=/scratch/kocevski/175948/ltcube_634608001_634867201_4FGL_J1154.0+6018_daily_bin1525.fits outfile=/scratch/kocevski/175948/expmap_634608001_634867201_4FGL_J1154.0+6018_daily_bin1525.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/175948/ltcube_634608001_634867201_4FGL_J1154.0+6018_daily_bin1525.fits
.....................!
real 192.70
user 186.99
sys 5.26

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

Setting source of interest to:
4FGL J1154.0+6018 @ 178.519 60.3107

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/175948/ft1_filtered_4FGL_J1154.0+6018_daily_bin1525.fits scfile=/scratch/kocevski/175948/ft2_4FGL_J1154.0+6018_daily_bin1525.fits outfile=/scratch/kocevski/175948/cmap_634608001_634867201_4FGL_J1154.0+6018_daily_bin1525.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=178.519 yref=60.3107 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.94
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/175948/ft1_filtered_4FGL_J1154.0+6018_daily_bin1525.fits scfile=/scratch/kocevski/175948/ft2_4FGL_J1154.0+6018_daily_bin1525.fits outfile=/scratch/kocevski/175948/cmap_HighResolution_634608001_634867201_4FGL_J1154.0+6018_daily_bin1525.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=178.519 yref=60.3107 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 1.46
user 0.37
sys 0.20

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/175948/ft1_filtered_4FGL_J1154.0+6018_daily_bin1525.fits evtable="EVENTS" scfile=/scratch/kocevski/175948/ft2_4FGL_J1154.0+6018_daily_bin1525.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/175948/Model_4FGL_J1154.0+6018_daily_bin1525.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/175948/ft1_filtered_4FGL_J1154.0+6018_daily_bin1525.fits.....................!
real 37.54
user 34.93
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/175948/ft1_filtered_4FGL_J1154.0+6018_daily_bin1525.fits', '/scratch/kocevski/175948/ft2_4FGL_J1154.0+6018_daily_bin1525.fits', expMap='/scratch/kocevski/175948/expmap_634608001_634867201_4FGL_J1154.0+6018_daily_bin1525.fits', expCube='/scratch/kocevski/175948/ltcube_634608001_634867201_4FGL_J1154.0+6018_daily_bin1525.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/175948/Model_4FGL_J1154.0+6018_daily_bin1525.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1154.0+6018'

4FGL J1154.0+6018
   Spectrum: LogParabola
408         norm:  1.841e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
409        alpha:  2.754e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
410         beta:  2.407e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
411           Eb:  6.636e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/175948/ft1_filtered_4FGL_J1154.0+6018_daily_bin1525.fits
Spacecraft file(s): /scratch/kocevski/175948/ft2_4FGL_J1154.0+6018_daily_bin1525.fits
Exposure map: /scratch/kocevski/175948/expmap_634608001_634867201_4FGL_J1154.0+6018_daily_bin1525.fits
Exposure cube: /scratch/kocevski/175948/ltcube_634608001_634867201_4FGL_J1154.0+6018_daily_bin1525.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/175948/Model_4FGL_J1154.0+6018_daily_bin1525.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) = 2584.51190241

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10134E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10962E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.9541       1.0000         .10000E-03   10000.    
     7 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     8 'norm      '    10000.       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    12 'norm      '    .43259E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    14 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.6550       1.0000         .10000E-03   10000.    
    17 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10325E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    2.8342       1.0000         .10000E-03   10000.    
    27 'norm      '    9.4419       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    11.620       1.0000         .10000E-03   10000.    
    30 'norm      '    5.8661       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    43.180       1.0000         .10000E-03   10000.    
    34 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    35 'Prefactor '    1.1158       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2583.389     FROM MIGRAD    STATUS=CONVERGED    296 CALLS     5165 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    30.399        .56146E-06** at limit **
   2  Prefactor     .10001E-03    16.234       -.19195E-06** at limit **
   3  norm          .10000E-03    6.9257        .19537E-07** at limit **
   4  norm          .10000E-03    16.209       -.50814E-06** at limit **
   5  Prefactor     .10024E-03    92.023        .26003E-05** at limit **
   6  norm          1.9539        1.8240        .11949E-08    .22602E-04
   7  Prefactor    10000.0        2.1542       -.78080E-06   -.28197E-03
   8  norm         10000.0        114.76        .41195E-05** at limit **
   9  Prefactor     .10000E-03    3.2416       -.60152E-08** at limit **
  10  Prefactor    10000.0        .90014       -.44424E-06** at limit **
  11  Prefactor    10000.0        322.07       -.98878E-05** at limit **
  12  norm          .12295E-02    659.89        .14856E-04** at limit **
  13  Prefactor    10000.0        104.49        .30797E-05** at limit **
  14  Prefactor    10000.0        12.142       -.14897E-05** at limit **
  15  Prefactor     .10000E-03    5.0288        .40146E-08** at limit **
  16  Prefactor     1.6550        1.7482        .17403E-08    .23432E-04
  17  norm          .10025E-03    68.923       -.31107E-06** at limit **
  18  Prefactor     .10000E-03    4.9926       -.96886E-08** at limit **
  19  norm          .10000E-03    5.8992        .13227E-07** at limit **
  20  Prefactor     .10003E-03    16.398       -.58525E-07** at limit **
  21  Prefactor     .10000E-03    6.1687       -.30809E-07** at limit **
  22  Prefactor     .10000E-03    15.569       -.24113E-06** at limit **
  23  norm          .10000E-03    1.5432       -.54485E-08** at limit **
  24  Prefactor     .10000E-03    16.549        .23737E-06** at limit **
  25  Prefactor     .10000E-03    25.570       -.29121E-06** at limit **
  26  norm          2.8346        4.1883       -.27004E-07   -.13449E-03
  27  norm          9.4418        1.0027       -.27635E-08    .80626E-05
  28  Prefactor     .10000E-03    2.3352       -.48837E-09** at limit **
  29  norm          11.621        4.2412        .22851E-07    .45032E-03
  30  norm          5.8665        3.1646       -.19188E-08   -.20524E-04
  31  Prefactor     .10000E-03    11.376        .59411E-07** at limit **
  32  Prefactor     .10000E-03    9.2969       -.34453E-07** at limit **
  33  Prefactor     43.189        1.6356       -.55192E-07    .20981E-03
  34  Normalizat    .10000E-01    .10920        .61093E-09** at limit **
  35  Prefactor     1.1159        .14480        .74682E-08    .71530E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100013
  Prefactor  = 0.000100012
  norm       = 0.0001
  norm       = 0.000100004
  Prefactor  = 0.000100238
  norm       = 1.95388
  Prefactor  = 9999.99
  norm       = 10000
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 0.00122953
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 1.65502
  norm       = 0.000100246
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100033
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  norm       = 2.83461
  norm       = 9.44179
  Prefactor  = 0.0001
  norm       = 11.621
  norm       = 5.86649
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.1888
  Normalizat = 0.01
  Prefactor  = 1.1159
 **********
 **   18 **HESSE 
 **********

 FCN=   2583.389     FROM HESSE     STATUS=OK           824 CALLS     5989 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    30.909        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    48.082        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    6.9222        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    48.286        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10024E-03    92.248        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.9539        1.8389        .74207E-02   -1.5428    
   7  Prefactor    10000.0        9837.8        .90939E-02    1.5686    
   8  norm         10000.0        213.09        .90712E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.2225        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor    10000.0        7424.0        .10659E-01    1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor    10000.0        622.44        .90712E-02    1.5712    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .12295E-02    1386.0        .92371E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor    10000.0        223.95        .90712E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor    10000.0        499.18        .10552E-01    1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.0277        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.6550        1.7375        .82020E-02   -1.5451    
  17  norm          .10025E-03    69.613        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.9932        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    5.8999        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10003E-03    48.000        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.1719        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    15.594        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.5428        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    16.520        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    26.088        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.8346        4.2086        .60388E-02   -1.5371    
  27  norm          9.4418        15.176        .32605E-02   -1.5093    
  28  Prefactor     .10000E-03    2.3336        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          11.621        4.2586        .29380E-02   -1.5026    
  30  norm          5.8665        3.1638        .41452E-02   -1.5224    
  31  Prefactor     .10000E-03    11.381        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    9.2052        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     43.189        60.376        .15252E-02   -1.4393    
  34  Normalizat    .10000E-01    .95819E-01    .16796       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Prefactor     1.1159        .16734        .37014E-01   -.88960    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22888e-06
Minuit parameter uncertainties:
  1  0.00126356
  2  0.00152256
  3  1.52964e-05
  4  0.000851608
  5  0.00939255
  6  1.83897
  7  30.1998
  8  0.0594631
  9  3.20807e-06
  10  1.60902
  11  1.09504
  12  2.56421
  13  0.0126784
  14  0.229841
  15  2.66737e-06
  16  1.73751
  17  0.00828352
  18  6.42594e-06
  19  9.56486e-06
  20  0.00251568
  21  2.2772e-05
  22  0.000297315
  23  2.01056e-06
  24  0.000307886
  25  0.000577279
  26  4.20905
  27  15.182
  28  2.21609e-07
  29  4.25873
  30  3.16384
  31  6.0049e-05
  32  3.1155e-05
  33  60.462
  34  1.77777e-09
  35  0.167415
Done.

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

Extracting fit parameters...

4FGL J1154.0+6018
   Spectrum: LogParabola
408         norm:  1.000e-04  9.565e-06  1.000e-04  1.000e+04 ( 1.000e-12)
409        alpha:  2.754e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
410         beta:  2.407e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
411           Eb:  6.636e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
746    Prefactor:  1.116e+00  1.674e-01  0.000e+00  1.000e+01 ( 1.000e+00)
747        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
748        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
745   Normalization:  1.000e-02  1.778e-09  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 178.519 60.311
Photon Flux Upper Limit: 2.31e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.96e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/175948/likelihoodResults_634608001_634867201_4FGL_J1154.0+6018_daily_bin1525.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) = 2583.38943042
delta logL = -0.000785905268003

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2583.38864457
delta logL = -5.75510057388e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10072E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7340       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1158       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7490E+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=   2583.389     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      249 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    524.72        .12264E-01** at limit **
   2  alpha         1.6072        4.0410        .16553        .48077E-09
   3  Normalizat    .10000E-01    .12901E-01    .84420E-02** at limit **
   4  Prefactor     1.1159        .47133E-01    .21649E-03    .85596E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.60719
  Normalizat = 0.01
  Prefactor  = 1.1159
 **********
 **   18 **HESSE 
 **********

 FCN=   2583.389     FROM HESSE     STATUS=OK            23 CALLS      272 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.133        .15790E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6072        4.0136        .66211E-02   -.36518    
   3  Normalizat    .10000E-01    .10926        .16884E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1159        .13726        .86598E-05   -.88960    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5096e-10
Minuit parameter uncertainties:
  1  8.48634e-05
  2  449.037
  3  3.34921e-06
  4  0.137301
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/175948': 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) = 2583.38864098
delta logL = 3.53114319296e-06

Extracting fit parameters...

4FGL J1154.0+6018
   Spectrum: LogParabola
408         norm:  1.000e-04  8.486e-05  1.000e-04  1.000e+04 ( 1.000e-12)
409        alpha:  1.607e+00  4.490e+02  0.000e+00  5.000e+00 ( 1.000e+00)
410         beta:  2.407e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
411           Eb:  6.636e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
746    Prefactor:  1.116e+00  1.373e-01  0.000e+00  1.000e+01 ( 1.000e+00)
747        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
748        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
745   Normalization:  1.000e-02  3.349e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 178.519 60.311

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/175948/cmap_HighResolution_634608001_634867201_4FGL_J1154.0+6018_daily_bin1525.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.96e-05', job_status='DONE', photon_flux_upper_limit='2.31e-07', time_completed='2021-09-04 16:41:06.488189', job_id='175948', GAL2='1.12', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630798866.49', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='3.53e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.75' WHERE bin_id='1525' AND source_name='4FGL J1154.0+6018' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 16:41:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 175948: <4FGL_J1154.0+6018_daily_bin1525> in cluster <slac> Done

Job <4FGL_J1154.0+6018_daily_bin1525> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 16:26:26 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 16:26:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 16:26:28 2021
Terminated at Sat Sep  4 16:41:07 2021
Results reported at Sat Sep  4 16:41:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1154.0+6018_daily_bin1525 178.519 60.3107 634608001 634867201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1154.0+6018 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   728.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             264.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   878 sec.
    Turnaround time :                            881 sec.

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

