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


Performing analysis on: 4FGL_J1154.0+4037_daily_bin75
RA = 178.514, Dec = 40.632
tmin = 258768001, tmax = 259027201
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='157650', job_status='RUN', time_executed='2021-09-04 15:27:33.864196', time_epoch_executed='1630794453.86' WHERE source_name='4FGL J1154.0+4037' and cadence='daily' and bin_id='75'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/157650

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/157650/ft1_4FGL_J1154.0+4037_daily_bin75.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/157650/ft2_4FGL_J1154.0+4037_daily_bin75.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/157650/ft1_4FGL_J1154.0+4037_daily_bin75.fits outfile=/scratch/kocevski/157650/ft1_filteredMKT_4FGL_J1154.0+4037_daily_bin75.fits ra=178.514 dec=40.632 rad=12.0 tmin=258768001.0 tmax=259027201.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 1.11
user 0.93
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/157650/ft1_filtered_4FGL_J1154.0+4037_daily_bin75.fits" evtable="EVENTS" scfile=/scratch/kocevski/157650/ft2_4FGL_J1154.0+4037_daily_bin75.fits sctable="SC_DATA" outfile=/scratch/kocevski/157650/ltcube_258768001_259027201_4FGL_J1154.0+4037_daily_bin75.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/157650/ft2_4FGL_J1154.0+4037_daily_bin75.fits
.....................!
real 8.79
user 8.43
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/157650/ft1_filtered_4FGL_J1154.0+4037_daily_bin75.fits evtable="EVENTS" scfile=/scratch/kocevski/157650/ft2_4FGL_J1154.0+4037_daily_bin75.fits sctable="SC_DATA" expcube=/scratch/kocevski/157650/ltcube_258768001_259027201_4FGL_J1154.0+4037_daily_bin75.fits outfile=/scratch/kocevski/157650/expmap_258768001_259027201_4FGL_J1154.0+4037_daily_bin75.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/157650/ltcube_258768001_259027201_4FGL_J1154.0+4037_daily_bin75.fits
.....................!
real 190.29
user 185.00
sys 4.96

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/157650/ft1_filtered_4FGL_J1154.0+4037_daily_bin75.fits scfile=/scratch/kocevski/157650/ft2_4FGL_J1154.0+4037_daily_bin75.fits outfile=/scratch/kocevski/157650/cmap_258768001_259027201_4FGL_J1154.0+4037_daily_bin75.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/157650/ft1_filtered_4FGL_J1154.0+4037_daily_bin75.fits scfile=/scratch/kocevski/157650/ft2_4FGL_J1154.0+4037_daily_bin75.fits outfile=/scratch/kocevski/157650/cmap_HighResolution_258768001_259027201_4FGL_J1154.0+4037_daily_bin75.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.53
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.764       1.0000         .10000E-03   10000.    
     2 'norm      '    .53176       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.1730       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11372E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .42486E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    .11953E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    40.739       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.960       1.0000         .10000E-03   10000.    
    15 'norm      '    .37884       1.0000         .10000E-03   10000.    
    16 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .26651       1.0000         .10000E-03   10000.    
    19 'Prefactor '    250.06       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.9197       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.8650       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    3.0135       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10494E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.6888       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .94618       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1080       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=   3384.270     FROM MIGRAD    STATUS=CONVERGED   1378 CALLS     4569 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.594        171.13        .95027E-04   -.31285E-04
   2  norm          .53182        .37125        .28073E-04    .37925E-03
   3  Prefactor     1.1788        80.761        .42333E-03   -.11776E-04
   4  Prefactor     .10000E-03    11.809        .18142E-02** at limit **
   5  Prefactor     .10000E-03    101.60        .18142E-02** at limit **
   6  norm          .10000E-03    11.750        .18142E-02** at limit **
   7  norm          .10000E-03    39.858        .18142E-02** at limit **
   8  Prefactor     .10000E-03    1.2523        .63316E-03** at limit **
   9  Prefactor     .10000E-03    19.007        .18142E-02** at limit **
  10  Prefactor     .10001E-03    57.627        .95832E-01** at limit **
  11  norm          .10001E-03    20.624        .13672E-02** at limit **
  12  Prefactor     40.725        32.432        .62802E-04   -.18671E-03
  13  Prefactor     .10000E-03    6.4300        .14258E-02** at limit **
  14  Prefactor     17.944        30.369        .94508E-04    .52869E-04
  15  norm          .37943        1.1243        .99840E-03   -.53915E-03
  16  norm          .10000E-03    50.264        .36285E-03** at limit **
  17  Prefactor     .10000E-03    23.479        .18142E-02** at limit **
  18  Prefactor     .26323        17.517        .19678E-02    .13153E-03
  19  Prefactor     250.06        111.39        .25618E-04    .95280E-04
  20  Prefactor     .10000E-03    27.978        .18142E-02** at limit **
  21  norm          3.9196        1.9813        .56282E-04   -.12029E-03
  22  Prefactor     .10000E-03    19.923        .18142E-02** at limit **
  23  norm          4.8658        4.4079        .56235E-03   -.48358E-04
  24  Prefactor     .10000E-03    2.1709        .83704E-03** at limit **
  25  Prefactor     .10000E-03    2.1486        .82951E-03** at limit **
  26  norm          3.0108        7.4863        .23380E-03    .76951E-04
  27  Prefactor     .10000E-03    59.735        .18142E-02** at limit **
  28  Prefactor     4.6887        14.425        .18584E-03    .78914E-05
  29  Normalizat    .94617        .27897        .24356E-03   -.46328E-04
  30  Prefactor     1.1080        .32633        .27602E-03    .19531E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.5936
  norm       = 0.53182
  Prefactor  = 1.1788
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  norm       = 0.000100006
  Prefactor  = 40.725
  Prefactor  = 0.0001
  Prefactor  = 17.9444
  norm       = 0.379433
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.263233
  Prefactor  = 250.055
  Prefactor  = 0.0001
  norm       = 3.91961
  Prefactor  = 0.0001
  norm       = 4.8658
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.01078
  Prefactor  = 0.0001
  Prefactor  = 4.68866
  Normalizat = 0.946166
  Prefactor  = 1.10795
 **********
 **   18 **HESSE 
 **********

 FCN=   3384.270     FROM HESSE     STATUS=OK           572 CALLS     5141 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.594        171.08        .19005E-04   -1.4869    
   2  norm          .53182        .37104        .11229E-05   -1.5562    
   3  Prefactor     1.1788        80.565        .16933E-04   -1.5491    
   4  Prefactor     .10000E-03    11.809        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    101.60        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    11.751        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    39.858        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.2523        .12663E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    19.007        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    52.723        .10146       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10001E-03    21.361        .54690E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     40.725        32.359        .12560E-04   -1.4431    
  13  Prefactor     .10000E-03    6.4330        .28515E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     17.944        30.356        .37803E-05   -1.4860    
  15  norm          .37943        1.1202        .39936E-04   -1.5585    
  16  norm          .10000E-03    50.266        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    23.483        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .26323        17.422        .78713E-04   -1.5605    
  19  Prefactor     250.06        111.15        .51235E-05   -1.2532    
  20  Prefactor     .10000E-03    27.978        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.9196        1.9811        .22513E-05   -1.5312    
  22  Prefactor     .10000E-03    19.925        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.8658        4.4074        .22494E-04   -1.5267    
  24  Prefactor     .10000E-03    2.1709        .16741E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    2.1486        .16590E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          3.0108        7.4856        .93519E-05   -1.5361    
  27  Prefactor     .10000E-03    59.764        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     4.6887        14.425        .74337E-05   -1.5275    
  29  Normalizat    .94617        .27864        .97423E-05   -.94856    
  30  Prefactor     1.1080        .32660        .55205E-04   -.89213    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41748e-09
Minuit parameter uncertainties:
  1  110.138
  2  0.37104
  3  19.5171
  4  4.15399e-06
  5  3.10515e-05
  6  4.6637e-06
  7  7.19897e-05
  8  1.26123e-06
  9  8.6378e-06
  10  0.00146939
  11  0.000741515
  12  32.3728
  13  3.67664e-06
  14  30.3822
  15  1.12028
  16  0.00014226
  17  5.06101e-08
  18  4.28356
  19  111.248
  20  1.3779e-05
  21  1.98117
  22  1.38162e-05
  23  4.40765
  24  6.76764e-07
  25  3.96171e-06
  26  7.48793
  27  6.38826e-05
  28  14.4359
  29  0.279065
  30  0.327191
Done.

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

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  2.501e+02  1.112e+02  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.108e+00  3.272e-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:  9.462e-01  2.791e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.35
Ra Dec: 178.514 40.632
Photon Index (Fixed Index): 2.11 +/- 0.00
Photon Flux (Fixed Index): 1.37e-07 +/- 6.10e-08
Energy Flux (Fixed Index): 7.29e-05 +/- 3.24e-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) = 3384.20600084
delta logL = 0.0642927158947

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3384.20373713
delta logL = 0.0665564270712

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    203.67       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2484       1.0000          .0000       10.000    
     3 'Normalizat'    .92955       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1219       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=   3384.204     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      278 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     203.66        162.65        .14159E-03    .36732E-03
   2  Index         2.2486        .40274        .26010E-02    .45389E-03
   3  Normalizat    .92889        .27205        .24548E-03   -.11645E-03
   4  Prefactor     1.1227        .32813        .27443E-03   -.21067E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 203.657
  Index      = 2.24857
  Normalizat = 0.928888
  Prefactor  = 1.12273
 **********
 **   18 **HESSE 
 **********

 FCN=   3384.204     FROM HESSE     STATUS=OK            23 CALLS      301 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     203.66        152.55        .28318E-04   -1.2844    
   2  Index         2.2486        .37750        .10404E-03   -.58271    
   3  Normalizat    .92889        .27178        .98191E-05   -.95452    
   4  Prefactor     1.1227        .32797        .54887E-04   -.88743    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.47044e-10
Minuit parameter uncertainties:
  1  152.847
  2  0.378012
  3  0.272182
  4  0.328567
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/157650': 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) = 3384.20373392
delta logL = 0.0665596330655

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  2.037e+02  1.528e+02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.249e+00  3.780e-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.123e+00  3.286e-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:  9.289e-01  2.722e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.43
Ra Dec: 178.514 40.632
Photon Index (Free Index): 2.25 +/- 0.38
Photon Flux (Free Index): 1.50e-07 +/- 7.02e-08
Energy Flux (Free Index): 6.17e-05 +/- 3.68e-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/157650/cmap_HighResolution_258768001_259027201_4FGL_J1154.0+4037_daily_bin75.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.37e-07', energy_flux2='6.17e-05', photon_flux_error='6.10e-08', dlogl='6.66e-02', energy_flux='7.29e-05', photon_flux2='1.50e-07', job_status='DONE', time_completed='2021-09-04 15:37:55.144341', photon_index_error2='0.38', photon_index2='2.25', ts='14.35', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='3.68e-05', EG='0.95', time_epoch_completed='1630795075.14', return_code='0', job_id='157650', GAL2='1.12', EG2='0.93', return_code2='0', energy_flux_error='3.24e-05', photon_flux_error2='7.02e-08', ts2='14.43', photon_index='2.11' WHERE bin_id='75' AND source_name='4FGL J1154.0+4037' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:37:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 157650: <4FGL_J1154.0+4037_daily_bin75> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1154.0+4037_daily_bin75 178.514 40.632 258768001 259027201 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 :                                   622.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             330.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   679 sec.
    Turnaround time :                            682 sec.

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

