aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 166 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7584
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1154.0+4037_daily_bin1755
RA = 178.514, Dec = 40.632
tmin = 694224001, tmax = 694483201
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='822113', job_status='RUN', time_executed='2023-01-04 00:58:27.277075', time_epoch_executed='1672822707.28' WHERE source_name='4FGL J1154.0+4037' and cadence='daily' and bin_id='1755'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/822113

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/822113/ft1_4FGL_J1154.0+4037_daily_bin1755.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/822113/ft2_4FGL_J1154.0+4037_daily_bin1755.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/822113/ft1_4FGL_J1154.0+4037_daily_bin1755.fits outfile=/scratch/kocevski/822113/ft1_filteredMKT_4FGL_J1154.0+4037_daily_bin1755.fits ra=178.514 dec=40.632 rad=12.0 tmin=694224001.0 tmax=694483201.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.11
user 2.85
sys 0.20

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

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

Number of photons that the gtmktime cut: 575

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/822113/ft1_filtered_4FGL_J1154.0+4037_daily_bin1755.fits" evtable="EVENTS" scfile=/scratch/kocevski/822113/ft2_4FGL_J1154.0+4037_daily_bin1755.fits sctable="SC_DATA" outfile=/scratch/kocevski/822113/ltcube_694224001_694483201_4FGL_J1154.0+4037_daily_bin1755.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/822113/ft2_4FGL_J1154.0+4037_daily_bin1755.fits
.....................!
real 18.49
user 17.92
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/822113/ft1_filtered_4FGL_J1154.0+4037_daily_bin1755.fits evtable="EVENTS" scfile=/scratch/kocevski/822113/ft2_4FGL_J1154.0+4037_daily_bin1755.fits sctable="SC_DATA" expcube=/scratch/kocevski/822113/ltcube_694224001_694483201_4FGL_J1154.0+4037_daily_bin1755.fits outfile=/scratch/kocevski/822113/expmap_694224001_694483201_4FGL_J1154.0+4037_daily_bin1755.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/822113/ltcube_694224001_694483201_4FGL_J1154.0+4037_daily_bin1755.fits
.....................!
real 194.68
user 186.79
sys 5.28

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/822113/ft1_filtered_4FGL_J1154.0+4037_daily_bin1755.fits scfile=/scratch/kocevski/822113/ft2_4FGL_J1154.0+4037_daily_bin1755.fits outfile=/scratch/kocevski/822113/cmap_694224001_694483201_4FGL_J1154.0+4037_daily_bin1755.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.59
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/822113/ft1_filtered_4FGL_J1154.0+4037_daily_bin1755.fits scfile=/scratch/kocevski/822113/ft2_4FGL_J1154.0+4037_daily_bin1755.fits outfile=/scratch/kocevski/822113/cmap_HighResolution_694224001_694483201_4FGL_J1154.0+4037_daily_bin1755.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.58
user 0.41
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/822113/ft1_filtered_4FGL_J1154.0+4037_daily_bin1755.fits', '/scratch/kocevski/822113/ft2_4FGL_J1154.0+4037_daily_bin1755.fits', expMap='/scratch/kocevski/822113/expmap_694224001_694483201_4FGL_J1154.0+4037_daily_bin1755.fits', expCube='/scratch/kocevski/822113/ltcube_694224001_694483201_4FGL_J1154.0+4037_daily_bin1755.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/822113/Model_4FGL_J1154.0+4037_daily_bin1755.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  0.000e+00  1.000e+06 ( 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/822113/ft1_filtered_4FGL_J1154.0+4037_daily_bin1755.fits
Spacecraft file(s): /scratch/kocevski/822113/ft2_4FGL_J1154.0+4037_daily_bin1755.fits
Exposure map: /scratch/kocevski/822113/expmap_694224001_694483201_4FGL_J1154.0+4037_daily_bin1755.fits
Exposure cube: /scratch/kocevski/822113/ltcube_694224001_694483201_4FGL_J1154.0+4037_daily_bin1755.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/822113/Model_4FGL_J1154.0+4037_daily_bin1755.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) = 6025.85472241

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .48756E-02   1.0000          .0000       .10000E+07
     2 'norm      '    3.3660       1.0000          .0000       .10000E+07
     3 'Prefactor '    21.216       1.0000          .0000       .10000E+07
     4 'Prefactor '    .87029E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .20188E-03   1.0000          .0000       .10000E+07
     6 'norm      '    4.1793       1.0000          .0000       .10000E+07
     7 'norm      '    141.49       1.0000          .0000       .10000E+07
     8 'Prefactor '    .12490E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .21785E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    6.3663       1.0000          .0000       .10000E+07
    11 'norm      '    3.2492       1.0000          .0000       .10000E+07
    12 'Prefactor '    .44233E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .11017E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    .42133E-03   1.0000          .0000       .10000E+07
    15 'norm      '    1.0118       1.0000          .0000       .10000E+07
    16 'norm      '    9.2800       1.0000          .0000       .10000E+07
    17 'Prefactor '    .11422E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    29.091       1.0000          .0000       .10000E+07
    19 'Prefactor '    8.5195       1.0000          .0000       .10000E+07
    20 'norm      '    48.757       1.0000          .0000       .10000E+07
    21 'norm      '    5.6158       1.0000          .0000       .10000E+07
    22 'Prefactor '    .16342E-06   1.0000          .0000       .10000E+07
    23 'Prefactor '    4.2127       1.0000          .0000       .10000E+07
    24 'norm      '    .78055E-05   1.0000          .0000       .10000E+07
    25 'Prefactor '    46.693       1.0000          .0000       .10000E+07
    26 'Prefactor '    30.491       1.0000          .0000       .10000E+07
    27 'Normalizat'    1.0867       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .64241       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6025.789     FROM MIGRAD    STATUS=CONVERGED    219 CALLS     2057 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22253E-03    118.89       -.18200E-05** at limit **
   2  norm          3.3662        .75355        .54761E-07   -.71921E-02
   3  Prefactor     21.239        17.810       -.34333E-06   -.11729E-01
   4  Prefactor     .77549E-07    29.037       -.87335E-06** at limit **
   5  Prefactor     .50672E-05    140.95       -.27193E-05** at limit **
   6  norm          4.2057        16.380       -.10618E-05    .49136E-02
   7  norm          130.91        88.353       -.19689E-06    .26003E-01
   8  Prefactor      .0000        5.0201       -.19978E-07** at limit **
   9  Prefactor     .24314E-07    30.950        .68098E-06** at limit **
  10  Prefactor     6.4460        12.393       -.31484E-06    .98997E-03
  11  norm          3.2464        3.1881        .36204E-07   -.10529E-02
  12  Prefactor      .0000        6.3832        .15395E-06** at limit **
  13  Prefactor      .0000        8.7259       -.43140E-06** at limit **
  14  Prefactor     .15210E-07    26.508        .11812E-06** at limit **
  15  norm          .99604        .95898        .34881E-07   -.14665E-02
  16  norm          9.0446        13.168       -.11252E-05    .40520E-02
  17  Prefactor      .0000        2.3938       -.19600E-08** at limit **
  18  Prefactor     33.002        51.364        .10424E-05   -.72297E-01
  19  Prefactor     8.5195        16.728       -.27968E-06    .64019E-03
  20  norm          48.744        4.5827       -.12167E-07   -.42933E-03
  21  norm          5.6201        3.7915       -.44578E-07    .25008E-03
  22  Prefactor      .0000        4.1543       -.58231E-07** at limit **
  23  Prefactor     4.2120        3.0221       -.27131E-07    .17271E-03
  24  norm           .0000        2.8899       -.70046E-07** at limit **
  25  Prefactor     46.647        7.1703        .37701E-08   -.67864E-02
  26  Prefactor     30.316        7.5436        .14232E-06    .14978E-01
  27  Normalizat    1.0853        .20952        .77129E-05   -.14306E-03
  28  Prefactor     .64399        .23557       -.98276E-06   -.74914E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000222528
  norm       = 3.36618
  Prefactor  = 21.2389
  Prefactor  = 7.75491e-08
  Prefactor  = 5.06722e-06
  norm       = 4.20567
  norm       = 130.913
  Prefactor  = 0
  Prefactor  = 2.43139e-08
  Prefactor  = 6.44604
  norm       = 3.24638
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 1.52101e-08
  norm       = 0.996035
  norm       = 9.04455
  Prefactor  = 0
  Prefactor  = 33.0024
  Prefactor  = 8.51948
  norm       = 48.7443
  norm       = 5.62013
  Prefactor  = 0
  Prefactor  = 4.21205
  norm       = 0
  Prefactor  = 46.6466
  Prefactor  = 30.3158
  Normalizat = 1.08531
  Prefactor  = 0.64399
 **********
 **   18 **HESSE 
 **********

 FCN=   6025.789     FROM HESSE     STATUS=OK           579 CALLS     2636 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22253E-03    249.79        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.3662        .75273        .55132E-03   -1.5671    
   3  Prefactor     21.239        20.326        .21717E-03   -1.5616    
   4  Prefactor     .77549E-07    29.267        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .50672E-05    144.34        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.2057        25.517        .49275E-03   -1.5667    
   7  norm          130.91        89.341        .84074E-04   -1.5479    
   8  Prefactor      .0000        4.9608        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .24314E-07    30.996        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.4460        22.155        .39757E-03   -1.5657    
  11  norm          3.2464        3.2014        .56163E-03   -1.5672    
  12  Prefactor      .0000        6.3879        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        8.6947        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .15210E-07    26.723        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .99604        .97720        .44182E-03   -1.5688    
  16  norm          9.0446        13.456        .32875E-03   -1.5648    
  17  Prefactor      .0000        2.3845        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     33.002        68.194        .18544E-03   -1.5593    
  19  Prefactor     8.5195        16.840        .34320E-03   -1.5650    
  20  norm          48.744        4.5820        .14322E-03   -1.5568    
  21  norm          5.6201        3.7831        .42368E-03   -1.5661    
  22  Prefactor      .0000        4.1452        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.2120        3.0139        .49073E-03   -1.5667    
  24  norm           .0000        2.8879        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     46.647        21.463        .14636E-03   -1.5571    
  26  Prefactor     30.316        22.958        .18113E-03   -1.5598    
  27  Normalizat    1.0853        .18040        .56414E-01   -.90225    
  28  Prefactor     .64399        .20236        .81690E-01   -1.0576    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71935e-06
Minuit parameter uncertainties:
  1  0.471547
  2  0.75273
  3  20.3265
  4  0.00301301
  5  0.0540902
  6  20.7186
  7  89.3421
  8  3.16312e-06
  9  0.00173643
  10  22.1551
  11  3.20141
  12  7.00574e-06
  13  2.9166e-05
  14  0.0012748
  15  0.977198
  16  13.456
  17  8.97006e-07
  18  68.1955
  19  16.84
  20  4.58199
  21  3.78307
  22  4.41245e-06
  23  3.01392
  24  1.90414e-06
  25  21.4635
  26  22.9582
  27  0.180502
  28  0.202589
Done.

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

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  3.300e+01  6.820e+01  0.000e+00  1.000e+06 ( 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:  6.440e-01  2.026e-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.085e+00  1.805e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/822113/likelihoodResults_694224001_694483201_4FGL_J1154.0+4037_daily_bin1755.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) = 6024.86896665
delta logL = 0.920103652409

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 1
logL (Free Index) = 6024.69390789
delta logL = 1.09516242021

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13495E-06   1.0000          .0000       .10000E+07
     2 'Index     '    9.6490       1.0000          .0000       10.000    
     3 'Normalizat'    .99598       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72533       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6025.957     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      969 TOTAL
                     EDM=   .43E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11102E-09    138.25       -.68885E-06** at limit **
   2  Index         1.6318        .33793E-01   -.15844E-06    .96085E-11
   3  Normalizat    1.0968        .20325       -.35919E-05   -.60995E-04
   4  Prefactor     .64748        .23369        .74372E-05   -.54466E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11022e-10
  Index      = 1.63185
  Normalizat = 1.09678
  Prefactor  = 0.647479
 **********
 **   18 **HESSE 
 **********

 FCN=   6025.957     FROM HESSE     STATUS=NOT POSDEF    39 CALLS     1008 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11102E-09    1.4632        .42118E-03   -4676.3    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6318        .37958        9.2532       -.19405E+08
   3  Normalizat    1.0968        .46828E-03    .46117E-01   -52.509    
   4  Prefactor     .64748        .53864E-03    .81567E-01   -27.218    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.56338e-11
Minuit parameter uncertainties:
  1  2.72568e-05
  2  0.380247
  3  0.000468285
  4  0.000538635
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/822113': 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) = 6025.9574441
delta logL = -0.168373788767

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  1.110e-10  2.726e-05  0.000e+00  1.000e+06 ( 1.000e-14)
348        Index:  1.632e+00  3.802e-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:  6.475e-01  5.386e-04  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.097e+00  4.683e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.35
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/822113/cmap_HighResolution_694224001_694483201_4FGL_J1154.0+4037_daily_bin1755.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.43e-03', job_status='DONE', photon_flux_upper_limit='9.82e-08', time_completed='2023-01-04 01:11:45.455652', job_id='822113', GAL2='0.65', fit_tolerance='1e-08', EG2='1.10', EG='1.09', time_epoch_completed='1672823505.46', return_code2='102', ts='0.35', comment='SUCCESS', return_code='0', GAL='0.64', dlogl='-1.68e-01', ts2='0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='1755' AND source_name='4FGL J1154.0+4037' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jan  4 01:11:45 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0166>
Subject: Job 822113: <4FGL_J1154.0+4037_daily_bin1755> in cluster <slac> Done

Job <4FGL_J1154.0+4037_daily_bin1755> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Jan  4 00:55:15 2023
Job was executed on host(s) <bullet0166>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jan  4 00:55:32 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jan  4 00:55:32 2023
Terminated at Wed Jan  4 01:11:46 2023
Results reported at Wed Jan  4 01:11:46 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1154.0+4037_daily_bin1755 178.514 40.632 694224001 694483201 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 :                                   796.45 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             291.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   973 sec.
    Turnaround time :                            991 sec.

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

