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


Performing analysis on: 4FGL_J1154.0+6018_daily_bin1157
RA = 178.519, Dec = 60.3107
tmin = 539222401, tmax = 539481601
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='174465', job_status='RUN', time_executed='2021-09-04 16:21:34.431578', time_epoch_executed='1630797694.43' WHERE source_name='4FGL J1154.0+6018' and cadence='daily' and bin_id='1157'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/174465

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/174465/ft1_4FGL_J1154.0+6018_daily_bin1157.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/174465/ft2_4FGL_J1154.0+6018_daily_bin1157.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/174465/ft1_4FGL_J1154.0+6018_daily_bin1157.fits outfile=/scratch/kocevski/174465/ft1_filteredMKT_4FGL_J1154.0+6018_daily_bin1157.fits ra=178.519 dec=60.3107 rad=12.0 tmin=539222401.0 tmax=539481601.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 5.58
user 5.33
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/174465/ft2_4FGL_J1154.0+6018_daily_bin1157.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/174465/ft1_filteredMKT_4FGL_J1154.0+6018_daily_bin1157.fits evtable="EVENTS" outfile="/scratch/kocevski/174465/ft1_filtered_4FGL_J1154.0+6018_daily_bin1157.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/174465/ft1_filtered_4FGL_J1154.0+6018_daily_bin1157.fits" evtable="EVENTS" scfile=/scratch/kocevski/174465/ft2_4FGL_J1154.0+6018_daily_bin1157.fits sctable="SC_DATA" outfile=/scratch/kocevski/174465/ltcube_539222401_539481601_4FGL_J1154.0+6018_daily_bin1157.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/174465/ft2_4FGL_J1154.0+6018_daily_bin1157.fits
.....................!
real 11.84
user 11.44
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/174465/ft1_filtered_4FGL_J1154.0+6018_daily_bin1157.fits evtable="EVENTS" scfile=/scratch/kocevski/174465/ft2_4FGL_J1154.0+6018_daily_bin1157.fits sctable="SC_DATA" expcube=/scratch/kocevski/174465/ltcube_539222401_539481601_4FGL_J1154.0+6018_daily_bin1157.fits outfile=/scratch/kocevski/174465/expmap_539222401_539481601_4FGL_J1154.0+6018_daily_bin1157.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/174465/ltcube_539222401_539481601_4FGL_J1154.0+6018_daily_bin1157.fits
.....................!
real 190.40
user 185.91
sys 4.13

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/174465/ft1_filtered_4FGL_J1154.0+6018_daily_bin1157.fits scfile=/scratch/kocevski/174465/ft2_4FGL_J1154.0+6018_daily_bin1157.fits outfile=/scratch/kocevski/174465/cmap_539222401_539481601_4FGL_J1154.0+6018_daily_bin1157.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/174465/ft1_filtered_4FGL_J1154.0+6018_daily_bin1157.fits scfile=/scratch/kocevski/174465/ft2_4FGL_J1154.0+6018_daily_bin1157.fits outfile=/scratch/kocevski/174465/cmap_HighResolution_539222401_539481601_4FGL_J1154.0+6018_daily_bin1157.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 0.53
user 0.38
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/174465/ft1_filtered_4FGL_J1154.0+6018_daily_bin1157.fits', '/scratch/kocevski/174465/ft2_4FGL_J1154.0+6018_daily_bin1157.fits', expMap='/scratch/kocevski/174465/expmap_539222401_539481601_4FGL_J1154.0+6018_daily_bin1157.fits', expCube='/scratch/kocevski/174465/ltcube_539222401_539481601_4FGL_J1154.0+6018_daily_bin1157.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/174465/Model_4FGL_J1154.0+6018_daily_bin1157.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/174465/ft1_filtered_4FGL_J1154.0+6018_daily_bin1157.fits
Spacecraft file(s): /scratch/kocevski/174465/ft2_4FGL_J1154.0+6018_daily_bin1157.fits
Exposure map: /scratch/kocevski/174465/expmap_539222401_539481601_4FGL_J1154.0+6018_daily_bin1157.fits
Exposure cube: /scratch/kocevski/174465/ltcube_539222401_539481601_4FGL_J1154.0+6018_daily_bin1157.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/174465/Model_4FGL_J1154.0+6018_daily_bin1157.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) = 1819.85206189

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    51.347       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .64810       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .20568E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10566E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10333E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    144.00       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    21.919       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10465E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.9323       1.0000         .10000E-03   10000.    
    17 'norm      '    .95277       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.2732       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    167.28       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10542E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    244.74       1.0000         .10000E-03   10000.    
    26 'norm      '    11.571       1.0000         .10000E-03   10000.    
    27 'norm      '    5.7463       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    9.7860       1.0000         .10000E-03   10000.    
    31 'Prefactor '    37.068       1.0000         .10000E-03   10000.    
    32 'Prefactor '    14.868       1.0000         .10000E-03   10000.    
    33 'Prefactor '    104.28       1.0000         .10000E-03   10000.    
    34 'Normalizat'    .87165       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .83307       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.

 FCN=   1819.849     FROM MIGRAD    STATUS=CONVERGED    958 CALLS     6199 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    99.410        .56192E-05** at limit **
   2  Prefactor     51.326        73.193       -.40961E-05    .68383E-05
   3  norm          .10000E-03    8.4548       -.11183E-05** at limit **
   4  norm          .67490        23.438        .32009E-04   -.20120E-04
   5  Prefactor     .10000E-03    92.977        .71271E-05** at limit **
   6  norm          .10000E-03    .77620       -.19449E-08** at limit **
   7  Prefactor     .10000E-03    730.33        .91964E-04** at limit **
   8  norm          .10000E-03    8.5063       -.18672E-05** at limit **
   9  Prefactor     .10000E-03    2.1038       -.65080E-08** at limit **
  10  Prefactor     .10000E-03    254.20       -.19705E-04** at limit **
  11  Prefactor     143.92        122.58        .52079E-05    .23214E-04
  12  norm          .10000E-03    137.44       -.10925E-04** at limit **
  13  Prefactor     21.921        26.479       -.10575E-05    .39001E-04
  14  Prefactor     .10000E-03    62.923       -.75948E-05** at limit **
  15  Prefactor     .10000E-03    14.229        .76181E-08** at limit **
  16  Prefactor     2.9321        3.4439        .42947E-07   -.60203E-05
  17  norm          .93373        35.037        .12183E-05   -.35932E-04
  18  Prefactor     3.2725        37.078        .59640E-06    .16257E-04
  19  norm          .10000E-03    5.8803       -.28973E-07** at limit **
  20  Prefactor     167.30        255.90       -.22976E-05    .13188E-05
  21  Prefactor     .10000E-03    8.3632       -.34738E-06** at limit **
  22  Prefactor     .10000E-03    73.529        .11605E-05** at limit **
  23  norm          .10000E-03    2.6091        .62158E-07** at limit **
  24  Prefactor     .10000E-03    50.299        .17948E-05** at limit **
  25  Prefactor     244.72        149.66        .10172E-05   -.19716E-04
  26  norm          11.571        6.8148        .15411E-06   -.12436E-04
  27  norm          5.7479        20.887        .59236E-06    .19216E-05
  28  Prefactor     .10000E-03    8.4148        .38536E-06** at limit **
  29  norm          .10000E-03    2.8579        .15392E-07** at limit **
  30  norm          9.7868        6.8550        .19503E-06   -.16646E-04
  31  Prefactor     37.090        90.826       -.27251E-05   -.81407E-05
  32  Prefactor     14.872        17.798        .34699E-06   -.14579E-04
  33  Prefactor     104.25        180.32        .49202E-05   -.33452E-05
  34  Normalizat    .87134        .32377       -.33024E-06    .18206E-04
  35  Prefactor     .83331        .35190       -.24899E-05   -.58004E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 51.326
  norm       = 0.000100001
  norm       = 0.674895
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 143.92
  norm       = 0.0001
  Prefactor  = 21.9211
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.93211
  norm       = 0.93373
  Prefactor  = 3.27246
  norm       = 0.0001
  Prefactor  = 167.297
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 244.72
  norm       = 11.5714
  norm       = 5.74794
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.78683
  Prefactor  = 37.0898
  Prefactor  = 14.8719
  Prefactor  = 104.248
  Normalizat = 0.871338
  Prefactor  = 0.833306
 **********
 **   18 **HESSE 
 **********

 FCN=   1819.849     FROM HESSE     STATUS=OK           768 CALLS     6967 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    99.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     51.326        73.011        .55968E-04   -1.4274    
   3  norm          .10000E-03    8.4726        .12066E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .67490        23.519        .19107E-02   -1.5544    
   5  Prefactor     .10000E-03    92.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .77784        .36704E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    727.15        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    8.5560        .12157E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.1098        .60429E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    254.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     143.92        123.26        .16788E-03   -1.3303    
  12  norm          .10000E-03    137.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     21.921        26.513        .85555E-04   -1.4771    
  14  Prefactor     .10000E-03    63.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.238        .15720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.9321        3.4426        .83509E-04   -1.5365    
  17  norm          .93373        141.26        .48556E-02   -1.5515    
  18  Prefactor     3.2725        33.560        .22382E-03   -1.5346    
  19  norm          .10000E-03    5.9168        .10099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     167.30        243.82        .15594E-03   -1.3114    
  21  Prefactor     .10000E-03    8.3785        .12048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    74.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.6232        .67276E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    50.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     244.72        149.83        .12944E-03   -1.2566    
  26  norm          11.571        6.8195        .82855E-04   -1.5028    
  27  norm          5.7479        20.877        .16755E-03   -1.5228    
  28  Prefactor     .10000E-03    8.4595        .12082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    2.9119        .70379E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          9.7868        6.8630        .89510E-04   -1.5082    
  31  Prefactor     37.090        91.716        .65827E-04   -1.4489    
  32  Prefactor     14.872        17.845        .10387E-03   -1.4936    
  33  Prefactor     104.25        181.57        .39376E-04   -1.3662    
  34  Normalizat    .87134        .38996        .23959E-03   -.97475    
  35  Prefactor     .83331        .42053        .29113E-03   -.98512    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10854e-09
Minuit parameter uncertainties:
  1  8.94735e-05
  2  73.1389
  3  0.000198729
  4  7.97096
  5  2.89533e-05
  6  1.19563e-07
  7  0.000998498
  8  0.000222338
  9  5.41553e-07
  10  0.000699181
  11  123.48
  12  5.66771e-05
  13  26.5273
  14  0.000275069
  15  3.16131e-06
  16  3.44286
  17  23.024
  18  20.9744
  19  6.41785e-06
  20  245.309
  21  4.98802e-06
  22  0.000217621
  23  4.8738e-06
  24  1.54438e-05
  25  150.069
  26  6.81997
  27  20.9033
  28  4.43696e-06
  29  2.50245e-06
  30  6.86359
  31  92.0675
  32  17.8518
  33  182.551
  34  0.391228
  35  0.422167
Done.

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

Extracting fit parameters...

4FGL J1154.0+6018
   Spectrum: LogParabola
408         norm:  1.000e-04  6.418e-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:  8.333e-01  4.222e-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:  8.713e-01  3.912e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/174465/likelihoodResults_539222401_539481601_4FGL_J1154.0+6018_daily_bin1157.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) = 1819.85001999
delta logL = -0.000800852471002

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1819.84921931
delta logL = -1.69131453731e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7560       1.0000          .0000       5.0000    
     3 'Normalizat'    .87117       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83355       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.

 FCN=   1819.849     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      193 TOTAL
                     EDM=   .61E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.8758        .90712E-02** at limit **
   2  alpha         2.7579        3.6063        .41428       -.16609E-05
   3  Normalizat    .87134        .28722        .44532E-01    .13157E-04
   4  Prefactor     .83331        .34340        .65816E-01   -.31559E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.75794
  Normalizat = 0.871336
  Prefactor  = 0.83331
 **********
 **   18 **HESSE 
 **********

 FCN=   1819.849     FROM HESSE     STATUS=OK            33 CALLS      226 TOTAL
                     EDM=   .78E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.9052        .10100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.7579        3.6056        .50000        .10336    
   3  Normalizat    .87134        .33478        .23959E-03   -.97475    
   4  Prefactor     .83331        .39987        .29114E-03   -.98512    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.80581e-12
Minuit parameter uncertainties:
  1  7.36866e-06
  2  2.48678
  3  0.335581
  4  0.401274
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/174465': 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) = 1819.84921913
delta logL = 2.59910848399e-09

Extracting fit parameters...

4FGL J1154.0+6018
   Spectrum: LogParabola
408         norm:  1.000e-04  7.369e-06  1.000e-04  1.000e+04 ( 1.000e-12)
409        alpha:  2.758e+00  2.487e+00  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:  8.333e-01  4.013e-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:  8.713e-01  3.356e-01  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/174465/cmap_HighResolution_539222401_539481601_4FGL_J1154.0+6018_daily_bin1157.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.60e-05', job_status='DONE', photon_flux_upper_limit='1.40e-07', time_completed='2021-09-04 16:32:15.437123', job_id='174465', GAL2='0.83', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1630798335.44', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='2.60e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.75' WHERE bin_id='1157' AND source_name='4FGL J1154.0+6018' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 16:32:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 174465: <4FGL_J1154.0+6018_daily_bin1157> in cluster <slac> Done

Job <4FGL_J1154.0+6018_daily_bin1157> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 16:21:14 2021
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 16:21:16 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:21:16 2021
Terminated at Sat Sep  4 16:32:16 2021
Results reported at Sat Sep  4 16:32:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1154.0+6018_daily_bin1157 178.519 60.3107 539222401 539481601 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 :                                   638.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             345.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   659 sec.
    Turnaround time :                            662 sec.

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

