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


Performing analysis on: 4FGL_J1154.0+4037_daily_bin906
RA = 178.514, Dec = 40.632
tmin = 474163201, tmax = 474422401
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='162075', job_status='RUN', time_executed='2021-09-04 15:43:56.243084', time_epoch_executed='1630795436.24' WHERE source_name='4FGL J1154.0+4037' and cadence='daily' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/162075

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/162075/ft1_4FGL_J1154.0+4037_daily_bin906.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/162075/ft2_4FGL_J1154.0+4037_daily_bin906.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/162075/ft1_4FGL_J1154.0+4037_daily_bin906.fits outfile=/scratch/kocevski/162075/ft1_filteredMKT_4FGL_J1154.0+4037_daily_bin906.fits ra=178.514 dec=40.632 rad=12.0 tmin=474163201.0 tmax=474422401.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.58
user 5.24
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/162075/ft2_4FGL_J1154.0+4037_daily_bin906.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/162075/ft1_filteredMKT_4FGL_J1154.0+4037_daily_bin906.fits evtable="EVENTS" outfile="/scratch/kocevski/162075/ft1_filtered_4FGL_J1154.0+4037_daily_bin906.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.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/162075/ft1_filtered_4FGL_J1154.0+4037_daily_bin906.fits evtable="EVENTS" scfile=/scratch/kocevski/162075/ft2_4FGL_J1154.0+4037_daily_bin906.fits sctable="SC_DATA" expcube=/scratch/kocevski/162075/ltcube_474163201_474422401_4FGL_J1154.0+4037_daily_bin906.fits outfile=/scratch/kocevski/162075/expmap_474163201_474422401_4FGL_J1154.0+4037_daily_bin906.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/162075/ltcube_474163201_474422401_4FGL_J1154.0+4037_daily_bin906.fits
.....................!
real 190.96
user 185.20
sys 5.31

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/162075/ft1_filtered_4FGL_J1154.0+4037_daily_bin906.fits scfile=/scratch/kocevski/162075/ft2_4FGL_J1154.0+4037_daily_bin906.fits outfile=/scratch/kocevski/162075/cmap_474163201_474422401_4FGL_J1154.0+4037_daily_bin906.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/162075/ft1_filtered_4FGL_J1154.0+4037_daily_bin906.fits scfile=/scratch/kocevski/162075/ft2_4FGL_J1154.0+4037_daily_bin906.fits outfile=/scratch/kocevski/162075/cmap_HighResolution_474163201_474422401_4FGL_J1154.0+4037_daily_bin906.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/162075/ft1_filtered_4FGL_J1154.0+4037_daily_bin906.fits evtable="EVENTS" scfile=/scratch/kocevski/162075/ft2_4FGL_J1154.0+4037_daily_bin906.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/162075/Model_4FGL_J1154.0+4037_daily_bin906.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/162075/ft1_filtered_4FGL_J1154.0+4037_daily_bin906.fits......................!
real 31.10
user 29.71
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10988E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.5724       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.440       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    47.975       1.0000         .10000E-03   10000.    
     7 'norm      '    .10248E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .80302E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10442E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .75596E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.8268       1.0000         .10000E-03   10000.    
    14 'Prefactor '    71.489       1.0000         .10000E-03   10000.    
    15 'norm      '    2.1484       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    30.034       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15899E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.371       1.0000         .10000E-03   10000.    
    21 'norm      '    3.4974       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10189E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.5513       1.0000         .10000E-03   10000.    
    26 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.3788       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .51769       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=   2605.377     FROM MIGRAD    STATUS=CONVERGED    797 CALLS     3984 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    146.12       -.30353E-05** at limit **
   2  norm          2.5724        .60534       -.13423E-07   -.53406E-03
   3  Prefactor     10.423        37.575       -.15589E-05   -.41126E-04
   4  Prefactor     .10000E-03    17.112       -.42906E-06** at limit **
   5  Prefactor     .10000E-03    69.669        .84386E-06** at limit **
   6  norm          47.949        34.161       -.13367E-06   -.12458E-03
   7  norm          .10000E-03    102.74        .13284E-05** at limit **
   8  Prefactor     .10002E-03    3.6727        .11282E-05** at limit **
   9  Prefactor     .10000E-03    402.78        .42754E-05** at limit **
  10  Prefactor     .10000E-03    9.4326        .94987E-09** at limit **
  11  norm          .10002E-03    3.6869        .13894E-05** at limit **
  12  Prefactor     .10000E-03    8.1713       -.10306E-07** at limit **
  13  Prefactor     5.8199        7.7015       -.31036E-06   -.15692E-03
  14  Prefactor     71.418        88.713       -.58658E-06   -.39973E-04
  15  norm          2.1476        2.0601       -.50545E-06   -.10484E-03
  16  norm          .10000E-03    6.9665        .20936E-06** at limit **
  17  Prefactor     30.032        48.797        .11316E-06   -.29795E-04
  18  Prefactor     .10000E-03    12.483        .42458E-06** at limit **
  19  Prefactor     .10000E-03    54.440       -.60291E-06** at limit **
  20  Prefactor     15.386        38.845       -.40461E-07   -.23347E-04
  21  norm          3.4981        2.8772       -.20627E-07   -.90500E-04
  22  Prefactor     .10000E-03    19.758        .24195E-06** at limit **
  23  norm          .10000E-03    16.322       -.44307E-05** at limit **
  24  Prefactor     .10000E-03    5.9072       -.88113E-08** at limit **
  25  Prefactor     8.5615        6.8100       -.53723E-06   -.29446E-03
  26  norm          .10000E-03    6.1638        .56711E-08** at limit **
  27  Prefactor     .10000E-03    45.977        .37202E-06** at limit **
  28  Prefactor     .10000E-03    19.568       -.94589E-07** at limit **
  29  Normalizat    1.3787        .29888       -.11657E-05   -.12386E-03
  30  Prefactor     .51761        .33242        .68869E-06   -.12792E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.57237
  Prefactor  = 10.4235
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 47.9491
  norm       = 0.0001
  Prefactor  = 0.000100018
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100025
  Prefactor  = 0.0001
  Prefactor  = 5.81992
  Prefactor  = 71.4176
  norm       = 2.14756
  norm       = 0.0001
  Prefactor  = 30.0317
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.3857
  norm       = 3.49813
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.56149
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.37866
  Prefactor  = 0.517609
 **********
 **   18 **HESSE 
 **********

 FCN=   2605.377     FROM HESSE     STATUS=OK           580 CALLS     4564 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    146.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.5724        .60748        .17993E-04   -1.5387    
   3  Prefactor     10.423        37.579        .12400E-03   -1.5062    
   4  Prefactor     .10000E-03    17.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    69.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          47.949        33.878        .57892E-04   -1.4322    
   7  norm          .10000E-03    103.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10002E-03    25.383        .16849E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    406.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.4331        .15313E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10002E-03    24.705        .16220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.1732        .14252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.8199        7.6640        .15631E-03   -1.5225    
  14  Prefactor     71.418        87.918        .47480E-04   -1.4016    
  15  norm          2.1476        2.0416        .31514E-03   -1.5415    
  16  norm          .10000E-03    6.9695        .13161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     30.032        48.905        .73109E-04   -1.4611    
  18  Prefactor     .10000E-03    12.832        .34902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    54.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     15.386        38.619        .10216E-03   -1.4923    
  21  norm          3.4981        2.8732        .74574E-04   -1.5334    
  22  Prefactor     .10000E-03    19.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    16.483        .20986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.9278        .12116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     8.5615        6.1682        .10441E-03   -1.5123    
  26  norm          .10000E-03    6.1706        .12377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    46.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    19.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.3787        .33886        .22678E-03   -.81248    
  30  Prefactor     .51761        .37071        .40281E-03   -1.1118    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91393e-09
Minuit parameter uncertainties:
  1  0.000484957
  2  0.607479
  3  37.6647
  4  7.33295e-06
  5  0.000137277
  6  33.8913
  7  0.000246049
  8  0.001352
  9  0.000304444
  10  3.43766e-06
  11  0.00157223
  12  3.08881e-06
  13  7.66532
  14  88.0782
  15  2.04167
  16  2.74673e-06
  17  48.9708
  18  3.07008e-05
  19  4.35663e-05
  20  38.6817
  21  2.87328
  22  2.65365e-05
  23  0.000156121
  24  6.12397e-06
  25  6.16863
  26  2.97539e-06
  27  7.62388e-05
  28  2.38451e-06
  29  0.339407
  30  0.37246
Done.

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

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  4.357e-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:  5.176e-01  3.725e-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.379e+00  3.394e-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.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/162075/likelihoodResults_474163201_474422401_4FGL_J1154.0+4037_daily_bin906.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) = 2605.37731599
delta logL = -8.61287398948e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2605.37723033
delta logL = -4.73981799587e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10620E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4959       1.0000          .0000       10.000    
     3 'Normalizat'    1.3786       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .51768       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=   2605.377     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      280 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10269E-03    4.3199        .18142E-01** at limit **
   2  Index         2.4172        7.4994        .50000        .54168E-05
   3  Normalizat    1.3787        .22417E-02    .22678E-03   -.29778E-04
   4  Prefactor     .51761        .25602E-02    .40281E-03   -.25627E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010269
  Index      = 2.41722
  Normalizat = 1.37866
  Prefactor  = 0.517612
 **********
 **   18 **HESSE 
 **********

 FCN=   2605.377     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      309 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10269E-03    116.92        .32265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4172        5.4902        .50000       -.54282    
   3  Normalizat    1.3787        .11686E-01    .45356E-04   -.81248    
   4  Prefactor     .51761        .13346E-01    .16112E-04   -1.1118    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.47109e-10
Minuit parameter uncertainties:
  1  0.0355371
  2  348.773
  3  0.011686
  4  0.0133466
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/162075': 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) = 2605.37723016
delta logL = -3.03180058836e-07

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  1.027e-04  3.554e-02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.417e+00  3.488e+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:  5.176e-01  1.335e-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.379e+00  1.169e-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/162075/cmap_HighResolution_474163201_474422401_4FGL_J1154.0+4037_daily_bin906.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.28e-03', job_status='DONE', photon_flux_upper_limit='1.23e-07', time_completed='2021-09-04 15:53:55.270355', job_id='162075', GAL2='0.52', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1630796035.27', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.52', dlogl='-3.03e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='906' AND source_name='4FGL J1154.0+4037' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:53:55 PDT 2021


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

Job <4FGL_J1154.0+4037_daily_bin906> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 15:41:19 2021
Job was executed on host(s) <bullet0186>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 15:41:20 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:41:20 2021
Terminated at Sat Sep  4 15:53:55 2021
Results reported at Sat Sep  4 15:53:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1154.0+4037_daily_bin906 178.514 40.632 474163201 474422401 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 :                                   596.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             260.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   755 sec.
    Turnaround time :                            756 sec.

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

