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


Performing analysis on: 4FGL_J1154.0+6018_daily_bin1202
RA = 178.519, Dec = 60.3107
tmin = 550886401, tmax = 551145601
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='174538', job_status='RUN', time_executed='2021-09-04 16:25:25.013374', time_epoch_executed='1630797925.01' WHERE source_name='4FGL J1154.0+6018' and cadence='daily' and bin_id='1202'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/174538

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/174538/ft1_4FGL_J1154.0+6018_daily_bin1202.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/174538/ft2_4FGL_J1154.0+6018_daily_bin1202.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/174538/ft1_4FGL_J1154.0+6018_daily_bin1202.fits outfile=/scratch/kocevski/174538/ft1_filteredMKT_4FGL_J1154.0+6018_daily_bin1202.fits ra=178.519 dec=60.3107 rad=12.0 tmin=550886401.0 tmax=551145601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.76
user 3.53
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/174538/ft1_filtered_4FGL_J1154.0+6018_daily_bin1202.fits" evtable="EVENTS" scfile=/scratch/kocevski/174538/ft2_4FGL_J1154.0+6018_daily_bin1202.fits sctable="SC_DATA" outfile=/scratch/kocevski/174538/ltcube_550886401_551145601_4FGL_J1154.0+6018_daily_bin1202.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/174538/ft2_4FGL_J1154.0+6018_daily_bin1202.fits
.....................!
real 13.49
user 13.15
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/174538/ft1_filtered_4FGL_J1154.0+6018_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/174538/ft2_4FGL_J1154.0+6018_daily_bin1202.fits sctable="SC_DATA" expcube=/scratch/kocevski/174538/ltcube_550886401_551145601_4FGL_J1154.0+6018_daily_bin1202.fits outfile=/scratch/kocevski/174538/expmap_550886401_551145601_4FGL_J1154.0+6018_daily_bin1202.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/174538/ltcube_550886401_551145601_4FGL_J1154.0+6018_daily_bin1202.fits
.....................!
real 189.68
user 184.98
sys 4.33

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/174538/ft1_filtered_4FGL_J1154.0+6018_daily_bin1202.fits scfile=/scratch/kocevski/174538/ft2_4FGL_J1154.0+6018_daily_bin1202.fits outfile=/scratch/kocevski/174538/cmap_550886401_551145601_4FGL_J1154.0+6018_daily_bin1202.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=178.519 yref=60.3107 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/174538/ft1_filtered_4FGL_J1154.0+6018_daily_bin1202.fits scfile=/scratch/kocevski/174538/ft2_4FGL_J1154.0+6018_daily_bin1202.fits outfile=/scratch/kocevski/174538/cmap_HighResolution_550886401_551145601_4FGL_J1154.0+6018_daily_bin1202.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.611       1.0000         .10000E-03   10000.    
     3 'norm      '    3.9833       1.0000         .10000E-03   10000.    
     4 'norm      '    4.9253       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .56420E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10690E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .49253       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    60.221       1.0000         .10000E-03   10000.    
    12 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11304E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    71.585       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .12742       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    15.965       1.0000         .10000E-03   10000.    
    27 'norm      '    .56845E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    7.7019       1.0000         .10000E-03   10000.    
    29 'norm      '    5.5295       1.0000         .10000E-03   10000.    
    30 'norm      '    4.6926       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10424E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    .67417       1.0000         .10000E-01   10.000    
    35 'Prefactor '    1.1373       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=   1698.511     FROM MIGRAD    STATUS=CONVERGED    975 CALLS     5045 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    18.644        .11107E-04** at limit **
   2  Prefactor     20.612        38.267       -.76272E-06    .24961E-04
   3  norm          3.9832        3.9918        .39695E-07    .88937E-04
   4  norm          4.9246        4.2132       -.57762E-07    .44056E-04
   5  Prefactor     .10000E-03    797.77       -.19163E-03** at limit **
   6  norm          .10000E-03    3.6054        .20775E-07** at limit **
   7  Prefactor     .10000E-03    204.89       -.20110E-04** at limit **
   8  norm          .49134        5.5500       -.11422E-05   -.32185E-03
   9  Prefactor     .10000E-03    9.7095        .21277E-05** at limit **
  10  Prefactor     .10000E-03    90.483        .30272E-04** at limit **
  11  Prefactor     60.236        46.488        .66484E-05    .22014E-03
  12  norm          .10000E-03    75.669       -.19064E-04** at limit **
  13  Prefactor     .10000E-03    5.8347        .15282E-06** at limit **
  14  Prefactor     .10001E-03    227.68       -.93488E-04** at limit **
  15  Prefactor     .10000E-03    20.421       -.47109E-05** at limit **
  16  Prefactor     .10000E-03    4.6978        .55325E-07** at limit **
  17  norm          71.581        43.742       -.91647E-06    .10759E-03
  18  Prefactor     .10000E-03    4.3996       -.74426E-07** at limit **
  19  norm          .10000E-03    9.1406       -.14239E-05** at limit **
  20  Prefactor     .10000E-03    31.396        .14312E-04** at limit **
  21  Prefactor     .10000E-03    5.1230        .28946E-07** at limit **
  22  Prefactor     .10000E-03    15.055       -.31579E-05** at limit **
  23  norm          .11969        3.1171       -.32334E-06    .14912E-03
  24  Prefactor     .10000E-03    28.028        .86425E-06** at limit **
  25  Prefactor     .10000E-03    76.153       -.17452E-04** at limit **
  26  norm          15.963        11.377        .35606E-07   -.17416E-05
  27  norm          .10001E-03    15.756        .11885E-05** at limit **
  28  Prefactor     7.6994        13.432        .16265E-07    .20907E-04
  29  norm          5.5286        5.0742       -.54763E-08    .15488E-03
  30  norm          4.6922        4.4701       -.58008E-07    .22763E-04
  31  Prefactor     .10000E-03    142.86        .95182E-04** at limit **
  32  Prefactor     .10000E-03    24.667       -.14230E-04** at limit **
  33  Prefactor     .10000E-03    77.363       -.13612E-04** at limit **
  34  Normalizat    .67426        .30368       -.10418E-05    .22095E-03
  35  Prefactor     1.1377        .38067        .38967E-06    .12929E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 20.6119
  norm       = 3.98316
  norm       = 4.92456
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.491339
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 60.2358
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 71.581
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.119691
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.9627
  norm       = 0.000100009
  Prefactor  = 7.69938
  norm       = 5.52863
  norm       = 4.69223
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.67426
  Prefactor  = 1.13766
 **********
 **   18 **HESSE 
 **********

 FCN=   1698.511     FROM HESSE     STATUS=OK           762 CALLS     5807 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    18.646        .17386E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     20.612        38.363        .88225E-04   -1.4800    
   3  norm          3.9832        3.9846        .76161E-04   -1.5309    
   4  norm          4.9246        4.2082        .74600E-04   -1.5264    
   5  Prefactor     .10000E-03    798.17        .21096E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.6494        .76379E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    204.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .49134        8.6473        .17937E-02   -1.5568    
   9  Prefactor     .10000E-03    9.7786        .12538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    90.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     60.236        46.108        .51703E-04   -1.4154    
  12  norm          .10000E-03    75.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.8620        .97204E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    232.75        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    20.432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.7105        .87239E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          71.581        43.735        .47448E-04   -1.4014    
  18  Prefactor     .10000E-03    4.4407        .84412E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    9.5308        .24287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    31.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.1258        .91112E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    15.057        .15622E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .11969        25.604        .13765E-02   -1.5639    
  24  Prefactor     .10000E-03    28.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    76.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          15.963        11.379        .10024E-03   -1.4909    
  27  norm          .10001E-03    41.861        .31700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     7.6994        13.415        .14449E-03   -1.5153    
  29  norm          5.5286        5.0751        .83115E-04   -1.5238    
  30  norm          4.6922        4.4750        .82530E-04   -1.5275    
  31  Prefactor     .10000E-03    142.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    24.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    77.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    .67426        .37097        .24884E-03   -1.0492    
  35  Prefactor     1.1377        .46475        .25326E-03   -.88272    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23419e-09
Minuit parameter uncertainties:
  1  1.0837e-06
  2  38.4087
  3  3.98486
  4  4.20841
  5  0.00035696
  6  4.58522e-06
  7  6.53147e-05
  8  4.12279
  9  7.99948e-06
  10  9.72017e-05
  11  46.1357
  12  3.23567e-06
  13  4.05024e-06
  14  0.00336359
  15  4.26215e-06
  16  1.25712e-06
  17  43.7545
  18  8.91445e-07
  19  6.13704e-05
  20  2.36399e-06
  21  4.06897e-06
  22  4.60452e-06
  23  3.50124
  24  8.85843e-06
  25  1.88003e-05
  26  11.3803
  27  0.00121103
  28  13.42
  29  5.07552
  30  4.47531
  31  0.000107709
  32  4.34599e-05
  33  4.34469e-06
  34  0.372356
  35  0.466426
Done.

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

Extracting fit parameters...

4FGL J1154.0+6018
   Spectrum: LogParabola
408         norm:  1.000e-04  6.137e-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:  1.138e+00  4.664e-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:  6.743e-01  3.724e-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.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.95e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/174538/likelihoodResults_550886401_551145601_4FGL_J1154.0+6018_daily_bin1202.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) = 1698.51152743
delta logL = -0.000498441902664

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1698.51103044
delta logL = -1.45771605276e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12831E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7211       1.0000          .0000       5.0000    
     3 'Normalizat'    .67403       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1380       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=   1698.511     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      253 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1427.4        .25400E-02** at limit **
   2  alpha         2.2372        3.4009        .16543        .75252E-08
   3  Normalizat    .67426        .82908E-01    .24884E-03    .20376E-04
   4  Prefactor     1.1377        .10765        .25326E-03    .17720E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.23717
  Normalizat = 0.674256
  Prefactor  = 1.13767
 **********
 **   18 **HESSE 
 **********

 FCN=   1698.511     FROM HESSE     STATUS=OK            23 CALLS      276 TOTAL
                     EDM=   .31E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    13.999        .50800E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2372        3.6556        .66171E-02   -.10533    
   3  Normalizat    .67426        .34876        .99537E-05   -1.0492    
   4  Prefactor     1.1377        .45276        .10131E-04   -.88272    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.13793e-12
Minuit parameter uncertainties:
  1  2.60708e-05
  2  322.354
  3  0.349916
  4  0.45431
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/174538': 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) = 1698.51102733
delta logL = 1.65484675563e-06

Extracting fit parameters...

4FGL J1154.0+6018
   Spectrum: LogParabola
408         norm:  1.000e-04  2.607e-05  1.000e-04  1.000e+04 ( 1.000e-12)
409        alpha:  2.237e+00  3.224e+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.138e+00  4.543e-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:  6.743e-01  3.499e-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/174538/cmap_HighResolution_550886401_551145601_4FGL_J1154.0+6018_daily_bin1202.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.95e-05', job_status='DONE', photon_flux_upper_limit='1.14e-07', time_completed='2021-09-04 16:35:03.319361', job_id='174538', GAL2='1.14', fit_tolerance='1e-08', EG2='0.67', EG='0.67', time_epoch_completed='1630798503.32', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='1.65e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.75' WHERE bin_id='1202' AND source_name='4FGL J1154.0+6018' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 16:35:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 174538: <4FGL_J1154.0+6018_daily_bin1202> in cluster <slac> Done

Job <4FGL_J1154.0+6018_daily_bin1202> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 16:21:20 2021
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 16:21:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 16:21:22 2021
Terminated at Sat Sep  4 16:35:04 2021
Results reported at Sat Sep  4 16:35:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1154.0+6018_daily_bin1202 178.519 60.3107 550886401 551145601 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 :                                   577.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             245.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            824 sec.

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

