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


Performing analysis on: 4FGL_J1208.4+6121_monthly_bin169
RA = 182.114, Dec = 61.3559
tmin = 675043201, tmax = 677635201
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='166083', job_status='RUN', time_executed='2022-06-23 02:18:40.095220', time_epoch_executed='1655975920.1' WHERE source_name='4FGL J1208.4+6121' and cadence='monthly' and bin_id='169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/166083

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/166083/ft1_4FGL_J1208.4+6121_monthly_bin169.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/166083/ft2_4FGL_J1208.4+6121_monthly_bin169.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/166083/ft1_4FGL_J1208.4+6121_monthly_bin169.fits outfile=/scratch/kocevski/166083/ft1_filteredMKT_4FGL_J1208.4+6121_monthly_bin169.fits ra=182.114 dec=61.3559 rad=12.0 tmin=675043201.0 tmax=677635201.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 27.59
user 26.80
sys 0.70

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/166083/ft2_4FGL_J1208.4+6121_monthly_bin169.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/166083/ft2_4FGL_J1208.4+6121_monthly_bin169.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/166083/ft1_filteredMKT_4FGL_J1208.4+6121_monthly_bin169.fits evtable="EVENTS" outfile="/scratch/kocevski/166083/ft1_filtered_4FGL_J1208.4+6121_monthly_bin169.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.84
user 0.65
sys 0.18

Number of photons that the gtmktime cut: 8591

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/166083/ft1_filtered_4FGL_J1208.4+6121_monthly_bin169.fits" evtable="EVENTS" scfile=/scratch/kocevski/166083/ft2_4FGL_J1208.4+6121_monthly_bin169.fits sctable="SC_DATA" outfile=/scratch/kocevski/166083/ltcube_675043201_677635201_4FGL_J1208.4+6121_monthly_bin169.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/166083/ft2_4FGL_J1208.4+6121_monthly_bin169.fits
.....................!
real 130.24
user 129.57
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/166083/ft1_filtered_4FGL_J1208.4+6121_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/166083/ft2_4FGL_J1208.4+6121_monthly_bin169.fits sctable="SC_DATA" expcube=/scratch/kocevski/166083/ltcube_675043201_677635201_4FGL_J1208.4+6121_monthly_bin169.fits outfile=/scratch/kocevski/166083/expmap_675043201_677635201_4FGL_J1208.4+6121_monthly_bin169.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/166083/ltcube_675043201_677635201_4FGL_J1208.4+6121_monthly_bin169.fits
.....................!
real 192.57
user 186.51
sys 5.35

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

Setting source of interest to:
4FGL J1208.4+6121 @ 182.114 61.3559

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/166083/ft1_filtered_4FGL_J1208.4+6121_monthly_bin169.fits scfile=/scratch/kocevski/166083/ft2_4FGL_J1208.4+6121_monthly_bin169.fits outfile=/scratch/kocevski/166083/cmap_675043201_677635201_4FGL_J1208.4+6121_monthly_bin169.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=182.114 yref=61.3559 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.61
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/166083/ft1_filtered_4FGL_J1208.4+6121_monthly_bin169.fits scfile=/scratch/kocevski/166083/ft2_4FGL_J1208.4+6121_monthly_bin169.fits outfile=/scratch/kocevski/166083/cmap_HighResolution_675043201_677635201_4FGL_J1208.4+6121_monthly_bin169.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=182.114 yref=61.3559 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.81
user 0.61
sys 0.20

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/166083/ft1_filtered_4FGL_J1208.4+6121_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/166083/ft2_4FGL_J1208.4+6121_monthly_bin169.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/166083/Model_4FGL_J1208.4+6121_monthly_bin169.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/166083/ft1_filtered_4FGL_J1208.4+6121_monthly_bin169.fits.....................!
real 705.79
user 702.73
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/166083/ft1_filtered_4FGL_J1208.4+6121_monthly_bin169.fits', '/scratch/kocevski/166083/ft2_4FGL_J1208.4+6121_monthly_bin169.fits', expMap='/scratch/kocevski/166083/expmap_675043201_677635201_4FGL_J1208.4+6121_monthly_bin169.fits', expCube='/scratch/kocevski/166083/ltcube_675043201_677635201_4FGL_J1208.4+6121_monthly_bin169.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/166083/Model_4FGL_J1208.4+6121_monthly_bin169.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1208.4+6121'

4FGL J1208.4+6121
   Spectrum: PowerLaw
372    Prefactor:  1.772e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
373        Index:  2.073e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
374        Scale:  2.978e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/166083/ft1_filtered_4FGL_J1208.4+6121_monthly_bin169.fits
Spacecraft file(s): /scratch/kocevski/166083/ft2_4FGL_J1208.4+6121_monthly_bin169.fits
Exposure map: /scratch/kocevski/166083/expmap_675043201_677635201_4FGL_J1208.4+6121_monthly_bin169.fits
Exposure cube: /scratch/kocevski/166083/ltcube_675043201_677635201_4FGL_J1208.4+6121_monthly_bin169.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/166083/Model_4FGL_J1208.4+6121_monthly_bin169.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) = 92767.778665

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.614       1.0000         .10000E-03   10000.    
     2 'norm      '    2.5906       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .23795E-01   1.0000         .10000E-03   10000.    
     4 'norm      '    .15121E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.494       1.0000         .10000E-03   10000.    
     6 'norm      '    3.2471       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.1208       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.1443       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.1897       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.283       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15966E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.1451       1.0000         .10000E-03   10000.    
    13 'norm      '    .93717       1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.2471       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.3005       1.0000         .10000E-03   10000.    
    17 'norm      '    1.2261       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.094       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.5035       1.0000         .10000E-03   10000.    
    20 'norm      '    .81712       1.0000         .10000E-03   10000.    
    21 'norm      '    1.4957       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.0652       1.0000         .10000E-03   10000.    
    23 'norm      '    4.6280       1.0000         .10000E-03   10000.    
    24 'norm      '    1.9405       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.0819       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.2899       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    10.008       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .62609       1.0000         .10000E-03   10000.    
    30 'Prefactor '    2.8251       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0202       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0087       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   92767.74     FROM MIGRAD    STATUS=CONVERGED    916 CALLS     4566 TOTAL
                     EDM=   .64E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.589        6.9660         .0000        .60033E-02
   2  norm          2.5923        .74631         .0000        .32985E-02
   3  Prefactor     .10006E-03    6.3522         .0000    ** at limit **
   4  norm          .13756E-01    .10134         .0000        .25204E-02
   5  Prefactor     25.574        24.366         .0000        .62821E-04
   6  norm          3.2460        .60662         .0000        .55245E-03
   7  Prefactor     7.1255        1.6591         .0000        .80095E-01
   8  Prefactor     6.1807        4.9164         .0000        .50270E-03
   9  Prefactor     3.1881        1.3561         .0000        .53752E-02
  10  Prefactor     11.302        4.5976         .0000        .38267E-02
  11  Prefactor     .10000E-03    .77033         .0000    ** at limit **
  12  Prefactor     2.1452        .71182         .0000        .12893E-02
  13  norm          .93712        1.2630         .0000        .34337E-03
  14  norm          .10000E-03    .19607         .0000    ** at limit **
  15  Prefactor     3.2439        1.5711         .0000        .45416E-02
  16  Prefactor     5.3167        4.3015         .0000        .73562E-03
  17  norm          1.2262        .47073         .0000        .10731E-01
  18  Prefactor     10.110        4.2440         .0000        .39570E-03
  19  Prefactor     6.5079        7.7670         .0000       -.14890E-02
  20  norm          .81716        .68855         .0000        .11352E-01
  21  norm          1.4952        1.3647         .0000        .10039E-01
  22  Prefactor     1.0652        .87584         .0000        .49415E-02
  23  norm          4.6281        .62724         .0000        .48240E-03
  24  norm          1.9405        .44907         .0000        .19373E-02
  25  Prefactor     2.0671        5.9809         .0000        .69113E-03
  26  Prefactor     1.2907        1.5244         .0000        .11639E-01
  27  Prefactor     .10000E-03    2.7861         .0000    ** at limit **
  28  Prefactor     9.9787        6.7066         .0000        .12017E-02
  29  Prefactor     .62618        .80539         .0000        .17352E-01
  30  Prefactor     2.8259        1.8967         .0000        .91676E-01
  31  Normalizat    1.0201        .41993E-01     .0000       -.19697E-03
  32  Prefactor     1.0087        .50708E-01     .0000       -.18240E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.5886
  norm       = 2.59227
  Prefactor  = 0.000100057
  norm       = 0.0137565
  Prefactor  = 25.5742
  norm       = 3.24596
  Prefactor  = 7.12547
  Prefactor  = 6.18074
  Prefactor  = 3.18806
  Prefactor  = 11.3018
  Prefactor  = 0.0001
  Prefactor  = 2.14516
  norm       = 0.937122
  norm       = 0.0001
  Prefactor  = 3.24388
  Prefactor  = 5.31675
  norm       = 1.22619
  Prefactor  = 10.1101
  Prefactor  = 6.50792
  norm       = 0.817156
  norm       = 1.49521
  Prefactor  = 1.06523
  norm       = 4.62809
  norm       = 1.94047
  Prefactor  = 2.06711
  Prefactor  = 1.29073
  Prefactor  = 0.0001
  Prefactor  = 9.97872
  Prefactor  = 0.626184
  Prefactor  = 2.82586
  Normalizat = 1.02014
  Prefactor  = 1.0087
 **********
 **   18 **HESSE 
 **********

 FCN=   92767.74     FROM HESSE     STATUS=OK           707 CALLS     5273 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.589        7.1006        .56392E-03   -1.4998    
   2  norm          2.5923        .75819        .10916E-03   -1.5386    
   3  Prefactor     .10006E-03    6.1986        .29721       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .13756E-01    .45608        .27575E-01   -1.5685    
   5  Prefactor     25.574        24.365        .79337E-04   -1.4696    
   6  norm          3.2460        .60545        .95986E-04   -1.5348    
   7  Prefactor     7.1255        2.1849        .74625E-03   -1.5174    
   8  Prefactor     6.1807        4.9022        .16196E-03   -1.5211    
   9  Prefactor     3.1881        1.3522        .21921E-03   -1.5351    
  10  Prefactor     11.302        4.5940        .59633E-03   -1.5035    
  11  Prefactor     .10000E-03    .81101        .96474E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.1452        .71105        .14344E-03   -1.5415    
  13  norm          .93712        1.2630        .51767E-04   -1.5514    
  14  norm          .10000E-03    .19622        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.2439        1.5591        .22477E-03   -1.5348    
  16  Prefactor     5.3167        4.2711        .17457E-03   -1.5247    
  17  norm          1.2262        .46339        .12304E-03   -1.5487    
  18  Prefactor     10.110        4.2453        .12612E-03   -1.5072    
  19  Prefactor     6.5079        7.7533        .15737E-03   -1.5198    
  20  norm          .81716        .63505        .22292E-02   -1.5527    
  21  norm          1.4952        1.3521        .32943E-03   -1.5463    
  22  Prefactor     1.0652        .86577        .24392E-03   -1.5502    
  23  norm          4.6281        .62247        .83333E-04   -1.5278    
  24  norm          1.9405        .44818        .95325E-04   -1.5429    
  25  Prefactor     2.0671        5.9762        .28619E-03   -1.5420    
  26  Prefactor     1.2907        1.5008        .38997E-03   -1.5481    
  27  Prefactor     .10000E-03    2.7942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     9.9787        6.7061        .63333E-03   -1.5076    
  29  Prefactor     .62618        .75029        .26547E-03   -1.5550    
  30  Prefactor     2.8259        1.8076        .12098E-02   -1.5372    
  31  Normalizat    1.0201        .49569E-01    .22196E-03   -.92359    
  32  Prefactor     1.0087        .60099E-01    .27967E-03   -.92440    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36931e-08
Minuit parameter uncertainties:
  1  7.1011
  2  0.758192
  3  0.00118882
  4  0.157842
  5  24.3746
  6  0.605448
  7  2.18493
  8  4.90254
  9  1.3522
  10  4.59417
  11  2.48806e-05
  12  0.711054
  13  1.263
  14  2.28591e-07
  15  1.55908
  16  4.27136
  17  0.463394
  18  4.24543
  19  7.75452
  20  0.635051
  21  1.35213
  22  0.865779
  23  0.622472
  24  0.448178
  25  5.97795
  26  1.50087
  27  2.52098e-06
  28  6.70661
  29  0.750303
  30  1.80764
  31  0.0495708
  32  0.0601032
Done.

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

Extracting fit parameters...

4FGL J1208.4+6121
   Spectrum: PowerLaw
372    Prefactor:  5.317e+00  4.271e+00  1.000e-04  1.000e+04 ( 1.000e-14)
373        Index:  2.073e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
374        Scale:  2.978e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
707    Prefactor:  1.009e+00  6.010e-02  0.000e+00  1.000e+01 ( 1.000e+00)
708        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
709        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
706   Normalization:  1.020e+00  4.957e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.46
Ra Dec: 182.114 61.356
Photon Index (Fixed Index): 2.07 +/- 0.00
Photon Flux (Fixed Index): 5.63e-09 +/- 4.52e-09
Energy Flux (Fixed Index): 3.28e-06 +/- 2.63e-06

TS (Fixed Index): 2.46
Ra Dec: 182.114 61.356
Photon Flux Upper Limit: 1.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.08e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/166083/likelihoodResults_675043201_677635201_4FGL_J1208.4+6121_monthly_bin169.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) = 92767.3717199
delta logL = 0.372775054406

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 92767.3693702
delta logL = 0.375124740662

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3107       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4854       1.0000          .0000       10.000    
     3 'Normalizat'    1.0149       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0118       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   92767.37     FROM MIGRAD    STATUS=FAILED        97 CALLS      309 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3107        65.137        .22249E-03    .94184E-03
   2  Index         2.4853        3.4210        .13396E-01    .35625E-03
   3  Normalizat    1.0149        .61518E-01    .22247E-03   -.40881E-05
   4  Prefactor     1.0118        .66557E-01    .27928E-03    .71645E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   92767.37     FROM SIMPLEX   STATUS=UNCHANGED     89 CALLS      398 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3107        65.137        .11437E-03    .94184E-03
   2  Index         2.4853        3.4210        .71802E-03    .35625E-03
   3  Normalizat    1.0149        .61518E-01    .57293E-04   -.40881E-05
   4  Prefactor     1.0118        .66557E-01    .60880E-04    .71645E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   92767.37     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      429 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3106        3.7352        .88995E-05    .44557E-03
   2  Index         2.4853        .50170        .53584E-03    .79096E-04
   3  Normalizat    1.0149        .47842E-01    .88990E-05   -.61321E-04
   4  Prefactor     1.0118        .59630E-01    .11171E-04   -.39079E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.31065
  Index      = 2.48535
  Normalizat = 1.01488
  Prefactor  = 1.01178
 **********
 **   18 **HESSE 
 **********

 FCN=   92767.37     FROM HESSE     STATUS=OK            23 CALLS      452 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3106        3.6600        .17799E-05   -1.5344    
   2  Index         2.4853        .49181        .21433E-04   -.52699    
   3  Normalizat    1.0149        .47810E-01    .17798E-05   -.92534    
   4  Prefactor     1.0118        .59589E-01    .22342E-05   -.92338    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.93364e-11
Minuit parameter uncertainties:
  1  3.66029
  2  0.492878
  3  0.047812
  4  0.0595933
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/166083': 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) = 92767.3693702
delta logL = 0.375124795944

Extracting fit parameters...

4FGL J1208.4+6121
   Spectrum: PowerLaw
372    Prefactor:  3.311e+00  3.660e+00  1.000e-04  1.000e+04 ( 1.000e-14)
373        Index:  2.485e+00  4.929e-01  0.000e+00  1.000e+01 (-1.000e+00)
374        Scale:  2.978e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
707    Prefactor:  1.012e+00  5.959e-02  0.000e+00  1.000e+01 ( 1.000e+00)
708        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
709        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
706   Normalization:  1.015e+00  4.781e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.21
Ra Dec: 182.114 61.356
Photon Index (Free Index): 2.49 +/- 0.49
Photon Flux (Free Index): 1.03e-08 +/- 7.77e-09
Energy Flux (Free Index): 3.03e-06 +/- 1.93e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/166083/cmap_HighResolution_675043201_677635201_4FGL_J1208.4+6121_monthly_bin169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.08e-03', comment='SUCCESS', photon_flux='5.63e-09', energy_flux2='3.03e-06', photon_flux_error='4.52e-09', dlogl='3.75e-01', energy_flux='3.28e-06', photon_flux2='1.03e-08', job_status='DONE', time_completed='2022-06-23 05:50:41.346993', photon_index_error2='0.49', photon_index2='2.49', ts='2.46', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.43e-08', energy_flux_error2='1.93e-06', EG='1.02', time_epoch_completed='1655988641.35', return_code='0', job_id='166083', GAL2='1.01', EG2='1.01', return_code2='0', energy_flux_error='2.63e-06', photon_flux_error2='7.77e-09', ts2='3.21', photon_index='2.07' WHERE bin_id='169' AND source_name='4FGL J1208.4+6121' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Thu Jun 23 05:50:41 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 166083: <4FGL_J1208.4+6121_monthly_bin169> in cluster <slac> Done

Job <4FGL_J1208.4+6121_monthly_bin169> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Jun 23 01:35:34 2022
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jun 23 02:15:27 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jun 23 02:15:27 2022
Terminated at Thu Jun 23 05:50:42 2022
Results reported at Thu Jun 23 05:50:42 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1208.4+6121_monthly_bin169 182.114 61.3559 675043201 677635201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1208.4+6121 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   12678.00 sec.
    Max Memory :                                 632 MB
    Average Memory :                             446.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   12918 sec.
    Turnaround time :                            15308 sec.

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

