/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 3 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 = 7429
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1208.4+6121_daily_bin709
RA = 182.114, Dec = 61.3559
tmin = 423100801, tmax = 423360001
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='341288', job_status='RUN', time_executed='2021-09-05 00:45:57.447193', time_epoch_executed='1630827957.45' WHERE source_name='4FGL J1208.4+6121' and cadence='daily' and bin_id='709'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/341288

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/341288/ft1_4FGL_J1208.4+6121_daily_bin709.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/341288/ft2_4FGL_J1208.4+6121_daily_bin709.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/341288/ft1_4FGL_J1208.4+6121_daily_bin709.fits outfile=/scratch/kocevski/341288/ft1_filteredMKT_4FGL_J1208.4+6121_daily_bin709.fits ra=182.114 dec=61.3559 rad=12.0 tmin=423100801.0 tmax=423360001.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 4.96
user 4.69
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/341288/ft2_4FGL_J1208.4+6121_daily_bin709.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/341288/ft1_filteredMKT_4FGL_J1208.4+6121_daily_bin709.fits evtable="EVENTS" outfile="/scratch/kocevski/341288/ft1_filtered_4FGL_J1208.4+6121_daily_bin709.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.51
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/341288/ft1_filtered_4FGL_J1208.4+6121_daily_bin709.fits" evtable="EVENTS" scfile=/scratch/kocevski/341288/ft2_4FGL_J1208.4+6121_daily_bin709.fits sctable="SC_DATA" outfile=/scratch/kocevski/341288/ltcube_423100801_423360001_4FGL_J1208.4+6121_daily_bin709.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/341288/ft2_4FGL_J1208.4+6121_daily_bin709.fits
.....................!
real 11.92
user 11.50
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/341288/ft1_filtered_4FGL_J1208.4+6121_daily_bin709.fits evtable="EVENTS" scfile=/scratch/kocevski/341288/ft2_4FGL_J1208.4+6121_daily_bin709.fits sctable="SC_DATA" expcube=/scratch/kocevski/341288/ltcube_423100801_423360001_4FGL_J1208.4+6121_daily_bin709.fits outfile=/scratch/kocevski/341288/expmap_423100801_423360001_4FGL_J1208.4+6121_daily_bin709.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/341288/ltcube_423100801_423360001_4FGL_J1208.4+6121_daily_bin709.fits
.....................!
real 193.78
user 186.81
sys 5.67

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/341288/ft1_filtered_4FGL_J1208.4+6121_daily_bin709.fits scfile=/scratch/kocevski/341288/ft2_4FGL_J1208.4+6121_daily_bin709.fits outfile=/scratch/kocevski/341288/cmap_423100801_423360001_4FGL_J1208.4+6121_daily_bin709.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/341288/ft1_filtered_4FGL_J1208.4+6121_daily_bin709.fits scfile=/scratch/kocevski/341288/ft2_4FGL_J1208.4+6121_daily_bin709.fits outfile=/scratch/kocevski/341288/cmap_HighResolution_423100801_423360001_4FGL_J1208.4+6121_daily_bin709.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.54
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/341288/ft1_filtered_4FGL_J1208.4+6121_daily_bin709.fits', '/scratch/kocevski/341288/ft2_4FGL_J1208.4+6121_daily_bin709.fits', expMap='/scratch/kocevski/341288/expmap_423100801_423360001_4FGL_J1208.4+6121_daily_bin709.fits', expCube='/scratch/kocevski/341288/ltcube_423100801_423360001_4FGL_J1208.4+6121_daily_bin709.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/341288/Model_4FGL_J1208.4+6121_daily_bin709.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/341288/ft1_filtered_4FGL_J1208.4+6121_daily_bin709.fits
Spacecraft file(s): /scratch/kocevski/341288/ft2_4FGL_J1208.4+6121_daily_bin709.fits
Exposure map: /scratch/kocevski/341288/expmap_423100801_423360001_4FGL_J1208.4+6121_daily_bin709.fits
Exposure cube: /scratch/kocevski/341288/ltcube_423100801_423360001_4FGL_J1208.4+6121_daily_bin709.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/341288/Model_4FGL_J1208.4+6121_daily_bin709.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) = 5268.4400198

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13356E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    5.2112       1.0000         .10000E-03   10000.    
     3 'Prefactor '    114.68       1.0000         .10000E-03   10000.    
     4 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10280E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.9693       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11541E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .77394E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.283       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.677       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.3797       1.0000         .10000E-03   10000.    
    13 'norm      '    10.054       1.0000         .10000E-03   10000.    
    14 'norm      '    .10185E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    44.712       1.0000         .10000E-03   10000.    
    17 'norm      '    .38782       1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.480       1.0000         .10000E-03   10000.    
    19 'Prefactor '    49.795       1.0000         .10000E-03   10000.    
    20 'norm      '    15.453       1.0000         .10000E-03   10000.    
    21 'norm      '    8.3792       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    5.9625       1.0000         .10000E-03   10000.    
    24 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11064E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    9.9649       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0030       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .79740       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5268.412     FROM MIGRAD    STATUS=CONVERGED    856 CALLS     4397 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    100.53       -.21967E-04** at limit **
   2  norm          5.2163        2.6279        .48601E-06    .19293E-02
   3  Prefactor     114.72        122.56       -.58356E-06    .16271E-04
   4  norm          .10000E-03    1.2914       -.21886E-07** at limit **
   5  Prefactor     .10000E-03    42.539        .58546E-08** at limit **
   6  norm          3.9681        2.3998        .34369E-07    .61166E-03
   7  Prefactor     .10000E-03    6.4980       -.76793E-07** at limit **
   8  Prefactor     .10002E-03    34.605       -.75816E-05** at limit **
   9  Prefactor     12.279        8.3864        .13392E-06    .32264E-03
  10  Prefactor     .10000E-03    19.430       -.53480E-07** at limit **
  11  Prefactor     17.676        21.905       -.12719E-07    .14975E-04
  12  Prefactor     2.3793        2.5163       -.21298E-07   -.11399E-03
  13  norm          10.051        12.768        .30422E-08    .52682E-04
  14  norm          .10000E-03    3.1646        .35500E-07** at limit **
  15  Prefactor     .10000E-03    2.8679        .67234E-07** at limit **
  16  Prefactor     44.707        28.417        .14978E-06    .15978E-04
  17  norm          .39059        1.7096        .96411E-06    .93365E-03
  18  Prefactor     24.478        26.235        .16540E-06    .64010E-04
  19  Prefactor     49.847        66.254       -.83668E-06    .42382E-04
  20  norm          15.454        6.3943        .23115E-06    .18185E-02
  21  norm          8.3796        7.9312        .60227E-08   -.32728E-05
  22  Prefactor     .10000E-03    2.4694       -.11804E-07** at limit **
  23  norm          5.9621        2.8933        .19563E-07    .14841E-03
  24  norm          .10000E-03    2.2165       -.14523E-06** at limit **
  25  Prefactor     .10000E-03    64.563       -.19893E-06** at limit **
  26  Prefactor     .10000E-03    5.6375       -.67137E-07** at limit **
  27  Prefactor     .10000E-03    14.825       -.17123E-06** at limit **
  28  Prefactor     .10000E-03    12.978        .10318E-06** at limit **
  29  Prefactor     9.9681        5.4463        .90456E-07    .54542E-03
  30  Prefactor     .10000E-03    7.2713        .28018E-07** at limit **
  31  Normalizat    1.0031        .17844       -.74829E-06    .22573E-03
  32  Prefactor     .79718        .21104        .11240E-05    .24763E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100047
  norm       = 5.2163
  Prefactor  = 114.722
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.96808
  Prefactor  = 0.0001
  Prefactor  = 0.000100023
  Prefactor  = 12.2787
  Prefactor  = 0.0001
  Prefactor  = 17.6758
  Prefactor  = 2.37928
  norm       = 10.0507
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.7068
  norm       = 0.390587
  Prefactor  = 24.4782
  Prefactor  = 49.8473
  norm       = 15.4543
  norm       = 8.37955
  Prefactor  = 0.0001
  norm       = 5.96211
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.96813
  Prefactor  = 0.0001
  Normalizat = 1.00314
  Prefactor  = 0.797179
 **********
 **   18 **HESSE 
 **********

 FCN=   5268.412     FROM HESSE     STATUS=OK           657 CALLS     5054 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10005E-03    118.65        .64491E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.2163        2.6624        .81415E-04   -1.5251    
   3  Prefactor     114.72        122.50        .18785E-03   -1.3562    
   4  norm          .10000E-03    1.3365        .16091E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    42.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.9681        2.3365        .82483E-04   -1.5310    
   7  Prefactor     .10000E-03    6.7847        .36084E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10002E-03    108.82        .63107E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.279        8.3035        .11430E-03   -1.5007    
  10  Prefactor     .10000E-03    19.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     17.676        21.902        .95262E-04   -1.4867    
  12  Prefactor     2.3793        2.5177        .11522E-03   -1.5399    
  13  norm          10.051        12.776        .12637E-03   -1.5074    
  14  norm          .10000E-03    3.2111        .12592E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.8724        .12005E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     44.707        28.403        .59958E-04   -1.4370    
  17  norm          .39059        2.7339        .17275E-02   -1.5583    
  18  Prefactor     24.478        26.281        .80962E-04   -1.4718    
  19  Prefactor     49.847        66.215        .56829E-04   -1.4295    
  20  norm          15.454        6.4919        .50944E-03   -1.4922    
  21  norm          8.3796        7.9255        .13849E-03   -1.5129    
  22  Prefactor     .10000E-03    2.4770        .11136E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          5.9621        2.8943        .82990E-04   -1.5220    
  24  norm          .10000E-03    2.3064        .21097E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    64.735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    5.6609        .16828E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    14.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    12.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     9.9681        5.4508        .11987E-03   -1.5076    
  30  Prefactor     .10000E-03    7.2800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.0031        .21062        .21935E-03   -.92925    
  32  Prefactor     .79718        .24924        .30110E-03   -.99832    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.63202e-09
Minuit parameter uncertainties:
  1  0.00470865
  2  2.66247
  3  122.771
  4  3.39544e-06
  5  7.58867e-06
  6  2.33653
  7  7.34923e-06
  8  0.0031516
  9  8.30428
  10  5.0227e-05
  11  21.9116
  12  2.51786
  13  12.7793
  14  2.44557e-05
  15  2.47144e-05
  16  28.4112
  17  2.06659
  18  26.2929
  19  66.3132
  20  6.49217
  21  7.92652
  22  2.09335e-06
  23  2.89439
  24  2.34808e-05
  25  0.000310158
  26  7.06287e-06
  27  1.75274e-05
  28  1.67453e-05
  29  5.45111
  30  1.32128e-05
  31  0.210793
  32  0.24959
Done.

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

Extracting fit parameters...

4FGL J1208.4+6121
   Spectrum: PowerLaw
372    Prefactor:  4.471e+01  2.841e+01  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:  7.972e-01  2.496e-01  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.003e+00  2.108e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.99
Ra Dec: 182.114 61.356
Photon Index (Fixed Index): 2.07 +/- 0.00
Photon Flux (Fixed Index): 4.73e-08 +/- 3.01e-08
Energy Flux (Fixed Index): 2.76e-05 +/- 1.75e-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) = 5268.41191756
delta logL = 7.79889342084e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5268.4119063
delta logL = 1.9060460545e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    44.896       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0702       1.0000          .0000       10.000    
     3 'Normalizat'    1.0032       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79721       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5268.412     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      244 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     44.900        43.840        .59836E-04   -.17598E-03
   2  Index         2.0703        .45663        .40265E-02   -.14740E-03
   3  Normalizat    1.0033        .19768        .21934E-03    .25845E-03
   4  Prefactor     .79709        .24431        .30112E-03    .24888E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 44.9002
  Index      = 2.07026
  Normalizat = 1.00326
  Prefactor  = 0.797088
 **********
 **   18 **HESSE 
 **********

 FCN=   5268.412     FROM HESSE     STATUS=OK            25 CALLS      269 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     44.900        41.127        .11967E-04   -1.4367    
   2  Index         2.0703        .42831        .16106E-03   -.62605    
   3  Normalizat    1.0033        .19770        .43869E-04   -.92921    
   4  Prefactor     .79709        .24442        .12045E-04   -.99836    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.87888e-10
Minuit parameter uncertainties:
  1  41.1535
  2  0.429116
  3  0.197845
  4  0.244756
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/341288': 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) = 5268.41190604
delta logL = 1.93167115867e-05

Extracting fit parameters...

4FGL J1208.4+6121
   Spectrum: PowerLaw
372    Prefactor:  4.490e+01  4.115e+01  1.000e-04  1.000e+04 ( 1.000e-14)
373        Index:  2.070e+00  4.291e-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:  7.971e-01  2.448e-01  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.003e+00  1.978e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.00
Ra Dec: 182.114 61.356
Photon Index (Free Index): 2.07 +/- 0.43
Photon Flux (Free Index): 4.72e-08 +/- 3.29e-08
Energy Flux (Free Index): 2.77e-05 +/- 2.34e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/341288/cmap_HighResolution_423100801_423360001_4FGL_J1208.4+6121_daily_bin709.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.73e-08', energy_flux2='2.77e-05', photon_flux_error='3.01e-08', dlogl='1.93e-05', energy_flux='2.76e-05', photon_flux2='4.72e-08', job_status='DONE', time_completed='2021-09-05 01:00:13.436958', photon_index_error2='0.43', photon_index2='2.07', ts='5.99', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='2.34e-05', EG='1.00', time_epoch_completed='1630828813.44', return_code='0', job_id='341288', GAL2='0.80', EG2='1.00', return_code2='0', energy_flux_error='1.75e-05', photon_flux_error2='3.29e-08', ts2='6.00', photon_index='2.07' WHERE bin_id='709' AND source_name='4FGL J1208.4+6121' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 01:00:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 341288: <4FGL_J1208.4+6121_daily_bin709> in cluster <slac> Done

Job <4FGL_J1208.4+6121_daily_bin709> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 00:45:41 2021
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 00:45:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 00:45:43 2021
Terminated at Sun Sep  5 01:00:13 2021
Results reported at Sun Sep  5 01:00:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1208.4+6121_daily_bin709 182.114 61.3559 423100801 423360001 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 :                                   849.13 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            872 sec.

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

