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


Performing analysis on: 4FGL_J0949.0+4038_daily_bin1708
RA = 147.262, Dec = 40.6367
tmin = 682041601, tmax = 682300801
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='86134', job_status='RUN', time_executed='2022-09-16 14:59:10.942506', time_epoch_executed='1663365550.94' WHERE source_name='4FGL J0949.0+4038' and cadence='daily' and bin_id='1708'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/86134

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/86134/ft1_4FGL_J0949.0+4038_daily_bin1708.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/86134/ft2_4FGL_J0949.0+4038_daily_bin1708.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/86134/ft1_4FGL_J0949.0+4038_daily_bin1708.fits outfile=/scratch/kocevski/86134/ft1_filteredMKT_4FGL_J0949.0+4038_daily_bin1708.fits ra=147.262 dec=40.6367 rad=12.0 tmin=682041601.0 tmax=682300801.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.01
user 3.78
sys 0.20

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

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

Number of photons that the gtmktime cut: 589

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/86134/ft1_filtered_4FGL_J0949.0+4038_daily_bin1708.fits" evtable="EVENTS" scfile=/scratch/kocevski/86134/ft2_4FGL_J0949.0+4038_daily_bin1708.fits sctable="SC_DATA" outfile=/scratch/kocevski/86134/ltcube_682041601_682300801_4FGL_J0949.0+4038_daily_bin1708.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/86134/ft2_4FGL_J0949.0+4038_daily_bin1708.fits
.....................!
real 15.01
user 14.59
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/86134/ft1_filtered_4FGL_J0949.0+4038_daily_bin1708.fits evtable="EVENTS" scfile=/scratch/kocevski/86134/ft2_4FGL_J0949.0+4038_daily_bin1708.fits sctable="SC_DATA" expcube=/scratch/kocevski/86134/ltcube_682041601_682300801_4FGL_J0949.0+4038_daily_bin1708.fits outfile=/scratch/kocevski/86134/expmap_682041601_682300801_4FGL_J0949.0+4038_daily_bin1708.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/86134/ltcube_682041601_682300801_4FGL_J0949.0+4038_daily_bin1708.fits
.....................!
real 194.65
user 188.99
sys 5.25

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/86134/ft1_filtered_4FGL_J0949.0+4038_daily_bin1708.fits scfile=/scratch/kocevski/86134/ft2_4FGL_J0949.0+4038_daily_bin1708.fits outfile=/scratch/kocevski/86134/cmap_682041601_682300801_4FGL_J0949.0+4038_daily_bin1708.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.59
user 0.39
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/86134/ft1_filtered_4FGL_J0949.0+4038_daily_bin1708.fits scfile=/scratch/kocevski/86134/ft2_4FGL_J0949.0+4038_daily_bin1708.fits outfile=/scratch/kocevski/86134/cmap_HighResolution_682041601_682300801_4FGL_J0949.0+4038_daily_bin1708.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.57
user 0.41
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/86134/ft1_filtered_4FGL_J0949.0+4038_daily_bin1708.fits', '/scratch/kocevski/86134/ft2_4FGL_J0949.0+4038_daily_bin1708.fits', expMap='/scratch/kocevski/86134/expmap_682041601_682300801_4FGL_J0949.0+4038_daily_bin1708.fits', expCube='/scratch/kocevski/86134/ltcube_682041601_682300801_4FGL_J0949.0+4038_daily_bin1708.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/86134/Model_4FGL_J0949.0+4038_daily_bin1708.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/86134/ft1_filtered_4FGL_J0949.0+4038_daily_bin1708.fits
Spacecraft file(s): /scratch/kocevski/86134/ft2_4FGL_J0949.0+4038_daily_bin1708.fits
Exposure map: /scratch/kocevski/86134/expmap_682041601_682300801_4FGL_J0949.0+4038_daily_bin1708.fits
Exposure cube: /scratch/kocevski/86134/ltcube_682041601_682300801_4FGL_J0949.0+4038_daily_bin1708.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/86134/Model_4FGL_J0949.0+4038_daily_bin1708.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) = 6451.147071

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20158E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .15901E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .60091E-04   1.0000          .0000       .10000E+07
     4 'norm      '    .28345       1.0000          .0000       .10000E+07
     5 'Prefactor '    .28951E-05   1.0000          .0000       .10000E+07
     6 'norm      '    .58107E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .94502       1.0000          .0000       .10000E+07
     8 'Prefactor '    9.2262       1.0000          .0000       .10000E+07
     9 'Prefactor '    .83083E-02   1.0000          .0000       .10000E+07
    10 'norm      '    .34009E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    .14959E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    5.4317       1.0000          .0000       .10000E+07
    13 'Prefactor '    .99832E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .19014E-03   1.0000          .0000       .10000E+07
    15 'norm      '    6.9491       1.0000          .0000       .10000E+07
    16 'Prefactor '    .68318E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    .13623E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    1.8468       1.0000          .0000       .10000E+07
    19 'norm      '    2.8681       1.0000          .0000       .10000E+07
    20 'Prefactor '    3.3043       1.0000          .0000       .10000E+07
    21 'norm      '    16.978       1.0000          .0000       .10000E+07
    22 'Prefactor '    33.085       1.0000          .0000       .10000E+07
    23 'Prefactor '    .28727E-03   1.0000          .0000       .10000E+07
    24 'Normalizat'    1.1176       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1370       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=   6451.141     FROM MIGRAD    STATUS=CONVERGED    142 CALLS     2092 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20595E-07    4.6252       -.44840E-08** at limit **
   2  Prefactor      .0000        1.3208        .18550E-07** at limit **
   3  Prefactor     .24369E-07    2.7182        .92675E-08** at limit **
   4  norm          .28335        .26869       -.11911E-07   -.57747E-02
   5  Prefactor     .55511E-10    .95569        .15502E-06** at limit **
   6  norm          .40801E-07    5.9714        .62068E-07** at limit **
   7  Prefactor     .94453        1.4407        .10711E-07   -.49083E-03
   8  Prefactor     9.2088        5.7181       -.14826E-07   -.93677E-01
   9  Prefactor     .21760E-07    15.821       -.17894E-06** at limit **
  10  norm          .69833E-07    2.5278        .32134E-07** at limit **
  11  Prefactor     .26035E-07    6.4114       -.13298E-06** at limit **
  12  Prefactor     5.4329        5.3938        .94042E-08    .23602E-01
  13  Prefactor     .89373E-08    6.9952       -.13309E-06** at limit **
  14  Prefactor     .55511E-09    2.9971        .17161E-06** at limit **
  15  norm          6.9474        1.3449        .28087E-08    .12902E-01
  16  Prefactor      .0000        1.4676        .45306E-07** at limit **
  17  Prefactor      .0000        .94315        .88364E-07** at limit **
  18  Prefactor     1.8505        4.1867        .17538E-06    .43454E-02
  19  norm          2.8659        1.8526        .65603E-07    .48539E-02
  20  Prefactor     3.3048        6.0163       -.45882E-07   -.75034E-02
  21  norm          16.974        1.1108       -.24775E-08    .12499E-01
  22  Prefactor     33.195        8.1800        .49013E-07   -.13855    
  23  Prefactor      .0000        2.3753        .35957E-07** at limit **
  24  Normalizat    1.1175        .19626       -.98110E-06   -.16807E-03
  25  Prefactor     1.1372        .24340       -.11872E-05   -.13939E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.05946e-08
  Prefactor  = 0
  Prefactor  = 2.43694e-08
  norm       = 0.283346
  Prefactor  = 5.55112e-11
  norm       = 4.08007e-08
  Prefactor  = 0.944526
  Prefactor  = 9.20879
  Prefactor  = 2.17604e-08
  norm       = 6.9833e-08
  Prefactor  = 2.60347e-08
  Prefactor  = 5.43287
  Prefactor  = 8.9373e-09
  Prefactor  = 5.55112e-10
  norm       = 6.94743
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 1.85052
  norm       = 2.86587
  Prefactor  = 3.30482
  norm       = 16.9744
  Prefactor  = 33.1952
  Prefactor  = 0
  Normalizat = 1.11752
  Prefactor  = 1.13723
 **********
 **   18 **HESSE 
 **********

 FCN=   6451.141     FROM HESSE     STATUS=OK           473 CALLS     2565 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .20595E-07    11.112        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        1.3149        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .24369E-07    4.7503        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .28335        .27945        .88840E-03   -1.5697    
   5  Prefactor     .55511E-10    .95308        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .40801E-07    12.701        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .94453        1.4502        .42696E-03   -1.5689    
   8  Prefactor     9.2088        9.5536        .32971E-03   -1.5647    
   9  Prefactor     .21760E-07    16.012        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .69833E-07    4.8403        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .26035E-07    6.6256        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.4329        5.4736        .43092E-03   -1.5661    
  13  Prefactor     .89373E-08    10.125        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .55511E-09    2.9999        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.9474        9.6312        .38034E-03   -1.5655    
  16  Prefactor      .0000        1.4681        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        .94071        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.8505        4.4318        .76703E-03   -1.5681    
  19  norm          2.8659        1.8481        .59996E-03   -1.5674    
  20  Prefactor     3.3048        6.4143        .55669E-03   -1.5672    
  21  norm          16.974        10.572        .24280E-03   -1.5626    
  22  Prefactor     33.195        39.700        .17388E-03   -1.5593    
  23  Prefactor      .0000        2.3638        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1175        .16791        .37324E-01   -.89191    
  25  Prefactor     1.1372        .20674        .64595E-01   -.88285    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46196e-06
Minuit parameter uncertainties:
  1  0.000956854
  2  4.5978e-06
  3  0.000680602
  4  0.279446
  5  1.30844e-05
  6  0.00143969
  7  1.45016
  8  9.55357
  9  0.00118126
  10  0.00116282
  11  0.000830594
  12  5.47364
  13  0.000601309
  14  8.18637e-05
  15  9.63123
  16  1.41115e-06
  17  6.65205e-06
  18  4.43178
  19  1.84809
  20  6.41428
  21  10.5716
  22  39.6998
  23  1.45613e-05
  24  0.167987
  25  0.20689
Done.

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

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  8.937e-09  6.013e-04  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.137e+00  2.069e-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:  1.118e+00  1.680e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/86134/likelihoodResults_682041601_682300801_4FGL_J0949.0+4038_daily_bin1708.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) = 6451.14106401
delta logL = -8.12183197922e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6451.14098287
delta logL = -6.87768988428e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12212E-08   1.0000          .0000       .10000E+07
     2 'Index     '    1.4788       1.0000          .0000       10.000    
     3 'Normalizat'    1.1176       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1372       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.

 FCN=   6451.141     FROM MIGRAD    STATUS=CONVERGED     73 CALLS      268 TOTAL
                     EDM=   .79E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .30531E-08    .14826        .42118E-03** at limit **
   2  Index         3.4754        7.9130        .50000        .12051E-08
   3  Normalizat    1.1175        .66104E-03    .37326E-01   -.73778E-04
   4  Prefactor     1.1372        .83251E-03    .64595E-01    .19558E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.05311e-09
  Index      = 3.47542
  Normalizat = 1.11752
  Prefactor  = 1.13723
 **********
 **   18 **HESSE 
 **********

 FCN=   6451.141     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      301 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .30531E-08    .80826        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.4754        7.9095        .50000       -.30985    
   3  Normalizat    1.1175        .15416E-02    .22965E-03   -.89191    
   4  Prefactor     1.1372        .19399E-02    .28573E-03   -.88285    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.30769e-11
Minuit parameter uncertainties:
  1  9.95188e-05
  2  8431.01
  3  0.00154165
  4  0.00193985
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/86134': 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) = 6451.1409828
delta logL = 1.72803993337e-10

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  3.053e-09  9.952e-05  0.000e+00  1.000e+06 ( 1.000e-13)
324        Index:  3.475e+00  8.431e+03  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.137e+00  1.940e-03  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:  1.118e+00  1.542e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 147.262 40.637

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/86134/cmap_HighResolution_682041601_682300801_4FGL_J0949.0+4038_daily_bin1708.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.81e-03', job_status='DONE', photon_flux_upper_limit='4.87e-08', time_completed='2022-09-16 15:11:05.627172', job_id='86134', GAL2='1.14', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1663366265.63', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='1.73e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='1708' AND source_name='4FGL J0949.0+4038' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 15:11:05 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 86134: <4FGL_J0949.0+4038_daily_bin1708> in cluster <slac> Done

Job <4FGL_J0949.0+4038_daily_bin1708> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 16 14:55:23 2022
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 14:56:38 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 14:56:38 2022
Terminated at Fri Sep 16 15:11:06 2022
Results reported at Fri Sep 16 15:11:06 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0949.0+4038_daily_bin1708 147.262 40.6367 682041601 682300801 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 :                                   717.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             315.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   867 sec.
    Turnaround time :                            943 sec.

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

