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


Performing analysis on: 4FGL_J1154.0+6018_daily_bin4
RA = 178.519, Dec = 60.3107
tmin = 240364801, tmax = 240624001
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='166755', job_status='RUN', time_executed='2021-09-04 15:56:57.576500', time_epoch_executed='1630796217.58' WHERE source_name='4FGL J1154.0+6018' and cadence='daily' and bin_id='4'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/166755

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/166755/ft1_4FGL_J1154.0+6018_daily_bin4.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/166755/ft2_4FGL_J1154.0+6018_daily_bin4.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/166755/ft1_4FGL_J1154.0+6018_daily_bin4.fits outfile=/scratch/kocevski/166755/ft1_filteredMKT_4FGL_J1154.0+6018_daily_bin4.fits ra=178.519 dec=60.3107 rad=12.0 tmin=240364801.0 tmax=240624001.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.47
user 1.28
sys 0.16

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/166755/ft1_filtered_4FGL_J1154.0+6018_daily_bin4.fits evtable="EVENTS" scfile=/scratch/kocevski/166755/ft2_4FGL_J1154.0+6018_daily_bin4.fits sctable="SC_DATA" expcube=/scratch/kocevski/166755/ltcube_240364801_240624001_4FGL_J1154.0+6018_daily_bin4.fits outfile=/scratch/kocevski/166755/expmap_240364801_240624001_4FGL_J1154.0+6018_daily_bin4.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/166755/ltcube_240364801_240624001_4FGL_J1154.0+6018_daily_bin4.fits
.....................!
real 194.54
user 185.39
sys 4.47

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/166755/ft1_filtered_4FGL_J1154.0+6018_daily_bin4.fits scfile=/scratch/kocevski/166755/ft2_4FGL_J1154.0+6018_daily_bin4.fits outfile=/scratch/kocevski/166755/cmap_240364801_240624001_4FGL_J1154.0+6018_daily_bin4.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/166755/ft1_filtered_4FGL_J1154.0+6018_daily_bin4.fits scfile=/scratch/kocevski/166755/ft2_4FGL_J1154.0+6018_daily_bin4.fits outfile=/scratch/kocevski/166755/cmap_HighResolution_240364801_240624001_4FGL_J1154.0+6018_daily_bin4.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.855       1.0000         .10000E-03   10000.    
     3 'norm      '    7.7327       1.0000         .10000E-03   10000.    
     4 'norm      '    .24157       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.3169       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    35.940       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.119       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.2417       1.0000         .10000E-03   10000.    
    19 'norm      '    9.2877       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    27.914       1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    9.3393       1.0000         .10000E-03   10000.    
    27 'norm      '    2.8699       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .11069E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    6.4989       1.0000         .10000E-03   10000.    
    30 'norm      '    7.6869       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.2115       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .75764       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=   4637.177     FROM MIGRAD    STATUS=CONVERGED    111 CALLS     4145 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    5.8403        .33183E-05** at limit **
   2  Prefactor     21.887        4.8146        .15208E-05   -.10547E-01
   3  norm          7.7313        4.3830        .58166E-06    .13639E-02
   4  norm          .22889        .70018        .87944E-06    .19380E-03
   5  Prefactor     .10200E-03    24.350       -.50860E-05** at limit **
   6  norm          .10000E-03    1.0051        .41889E-07** at limit **
   7  Prefactor     .10075E-03    16.447       -.11629E-05** at limit **
   8  norm          4.3186        3.4151        .21084E-05    .12350E-02
   9  Prefactor     .10000E-03    3.2588        .24276E-07** at limit **
  10  Prefactor     .10123E-03    24.850        .16220E-05** at limit **
  11  Prefactor     .10000E-03    20.202        .36266E-05** at limit **
  12  norm          35.936        1.1256       -.12212E-06    .14077E-02
  13  Prefactor     14.121        1.0057        .44901E-07    .17580E-04
  14  Prefactor     .10000E-03    3.5646       -.16453E-05** at limit **
  15  Prefactor     .10006E-03    3.0678        .70617E-06** at limit **
  16  Prefactor     .10000E-03    1.9045        .19500E-06** at limit **
  17  norm          .10000E-03    6.6575       -.95291E-06** at limit **
  18  Prefactor     2.2414        3.3572       -.59914E-05   -.17122E-02
  19  norm          9.2885        1.0188        .17346E-07   -.22503E-03
  20  Prefactor     .10001E-03    5.4208        .34390E-05** at limit **
  21  Prefactor     .10000E-03    7.6117        .58758E-06** at limit **
  22  Prefactor     27.914        1.0009        .10965E-07   -.11410E-03
  23  norm          .10000E-03    1.1041        .80418E-07** at limit **
  24  Prefactor     .10010E-03    6.4196       -.27439E-05** at limit **
  25  Prefactor     .10019E-03    21.102       -.36134E-05** at limit **
  26  norm          9.3391        1.0145        .19574E-07    .20689E-04
  27  norm          2.8700        1.0222       -.76933E-07   -.48644E-04
  28  Prefactor     .10003E-03    17.261       -.58698E-05** at limit **
  29  norm          6.4990        3.2859       -.59572E-06   -.63575E-03
  30  norm          7.6868        3.1508       -.53139E-06   -.44141E-03
  31  Prefactor     .10393E-03    12.038        .26905E-05** at limit **
  32  Prefactor     .10004E-03    2.8591        .12490E-06** at limit **
  33  Prefactor     .10040E-03    17.301       -.16578E-05** at limit **
  34  Normalizat    1.2112        .22511        .65564E-06   -.55680E-05
  35  Prefactor     .75808        .26816        .14753E-05   -.71736E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100018
  Prefactor  = 21.887
  norm       = 7.73126
  norm       = 0.228891
  Prefactor  = 0.000101999
  norm       = 0.0001
  Prefactor  = 0.000100746
  norm       = 4.31863
  Prefactor  = 0.0001
  Prefactor  = 0.000101234
  Prefactor  = 0.0001
  norm       = 35.936
  Prefactor  = 14.1205
  Prefactor  = 0.0001
  Prefactor  = 0.000100057
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.24137
  norm       = 9.28853
  Prefactor  = 0.000100006
  Prefactor  = 0.000100001
  Prefactor  = 27.9142
  norm       = 0.0001
  Prefactor  = 0.000100096
  Prefactor  = 0.000100189
  norm       = 9.33907
  norm       = 2.87
  Prefactor  = 0.000100026
  norm       = 6.499
  norm       = 7.68677
  Prefactor  = 0.000103928
  Prefactor  = 0.000100043
  Prefactor  = 0.000100403
  Normalizat = 1.21123
  Prefactor  = 0.758077
 **********
 **   18 **HESSE 
 **********

 FCN=   4637.177     FROM HESSE     STATUS=OK           848 CALLS     4993 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    14.926        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     21.887        50.418        .21420E-02   -1.4772    
   3  norm          7.7313        6.5884        .36051E-02   -1.5152    
   4  norm          .22889        1.7771        .51195E-01   -1.5612    
   5  Prefactor     .10200E-03    94.732        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .99853        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10075E-03    82.098        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.3186        3.5062        .48471E-02   -1.5292    
   9  Prefactor     .10000E-03    3.2365        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10123E-03    45.401        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    49.657        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          35.936        41.855        .16712E-02   -1.4508    
  13  Prefactor     14.121        11.293        .26649E-02   -1.4956    
  14  Prefactor     .10000E-03    11.600        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10006E-03    12.453        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.8948        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    6.7362        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.2414        3.3937        .68624E-02   -1.5409    
  19  norm          9.2885        7.0827        .32876E-02   -1.5098    
  20  Prefactor     .10001E-03    14.085        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.5994        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     27.914        27.596        .18957E-02   -1.4651    
  23  norm          .10000E-03    1.0871        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10010E-03    11.068        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10019E-03    89.620        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          9.3391        7.2820        .32785E-02   -1.5097    
  27  norm          2.8700        8.3101        .59986E-02   -1.5369    
  28  Prefactor     .10003E-03    7.7358        .60678E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          6.4990        3.5897        .39357E-02   -1.5198    
  30  norm          7.6868        3.1564        .36159E-02   -1.5153    
  31  Prefactor     .10393E-03    69.011        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10004E-03    12.186        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10040E-03    83.577        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    1.2112        .19863        .50423E-01   -.86257    
  35  Prefactor     .75808        .23075        .74065E-01   -1.0129    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60972e-06
Minuit parameter uncertainties:
  1  0.00102908
  2  50.5167
  3  6.58897
  4  1.27534
  5  0.0275649
  6  1.58025e-06
  7  0.0156786
  8  3.50633
  9  2.74741e-07
  10  0.0149804
  11  4.99243e-05
  12  41.8889
  13  11.295
  14  7.21855e-05
  15  0.00168581
  16  8.28433e-07
  17  7.46225e-05
  18  3.39397
  19  7.08334
  20  0.000558139
  21  0.000191331
  22  27.6084
  23  1.37614e-06
  24  0.00206151
  25  0.00824152
  26  7.28265
  27  8.31339
  28  0.000905058
  29  3.58984
  30  3.15645
  31  0.032965
  32  0.00144011
  33  0.0116262
  34  0.198756
  35  0.231047
Done.

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

Extracting fit parameters...

4FGL J1154.0+6018
   Spectrum: LogParabola
408         norm:  9.289e+00  7.083e+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

GAL_V02
   Spectrum: PowerLaw
746    Prefactor:  7.581e-01  2.310e-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.211e+00  1.988e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.79
Ra Dec: 178.519 60.311
Photon Index (Fixed Index): 2.75 +/- 0.00
Photon Flux (Fixed Index): 6.10e-08 +/- 4.65e-08
Energy Flux (Fixed Index): 1.57e-05 +/- 1.20e-05

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

Saving results to:
/scratch/kocevski/166755/likelihoodResults_240364801_240624001_4FGL_J1154.0+6018_daily_bin4.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) = 4637.02783554
delta logL = 0.149442596937

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4637.0224954
delta logL = 0.154782738743

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.6028       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2359       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1888       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77624       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=   4637.022     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      265 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.5976        106.20        .39042E-02    .17748E-03
   2  alpha         3.2345        3.8877        .34021        .36736E-04
   3  Normalizat    1.1889        .86427E-01    .50810E-01    .39030E-05
   4  Prefactor     .77640        .91755E-01    .73267E-01    .15686E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.59756
  alpha      = 3.2345
  Normalizat = 1.18886
  Prefactor  = 0.776402
 **********
 **   18 **HESSE 
 **********

 FCN=   4637.022     FROM HESSE     STATUS=OK            33 CALLS      298 TOTAL
                     EDM=   .75E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.5976        7.8362        .11440E-03   -1.5194    
   2  alpha         3.2345        .94331        .13715E-01    .29820    
   3  Normalizat    1.1889        .23028        .22464E-03   -.86948    
   4  Prefactor     .77640        .27040        .32426E-03   -1.0060    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.54119e-12
Minuit parameter uncertainties:
  1  7.83741
  2  0.969707
  3  0.230478
  4  0.270867
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/166755': 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) = 4637.02248838
delta logL = 0.154789755754

Extracting fit parameters...

4FGL J1154.0+6018
   Spectrum: LogParabola
408         norm:  6.598e+00  7.837e+00  1.000e-04  1.000e+04 ( 1.000e-12)
409        alpha:  3.235e+00  9.697e-01  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:  7.764e-01  2.709e-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.189e+00  2.305e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.12
Ra Dec: 178.519 60.311
Photon Index (Free Index): 3.23 +/- 0.97
Photon Flux (Free Index): 7.99e-08 +/- 6.12e-08
Energy Flux (Free Index): 1.64e-05 +/- 1.13e-05

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/166755/cmap_HighResolution_240364801_240624001_4FGL_J1154.0+6018_daily_bin4.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.08e-05', comment='SUCCESS', photon_flux='6.10e-08', energy_flux2='1.64e-05', photon_flux_error='4.65e-08', dlogl='1.55e-01', energy_flux='1.57e-05', photon_flux2='7.99e-08', job_status='DONE', time_completed='2021-09-04 16:12:20.193762', photon_index_error2='0.97', photon_index2='3.23', ts='2.79', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='1.58e-07', energy_flux_error2='1.13e-05', EG='1.21', time_epoch_completed='1630797140.19', return_code='0', job_id='166755', GAL2='0.78', EG2='1.19', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='6.12e-08', ts2='3.12', photon_index='2.75' WHERE bin_id='4' AND source_name='4FGL J1154.0+6018' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 16:12:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0186>
Subject: Job 166755: <4FGL_J1154.0+6018_daily_bin4> in cluster <slac> Done

Job <4FGL_J1154.0+6018_daily_bin4> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 15:56:37 2021
Job was executed on host(s) <bullet0186>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 15:56:39 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:39 2021
Terminated at Sat Sep  4 16:12:21 2021
Results reported at Sat Sep  4 16:12:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1154.0+6018_daily_bin4 178.519 60.3107 240364801 240624001 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 :                                   915.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             331.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   941 sec.
    Turnaround time :                            944 sec.

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

