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


Performing analysis on: 4FGL_J0949.0+4038_daily_bin1780
RA = 147.262, Dec = 40.6367
tmin = 700704001, tmax = 700963201
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='56418', job_status='RUN', time_executed='2023-03-20 00:32:06.963635', time_epoch_executed='1679297526.96' WHERE source_name='4FGL J0949.0+4038' and cadence='daily' and bin_id='1780'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/56418

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/56418/ft1_4FGL_J0949.0+4038_daily_bin1780.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/56418/ft2_4FGL_J0949.0+4038_daily_bin1780.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/56418/ft1_4FGL_J0949.0+4038_daily_bin1780.fits outfile=/scratch/kocevski/56418/ft1_filteredMKT_4FGL_J0949.0+4038_daily_bin1780.fits ra=147.262 dec=40.6367 rad=12.0 tmin=700704001.0 tmax=700963201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.08
user 3.87
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/56418/ft2_4FGL_J0949.0+4038_daily_bin1780.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/56418/ft2_4FGL_J0949.0+4038_daily_bin1780.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/56418/ft1_filteredMKT_4FGL_J0949.0+4038_daily_bin1780.fits evtable="EVENTS" outfile="/scratch/kocevski/56418/ft1_filtered_4FGL_J0949.0+4038_daily_bin1780.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.49
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 741

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/56418/ft1_filtered_4FGL_J0949.0+4038_daily_bin1780.fits" evtable="EVENTS" scfile=/scratch/kocevski/56418/ft2_4FGL_J0949.0+4038_daily_bin1780.fits sctable="SC_DATA" outfile=/scratch/kocevski/56418/ltcube_700704001_700963201_4FGL_J0949.0+4038_daily_bin1780.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/56418/ft2_4FGL_J0949.0+4038_daily_bin1780.fits
.....................!
real 12.71
user 12.33
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/56418/ft1_filtered_4FGL_J0949.0+4038_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/56418/ft2_4FGL_J0949.0+4038_daily_bin1780.fits sctable="SC_DATA" expcube=/scratch/kocevski/56418/ltcube_700704001_700963201_4FGL_J0949.0+4038_daily_bin1780.fits outfile=/scratch/kocevski/56418/expmap_700704001_700963201_4FGL_J0949.0+4038_daily_bin1780.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/56418/ltcube_700704001_700963201_4FGL_J0949.0+4038_daily_bin1780.fits
.....................!
real 190.47
user 185.39
sys 4.53

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

Setting source of interest to:
4FGL J0949.0+4038 @ 147.262 40.6367

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/56418/ft1_filtered_4FGL_J0949.0+4038_daily_bin1780.fits scfile=/scratch/kocevski/56418/ft2_4FGL_J0949.0+4038_daily_bin1780.fits outfile=/scratch/kocevski/56418/cmap_700704001_700963201_4FGL_J0949.0+4038_daily_bin1780.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=147.262 yref=40.6367 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/56418/ft1_filtered_4FGL_J0949.0+4038_daily_bin1780.fits scfile=/scratch/kocevski/56418/ft2_4FGL_J0949.0+4038_daily_bin1780.fits outfile=/scratch/kocevski/56418/cmap_HighResolution_700704001_700963201_4FGL_J0949.0+4038_daily_bin1780.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=147.262 yref=40.6367 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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/56418/ft1_filtered_4FGL_J0949.0+4038_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/56418/ft2_4FGL_J0949.0+4038_daily_bin1780.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/56418/Model_4FGL_J0949.0+4038_daily_bin1780.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/56418/ft1_filtered_4FGL_J0949.0+4038_daily_bin1780.fits.....................!
real 64.43
user 62.94
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/56418/ft1_filtered_4FGL_J0949.0+4038_daily_bin1780.fits', '/scratch/kocevski/56418/ft2_4FGL_J0949.0+4038_daily_bin1780.fits', expMap='/scratch/kocevski/56418/expmap_700704001_700963201_4FGL_J0949.0+4038_daily_bin1780.fits', expCube='/scratch/kocevski/56418/ltcube_700704001_700963201_4FGL_J0949.0+4038_daily_bin1780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/56418/Model_4FGL_J0949.0+4038_daily_bin1780.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0949.0+4038'

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  7.192e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
324        Index:  2.608e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
325        Scale:  7.143e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/56418/ft1_filtered_4FGL_J0949.0+4038_daily_bin1780.fits
Spacecraft file(s): /scratch/kocevski/56418/ft2_4FGL_J0949.0+4038_daily_bin1780.fits
Exposure map: /scratch/kocevski/56418/expmap_700704001_700963201_4FGL_J0949.0+4038_daily_bin1780.fits
Exposure cube: /scratch/kocevski/56418/ltcube_700704001_700963201_4FGL_J0949.0+4038_daily_bin1780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/56418/Model_4FGL_J0949.0+4038_daily_bin1780.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 8273.98122924

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20706E-07   1.0000          .0000       .10000E+07
     2 'Prefactor '    4.9281       1.0000          .0000       .10000E+07
     3 'Prefactor '    3.4087       1.0000          .0000       .10000E+07
     4 'norm      '    .14205E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    .41706       1.0000          .0000       .10000E+07
     6 'norm      '    .60194       1.0000          .0000       .10000E+07
     7 'Prefactor '    2.2172       1.0000          .0000       .10000E+07
     8 'Prefactor '    3.6959       1.0000          .0000       .10000E+07
     9 'Prefactor '    .65110E-04   1.0000          .0000       .10000E+07
    10 'norm      '    .32501E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .58074E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    2.9390       1.0000          .0000       .10000E+07
    13 'Prefactor '    8.3701       1.0000          .0000       .10000E+07
    14 'Prefactor '    .33925E-03   1.0000          .0000       .10000E+07
    15 'norm      '    4.4824       1.0000          .0000       .10000E+07
    16 'Prefactor '    5.3514       1.0000          .0000       .10000E+07
    17 'Prefactor '    .90363E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    .18252E-05   1.0000          .0000       .10000E+07
    19 'norm      '    .30778E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    7.8909       1.0000          .0000       .10000E+07
    21 'norm      '    .56848       1.0000          .0000       .10000E+07
    22 'Prefactor '    .22645E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    4.9255       1.0000          .0000       .10000E+07
    24 'Normalizat'    .94582       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1991       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8273.845     FROM MIGRAD    STATUS=CONVERGED    174 CALLS     1738 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .14944E-06    18.194       -.79866E-06** at limit **
   2  Prefactor     4.9385        3.1552        .55964E-07    .91703E-03
   3  Prefactor     3.0056        8.1017       -.42380E-06   -.21581E-02
   4  norm           .0000        .17273        .35561E-07** at limit **
   5  Prefactor     .41905        1.5812       -.21700E-06   -.16146E-03
   6  norm          .69349        13.341        .15760E-06   -.30710E-02
   7  Prefactor     2.2216        2.2855        .12599E-06    .91379E-03
   8  Prefactor     3.6502        3.5837        .63691E-07    .28100E-03
   9  Prefactor     .86886E-06    7.7883       -.40197E-06** at limit **
  10  norm           .0000        4.3561        .31363E-06** at limit **
  11  Prefactor     .40751E-06    9.8410       -.51690E-06** at limit **
  12  Prefactor     2.9574        4.2527       -.92215E-07   -.29988E-03
  13  Prefactor     7.5555        23.650       -.87454E-06    .13586E-01
  14  Prefactor      .0000        2.9285       -.15526E-06** at limit **
  15  norm          4.4772        7.6342       -.30093E-06   -.96661E-02
  16  Prefactor     5.3735        4.9284        .17765E-07    .13443E-02
  17  Prefactor      .0000        1.8853        .14004E-06** at limit **
  18  Prefactor      .0000        1.2162       -.35856E-08** at limit **
  19  norm           .0000        1.7287       -.11801E-06** at limit **
  20  Prefactor     7.8990        4.3660       -.41322E-07   -.81643E-03
  21  norm          .60319        1.9144        .20090E-07    .11837E-01
  22  Prefactor     .11657E-08    9.2560        .14496E-06** at limit **
  23  Prefactor     4.9310        3.8891        .58956E-07   -.12363E-02
  24  Normalizat    .94643        .17665       -.26924E-05    .90605E-05
  25  Prefactor     1.1990        .20577        .32109E-05    .16554E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.49436e-07
  Prefactor  = 4.9385
  Prefactor  = 3.00564
  norm       = 0
  Prefactor  = 0.41905
  norm       = 0.693493
  Prefactor  = 2.22159
  Prefactor  = 3.65021
  Prefactor  = 8.68861e-07
  norm       = 0
  Prefactor  = 4.07507e-07
  Prefactor  = 2.95736
  Prefactor  = 7.55547
  Prefactor  = 0
  norm       = 4.47723
  Prefactor  = 5.37355
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0
  Prefactor  = 7.89896
  norm       = 0.603194
  Prefactor  = 1.16573e-09
  Prefactor  = 4.931
  Normalizat = 0.946427
  Prefactor  = 1.19904
 **********
 **   18 **HESSE 
 **********

 FCN=   8273.845     FROM HESSE     STATUS=OK           485 CALLS     2223 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .14944E-06    19.493        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.9385        3.2642        .45283E-03   -1.5664    
   3  Prefactor     3.0056        58.494        .54769E-03   -1.5673    
   4  norm           .0000        .13775        .16207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .41905        1.9254        .87537E-03   -1.5695    
   6  norm          .69349        43.468        .69054E-03   -1.5691    
   7  Prefactor     2.2216        2.3488        .69039E-03   -1.5678    
   8  Prefactor     3.6502        3.5766        .52508E-03   -1.5670    
   9  Prefactor     .86886E-06    15.372        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        4.3634        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .40751E-06    13.545        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.9574        4.2827        .59221E-03   -1.5674    
  13  Prefactor     7.5555        26.404        .34627E-03   -1.5653    
  14  Prefactor      .0000        2.9342        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.4772        7.6880        .47534E-03   -1.5666    
  16  Prefactor     5.3735        4.9515        .43420E-03   -1.5662    
  17  Prefactor      .0000        1.8735        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        1.2154        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm           .0000        1.6709        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.8990        4.3683        .35671E-03   -1.5652    
  21  norm          .60319        16.343        .72100E-03   -1.5692    
  22  Prefactor     .11657E-08    9.2822        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.9310        3.9511        .45295E-03   -1.5664    
  24  Normalizat    .94643        .14994        .45484E-01   -.94847    
  25  Prefactor     1.1990        .17288        .60630E-01   -.86361    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08148e-06
Minuit parameter uncertainties:
  1  0.00341336
  2  3.26423
  3  26.5191
  4  1.22701e-07
  5  1.79648
  6  10.981
  7  2.34882
  8  3.57662
  9  0.00730941
  10  4.00243e-06
  11  0.00469889
  12  4.28274
  13  26.4041
  14  5.56465e-06
  15  7.68803
  16  4.95151
  17  1.93945e-06
  18  4.15863e-07
  19  5.44106e-07
  20  4.36827
  21  6.27956
  22  0.000206726
  23  3.95107
  24  0.150008
  25  0.172965
Done.

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

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  7.555e+00  2.640e+01  0.000e+00  1.000e+06 ( 1.000e-13)
324        Index:  2.608e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
325        Scale:  7.143e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
662    Prefactor:  1.199e+00  1.730e-01  0.000e+00  1.000e+01 ( 1.000e+00)
663        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
664        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
661   Normalization:  9.464e-01  1.500e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.09
Ra Dec: 147.262 40.637
Photon Flux Upper Limit: 7.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/56418/likelihoodResults_700704001_700963201_4FGL_J0949.0+4038_daily_bin1780.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) = 8273.81462822
delta logL = 0.0302553269885

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8273.59005351
delta logL = 0.254830031696

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .52983E-04   1.0000          .0000       .10000E+07
     2 'Index     '    9.9997       1.0000          .0000       10.000    
     3 'Normalizat'    .92449       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2223       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6650E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8273.590     FROM MIGRAD    STATUS=FAILED       364 CALLS      733 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .52886E-04    .83790E-04    .97923E-06** at limit **
   2  Index        10.0000        6.2682        .50000    ** at limit **
   3  Normalizat    .92453        .17033        .24237E-03    .62667E-04
   4  Prefactor     1.2222        .20894        .26601E-03    .32224E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8273.590     FROM SIMPLEX   STATUS=UNCHANGED    125 CALLS      858 TOTAL
                     EDM=   .86E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .52886E-04    .83790E-04    .21747E-09   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        6.2682        .19035E-01   -29.845    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .92453        .17033        .72367E-06   -8.4687    
   4  Prefactor     1.2222        .20894        .39871E-06   -.85652    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8273.590     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      904 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .52886E-04    .81558E-04     .0000    ** at limit **
   2  Index        10.0000        6.2090         .0000    ** at limit **
   3  Normalizat    .92453        .17053         .0000       -.16666E-04
   4  Prefactor     1.2222        .20907         .0000        .72654E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.28859e-05
  Index      = 10
  Normalizat = 0.924529
  Prefactor  = 1.22216
 **********
 **   18 **HESSE 
 **********

 FCN=   8273.590     FROM HESSE     STATUS=OK            29 CALLS      933 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .52886E-04    .81557E-04    .37450E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        6.2090        .50000       -29.845    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .92453        .17046        .20191E-05   -8.4687    
   4  Prefactor     1.2222        .20907        .21281E-05   -.85652    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0128e-07
Minuit parameter uncertainties:
  1  8.15567e-05
  2  7.52523e-05
  3  0.170558
  4  0.209215
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/56418': 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) = 8273.59004727
delta logL = 0.254836277985

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  5.289e-05  8.156e-05  0.000e+00  1.000e+06 ( 1.000e-13)
324        Index:  1.000e+01  7.525e-05  0.000e+00  1.000e+01 (-1.000e+00)
325        Scale:  7.143e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
662    Prefactor:  1.222e+00  2.092e-01  0.000e+00  1.000e+01 ( 1.000e+00)
663        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
664        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
661   Normalization:  9.245e-01  1.706e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
Ra Dec: 147.262 40.637

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/56418/cmap_HighResolution_700704001_700963201_4FGL_J0949.0+4038_daily_bin1780.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.68e-03', job_status='DONE', photon_flux_upper_limit='7.25e-08', time_completed='2023-03-20 00:45:54.639493', job_id='56418', GAL2='1.22', fit_tolerance='1e-08', EG2='0.92', EG='0.95', time_epoch_completed='1679298354.64', return_code2='0', ts='0.09', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='2.55e-01', ts2='0.62', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='1780' AND source_name='4FGL J0949.0+4038' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Mar 20 00:45:54 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 56418: <4FGL_J0949.0+4038_daily_bin1780> in cluster <slac> Done

Job <4FGL_J0949.0+4038_daily_bin1780> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Mar 20 00:30:16 2023
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar 20 00:30:18 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar 20 00:30:18 2023
Terminated at Mon Mar 20 00:45:55 2023
Results reported at Mon Mar 20 00:45:55 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0949.0+4038_daily_bin1780 147.262 40.6367 700704001 700963201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0949.0+4038 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   829.02 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             295.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            939 sec.

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

