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


Performing analysis on: 4FGL_J1154.0+4037_daily_bin175
RA = 178.514, Dec = 40.632
tmin = 284688001, tmax = 284947201
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='158749', job_status='RUN', time_executed='2021-09-04 15:33:15.029499', time_epoch_executed='1630794795.03' WHERE source_name='4FGL J1154.0+4037' and cadence='daily' and bin_id='175'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/158749

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/158749/ft1_4FGL_J1154.0+4037_daily_bin175.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/158749/ft2_4FGL_J1154.0+4037_daily_bin175.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/158749/ft1_4FGL_J1154.0+4037_daily_bin175.fits outfile=/scratch/kocevski/158749/ft1_filteredMKT_4FGL_J1154.0+4037_daily_bin175.fits ra=178.514 dec=40.632 rad=12.0 tmin=284688001.0 tmax=284947201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.62
user 3.39
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/158749/ft2_4FGL_J1154.0+4037_daily_bin175.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/158749/ft1_filteredMKT_4FGL_J1154.0+4037_daily_bin175.fits evtable="EVENTS" outfile="/scratch/kocevski/158749/ft1_filtered_4FGL_J1154.0+4037_daily_bin175.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/158749/ft1_filtered_4FGL_J1154.0+4037_daily_bin175.fits" evtable="EVENTS" scfile=/scratch/kocevski/158749/ft2_4FGL_J1154.0+4037_daily_bin175.fits sctable="SC_DATA" outfile=/scratch/kocevski/158749/ltcube_284688001_284947201_4FGL_J1154.0+4037_daily_bin175.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/158749/ft2_4FGL_J1154.0+4037_daily_bin175.fits
.....................!
real 12.38
user 11.98
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/158749/ft1_filtered_4FGL_J1154.0+4037_daily_bin175.fits evtable="EVENTS" scfile=/scratch/kocevski/158749/ft2_4FGL_J1154.0+4037_daily_bin175.fits sctable="SC_DATA" expcube=/scratch/kocevski/158749/ltcube_284688001_284947201_4FGL_J1154.0+4037_daily_bin175.fits outfile=/scratch/kocevski/158749/expmap_284688001_284947201_4FGL_J1154.0+4037_daily_bin175.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/158749/ltcube_284688001_284947201_4FGL_J1154.0+4037_daily_bin175.fits
.....................!
real 191.01
user 186.13
sys 4.51

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/158749/ft1_filtered_4FGL_J1154.0+4037_daily_bin175.fits scfile=/scratch/kocevski/158749/ft2_4FGL_J1154.0+4037_daily_bin175.fits outfile=/scratch/kocevski/158749/cmap_284688001_284947201_4FGL_J1154.0+4037_daily_bin175.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/158749/ft1_filtered_4FGL_J1154.0+4037_daily_bin175.fits scfile=/scratch/kocevski/158749/ft2_4FGL_J1154.0+4037_daily_bin175.fits outfile=/scratch/kocevski/158749/cmap_HighResolution_284688001_284947201_4FGL_J1154.0+4037_daily_bin175.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/158749/ft1_filtered_4FGL_J1154.0+4037_daily_bin175.fits evtable="EVENTS" scfile=/scratch/kocevski/158749/ft2_4FGL_J1154.0+4037_daily_bin175.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/158749/Model_4FGL_J1154.0+4037_daily_bin175.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/158749/ft1_filtered_4FGL_J1154.0+4037_daily_bin175.fits.....................!
real 54.40
user 53.10
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.0821       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.6893       1.0000         .10000E-03   10000.    
     7 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.3278       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .14358E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.648       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .16740       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12541E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .64432       1.0000         .10000E-03   10000.    
    16 'norm      '    13.747       1.0000         .10000E-03   10000.    
    17 'Prefactor '    47.332       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .26430       1.0000         .10000E-03   10000.    
    19 'Prefactor '    104.25       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.2871       1.0000         .10000E-03   10000.    
    23 'norm      '    1.3987       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10929E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .52119       1.0000         .10000E-03   10000.    
    27 'Prefactor '    20.286       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .81844       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0764       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=   6314.480     FROM MIGRAD    STATUS=CONVERGED    766 CALLS     3950 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.354       -.14955E-05** at limit **
   2  norm          3.0822        .46752       -.43367E-08    .17359E-03
   3  Prefactor     .10000E-03    7.3289        .16019E-06** at limit **
   4  Prefactor     .10000E-03    6.8030       -.16494E-06** at limit **
   5  Prefactor     .10000E-03    58.174        .28654E-05** at limit **
   6  norm          5.6879        13.999       -.24144E-06    .97507E-05
   7  norm          .10000E-03    16.762       -.34826E-06** at limit **
   8  Prefactor     5.3276        2.4581       -.10061E-07    .25612E-05
   9  Prefactor     .10000E-03    21.530        .10742E-05** at limit **
  10  Prefactor     .10007E-03    11.928       -.16572E-05** at limit **
  11  norm          .10000E-03    .84636        .51857E-07** at limit **
  12  Prefactor     14.643        14.178       -.16994E-06    .10559E-03
  13  Prefactor     .16678        2.5973        .12183E-06   -.36886E-04
  14  Prefactor     .10000E-03    48.496       -.12258E-05** at limit **
  15  norm          .64419        1.0411       -.25261E-06    .67708E-03
  16  norm          13.747        10.913        .15795E-06    .20412E-04
  17  Prefactor     47.326        31.369        .10142E-05    .81211E-04
  18  Prefactor     .25918        2.3041        .29727E-06   -.14916E-03
  19  Prefactor     104.27        72.241       -.90164E-06   -.48291E-04
  20  Prefactor     .10000E-03    16.173       -.26546E-06** at limit **
  21  norm          .10000E-03    .48473        .19884E-07** at limit **
  22  Prefactor     9.3144        38.480       -.61626E-05   -.73207E-04
  23  norm          1.3980        2.2122       -.20960E-07    .81152E-04
  24  Prefactor     .10000E-03    14.814       -.10524E-06** at limit **
  25  Prefactor     .10000E-03    1.4829        .74343E-08** at limit **
  26  norm          .52449        9.5512        .32978E-05   -.87430E-04
  27  Prefactor     20.288        17.816       -.25970E-06   -.28831E-04
  28  Prefactor     .10000E-03    24.856        .71364E-06** at limit **
  29  Normalizat    .81838        .16483        .73855E-06    .61496E-04
  30  Prefactor     1.0765        .19206        .14573E-06    .13138E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.08216
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 5.68787
  norm       = 0.0001
  Prefactor  = 5.3276
  Prefactor  = 0.0001
  Prefactor  = 0.000100067
  norm       = 0.0001
  Prefactor  = 14.6431
  Prefactor  = 0.166781
  Prefactor  = 0.0001
  norm       = 0.644187
  norm       = 13.7472
  Prefactor  = 47.3258
  Prefactor  = 0.259184
  Prefactor  = 104.272
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.31444
  norm       = 1.39799
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.524488
  Prefactor  = 20.2877
  Prefactor  = 0.0001
  Normalizat = 0.818376
  Prefactor  = 1.07648
 **********
 **   18 **HESSE 
 **********

 FCN=   6314.480     FROM HESSE     STATUS=OK           594 CALLS     4544 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.0822        .46788        .20406E-04   -1.5357    
   3  Prefactor     .10000E-03    7.3389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.8114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    58.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.6879        13.975        .16840E-03   -1.5231    
   7  norm          .10000E-03    16.771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.3276        2.4511        .81156E-04   -1.5246    
   9  Prefactor     .10000E-03    21.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10007E-03    72.314        .48733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .86335        .71352E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     14.643        13.777        .10465E-03   -1.4942    
  13  Prefactor     .16678        8.3252        .24512E-02   -1.5626    
  14  Prefactor     .10000E-03    48.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .64419        1.0696        .23693E-03   -1.5547    
  16  norm          13.747        10.916        .10803E-03   -1.4966    
  17  Prefactor     47.326        31.419        .58282E-04   -1.4331    
  18  Prefactor     .25918        4.8167        .22215E-02   -1.5606    
  19  Prefactor     104.27        73.300        .39382E-04   -1.3662    
  20  Prefactor     .10000E-03    16.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .80425        .10761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     9.3144        40.160        .13151E-03   -1.5097    
  23  norm          1.3980        2.1753        .14398E-03   -1.5471    
  24  Prefactor     .10000E-03    15.292        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1.4928        .94376E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .52449        10.284        .31333E-02   -1.5563    
  27  Prefactor     20.288        17.605        .88928E-04   -1.4807    
  28  Prefactor     .10000E-03    25.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .81838        .19153        .25346E-03   -.99391    
  30  Prefactor     1.0765        .22746        .27220E-03   -.90222    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37652e-07
Minuit parameter uncertainties:
  1  0.000183234
  2  0.467877
  3  6.54226e-06
  4  1.08741e-05
  5  0.000438028
  6  13.9832
  7  3.31076e-05
  8  2.45111
  9  0.000101648
  10  0.00439577
  11  5.75193e-07
  12  13.7805
  13  2.35633
  14  9.19034e-05
  15  1.06966
  16  10.9178
  17  31.4304
  18  2.23443
  19  73.3639
  20  6.7055e-05
  21  1.54759e-06
  22  38.7256
  23  2.17546
  24  7.32283e-05
  25  2.34715e-06
  26  4.64536
  27  17.6092
  28  4.69056e-05
  29  0.191684
  30  0.227666
Done.

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

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  1.043e+02  7.336e+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.076e+00  2.277e-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:  8.184e-01  1.917e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.15
Ra Dec: 178.514 40.632
Photon Index (Fixed Index): 2.11 +/- 0.00
Photon Flux (Fixed Index): 5.72e-08 +/- 4.02e-08
Energy Flux (Fixed Index): 3.04e-05 +/- 2.14e-05

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) = 6312.51576142
delta logL = 1.96426599465

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6312.46328625
delta logL = 2.01674115931

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.323       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2081       1.0000          .0000       10.000    
     3 'Normalizat'    .73481       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1407       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6312.463     FROM MIGRAD    STATUS=FAILED        90 CALLS      300 TOTAL
                     EDM=   .50E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.310        396.79        .99133E-04    .42432E-04
   2  Index         3.2084        3.5606        .26068E-02    .86022E-03
   3  Normalizat    .73474        .24903        .26543E-03    .44383E-03
   4  Prefactor     1.1407        .29333        .26509E-03    .75135E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6312.463     FROM SIMPLEX   STATUS=UNCHANGED     95 CALLS      395 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.310        396.79        .40848E-03   -1.4900    
   2  Index         3.2084        3.5606        .73519E-03   -.36646    
   3  Normalizat    .73474        .24903        .11623E-03   -1.0254    
   4  Prefactor     1.1407        .29333        .72007E-04   -.88175    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6312.463     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      426 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.310        28.964        .39653E-05   -.51606E-05
   2  Index         3.2084        .72078        .52137E-03    .33328E-04
   3  Normalizat    .73474        .19181        .53087E-04   -.14991E-05
   4  Prefactor     1.1407        .22964        .10604E-04   -.85771E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.3101
  Index      = 3.20843
  Normalizat = 0.734738
  Prefactor  = 1.14073
 **********
 **   18 **HESSE 
 **********

 FCN=   6312.463     FROM HESSE     STATUS=OK            25 CALLS      451 TOTAL
                     EDM=   .85E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.310        26.796        .79307E-06   -1.4900    
   2  Index         3.2084        .66676        .10427E-03   -.36646    
   3  Normalizat    .73474        .19153        .10617E-04   -1.0254    
   4  Prefactor     1.1407        .22935        .21208E-05   -.88175    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.54095e-15
Minuit parameter uncertainties:
  1  26.8157
  2  0.669053
  3  0.191704
  4  0.229548
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/158749': 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) = 6312.46328602
delta logL = 2.01674138938

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
677    Prefactor:  1.141e+00  2.295e-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:  7.347e-01  1.917e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.44
Ra Dec: 178.514 40.632
Photon Index (Free Index): 3.21 +/- 0.67
Photon Flux (Free Index): 1.25e-07 +/- 5.76e-08
Energy Flux (Free Index): 2.28e-05 +/- 1.03e-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/158749/cmap_HighResolution_284688001_284947201_4FGL_J1154.0+4037_daily_bin175.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.72e-08', energy_flux2='2.28e-05', photon_flux_error='4.02e-08', dlogl='2.02e+00', energy_flux='3.04e-05', photon_flux2='1.25e-07', job_status='DONE', time_completed='2021-09-04 15:47:33.357181', photon_index_error2='0.67', photon_index2='3.21', ts='4.15', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='1.03e-05', EG='0.82', time_epoch_completed='1630795653.36', return_code='0', job_id='158749', GAL2='1.14', EG2='0.73', return_code2='0', energy_flux_error='2.14e-05', photon_flux_error2='5.76e-08', ts2='8.44', photon_index='2.11' WHERE bin_id='175' AND source_name='4FGL J1154.0+4037' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:47:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 158749: <4FGL_J1154.0+4037_daily_bin175> in cluster <slac> Done

Job <4FGL_J1154.0+4037_daily_bin175> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep  4 15:31:11 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 15:31:12 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 15:31:12 2021
Terminated at Sat Sep  4 15:47:34 2021
Results reported at Sat Sep  4 15:47:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1154.0+4037_daily_bin175 178.514 40.632 284688001 284947201 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 :                                   857.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             286.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   981 sec.
    Turnaround time :                            983 sec.

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

