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


Performing analysis on: 4FGL_J1154.0+4037_daily_bin653
RA = 178.514, Dec = 40.632
tmin = 408585601, tmax = 408844801
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='160779', job_status='RUN', time_executed='2021-09-04 15:38:45.704053', time_epoch_executed='1630795125.7' WHERE source_name='4FGL J1154.0+4037' and cadence='daily' and bin_id='653'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/160779

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/160779/ft1_4FGL_J1154.0+4037_daily_bin653.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/160779/ft2_4FGL_J1154.0+4037_daily_bin653.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/160779/ft1_4FGL_J1154.0+4037_daily_bin653.fits outfile=/scratch/kocevski/160779/ft1_filteredMKT_4FGL_J1154.0+4037_daily_bin653.fits ra=178.514 dec=40.632 rad=12.0 tmin=408585601.0 tmax=408844801.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.28
user 4.07
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/160779/ft1_filtered_4FGL_J1154.0+4037_daily_bin653.fits" evtable="EVENTS" scfile=/scratch/kocevski/160779/ft2_4FGL_J1154.0+4037_daily_bin653.fits sctable="SC_DATA" outfile=/scratch/kocevski/160779/ltcube_408585601_408844801_4FGL_J1154.0+4037_daily_bin653.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/160779/ft2_4FGL_J1154.0+4037_daily_bin653.fits
.....................!
real 12.28
user 11.92
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/160779/ft1_filtered_4FGL_J1154.0+4037_daily_bin653.fits evtable="EVENTS" scfile=/scratch/kocevski/160779/ft2_4FGL_J1154.0+4037_daily_bin653.fits sctable="SC_DATA" expcube=/scratch/kocevski/160779/ltcube_408585601_408844801_4FGL_J1154.0+4037_daily_bin653.fits outfile=/scratch/kocevski/160779/expmap_408585601_408844801_4FGL_J1154.0+4037_daily_bin653.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/160779/ltcube_408585601_408844801_4FGL_J1154.0+4037_daily_bin653.fits
.....................!
real 190.64
user 185.09
sys 5.11

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/160779/ft1_filtered_4FGL_J1154.0+4037_daily_bin653.fits scfile=/scratch/kocevski/160779/ft2_4FGL_J1154.0+4037_daily_bin653.fits outfile=/scratch/kocevski/160779/cmap_408585601_408844801_4FGL_J1154.0+4037_daily_bin653.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/160779/ft1_filtered_4FGL_J1154.0+4037_daily_bin653.fits scfile=/scratch/kocevski/160779/ft2_4FGL_J1154.0+4037_daily_bin653.fits outfile=/scratch/kocevski/160779/cmap_HighResolution_408585601_408844801_4FGL_J1154.0+4037_daily_bin653.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.413       1.0000         .10000E-03   10000.    
     2 'norm      '    1.4682       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10389E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    15.113       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .44105       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.0150       1.0000         .10000E-03   10000.    
    14 'Prefactor '    221.30       1.0000         .10000E-03   10000.    
    15 'norm      '    4.8877       1.0000         .10000E-03   10000.    
    16 'norm      '    10.981       1.0000         .10000E-03   10000.    
    17 'Prefactor '    41.702       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.5129       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.1272       1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.685       1.0000         .10000E-03   10000.    
    23 'norm      '    8.4123       1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.088       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    28.063       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10223E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1204       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .70330       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=   2839.405     FROM MIGRAD    STATUS=CONVERGED    750 CALLS     3939 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.233        641.69       -.80422E-06   -.77458E-05
   2  norm          1.4682        .50431       -.38082E-08   -.17313E-03
   3  Prefactor     .10000E-03    39.854       -.49321E-06** at limit **
   4  Prefactor     .10000E-03    25.599        .57584E-07** at limit **
   5  Prefactor     .10000E-03    112.79       -.27813E-06** at limit **
   6  norm          15.112        18.831       -.10581E-06   -.20975E-04
   7  norm          .10000E-03    50.345        .65689E-07** at limit **
   8  Prefactor     .10000E-03    2.1954       -.16449E-06** at limit **
   9  Prefactor     .10000E-03    41.184       -.24648E-06** at limit **
  10  Prefactor     .10000E-03    11.628       -.10007E-06** at limit **
  11  norm          .44096        4.8242        .81750E-06    .63410E-04
  12  Prefactor     .10000E-03    4.9050       -.30290E-07** at limit **
  13  Prefactor     8.0152        8.7924        .14089E-06   -.21524E-04
  14  Prefactor     221.26        128.52        .19501E-06   -.39734E-04
  15  norm          4.8886        3.3339        .10415E-06   -.63183E-04
  16  norm          10.980        13.520       -.10700E-06   -.70461E-05
  17  Prefactor     41.674        53.350        .16102E-05   -.21211E-04
  18  Prefactor     1.5128        7.8083        .16336E-05    .72927E-04
  19  Prefactor     .10000E-03    38.441       -.40562E-07** at limit **
  20  Prefactor     .10000E-03    18.615       -.21386E-07** at limit **
  21  norm          1.1266        1.4981        .56241E-06    .48389E-03
  22  Prefactor     14.824        92.160       -.33256E-05   -.33815E-04
  23  norm          8.4115        5.3745       -.37385E-06   -.81588E-03
  24  Prefactor     10.086        10.904        .32929E-06   -.25133E-04
  25  Prefactor     .10000E-03    3.7911        .13048E-05** at limit **
  26  norm          28.062        20.012        .80614E-06    .71619E-04
  27  Prefactor     .10000E-03    77.552        .26056E-06** at limit **
  28  Prefactor     .10000E-03    114.07       -.55237E-06** at limit **
  29  Normalizat    1.1197        .34196       -.70952E-05   -.18847E-04
  30  Prefactor     .70405        .38151        .81236E-05   -.10897E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.2328
  norm       = 1.46819
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.1117
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.440959
  Prefactor  = 0.0001
  Prefactor  = 8.01519
  Prefactor  = 221.261
  norm       = 4.88859
  norm       = 10.9803
  Prefactor  = 41.6742
  Prefactor  = 1.51278
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.12663
  Prefactor  = 14.8244
  norm       = 8.41146
  Prefactor  = 10.0862
  Prefactor  = 0.0001
  norm       = 28.0619
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.11972
  Prefactor  = 0.704052
 **********
 **   18 **HESSE 
 **********

 FCN=   2839.405     FROM HESSE     STATUS=OK           582 CALLS     4521 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.233        651.27        .95980E-04   -1.4877    
   2  norm          1.4682        .50438        .21238E-04   -1.5466    
   3  Prefactor     .10000E-03    40.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    25.830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    112.79        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          15.112        18.809        .10303E-03   -1.4930    
   7  norm          .10000E-03    50.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.2307        .76942E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    41.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.647        .17747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .44096        4.9376        .21944E-03   -1.5575    
  12  Prefactor     .10000E-03    4.9071        .11526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.0152        8.7700        .14162E-03   -1.5142    
  14  Prefactor     221.26        129.01        .13596E-03   -1.2722    
  15  norm          4.8886        3.3434        .64616E-04   -1.5266    
  16  norm          10.980        13.520        .12090E-03   -1.5045    
  17  Prefactor     41.674        53.167        .62075E-04   -1.4416    
  18  Prefactor     1.5128        7.8369        .28333E-03   -1.5462    
  19  Prefactor     .10000E-03    38.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    18.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.1266        1.4952        .72944E-04   -1.5496    
  22  Prefactor     14.824        93.398        .10452E-03   -1.4938    
  23  norm          8.4115        5.2062        .91462E-04   -1.5128    
  24  Prefactor     10.086        10.903        .12616E-03   -1.5073    
  25  Prefactor     .10000E-03    5.7321        .18941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          28.062        20.043        .75627E-04   -1.4648    
  27  Prefactor     .10000E-03    77.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    115.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1197        .36154        .25973E-03   -.89121    
  30  Prefactor     .70405        .40237        .36295E-03   -1.0337    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.52688e-10
Minuit parameter uncertainties:
  1  214.441
  2  0.504384
  3  3.51316e-05
  4  2.70429e-05
  5  0.000111403
  6  18.8168
  7  5.37033e-05
  8  6.31438e-06
  9  8.82228e-05
  10  2.464e-06
  11  2.9511
  12  3.49315e-07
  13  8.77137
  14  129.172
  15  3.34353
  16  13.5237
  17  53.2279
  18  6.88756
  19  3.53303e-05
  20  1.52883e-05
  21  1.49526
  22  74.5915
  23  5.20647
  24  10.9047
  25  5.61141e-05
  26  20.0477
  27  0.000107017
  28  0.000240115
  29  0.362349
  30  0.404047
Done.

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

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  3.533e-05  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:  7.041e-01  4.040e-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.120e+00  3.623e-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: 1.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.40e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/160779/likelihoodResults_408585601_408844801_4FGL_J1154.0+4037_daily_bin653.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) = 2839.40479788
delta logL = -0.000121730438877

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2839.40467701
delta logL = -8.64570665726e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5664       1.0000          .0000       10.000    
     3 'Normalizat'    1.1196       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70416       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2839.405     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      281 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10491E-03    5.3610        .18142E-01** at limit **
   2  Index         2.4553        6.1962        .50000        .10098E-04
   3  Normalizat    1.1197        .31181E-02    .25974E-03    .10866E-03
   4  Prefactor     .70406        .35445E-02    .36293E-03    .13762E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104908
  Index      = 2.45528
  Normalizat = 1.11971
  Prefactor  = 0.704062
 **********
 **   18 **HESSE 
 **********

 FCN=   2839.405     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      310 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10491E-03    145.99        .27036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4553        6.2327        .50000       -.53396    
   3  Normalizat    1.1197        .16386E-01    .51948E-04   -.89121    
   4  Prefactor     .70406        .18627E-01    .14517E-04   -1.0337    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.43499e-09
Minuit parameter uncertainties:
  1  0.0536657
  2  443.84
  3  0.0163857
  4  0.0186269
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/160779': 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) = 2839.40467679
delta logL = -6.41965471004e-07

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  1.049e-04  5.367e-02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.455e+00  4.438e+02  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:  7.041e-01  1.863e-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:  1.120e+00  1.639e-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/160779/cmap_HighResolution_408585601_408844801_4FGL_J1154.0+4037_daily_bin653.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.40e-03', job_status='DONE', photon_flux_upper_limit='1.11e-07', time_completed='2021-09-04 15:48:44.859220', job_id='160779', GAL2='0.70', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1630795724.86', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='-6.42e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='653' AND source_name='4FGL J1154.0+4037' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:48:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 160779: <4FGL_J1154.0+4037_daily_bin653> in cluster <slac> Done

Job <4FGL_J1154.0+4037_daily_bin653> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 15:36:46 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 15:36:48 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:36:48 2021
Terminated at Sat Sep  4 15:48:45 2021
Results reported at Sat Sep  4 15:48:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1154.0+4037_daily_bin653 178.514 40.632 408585601 408844801 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 :                                   598.27 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             278.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   717 sec.
    Turnaround time :                            719 sec.

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

