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


Performing analysis on: 4FGL_J0949.0+4038_daily_bin1718
RA = 147.262, Dec = 40.6367
tmin = 684633601, tmax = 684892801
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='86148', job_status='RUN', time_executed='2022-09-16 14:58:09.824273', time_epoch_executed='1663365489.82' WHERE source_name='4FGL J0949.0+4038' and cadence='daily' and bin_id='1718'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/86148

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/86148/ft1_4FGL_J0949.0+4038_daily_bin1718.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/86148/ft2_4FGL_J0949.0+4038_daily_bin1718.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/86148/ft1_4FGL_J0949.0+4038_daily_bin1718.fits outfile=/scratch/kocevski/86148/ft1_filteredMKT_4FGL_J0949.0+4038_daily_bin1718.fits ra=147.262 dec=40.6367 rad=12.0 tmin=684633601.0 tmax=684892801.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.28
user 3.03
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/86148/ft2_4FGL_J0949.0+4038_daily_bin1718.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/86148/ft1_filteredMKT_4FGL_J0949.0+4038_daily_bin1718.fits evtable="EVENTS" outfile="/scratch/kocevski/86148/ft1_filtered_4FGL_J0949.0+4038_daily_bin1718.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.52
user 0.35
sys 0.16

Number of photons that the gtmktime cut: 357

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/86148/ft1_filtered_4FGL_J0949.0+4038_daily_bin1718.fits evtable="EVENTS" scfile=/scratch/kocevski/86148/ft2_4FGL_J0949.0+4038_daily_bin1718.fits sctable="SC_DATA" expcube=/scratch/kocevski/86148/ltcube_684633601_684892801_4FGL_J0949.0+4038_daily_bin1718.fits outfile=/scratch/kocevski/86148/expmap_684633601_684892801_4FGL_J0949.0+4038_daily_bin1718.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/86148/ltcube_684633601_684892801_4FGL_J0949.0+4038_daily_bin1718.fits
.....................!
real 191.74
user 185.94
sys 5.37

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/86148/ft1_filtered_4FGL_J0949.0+4038_daily_bin1718.fits scfile=/scratch/kocevski/86148/ft2_4FGL_J0949.0+4038_daily_bin1718.fits outfile=/scratch/kocevski/86148/cmap_684633601_684892801_4FGL_J0949.0+4038_daily_bin1718.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.55
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/86148/ft1_filtered_4FGL_J0949.0+4038_daily_bin1718.fits scfile=/scratch/kocevski/86148/ft2_4FGL_J0949.0+4038_daily_bin1718.fits outfile=/scratch/kocevski/86148/cmap_HighResolution_684633601_684892801_4FGL_J0949.0+4038_daily_bin1718.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .89265E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    7.5920       1.0000          .0000       .10000E+07
     3 'Prefactor '    21.970       1.0000          .0000       .10000E+07
     4 'norm      '    .11047E-07   1.0000          .0000       .10000E+07
     5 'Prefactor '    .25329E-05   1.0000          .0000       .10000E+07
     6 'norm      '    2.5991       1.0000          .0000       .10000E+07
     7 'Prefactor '    .19430E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .31530E-07   1.0000          .0000       .10000E+07
     9 'Prefactor '    .49250E-01   1.0000          .0000       .10000E+07
    10 'norm      '    .34532E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .67646E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .62339E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    4.2471       1.0000          .0000       .10000E+07
    14 'Prefactor '    .26097E-02   1.0000          .0000       .10000E+07
    15 'norm      '    .42194E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .51020E-06   1.0000          .0000       .10000E+07
    17 'Prefactor '    .34993E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .35715       1.0000          .0000       .10000E+07
    19 'norm      '    2.6873       1.0000          .0000       .10000E+07
    20 'Prefactor '    .93365E-02   1.0000          .0000       .10000E+07
    21 'norm      '    8.5315       1.0000          .0000       .10000E+07
    22 'Prefactor '    .12647E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    .76223E-03   1.0000          .0000       .10000E+07
    24 'Normalizat'    1.1600       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .74096       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=   4002.056     FROM MIGRAD    STATUS=CONVERGED    190 CALLS     1693 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .34889E-06    69.263        .23842E-07** at limit **
   2  Prefactor     7.5659        3.6532        .68244E-07    .15111E-02
   3  Prefactor     23.326        11.465       -.10062E-06   -.52162E-01
   4  norm           .0000        .12545       -.39892E-07** at limit **
   5  Prefactor      .0000        .88917        .33558E-07** at limit **
   6  norm          2.2293        9.9217        .97585E-07   -.74218E-02
   7  Prefactor      .0000        1.0306        .10579E-06** at limit **
   8  Prefactor     .55511E-10    3.8173        .22061E-06** at limit **
   9  Prefactor     .16653E-09    25.706       -.96572E-06** at limit **
  10  norm          .92704E-08    4.8413       -.24471E-06** at limit **
  11  Prefactor     .40357E-07    7.6886       -.51822E-06** at limit **
  12  Prefactor     .52069E-07    16.440       -.30482E-06** at limit **
  13  Prefactor     2.8375        8.2185        .18843E-06   -.16013E-01
  14  Prefactor     .54790E-07    4.6621       -.37644E-06** at limit **
  15  norm          .27867E-07    9.7639       -.26839E-06** at limit **
  16  Prefactor      .0000        4.3689       -.63680E-07** at limit **
  17  Prefactor     .33307E-09    3.3733        .16516E-06** at limit **
  18  Prefactor     .42389        22.140       -.76856E-06   -.14441E-02
  19  norm          2.6861        2.1833        .50138E-07    .72501E-03
  20  Prefactor     .35344E-06    31.897        .77409E-06** at limit **
  21  norm          8.5246        6.0339       -.83772E-07   -.93694E-01
  22  Prefactor     .15654E-06    7.3418       -.17621E-06** at limit **
  23  Prefactor     .28866E-08    7.9157       -.30386E-06** at limit **
  24  Normalizat    1.1600        .21758       -.27984E-06   -.46356E-04
  25  Prefactor     .74137        .24671       -.23331E-05   -.31260E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.48888e-07
  Prefactor  = 7.56589
  Prefactor  = 23.3259
  norm       = 0
  Prefactor  = 0
  norm       = 2.22934
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 1.66533e-10
  norm       = 9.27036e-09
  Prefactor  = 4.03566e-08
  Prefactor  = 5.20695e-08
  Prefactor  = 2.83752
  Prefactor  = 5.47895e-08
  norm       = 2.78666e-08
  Prefactor  = 0
  Prefactor  = 3.33067e-10
  Prefactor  = 0.423887
  norm       = 2.68614
  Prefactor  = 3.53439e-07
  norm       = 8.52459
  Prefactor  = 1.56541e-07
  Prefactor  = 2.88658e-09
  Normalizat = 1.16003
  Prefactor  = 0.741371
 **********
 **   18 **HESSE 
 **********

 FCN=   4002.056     FROM HESSE     STATUS=OK           487 CALLS     2180 TOTAL
                     EDM=   .31E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .34889E-06    72.906        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.5659        3.6745        .36372E-03   -1.5653    
   3  Prefactor     23.326        26.217        .21340E-03   -1.5611    
   4  norm           .0000        .12395        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        .88770        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.2293        16.232        .63257E-03   -1.5678    
   7  Prefactor      .0000        1.0314        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .55511E-10    3.8106        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .16653E-09    12.737        .76507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .92704E-08    14.526        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .40357E-07    12.202        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .52069E-07    19.225        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.8375        101.35        .48869E-03   -1.5674    
  14  Prefactor     .54790E-07    13.067        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .27867E-07    10.138        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        4.3653        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .33307E-09    3.3504        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .42389        5.4071        .71338E-02   -1.5695    
  19  norm          2.6861        2.1794        .62127E-03   -1.5675    
  20  Prefactor     .35344E-06    6.6231        .53243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          8.5246        9.8497        .34296E-03   -1.5650    
  22  Prefactor     .15654E-06    14.960        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .28866E-08    7.8728        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1600        .19204        .35955E-01   -.87847    
  25  Prefactor     .74137        .21528        .66035E-01   -1.0193    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.05472e-07
Minuit parameter uncertainties:
  1  0.010087
  2  3.67452
  3  26.2176
  4  3.91557e-07
  5  1.62354e-06
  6  12.0311
  7  2.64987e-06
  8  3.38994e-05
  9  8.65328e-05
  10  0.00073437
  11  0.00140354
  12  0.00200126
  13  33.9174
  14  0.00169192
  15  0.00106257
  16  5.11483e-06
  17  6.75767e-05
  18  3.02789
  19  2.17939
  20  0.00306002
  21  9.84975
  22  0.00306092
  23  0.00030025
  24  0.192152
  25  0.215523
Done.

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

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  2.838e+00  3.392e+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:  7.414e-01  2.155e-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.160e+00  1.922e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 147.262 40.637
Photon Flux Upper Limit: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.87e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/86148/likelihoodResults_684633601_684892801_4FGL_J0949.0+4038_daily_bin1718.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) = 4002.05301953
delta logL = 0.00327223641716

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4002.05117846
delta logL = 0.00511330043673

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2568       1.0000          .0000       .10000E+07
     2 'Index     '    2.2791       1.0000          .0000       10.000    
     3 'Normalizat'    1.1603       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73992       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=   4002.051     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      243 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3553        5612.0        .43816E-03    .74561E-03
   2  Index         2.2988        8.0373        .35392        .11136E-04
   3  Normalizat    1.1603        .44108E-01    .35948E-01   -.10808E-03
   4  Prefactor     .74008        .54056E-01    .66085E-01   -.12874E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.35528
  Index      = 2.29883
  Normalizat = 1.16026
  Prefactor  = 0.740083
 **********
 **   18 **HESSE 
 **********

 FCN=   4002.051     FROM HESSE     STATUS=OK            31 CALLS      274 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3553        90.081        .17526E-04   -1.5662    
   2  Index         2.2988        2.4648        .23901E-01   -.57072    
   3  Normalizat    1.1603        .20983        .20386E-03   -.87840    
   4  Prefactor     .74008        .24623        .29238E-03   -1.0198    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22956e-10
Minuit parameter uncertainties:
  1  43.9283
  2  2.63341
  3  0.209981
  4  0.246593
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/86148': 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) = 4002.05114022
delta logL = 0.00515153781362

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  5.355e+00  4.393e+01  0.000e+00  1.000e+06 ( 1.000e-13)
324        Index:  2.299e+00  2.633e+00  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:  7.401e-01  2.466e-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.160e+00  2.100e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/86148/cmap_HighResolution_684633601_684892801_4FGL_J0949.0+4038_daily_bin1718.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.87e-03', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2022-09-16 15:07:03.095570', job_id='86148', GAL2='0.74', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1663366023.1', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='5.15e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='1718' AND source_name='4FGL J0949.0+4038' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 15:07:03 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 86148: <4FGL_J0949.0+4038_daily_bin1718> in cluster <slac> Done

Job <4FGL_J0949.0+4038_daily_bin1718> 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) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 14:56:46 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:46 2022
Terminated at Fri Sep 16 15:07:03 2022
Results reported at Fri Sep 16 15:07:03 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0949.0+4038_daily_bin1718 147.262 40.6367 684633601 684892801 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 :                                   535.21 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             299.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   617 sec.
    Turnaround time :                            700 sec.

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

