/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 31 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 = 7496
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1208.4+6121_daily_bin5
RA = 182.114, Dec = 61.3559
tmin = 240624001, tmax = 240883201
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='336451', job_status='RUN', time_executed='2021-09-05 00:36:08.151469', time_epoch_executed='1630827368.15' WHERE source_name='4FGL J1208.4+6121' and cadence='daily' and bin_id='5'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/336451

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/336451/ft1_4FGL_J1208.4+6121_daily_bin5.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/336451/ft2_4FGL_J1208.4+6121_daily_bin5.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/336451/ft1_4FGL_J1208.4+6121_daily_bin5.fits outfile=/scratch/kocevski/336451/ft1_filteredMKT_4FGL_J1208.4+6121_daily_bin5.fits ra=182.114 dec=61.3559 rad=12.0 tmin=240624001.0 tmax=240883201.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 1.38
user 1.19
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/336451/ft2_4FGL_J1208.4+6121_daily_bin5.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/336451/ft1_filteredMKT_4FGL_J1208.4+6121_daily_bin5.fits evtable="EVENTS" outfile="/scratch/kocevski/336451/ft1_filtered_4FGL_J1208.4+6121_daily_bin5.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/336451/ft1_filtered_4FGL_J1208.4+6121_daily_bin5.fits" evtable="EVENTS" scfile=/scratch/kocevski/336451/ft2_4FGL_J1208.4+6121_daily_bin5.fits sctable="SC_DATA" outfile=/scratch/kocevski/336451/ltcube_240624001_240883201_4FGL_J1208.4+6121_daily_bin5.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/336451/ft2_4FGL_J1208.4+6121_daily_bin5.fits
.....................!
real 12.86
user 12.47
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/336451/ft1_filtered_4FGL_J1208.4+6121_daily_bin5.fits evtable="EVENTS" scfile=/scratch/kocevski/336451/ft2_4FGL_J1208.4+6121_daily_bin5.fits sctable="SC_DATA" expcube=/scratch/kocevski/336451/ltcube_240624001_240883201_4FGL_J1208.4+6121_daily_bin5.fits outfile=/scratch/kocevski/336451/expmap_240624001_240883201_4FGL_J1208.4+6121_daily_bin5.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/336451/ltcube_240624001_240883201_4FGL_J1208.4+6121_daily_bin5.fits
.....................!
real 191.53
user 186.12
sys 4.96

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/336451/ft1_filtered_4FGL_J1208.4+6121_daily_bin5.fits scfile=/scratch/kocevski/336451/ft2_4FGL_J1208.4+6121_daily_bin5.fits outfile=/scratch/kocevski/336451/cmap_240624001_240883201_4FGL_J1208.4+6121_daily_bin5.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.63
user 0.36
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.4590       1.0000         .10000E-03   10000.    
     3 'Prefactor '    129.14       1.0000         .10000E-03   10000.    
     4 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .35997E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    4.5347       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.4697       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.5480       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.8381       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .75643E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    10.375       1.0000         .10000E-03   10000.    
    14 'norm      '    .14243E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.924       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    131.49       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    12.696       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.3664       1.0000         .10000E-03   10000.    
    23 'norm      '    .38540       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    26.722       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    70.629       1.0000         .10000E-03   10000.    
    28 'Prefactor '    11.159       1.0000         .10000E-03   10000.    
    29 'Prefactor '    6.7245       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .98441       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .77127       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=   4749.217     FROM MIGRAD    STATUS=CONVERGED    859 CALLS     4435 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.409       -.10548E-06** at limit **
   2  norm          4.4600        3.0716        .14478E-07   -.21474E-04
   3  Prefactor     129.14        145.54        .33975E-06    .12578E-05
   4  norm          .10000E-03    .96985        .21999E-07** at limit **
   5  Prefactor     .10057E-03    1975.1       -.18448E-04** at limit **
   6  norm          4.5356        3.1429       -.73693E-06   -.78471E-05
   7  Prefactor     3.4703        4.0486        .10367E-06   -.50150E-04
   8  Prefactor     .10000E-03    13.333        .30609E-07** at limit **
   9  Prefactor     5.5511        8.0549        .49084E-05    .51198E-04
  10  Prefactor     8.8444        26.615       -.29238E-05   -.25055E-04
  11  Prefactor     .13085        17.552        .20379E-05   -.22539E-03
  12  Prefactor     .10000E-03    2.0867        .53669E-07** at limit **
  13  norm          10.375        10.420       -.83201E-07    .33865E-04
  14  norm          .10000E-03    5.1191       -.10959E-05** at limit **
  15  Prefactor     .10000E-03    9.6263        .11101E-05** at limit **
  16  Prefactor     13.920        19.625        .37750E-06    .17415E-03
  17  norm          .10000E-03    1.3817        .72824E-07** at limit **
  18  Prefactor     .10000E-03    10.212       -.68099E-08** at limit **
  19  Prefactor     131.47        90.780       -.24677E-06    .16235E-05
  20  norm          .10000E-03    2.0434        .62060E-07** at limit **
  21  norm          12.697        9.4612        .15306E-06   -.11290E-04
  22  Prefactor     3.3667        4.4852        .10328E-06    .46145E-04
  23  norm          .38595        1.3813        .60173E-06   -.10595E-04
  24  norm          .10000E-03    .57029        .28165E-07** at limit **
  25  Prefactor     26.722        27.102        .16797E-06    .14782E-04
  26  Prefactor     .10000E-03    4.6172        .68809E-07** at limit **
  27  Prefactor     70.645        69.697        .62476E-06    .20286E-05
  28  Prefactor     11.202        39.698       -.42377E-06   -.67551E-04
  29  Prefactor     6.7243        4.5137        .11218E-06   -.11768E-03
  30  Prefactor     .10000E-03    6.6580       -.21029E-06** at limit **
  31  Normalizat    .98435        .17688       -.18495E-05    .11678E-04
  32  Prefactor     .77123        .20460       -.14118E-06   -.10299E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.46002
  Prefactor  = 129.143
  norm       = 0.0001
  Prefactor  = 0.000100572
  norm       = 4.53562
  Prefactor  = 3.47032
  Prefactor  = 0.0001
  Prefactor  = 5.55109
  Prefactor  = 8.84439
  Prefactor  = 0.130845
  Prefactor  = 0.0001
  norm       = 10.3745
  norm       = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 13.9196
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 131.472
  norm       = 0.0001
  norm       = 12.6968
  Prefactor  = 3.36673
  norm       = 0.385952
  norm       = 0.0001
  Prefactor  = 26.7223
  Prefactor  = 0.0001
  Prefactor  = 70.6453
  Prefactor  = 11.2017
  Prefactor  = 6.72432
  Prefactor  = 0.0001
  Normalizat = 0.984349
  Prefactor  = 0.771225
 **********
 **   18 **HESSE 
 **********

 FCN=   4749.217     FROM HESSE     STATUS=OK           667 CALLS     5102 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.4600        3.0699        .97381E-04   -1.5286    
   3  Prefactor     129.14        145.53        .17714E-03   -1.3430    
   4  norm          .10000E-03    .97619        .66166E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10057E-03    1988.4        .19622E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.5356        3.1365        .98065E-04   -1.5282    
   7  Prefactor     3.4703        4.0380        .14502E-03   -1.5335    
   8  Prefactor     .10000E-03    13.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.5511        8.1087        .85285E-03   -1.5237    
  10  Prefactor     8.8444        26.503        .13483E-03   -1.5113    
  11  Prefactor     .13085        16.741        .94962E-01   -1.5636    
  12  Prefactor     .10000E-03    2.0988        .97194E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          10.375        10.411        .12439E-03   -1.5064    
  14  norm          .10000E-03    10.187        .28850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.7481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     13.920        19.506        .10734E-03   -1.4962    
  17  norm          .10000E-03    1.4384        .15800E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     131.47        90.448        .35114E-04   -1.3410    
  20  norm          .10000E-03    2.0692        .96198E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          12.697        9.4646        .11242E-03   -1.4995    
  22  Prefactor     3.3667        4.5199        .15939E-03   -1.5341    
  23  norm          .38595        1.4826        .14403E-02   -1.5584    
  24  norm          .10000E-03    .57222        .50823E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     26.722        27.103        .77497E-04   -1.4674    
  26  Prefactor     .10000E-03    4.6352        .14458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     70.645        69.690        .47766E-04   -1.4025    
  28  Prefactor     11.202        39.735        .11993E-03   -1.5038    
  29  Prefactor     6.7243        4.5098        .11388E-03   -1.5189    
  30  Prefactor     .10000E-03    6.6950        .17342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .98435        .21036        .21269E-03   -.93557    
  32  Prefactor     .77123        .24440        .28604E-03   -1.0080    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17566e-08
Minuit parameter uncertainties:
  1  3.06512e-05
  2  3.06998
  3  145.934
  4  1.2255e-06
  5  0.0698915
  6  3.13661
  7  4.03835
  8  5.61645e-05
  9  8.11031
  10  26.5384
  11  2.95981
  12  2.4215e-06
  13  10.4133
  14  0.000444144
  15  0.000104979
  16  19.515
  17  3.51832e-06
  18  3.12736e-05
  19  90.5433
  20  4.16798e-06
  21  9.46571
  22  4.52037
  23  1.48271
  24  7.52055e-07
  25  27.1156
  26  4.75998e-06
  27  69.7711
  28  39.8291
  29  4.51007
  30  2.68169e-06
  31  0.210539
  32  0.244745
Done.

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

Extracting fit parameters...

4FGL J1208.4+6121
   Spectrum: PowerLaw
372    Prefactor:  1.392e+01  1.952e+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.712e-01  2.447e-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:  9.843e-01  2.105e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.03
Ra Dec: 182.114 61.356
Photon Index (Fixed Index): 2.07 +/- 0.00
Photon Flux (Fixed Index): 1.47e-08 +/- 2.06e-08
Energy Flux (Fixed Index): 8.58e-06 +/- 1.20e-05

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

Saving results to:
/scratch/kocevski/336451/likelihoodResults_240624001_240883201_4FGL_J1208.4+6121_daily_bin5.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) = 4749.11191671
delta logL = 0.105204823507

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4749.10619744
delta logL = 0.110924089727

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   4749.106     FROM MIGRAD    STATUS=FAILED       106 CALLS      329 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5845        36.970        .78082E-03   -.47349E-04
   2  Index         2.6158        2.0958        .59273E-02    .44108E-03
   3  Normalizat    .96728        .21274        .21428E-03   -.42497E-04
   4  Prefactor     .78296        .24840        .28400E-03   -.43072E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4749.106     FROM SIMPLEX   STATUS=UNCHANGED     79 CALLS      408 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5845        36.970        .15647E-03   -1.5195    
   2  Index         2.6158        2.0958        .81148E-03   -.49705    
   3  Normalizat    .96728        .21274        .22678E-03   -.94135    
   4  Prefactor     .78296        .24840        .33131E-03   -1.0036    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4749.106     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      438 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5845        16.929        .31233E-04   -.29120E-05
   2  Index         2.6158        1.1696        .11855E-02    .17795E-04
   3  Normalizat    .96728        .20583        .85712E-05   -.26528E-06
   4  Prefactor     .78296        .24428        .11360E-04   -.20015E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.58452
  Index      = 2.61585
  Normalizat = 0.967278
  Prefactor  = 0.782965
 **********
 **   18 **HESSE 
 **********

 FCN=   4749.106     FROM HESSE     STATUS=OK            25 CALLS      463 TOTAL
                     EDM=   .85E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5845        16.146        .12493E-05   -1.5195    
   2  Index         2.6158        1.1159        .23709E-03   -.49705    
   3  Normalizat    .96728        .20505        .17142E-05   -.94135    
   4  Prefactor     .78296        .24363        .22720E-05   -1.0036    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.54377e-15
Minuit parameter uncertainties:
  1  16.1564
  2  1.1283
  3  0.20522
  4  0.24397
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/336451': 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) = 4749.10619129
delta logL = 0.110930243917

Extracting fit parameters...

4FGL J1208.4+6121
   Spectrum: PowerLaw
372    Prefactor:  6.585e+00  1.616e+01  1.000e-04  1.000e+04 ( 1.000e-14)
373        Index:  2.616e+00  1.128e+00  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.830e-01  2.440e-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:  9.673e-01  2.052e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.25
Ra Dec: 182.114 61.356
Photon Index (Free Index): 2.62 +/- 1.13
Photon Flux (Free Index): 2.92e-08 +/- 4.51e-08
Energy Flux (Free Index): 7.56e-06 +/- 8.99e-06

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/336451/cmap_HighResolution_240624001_240883201_4FGL_J1208.4+6121_daily_bin5.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.81e-03', comment='SUCCESS', photon_flux='1.47e-08', energy_flux2='7.56e-06', photon_flux_error='2.06e-08', dlogl='1.11e-01', energy_flux='8.58e-06', photon_flux2='2.92e-08', job_status='DONE', time_completed='2021-09-05 00:51:06.392818', photon_index_error2='1.13', photon_index2='2.62', ts='1.03', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='7.70e-08', energy_flux_error2='8.99e-06', EG='0.98', time_epoch_completed='1630828266.39', return_code='0', job_id='336451', GAL2='0.78', EG2='0.97', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='4.51e-08', ts2='1.25', photon_index='2.07' WHERE bin_id='5' AND source_name='4FGL J1208.4+6121' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 00:51:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 336451: <4FGL_J1208.4+6121_daily_bin5> in cluster <slac> Done

Job <4FGL_J1208.4+6121_daily_bin5> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 00:35:26 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 00:35:28 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:35:28 2021
Terminated at Sun Sep  5 00:51:07 2021
Results reported at Sun Sep  5 00:51:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1208.4+6121_daily_bin5 182.114 61.3559 240624001 240883201 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 :                                   891.12 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             321.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   938 sec.
    Turnaround time :                            941 sec.

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

