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


Performing analysis on: 4FGL_J1154.0+4037_daily_bin93
RA = 178.514, Dec = 40.632
tmin = 263433601, tmax = 263692801
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='157675', job_status='RUN', time_executed='2021-09-04 15:27:13.318593', time_epoch_executed='1630794433.32' WHERE source_name='4FGL J1154.0+4037' and cadence='daily' and bin_id='93'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/157675

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/157675/ft1_4FGL_J1154.0+4037_daily_bin93.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/157675/ft2_4FGL_J1154.0+4037_daily_bin93.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/157675/ft1_4FGL_J1154.0+4037_daily_bin93.fits outfile=/scratch/kocevski/157675/ft1_filteredMKT_4FGL_J1154.0+4037_daily_bin93.fits ra=178.514 dec=40.632 rad=12.0 tmin=263433601.0 tmax=263692801.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.47
user 3.24
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/157675/ft1_filtered_4FGL_J1154.0+4037_daily_bin93.fits evtable="EVENTS" scfile=/scratch/kocevski/157675/ft2_4FGL_J1154.0+4037_daily_bin93.fits sctable="SC_DATA" expcube=/scratch/kocevski/157675/ltcube_263433601_263692801_4FGL_J1154.0+4037_daily_bin93.fits outfile=/scratch/kocevski/157675/expmap_263433601_263692801_4FGL_J1154.0+4037_daily_bin93.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/157675/ltcube_263433601_263692801_4FGL_J1154.0+4037_daily_bin93.fits
.....................!
real 189.99
user 185.26
sys 4.34

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/157675/ft1_filtered_4FGL_J1154.0+4037_daily_bin93.fits scfile=/scratch/kocevski/157675/ft2_4FGL_J1154.0+4037_daily_bin93.fits outfile=/scratch/kocevski/157675/cmap_263433601_263692801_4FGL_J1154.0+4037_daily_bin93.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=178.514 yref=40.632 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    199.33       1.0000         .10000E-03   10000.    
     2 'norm      '    .58801       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.1886       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10425E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.4640       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.3688       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10345E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .11126E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.4535       1.0000         .10000E-03   10000.    
    15 'norm      '    3.0049       1.0000         .10000E-03   10000.    
    16 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .88512       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .72673E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12355E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.7929       1.0000         .10000E-03   10000.    
    22 'Prefactor '    17.623       1.0000         .10000E-03   10000.    
    23 'norm      '    .10140E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.1171       1.0000         .10000E-03   10000.    
    26 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    36.110       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .89243       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1538       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=   4914.050     FROM MIGRAD    STATUS=CONVERGED    774 CALLS     3937 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     199.43        133.28       -.59885E-05   -.50519E-04
   2  norm          .58800        .27240       -.45849E-07    .60619E-03
   3  Prefactor     1.1898        36.788        .91295E-05    .22199E-03
   4  Prefactor     .10000E-03    17.007       -.53389E-06** at limit **
   5  Prefactor     .10000E-03    26.914        .72149E-06** at limit **
   6  norm          .10000E-03    6.6952        .17125E-06** at limit **
   7  norm          .10000E-03    24.901        .53120E-06** at limit **
   8  Prefactor     1.4634        2.8786        .24487E-06    .40194E-03
   9  Prefactor     6.4249        70.748        .61894E-05    .28434E-04
  10  Prefactor     .10000E-03    15.880       -.13122E-08** at limit **
  11  norm          .10000E-03    2.2313       -.37716E-06** at limit **
  12  Prefactor     .10000E-03    4.6863       -.10250E-06** at limit **
  13  Prefactor     .10000E-03    2.1747       -.11826E-07** at limit **
  14  Prefactor     1.4341        540.50        .21952E-04    .12530E-04
  15  norm          3.0064        1.7338       -.99443E-07   -.54985E-03
  16  norm          .10000E-03    5.4485        .10192E-06** at limit **
  17  Prefactor     .90564        29.583        .34833E-05   -.25346E-03
  18  Prefactor     .10015E-03    3.1369       -.19964E-05** at limit **
  19  Prefactor     .10000E-03    36.688       -.87263E-06** at limit **
  20  Prefactor     .10000E-03    53.652       -.99449E-06** at limit **
  21  norm          2.7930        1.4606       -.16127E-07   -.74301E-04
  22  Prefactor     17.623        32.540        .92881E-07   -.22369E-04
  23  norm          .10000E-03    3.4984       -.26118E-06** at limit **
  24  Prefactor     .10000E-03    3.5256        .12751E-06** at limit **
  25  Prefactor     5.1157        3.4721       -.31388E-07    .14494E-03
  26  norm          .10000E-03    3.6795       -.82624E-08** at limit **
  27  Prefactor     36.098        23.809        .19346E-06    .10254E-03
  28  Prefactor     .10000E-03    6.4068       -.27668E-06** at limit **
  29  Normalizat    .89224        .19611       -.37431E-06    .35835E-03
  30  Prefactor     1.1541        .22165        .97191E-06    .26903E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 199.426
  norm       = 0.588002
  Prefactor  = 1.18977
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.46336
  Prefactor  = 6.42489
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.43409
  norm       = 3.00642
  norm       = 0.0001
  Prefactor  = 0.90564
  Prefactor  = 0.000100146
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.793
  Prefactor  = 17.6226
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.11568
  norm       = 0.0001
  Prefactor  = 36.0984
  Prefactor  = 0.0001
  Normalizat = 0.892244
  Prefactor  = 1.15405
 **********
 **   18 **HESSE 
 **********

 FCN=   4914.050     FROM HESSE     STATUS=OK           580 CALLS     4517 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     199.43        133.37        .14309E-03   -1.2874    
   2  norm          .58800        .27341        .23487E-04   -1.5555    
   3  Prefactor     1.1898        40.207        .20905E-02   -1.5490    
   4  Prefactor     .10000E-03    17.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    26.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    6.7156        .17712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    24.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.4634        2.8005        .13595E-03   -1.5466    
   9  Prefactor     6.4249        75.891        .15905E-03   -1.5201    
  10  Prefactor     .10000E-03    16.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.7184        .18511E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.6965        .14821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.1900        .10090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.4341        500.06        .35721E-03   -1.5468    
  15  norm          3.0064        1.6566        .53932E-04   -1.5361    
  16  norm          .10000E-03    5.4600        .15977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .90564        224.36        .61302E-02   -1.5518    
  18  Prefactor     .10015E-03    17.266        .19623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    36.735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    54.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.7930        1.4593        .58833E-04   -1.5374    
  22  Prefactor     17.623        32.801        .95407E-04   -1.4868    
  23  norm          .10000E-03    3.6224        .25444E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.5416        .12850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     5.1157        3.4486        .10380E-03   -1.5256    
  26  norm          .10000E-03    3.6900        .13124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     36.098        23.845        .66692E-04   -1.4506    
  28  Prefactor     .10000E-03    6.4082        .17331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .89224        .23080        .24477E-03   -.96733    
  30  Prefactor     1.1541        .26418        .26647E-03   -.87757    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44195e-08
Minuit parameter uncertainties:
  1  133.575
  2  0.273406
  3  13.8424
  4  4.33222e-05
  5  3.11754e-05
  6  7.67415e-06
  7  1.81114e-05
  8  2.80076
  9  44.2329
  10  3.49455e-05
  11  3.45601e-06
  12  7.34368e-06
  13  1.01947e-05
  14  54.0176
  15  1.65659
  16  8.89749e-06
  17  28.6162
  18  0.00317429
  19  0.000118982
  20  5.68232e-05
  21  1.45931
  22  32.8346
  23  5.23998e-06
  24  5.70647e-06
  25  3.44872
  26  5.48772e-06
  27  23.8517
  28  7.80928e-06
  29  0.23106
  30  0.264485
Done.

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

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  1.190e-04  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.154e+00  2.645e-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.922e-01  2.311e-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: 6.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/157675/likelihoodResults_263433601_263692801_4FGL_J1154.0+4037_daily_bin93.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) = 4914.05007865
delta logL = -0.000129631158416

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4913.65893378
delta logL = 0.391015237727

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.1035       1.0000         .10000E-03   10000.    
     2 'Index     '    .48040       1.0000          .0000       10.000    
     3 'Normalizat'    .87962       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1648       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4913.659     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      277 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.1370        12.610        .35211E-02    .12650E-04
   2  Index         .48194        .74245        .39397       -.51901E-04
   3  Normalizat    .87978        .17902        .44641E-01    .68348E-05
   4  Prefactor     1.1645        .21960        .60019E-01   -.50061E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.13701
  Index      = 0.481936
  Normalizat = 0.879784
  Prefactor  = 1.16448
 **********
 **   18 **HESSE 
 **********

 FCN=   4913.659     FROM HESSE     STATUS=OK            33 CALLS      310 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.1370        18.909        .14084E-03   -1.5137    
   2  Index         .48194        .80397        .24193E-01   -1.1281    
   3  Normalizat    .87978        .21155        .24624E-03   -.97174    
   4  Prefactor     1.1645        .25953        .26543E-03   -.87431    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05954e-11
Minuit parameter uncertainties:
  1  18.9225
  2  0.824158
  3  0.211752
  4  0.259816
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/157675': 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) = 4913.65893179
delta logL = 0.391017232051

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  8.137e+00  1.892e+01  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  4.819e-01  8.242e-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.164e+00  2.598e-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.798e-01  2.118e-01  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/157675/cmap_HighResolution_263433601_263692801_4FGL_J1154.0+4037_daily_bin93.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.22e-03', job_status='DONE', photon_flux_upper_limit='6.89e-08', time_completed='2021-09-04 15:40:54.182118', job_id='157675', GAL2='1.16', fit_tolerance='1e-08', EG2='0.88', EG='0.89', time_epoch_completed='1630795254.18', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='3.91e-01', ts2='0.79', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='93' AND source_name='4FGL J1154.0+4037' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:40:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 157675: <4FGL_J1154.0+4037_daily_bin93> in cluster <slac> Done

Job <4FGL_J1154.0+4037_daily_bin93> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 15:26:36 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 15:26:37 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:37 2021
Terminated at Sat Sep  4 15:40:56 2021
Results reported at Sat Sep  4 15:40:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1154.0+4037_daily_bin93 178.514 40.632 263433601 263692801 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 :                                   820.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             292.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   858 sec.
    Turnaround time :                            860 sec.

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

