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


Performing analysis on: 4FGL_J1154.0+6018_daily_bin650
RA = 178.519, Dec = 60.3107
tmin = 407808001, tmax = 408067201
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='169991', job_status='RUN', time_executed='2021-09-04 16:08:53.351124', time_epoch_executed='1630796933.35' WHERE source_name='4FGL J1154.0+6018' and cadence='daily' and bin_id='650'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/169991

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/169991/ft1_4FGL_J1154.0+6018_daily_bin650.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/169991/ft2_4FGL_J1154.0+6018_daily_bin650.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/169991/ft1_4FGL_J1154.0+6018_daily_bin650.fits outfile=/scratch/kocevski/169991/ft1_filteredMKT_4FGL_J1154.0+6018_daily_bin650.fits ra=178.519 dec=60.3107 rad=12.0 tmin=407808001.0 tmax=408067201.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 4.13
user 3.91
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/169991/ft1_filtered_4FGL_J1154.0+6018_daily_bin650.fits evtable="EVENTS" scfile=/scratch/kocevski/169991/ft2_4FGL_J1154.0+6018_daily_bin650.fits sctable="SC_DATA" expcube=/scratch/kocevski/169991/ltcube_407808001_408067201_4FGL_J1154.0+6018_daily_bin650.fits outfile=/scratch/kocevski/169991/expmap_407808001_408067201_4FGL_J1154.0+6018_daily_bin650.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/169991/ltcube_407808001_408067201_4FGL_J1154.0+6018_daily_bin650.fits
.....................!
real 191.41
user 184.80
sys 5.34

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/169991/ft1_filtered_4FGL_J1154.0+6018_daily_bin650.fits scfile=/scratch/kocevski/169991/ft2_4FGL_J1154.0+6018_daily_bin650.fits outfile=/scratch/kocevski/169991/cmap_407808001_408067201_4FGL_J1154.0+6018_daily_bin650.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/169991/ft1_filtered_4FGL_J1154.0+6018_daily_bin650.fits scfile=/scratch/kocevski/169991/ft2_4FGL_J1154.0+6018_daily_bin650.fits outfile=/scratch/kocevski/169991/cmap_HighResolution_407808001_408067201_4FGL_J1154.0+6018_daily_bin650.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11459E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .14308E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    .18090       1.0000         .10000E-03   10000.    
     4 'norm      '    2.4175       1.0000         .10000E-03   10000.    
     5 'Prefactor '    167.76       1.0000         .10000E-03   10000.    
     6 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .97847       1.0000         .10000E-03   10000.    
     8 'norm      '    4.4214       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.6275       1.0000         .10000E-03   10000.    
    10 'Prefactor '    135.10       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12594E-01   1.0000         .10000E-03   10000.    
    12 'norm      '    .24209E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.4500       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .20492       1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.828       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .25389E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10803E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.3092       1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .16574E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.241       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .14893E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    5.2715       1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.1775       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .39986E-02   1.0000         .10000E-03   10000.    
    26 'norm      '    .35292E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    2.6302       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .31353E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    10.793       1.0000         .10000E-03   10000.    
    33 'Prefactor '    20.144       1.0000         .10000E-03   10000.    
    34 'Normalizat'    .88732       1.0000         .10000E-01   10.000    
    35 'Prefactor '    1.0723       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=   3981.261     FROM MIGRAD    STATUS=CONVERGED    291 CALLS     3768 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.2101       -.12737E-05** at limit **
   2  Prefactor     .10000E-03    14.559       -.41368E-05** at limit **
   3  norm          .18425        5.7827        .11845E-05    .29413E-06
   4  norm          2.4195        2.0331        .10438E-06   -.27853E-04
   5  Prefactor     206.08        229.02        .11388E-04    .10491E-03
   6  norm          .10000E-03    8.8662        .51244E-08** at limit **
   7  Prefactor     .10000E-03    114.51       -.13260E-04** at limit **
   8  norm          4.4414        3.0392        .55003E-06   -.17551E-04
   9  Prefactor     5.4624        8.5495       -.62638E-05    .55507E-04
  10  Prefactor     128.90        91.310       -.27233E-05    .11982E-02
  11  Prefactor     .10001E-03    81.332       -.88673E-05** at limit **
  12  norm          .10001E-03    21.228       -.67332E-05** at limit **
  13  Prefactor     1.5190        5.9312       -.17281E-05   -.36891E-03
  14  Prefactor     .10002E-03    62.340       -.42613E-05** at limit **
  15  Prefactor     25.835        33.022        .38947E-05    .64537E-04
  16  Prefactor     .10000E-03    20.541       -.48699E-04** at limit **
  17  norm          .10000E-03    7.3230       -.13613E-06** at limit **
  18  Prefactor     5.3161        3.9977       -.14314E-06   -.20661E-03
  19  norm          .10000E-03    2.1423        .50154E-07** at limit **
  20  Prefactor     .10000E-03    12.610       -.39549E-08** at limit **
  21  Prefactor     13.348        9.5170       -.52276E-06    .24204E-03
  22  Prefactor     .10000E-03    9.5483       -.42088E-06** at limit **
  23  norm          5.2729        3.5461       -.47229E-06   -.13313E-03
  24  Prefactor     3.3013        62.653       -.92778E-06    .77084E-04
  25  Prefactor     .10000E-03    34.650        .11554E-05** at limit **
  26  norm          .10000E-03    11.738        .99142E-06** at limit **
  27  norm          .10000E-03    4.1480        .28163E-06** at limit **
  28  Prefactor     .10000E-03    4.2588        .10720E-06** at limit **
  29  norm          .10000E-03    2.1861        .16578E-06** at limit **
  30  norm          2.6312        2.4025       -.34848E-07   -.71698E-05
  31  Prefactor     .10000E-03    15.611        .48385E-05** at limit **
  32  Prefactor     10.791        9.5139        .55306E-05    .21588E-03
  33  Prefactor     18.439        28.115       -.11839E-05   -.19299E-02
  34  Normalizat    .89074        .25214        .14665E-05   -.26527E-03
  35  Prefactor     1.0674        .30132       -.17791E-05   -.20495E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.184247
  norm       = 2.41952
  Prefactor  = 206.078
  norm       = 0.000100001
  Prefactor  = 0.000100005
  norm       = 4.44136
  Prefactor  = 5.46244
  Prefactor  = 128.896
  Prefactor  = 0.000100012
  norm       = 0.000100005
  Prefactor  = 1.51895
  Prefactor  = 0.000100019
  Prefactor  = 25.835
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.31614
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 13.3476
  Prefactor  = 0.0001
  norm       = 5.27292
  Prefactor  = 3.30129
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.63122
  Prefactor  = 0.0001
  Prefactor  = 10.7906
  Prefactor  = 18.4393
  Normalizat = 0.89074
  Prefactor  = 1.06741
 **********
 **   18 **HESSE 
 **********

 FCN=   3981.261     FROM HESSE     STATUS=OK           868 CALLS     4636 TOTAL
                     EDM=   .65E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.1329        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.594        .10254E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .18425        1.6218        .41853E-01   -1.5622    
   4  norm          2.4195        2.0298        .65815E-02   -1.5397    
   5  Prefactor     206.08        228.93        .77862E-03   -1.2827    
   6  norm          .10000E-03    3.6189        .53096E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    114.45        .13089E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.4414        3.0352        .47880E-02   -1.5286    
   9  Prefactor     5.4624        11.056        .42335E-02   -1.5240    
  10  Prefactor     128.90        93.855        .86621E-03   -1.3432    
  11  Prefactor     .10001E-03    80.883        .90859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10001E-03    21.227        .10025E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.5190        5.9962        .89451E-02   -1.5461    
  14  Prefactor     .10002E-03    62.529        .10000E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     25.835        33.194        .19706E-02   -1.4691    
  16  Prefactor     .10000E-03    4.0251        .69275E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    7.3174        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.3161        3.9998        .43607E-02   -1.5247    
  19  norm          .10000E-03    2.1339        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.625        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     13.348        9.5307        .27519E-02   -1.4977    
  22  Prefactor     .10000E-03    9.5299        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          5.2729        3.5497        .43765E-02   -1.5249    
  24  Prefactor     3.3013        63.102        .56836E-02   -1.5345    
  25  Prefactor     .10000E-03    34.764        .97474E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    5.1135        .47426E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    4.1259        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    4.2316        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    2.1353        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          2.6312        2.3943        .62860E-02   -1.5384    
  31  Prefactor     .10000E-03    15.631        .10686E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     10.791        9.5147        .30488E-02   -1.5051    
  33  Prefactor     18.439        102.93        .22310E-02   -1.4849    
  34  Normalizat    .89074        .21210        .44739E-01   -.96786    
  35  Prefactor     1.0674        .25260        .62525E-01   -.90515    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.49906e-07
Minuit parameter uncertainties:
  1  0.000164593
  2  1.49584e-05
  3  1.09303
  4  2.02985
  5  229.928
  6  9.6355e-05
  7  0.00149081
  8  3.03526
  9  11.0603
  10  93.9636
  11  0.00198885
  12  0.000675414
  13  5.99855
  14  0.00220967
  15  33.2173
  16  6.89616e-07
  17  4.91701e-05
  18  3.99998
  19  2.7285e-06
  20  0.000193057
  21  9.53175
  22  1.78685e-05
  23  3.54989
  24  28.9012
  25  0.000521083
  26  9.22431e-05
  27  7.42118e-06
  28  2.41948e-05
  29  3.05637e-06
  30  2.39442
  31  0.000136968
  32  9.51606
  33  87.3604
  34  0.212302
  35  0.252882
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
746    Prefactor:  1.067e+00  2.529e-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.907e-01  2.123e-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: 6.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.67e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/169991/likelihoodResults_407808001_408067201_4FGL_J1154.0+6018_daily_bin650.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) = 3981.26286527
delta logL = -0.00218945729966

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3981.26067646
delta logL = -6.43903149466e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10566E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7276       1.0000          .0000       5.0000    
     3 'Normalizat'    .89072       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0675       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3981.261     FROM MIGRAD    STATUS=FAILED        98 CALLS      241 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    189.84        .92658E-02** at limit **
   2  alpha         1.8516        4.0741        .16548        .66161E-07
   3  Normalizat    .89074        .36411E-01    .23626E-03    .32873E-03
   4  Prefactor     1.0674        .46446E-01    .27654E-03    .27500E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3981.261     FROM SIMPLEX   STATUS=UNCHANGED    164 CALLS      405 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    189.84        .38627E-03** at limit **
   2  alpha         1.8516        4.0741        .18178E-04    .66161E-07
   3  Normalizat    .89074        .36411E-01    .21507E-06    .32873E-03
   4  Prefactor     1.0674        .46446E-01    .11159E-06    .27500E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3981.261     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      433 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.8393        .12019E-02** at limit **
   2  alpha         1.8546        3.3306        .66191E-02    .22294E-06
   3  Normalizat    .89074        .23203        .47252E-04    .32863E-03
   4  Prefactor     1.0674        .29582        .55308E-04    .27497E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 1.8546
  Normalizat = 0.890742
  Prefactor  = 1.06741
 **********
 **   18 **HESSE 
 **********

 FCN=   3981.261     FROM HESSE     STATUS=OK            23 CALLS      456 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.8224        .24039E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8546        3.2169        .13238E-02   -.26112    
   3  Normalizat    .89074        .23207        .94505E-05   -.96786    
   4  Prefactor     1.0674        .29587        .11062E-04   -.90515    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.33409e-10
Minuit parameter uncertainties:
  1  0.00014935
  2  214.198
  3  0.232333
  4  0.296327
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/169991': 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) = 3981.26066557
delta logL = 1.02517924461e-05

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
746    Prefactor:  1.067e+00  2.963e-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.907e-01  2.323e-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/169991/cmap_HighResolution_407808001_408067201_4FGL_J1154.0+6018_daily_bin650.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.67e-05', job_status='DONE', photon_flux_upper_limit='6.49e-08', time_completed='2021-09-04 16:22:49.681282', job_id='169991', GAL2='1.07', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1630797769.68', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='1.03e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.75' WHERE bin_id='650' AND source_name='4FGL J1154.0+6018' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 16:22:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 169991: <4FGL_J1154.0+6018_daily_bin650> in cluster <slac> Done

Job <4FGL_J1154.0+6018_daily_bin650> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 16:06:23 2021
Job was executed on host(s) <bullet0263>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 16:06:24 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:06:24 2021
Terminated at Sat Sep  4 16:22:50 2021
Results reported at Sat Sep  4 16:22:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1154.0+6018_daily_bin650 178.519 60.3107 407808001 408067201 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 :                                   835.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             291.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   985 sec.
    Turnaround time :                            987 sec.

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

