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


Performing analysis on: 4FGL_J1154.0+4037_daily_bin549
RA = 178.514, Dec = 40.632
tmin = 381628801, tmax = 381888001
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='160614', job_status='RUN', time_executed='2021-09-04 15:36:47.817208', time_epoch_executed='1630795007.82' WHERE source_name='4FGL J1154.0+4037' and cadence='daily' and bin_id='549'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/160614

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/160614/ft1_4FGL_J1154.0+4037_daily_bin549.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/160614/ft2_4FGL_J1154.0+4037_daily_bin549.fits


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

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

Done.
real 4.01
user 3.77
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/160614/ft1_filtered_4FGL_J1154.0+4037_daily_bin549.fits" evtable="EVENTS" scfile=/scratch/kocevski/160614/ft2_4FGL_J1154.0+4037_daily_bin549.fits sctable="SC_DATA" outfile=/scratch/kocevski/160614/ltcube_381628801_381888001_4FGL_J1154.0+4037_daily_bin549.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/160614/ft2_4FGL_J1154.0+4037_daily_bin549.fits
.....................!
real 13.06
user 12.69
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/160614/ft1_filtered_4FGL_J1154.0+4037_daily_bin549.fits evtable="EVENTS" scfile=/scratch/kocevski/160614/ft2_4FGL_J1154.0+4037_daily_bin549.fits sctable="SC_DATA" expcube=/scratch/kocevski/160614/ltcube_381628801_381888001_4FGL_J1154.0+4037_daily_bin549.fits outfile=/scratch/kocevski/160614/expmap_381628801_381888001_4FGL_J1154.0+4037_daily_bin549.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/160614/ltcube_381628801_381888001_4FGL_J1154.0+4037_daily_bin549.fits
.....................!
real 192.05
user 187.24
sys 4.42

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/160614/ft1_filtered_4FGL_J1154.0+4037_daily_bin549.fits scfile=/scratch/kocevski/160614/ft2_4FGL_J1154.0+4037_daily_bin549.fits outfile=/scratch/kocevski/160614/cmap_381628801_381888001_4FGL_J1154.0+4037_daily_bin549.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.57
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/160614/ft1_filtered_4FGL_J1154.0+4037_daily_bin549.fits scfile=/scratch/kocevski/160614/ft2_4FGL_J1154.0+4037_daily_bin549.fits outfile=/scratch/kocevski/160614/cmap_HighResolution_381628801_381888001_4FGL_J1154.0+4037_daily_bin549.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.57
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0436       1.0000         .10000E-03   10000.    
     2 'norm      '    1.6174       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.865       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .23677       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.4305       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10505E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.8603       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.0623       1.0000         .10000E-03   10000.    
    19 'Prefactor '    42.780       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10333E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.5275       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    18.435       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.6100       1.0000         .10000E-03   10000.    
    26 'norm      '    .83083       1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.9748       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0081       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .95991       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=   5816.194     FROM MIGRAD    STATUS=CONVERGED    744 CALLS     3848 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7212        750.47       -.12127E-03   -.76886E-05
   2  norm          1.6175        .36580       -.17741E-07    .27137E-03
   3  Prefactor     12.867        12.237       -.15239E-06   -.14665E-04
   4  Prefactor     .10000E-03    5.3523        .63542E-07** at limit **
   5  Prefactor     .10000E-03    25.915        .48828E-07** at limit **
   6  norm          .10000E-03    5.6280        .24675E-06** at limit **
   7  norm          .10000E-03    12.570        .12437E-07** at limit **
   8  Prefactor     .23560        1.4305        .47913E-06   -.11926E-03
   9  Prefactor     .10000E-03    45.786        .73423E-06** at limit **
  10  Prefactor     .10000E-03    13.972        .90722E-06** at limit **
  11  norm          .10000E-03    .65730        .87238E-07** at limit **
  12  Prefactor     .10000E-03    22.682        .18112E-05** at limit **
  13  Prefactor     5.4291        5.4164       -.84152E-07   -.91414E-04
  14  Prefactor     .10000E-03    18.336        .13725E-06** at limit **
  15  norm          .10000E-03    .36052       -.47527E-06** at limit **
  16  norm          2.8624        9.4256        .16763E-04   -.65499E-04
  17  Prefactor     .10000E-03    17.123        .93547E-06** at limit **
  18  Prefactor     5.0623        3.1971        .89913E-06   -.22837E-03
  19  Prefactor     42.746        47.175       -.46471E-05   -.68485E-04
  20  Prefactor     .10000E-03    18.015        .23518E-06** at limit **
  21  norm          1.5275        1.1414        .51466E-07   -.31097E-04
  22  Prefactor     .10000E-03    24.541        .99181E-06** at limit **
  23  norm          18.435        5.4471        .34374E-07   -.19231E-04
  24  Prefactor     .10000E-03    3.4028        .45300E-06** at limit **
  25  Prefactor     6.6100        3.7771        .27267E-07   -.14222E-04
  26  norm          .83431        10.397        .69232E-05   -.60794E-06
  27  Prefactor     3.9690        18.771       -.48632E-05   -.15353E-03
  28  Prefactor     .10000E-03    12.190        .36052E-06** at limit **
  29  Normalizat    1.0081        .17038        .14720E-05   -.18914E-03
  30  Prefactor     .95983        .20407       -.51986E-05    .12382E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.72118
  norm       = 1.61748
  Prefactor  = 12.867
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.235599
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.42907
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.86236
  Prefactor  = 0.0001
  Prefactor  = 5.06227
  Prefactor  = 42.746
  Prefactor  = 0.0001
  norm       = 1.52747
  Prefactor  = 0.0001
  norm       = 18.4345
  Prefactor  = 0.0001
  Prefactor  = 6.60996
  norm       = 0.834313
  Prefactor  = 3.96903
  Prefactor  = 0.0001
  Normalizat = 1.00815
  Prefactor  = 0.959825
 **********
 **   18 **HESSE 
 **********

 FCN=   5816.194     FROM HESSE     STATUS=OK           588 CALLS     4436 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7212        829.93        .23257E-02   -1.5378    
   2  norm          1.6175        .36663        .21078E-04   -1.5454    
   3  Prefactor     12.867        12.228        .11168E-03   -1.4990    
   4  Prefactor     .10000E-03    5.3560        .17231E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    25.917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.6361        .17668E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    12.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .23560        5.9885        .16771E-02   -1.5611    
   9  Prefactor     .10000E-03    45.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .66108        .60303E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    22.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.4291        5.3858        .16569E-03   -1.5242    
  14  Prefactor     .10000E-03    18.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .46592        .87714E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.8624        9.5828        .12019E-02   -1.5370    
  17  Prefactor     .10000E-03    17.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.0623        3.1973        .51940E-03   -1.5258    
  19  Prefactor     42.746        46.688        .61292E-04   -1.4399    
  20  Prefactor     .10000E-03    18.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.5275        1.1475        .68300E-04   -1.5461    
  22  Prefactor     .10000E-03    24.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          18.435        5.4497        .91630E-04   -1.4849    
  24  Prefactor     .10000E-03    3.4111        .13739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     6.6100        3.7798        .10643E-03   -1.5194    
  26  norm          .83431        10.087        .43128E-03   -1.5525    
  27  Prefactor     3.9690        17.554        .20231E-03   -1.5309    
  28  Prefactor     .10000E-03    12.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0081        .19748        .23100E-03   -.92758    
  30  Prefactor     .95983        .23640        .28511E-03   -.94081    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42001e-08
Minuit parameter uncertainties:
  1  96.4236
  2  0.366631
  3  12.2301
  4  4.70305e-06
  5  1.71245e-05
  6  8.96911e-06
  7  1.59988e-06
  8  2.37537
  9  0.000192226
  10  7.68149e-05
  11  1.18008e-06
  12  8.37519e-06
  13  5.38627
  14  8.92077e-06
  15  4.26603e-06
  16  9.58792
  17  4.01614e-05
  18  3.19743
  19  46.7279
  20  8.92179e-05
  21  1.1475
  22  2.22838e-06
  23  5.44988
  24  3.62094e-06
  25  3.77998
  26  5.80285
  27  16.702
  28  2.23558e-05
  29  0.197628
  30  0.236654
Done.

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

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  4.275e+01  4.673e+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:  9.598e-01  2.367e-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.008e+00  1.976e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.39
Ra Dec: 178.514 40.632
Photon Index (Fixed Index): 2.11 +/- 0.00
Photon Flux (Fixed Index): 2.34e-08 +/- 2.56e-08
Energy Flux (Fixed Index): 1.25e-05 +/- 1.36e-05

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

Saving results to:
/scratch/kocevski/160614/likelihoodResults_381628801_381888001_4FGL_J1154.0+4037_daily_bin549.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) = 5815.96226621
delta logL = 0.231596315317

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5815.9615914
delta logL = 0.232271123408

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    71.805       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7232       1.0000          .0000       10.000    
     3 'Normalizat'    1.0203       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94702       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=   5815.962     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      304 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     71.901        74.036        .23688E-03    .10559E-05
   2  Index         1.7241        .51600        .72818E-02    .14195E-03
   3  Normalizat    1.0200        .19234        .22973E-03    .12867E-05
   4  Prefactor     .94729        .23392        .28662E-03    .12095E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 71.9014
  Index      = 1.72415
  Normalizat = 1.02001
  Prefactor  = 0.947291
 **********
 **   18 **HESSE 
 **********

 FCN=   5815.962     FROM HESSE     STATUS=OK            25 CALLS      329 TOTAL
                     EDM=   .80E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     71.901        73.212        .94752E-05   -1.4010    
   2  Index         1.7241        .51028        .14564E-02   -.71441    
   3  Normalizat    1.0200        .19240        .91893E-05   -.92363    
   4  Prefactor     .94729        .23402        .28662E-03   -.94508    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.00681e-13
Minuit parameter uncertainties:
  1  73.3038
  2  0.51185
  3  0.192531
  4  0.234273
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/160614': 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) = 5815.96158692
delta logL = 0.232275602601

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  7.190e+01  7.330e+01  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  1.724e+00  5.118e-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:  9.473e-01  2.343e-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.020e+00  1.925e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.86
Ra Dec: 178.514 40.632
Photon Index (Free Index): 1.72 +/- 0.51
Photon Flux (Free Index): 1.84e-08 +/- 2.03e-08
Energy Flux (Free Index): 2.79e-05 +/- 4.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/160614/cmap_HighResolution_381628801_381888001_4FGL_J1154.0+4037_daily_bin549.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.41e-03', comment='SUCCESS', photon_flux='2.34e-08', energy_flux2='2.79e-05', photon_flux_error='2.56e-08', dlogl='2.32e-01', energy_flux='1.25e-05', photon_flux2='1.84e-08', job_status='DONE', time_completed='2021-09-04 15:52:17.245064', photon_index_error2='0.51', photon_index2='1.72', ts='1.39', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='8.47e-08', energy_flux_error2='4.03e-05', EG='1.01', time_epoch_completed='1630795937.25', return_code='0', job_id='160614', GAL2='0.95', EG2='1.02', return_code2='0', energy_flux_error='1.36e-05', photon_flux_error2='2.03e-08', ts2='1.86', photon_index='2.11' WHERE bin_id='549' AND source_name='4FGL J1154.0+4037' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:52:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0303>
Subject: Job 160614: <4FGL_J1154.0+4037_daily_bin549> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1154.0+4037_daily_bin549 178.514 40.632 381628801 381888001 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 :                                   926.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             353.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   943 sec.
    Turnaround time :                            945 sec.

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

