/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 5 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 = 7354
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1154.0+4037_daily_bin181
RA = 178.514, Dec = 40.632
tmin = 286243201, tmax = 286502401
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='158757', job_status='RUN', time_executed='2021-09-04 15:31:27.379202', time_epoch_executed='1630794687.38' WHERE source_name='4FGL J1154.0+4037' and cadence='daily' and bin_id='181'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/158757

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/158757/ft1_4FGL_J1154.0+4037_daily_bin181.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/158757/ft2_4FGL_J1154.0+4037_daily_bin181.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/158757/ft1_4FGL_J1154.0+4037_daily_bin181.fits outfile=/scratch/kocevski/158757/ft1_filteredMKT_4FGL_J1154.0+4037_daily_bin181.fits ra=178.514 dec=40.632 rad=12.0 tmin=286243201.0 tmax=286502401.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.46
user 3.22
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/158757/ft2_4FGL_J1154.0+4037_daily_bin181.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/158757/ft2_4FGL_J1154.0+4037_daily_bin181.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/158757/ft1_filteredMKT_4FGL_J1154.0+4037_daily_bin181.fits evtable="EVENTS" outfile="/scratch/kocevski/158757/ft1_filtered_4FGL_J1154.0+4037_daily_bin181.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.52
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/158757/ft1_filtered_4FGL_J1154.0+4037_daily_bin181.fits" evtable="EVENTS" scfile=/scratch/kocevski/158757/ft2_4FGL_J1154.0+4037_daily_bin181.fits sctable="SC_DATA" outfile=/scratch/kocevski/158757/ltcube_286243201_286502401_4FGL_J1154.0+4037_daily_bin181.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/158757/ft2_4FGL_J1154.0+4037_daily_bin181.fits
.....................!
real 13.60
user 13.19
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/158757/ft1_filtered_4FGL_J1154.0+4037_daily_bin181.fits evtable="EVENTS" scfile=/scratch/kocevski/158757/ft2_4FGL_J1154.0+4037_daily_bin181.fits sctable="SC_DATA" expcube=/scratch/kocevski/158757/ltcube_286243201_286502401_4FGL_J1154.0+4037_daily_bin181.fits outfile=/scratch/kocevski/158757/expmap_286243201_286502401_4FGL_J1154.0+4037_daily_bin181.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/158757/ltcube_286243201_286502401_4FGL_J1154.0+4037_daily_bin181.fits
.....................!
real 190.94
user 185.85
sys 4.25

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 213 point sources and 0 extended sources

Setting source of interest to:
4FGL J1154.0+4037 @ 178.514 40.632

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/158757/ft1_filtered_4FGL_J1154.0+4037_daily_bin181.fits scfile=/scratch/kocevski/158757/ft2_4FGL_J1154.0+4037_daily_bin181.fits outfile=/scratch/kocevski/158757/cmap_286243201_286502401_4FGL_J1154.0+4037_daily_bin181.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.514 yref=40.632 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.61
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/158757/ft1_filtered_4FGL_J1154.0+4037_daily_bin181.fits scfile=/scratch/kocevski/158757/ft2_4FGL_J1154.0+4037_daily_bin181.fits outfile=/scratch/kocevski/158757/cmap_HighResolution_286243201_286502401_4FGL_J1154.0+4037_daily_bin181.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.514 yref=40.632 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.68
user 0.41
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/158757/ft1_filtered_4FGL_J1154.0+4037_daily_bin181.fits evtable="EVENTS" scfile=/scratch/kocevski/158757/ft2_4FGL_J1154.0+4037_daily_bin181.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/158757/Model_4FGL_J1154.0+4037_daily_bin181.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/158757/ft1_filtered_4FGL_J1154.0+4037_daily_bin181.fits.....................!
real 51.14
user 49.51
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/158757/ft1_filtered_4FGL_J1154.0+4037_daily_bin181.fits', '/scratch/kocevski/158757/ft2_4FGL_J1154.0+4037_daily_bin181.fits', expMap='/scratch/kocevski/158757/expmap_286243201_286502401_4FGL_J1154.0+4037_daily_bin181.fits', expCube='/scratch/kocevski/158757/ltcube_286243201_286502401_4FGL_J1154.0+4037_daily_bin181.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/158757/Model_4FGL_J1154.0+4037_daily_bin181.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1154.0+4037'

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  8.147e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.115e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
349        Scale:  2.078e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/158757/ft1_filtered_4FGL_J1154.0+4037_daily_bin181.fits
Spacecraft file(s): /scratch/kocevski/158757/ft2_4FGL_J1154.0+4037_daily_bin181.fits
Exposure map: /scratch/kocevski/158757/expmap_286243201_286502401_4FGL_J1154.0+4037_daily_bin181.fits
Exposure cube: /scratch/kocevski/158757/ltcube_286243201_286502401_4FGL_J1154.0+4037_daily_bin181.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/158757/Model_4FGL_J1154.0+4037_daily_bin181.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) = 5909.87497863

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.3976       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10252E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.3458       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    35.343       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.2310       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.800       1.0000         .10000E-03   10000.    
    11 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.6916       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.426       1.0000         .10000E-03   10000.    
    15 'norm      '    3.8234       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.3987       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.1136       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.7303       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .13696E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.7753       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.0725       1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .95722       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0543       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5909.743     FROM MIGRAD    STATUS=CONVERGED    760 CALLS     3894 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    100.02       -.57207E-05** at limit **
   2  norm          1.3976        .33546       -.52470E-08    .26208E-03
   3  Prefactor     .10000E-03    9.6519       -.13898E-05** at limit **
   4  Prefactor     7.3474        10.535        .58667E-06   -.20470E-03
   5  Prefactor     .10000E-03    32.527        .33950E-05** at limit **
   6  norm          35.348        17.878       -.28232E-06   -.74797E-04
   7  norm          .10000E-03    16.471        .12747E-05** at limit **
   8  Prefactor     4.2312        2.5012        .37560E-07   -.82503E-05
   9  Prefactor     .10000E-03    22.710       -.47993E-06** at limit **
  10  Prefactor     15.804        18.875       -.16802E-05   -.48974E-04
  11  norm          .10000E-03    1.0515       -.37306E-07** at limit **
  12  Prefactor     4.6885        11.084        .44541E-05   -.72853E-03
  13  Prefactor     .10000E-03    2.2123       -.40582E-08** at limit **
  14  Prefactor     22.417        50.985       -.43563E-05   -.12544E-03
  15  norm          3.8233        1.5707        .17151E-06   -.10793E-03
  16  norm          .10000E-03    2.7985        .19100E-07** at limit **
  17  Prefactor     8.3864        21.471        .25482E-06   -.14875E-05
  18  Prefactor     6.1129        3.4118        .10332E-06    .27536E-04
  19  Prefactor     .10000E-03    23.249       -.10924E-05** at limit **
  20  Prefactor     .10000E-03    8.5324        .17530E-05** at limit **
  21  norm          1.7303        1.1020       -.19222E-07   -.10766E-03
  22  Prefactor     .10000E-03    94.989        .40222E-05** at limit **
  23  norm          4.7746        3.7635        .84240E-06    .52956E-03
  24  Prefactor     .10000E-03    2.5855        .18059E-07** at limit **
  25  Prefactor     8.0725        4.1561       -.79460E-06   -.92550E-03
  26  norm          .10000E-03    3.0045       -.24061E-08** at limit **
  27  Prefactor     .10000E-03    28.334       -.21378E-05** at limit **
  28  Prefactor     .10000E-03    7.8642       -.64361E-06** at limit **
  29  Normalizat    .95709        .17546        .27935E-06   -.56413E-04
  30  Prefactor     1.0544        .20660       -.50518E-06   -.36309E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010001
  norm       = 1.39763
  Prefactor  = 0.000100001
  Prefactor  = 7.34737
  Prefactor  = 0.000100004
  norm       = 35.3484
  norm       = 0.000100001
  Prefactor  = 4.23118
  Prefactor  = 0.0001
  Prefactor  = 15.8044
  norm       = 0.0001
  Prefactor  = 4.68851
  Prefactor  = 0.0001
  Prefactor  = 22.417
  norm       = 3.82328
  norm       = 0.0001
  Prefactor  = 8.38642
  Prefactor  = 6.11291
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.73027
  Prefactor  = 0.000100004
  norm       = 4.77457
  Prefactor  = 0.0001
  Prefactor  = 8.07255
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.957089
  Prefactor  = 1.05442
 **********
 **   18 **HESSE 
 **********

 FCN=   5909.743     FROM HESSE     STATUS=OK           582 CALLS     4476 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    101.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.3976        .33690        .20929E-04   -1.5472    
   3  Prefactor     .10000E-03    9.7688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.3474        10.598        .73992E-03   -1.5166    
   5  Prefactor     .10000E-03    33.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          35.348        17.859        .67409E-04   -1.4518    
   7  norm          .10000E-03    16.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.2312        2.4950        .89163E-04   -1.5297    
   9  Prefactor     .10000E-03    22.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.804        19.187        .10076E-03   -1.4913    
  11  norm          .10000E-03    1.0647        .76838E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.6885        12.874        .92894E-03   -1.5275    
  13  Prefactor     .10000E-03    2.2298        .11160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     22.417        52.077        .84582E-04   -1.4761    
  15  norm          3.8233        1.5828        .51475E-04   -1.5317    
  16  norm          .10000E-03    2.7988        .12560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.3864        21.497        .13833E-03   -1.5129    
  18  Prefactor     6.1129        3.4091        .10211E-03   -1.5213    
  19  Prefactor     .10000E-03    23.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.6812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.7303        1.0977        .62358E-04   -1.5445    
  22  Prefactor     .10000E-03    96.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.7746        3.8270        .12058E-03   -1.5271    
  24  Prefactor     .10000E-03    2.5901        .12071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     8.0725        4.2650        .10340E-03   -1.5140    
  26  norm          .10000E-03    3.0264        .13012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    28.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    7.8892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .95709        .20683        .24679E-03   -.94482    
  30  Prefactor     1.0544        .24263        .28861E-03   -.90937    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.93543e-09
Minuit parameter uncertainties:
  1  0.00204665
  2  0.336905
  3  0.000141349
  4  10.6005
  5  0.000694933
  6  17.8616
  7  0.000184707
  8  2.49511
  9  7.09026e-05
  10  19.1947
  11  3.96617e-06
  12  12.8816
  13  1.75609e-07
  14  52.1828
  15  1.58285
  16  1.91869e-06
  17  21.5169
  18  3.40918
  19  0.000185502
  20  0.000177226
  21  1.09767
  22  0.00120069
  23  3.82719
  24  2.90458e-07
  25  4.2652
  26  6.33172e-07
  27  0.000397015
  28  6.45962e-05
  29  0.207002
  30  0.24288
Done.

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

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  1.855e-04  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.115e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
349        Scale:  2.078e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
677    Prefactor:  1.054e+00  2.429e-01  0.000e+00  1.000e+01 ( 1.000e+00)
678        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
679        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
676   Normalization:  9.571e-01  2.070e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 178.514 40.632
Photon Flux Upper Limit: 5.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.45e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/158757/likelihoodResults_286243201_286502401_4FGL_J1154.0+4037_daily_bin181.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) = 5909.74333136
delta logL = -0.000204294126888

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5909.74312708
delta logL = -1.55823727255e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0315       1.0000          .0000       10.000    
     3 'Normalizat'    .95710       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0544       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5909.743     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      232 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1384.9        .90712E-02** at limit **
   2  Index         2.0290        5.4525        .50000        .82750E-06
   3  Normalizat    .95709        .36537E-01    .45627E-01    .12075E-04
   4  Prefactor     1.0544        .44830E-01    .65249E-01    .10228E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.02898
  Normalizat = 0.95709
  Prefactor  = 1.05442
 **********
 **   18 **HESSE 
 **********

 FCN=   5909.743     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      265 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6635.8        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0290        5.0985        .50000       -.63628    
   3  Normalizat    .95709        .71729E-01    .24679E-03   -.94482    
   4  Prefactor     1.0544        .87960E-01    .28861E-03   -.90937    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.09469e-10
Minuit parameter uncertainties:
  1  1.02728e-06
  2  50.7374
  3  0.0717365
  4  0.0879719
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/158757': 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): 102
logL (Free Index) = 5909.74312705
delta logL = 1.7203092284e-08

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  1.027e-06  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.029e+00  5.074e+01  0.000e+00  1.000e+01 (-1.000e+00)
349        Scale:  2.078e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
677    Prefactor:  1.054e+00  8.797e-02  0.000e+00  1.000e+01 ( 1.000e+00)
678        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
679        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
676   Normalization:  9.571e-01  7.174e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 178.514 40.632

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/158757/cmap_HighResolution_286243201_286502401_4FGL_J1154.0+4037_daily_bin181.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.45e-03', job_status='DONE', photon_flux_upper_limit='5.88e-08', time_completed='2021-09-04 15:47:03.334416', job_id='158757', GAL2='1.05', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1630795623.33', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='1.72e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='181' AND source_name='4FGL J1154.0+4037' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:47:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0186>
Subject: Job 158757: <4FGL_J1154.0+4037_daily_bin181> in cluster <slac> Done

Job <4FGL_J1154.0+4037_daily_bin181> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep  4 15:31:12 2021
Job was executed on host(s) <bullet0186>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 15:31:13 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:31:13 2021
Terminated at Sat Sep  4 15:47:04 2021
Results reported at Sat Sep  4 15:47:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1154.0+4037_daily_bin181 178.514 40.632 286243201 286502401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1154.0+4037 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   933.33 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             346.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   950 sec.
    Turnaround time :                            952 sec.

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

