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


Performing analysis on: 4FGL_J0949.0+4038_weekly_bin750
RA = 147.262, Dec = 40.6367
tmin = 692582401, tmax = 693187201
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='44966', job_status='RUN', time_executed='2022-12-20 02:51:32.117354', time_epoch_executed='1671533492.12' WHERE source_name='4FGL J0949.0+4038' and cadence='weekly' and bin_id='750'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/44966

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/44966/ft1_4FGL_J0949.0+4038_weekly_bin750.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/44966/ft2_4FGL_J0949.0+4038_weekly_bin750.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/44966/ft1_4FGL_J0949.0+4038_weekly_bin750.fits outfile=/scratch/kocevski/44966/ft1_filteredMKT_4FGL_J0949.0+4038_weekly_bin750.fits ra=147.262 dec=40.6367 rad=12.0 tmin=692582401.0 tmax=693187201.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 7.59
user 7.30
sys 0.27

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

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

Number of photons that the gtmktime cut: 1283

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/44966/ft1_filtered_4FGL_J0949.0+4038_weekly_bin750.fits evtable="EVENTS" scfile=/scratch/kocevski/44966/ft2_4FGL_J0949.0+4038_weekly_bin750.fits sctable="SC_DATA" expcube=/scratch/kocevski/44966/ltcube_692582401_693187201_4FGL_J0949.0+4038_weekly_bin750.fits outfile=/scratch/kocevski/44966/expmap_692582401_693187201_4FGL_J0949.0+4038_weekly_bin750.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/44966/ltcube_692582401_693187201_4FGL_J0949.0+4038_weekly_bin750.fits
.....................!
real 192.15
user 185.79
sys 5.66

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/44966/ft1_filtered_4FGL_J0949.0+4038_weekly_bin750.fits scfile=/scratch/kocevski/44966/ft2_4FGL_J0949.0+4038_weekly_bin750.fits outfile=/scratch/kocevski/44966/cmap_692582401_693187201_4FGL_J0949.0+4038_weekly_bin750.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.57
user 0.40
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.363       1.0000          .0000       .10000E+07
     2 'Prefactor '    1.9457       1.0000          .0000       .10000E+07
     3 'Prefactor '    .34272E-04   1.0000          .0000       .10000E+07
     4 'norm      '    .87708E-08   1.0000          .0000       .10000E+07
     5 'Prefactor '    1.9287       1.0000          .0000       .10000E+07
     6 'norm      '    .11263E-06   1.0000          .0000       .10000E+07
     7 'Prefactor '    2.3716       1.0000          .0000       .10000E+07
     8 'Prefactor '    7.4046       1.0000          .0000       .10000E+07
     9 'Prefactor '    8.2458       1.0000          .0000       .10000E+07
    10 'norm      '    .29310E-07   1.0000          .0000       .10000E+07
    11 'Prefactor '    .81535E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    44.784       1.0000          .0000       .10000E+07
    13 'Prefactor '    22.182       1.0000          .0000       .10000E+07
    14 'Prefactor '    .88607E-03   1.0000          .0000       .10000E+07
    15 'norm      '    14.288       1.0000          .0000       .10000E+07
    16 'Prefactor '    .76272E-07   1.0000          .0000       .10000E+07
    17 'Prefactor '    3.4794       1.0000          .0000       .10000E+07
    18 'Prefactor '    7.2777       1.0000          .0000       .10000E+07
    19 'norm      '    2.6924       1.0000          .0000       .10000E+07
    20 'Prefactor '    5.4213       1.0000          .0000       .10000E+07
    21 'norm      '    .86315E-04   1.0000          .0000       .10000E+07
    22 'Prefactor '    3.3520       1.0000          .0000       .10000E+07
    23 'Prefactor '    4.0124       1.0000          .0000       .10000E+07
    24 'Normalizat'    .77923       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0988       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=   14295.43     FROM MIGRAD    STATUS=CONVERGED    131 CALLS     1221 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.104        9.1275       -.89924E-07    .78950E-01
   2  Prefactor     1.9498        2.2261       -.14794E-08    .21124E-03
   3  Prefactor     .22038E-07    1.3344        .53275E-07** at limit **
   4  norm           .0000        .40410       -.42930E-07** at limit **
   5  Prefactor     1.9274        1.4083       -.58055E-07   -.92742E-03
   6  norm          .18152E-07    2.6527       -.12330E-06** at limit **
   7  Prefactor     2.3704        1.6573        .42584E-07    .25867E-02
   8  Prefactor     7.4618        5.0244        .98506E-08   -.51337E-02
   9  Prefactor     8.3419        2.4063        .23023E-08   -.13422E-01
  10  norm          .66003E-07    1.7583       -.40786E-07** at limit **
  11  Prefactor     .16653E-09    7.9564       -.34816E-06** at limit **
  12  Prefactor     44.786        2.0266        .14678E-09    .68394E-01
  13  Prefactor     22.078        4.2653        .27116E-07    .17827E-01
  14  Prefactor     .26534E-07    2.9287        .51713E-07** at limit **
  15  norm          14.238        1.1551        .13754E-08    .39934E-02
  16  Prefactor      .0000        .67096       -.45554E-07** at limit **
  17  Prefactor     3.4791        1.6183       -.15078E-08    .46423E-03
  18  Prefactor     7.2584        3.9046        .51511E-08    .60608E-03
  19  norm          2.6926        1.3400       -.15925E-07   -.11645E-02
  20  Prefactor     5.4541        4.4552        .54333E-07    .56901E-02
  21  norm          .25258E-07    1.1427        .49953E-07** at limit **
  22  Prefactor     2.7139        13.916       -.29477E-06   -.19857E-01
  23  Prefactor     4.0213        3.0544        .13729E-07    .17816E-02
  24  Normalizat    .77936        .12621        .41795E-05    .22020E-03
  25  Prefactor     1.0991        .14882       -.32623E-05    .79655E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.1044
  Prefactor  = 1.94976
  Prefactor  = 2.20379e-08
  norm       = 0
  Prefactor  = 1.92737
  norm       = 1.81521e-08
  Prefactor  = 2.37042
  Prefactor  = 7.46178
  Prefactor  = 8.34192
  norm       = 6.60028e-08
  Prefactor  = 1.66533e-10
  Prefactor  = 44.7861
  Prefactor  = 22.0775
  Prefactor  = 2.65343e-08
  norm       = 14.2382
  Prefactor  = 0
  Prefactor  = 3.47906
  Prefactor  = 7.25842
  norm       = 2.69255
  Prefactor  = 5.45415
  norm       = 2.52576e-08
  Prefactor  = 2.7139
  Prefactor  = 4.02133
  Normalizat = 0.779363
  Prefactor  = 1.09913
 **********
 **   18 **HESSE 
 **********

 FCN=   14295.43     FROM HESSE     STATUS=OK           489 CALLS     1710 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.104        18.663        .26403E-03   -1.5633    
   2  Prefactor     1.9498        2.2871        .74383E-03   -1.5680    
   3  Prefactor     .22038E-07    3.3549        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        .10846        .18176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.9274        1.6247        .74766E-03   -1.5680    
   6  norm          .18152E-07    2.9518        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.3704        1.6846        .66504E-03   -1.5677    
   8  Prefactor     7.4618        6.6161        .36834E-03   -1.5653    
   9  Prefactor     8.3419        9.8609        .34889E-03   -1.5650    
  10  norm          .66003E-07    2.9125        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .16653E-09    7.9752        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     44.786        7.4061        .14944E-03   -1.5574    
  13  Prefactor     22.078        16.450        .21238E-03   -1.5614    
  14  Prefactor     .26534E-07    3.6861        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          14.238        8.5175        .26472E-03   -1.5632    
  16  Prefactor      .0000        .67081        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.4791        1.6198        .54185E-03   -1.5671    
  18  Prefactor     7.2584        3.9271        .37157E-03   -1.5654    
  19  norm          2.6926        1.3368        .62063E-03   -1.5675    
  20  Prefactor     5.4541        4.4960        .43134E-03   -1.5661    
  21  norm          .25258E-07    3.4042        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.7139        20.171        .55252E-03   -1.5675    
  23  Prefactor     4.0213        3.0682        .50321E-03   -1.5668    
  24  Normalizat    .77936        .10963        .43339E-01   -1.0084    
  25  Prefactor     1.0991        .12648        .59927E-01   -.89494    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.45668e-07
Minuit parameter uncertainties:
  1  18.6632
  2  2.28705
  3  0.000543876
  4  7.13519e-07
  5  1.62472
  6  0.000463237
  7  1.68462
  8  6.61607
  9  9.86089
  10  0.000877
  11  6.76887e-05
  12  7.40612
  13  16.4498
  14  0.000625475
  15  8.51754
  16  1.07281e-06
  17  1.6198
  18  3.9271
  19  1.33682
  20  4.49597
  21  0.000586141
  22  14.7977
  23  3.06818
  24  0.10966
  25  0.126514
Done.

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

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  2.208e+01  1.645e+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.099e+00  1.265e-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:  7.794e-01  1.097e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.19
Ra Dec: 147.262 40.637
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 2.32e-08 +/- 1.72e-08
Energy Flux (Fixed Index): 6.03e-06 +/- 4.49e-06

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) = 14292.1882194
delta logL = 3.24002557547

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14290.3024154
delta logL = 5.12582959745

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11578       1.0000          .0000       .10000E+07
     2 'Index     '    .23170E-05   1.0000          .0000       10.000    
     3 'Normalizat'    .80127       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0902       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.

 FCN=   14290.30     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      329 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11584        .13359        .51664E-04** at limit **
   2  Index         .17564E-11    .23720        .50000    ** at limit **
   3  Normalizat    .80127        .11816        .24678E-03   -.27272E-04
   4  Prefactor     1.0902        .14707        .26597E-03   -.24535E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.115839
  Index      = 1.75637e-12
  Normalizat = 0.801271
  Prefactor  = 1.09022
 **********
 **   18 **HESSE 
 **********

 FCN=   14290.30     FROM HESSE     STATUS=OK            33 CALLS      362 TOTAL
                     EDM=   .59E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11584        .13219        .20665E-05   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .17564E-11    .23198        .50000       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .80127        .11827        .98711E-05   -1.0002    
   4  Prefactor     1.0902        .14721        .10639E-04   -.89780    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.90938e-13
Minuit parameter uncertainties:
  1  0.13219
  2  1.28157e-06
  3  0.118312
  4  0.147265
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/44966': 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) = 14290.3024146
delta logL = 5.12583046028

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  1.158e-01  1.322e-01  0.000e+00  1.000e+06 ( 1.000e-13)
324        Index:  1.756e-12  1.282e-06  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.090e+00  1.473e-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:  8.013e-01  1.183e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.38
Ra Dec: 147.262 40.637
Photon Index (Free Index): 0.00 +/- 0.00
Photon Flux (Free Index): 1.16e-09 +/- 1.32e-09
Energy Flux (Free Index): 5.80e-05 +/- 6.61e-05

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/44966/cmap_HighResolution_692582401_693187201_4FGL_J0949.0+4038_weekly_bin750.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.32e-08', energy_flux2='5.80e-05', photon_flux_error='1.72e-08', dlogl='5.13e+00', energy_flux='6.03e-06', photon_flux2='1.16e-09', job_status='DONE', time_completed='2022-12-20 03:06:39.775301', photon_index_error2='0.00', photon_index2='0.00', ts='4.19', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='6.61e-05', EG='0.78', time_epoch_completed='1671534399.78', return_code='0', job_id='44966', GAL2='1.09', EG2='0.80', return_code2='0', energy_flux_error='4.49e-06', photon_flux_error2='1.32e-09', ts2='14.38', photon_index='2.61' WHERE bin_id='750' AND source_name='4FGL J0949.0+4038' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 20 03:06:39 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 44966: <4FGL_J0949.0+4038_weekly_bin750> in cluster <slac> Done

Job <4FGL_J0949.0+4038_weekly_bin750> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Dec 20 02:50:27 2022
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 20 02:50:28 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 20 02:50:28 2022
Terminated at Tue Dec 20 03:06:40 2022
Results reported at Tue Dec 20 03:06:40 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0949.0+4038_weekly_bin750 147.262 40.6367 692582401 693187201 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 :                                   906.01 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             351.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   972 sec.
    Turnaround time :                            973 sec.

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

