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


Performing analysis on: 4FGL_J1154.0+6018_daily_bin75
RA = 178.519, Dec = 60.3107
tmin = 258768001, tmax = 259027201
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='166889', job_status='RUN', time_executed='2021-09-04 16:00:02.439184', time_epoch_executed='1630796402.44' WHERE source_name='4FGL J1154.0+6018' and cadence='daily' and bin_id='75'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/166889

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/166889/ft1_4FGL_J1154.0+6018_daily_bin75.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/166889/ft2_4FGL_J1154.0+6018_daily_bin75.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/166889/ft1_4FGL_J1154.0+6018_daily_bin75.fits outfile=/scratch/kocevski/166889/ft1_filteredMKT_4FGL_J1154.0+6018_daily_bin75.fits ra=178.519 dec=60.3107 rad=12.0 tmin=258768001.0 tmax=259027201.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 1.13
user 0.94
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/166889/ft2_4FGL_J1154.0+6018_daily_bin75.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/166889/ft1_filteredMKT_4FGL_J1154.0+6018_daily_bin75.fits evtable="EVENTS" outfile="/scratch/kocevski/166889/ft1_filtered_4FGL_J1154.0+6018_daily_bin75.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.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/166889/ft1_filtered_4FGL_J1154.0+6018_daily_bin75.fits" evtable="EVENTS" scfile=/scratch/kocevski/166889/ft2_4FGL_J1154.0+6018_daily_bin75.fits sctable="SC_DATA" outfile=/scratch/kocevski/166889/ltcube_258768001_259027201_4FGL_J1154.0+6018_daily_bin75.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/166889/ft2_4FGL_J1154.0+6018_daily_bin75.fits
.....................!
real 8.86
user 8.53
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/166889/ft1_filtered_4FGL_J1154.0+6018_daily_bin75.fits evtable="EVENTS" scfile=/scratch/kocevski/166889/ft2_4FGL_J1154.0+6018_daily_bin75.fits sctable="SC_DATA" expcube=/scratch/kocevski/166889/ltcube_258768001_259027201_4FGL_J1154.0+6018_daily_bin75.fits outfile=/scratch/kocevski/166889/expmap_258768001_259027201_4FGL_J1154.0+6018_daily_bin75.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/166889/ltcube_258768001_259027201_4FGL_J1154.0+6018_daily_bin75.fits
.....................!
real 190.35
user 184.91
sys 5.02

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/166889/ft1_filtered_4FGL_J1154.0+6018_daily_bin75.fits scfile=/scratch/kocevski/166889/ft2_4FGL_J1154.0+6018_daily_bin75.fits outfile=/scratch/kocevski/166889/cmap_258768001_259027201_4FGL_J1154.0+6018_daily_bin75.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/166889/ft1_filtered_4FGL_J1154.0+6018_daily_bin75.fits scfile=/scratch/kocevski/166889/ft2_4FGL_J1154.0+6018_daily_bin75.fits outfile=/scratch/kocevski/166889/cmap_HighResolution_258768001_259027201_4FGL_J1154.0+6018_daily_bin75.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.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    36.174       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.3713       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    9.6967       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.2491       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.7294       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.707       1.0000         .10000E-03   10000.    
    17 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .22481       1.0000         .10000E-03   10000.    
    19 'norm      '    .10375E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11939E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.5884       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .31830E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.7673       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10733E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10872E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    2.8573       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10177E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    6.1081       1.0000         .10000E-03   10000.    
    30 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    16.586       1.0000         .10000E-03   10000.    
    32 'Prefactor '    3.7837       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.4521       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .40121       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=   3162.334     FROM MIGRAD    STATUS=CONVERGED    969 CALLS     5043 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    12.133       -.11755E-05** at limit **
   2  Prefactor     36.175        30.446        .96399E-07   -.57671E-05
   3  norm          .10000E-03    3.3046        .31672E-07** at limit **
   4  norm          4.3714        3.2002        .10841E-06   -.14075E-04
   5  Prefactor     .10000E-03    107.30        .40269E-05** at limit **
   6  norm          .10000E-03    1.8485        .50864E-07** at limit **
   7  Prefactor     .10000E-03    73.007       -.37103E-05** at limit **
   8  norm          9.6965        4.4571       -.34746E-06   -.14811E-04
   9  Prefactor     .10000E-03    2.6941        .27308E-07** at limit **
  10  Prefactor     .10000E-03    25.344       -.93710E-06** at limit **
  11  Prefactor     .10000E-03    22.496       -.12622E-05** at limit **
  12  norm          .10000E-03    47.647        .30519E-05** at limit **
  13  Prefactor     2.2457        10.841        .66151E-05   -.12844E-03
  14  Prefactor     7.6844        87.052        .99641E-05    .12507E-05
  15  Prefactor     .10000E-03    19.489        .26985E-06** at limit **
  16  Prefactor     10.707        6.5216        .20177E-06   -.35322E-04
  17  norm          .10000E-03    7.5751       -.18089E-06** at limit **
  18  Prefactor     .25965        3.4281       -.53571E-06    .26087E-03
  19  norm          .10000E-03    4.2593       -.29881E-06** at limit **
  20  Prefactor     .10000E-03    79.498       -.35759E-05** at limit **
  21  Prefactor     1.5956        27.912       -.16009E-05   -.23351E-03
  22  Prefactor     .10001E-03    46.743        .19772E-05** at limit **
  23  norm          3.7668        2.9117        .18645E-07   -.71067E-04
  24  Prefactor     .10000E-03    47.140        .26367E-05** at limit **
  25  Prefactor     .10000E-03    27.944        .15498E-07** at limit **
  26  norm          .10000E-03    11.005        .87803E-06** at limit **
  27  norm          2.8573        7.6034        .45316E-05   -.26978E-04
  28  Prefactor     .10000E-03    16.664        .12831E-05** at limit **
  29  norm          6.1066        3.8469       -.23757E-06   -.21782E-03
  30  norm          .10000E-03    1.0264        .35207E-07** at limit **
  31  Prefactor     16.512        40.158        .10705E-04   -.23856E-05
  32  Prefactor     3.7830        14.405        .43130E-05   -.42303E-04
  33  Prefactor     .10000E-03    69.313       -.33470E-05** at limit **
  34  Normalizat    1.4522        .25021       -.56645E-06   -.93661E-04
  35  Prefactor     .40096        .28099       -.51726E-05   -.13913E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 36.1746
  norm       = 0.0001
  norm       = 4.37138
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 9.69646
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.24569
  Prefactor  = 7.68442
  Prefactor  = 0.0001
  Prefactor  = 10.7069
  norm       = 0.0001
  Prefactor  = 0.259646
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.59557
  Prefactor  = 0.000100008
  norm       = 3.76682
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.85727
  Prefactor  = 0.0001
  norm       = 6.10656
  norm       = 0.0001
  Prefactor  = 16.5125
  Prefactor  = 3.78296
  Prefactor  = 0.0001
  Normalizat = 1.4522
  Prefactor  = 0.400958
 **********
 **   18 **HESSE 
 **********

 FCN=   3162.334     FROM HESSE     STATUS=OK           768 CALLS     5811 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     36.175        30.321        .66633E-04   -1.4504    
   3  norm          .10000E-03    3.3279        .99118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.3714        3.1985        .83355E-04   -1.5290    
   5  Prefactor     .10000E-03    107.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.8871        .74647E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    72.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          9.6965        4.4571        .78011E-04   -1.5085    
   9  Prefactor     .10000E-03    2.6994        .90141E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    25.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    22.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    47.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.2457        10.930        .13700E-02   -1.5408    
  14  Prefactor     7.6844        88.001        .14424E-03   -1.5153    
  15  Prefactor     .10000E-03    19.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.707        6.5212        .10867E-03   -1.5053    
  17  norm          .10000E-03    7.5772        .15118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .25965        17.701        .19690E-02   -1.5606    
  19  norm          .10000E-03    4.2737        .11315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    79.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.5956        17.999        .33675E-03   -1.5455    
  22  Prefactor     .10001E-03    134.94        .58941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.7668        2.9167        .80925E-04   -1.5320    
  24  Prefactor     .10000E-03    47.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    27.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    11.460        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          2.8573        7.5839        .12025E-02   -1.5370    
  28  Prefactor     .10000E-03    17.156        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          6.1066        3.8328        .81469E-04   -1.5214    
  30  norm          .10000E-03    1.0338        .55638E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     16.512        39.932        .98345E-04   -1.4895    
  32  Prefactor     3.7830        14.404        .10377E-02   -1.5319    
  33  Prefactor     .10000E-03    69.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    1.4522        .28006        .19564E-03   -.79131    
  35  Prefactor     .40096        .30639        .40876E-03   -1.1676    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39959e-09
Minuit parameter uncertainties:
  1  2.33044e-06
  2  30.3337
  3  4.14803e-06
  4  3.19866
  5  5.38922e-05
  6  5.27732e-06
  7  1.38622e-05
  8  4.45726
  9  3.07601e-06
  10  1.94062e-06
  11  5.57878e-05
  12  3.2116e-05
  13  9.91123
  14  52.1054
  15  1.39804e-05
  16  6.52168
  17  1.60434e-05
  18  4.28815
  19  1.95684e-05
  20  0.000236459
  21  10.7217
  22  0.00208617
  23  2.91685
  24  1.14042e-05
  25  3.24759e-07
  26  3.2628e-05
  27  7.58644
  28  2.43286e-05
  29  3.83295
  30  1.52938e-06
  31  39.9963
  32  14.4176
  33  2.90709e-07
  34  0.280358
  35  0.307651
Done.

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

Extracting fit parameters...

4FGL J1154.0+6018
   Spectrum: LogParabola
408         norm:  1.000e-04  1.957e-05  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:  4.010e-01  3.077e-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.452e+00  2.804e-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.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.68e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/166889/likelihoodResults_258768001_259027201_4FGL_J1154.0+6018_daily_bin75.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) = 3162.33467649
delta logL = -0.00110615602671

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3162.3335703
delta logL = 3.55689735443e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7423       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4522       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .40097       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=   3162.334     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      241 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    222.28        .11379E-01** at limit **
   2  alpha         2.3032        3.5797        .16559       -.23171E-07
   3  Normalizat    1.4522        .40649E-01    .19564E-03    .64740E-04
   4  Prefactor     .40096        .47285E-01    .40877E-03    .34751E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 2.30322
  Normalizat = 1.45219
  Prefactor  = 0.400963
 **********
 **   18 **HESSE 
 **********

 FCN=   3162.334     FROM HESSE     STATUS=OK            23 CALLS      264 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.7508        .11935E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3032        3.4445        .66237E-02   -.78795E-01
   3  Normalizat    1.4522        .26150        .39128E-04   -.79131    
   4  Prefactor     .40096        .30338        .16351E-04   -1.1676    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69976e-10
Minuit parameter uncertainties:
  1  0.00011708
  2  315.448
  3  0.261747
  4  0.3046
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/166889': 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) = 3162.33356917
delta logL = 1.16475621326e-06

Extracting fit parameters...

4FGL J1154.0+6018
   Spectrum: LogParabola
408         norm:  1.000e-04  1.171e-04  1.000e-04  1.000e+04 ( 1.000e-12)
409        alpha:  2.303e+00  3.154e+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:  4.010e-01  3.046e-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.452e+00  2.617e-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/166889/cmap_HighResolution_258768001_259027201_4FGL_J1154.0+6018_daily_bin75.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.68e-05', job_status='DONE', photon_flux_upper_limit='1.04e-07', time_completed='2021-09-04 16:12:37.244956', job_id='166889', GAL2='0.40', fit_tolerance='1e-08', EG2='1.45', EG='1.45', time_epoch_completed='1630797157.25', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.40', dlogl='1.16e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.75' WHERE bin_id='75' AND source_name='4FGL J1154.0+6018' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 16:12:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 166889: <4FGL_J1154.0+6018_daily_bin75> in cluster <slac> Done

Job <4FGL_J1154.0+6018_daily_bin75> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 15:56:46 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 15:56:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 15:56:47 2021
Terminated at Sat Sep  4 16:12:38 2021
Results reported at Sat Sep  4 16:12:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1154.0+6018_daily_bin75 178.519 60.3107 258768001 259027201 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 :                                   756.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             279.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   950 sec.
    Turnaround time :                            952 sec.

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

