/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 215 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 = 7394
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1154.0+4037_daily_bin61
RA = 178.514, Dec = 40.632
tmin = 255139201, tmax = 255398401
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='157629', job_status='RUN', time_executed='2021-09-04 15:30:18.182567', time_epoch_executed='1630794618.18' WHERE source_name='4FGL J1154.0+4037' and cadence='daily' and bin_id='61'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/157629

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/157629/ft1_4FGL_J1154.0+4037_daily_bin61.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/157629/ft2_4FGL_J1154.0+4037_daily_bin61.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/157629/ft1_4FGL_J1154.0+4037_daily_bin61.fits outfile=/scratch/kocevski/157629/ft1_filteredMKT_4FGL_J1154.0+4037_daily_bin61.fits ra=178.514 dec=40.632 rad=12.0 tmin=255139201.0 tmax=255398401.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 7.45
user 7.15
sys 0.27

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/157629/ft1_filtered_4FGL_J1154.0+4037_daily_bin61.fits evtable="EVENTS" scfile=/scratch/kocevski/157629/ft2_4FGL_J1154.0+4037_daily_bin61.fits sctable="SC_DATA" expcube=/scratch/kocevski/157629/ltcube_255139201_255398401_4FGL_J1154.0+4037_daily_bin61.fits outfile=/scratch/kocevski/157629/expmap_255139201_255398401_4FGL_J1154.0+4037_daily_bin61.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/157629/ltcube_255139201_255398401_4FGL_J1154.0+4037_daily_bin61.fits
.....................!
real 189.39
user 185.10
sys 3.98

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/157629/ft1_filtered_4FGL_J1154.0+4037_daily_bin61.fits scfile=/scratch/kocevski/157629/ft2_4FGL_J1154.0+4037_daily_bin61.fits outfile=/scratch/kocevski/157629/cmap_255139201_255398401_4FGL_J1154.0+4037_daily_bin61.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/157629/ft1_filtered_4FGL_J1154.0+4037_daily_bin61.fits scfile=/scratch/kocevski/157629/ft2_4FGL_J1154.0+4037_daily_bin61.fits outfile=/scratch/kocevski/157629/cmap_HighResolution_255139201_255398401_4FGL_J1154.0+4037_daily_bin61.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.39
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    68.375       1.0000         .10000E-03   10000.    
     2 'norm      '    1.2590       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .92685       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    11.441       1.0000         .10000E-03   10000.    
     7 'norm      '    .11753E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14447E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.415       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .81521       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .57651E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    37.743       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .60882E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.4425       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11666E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.1904       1.0000         .10000E-03   10000.    
    22 'Prefactor '    33.392       1.0000         .10000E-03   10000.    
    23 'norm      '    5.5121       1.0000         .10000E-03   10000.    
    24 'Prefactor '    13.559       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.9086       1.0000         .10000E-03   10000.    
    26 'norm      '    5.1190       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .11142E-02   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .31941       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.5878       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=   4061.566     FROM MIGRAD    STATUS=CONVERGED    796 CALLS     4057 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     68.385        70.069        .81651E-05    .17391E-05
   2  norm          1.2590        .42293        .50948E-08    .12379E-02
   3  Prefactor     .10000E-03    17.894       -.64423E-06** at limit **
   4  Prefactor     .92319        20.283       -.17535E-05   -.35767E-04
   5  Prefactor     .10000E-03    40.310       -.21076E-04** at limit **
   6  norm          11.442        14.092        .50774E-06    .11523E-04
   7  norm          .10000E-03    161.72       -.22841E-04** at limit **
   8  Prefactor     .10000E-03    1.5918        .50269E-06** at limit **
   9  Prefactor     .10000E-03    38.895       -.85610E-05** at limit **
  10  Prefactor     .10000E-03    8.0028        .17254E-06** at limit **
  11  norm          .10000E-03    1.4632        .62695E-07** at limit **
  12  Prefactor     10.418        11.119       -.60390E-06    .17110E-04
  13  Prefactor     .81807        7.3764       -.30552E-05   -.96456E-03
  14  Prefactor     .10000E-03    36.484        .23556E-04** at limit **
  15  norm          .57719E-01    .68110       -.37630E-06   -.87160E-03
  16  norm          .10000E-03    8.0241        .15654E-05** at limit **
  17  Prefactor     37.746        35.704       -.33529E-06    .27922E-04
  18  Prefactor     .10000E-03    2.1006       -.18693E-06** at limit **
  19  Prefactor     6.4382        67.907       -.47982E-05   -.46977E-05
  20  Prefactor     .10000E-03    74.875        .21334E-04** at limit **
  21  norm          1.1904        1.1096       -.10126E-08   -.84247E-04
  22  Prefactor     33.396        45.044        .12385E-05    .10465E-04
  23  norm          5.5123        3.2986       -.42476E-07    .28773E-04
  24  Prefactor     13.560        10.956       -.18402E-06   -.12305E-04
  25  Prefactor     1.9087        1.9491        .57097E-07    .16664E-03
  26  norm          5.1201        5.2435       -.44805E-05   -.76064E-04
  27  Prefactor     .10000E-03    8.2405       -.15380E-05** at limit **
  28  Prefactor     .10026E-03    18.909       -.31747E-05** at limit **
  29  Normalizat    .31938        .20105        .58207E-07   -.22960E-04
  30  Prefactor     1.5876        .24538        .72841E-06    .85392E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 68.3848
  norm       = 1.25903
  Prefactor  = 0.0001
  Prefactor  = 0.92319
  Prefactor  = 0.0001
  norm       = 11.4422
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.418
  Prefactor  = 0.818074
  Prefactor  = 0.0001
  norm       = 0.0577192
  norm       = 0.0001
  Prefactor  = 37.7461
  Prefactor  = 0.0001
  Prefactor  = 6.43816
  Prefactor  = 0.0001
  norm       = 1.19036
  Prefactor  = 33.3956
  norm       = 5.51227
  Prefactor  = 13.56
  Prefactor  = 1.90869
  norm       = 5.12012
  Prefactor  = 0.0001
  Prefactor  = 0.000100257
  Normalizat = 0.319382
  Prefactor  = 1.58763
 **********
 **   18 **HESSE 
 **********

 FCN=   4061.566     FROM HESSE     STATUS=OK           596 CALLS     4653 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     68.385        69.942        .48541E-04   -1.4052    
   2  norm          1.2590        .43727        .21504E-04   -1.5484    
   3  Prefactor     .10000E-03    18.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .92319        100.43        .50753E-02   -1.5516    
   5  Prefactor     .10000E-03    40.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          11.442        14.021        .11844E-03   -1.5031    
   7  norm          .10000E-03    162.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.5779        .14658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    38.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.0140        .17607E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.5031        .15008E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.418        11.101        .12415E-03   -1.5062    
  13  Prefactor     .81807        7.2369        .31754E-03   -1.5527    
  14  Prefactor     .10000E-03    36.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .57719E-01    1.4872        .97274E-03   -1.5660    
  16  norm          .10000E-03    8.0978        .17626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     37.746        35.515        .65238E-04   -1.4478    
  18  Prefactor     .10000E-03    7.8432        .17677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.4382        65.935        .15812E-03   -1.5200    
  20  Prefactor     .10000E-03    76.420        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.1904        1.0887        .62787E-04   -1.5490    
  22  Prefactor     33.396        44.894        .69345E-04   -1.4552    
  23  norm          5.5123        3.2988        .86094E-04   -1.5238    
  24  Prefactor     13.560        10.924        .10878E-03   -1.4971    
  25  Prefactor     1.9087        1.9628        .86737E-04   -1.5432    
  26  norm          5.1201        5.2273        .14340E-03   -1.5255    
  27  Prefactor     .10000E-03    8.2451        .17859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10026E-03    80.285        .53658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .31938        .21016        .35432E-03   -1.2170    
  30  Prefactor     1.5876        .26659        .21764E-03   -.75114    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.95581e-08
Minuit parameter uncertainties:
  1  70.026
  2  0.437276
  3  2.34805e-05
  4  19.2903
  5  2.40029e-06
  6  14.0246
  7  0.000211267
  8  6.43615e-05
  9  3.75931e-05
  10  8.84347e-06
  11  1.32627e-06
  12  11.1028
  13  4.86683
  14  2.56326e-05
  15  0.585474
  16  5.659e-06
  17  35.5344
  18  6.55361e-05
  19  41.2652
  20  0.000373312
  21  1.08876
  22  44.9393
  23  3.29895
  24  10.9253
  25  1.96289
  26  5.22777
  27  3.72655e-05
  28  0.00909125
  29  0.210676
  30  0.266823
Done.

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

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  6.438e+00  4.127e+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:  1.588e+00  2.668e-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:  3.194e-01  2.107e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/157629/likelihoodResults_255139201_255398401_4FGL_J1154.0+4037_daily_bin61.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) = 4061.56402086
delta logL = 0.00173385592461

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4061.5628204
delta logL = 0.00293432042372

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.1751       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9418       1.0000          .0000       10.000    
     3 'Normalizat'    .32026       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5863       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=   4061.563     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      327 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.1702        114.19        .13231E-03    .47129E-04
   2  Index         1.9411        2.1515        .16422E-01    .31713E-04
   3  Normalizat    .32025        .20311        .35384E-03   -.16654E-03
   4  Prefactor     1.5863        .26562        .21771E-03   -.35764E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.17017
  Index      = 1.94105
  Normalizat = 0.320251
  Prefactor  = 1.58634
 **********
 **   18 **HESSE 
 **********

 FCN=   4061.563     FROM HESSE     STATUS=OK            25 CALLS      352 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.1702        91.530        .52925E-05   -1.5102    
   2  Index         1.9411        1.9500        .65687E-03   -.65832    
   3  Normalizat    .32025        .20299        .14154E-04   -1.2165    
   4  Prefactor     1.5863        .26534        .43542E-04   -.75150    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.7917e-10
Minuit parameter uncertainties:
  1  58.0583
  2  2.03909
  3  0.203458
  4  0.265578
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/157629': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4061.56282017
delta logL = 0.00293454622897

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  9.170e+00  5.806e+01  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  1.941e+00  2.039e+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:  1.586e+00  2.656e-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:  3.203e-01  2.035e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
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/157629/cmap_HighResolution_255139201_255398401_4FGL_J1154.0+4037_daily_bin61.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.30e-03', job_status='DONE', photon_flux_upper_limit='7.00e-08', time_completed='2021-09-04 15:42:45.961013', job_id='157629', GAL2='1.59', fit_tolerance='1e-08', EG2='0.32', EG='0.32', time_epoch_completed='1630795365.96', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='1.59', dlogl='2.93e-03', ts2='0.03', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='61' AND source_name='4FGL J1154.0+4037' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:42:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 157629: <4FGL_J1154.0+4037_daily_bin61> in cluster <slac> Done

Job <4FGL_J1154.0+4037_daily_bin61> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 15:26:32 2021
Job was executed on host(s) <bullet0245>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 15:26:34 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:26:34 2021
Terminated at Sat Sep  4 15:42:46 2021
Results reported at Sat Sep  4 15:42:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1154.0+4037_daily_bin61 178.514 40.632 255139201 255398401 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 :                                   746.18 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             277.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   972 sec.
    Turnaround time :                            974 sec.

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

