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


Performing analysis on: 4FGL_J1208.9+5441_daily_bin339
RA = 182.226, Dec = 54.6995
tmin = 327196801, tmax = 327456001
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='353035', job_status='RUN', time_executed='2021-09-05 01:11:21.778348', time_epoch_executed='1630829481.78' WHERE source_name='4FGL J1208.9+5441' and cadence='daily' and bin_id='339'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/353035

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/353035/ft1_4FGL_J1208.9+5441_daily_bin339.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/353035/ft2_4FGL_J1208.9+5441_daily_bin339.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/353035/ft1_4FGL_J1208.9+5441_daily_bin339.fits outfile=/scratch/kocevski/353035/ft1_filteredMKT_4FGL_J1208.9+5441_daily_bin339.fits ra=182.226 dec=54.6995 rad=12.0 tmin=327196801.0 tmax=327456001.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.28
user 3.08
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/353035/ft2_4FGL_J1208.9+5441_daily_bin339.fits

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/353035/ft1_filtered_4FGL_J1208.9+5441_daily_bin339.fits" evtable="EVENTS" scfile=/scratch/kocevski/353035/ft2_4FGL_J1208.9+5441_daily_bin339.fits sctable="SC_DATA" outfile=/scratch/kocevski/353035/ltcube_327196801_327456001_4FGL_J1208.9+5441_daily_bin339.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/353035/ft2_4FGL_J1208.9+5441_daily_bin339.fits
.....................!
real 11.87
user 11.53
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/353035/ft1_filtered_4FGL_J1208.9+5441_daily_bin339.fits evtable="EVENTS" scfile=/scratch/kocevski/353035/ft2_4FGL_J1208.9+5441_daily_bin339.fits sctable="SC_DATA" expcube=/scratch/kocevski/353035/ltcube_327196801_327456001_4FGL_J1208.9+5441_daily_bin339.fits outfile=/scratch/kocevski/353035/expmap_327196801_327456001_4FGL_J1208.9+5441_daily_bin339.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/353035/ltcube_327196801_327456001_4FGL_J1208.9+5441_daily_bin339.fits
.....................!
real 190.33
user 185.67
sys 4.33

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 221 point sources and 0 extended sources

Setting source of interest to:
4FGL J1208.9+5441 @ 182.226 54.6995

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/353035/ft1_filtered_4FGL_J1208.9+5441_daily_bin339.fits scfile=/scratch/kocevski/353035/ft2_4FGL_J1208.9+5441_daily_bin339.fits outfile=/scratch/kocevski/353035/cmap_327196801_327456001_4FGL_J1208.9+5441_daily_bin339.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.226 yref=54.6995 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.53
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/353035/ft1_filtered_4FGL_J1208.9+5441_daily_bin339.fits scfile=/scratch/kocevski/353035/ft2_4FGL_J1208.9+5441_daily_bin339.fits outfile=/scratch/kocevski/353035/cmap_HighResolution_327196801_327456001_4FGL_J1208.9+5441_daily_bin339.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.226 yref=54.6995 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/353035/ft1_filtered_4FGL_J1208.9+5441_daily_bin339.fits evtable="EVENTS" scfile=/scratch/kocevski/353035/ft2_4FGL_J1208.9+5441_daily_bin339.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/353035/Model_4FGL_J1208.9+5441_daily_bin339.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/353035/ft1_filtered_4FGL_J1208.9+5441_daily_bin339.fits.....................!
real 67.53
user 66.11
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/353035/ft1_filtered_4FGL_J1208.9+5441_daily_bin339.fits', '/scratch/kocevski/353035/ft2_4FGL_J1208.9+5441_daily_bin339.fits', expMap='/scratch/kocevski/353035/expmap_327196801_327456001_4FGL_J1208.9+5441_daily_bin339.fits', expCube='/scratch/kocevski/353035/ltcube_327196801_327456001_4FGL_J1208.9+5441_daily_bin339.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/353035/Model_4FGL_J1208.9+5441_daily_bin339.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1208.9+5441'

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  2.729e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
377        alpha:  2.511e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
378         beta:  7.229e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
379           Eb:  3.605e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/353035/ft1_filtered_4FGL_J1208.9+5441_daily_bin339.fits
Spacecraft file(s): /scratch/kocevski/353035/ft2_4FGL_J1208.9+5441_daily_bin339.fits
Exposure map: /scratch/kocevski/353035/expmap_327196801_327456001_4FGL_J1208.9+5441_daily_bin339.fits
Exposure cube: /scratch/kocevski/353035/ltcube_327196801_327456001_4FGL_J1208.9+5441_daily_bin339.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/353035/Model_4FGL_J1208.9+5441_daily_bin339.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) = 7882.6287557

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.1398       1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.659       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    10.761       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.1475       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.0072       1.0000         .10000E-03   10000.    
    10 'Prefactor '    93.617       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.0512       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    11.861       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    87.549       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    5.5621       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.0653       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    5.0529       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .67612       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.3438       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7882.626     FROM MIGRAD    STATUS=CONVERGED    682 CALLS     3436 TOTAL
                     EDM=   .42E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    48.050       -.70455E-05** at limit **
   2  norm          4.1384        2.0904        .90716E-07   -.14682E-03
   3  Prefactor     17.647        52.410       -.21548E-04   -.39084E-05
   4  Prefactor     .10000E-03    41.551        .89321E-05** at limit **
   5  Prefactor     .10000E-03    30.702       -.17923E-05** at limit **
   6  norm          10.761        29.707       -.20077E-06   -.61146E-06
   7  Prefactor     6.1452        5.3720        .13900E-06   -.12362E-03
   8  Prefactor     .10000E-03    14.996       -.19308E-05** at limit **
   9  norm          1.0079        1.0529        .28418E-07   -.40395E-03
  10  Prefactor     93.618        8.6400        .36284E-08   -.16426E-04
  11  norm          .10000E-03    1.2315       -.34471E-07** at limit **
  12  Prefactor     .10000E-03    14.566        .10070E-07** at limit **
  13  Prefactor     1.0519        4.5621       -.78772E-06   -.93194E-04
  14  Prefactor     .10000E-03    7.0894       -.17254E-06** at limit **
  15  norm          11.861        3.2787       -.60972E-07   -.12699E-04
  16  Prefactor     .10000E-03    13.363        .28049E-05** at limit **
  17  Prefactor     87.557        56.169        .73717E-05    .52186E-05
  18  norm          .10000E-03    1.9945       -.52320E-08** at limit **
  19  Prefactor     .10000E-03    4.5869        .12071E-05** at limit **
  20  Prefactor     .10000E-03    4.4223       -.78118E-06** at limit **
  21  norm          5.5619        2.3117       -.45970E-07    .13801E-03
  22  Prefactor     .10000E-03    5.4807        .90379E-06** at limit **
  23  norm          2.0654        2.2173       -.51873E-07   -.12316E-04
  24  Prefactor     .10000E-03    11.634       -.11173E-05** at limit **
  25  Prefactor     .10000E-03    5.1015       -.13059E-05** at limit **
  26  norm          5.0531        4.4528        .11225E-06   -.96950E-04
  27  Normalizat    .67608        .16278        .13711E-05   -.80736E-04
  28  Prefactor     1.3438        .19876       -.65578E-06    .35675E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.13844
  Prefactor  = 17.6467
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.7607
  Prefactor  = 6.14519
  Prefactor  = 0.0001
  norm       = 1.00795
  Prefactor  = 93.6185
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.05187
  Prefactor  = 0.0001
  norm       = 11.8607
  Prefactor  = 0.0001
  Prefactor  = 87.5574
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.56186
  Prefactor  = 0.0001
  norm       = 2.06542
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.05309
  Normalizat = 0.676077
  Prefactor  = 1.34381
 **********
 **   18 **HESSE 
 **********

 FCN=   7882.626     FROM HESSE     STATUS=OK           517 CALLS     3953 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    47.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.1384        2.0900        .44109E-03   -1.5301    
   3  Prefactor     17.647        52.523        .95311E-04   -1.4868    
   4  Prefactor     .10000E-03    42.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    30.703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          10.761        29.730        .12214E-03   -1.5052    
   7  Prefactor     6.1452        5.3849        .80960E-03   -1.5212    
   8  Prefactor     .10000E-03    15.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.0079        12.136        .26651E-02   -1.5507    
  10  Prefactor     93.618        8.6420        .41537E-04   -1.3770    
  11  norm          .10000E-03    1.2365        .96158E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    14.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.0519        4.4535        .36449E-03   -1.5503    
  14  Prefactor     .10000E-03    7.0933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          11.861        3.2858        .39818E-03   -1.5019    
  16  Prefactor     .10000E-03    13.409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     87.557        56.180        .42939E-04   -1.3834    
  18  norm          .10000E-03    2.0019        .12245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.5882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.4705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          5.5619        2.3108        .84309E-04   -1.5236    
  22  Prefactor     .10000E-03    5.4849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.0654        2.2038        .13168E-03   -1.5421    
  24  Prefactor     .10000E-03    11.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    5.1306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          5.0531        4.4622        .85573E-03   -1.5258    
  27  Normalizat    .67608        .19209        .30559E-03   -1.0485    
  28  Prefactor     1.3438        .23628        .28821E-03   -.82014    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.34094e-10
Minuit parameter uncertainties:
  1  7.32631e-05
  2  2.09004
  3  52.661
  4  2.947e-06
  5  1.51754e-05
  6  29.7712
  7  5.38533
  8  3.73413e-06
  9  6.99642
  10  8.64211
  11  2.15191e-06
  12  3.34379e-06
  13  4.32906
  14  2.10005e-05
  15  3.28586
  16  4.50689e-05
  17  56.2136
  18  1.03372e-06
  19  1.70187e-06
  20  7.52748e-06
  21  2.31083
  22  2.75574e-06
  23  2.20391
  24  7.19366e-06
  25  4.02688e-06
  26  4.46253
  27  0.192284
  28  0.236471
Done.

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

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  1.186e+01  3.286e+00  1.000e-04  1.000e+04 ( 1.000e-11)
377        alpha:  2.511e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
378         beta:  7.229e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
379           Eb:  3.605e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
703    Prefactor:  1.344e+00  2.365e-01  0.000e+00  1.000e+01 ( 1.000e+00)
704        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
705        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
702   Normalization:  6.761e-01  1.923e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 25.62
Ra Dec: 182.226 54.700
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 1.86e-07 +/- 5.14e-08
Energy Flux (Fixed Index): 4.91e-05 +/- 1.36e-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) = 7880.88669929
delta logL = 1.73924419977

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7880.85259434
delta logL = 1.77334914281

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.9619       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2366       1.0000          .0000       5.0000    
     3 'Normalizat'    .60232       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4179       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7880.853     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      243 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.9619        30.579        .33472E-02   -.55969E-03
   2  alpha         3.2366        4.0777        .22834        .37395E-04
   3  Normalizat    .60230        .10522        .72623E-01    .39344E-04
   4  Prefactor     1.4179        .15597        .63733E-01    .18103E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 8.96187
  alpha      = 3.2366
  Normalizat = 0.602301
  Prefactor  = 1.41792
 **********
 **   18 **HESSE 
 **********

 FCN=   7880.853     FROM HESSE     STATUS=OK            31 CALLS      274 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.9619        3.4129        .63294E-04   -1.5109    
   2  alpha         3.2366        .43333        .10004E-02    .29908    
   3  Normalizat    .60230        .18661        .32150E-03   -1.0789    
   4  Prefactor     1.4179        .23759        .28184E-03   -.79865    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.51736e-11
Minuit parameter uncertainties:
  1  3.41296
  2  0.435743
  3  0.186806
  4  0.237777
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/353035': 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) = 7880.85259433
delta logL = 1.77334916152

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  8.962e+00  3.413e+00  1.000e-04  1.000e+04 ( 1.000e-11)
377        alpha:  3.237e+00  4.357e-01  0.000e+00  5.000e+00 ( 1.000e+00)
378         beta:  7.229e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
379           Eb:  3.605e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
703    Prefactor:  1.418e+00  2.378e-01  0.000e+00  1.000e+01 ( 1.000e+00)
704        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
705        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
702   Normalization:  6.023e-01  1.868e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 29.57
Ra Dec: 182.226 54.700
Photon Index (Free Index): 3.24 +/- 0.44
Photon Flux (Free Index): 2.39e-07 +/- 6.33e-08
Energy Flux (Free Index): 4.34e-05 +/- 1.14e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/353035/cmap_HighResolution_327196801_327456001_4FGL_J1208.9+5441_daily_bin339.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.86e-07', energy_flux2='4.34e-05', photon_flux_error='5.14e-08', dlogl='1.77e+00', energy_flux='4.91e-05', photon_flux2='2.39e-07', job_status='DONE', time_completed='2021-09-05 01:27:10.104793', photon_index_error2='0.44', photon_index2='3.24', ts='25.62', fit_tolerance='1e-08', GAL='1.34', photon_index_error='0.00', energy_flux_error2='1.14e-05', EG='0.68', time_epoch_completed='1630830430.1', return_code='0', job_id='353035', GAL2='1.42', EG2='0.60', return_code2='0', energy_flux_error='1.36e-05', photon_flux_error2='6.33e-08', ts2='29.57', photon_index='2.51' WHERE bin_id='339' AND source_name='4FGL J1208.9+5441' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 01:27:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 353035: <4FGL_J1208.9+5441_daily_bin339> in cluster <slac> Done

Job <4FGL_J1208.9+5441_daily_bin339> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 01:11:08 2021
Job was executed on host(s) <bullet0148>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 01:11:10 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 01:11:10 2021
Terminated at Sun Sep  5 01:27:10 2021
Results reported at Sun Sep  5 01:27:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1208.9+5441_daily_bin339 182.226 54.6995 327196801 327456001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1208.9+5441 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   940.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             316.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   960 sec.
    Turnaround time :                            962 sec.

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

