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


Performing analysis on: 4FGL_J1209.4+7608_daily_bin1750
RA = 182.363, Dec = 76.137
tmin = 692928001, 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='10708', job_status='RUN', time_executed='2022-12-20 00:45:46.515772', time_epoch_executed='1671525946.52' WHERE source_name='4FGL J1209.4+7608' and cadence='daily' and bin_id='1750'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/10708

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

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=692928001.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>=692928001.0 && nMetStart<693187201.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/10708/ft1_4FGL_J1209.4+7608_daily_bin1750.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/10708/ft2_4FGL_J1209.4+7608_daily_bin1750.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/10708/ft1_4FGL_J1209.4+7608_daily_bin1750.fits outfile=/scratch/kocevski/10708/ft1_filteredMKT_4FGL_J1209.4+7608_daily_bin1750.fits ra=182.363 dec=76.137 rad=12.0 tmin=692928001.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 3.44
user 3.22
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/10708/ft2_4FGL_J1209.4+7608_daily_bin1750.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/10708/ft2_4FGL_J1209.4+7608_daily_bin1750.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/10708/ft1_filteredMKT_4FGL_J1209.4+7608_daily_bin1750.fits evtable="EVENTS" outfile="/scratch/kocevski/10708/ft1_filtered_4FGL_J1209.4+7608_daily_bin1750.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.50
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 728

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/10708/ft1_filtered_4FGL_J1209.4+7608_daily_bin1750.fits" evtable="EVENTS" scfile=/scratch/kocevski/10708/ft2_4FGL_J1209.4+7608_daily_bin1750.fits sctable="SC_DATA" outfile=/scratch/kocevski/10708/ltcube_692928001_693187201_4FGL_J1209.4+7608_daily_bin1750.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/10708/ft2_4FGL_J1209.4+7608_daily_bin1750.fits
.....................!
real 11.89
user 11.47
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/10708/ft1_filtered_4FGL_J1209.4+7608_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/10708/ft2_4FGL_J1209.4+7608_daily_bin1750.fits sctable="SC_DATA" expcube=/scratch/kocevski/10708/ltcube_692928001_693187201_4FGL_J1209.4+7608_daily_bin1750.fits outfile=/scratch/kocevski/10708/expmap_692928001_693187201_4FGL_J1209.4+7608_daily_bin1750.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/10708/ltcube_692928001_693187201_4FGL_J1209.4+7608_daily_bin1750.fits
.....................!
real 190.92
user 184.96
sys 5.38

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

Setting source of interest to:
4FGL J1209.4+7608 @ 182.363 76.137

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/10708/ft1_filtered_4FGL_J1209.4+7608_daily_bin1750.fits scfile=/scratch/kocevski/10708/ft2_4FGL_J1209.4+7608_daily_bin1750.fits outfile=/scratch/kocevski/10708/cmap_692928001_693187201_4FGL_J1209.4+7608_daily_bin1750.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.363 yref=76.137 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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/10708/ft1_filtered_4FGL_J1209.4+7608_daily_bin1750.fits scfile=/scratch/kocevski/10708/ft2_4FGL_J1209.4+7608_daily_bin1750.fits outfile=/scratch/kocevski/10708/cmap_HighResolution_692928001_693187201_4FGL_J1209.4+7608_daily_bin1750.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.363 yref=76.137 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.54
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/10708/ft1_filtered_4FGL_J1209.4+7608_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/10708/ft2_4FGL_J1209.4+7608_daily_bin1750.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/10708/Model_4FGL_J1209.4+7608_daily_bin1750.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/10708/ft1_filtered_4FGL_J1209.4+7608_daily_bin1750.fits.....................!
real 92.08
user 90.73
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/10708/ft1_filtered_4FGL_J1209.4+7608_daily_bin1750.fits', '/scratch/kocevski/10708/ft2_4FGL_J1209.4+7608_daily_bin1750.fits', expMap='/scratch/kocevski/10708/expmap_692928001_693187201_4FGL_J1209.4+7608_daily_bin1750.fits', expCube='/scratch/kocevski/10708/ltcube_692928001_693187201_4FGL_J1209.4+7608_daily_bin1750.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/10708/Model_4FGL_J1209.4+7608_daily_bin1750.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1209.4+7608'

4FGL J1209.4+7608
   Spectrum: PowerLaw
397    Prefactor:  7.028e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
398        Index:  2.167e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
399        Scale:  1.807e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/10708/ft1_filtered_4FGL_J1209.4+7608_daily_bin1750.fits
Spacecraft file(s): /scratch/kocevski/10708/ft2_4FGL_J1209.4+7608_daily_bin1750.fits
Exposure map: /scratch/kocevski/10708/expmap_692928001_693187201_4FGL_J1209.4+7608_daily_bin1750.fits
Exposure cube: /scratch/kocevski/10708/ltcube_692928001_693187201_4FGL_J1209.4+7608_daily_bin1750.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/10708/Model_4FGL_J1209.4+7608_daily_bin1750.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) = 7655.32652997

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.897       1.0000          .0000       .10000E+07
     2 'Prefactor '    9.1540       1.0000          .0000       .10000E+07
     3 'Prefactor '    .10133E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .17072E-01   1.0000          .0000       .10000E+07
     5 'norm      '    .49959E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    .11552       1.0000          .0000       .10000E+07
     7 'Prefactor '    .69690E-03   1.0000          .0000       .10000E+07
     8 'norm      '    6.6206       1.0000          .0000       .10000E+07
     9 'norm      '    .33960E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    .61393E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    17.702       1.0000          .0000       .10000E+07
    12 'Prefactor '    2.5954       1.0000          .0000       .10000E+07
    13 'Prefactor '    7.7579       1.0000          .0000       .10000E+07
    14 'Prefactor '    72.085       1.0000          .0000       .10000E+07
    15 'Prefactor '    33.338       1.0000          .0000       .10000E+07
    16 'norm      '    .10905E-04   1.0000          .0000       .10000E+07
    17 'norm      '    .19046E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .92451E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .31260       1.0000          .0000       .10000E+07
    20 'Prefactor '    5.5645       1.0000          .0000       .10000E+07
    21 'Prefactor '    34.880       1.0000          .0000       .10000E+07
    22 'Prefactor '    24.474       1.0000          .0000       .10000E+07
    23 'Prefactor '    .10084E-02   1.0000          .0000       .10000E+07
    24 'Prefactor '    45.859       1.0000          .0000       .10000E+07
    25 'Prefactor '    .81292E-02   1.0000          .0000       .10000E+07
    26 'Prefactor '    .37586E-03   1.0000          .0000       .10000E+07
    27 'Normalizat'    1.0025       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .69777       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7655.326     FROM MIGRAD    STATUS=CONVERGED    130 CALLS     2643 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.868        1.6379       -.14378E-06   -.16633E-01
   2  Prefactor     9.1288        1.7570       -.25175E-06    .76053E-02
   3  Prefactor     .18541E-07    3.3542       -.18216E-05** at limit **
   4  Prefactor     .69944E-08    36.563       -.37661E-05** at limit **
   5  norm          .14144E-06    4.3150       -.47983E-05** at limit **
   6  Prefactor     .37511E-05    5.9948       -.61238E-05** at limit **
   7  Prefactor     .89151E-07    6.0654        .39978E-05** at limit **
   8  norm          6.6194        1.0241        .15182E-07    .32500E-01
   9  norm          .46968E-06    7.2535        .36519E-05** at limit **
  10  Prefactor     .15782E-06    5.6529       -.44493E-05** at limit **
  11  Prefactor     17.710        1.0311        .50036E-07   -.23544E-02
  12  Prefactor     2.5927        2.9532        .10255E-05    .80053E-02
  13  Prefactor     7.5535        9.2678       -.36656E-06    .95151E-02
  14  Prefactor     72.120        1.0192       -.36318E-07    .14511E-01
  15  Prefactor     33.308        2.8355       -.54364E-06    .83522E-01
  16  norm          .49405E-08    2.1738        .67657E-06** at limit **
  17  norm          .88984E-06    2.5442       -.10471E-06** at limit **
  18  Prefactor     .18951E-05    8.6836        .12515E-05** at limit **
  19  Prefactor     .36642E-05    3.4255        .37823E-05** at limit **
  20  Prefactor     5.4586        9.1299        .32068E-05    .48159E-02
  21  Prefactor     34.920        1.1518        .12412E-06   -.27014E-01
  22  Prefactor     24.488        1.1917       -.90636E-07    .87479E-02
  23  Prefactor     .32291E-06    4.3938        .12121E-05** at limit **
  24  Prefactor     45.880        1.0021       -.10965E-07    .24023E-02
  25  Prefactor     .20091E-05    9.1703        .51717E-05** at limit **
  26  Prefactor     .27200E-08    26.310       -.12134E-05** at limit **
  27  Normalizat    1.0030        .14817       -.12273E-04   -.44507E-03
  28  Prefactor     .69808        .11968       -.16262E-05   -.28059E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.8682
  Prefactor  = 9.12883
  Prefactor  = 1.85407e-08
  Prefactor  = 6.99441e-09
  norm       = 1.41442e-07
  Prefactor  = 3.75106e-06
  Prefactor  = 8.91509e-08
  norm       = 6.61939
  norm       = 4.6968e-07
  Prefactor  = 1.57818e-07
  Prefactor  = 17.7103
  Prefactor  = 2.59269
  Prefactor  = 7.55354
  Prefactor  = 72.1204
  Prefactor  = 33.3084
  norm       = 4.94049e-09
  norm       = 8.89844e-07
  Prefactor  = 1.8951e-06
  Prefactor  = 3.66418e-06
  Prefactor  = 5.45863
  Prefactor  = 34.92
  Prefactor  = 24.4881
  Prefactor  = 3.22908e-07
  Prefactor  = 45.88
  Prefactor  = 2.00912e-06
  Prefactor  = 2.72005e-09
  Normalizat = 1.00299
  Prefactor  = 0.698075
 **********
 **   18 **HESSE 
 **********

 FCN=   7655.326     FROM HESSE     STATUS=OK           577 CALLS     3220 TOTAL
                     EDM=   .70E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.868        10.433        .17993E-03   -1.5597    
   2  Prefactor     9.1288        13.638        .33102E-03   -1.5648    
   3  Prefactor     .18541E-07    3.5035        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .69944E-08    36.401        .17237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .14144E-06    7.1089        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .37511E-05    57.652        .13530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .89151E-07    8.4806        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.6194        1.0815        .38976E-04   -1.5657    
   9  norm          .46968E-06    1.0924        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .15782E-06    9.7415        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     17.710        17.857        .23777E-03   -1.5624    
  12  Prefactor     2.5927        2.9711        .63307E-03   -1.5676    
  13  Prefactor     7.5535        10.496        .35978E-03   -1.5653    
  14  Prefactor     72.120        49.969        .11779E-03   -1.5538    
  15  Prefactor     33.308        31.056        .17322E-03   -1.5593    
  16  norm          .49405E-08    2.2866        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .88984E-06    2.5698        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .18951E-05    16.432        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .36642E-05    109.52        .10040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.4586        9.1783        .42566E-03   -1.5661    
  21  Prefactor     34.920        46.238        .16934E-03   -1.5590    
  22  Prefactor     24.488        20.735        .20218E-03   -1.5609    
  23  Prefactor     .32291E-06    6.6854        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     45.880        49.377        .14768E-03   -1.5572    
  25  Prefactor     .20091E-05    18.284        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .27200E-08    28.241        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0030        .14315        .46198E-01   -.92930    
  28  Prefactor     .69808        .11084        .42372E-01   -1.0360    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.02195e-07
Minuit parameter uncertainties:
  1  10.4331
  2  13.6379
  3  0.000509866
  4  0.00100889
  5  0.00200545
  6  0.0294115
  7  0.00173879
  8  1.08153
  9  0.00143258
  10  0.00247962
  11  17.8574
  12  2.97111
  13  10.4956
  14  49.9697
  15  31.0564
  16  0.000212009
  17  0.00302437
  18  0.0111609
  19  0.0400662
  20  9.17832
  21  46.2388
  22  20.7348
  23  0.00293858
  24  49.3773
  25  0.0121219
  26  0.000551509
  27  0.143204
  28  0.110877
Done.

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

Extracting fit parameters...

4FGL J1209.4+7608
   Spectrum: PowerLaw
397    Prefactor:  7.212e+01  4.997e+01  0.000e+00  1.000e+06 ( 1.000e-14)
398        Index:  2.167e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
399        Scale:  1.807e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
710    Prefactor:  6.981e-01  1.109e-01  0.000e+00  1.000e+01 ( 1.000e+00)
711        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
712        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
709   Normalization:  1.003e+00  1.432e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.13
Ra Dec: 182.363 76.137
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 3.27e-08 +/- 2.27e-08
Energy Flux (Fixed Index): 1.57e-05 +/- 1.08e-05

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) = 7654.78719237
delta logL = 0.538830523013

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7654.6781774
delta logL = 0.647845493573

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    107.21       1.0000          .0000       .10000E+07
     2 'Index     '    1.5317       1.0000          .0000       10.000    
     3 'Normalizat'    1.0145       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69630       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7130E+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=   7654.678     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      252 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     107.19        78.123        .19317E-04    .44186E-03
   2  Index         1.5323        .50607        .98532E-02    .51167E-04
   3  Normalizat    1.0145        .14446        .23740E-03    .83642E-03
   4  Prefactor     .69631        .11888        .23067E-03    .69032E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 107.193
  Index      = 1.53229
  Normalizat = 1.01451
  Prefactor  = 0.696306
 **********
 **   18 **HESSE 
 **********

 FCN=   7654.678     FROM HESSE     STATUS=OK            25 CALLS      277 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     107.19        79.038        .38635E-05   -1.5501    
   2  Index         1.5323        .51203        .39413E-03   -.76639    
   3  Normalizat    1.0145        .14452        .47480E-04   -.92546    
   4  Prefactor     .69631        .11894        .46134E-04   -1.0367    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.79204e-10
Minuit parameter uncertainties:
  1  79.0383
  2  0.513774
  3  0.144576
  4  0.118988
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/10708': 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) = 7654.67817664
delta logL = 0.647846251323

Extracting fit parameters...

4FGL J1209.4+7608
   Spectrum: PowerLaw
397    Prefactor:  1.072e+02  7.904e+01  0.000e+00  1.000e+06 ( 1.000e-14)
398        Index:  1.532e+00  5.138e-01  0.000e+00  1.000e+01 (-1.000e+00)
399        Scale:  1.807e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
710    Prefactor:  6.963e-01  1.190e-01  0.000e+00  1.000e+01 ( 1.000e+00)
711        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
712        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
709   Normalization:  1.015e+00  1.446e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.41
Ra Dec: 182.363 76.137
Photon Index (Free Index): 1.53 +/- 0.51
Photon Flux (Free Index): 1.66e-08 +/- 1.80e-08
Energy Flux (Free Index): 4.70e-05 +/- 5.36e-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/10708/cmap_HighResolution_692928001_693187201_4FGL_J1209.4+7608_daily_bin1750.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.27e-08', energy_flux2='4.70e-05', photon_flux_error='2.27e-08', dlogl='6.48e-01', energy_flux='1.57e-05', photon_flux2='1.66e-08', job_status='DONE', time_completed='2022-12-20 01:00:03.395289', photon_index_error2='0.51', photon_index2='1.53', ts='4.13', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', energy_flux_error2='5.36e-05', EG='1.00', time_epoch_completed='1671526803.4', return_code='0', job_id='10708', GAL2='0.70', EG2='1.01', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='1.80e-08', ts2='5.41', photon_index='2.17' WHERE bin_id='1750' AND source_name='4FGL J1209.4+7608' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 20 01:00:03 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0110>
Subject: Job 10708: <4FGL_J1209.4+7608_daily_bin1750> in cluster <slac> Done

Job <4FGL_J1209.4+7608_daily_bin1750> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Dec 20 00:45:12 2022
Job was executed on host(s) <bullet0110>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 20 00:45:13 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 20 00:45:13 2022
Terminated at Tue Dec 20 01:00:04 2022
Results reported at Tue Dec 20 01:00:04 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1209.4+7608_daily_bin1750 182.363 76.137 692928001 693187201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1209.4+7608 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   858.40 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             351.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            892 sec.

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

