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


Performing analysis on: 4FGL_J1139.0+4033_daily_bin1748
RA = 174.764, Dec = 40.5617
tmin = 692409601, tmax = 692668801
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='884765', job_status='RUN', time_executed='2022-12-14 00:38:28.259550', time_epoch_executed='1671007108.26' WHERE source_name='4FGL J1139.0+4033' and cadence='daily' and bin_id='1748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/884765

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/884765/ft1_4FGL_J1139.0+4033_daily_bin1748.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/884765/ft2_4FGL_J1139.0+4033_daily_bin1748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/884765/ft1_4FGL_J1139.0+4033_daily_bin1748.fits outfile=/scratch/kocevski/884765/ft1_filteredMKT_4FGL_J1139.0+4033_daily_bin1748.fits ra=174.764 dec=40.5617 rad=12.0 tmin=692409601.0 tmax=692668801.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.58
user 3.34
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/884765/ft2_4FGL_J1139.0+4033_daily_bin1748.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/884765/ft2_4FGL_J1139.0+4033_daily_bin1748.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/884765/ft1_filteredMKT_4FGL_J1139.0+4033_daily_bin1748.fits evtable="EVENTS" outfile="/scratch/kocevski/884765/ft1_filtered_4FGL_J1139.0+4033_daily_bin1748.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.17

Number of photons that the gtmktime cut: 778

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/884765/ft1_filtered_4FGL_J1139.0+4033_daily_bin1748.fits" evtable="EVENTS" scfile=/scratch/kocevski/884765/ft2_4FGL_J1139.0+4033_daily_bin1748.fits sctable="SC_DATA" outfile=/scratch/kocevski/884765/ltcube_692409601_692668801_4FGL_J1139.0+4033_daily_bin1748.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/884765/ft2_4FGL_J1139.0+4033_daily_bin1748.fits
.....................!
real 12.09
user 11.71
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/884765/ft1_filtered_4FGL_J1139.0+4033_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/884765/ft2_4FGL_J1139.0+4033_daily_bin1748.fits sctable="SC_DATA" expcube=/scratch/kocevski/884765/ltcube_692409601_692668801_4FGL_J1139.0+4033_daily_bin1748.fits outfile=/scratch/kocevski/884765/expmap_692409601_692668801_4FGL_J1139.0+4033_daily_bin1748.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/884765/ltcube_692409601_692668801_4FGL_J1139.0+4033_daily_bin1748.fits
.....................!
real 192.45
user 186.44
sys 5.17

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 219 point sources and 0 extended sources

Setting source of interest to:
4FGL J1139.0+4033 @ 174.764 40.5617

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/884765/ft1_filtered_4FGL_J1139.0+4033_daily_bin1748.fits scfile=/scratch/kocevski/884765/ft2_4FGL_J1139.0+4033_daily_bin1748.fits outfile=/scratch/kocevski/884765/cmap_692409601_692668801_4FGL_J1139.0+4033_daily_bin1748.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=174.764 yref=40.5617 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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/884765/ft1_filtered_4FGL_J1139.0+4033_daily_bin1748.fits scfile=/scratch/kocevski/884765/ft2_4FGL_J1139.0+4033_daily_bin1748.fits outfile=/scratch/kocevski/884765/cmap_HighResolution_692409601_692668801_4FGL_J1139.0+4033_daily_bin1748.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=174.764 yref=40.5617 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.56
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/884765/ft1_filtered_4FGL_J1139.0+4033_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/884765/ft2_4FGL_J1139.0+4033_daily_bin1748.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/884765/Model_4FGL_J1139.0+4033_daily_bin1748.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/884765/ft1_filtered_4FGL_J1139.0+4033_daily_bin1748.fits.....................!
real 71.26
user 68.64
sys 2.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/884765/ft1_filtered_4FGL_J1139.0+4033_daily_bin1748.fits', '/scratch/kocevski/884765/ft2_4FGL_J1139.0+4033_daily_bin1748.fits', expMap='/scratch/kocevski/884765/expmap_692409601_692668801_4FGL_J1139.0+4033_daily_bin1748.fits', expCube='/scratch/kocevski/884765/ltcube_692409601_692668801_4FGL_J1139.0+4033_daily_bin1748.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/884765/Model_4FGL_J1139.0+4033_daily_bin1748.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1139.0+4033'

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  9.736e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
342        Index:  2.720e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
343        Scale:  6.779e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/884765/ft1_filtered_4FGL_J1139.0+4033_daily_bin1748.fits
Spacecraft file(s): /scratch/kocevski/884765/ft2_4FGL_J1139.0+4033_daily_bin1748.fits
Exposure map: /scratch/kocevski/884765/expmap_692409601_692668801_4FGL_J1139.0+4033_daily_bin1748.fits
Exposure cube: /scratch/kocevski/884765/ltcube_692409601_692668801_4FGL_J1139.0+4033_daily_bin1748.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/884765/Model_4FGL_J1139.0+4033_daily_bin1748.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) = 8347.93184527

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12213E-03   1.0000          .0000       .10000E+07
     2 'norm      '    2.5972       1.0000          .0000       .10000E+07
     3 'Prefactor '    .22193E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    .40641E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .79220E-04   1.0000          .0000       .10000E+07
     6 'norm      '    .32532E-03   1.0000          .0000       .10000E+07
     7 'norm      '    23.308       1.0000          .0000       .10000E+07
     8 'Prefactor '    .14665       1.0000          .0000       .10000E+07
     9 'Prefactor '    .47377E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .38429E-03   1.0000          .0000       .10000E+07
    11 'norm      '    .95366       1.0000          .0000       .10000E+07
    12 'Prefactor '    .23697E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    7.1018       1.0000          .0000       .10000E+07
    14 'Prefactor '    .62503E-02   1.0000          .0000       .10000E+07
    15 'norm      '    1.3882       1.0000          .0000       .10000E+07
    16 'norm      '    .21065E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    .47884E-06   1.0000          .0000       .10000E+07
    18 'Prefactor '    .82323E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    5.7724       1.0000          .0000       .10000E+07
    20 'Prefactor '    9.0049       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.5563       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .66665       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8347.864     FROM MIGRAD    STATUS=CONVERGED    170 CALLS     1431 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .21648E-05    10.207       -.39174E-06** at limit **
   2  norm          2.5972        .40256       -.50999E-07    .84260E-02
   3  Prefactor     .32080E-06    7.6675       -.30088E-06** at limit **
   4  Prefactor     .36737E-06    88.551       -.10248E-05** at limit **
   5  Prefactor     .23968E-05    11.157       -.40251E-06** at limit **
   6  norm          .11214E-05    5.6864        .18798E-06** at limit **
   7  norm          23.960        3.0637        .26070E-07   -.68530E-01
   8  Prefactor     .14652        3.1153       -.76294E-07** at limit **
   9  Prefactor     .96867E-06    7.4239        .15389E-07** at limit **
  10  Prefactor     .76850E-06    6.3354        .23816E-06** at limit **
  11  norm          .95365        1.4032       -.17259E-06   -.65557E-04
  12  Prefactor     .12923E-06    7.8422       -.41776E-06** at limit **
  13  Prefactor     7.1859        6.0413        .10149E-06    .74129E-03
  14  Prefactor     .12247E-05    7.3307       -.37909E-07** at limit **
  15  norm          1.3884        .87825        .29484E-07    .13550E-02
  16  norm           .0000        2.9664       -.10895E-06** at limit **
  17  Prefactor      .0000        1.1938       -.15886E-06** at limit **
  18  Prefactor     .34051E-06    41.196       -.30411E-06** at limit **
  19  Prefactor     5.7690        10.974        .81189E-07   -.36779E-03
  20  Prefactor     8.9854        8.3630       -.12272E-06    .19774E-04
  21  Normalizat    1.5560        .20014       -.32340E-05    .20765E-04
  22  Prefactor     .66670        .22737        .57816E-05   -.38702E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.16482e-06
  norm       = 2.59724
  Prefactor  = 3.20799e-07
  Prefactor  = 3.67373e-07
  Prefactor  = 2.3968e-06
  norm       = 1.12138e-06
  norm       = 23.9595
  Prefactor  = 0.146524
  Prefactor  = 9.6867e-07
  Prefactor  = 7.68496e-07
  norm       = 0.953648
  Prefactor  = 1.2923e-07
  Prefactor  = 7.18588
  Prefactor  = 1.22474e-06
  norm       = 1.38845
  norm       = 0
  Prefactor  = 0
  Prefactor  = 3.40505e-07
  Prefactor  = 5.76902
  Prefactor  = 8.98543
  Normalizat = 1.55596
  Prefactor  = 0.666695
 **********
 **   18 **HESSE 
 **********

 FCN=   8347.864     FROM HESSE     STATUS=OK           388 CALLS     1819 TOTAL
                     EDM=   .73E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .21648E-05    20.856        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.5972        .40239        .49858E-03   -1.5676    
   3  Prefactor     .32080E-06    8.4294        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .36737E-06    87.819        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .23968E-05    21.800        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .11214E-05    10.487        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          23.960        24.215        .20718E-03   -1.5610    
   8  Prefactor     .14652        1.1504        .32433E-02   -1.5716    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .96867E-06    14.352        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .76850E-06    10.800        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .95365        1.4071        .42118E-03   -1.5688    
  12  Prefactor     .12923E-06    8.1409        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.1859        5.9636        .37618E-03   -1.5654    
  14  Prefactor     .12247E-05    14.909        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.3884        .88461        .92233E-03   -1.5684    
  16  norm           .0000        2.9747        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        1.1819        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .34051E-06    41.685        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.7690        10.975        .41780E-03   -1.5660    
  20  Prefactor     8.9854        8.3636        .33376E-03   -1.5648    
  21  Normalizat    1.5560        .17130        .52316E-01   -.76218    
  22  Prefactor     .66670        .19625        .87973E-01   -1.0485    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.31066e-07
Minuit parameter uncertainties:
  1  0.0134389
  2  0.402388
  3  0.00328887
  4  0.0113598
  5  0.0144571
  6  0.00685863
  7  24.2149
  8  0.821137
  9  0.00745715
  10  0.00576195
  11  1.4071
  12  0.00205135
  13  5.96364
  14  0.00854625
  15  0.884607
  16  1.49432e-05
  17  1.36258e-06
  18  0.00753497
  19  10.9747
  20  8.36359
  21  0.171365
  22  0.196449
Done.

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

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  1.225e-06  8.546e-03  0.000e+00  1.000e+06 ( 1.000e-13)
342        Index:  2.720e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
343        Scale:  6.779e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
693    Prefactor:  6.667e-01  1.964e-01  0.000e+00  1.000e+01 ( 1.000e+00)
694        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
695        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
692   Normalization:  1.556e+00  1.714e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 174.764 40.562
Photon Flux Upper Limit: 6.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.82e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/884765/likelihoodResults_692409601_692668801_4FGL_J1139.0+4033_daily_bin1748.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) = 8347.89650183
delta logL = -0.0322017644612

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8347.8643002
delta logL = -1.3857788872e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .31754E-05   1.0000          .0000       .10000E+07
     2 'Index     '    2.2963       1.0000          .0000       10.000    
     3 'Normalizat'    1.5560       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66668       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8347.759     FROM MIGRAD    STATUS=CONVERGED    190 CALLS      342 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .14279E-02    .18059E-01    .69854E-05** at limit **
   2  Index         8.3516        7.4405        .18281E-01    .29807E-03
   3  Normalizat    1.5348        .20035        .23253E-03   -.21709E-03
   4  Prefactor     .68342        .22919        .38539E-03   -.18018E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0014279
  Index      = 8.35162
  Normalizat = 1.5348
  Prefactor  = 0.683417
 **********
 **   18 **HESSE 
 **********

 FCN=   8347.759     FROM HESSE     STATUS=OK            27 CALLS      369 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .14279E-02    .53376E-01    .13971E-05   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.3516        8.8564        .36563E-02    .73465    
   3  Normalizat    1.5348        .20037        .46507E-04   -.76805    
   4  Prefactor     .68342        .22926        .15416E-04   -1.0418    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.73606e-11
Minuit parameter uncertainties:
  1  0.0174603
  2  6.65787
  3  0.200471
  4  0.229577
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/884765': 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) = 8347.75879028
delta logL = 0.105509779358

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  1.428e-03  1.746e-02  0.000e+00  1.000e+06 ( 1.000e-13)
342        Index:  8.352e+00  6.658e+00  0.000e+00  1.000e+01 (-1.000e+00)
343        Scale:  6.779e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
693    Prefactor:  6.834e-01  2.296e-01  0.000e+00  1.000e+01 ( 1.000e+00)
694        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
695        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
692   Normalization:  1.535e+00  2.005e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 174.764 40.562

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/884765/cmap_HighResolution_692409601_692668801_4FGL_J1139.0+4033_daily_bin1748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.82e-03', job_status='DONE', photon_flux_upper_limit='6.11e-08', time_completed='2022-12-14 00:51:00.512422', job_id='884765', GAL2='0.68', fit_tolerance='1e-08', EG2='1.53', EG='1.56', time_epoch_completed='1671007860.51', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='1.06e-01', ts2='0.22', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='1748' AND source_name='4FGL J1139.0+4033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec 14 00:51:00 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 884765: <4FGL_J1139.0+4033_daily_bin1748> in cluster <slac> Done

Job <4FGL_J1139.0+4033_daily_bin1748> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Dec 14 00:35:12 2022
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec 14 00:35:12 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec 14 00:35:12 2022
Terminated at Wed Dec 14 00:51:03 2022
Results reported at Wed Dec 14 00:51:03 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1139.0+4033_daily_bin1748 174.764 40.5617 692409601 692668801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1139.0+4033 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   752.42 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             297.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            951 sec.

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

