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 61 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J0949.7+5819_monthly_bin170
RA = 147.437, Dec = 58.3283
tmin = 677635201, tmax = 680227201
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='91209', job_status='RUN', time_executed='2022-07-23 01:06:42.356278', time_epoch_executed='1658563602.36' WHERE source_name='4FGL J0949.7+5819' and cadence='monthly' and bin_id='170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/91209

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/91209/ft1_4FGL_J0949.7+5819_monthly_bin170.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/91209/ft2_4FGL_J0949.7+5819_monthly_bin170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/91209/ft1_4FGL_J0949.7+5819_monthly_bin170.fits outfile=/scratch/kocevski/91209/ft1_filteredMKT_4FGL_J0949.7+5819_monthly_bin170.fits ra=147.437 dec=58.3283 rad=12.0 tmin=677635201.0 tmax=680227201.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 32.44
user 31.40
sys 0.70

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/91209/ft2_4FGL_J0949.7+5819_monthly_bin170.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/91209/ft2_4FGL_J0949.7+5819_monthly_bin170.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/91209/ft1_filteredMKT_4FGL_J0949.7+5819_monthly_bin170.fits evtable="EVENTS" outfile="/scratch/kocevski/91209/ft1_filtered_4FGL_J0949.7+5819_monthly_bin170.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.86
user 0.64
sys 0.18

Number of photons that the gtmktime cut: 7332

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/91209/ft1_filtered_4FGL_J0949.7+5819_monthly_bin170.fits" evtable="EVENTS" scfile=/scratch/kocevski/91209/ft2_4FGL_J0949.7+5819_monthly_bin170.fits sctable="SC_DATA" outfile=/scratch/kocevski/91209/ltcube_677635201_680227201_4FGL_J0949.7+5819_monthly_bin170.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/91209/ft2_4FGL_J0949.7+5819_monthly_bin170.fits
.....................!
real 114.02
user 113.09
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/91209/ft1_filtered_4FGL_J0949.7+5819_monthly_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/91209/ft2_4FGL_J0949.7+5819_monthly_bin170.fits sctable="SC_DATA" expcube=/scratch/kocevski/91209/ltcube_677635201_680227201_4FGL_J0949.7+5819_monthly_bin170.fits outfile=/scratch/kocevski/91209/expmap_677635201_680227201_4FGL_J0949.7+5819_monthly_bin170.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/91209/ltcube_677635201_680227201_4FGL_J0949.7+5819_monthly_bin170.fits
.....................!
real 191.95
user 186.25
sys 4.77

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

Setting source of interest to:
4FGL J0949.7+5819 @ 147.437 58.3283

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/91209/ft1_filtered_4FGL_J0949.7+5819_monthly_bin170.fits scfile=/scratch/kocevski/91209/ft2_4FGL_J0949.7+5819_monthly_bin170.fits outfile=/scratch/kocevski/91209/cmap_677635201_680227201_4FGL_J0949.7+5819_monthly_bin170.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.437 yref=58.3283 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.79
user 0.58
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/91209/ft1_filtered_4FGL_J0949.7+5819_monthly_bin170.fits scfile=/scratch/kocevski/91209/ft2_4FGL_J0949.7+5819_monthly_bin170.fits outfile=/scratch/kocevski/91209/cmap_HighResolution_677635201_680227201_4FGL_J0949.7+5819_monthly_bin170.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.437 yref=58.3283 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.77
user 0.61
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/91209/ft1_filtered_4FGL_J0949.7+5819_monthly_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/91209/ft2_4FGL_J0949.7+5819_monthly_bin170.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/91209/Model_4FGL_J0949.7+5819_monthly_bin170.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/91209/ft1_filtered_4FGL_J0949.7+5819_monthly_bin170.fits.....................!
real 659.42
user 653.01
sys 1.42

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/91209/ft1_filtered_4FGL_J0949.7+5819_monthly_bin170.fits', '/scratch/kocevski/91209/ft2_4FGL_J0949.7+5819_monthly_bin170.fits', expMap='/scratch/kocevski/91209/expmap_677635201_680227201_4FGL_J0949.7+5819_monthly_bin170.fits', expCube='/scratch/kocevski/91209/ltcube_677635201_680227201_4FGL_J0949.7+5819_monthly_bin170.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/91209/Model_4FGL_J0949.7+5819_monthly_bin170.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0949.7+5819'

4FGL J0949.7+5819
   Spectrum: PowerLaw
401    Prefactor:  8.885e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
402        Index:  2.628e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
403        Scale:  7.203e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/91209/ft1_filtered_4FGL_J0949.7+5819_monthly_bin170.fits
Spacecraft file(s): /scratch/kocevski/91209/ft2_4FGL_J0949.7+5819_monthly_bin170.fits
Exposure map: /scratch/kocevski/91209/expmap_677635201_680227201_4FGL_J0949.7+5819_monthly_bin170.fits
Exposure cube: /scratch/kocevski/91209/ltcube_677635201_680227201_4FGL_J0949.7+5819_monthly_bin170.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/91209/Model_4FGL_J0949.7+5819_monthly_bin170.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) = 78387.9995043

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5813       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.1378       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.3065       1.0000         .10000E-03   10000.    
     4 'norm      '    2.0163       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.0902       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .30805       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.8305       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.3128       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.4019       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.9648       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.1389       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.8403       1.0000         .10000E-03   10000.    
    17 'norm      '    1.8880       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.5571       1.0000         .10000E-03   10000.    
    19 'norm      '    1.4411       1.0000         .10000E-03   10000.    
    20 'norm      '    4.9800       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.0258       1.0000         .10000E-03   10000.    
    22 'norm      '    5.2373       1.0000         .10000E-03   10000.    
    23 'norm      '    3.2479       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    10.674       1.0000         .10000E-03   10000.    
    26 'Prefactor '    9.9347       1.0000         .10000E-03   10000.    
    27 'norm      '    3.7738       1.0000         .10000E-03   10000.    
    28 'norm      '    1.6869       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    17.790       1.0000         .10000E-03   10000.    
    32 'norm      '    3.9448       1.0000         .10000E-03   10000.    
    33 'Prefactor '    72.627       1.0000         .10000E-03   10000.    
    34 'Prefactor '    2.2230       1.0000         .10000E-03   10000.    
    35 'Normalizat'    .96488       1.0000         .10000E-01   10.000    
    36 'Prefactor '    1.0887       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   78387.97     FROM MIGRAD    STATUS=CONVERGED     83 CALLS     3675 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5814        1.0951       -.55317E-08    .94727E-03
   2  Prefactor     4.1378        1.3152        .55216E-07   -.22655E-02
   3  Prefactor     8.3069        1.0024        .18977E-08   -.81556E-06
   4  norm          2.0163        1.4958       -.48991E-07    .32311E-03
   5  Prefactor     5.0902        1.1351       -.71734E-07    .23962E-02
   6  Prefactor     .10000E-03    .52332        .85322E-07** at limit **
   7  Prefactor     .10000E-03    3.6882       -.13830E-05** at limit **
   8  Prefactor     .10000E-03    8.4419       -.14257E-05** at limit **
   9  norm          .30812        .17352        .35961E-08    .39853E-03
  10  Prefactor     3.8304        1.8327       -.40558E-07   -.22851E-02
  11  Prefactor     4.3130        1.0973        .66809E-07   -.66772E-03
  12  Prefactor     .10000E-03    .39116        .21721E-06** at limit **
  13  Prefactor     5.4017        1.0359       -.11006E-07   -.24770E-03
  14  Prefactor     2.9648        1.4787        .64055E-07   -.16966E-02
  15  Prefactor     4.1385        1.5736       -.18145E-06    .27863E-02
  16  Prefactor     6.8398        1.9937       -.58932E-07    .16716E-02
  17  norm          1.8880        1.2517        .14541E-07    .87389E-04
  18  Prefactor     2.5565        1.0244       -.18871E-07    .15800E-03
  19  norm          1.4411        .16736        .17800E-07    .31614E-02
  20  norm          4.9799        1.3544       -.14551E-06    .28405E-02
  21  Prefactor     1.0260        1.1753        .16364E-07    .17021E-04
  22  norm          5.2373        .32152       -.44478E-08    .33461E-03
  23  norm          3.2478        .71594        .78299E-07    .15784E-02
  24  Prefactor     .10000E-03    3.4446       -.65691E-06** at limit **
  25  norm          10.674        1.0069       -.94684E-09   -.16651E-03
  26  Prefactor     9.9339        1.0050       -.69337E-08    .21021E-03
  27  norm          3.7738        .66830       -.86791E-08   -.54257E-04
  28  norm          1.6869        .40166        .47018E-08    .33466E-03
  29  Prefactor     .10002E-03    4.0036       -.17797E-05** at limit **
  30  Prefactor     .10000E-03    7.3918       -.21262E-05** at limit **
  31  Prefactor     17.790        1.0032       -.58594E-08    .41456E-03
  32  norm          3.9447        .69840        .18838E-07    .63801E-03
  33  Prefactor     72.626        1.0754       -.16216E-07    .47074E-02
  34  Prefactor     2.2214        1.0300       -.27632E-08   -.23715E-04
  35  Normalizat    .96494        .55908E-01   -.21984E-06    .60389E-03
  36  Prefactor     1.0886        .55544E-01    .52304E-06    .10253E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.58142
  Prefactor  = 4.13777
  Prefactor  = 8.30691
  norm       = 2.01633
  Prefactor  = 5.09021
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.308121
  Prefactor  = 3.83037
  Prefactor  = 4.31298
  Prefactor  = 0.0001
  Prefactor  = 5.40175
  Prefactor  = 2.96482
  Prefactor  = 4.13855
  Prefactor  = 6.83977
  norm       = 1.88797
  Prefactor  = 2.5565
  norm       = 1.44108
  norm       = 4.97988
  Prefactor  = 1.02597
  norm       = 5.23726
  norm       = 3.24783
  Prefactor  = 0.000100001
  norm       = 10.6741
  Prefactor  = 9.93388
  norm       = 3.77384
  norm       = 1.68692
  Prefactor  = 0.000100019
  Prefactor  = 0.000100005
  Prefactor  = 17.79
  norm       = 3.94475
  Prefactor  = 72.6259
  Prefactor  = 2.22138
  Normalizat = 0.964936
  Prefactor  = 1.08861
 **********
 **   18 **HESSE 
 **********

 FCN=   78387.97     FROM HESSE     STATUS=OK           913 CALLS     4588 TOTAL
                     EDM=   .78E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5814        2.0638        .53386E-02   -1.5329    
   2  Prefactor     4.1378        1.7474        .49539E-02   -1.5301    
   3  Prefactor     8.3069        6.4671        .34775E-02   -1.5131    
   4  norm          2.0163        1.5334        .72873E-02   -1.5424    
   5  Prefactor     5.0902        2.9435        .44553E-02   -1.5257    
   6  Prefactor     .10000E-03    .51583        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.6260        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.9854        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .30812        .20360        .20148E-01   -1.5597    
  10  Prefactor     3.8304        2.1113        .51553E-02   -1.5317    
  11  Prefactor     4.3130        2.3915        .48495E-02   -1.5293    
  12  Prefactor     .10000E-03    .17919        .40857E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.4017        3.8736        .43225E-02   -1.5243    
  14  Prefactor     2.9648        2.1030        .58956E-02   -1.5364    
  15  Prefactor     4.1385        2.4392        .49533E-02   -1.5301    
  16  Prefactor     6.8398        2.1023        .38352E-02   -1.5185    
  17  norm          1.8880        1.2901        .75717E-02   -1.5433    
  18  Prefactor     2.5565        8.0962        .63829E-02   -1.5388    
  19  norm          1.4411        .16800        .85179E-02   -1.5468    
  20  norm          4.9799        2.4670        .45053E-02   -1.5262    
  21  Prefactor     1.0260        1.2184        .12630E-01   -1.5505    
  22  norm          5.2373        .32337        .43911E-02   -1.5250    
  23  norm          3.2478        .71852        .56184E-02   -1.5348    
  24  Prefactor     .10000E-03    3.5683        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          10.674        3.8684        .30658E-02   -1.5054    
  26  Prefactor     9.9339        5.4285        .31783E-02   -1.5078    
  27  norm          3.7738        .78072        .51953E-02   -1.5319    
  28  norm          1.6869        .40204        .81046E-02   -1.5448    
  29  Prefactor     .10002E-03    10.432        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    11.004        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     17.790        16.445        .23739E-02   -1.4864    
  32  norm          3.9447        .72833        .50776E-02   -1.5311    
  33  Prefactor     72.626        20.380        .11777E-02   -1.4001    
  34  Prefactor     2.2214        6.4671        .68946E-02   -1.5410    
  35  Normalizat    .96494        .53173E-01    .45725E-01   -.94215    
  36  Prefactor     1.0886        .50428E-01    .59494E-01   -.89832    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.80543e-07
Minuit parameter uncertainties:
  1  2.06379
  2  1.74747
  3  6.4676
  4  1.53346
  5  2.9436
  6  1.98681e-06
  7  1.81345e-05
  8  6.34727e-05
  9  0.203597
  10  2.11133
  11  2.39158
  12  2.66268e-06
  13  3.87382
  14  2.10305
  15  2.43929
  16  2.10232
  17  1.29013
  18  8.0997
  19  0.168001
  20  2.46709
  21  1.21841
  22  0.323371
  23  0.718521
  24  0.000125716
  25  3.86853
  26  5.42879
  27  0.780726
  28  0.402041
  29  0.000889153
  30  0.000461186
  31  16.4492
  32  0.728333
  33  20.3824
  34  6.46908
  35  0.0531761
  36  0.0504302
Done.

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

Extracting fit parameters...

4FGL J0949.7+5819
   Spectrum: PowerLaw
401    Prefactor:  2.557e+00  8.100e+00  1.000e-04  1.000e+04 ( 1.000e-13)
402        Index:  2.628e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
403        Scale:  7.203e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
762    Prefactor:  1.089e+00  5.043e-02  0.000e+00  1.000e+01 ( 1.000e+00)
763        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
764        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
761   Normalization:  9.649e-01  5.318e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.12
Ra Dec: 147.437 58.328
Photon Flux Upper Limit: 2.10e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/91209/likelihoodResults_677635201_680227201_4FGL_J0949.7+5819_monthly_bin170.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) = 78387.8589856
delta logL = 0.106628273701

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 78387.7355847
delta logL = 0.230029175582

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    9.1250       1.0000          .0000       10.000    
     3 'Normalizat'    .95746       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0943       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7650E+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=   78387.74     FROM MIGRAD    STATUS=CONVERGED    185 CALLS      514 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .33897E-02    .48379E-03** at limit **
   2  Index         9.1249        9.4336        .66447E-02    .65427E-05
   3  Normalizat    .95744        .12889E-01    .27001E-03    .15966E-03
   4  Prefactor     1.0944        .13353E-01    .26252E-03    .29240E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 9.12494
  Normalizat = 0.957438
  Prefactor  = 1.09438
 **********
 **   18 **HESSE 
 **********

 FCN=   78387.74     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      547 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .32107E-02    .49819E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.1249        9.4240        .26579E-03    .97018    
   3  Normalizat    .95744        .12799E-01    .10801E-04   -.94470    
   4  Prefactor     1.0944        .13262E-01    .10501E-04   -.89647    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.02582e-10
Minuit parameter uncertainties:
  1  2.08046e-09
  2  6.23541
  3  0.0127994
  4  0.0132621
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/91209': 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) = 78387.7355822
delta logL = 0.230031652958

Extracting fit parameters...

4FGL J0949.7+5819
   Spectrum: PowerLaw
401    Prefactor:  1.000e-04  2.080e-09  1.000e-04  1.000e+04 ( 1.000e-13)
402        Index:  9.125e+00  6.235e+00  0.000e+00  1.000e+01 (-1.000e+00)
403        Scale:  7.203e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
762    Prefactor:  1.094e+00  1.326e-02  0.000e+00  1.000e+01 ( 1.000e+00)
763        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
764        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
761   Normalization:  9.574e-01  1.280e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.12
Ra Dec: 147.437 58.328

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/91209/cmap_HighResolution_677635201_680227201_4FGL_J0949.7+5819_monthly_bin170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.65e-03', job_status='DONE', photon_flux_upper_limit='2.10e-08', time_completed='2022-07-23 04:15:37.889289', job_id='91209', GAL2='1.09', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1658574937.89', return_code2='102', ts='0.12', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='2.30e-01', ts2='0.60', photon_index_error='0.00', photon_index='2.63' WHERE bin_id='170' AND source_name='4FGL J0949.7+5819' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sat Jul 23 04:15:37 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 91209: <4FGL_J0949.7+5819_monthly_bin170> in cluster <slac> Done

Job <4FGL_J0949.7+5819_monthly_bin170> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Jul 23 01:05:25 2022
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul 23 01:05:25 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul 23 01:05:25 2022
Terminated at Sat Jul 23 04:15:39 2022
Results reported at Sat Jul 23 04:15:39 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0949.7+5819_monthly_bin170 147.437 58.3283 677635201 680227201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0949.7+5819 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   11280.00 sec.
    Max Memory :                                 1262 MB
    Average Memory :                             444.49 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   11413 sec.
    Turnaround time :                            11414 sec.

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

