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


Performing analysis on: 4FGL_J1154.0+4037_daily_bin1525
RA = 178.514, Dec = 40.632
tmin = 634608001, tmax = 634867201
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='165581', job_status='RUN', time_executed='2021-09-04 15:52:10.048079', time_epoch_executed='1630795930.05' WHERE source_name='4FGL J1154.0+4037' and cadence='daily' and bin_id='1525'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/165581

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/165581/ft1_4FGL_J1154.0+4037_daily_bin1525.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/165581/ft2_4FGL_J1154.0+4037_daily_bin1525.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/165581/ft1_4FGL_J1154.0+4037_daily_bin1525.fits outfile=/scratch/kocevski/165581/ft1_filteredMKT_4FGL_J1154.0+4037_daily_bin1525.fits ra=178.514 dec=40.632 rad=12.0 tmin=634608001.0 tmax=634867201.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.07
user 2.88
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/165581/ft1_filtered_4FGL_J1154.0+4037_daily_bin1525.fits evtable="EVENTS" scfile=/scratch/kocevski/165581/ft2_4FGL_J1154.0+4037_daily_bin1525.fits sctable="SC_DATA" expcube=/scratch/kocevski/165581/ltcube_634608001_634867201_4FGL_J1154.0+4037_daily_bin1525.fits outfile=/scratch/kocevski/165581/expmap_634608001_634867201_4FGL_J1154.0+4037_daily_bin1525.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/165581/ltcube_634608001_634867201_4FGL_J1154.0+4037_daily_bin1525.fits
.....................!
real 190.46
user 185.05
sys 4.98

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 213 point sources and 0 extended sources

Setting source of interest to:
4FGL J1154.0+4037 @ 178.514 40.632

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/165581/ft1_filtered_4FGL_J1154.0+4037_daily_bin1525.fits scfile=/scratch/kocevski/165581/ft2_4FGL_J1154.0+4037_daily_bin1525.fits outfile=/scratch/kocevski/165581/cmap_634608001_634867201_4FGL_J1154.0+4037_daily_bin1525.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/165581/ft1_filtered_4FGL_J1154.0+4037_daily_bin1525.fits scfile=/scratch/kocevski/165581/ft2_4FGL_J1154.0+4037_daily_bin1525.fits outfile=/scratch/kocevski/165581/cmap_HighResolution_634608001_634867201_4FGL_J1154.0+4037_daily_bin1525.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     6 'norm      '    78.548       1.0000         .10000E-03   10000.    
     7 'norm      '    .10649E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    478.82       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.3666       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10295E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.8367       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    479.43       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10578E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    7.8445       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .81244       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    7.1684       1.0000         .10000E-03   10000.    
    27 'Prefactor '    28.314       1.0000         .10000E-03   10000.    
    28 'Prefactor '    23.679       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .56378       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0740       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=   1030.386     FROM MIGRAD    STATUS=CONVERGED    761 CALLS     4657 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        8818.6       -.28640E-04** at limit **
   2  norm          .10000E-03    8.7377        .11105E-06** at limit **
   3  Prefactor     .10000E-03    354.01        .42804E-06** at limit **
   4  Prefactor     .10000E-03    326.17       -.87506E-06** at limit **
   5  Prefactor    10000.0        7774.9       -.47996E-04** at limit **
   6  norm          78.595        445.41       -.40936E-05    .14128E-04
   7  norm          .10015E-03    1303.3        .29913E-04** at limit **
   8  Prefactor     .10000E-03    35.556       -.84754E-06** at limit **
   9  Prefactor     478.85        492.62       -.16632E-05    .17937E-04
  10  Prefactor     .10000E-03    71.815       -.18018E-05** at limit **
  11  norm          .10000E-03    11.680        .52903E-07** at limit **
  12  Prefactor     .10000E-03    43.500        .24339E-06** at limit **
  13  Prefactor     7.3946        131.11        .50385E-05    .11366E-04
  14  Prefactor     .10000E-03    187.44       -.11047E-05** at limit **
  15  norm          5.8387        6.6572        .12654E-06    .14868E-03
  16  norm          .10000E-03    21.360        .82791E-07** at limit **
  17  Prefactor     479.32        243.20       -.16426E-05    .22023E-04
  18  Prefactor     .10000E-03    5.4693        .13606E-06** at limit **
  19  Prefactor     .10000E-03    194.22       -.12288E-05** at limit **
  20  Prefactor     .10000E-03    43.042        .61894E-06** at limit **
  21  norm          7.8450        5.3194        .62026E-08    .11936E-04
  22  Prefactor     .10000E-03    84.026        .33529E-05** at limit **
  23  norm          .10000E-03    6.8153        .10010E-05** at limit **
  24  Prefactor     1.0304        187.29        .26445E-04   -.22752E-04
  25  Prefactor     .10000E-03    4.5415        .52766E-06** at limit **
  26  norm          7.1771        14.559        .78960E-06    .34270E-04
  27  Prefactor     28.330        35.705        .14031E-05   -.46352E-05
  28  Prefactor     23.720        53.377        .25753E-05    .18622E-04
  29  Normalizat    .56331        .44548       -.13012E-04    .65718E-04
  30  Prefactor     1.0733        .49034       -.43432E-05    .23247E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  norm       = 78.5945
  norm       = 0.000100155
  Prefactor  = 0.000100001
  Prefactor  = 478.851
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.39459
  Prefactor  = 0.0001
  norm       = 5.83869
  norm       = 0.0001
  Prefactor  = 479.316
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 7.84497
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 1.03038
  Prefactor  = 0.0001
  norm       = 7.17714
  Prefactor  = 28.33
  Prefactor  = 23.72
  Normalizat = 0.563311
  Prefactor  = 1.07327
 **********
 **   18 **HESSE 
 **********

 FCN=   1030.386     FROM HESSE     STATUS=OK           576 CALLS     5233 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        8816.8        .19798E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    8.7379        .92697E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    354.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    326.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor    10000.0        7767.8        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          78.595        443.02        .22656E-03   -1.3933    
   7  norm          .10015E-03    1294.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    35.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     478.85        491.76        .93670E-04   -1.1296    
  10  Prefactor     .10000E-03    71.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    11.681        .10717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    43.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.3946        129.92        .14777E-03   -1.5164    
  14  Prefactor     .10000E-03    187.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.8387        6.6506        .83685E-04   -1.5225    
  16  norm          .10000E-03    21.361        .14496E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     479.32        242.98        .93613E-04   -1.1294    
  18  Prefactor     .10000E-03    5.4712        .73338E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    194.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    43.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          7.8450        5.3188        .58322E-04   -1.5148    
  22  Prefactor     .10000E-03    83.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    7.0104        .16373E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.0304        193.78        .33385E-02   -1.5505    
  25  Prefactor     .10000E-03    4.5957        .66818E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          7.1771        14.574        .14982E-03   -1.5172    
  27  Prefactor     28.330        35.703        .75292E-04   -1.4643    
  28  Prefactor     23.720        53.640        .82318E-04   -1.4734    
  29  Normalizat    .56331        .51566        .31439E-03   -1.0957    
  30  Prefactor     1.0733        .58194        .27722E-03   -.90326    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.20521e-10
Minuit parameter uncertainties:
  1  0.0795041
  2  4.3844e-06
  3  0.000165048
  4  0.000448455
  5  0.104901
  6  377.553
  7  0.0289627
  8  0.00030928
  9  496.219
  10  0.000442098
  11  2.21022e-05
  12  2.35482e-05
  13  62.1486
  14  0.000578289
  15  6.65143
  16  4.62029e-06
  17  243.506
  18  1.6853e-06
  19  0.000767908
  20  3.82008e-05
  21  5.31916
  22  0.000764955
  23  3.68194e-05
  24  28.3531
  25  1.56478e-05
  26  14.5814
  27  35.7299
  28  53.7494
  29  0.520141
  30  0.585427
Done.

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

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  7.679e-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.073e+00  5.854e-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:  5.633e-01  5.201e-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: 3.84e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.91e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/165581/likelihoodResults_634608001_634867201_4FGL_J1154.0+4037_daily_bin1525.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) = 1030.38576202
delta logL = -2.43812794452e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1030.38573766
delta logL = -1.98963334697e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10498E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0858       1.0000          .0000       10.000    
     3 'Normalizat'    .56331       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0733       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=   1030.386     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      237 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7100.1        .90712E-02** at limit **
   2  Index         2.0910        7.4521        .50000       -.25158E-06
   3  Normalizat    .56330        .55100E-01    .71017E-01    .44078E-05
   4  Prefactor     1.0733        .65885E-01    .62684E-01   -.27850E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.09099
  Normalizat = 0.563305
  Prefactor  = 1.07327
 **********
 **   18 **HESSE 
 **********

 FCN=   1030.386     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      270 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9789.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0910        8.8965        .50000       -.62094    
   3  Normalizat    .56330        .11888        .31440E-03   -1.0957    
   4  Prefactor     1.0733        .14236        .27722E-03   -.90325    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.04518e-10
Minuit parameter uncertainties:
  1  0.00496338
  2  41.3122
  3  0.118931
  4  0.142412
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/165581': 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): 102
logL (Free Index) = 1030.38573764
delta logL = -1.45223566506e-09

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  4.963e-03  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.091e+00  4.131e+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.073e+00  1.424e-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:  5.633e-01  1.189e-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/165581/cmap_HighResolution_634608001_634867201_4FGL_J1154.0+4037_daily_bin1525.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.91e-02', job_status='DONE', photon_flux_upper_limit='3.84e-07', time_completed='2021-09-04 15:59:29.486477', job_id='165581', GAL2='1.07', fit_tolerance='1e-08', EG2='0.56', EG='0.56', time_epoch_completed='1630796369.49', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='-1.45e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='1525' AND source_name='4FGL J1154.0+4037' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:59:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 165581: <4FGL_J1154.0+4037_daily_bin1525> in cluster <slac> Done

Job <4FGL_J1154.0+4037_daily_bin1525> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 15:51:55 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 15:51:56 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:51:56 2021
Terminated at Sat Sep  4 15:59:30 2021
Results reported at Sat Sep  4 15:59:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1154.0+4037_daily_bin1525 178.514 40.632 634608001 634867201 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 :                                   435.20 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             339.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   453 sec.
    Turnaround time :                            455 sec.

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

