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


Performing analysis on: 4FGL_J1209.4+7608_monthly_bin167
RA = 182.363, Dec = 76.137
tmin = 669859201, tmax = 672451201
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='883499', job_status='RUN', time_executed='2022-04-24 01:40:32.560804', time_epoch_executed='1650789632.56' WHERE source_name='4FGL J1209.4+7608' and cadence='monthly' and bin_id='167'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/883499

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/883499/ft1_4FGL_J1209.4+7608_monthly_bin167.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/883499/ft2_4FGL_J1209.4+7608_monthly_bin167.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/883499/ft1_4FGL_J1209.4+7608_monthly_bin167.fits outfile=/scratch/kocevski/883499/ft1_filteredMKT_4FGL_J1209.4+7608_monthly_bin167.fits ra=182.363 dec=76.137 rad=12.0 tmin=669859201.0 tmax=672451201.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 37.92
user 37.15
sys 0.67

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/883499/ft2_4FGL_J1209.4+7608_monthly_bin167.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/883499/ft1_filteredMKT_4FGL_J1209.4+7608_monthly_bin167.fits evtable="EVENTS" outfile="/scratch/kocevski/883499/ft1_filtered_4FGL_J1209.4+7608_monthly_bin167.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.85
user 0.65
sys 0.19

Number of photons that the gtmktime cut: 7778

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/883499/ft1_filtered_4FGL_J1209.4+7608_monthly_bin167.fits" evtable="EVENTS" scfile=/scratch/kocevski/883499/ft2_4FGL_J1209.4+7608_monthly_bin167.fits sctable="SC_DATA" outfile=/scratch/kocevski/883499/ltcube_669859201_672451201_4FGL_J1209.4+7608_monthly_bin167.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/883499/ft2_4FGL_J1209.4+7608_monthly_bin167.fits
.....................!
real 111.23
user 110.68
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/883499/ft1_filtered_4FGL_J1209.4+7608_monthly_bin167.fits evtable="EVENTS" scfile=/scratch/kocevski/883499/ft2_4FGL_J1209.4+7608_monthly_bin167.fits sctable="SC_DATA" expcube=/scratch/kocevski/883499/ltcube_669859201_672451201_4FGL_J1209.4+7608_monthly_bin167.fits outfile=/scratch/kocevski/883499/expmap_669859201_672451201_4FGL_J1209.4+7608_monthly_bin167.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/883499/ltcube_669859201_672451201_4FGL_J1209.4+7608_monthly_bin167.fits
.....................!
real 191.99
user 185.91
sys 5.73

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/883499/ft1_filtered_4FGL_J1209.4+7608_monthly_bin167.fits scfile=/scratch/kocevski/883499/ft2_4FGL_J1209.4+7608_monthly_bin167.fits outfile=/scratch/kocevski/883499/cmap_669859201_672451201_4FGL_J1209.4+7608_monthly_bin167.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 1.22
user 0.62
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/883499/ft1_filtered_4FGL_J1209.4+7608_monthly_bin167.fits scfile=/scratch/kocevski/883499/ft2_4FGL_J1209.4+7608_monthly_bin167.fits outfile=/scratch/kocevski/883499/cmap_HighResolution_669859201_672451201_4FGL_J1209.4+7608_monthly_bin167.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.79
user 0.60
sys 0.18

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/883499/ft1_filtered_4FGL_J1209.4+7608_monthly_bin167.fits', '/scratch/kocevski/883499/ft2_4FGL_J1209.4+7608_monthly_bin167.fits', expMap='/scratch/kocevski/883499/expmap_669859201_672451201_4FGL_J1209.4+7608_monthly_bin167.fits', expCube='/scratch/kocevski/883499/ltcube_669859201_672451201_4FGL_J1209.4+7608_monthly_bin167.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/883499/Model_4FGL_J1209.4+7608_monthly_bin167.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  1.000e-04  1.000e+04 ( 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/883499/ft1_filtered_4FGL_J1209.4+7608_monthly_bin167.fits
Spacecraft file(s): /scratch/kocevski/883499/ft2_4FGL_J1209.4+7608_monthly_bin167.fits
Exposure map: /scratch/kocevski/883499/expmap_669859201_672451201_4FGL_J1209.4+7608_monthly_bin167.fits
Exposure cube: /scratch/kocevski/883499/ltcube_669859201_672451201_4FGL_J1209.4+7608_monthly_bin167.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/883499/Model_4FGL_J1209.4+7608_monthly_bin167.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) = 82713.8005682

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.800       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.7521       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.8129       1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.973       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .68710       1.0000         .10000E-03   10000.    
     9 'norm      '    1.2354       1.0000         .10000E-03   10000.    
    10 'norm      '    1.5548       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .97482       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.4997       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .27455       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .32038       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.0977       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.9260       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.9469       1.0000         .10000E-03   10000.    
    18 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.6015       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .26046E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.6531       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    11.065       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.9800       1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.5955       1.0000         .10000E-03   10000.    
    27 'Prefactor '    13.106       1.0000         .10000E-03   10000.    
    28 'Prefactor '    22.297       1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.4548       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .97979       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .97919       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.

 FCN=   82713.73     FROM MIGRAD    STATUS=CONVERGED    797 CALLS     4183 TOTAL
                     EDM=   .51E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.800        2.4053         .0000        .98182E-03
   2  Prefactor     1.7527        2.4545         .0000        .11954    
   3  Prefactor     .10000E-03    .76558         .0000    ** at limit **
   4  Prefactor     .10000E-03    5.3327         .0000    ** at limit **
   5  Prefactor     .10000E-03    2.3494         .0000    ** at limit **
   6  norm          4.8127        1.5791         .0000        .32429E-02
   7  Prefactor     22.972        22.495         .0000        .70321E-03
   8  Prefactor     .68762        1.0150         .0000        .17546E-01
   9  norm          1.2353        .22233         .0000        .62551E-02
  10  norm          1.5549        1.0051         .0000        .84954E-02
  11  Prefactor     .97561        1.8754         .0000        .66992E-02
  12  Prefactor     8.4995        2.7206         .0000        .26856E-02
  13  Prefactor     .27461        1.0330         .0000        .52845E-02
  14  Prefactor     .32052        .51174         .0000        .14659E-01
  15  Prefactor     6.0972        2.9276         .0000        .17915E-02
  16  Prefactor     8.9261        7.8070         .0000        .13748E-03
  17  Prefactor     7.9473        6.2172         .0000        .44618E-03
  18  norm          .10000E-03    .24294         .0000    ** at limit **
  19  norm          1.6017        .85591         .0000        .86313E-02
  20  Prefactor     .10001E-03    9.5343         .0000    ** at limit **
  21  Prefactor     .10080E-03    2.0258         .0000    ** at limit **
  22  Prefactor     9.6531        3.7400         .0000        .71936E-03
  23  Prefactor     .10000E-03    3.4463         .0000    ** at limit **
  24  Prefactor     11.065        4.5651         .0000        .50650E-03
  25  Prefactor     1.9803        1.8598         .0000        .15937    
  26  Prefactor     2.5957        2.6471         .0000        .41192E-01
  27  Prefactor     13.106        9.7038         .0000       -.80754E-04
  28  Prefactor     22.296        9.5545         .0000        .16795E-03
  29  Prefactor     2.4488        16.955         .0000        .40598E-02
  30  Normalizat    .97977        .47379E-01     .0000        .50451E-03
  31  Prefactor     .97919        .38347E-01     .0000        .74985E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.8001
  Prefactor  = 1.75269
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 4.81267
  Prefactor  = 22.9724
  Prefactor  = 0.687619
  norm       = 1.23531
  norm       = 1.55485
  Prefactor  = 0.975611
  Prefactor  = 8.49951
  Prefactor  = 0.274612
  Prefactor  = 0.320525
  Prefactor  = 6.09721
  Prefactor  = 8.9261
  Prefactor  = 7.94727
  norm       = 0.0001
  norm       = 1.60171
  Prefactor  = 0.000100015
  Prefactor  = 0.000100799
  Prefactor  = 9.65312
  Prefactor  = 0.0001
  Prefactor  = 11.0653
  Prefactor  = 1.98034
  Prefactor  = 2.5957
  Prefactor  = 13.1063
  Prefactor  = 22.2963
  Prefactor  = 2.4488
  Normalizat = 0.979766
  Prefactor  = 0.979193
 **********
 **   18 **HESSE 
 **********

 FCN=   82713.73     FROM HESSE     STATUS=OK           652 CALLS     4835 TOTAL
                     EDM=   .36E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.800        2.4083        .12191E-03   -1.5051    
   2  Prefactor     1.7527        2.4027        .15836E-02   -1.5443    
   3  Prefactor     .10000E-03    .77117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.3633        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.3515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.8127        1.3354        .15070E-03   -1.5269    
   7  Prefactor     22.972        22.490        .83572E-04   -1.4749    
   8  Prefactor     .68762        .96257        .29883E-03   -1.5542    
   9  norm          1.2353        .21364        .47422E-04   -1.5486    
  10  norm          1.5549        .93487        .14000E-03   -1.5459    
  11  Prefactor     .97561        1.7568        .37891E-02   -1.5510    
  12  Prefactor     8.4995        2.5662        .13750E-03   -1.5125    
  13  Prefactor     .27461        6.1349        .54940E-02   -1.5603    
  14  Prefactor     .32052        .64929        .24880E-02   -1.5595    
  15  Prefactor     6.0972        2.8066        .16259E-03   -1.5214    
  16  Prefactor     8.9261        7.8071        .13416E-03   -1.5110    
  17  Prefactor     7.9473        6.2239        .14223E-03   -1.5144    
  18  norm          .10000E-03    .93473        .27374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.6017        .83918        .17688E-03   -1.5455    
  20  Prefactor     .10001E-03    9.6701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10080E-03    2.1602        .14428       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     9.6531        3.7380        .12898E-03   -1.5086    
  23  Prefactor     .10000E-03    3.4824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     11.065        4.5690        .12044E-03   -1.5043    
  25  Prefactor     1.9803        1.8523        .14728E-02   -1.5427    
  26  Prefactor     2.5957        2.6365        .12663E-02   -1.5386    
  27  Prefactor     13.106        9.7023        .11064E-03   -1.4984    
  28  Prefactor     22.296        9.5485        .84827E-04   -1.4763    
  29  Prefactor     2.4488        16.948        .26106E-03   -1.5395    
  30  Normalizat    .97977        .52948E-01    .25310E-03   -.93711    
  31  Prefactor     .97919        .43394E-01    .21639E-03   -.93426    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.62506e-07
Minuit parameter uncertainties:
  1  2.40829
  2  2.40281
  3  7.30338e-06
  4  0.000233655
  5  1.89646e-05
  6  1.33536
  7  22.4987
  8  0.962591
  9  0.213637
  10  0.934875
  11  1.75692
  12  2.56621
  13  2.59577
  14  0.649304
  15  2.80666
  16  7.80794
  17  6.22439
  18  1.20086e-05
  19  0.839185
  20  0.000756499
  21  0.00262767
  22  3.73812
  23  6.05439e-05
  24  4.56919
  25  1.85237
  26  2.63659
  27  9.70344
  28  9.54919
  29  12.8893
  30  0.0529512
  31  0.0433954
Done.

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

Extracting fit parameters...

4FGL J1209.4+7608
   Spectrum: PowerLaw
397    Prefactor:  8.926e+00  7.808e+00  1.000e-04  1.000e+04 ( 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.792e-01  4.340e-02  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.798e-01  5.295e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.34
Ra Dec: 182.363 76.137
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 4.05e-09 +/- 3.54e-09
Energy Flux (Fixed Index): 1.94e-06 +/- 1.70e-06

TS (Fixed Index): 3.34
Ra Dec: 182.363 76.137
Photon Flux Upper Limit: 1.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 9.80e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/883499/likelihoodResults_669859201_672451201_4FGL_J1209.4+7608_monthly_bin167.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) = 82713.3248591
delta logL = 0.408226942862

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 82713.2956058
delta logL = 0.437480160937

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.233       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6681       1.0000          .0000       10.000    
     3 'Normalizat'    .98125       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97901       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=   82713.30     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      257 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.232        10.002        .11953E-03    .74475E-03
   2  Index         1.6682        .52652        .10355E-01    .59078E-03
   3  Normalizat    .98125        .48753E-01    .25292E-03   -.12694E-02
   4  Prefactor     .97901        .41914E-01    .21641E-03   -.77582E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.2316
  Index      = 1.66818
  Normalizat = 0.981247
  Prefactor  = 0.979014
 **********
 **   18 **HESSE 
 **********

 FCN=   82713.30     FROM HESSE     STATUS=OK            23 CALLS      280 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.232        10.075        .23906E-04   -1.5038    
   2  Index         1.6682        .53052        .41418E-03   -.72932    
   3  Normalizat    .98125        .48783E-01    .10117E-04   -.93661    
   4  Prefactor     .97901        .41942E-01    .86562E-05   -.93432    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.67958e-09
Minuit parameter uncertainties:
  1  10.0765
  2  0.532325
  3  0.0487852
  4  0.0419433
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/883499': 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) = 82713.2956058
delta logL = 0.437480193985

Extracting fit parameters...

4FGL J1209.4+7608
   Spectrum: PowerLaw
397    Prefactor:  1.123e+01  1.008e+01  1.000e-04  1.000e+04 ( 1.000e-14)
398        Index:  1.668e+00  5.323e-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.790e-01  4.194e-02  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.812e-01  4.879e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.21
Ra Dec: 182.363 76.137
Photon Index (Free Index): 1.67 +/- 0.53
Photon Flux (Free Index): 2.08e-09 +/- 2.72e-09
Energy Flux (Free Index): 3.76e-06 +/- 4.37e-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/883499/cmap_HighResolution_669859201_672451201_4FGL_J1209.4+7608_monthly_bin167.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.80e-04', comment='SUCCESS', photon_flux='4.05e-09', energy_flux2='3.76e-06', photon_flux_error='3.54e-09', dlogl='4.37e-01', energy_flux='1.94e-06', photon_flux2='2.08e-09', job_status='DONE', time_completed='2022-04-24 04:40:35.076994', photon_index_error2='0.53', photon_index2='1.67', ts='3.34', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.29e-08', energy_flux_error2='4.37e-06', EG='0.98', time_epoch_completed='1650800435.08', return_code='0', job_id='883499', GAL2='0.98', EG2='0.98', return_code2='0', energy_flux_error='1.70e-06', photon_flux_error2='2.72e-09', ts2='4.21', photon_index='2.17' WHERE bin_id='167' AND source_name='4FGL J1209.4+7608' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sun Apr 24 04:40:35 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 883499: <4FGL_J1209.4+7608_monthly_bin167> in cluster <slac> Done

Job <4FGL_J1209.4+7608_monthly_bin167> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Apr 24 01:10:37 2022
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Apr 24 01:38:24 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Apr 24 01:38:24 2022
Terminated at Sun Apr 24 04:40:36 2022
Results reported at Sun Apr 24 04:40:36 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1209.4+7608_monthly_bin167 182.363 76.137 669859201 672451201 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 :                                   10766.00 sec.
    Max Memory :                                 630 MB
    Average Memory :                             438.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   10931 sec.
    Turnaround time :                            12599 sec.

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

