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


Performing analysis on: 4FGL_J1209.4+7608_daily_bin1774
RA = 182.363, Dec = 76.137
tmin = 699148801, tmax = 699408001
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='681398', job_status='RUN', time_executed='2023-03-02 00:40:32.693587', time_epoch_executed='1677746432.69' WHERE source_name='4FGL J1209.4+7608' and cadence='daily' and bin_id='1774'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/681398

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/681398/ft1_4FGL_J1209.4+7608_daily_bin1774.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/681398/ft2_4FGL_J1209.4+7608_daily_bin1774.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/681398/ft1_4FGL_J1209.4+7608_daily_bin1774.fits outfile=/scratch/kocevski/681398/ft1_filteredMKT_4FGL_J1209.4+7608_daily_bin1774.fits ra=182.363 dec=76.137 rad=12.0 tmin=699148801.0 tmax=699408001.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 2.82
user 2.59
sys 0.20

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

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

Number of photons that the gtmktime cut: 866

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/681398/ft1_filtered_4FGL_J1209.4+7608_daily_bin1774.fits" evtable="EVENTS" scfile=/scratch/kocevski/681398/ft2_4FGL_J1209.4+7608_daily_bin1774.fits sctable="SC_DATA" outfile=/scratch/kocevski/681398/ltcube_699148801_699408001_4FGL_J1209.4+7608_daily_bin1774.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/681398/ft2_4FGL_J1209.4+7608_daily_bin1774.fits
.....................!
real 12.17
user 11.86
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/681398/ft1_filtered_4FGL_J1209.4+7608_daily_bin1774.fits evtable="EVENTS" scfile=/scratch/kocevski/681398/ft2_4FGL_J1209.4+7608_daily_bin1774.fits sctable="SC_DATA" expcube=/scratch/kocevski/681398/ltcube_699148801_699408001_4FGL_J1209.4+7608_daily_bin1774.fits outfile=/scratch/kocevski/681398/expmap_699148801_699408001_4FGL_J1209.4+7608_daily_bin1774.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/681398/ltcube_699148801_699408001_4FGL_J1209.4+7608_daily_bin1774.fits
.....................!
real 190.72
user 185.04
sys 5.36

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/681398/ft1_filtered_4FGL_J1209.4+7608_daily_bin1774.fits scfile=/scratch/kocevski/681398/ft2_4FGL_J1209.4+7608_daily_bin1774.fits outfile=/scratch/kocevski/681398/cmap_699148801_699408001_4FGL_J1209.4+7608_daily_bin1774.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/681398/ft1_filtered_4FGL_J1209.4+7608_daily_bin1774.fits scfile=/scratch/kocevski/681398/ft2_4FGL_J1209.4+7608_daily_bin1774.fits outfile=/scratch/kocevski/681398/cmap_HighResolution_699148801_699408001_4FGL_J1209.4+7608_daily_bin1774.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.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/681398/ft1_filtered_4FGL_J1209.4+7608_daily_bin1774.fits', '/scratch/kocevski/681398/ft2_4FGL_J1209.4+7608_daily_bin1774.fits', expMap='/scratch/kocevski/681398/expmap_699148801_699408001_4FGL_J1209.4+7608_daily_bin1774.fits', expCube='/scratch/kocevski/681398/ltcube_699148801_699408001_4FGL_J1209.4+7608_daily_bin1774.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/681398/Model_4FGL_J1209.4+7608_daily_bin1774.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/681398/ft1_filtered_4FGL_J1209.4+7608_daily_bin1774.fits
Spacecraft file(s): /scratch/kocevski/681398/ft2_4FGL_J1209.4+7608_daily_bin1774.fits
Exposure map: /scratch/kocevski/681398/expmap_699148801_699408001_4FGL_J1209.4+7608_daily_bin1774.fits
Exposure cube: /scratch/kocevski/681398/ltcube_699148801_699408001_4FGL_J1209.4+7608_daily_bin1774.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/681398/Model_4FGL_J1209.4+7608_daily_bin1774.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 9328.00273367

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.169       1.0000          .0000       .10000E+07
     2 'Prefactor '    5.5397       1.0000          .0000       .10000E+07
     3 'Prefactor '    6.0559       1.0000          .0000       .10000E+07
     4 'Prefactor '    .65046E-02   1.0000          .0000       .10000E+07
     5 'norm      '    .13295E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    44.292       1.0000          .0000       .10000E+07
     7 'Prefactor '    .61889E-06   1.0000          .0000       .10000E+07
     8 'norm      '    5.1243       1.0000          .0000       .10000E+07
     9 'norm      '    .36415E-07   1.0000          .0000       .10000E+07
    10 'Prefactor '    .92043E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    .20628E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .71210E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    .39427E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    18.985       1.0000          .0000       .10000E+07
    15 'Prefactor '    .93101E-02   1.0000          .0000       .10000E+07
    16 'norm      '    .15412E-05   1.0000          .0000       .10000E+07
    17 'norm      '    3.2237       1.0000          .0000       .10000E+07
    18 'Prefactor '    .20699E-01   1.0000          .0000       .10000E+07
    19 'Prefactor '    .23084E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    4.4895       1.0000          .0000       .10000E+07
    21 'Prefactor '    .12872       1.0000          .0000       .10000E+07
    22 'Prefactor '    27.221       1.0000          .0000       .10000E+07
    23 'Prefactor '    .96523E-06   1.0000          .0000       .10000E+07
    24 'Prefactor '    .58951E-02   1.0000          .0000       .10000E+07
    25 'Prefactor '    .14627E-03   1.0000          .0000       .10000E+07
    26 'Prefactor '    23.039       1.0000          .0000       .10000E+07
    27 'Normalizat'    1.0022       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .94526       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=   9326.595     FROM MIGRAD    STATUS=CONVERGED    257 CALLS     1628 TOTAL
                     EDM=   .10E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.110        9.2039        .21929E-06    .20200E-04
   2  Prefactor     5.6161        9.6216        .26257E-06    .26728E-04
   3  Prefactor     6.0489        7.5533       -.39336E-07   -.10579E-03
   4  Prefactor      .0000        23.903       -.10031E-06** at limit **
   5  norm           .0000        7.4000       -.26213E-06** at limit **
   6  Prefactor     52.501        141.87       -.33213E-06   -.18097E-03
   7  Prefactor      .0000        2.1809       -.88123E-07** at limit **
   8  norm          5.1202        .96842        .11677E-07   -.40865E-03
   9  norm           .0000        1.6258       -.72762E-07** at limit **
  10  Prefactor      .0000        44.661       -.91292E-07** at limit **
  11  Prefactor      .0000        13.415        .50320E-07** at limit **
  12  Prefactor      .0000        8.5547        .11698E-06** at limit **
  13  Prefactor      .0000        3.1716        .48439E-08** at limit **
  14  Prefactor     15.844        57.598       -.10017E-05   -.21423E-02
  15  Prefactor     .23870E-08    74.164        .27405E-06** at limit **
  16  norm           .0000        2.9909        .22785E-07** at limit **
  17  norm          3.2288        2.2497        .16484E-07   -.63663E-04
  18  Prefactor      .0000        29.873       -.16048E-06** at limit **
  19  Prefactor      .0000        32.340        .33743E-06** at limit **
  20  Prefactor     4.3640        9.1451        .17600E-06    .10472E-03
  21  Prefactor      .0000        64.886        .33760E-06** at limit **
  22  Prefactor     27.270        18.116        .21876E-06    .48863E-04
  23  Prefactor      .0000        5.4799        .92049E-07** at limit **
  24  Prefactor     .18319E-08    83.416       -.14580E-05** at limit **
  25  Prefactor      .0000        11.490        .12930E-07** at limit **
  26  Prefactor     22.785        7.9976       -.14394E-06    .18438E-01
  27  Normalizat    1.0030        .16147       -.37512E-05   -.16253E-04
  28  Prefactor     .94568        .13119        .10898E-05   -.14434E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.1103
  Prefactor  = 5.61613
  Prefactor  = 6.04893
  Prefactor  = 0
  norm       = 0
  Prefactor  = 52.5012
  Prefactor  = 0
  norm       = 5.12023
  norm       = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 15.8444
  Prefactor  = 2.38698e-09
  norm       = 0
  norm       = 3.2288
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 4.36405
  Prefactor  = 0
  Prefactor  = 27.2699
  Prefactor  = 0
  Prefactor  = 1.83187e-09
  Prefactor  = 0
  Prefactor  = 22.7853
  Normalizat = 1.00303
  Prefactor  = 0.945677
 **********
 **   18 **HESSE 
 **********

 FCN=   9326.595     FROM HESSE     STATUS=OK           577 CALLS     2205 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.110        9.1701        .25690E-03   -1.5630    
   2  Prefactor     5.6161        9.6454        .42663E-03   -1.5661    
   3  Prefactor     6.0489        7.6601        .40776E-03   -1.5659    
   4  Prefactor      .0000        23.946        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        7.2398        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     52.501        141.16        .15027E-03   -1.5563    
   7  Prefactor      .0000        2.1812        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.1202        .97063        .44389E-03   -1.5663    
   9  norm           .0000        1.6135        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        2.8862        .94546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        13.402        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        8.3740        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        3.1756        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.844        57.490        .22959E-03   -1.5628    
  15  Prefactor     .23870E-08    74.065        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        2.9601        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.2288        2.2521        .56395E-03   -1.5672    
  18  Prefactor      .0000        29.745        .16991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        32.296        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.3640        9.1143        .47495E-03   -1.5666    
  21  Prefactor      .0000        63.806        .13214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     27.270        18.098        .19170E-03   -1.5604    
  23  Prefactor      .0000        5.4763        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .18319E-08    83.410        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor      .0000        11.504        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     22.785        49.971        .20839E-03   -1.5612    
  27  Normalizat    1.0030        .14294        .46194E-01   -.92929    
  28  Prefactor     .94568        .11540        .45579E-01   -.94563    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.3218e-08
Minuit parameter uncertainties:
  1  9.17015
  2  9.64538
  3  7.66016
  4  1.19432e-05
  5  6.66841e-07
  6  141.166
  7  1.50473e-08
  8  0.970629
  9  3.80028e-08
  10  8.40125e-07
  11  1.30946e-06
  12  4.81765e-06
  13  1.51682e-06
  14  57.4921
  15  0.000844453
  16  5.31677e-07
  17  2.25206
  18  1.74153e-06
  19  1.89019e-05
  20  9.11435
  21  3.89479e-05
  22  18.0982
  23  1.29185e-06
  24  0.00078605
  25  3.15482e-08
  26  49.9716
  27  0.142993
  28  0.115428
Done.

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

Extracting fit parameters...

4FGL J1209.4+7608
   Spectrum: PowerLaw
397    Prefactor:  1.584e+01  5.749e+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:  9.457e-01  1.154e-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.430e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.08
Ra Dec: 182.363 76.137
Photon Flux Upper Limit: 6.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/681398/likelihoodResults_699148801_699408001_4FGL_J1209.4+7608_daily_bin1774.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) = 9325.36728761
delta logL = 1.22792316428

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9325.34501027
delta logL = 1.25020050404

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5611       1.0000          .0000       .10000E+07
     2 'Index     '    3.5163       1.0000          .0000       10.000    
     3 'Normalizat'    .93756       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96883       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   9325.345     FROM MIGRAD    STATUS=FAILED       103 CALLS      315 TOTAL
                     EDM=   .92E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5471        141.64        .78310E-04   -.38733E-03
   2  Index         3.5171        3.4059        .43809E-02    .11949E-02
   3  Normalizat    .93754        .14542        .26900E-03    .43953E-04
   4  Prefactor     .96887        .11624        .21483E-03    .71654E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9325.345     FROM SIMPLEX   STATUS=UNCHANGED     92 CALLS      407 TOTAL
                     EDM=   .69E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5471        141.64        .26833E-04   -.38733E-03
   2  Index         3.5171        3.4059        .95013E-03    .11949E-02
   3  Normalizat    .93754        .14542        .54197E-04    .43953E-04
   4  Prefactor     .96887        .11624        .42325E-04    .71654E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9325.345     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      440 TOTAL
                     EDM=   .46E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5471        16.739        .31324E-05   -.59522E-03
   2  Index         3.5171        1.0342        .87619E-03   -.16997E-04
   3  Normalizat    .93754        .16103        .10760E-04    .43953E-04
   4  Prefactor     .96887        .12717        .85931E-05    .71971E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.54711
  Index      = 3.51712
  Normalizat = 0.93754
  Prefactor  = 0.96887
 **********
 **   18 **HESSE 
 **********

 FCN=   9325.345     FROM HESSE     STATUS=OK            23 CALLS      463 TOTAL
                     EDM=   .47E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5471        14.251        .12530E-06   -1.5657    
   2  Index         3.5171        .88201        .35048E-04   -.30110    
   3  Normalizat    .93754        .16084        .21520E-05   -.95153    
   4  Prefactor     .96887        .12694        .17186E-05   -.93774    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.69465e-12
Minuit parameter uncertainties:
  1  14.2506
  2  0.887101
  3  0.160926
  4  0.126975
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/681398': 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) = 9325.34500973
delta logL = 1.25020104495

Extracting fit parameters...

4FGL J1209.4+7608
   Spectrum: PowerLaw
397    Prefactor:  6.547e+00  1.425e+01  0.000e+00  1.000e+06 ( 1.000e-14)
398        Index:  3.517e+00  8.871e-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:  9.689e-01  1.270e-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:  9.375e-01  1.609e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.71
Ra Dec: 182.363 76.137
Photon Index (Free Index): 3.52 +/- 0.89
Photon Flux (Free Index): 6.88e-08 +/- 4.91e-08
Energy Flux (Free Index): 1.14e-05 +/- 8.00e-06

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/681398/cmap_HighResolution_699148801_699408001_4FGL_J1209.4+7608_daily_bin1774.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.26e-03', comment='SUCCESS', energy_flux2='1.14e-05', dlogl='1.25e+00', photon_flux2='6.88e-08', job_status='DONE', time_completed='2023-03-02 00:55:45.438084', photon_index_error2='0.89', photon_index2='3.52', ts='0.08', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='6.92e-08', energy_flux_error2='8.00e-06', EG='1.00', time_epoch_completed='1677747345.44', return_code='0', job_id='681398', GAL2='0.97', EG2='0.94', return_code2='0', photon_flux_error2='4.91e-08', ts2='2.71', photon_index='2.17' WHERE bin_id='1774' AND source_name='4FGL J1209.4+7608' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Mar  2 00:55:45 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0157>
Subject: Job 681398: <4FGL_J1209.4+7608_daily_bin1774> in cluster <slac> Done

Job <4FGL_J1209.4+7608_daily_bin1774> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Mar  2 00:40:19 2023
Job was executed on host(s) <bullet0157>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar  2 00:40:20 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Mar  2 00:40:20 2023
Terminated at Thu Mar  2 00:55:45 2023
Results reported at Thu Mar  2 00:55:45 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1209.4+7608_daily_bin1774 182.363 76.137 699148801 699408001 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 :                                   914.40 sec.
    Max Memory :                                 1108 MB
    Average Memory :                             354.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   3408 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   925 sec.
    Turnaround time :                            926 sec.

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

