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


Performing analysis on: 4FGL_J1154.0+4037_daily_bin765
RA = 178.514, Dec = 40.632
tmin = 437616001, tmax = 437875201
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='160925', job_status='RUN', time_executed='2021-09-04 15:37:12.737160', time_epoch_executed='1630795032.74' WHERE source_name='4FGL J1154.0+4037' and cadence='daily' and bin_id='765'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/160925

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/160925/ft1_4FGL_J1154.0+4037_daily_bin765.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/160925/ft2_4FGL_J1154.0+4037_daily_bin765.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/160925/ft1_4FGL_J1154.0+4037_daily_bin765.fits outfile=/scratch/kocevski/160925/ft1_filteredMKT_4FGL_J1154.0+4037_daily_bin765.fits ra=178.514 dec=40.632 rad=12.0 tmin=437616001.0 tmax=437875201.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 5.55
user 5.30
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/160925/ft1_filtered_4FGL_J1154.0+4037_daily_bin765.fits" evtable="EVENTS" scfile=/scratch/kocevski/160925/ft2_4FGL_J1154.0+4037_daily_bin765.fits sctable="SC_DATA" outfile=/scratch/kocevski/160925/ltcube_437616001_437875201_4FGL_J1154.0+4037_daily_bin765.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/160925/ft2_4FGL_J1154.0+4037_daily_bin765.fits
.....................!
real 11.87
user 11.47
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/160925/ft1_filtered_4FGL_J1154.0+4037_daily_bin765.fits evtable="EVENTS" scfile=/scratch/kocevski/160925/ft2_4FGL_J1154.0+4037_daily_bin765.fits sctable="SC_DATA" expcube=/scratch/kocevski/160925/ltcube_437616001_437875201_4FGL_J1154.0+4037_daily_bin765.fits outfile=/scratch/kocevski/160925/expmap_437616001_437875201_4FGL_J1154.0+4037_daily_bin765.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/160925/ltcube_437616001_437875201_4FGL_J1154.0+4037_daily_bin765.fits
.....................!
real 190.54
user 185.37
sys 4.81

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/160925/ft1_filtered_4FGL_J1154.0+4037_daily_bin765.fits scfile=/scratch/kocevski/160925/ft2_4FGL_J1154.0+4037_daily_bin765.fits outfile=/scratch/kocevski/160925/cmap_437616001_437875201_4FGL_J1154.0+4037_daily_bin765.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/160925/ft1_filtered_4FGL_J1154.0+4037_daily_bin765.fits scfile=/scratch/kocevski/160925/ft2_4FGL_J1154.0+4037_daily_bin765.fits outfile=/scratch/kocevski/160925/cmap_HighResolution_437616001_437875201_4FGL_J1154.0+4037_daily_bin765.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.54
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/160925/ft1_filtered_4FGL_J1154.0+4037_daily_bin765.fits', '/scratch/kocevski/160925/ft2_4FGL_J1154.0+4037_daily_bin765.fits', expMap='/scratch/kocevski/160925/expmap_437616001_437875201_4FGL_J1154.0+4037_daily_bin765.fits', expCube='/scratch/kocevski/160925/ltcube_437616001_437875201_4FGL_J1154.0+4037_daily_bin765.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/160925/Model_4FGL_J1154.0+4037_daily_bin765.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/160925/ft1_filtered_4FGL_J1154.0+4037_daily_bin765.fits
Spacecraft file(s): /scratch/kocevski/160925/ft2_4FGL_J1154.0+4037_daily_bin765.fits
Exposure map: /scratch/kocevski/160925/expmap_437616001_437875201_4FGL_J1154.0+4037_daily_bin765.fits
Exposure cube: /scratch/kocevski/160925/ltcube_437616001_437875201_4FGL_J1154.0+4037_daily_bin765.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/160925/Model_4FGL_J1154.0+4037_daily_bin765.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) = 5268.92678748

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13650E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.5429       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.143       1.0000         .10000E-03   10000.    
     5 'Prefactor '    124.16       1.0000         .10000E-03   10000.    
     6 'norm      '    4.4179       1.0000         .10000E-03   10000.    
     7 'norm      '    .12236E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    39.573       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.096       1.0000         .10000E-03   10000.    
    11 'norm      '    5.1360       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .61392E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.0587       1.0000         .10000E-03   10000.    
    14 'Prefactor '    128.52       1.0000         .10000E-03   10000.    
    15 'norm      '    11.476       1.0000         .10000E-03   10000.    
    16 'norm      '    .12796E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .41503E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11705E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    41.898       1.0000         .10000E-03   10000.    
    20 'Prefactor '    43.473       1.0000         .10000E-03   10000.    
    21 'norm      '    .47411       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .26731E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    10.438       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .38120E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.6710       1.0000         .10000E-03   10000.    
    26 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .13030E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .14135E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1267       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .37325       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=   5268.870     FROM MIGRAD    STATUS=CONVERGED    836 CALLS     3477 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.988        .94749E-07** at limit **
   2  norm          2.5426        .43820       -.13724E-07   -.66272E-04
   3  Prefactor     .10000E-03    5.2333       -.11982E-06** at limit **
   4  Prefactor     11.185        10.817       -.13440E-06    .26637E-05
   5  Prefactor     124.75        87.400        .96271E-06    .13890E-03
   6  norm          4.4734        9.0676        .55546E-05   -.11642E-03
   7  norm          .10000E-03    29.342        .28551E-06** at limit **
   8  Prefactor     .10000E-03    1.6122        .66662E-07** at limit **
   9  Prefactor     40.568        52.011       -.32597E-06    .23663E-05
  10  Prefactor     13.316        13.142       -.63291E-07   -.82241E-05
  11  norm          5.0973        3.7791        .20896E-07   -.33953E-04
  12  Prefactor     .10000E-03    8.0999       -.29999E-07** at limit **
  13  Prefactor     2.0546        2.9778        .31880E-07   -.27309E-04
  14  Prefactor     129.13        67.311       -.84172E-06   -.18432E-03
  15  norm          11.459        2.5610        .87396E-07   -.11536E-03
  16  norm          .10000E-03    9.0466        .26795E-06** at limit **
  17  Prefactor     .10000E-03    9.3463       -.27553E-07** at limit **
  18  Prefactor     .10034E-03    2.0318        .61437E-06** at limit **
  19  Prefactor     42.644        77.652       -.26538E-06    .17992E-04
  20  Prefactor     43.424        24.881        .17524E-07   -.33137E-03
  21  norm          .47424        .91945        .19394E-06    .52618E-03
  22  Prefactor     .10000E-03    13.290       -.16017E-08** at limit **
  23  norm          10.452        5.1306        .16132E-07   -.12095E-04
  24  Prefactor     .10000E-03    10.783       -.66945E-08** at limit **
  25  Prefactor     4.6669        3.7790       -.92611E-08   -.51316E-06
  26  norm          .10000E-03    1.8555       -.22096E-08** at limit **
  27  Prefactor     .10000E-03    7.0326       -.77081E-08** at limit **
  28  Prefactor     .10000E-03    22.215       -.13914E-06** at limit **
  29  Normalizat    1.1262        .19017       -.41716E-07   -.16821E-03
  30  Prefactor     .37309        .21493       -.10442E-05   -.82149E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.54255
  Prefactor  = 0.0001
  Prefactor  = 11.1853
  Prefactor  = 124.747
  norm       = 4.47342
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.5685
  Prefactor  = 13.3164
  norm       = 5.09726
  Prefactor  = 0.0001
  Prefactor  = 2.05463
  Prefactor  = 129.129
  norm       = 11.4592
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010034
  Prefactor  = 42.6435
  Prefactor  = 43.424
  norm       = 0.474239
  Prefactor  = 0.0001
  norm       = 10.4518
  Prefactor  = 0.0001
  Prefactor  = 4.66689
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.12617
  Prefactor  = 0.373092
 **********
 **   18 **HESSE 
 **********

 FCN=   5268.870     FROM HESSE     STATUS=OK           588 CALLS     4065 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.5426        .43930        .19176E-04   -1.5389    
   3  Prefactor     .10000E-03    5.2453        .16219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.185        10.833        .12002E-03   -1.5039    
   5  Prefactor     124.75        87.767        .18062E-03   -1.3469    
   6  norm          4.4734        9.0395        .95798E-03   -1.5285    
   7  norm          .10000E-03    29.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.6275        .17843E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     40.568        51.697        .63718E-04   -1.4433    
  10  Prefactor     13.316        13.134        .11069E-03   -1.4978    
  11  norm          5.0973        3.7720        .10049E-03   -1.5256    
  12  Prefactor     .10000E-03    8.1402        .20164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.0546        2.9587        .14598E-03   -1.5421    
  14  Prefactor     129.13        67.829        .17757E-03   -1.3430    
  15  norm          11.459        2.5837        .43366E-04   -1.5031    
  16  norm          .10000E-03    9.1139        .20591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.3633        .21247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10034E-03    34.182        .17717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     42.644        77.915        .61931E-04   -1.4401    
  20  Prefactor     43.424        22.611        .60803E-04   -1.4389    
  21  norm          .47424        .74696        .94690E-03   -1.5570    
  22  Prefactor     .10000E-03    13.316        .21438E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          10.452        5.1390        .10572E-03   -1.5061    
  24  Prefactor     .10000E-03    11.288        .42571E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     4.6669        3.7895        .11711E-03   -1.5276    
  26  norm          .10000E-03    1.8578        .96563E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    7.0466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    22.284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1262        .20493        .21706E-03   -.88916    
  30  Prefactor     .37309        .22837        .41488E-03   -1.1820    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.8457e-09
Minuit parameter uncertainties:
  1  4.6728e-05
  2  0.439304
  3  1.24421e-05
  4  10.8351
  5  87.859
  6  9.04228
  7  2.03398e-05
  8  2.76451e-06
  9  51.7539
  10  13.1366
  11  3.77213
  12  4.19484e-07
  13  2.95888
  14  67.8699
  15  2.58377
  16  3.41932e-06
  17  1.97851e-06
  18  0.00682533
  19  78.1023
  20  22.6152
  21  0.746971
  22  2.65675e-06
  23  5.13922
  24  1.5272e-05
  25  3.78967
  26  1.99163e-07
  27  7.27008e-07
  28  4.45633e-05
  29  0.205072
  30  0.228931
Done.

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

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  4.264e+01  7.810e+01  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:  3.731e-01  2.289e-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:  1.126e+00  2.051e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.41
Ra Dec: 178.514 40.632
Photon Flux Upper Limit: 1.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.51e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/160925/likelihoodResults_437616001_437875201_4FGL_J1154.0+4037_daily_bin765.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5267.91029121
delta logL = 0.959506842618

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5267.90294288
delta logL = 0.966855175277

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5760       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5025       1.0000          .0000       10.000    
     3 'Normalizat'    1.0660       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .41701       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=   5267.903     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      263 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5564        76.790        .42533E-02    .33715E-03
   2  Index         3.5038        2.2201        .90458E-01    .17512E-03
   3  Normalizat    1.0660        .55720E-01    .39591E-01    .92067E-06
   4  Prefactor     .41698        .62002E-01    .88652E-01    .36237E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55635
  Index      = 3.50382
  Normalizat = 1.06602
  Prefactor  = 0.416976
 **********
 **   18 **HESSE 
 **********

 FCN=   5267.903     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      296 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5564        145.48        .11793E-03   -1.5236    
   2  Index         3.5038        3.5352        .32468E-02   -.30389    
   3  Normalizat    1.0660        .18943        .22128E-03   -.90850    
   4  Prefactor     .41698        .21502        .39303E-03   -1.1595    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.47318e-10
Minuit parameter uncertainties:
  1  57.0176
  2  3.98155
  3  0.189555
  4  0.215434
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/160925': 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) = 5267.90294213
delta logL = 0.966855924332

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  5.556e+00  5.702e+01  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  3.504e+00  3.982e+00  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:  4.170e-01  2.154e-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:  1.066e+00  1.896e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.41
Ra Dec: 178.514 40.632
Photon Index (Free Index): 3.50 +/- 3.98
Photon Flux (Free Index): 9.20e-08 +/- 6.97e-08
Energy Flux (Free Index): 1.53e-05 +/- 1.65e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/160925/cmap_HighResolution_437616001_437875201_4FGL_J1154.0+4037_daily_bin765.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.51e-03', comment='SUCCESS', energy_flux2='1.53e-05', dlogl='9.67e-01', photon_flux2='9.20e-08', job_status='DONE', time_completed='2021-09-04 15:51:27.122437', photon_index_error2='3.98', photon_index2='3.50', ts='0.41', fit_tolerance='1e-08', GAL='0.37', photon_index_error='0.00', photon_flux_upper_limit='1.12e-07', energy_flux_error2='1.65e-05', EG='1.13', time_epoch_completed='1630795887.12', return_code='0', job_id='160925', GAL2='0.42', EG2='1.07', return_code2='102', photon_flux_error2='6.97e-08', ts2='2.41', photon_index='2.11' WHERE bin_id='765' AND source_name='4FGL J1154.0+4037' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:51:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 160925: <4FGL_J1154.0+4037_daily_bin765> in cluster <slac> Done

Job <4FGL_J1154.0+4037_daily_bin765> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 15:37:00 2021
Job was executed on host(s) <bullet0111>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 15:37:03 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:37:03 2021
Terminated at Sat Sep  4 15:51:27 2021
Results reported at Sat Sep  4 15:51:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1154.0+4037_daily_bin765 178.514 40.632 437616001 437875201 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 :                                   852.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             338.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            867 sec.

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

