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


Performing analysis on: 4FGL_J1208.4+6121_daily_bin93
RA = 182.114, Dec = 61.3559
tmin = 263433601, tmax = 263692801
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='336591', job_status='RUN', time_executed='2021-09-05 00:35:56.704863', time_epoch_executed='1630827356.7' WHERE source_name='4FGL J1208.4+6121' and cadence='daily' and bin_id='93'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/336591

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/336591/ft1_4FGL_J1208.4+6121_daily_bin93.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/336591/ft2_4FGL_J1208.4+6121_daily_bin93.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/336591/ft1_4FGL_J1208.4+6121_daily_bin93.fits outfile=/scratch/kocevski/336591/ft1_filteredMKT_4FGL_J1208.4+6121_daily_bin93.fits ra=182.114 dec=61.3559 rad=12.0 tmin=263433601.0 tmax=263692801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.46
user 3.23
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/336591/ft1_filtered_4FGL_J1208.4+6121_daily_bin93.fits" evtable="EVENTS" scfile=/scratch/kocevski/336591/ft2_4FGL_J1208.4+6121_daily_bin93.fits sctable="SC_DATA" outfile=/scratch/kocevski/336591/ltcube_263433601_263692801_4FGL_J1208.4+6121_daily_bin93.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/336591/ft2_4FGL_J1208.4+6121_daily_bin93.fits
.....................!
real 12.09
user 11.75
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/336591/ft1_filtered_4FGL_J1208.4+6121_daily_bin93.fits evtable="EVENTS" scfile=/scratch/kocevski/336591/ft2_4FGL_J1208.4+6121_daily_bin93.fits sctable="SC_DATA" expcube=/scratch/kocevski/336591/ltcube_263433601_263692801_4FGL_J1208.4+6121_daily_bin93.fits outfile=/scratch/kocevski/336591/expmap_263433601_263692801_4FGL_J1208.4+6121_daily_bin93.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/336591/ltcube_263433601_263692801_4FGL_J1208.4+6121_daily_bin93.fits
.....................!
real 192.27
user 187.04
sys 4.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 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/336591/ft1_filtered_4FGL_J1208.4+6121_daily_bin93.fits scfile=/scratch/kocevski/336591/ft2_4FGL_J1208.4+6121_daily_bin93.fits outfile=/scratch/kocevski/336591/cmap_263433601_263692801_4FGL_J1208.4+6121_daily_bin93.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.55
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/336591/ft1_filtered_4FGL_J1208.4+6121_daily_bin93.fits scfile=/scratch/kocevski/336591/ft2_4FGL_J1208.4+6121_daily_bin93.fits outfile=/scratch/kocevski/336591/cmap_HighResolution_263433601_263692801_4FGL_J1208.4+6121_daily_bin93.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.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.811       1.0000         .10000E-03   10000.    
     2 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.613       1.0000         .10000E-03   10000.    
     4 'norm      '    .21824E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11437E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.8557       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.9506       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.9476       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.6478       1.0000         .10000E-03   10000.    
    14 'norm      '    4.9226       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.230       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .52432       1.0000         .10000E-03   10000.    
    18 'Prefactor '    59.641       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.2073       1.0000         .10000E-03   10000.    
    21 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    5.3680       1.0000         .10000E-03   10000.    
    24 'norm      '    .54955       1.0000         .10000E-03   10000.    
    25 'Prefactor '    14.806       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    82.031       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .93330       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0106       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=   4977.285     FROM MIGRAD    STATUS=CONVERGED    848 CALLS     4339 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.808        28.544        .10829E-06   -.22612E-04
   2  norm          .10000E-03    2.3685       -.21577E-07** at limit **
   3  Prefactor     16.742        240.34        .37136E-04    .12494E-03
   4  norm          .10000E-03    1.1726        .78490E-07** at limit **
   5  Prefactor     .10000E-03    57.076        .33911E-07** at limit **
   6  norm          2.8555        2.6051        .17526E-07   -.46231E-05
   7  Prefactor     .10000E-03    1.3187        .61762E-07** at limit **
   8  Prefactor     6.9494        28.186        .60986E-06   -.19509E-05
   9  Prefactor     .10000E-03    3.8530       -.86168E-07** at limit **
  10  Prefactor     4.9363        77.463       -.12652E-04   -.68704E-04
  11  Prefactor     .10000E-03    15.733        .81835E-06** at limit **
  12  Prefactor     .10000E-03    1.1087        .26752E-07** at limit **
  13  norm          6.6491        16.298        .11349E-05   -.15864E-03
  14  norm          4.9209        6.8346        .55816E-05   -.96728E-03
  15  Prefactor     10.232        8.9650       -.15841E-05   -.12957E-05
  16  Prefactor     .10000E-03    6.9816       -.55441E-07** at limit **
  17  norm          .52645        2.1090        .29197E-07   -.26295E-03
  18  Prefactor     59.630        29.093       -.94322E-06   -.17593E-03
  19  Prefactor     .10000E-03    16.671       -.85098E-06** at limit **
  20  norm          3.2074        3.4431        .73962E-07   -.25206E-04
  21  norm          .10000E-03    8.3603        .29559E-08** at limit **
  22  Prefactor     .10000E-03    3.4120       -.11403E-06** at limit **
  23  norm          5.3680        2.4698       -.50392E-09   -.22000E-04
  24  norm          .54983        1.5954        .55441E-06   -.35600E-04
  25  Prefactor     14.808        47.629        .12515E-05    .53978E-05
  26  Prefactor     .10000E-03    2.6866       -.35199E-07** at limit **
  27  Prefactor     .10000E-03    43.793        .18676E-06** at limit **
  28  Prefactor     82.043        60.721        .14870E-05    .10131E-03
  29  Prefactor     .10000E-03    1.3875        .67589E-07** at limit **
  30  Prefactor     .10000E-03    2.8764        .12696E-06** at limit **
  31  Normalizat    .93345        .18686        .96495E-06   -.14443E-03
  32  Prefactor     1.0105        .21573       -.27633E-05    .54432E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.8076
  norm       = 0.0001
  Prefactor  = 16.7416
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.85549
  Prefactor  = 0.0001
  Prefactor  = 6.94941
  Prefactor  = 0.0001
  Prefactor  = 4.93631
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.64907
  norm       = 4.92087
  Prefactor  = 10.2316
  Prefactor  = 0.0001
  norm       = 0.526449
  Prefactor  = 59.6304
  Prefactor  = 0.0001
  norm       = 3.20738
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.36799
  norm       = 0.549834
  Prefactor  = 14.8081
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 82.0432
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.933452
  Prefactor  = 1.01049
 **********
 **   18 **HESSE 
 **********

 FCN=   4977.285     FROM HESSE     STATUS=OK           659 CALLS     4998 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.808        28.363        .10407E-03   -1.4938    
   2  norm          .10000E-03    2.4095        .21064E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.742        270.65        .98265E-04   -1.4889    
   4  norm          .10000E-03    5.7685        .14867E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    57.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.8555        2.6013        .10025E-03   -1.5370    
   7  Prefactor     .10000E-03    1.3212        .79104E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.9494        28.049        .15217E-03   -1.5181    
   9  Prefactor     .10000E-03    3.8657        .13516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.9363        77.312        .18081E-03   -1.5264    
  11  Prefactor     .10000E-03    15.893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.1107        .72545E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.6491        16.267        .77818E-03   -1.5192    
  14  norm          4.9209        7.0309        .90640E-03   -1.5264    
  15  Prefactor     10.232        8.9904        .12527E-03   -1.5068    
  16  Prefactor     .10000E-03    6.9829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .52645        3.2024        .18393E-02   -1.5563    
  18  Prefactor     59.630        29.134        .51952E-04   -1.4162    
  19  Prefactor     .10000E-03    16.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.2074        3.4404        .13162E-03   -1.5350    
  21  norm          .10000E-03    8.4584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.4474        .12717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          5.3680        2.4692        .72947E-04   -1.5245    
  24  norm          .54983        1.4917        .14665E-02   -1.5560    
  25  Prefactor     14.808        47.593        .10409E-03   -1.4938    
  26  Prefactor     .10000E-03    2.6891        .11293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    43.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     82.043        60.813        .22174E-03   -1.3894    
  29  Prefactor     .10000E-03    1.3987        .81144E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    2.8819        .11686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .93345        .21400        .22933E-03   -.95294    
  32  Prefactor     1.0105        .24892        .27115E-03   -.92381    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.50263e-08
Minuit parameter uncertainties:
  1  28.3891
  2  8.82981e-06
  3  135.356
  4  9.15285e-05
  5  1.41224e-05
  6  2.60145
  7  4.51593e-07
  8  27.9456
  9  1.04811e-05
  10  39.1308
  11  0.000116697
  12  9.28659e-07
  13  16.2778
  14  7.03211
  15  8.99163
  16  2.33229e-06
  17  2.59679
  18  29.1405
  19  0.000123422
  20  3.4406
  21  7.50894e-06
  22  6.19017e-06
  23  2.46924
  24  1.49181
  25  47.7153
  26  1.10795e-06
  27  8.03667e-06
  28  60.8587
  29  2.69927e-06
  30  7.68728e-06
  31  0.214198
  32  0.249202
Done.

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

Extracting fit parameters...

4FGL J1208.4+6121
   Spectrum: PowerLaw
372    Prefactor:  1.000e-04  2.332e-06  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:  1.010e+00  2.492e-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.335e-01  2.142e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/336591/likelihoodResults_263433601_263692801_4FGL_J1208.4+6121_daily_bin93.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): 102
logL (Free Index) = 4977.285452
delta logL = -0.00067539356678

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4977.28477742
delta logL = -8.07021024229e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11666E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0376       1.0000          .0000       10.000    
     3 'Normalizat'    .93340       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0106       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=   4977.285     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      236 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10267E-03    2.1893        .18142E-01** at limit **
   2  Index         1.9614        7.5497        .50000        .34381E-04
   3  Normalizat    .93346        .22224E-02    .22933E-03    .15081E-03
   4  Prefactor     1.0105        .27375E-02    .27115E-03   -.15693E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102667
  Index      = 1.96136
  Normalizat = 0.933459
  Prefactor  = 1.01049
 **********
 **   18 **HESSE 
 **********

 FCN=   4977.285     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      265 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10267E-03    49.341        .19732E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9614        5.6653        .50000       -.65320    
   3  Normalizat    .93346        .10617E-01    .91730E-05   -.95294    
   4  Prefactor     1.0105        .13078E-01    .10846E-04   -.92381    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.48553e-08
Minuit parameter uncertainties:
  1  0.0229604
  2  173.432
  3  0.010617
  4  0.013078
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/336591': 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): 102
logL (Free Index) = 4977.2847757
delta logL = 9.04370608623e-07

Extracting fit parameters...

4FGL J1208.4+6121
   Spectrum: PowerLaw
372    Prefactor:  1.027e-04  2.296e-02  1.000e-04  1.000e+04 ( 1.000e-14)
373        Index:  1.961e+00  1.734e+02  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:  1.010e+00  1.308e-02  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.335e-01  1.062e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 182.114 61.356

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/336591/cmap_HighResolution_263433601_263692801_4FGL_J1208.4+6121_daily_bin93.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.11e-03', job_status='DONE', photon_flux_upper_limit='4.13e-08', time_completed='2021-09-05 00:51:09.810290', job_id='336591', GAL2='1.01', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1630828269.81', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='9.04e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='93' AND source_name='4FGL J1208.4+6121' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 00:51:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 336591: <4FGL_J1208.4+6121_daily_bin93> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1208.4+6121_daily_bin93 182.114 61.3559 263433601 263692801 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 :                                   906.26 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             329.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            933 sec.

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

