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


Performing analysis on: 4FGL_J1208.9+5441_daily_bin625
RA = 182.226, Dec = 54.6995
tmin = 401328001, tmax = 401587201
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='355880', job_status='RUN', time_executed='2021-09-05 01:21:05.930116', time_epoch_executed='1630830065.93' WHERE source_name='4FGL J1208.9+5441' and cadence='daily' and bin_id='625'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/355880

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/355880/ft1_4FGL_J1208.9+5441_daily_bin625.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/355880/ft2_4FGL_J1208.9+5441_daily_bin625.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/355880/ft1_4FGL_J1208.9+5441_daily_bin625.fits outfile=/scratch/kocevski/355880/ft1_filteredMKT_4FGL_J1208.9+5441_daily_bin625.fits ra=182.226 dec=54.6995 rad=12.0 tmin=401328001.0 tmax=401587201.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.44
user 3.20
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/355880/ft2_4FGL_J1208.9+5441_daily_bin625.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/355880/ft1_filteredMKT_4FGL_J1208.9+5441_daily_bin625.fits evtable="EVENTS" outfile="/scratch/kocevski/355880/ft1_filtered_4FGL_J1208.9+5441_daily_bin625.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.56
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/355880/ft1_filtered_4FGL_J1208.9+5441_daily_bin625.fits" evtable="EVENTS" scfile=/scratch/kocevski/355880/ft2_4FGL_J1208.9+5441_daily_bin625.fits sctable="SC_DATA" outfile=/scratch/kocevski/355880/ltcube_401328001_401587201_4FGL_J1208.9+5441_daily_bin625.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/355880/ft2_4FGL_J1208.9+5441_daily_bin625.fits
.....................!
real 12.50
user 11.99
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/355880/ft1_filtered_4FGL_J1208.9+5441_daily_bin625.fits evtable="EVENTS" scfile=/scratch/kocevski/355880/ft2_4FGL_J1208.9+5441_daily_bin625.fits sctable="SC_DATA" expcube=/scratch/kocevski/355880/ltcube_401328001_401587201_4FGL_J1208.9+5441_daily_bin625.fits outfile=/scratch/kocevski/355880/expmap_401328001_401587201_4FGL_J1208.9+5441_daily_bin625.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/355880/ltcube_401328001_401587201_4FGL_J1208.9+5441_daily_bin625.fits
.....................!
real 191.27
user 186.11
sys 4.60

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/355880/ft1_filtered_4FGL_J1208.9+5441_daily_bin625.fits scfile=/scratch/kocevski/355880/ft2_4FGL_J1208.9+5441_daily_bin625.fits outfile=/scratch/kocevski/355880/cmap_401328001_401587201_4FGL_J1208.9+5441_daily_bin625.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/355880/ft1_filtered_4FGL_J1208.9+5441_daily_bin625.fits scfile=/scratch/kocevski/355880/ft2_4FGL_J1208.9+5441_daily_bin625.fits outfile=/scratch/kocevski/355880/cmap_HighResolution_401328001_401587201_4FGL_J1208.9+5441_daily_bin625.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.53
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/355880/ft1_filtered_4FGL_J1208.9+5441_daily_bin625.fits', '/scratch/kocevski/355880/ft2_4FGL_J1208.9+5441_daily_bin625.fits', expMap='/scratch/kocevski/355880/expmap_401328001_401587201_4FGL_J1208.9+5441_daily_bin625.fits', expCube='/scratch/kocevski/355880/ltcube_401328001_401587201_4FGL_J1208.9+5441_daily_bin625.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/355880/Model_4FGL_J1208.9+5441_daily_bin625.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/355880/ft1_filtered_4FGL_J1208.9+5441_daily_bin625.fits
Spacecraft file(s): /scratch/kocevski/355880/ft2_4FGL_J1208.9+5441_daily_bin625.fits
Exposure map: /scratch/kocevski/355880/expmap_401328001_401587201_4FGL_J1208.9+5441_daily_bin625.fits
Exposure cube: /scratch/kocevski/355880/ltcube_401328001_401587201_4FGL_J1208.9+5441_daily_bin625.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/355880/Model_4FGL_J1208.9+5441_daily_bin625.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) = 5199.50357018

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.836       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .16335E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    67.754       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .28470E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10440E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .11237E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.3982       1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.528       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.1930       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.384       1.0000         .10000E-03   10000.    
    17 'Prefactor '    76.950       1.0000         .10000E-03   10000.    
    18 'norm      '    7.5864       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.6511       1.0000         .10000E-03   10000.    
    22 'Prefactor '    40.482       1.0000         .10000E-03   10000.    
    23 'norm      '    7.1168       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.1726       1.0000         .10000E-03   10000.    
    26 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0669       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .73852       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=   5199.478     FROM MIGRAD    STATUS=CONVERGED    702 CALLS     3547 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.722        123.25        .27932E-04    .11589E-04
   2  norm          .10000E-03    .84899       -.48002E-06** at limit **
   3  Prefactor     .10001E-03    178.33       -.35879E-05** at limit **
   4  Prefactor     .10000E-03    9.4005       -.16950E-06** at limit **
   5  Prefactor     67.704        94.614        .70694E-05    .14739E-04
   6  norm          .10000E-03    16.825        .10654E-05** at limit **
   7  Prefactor     .10090E-03    4.2998        .19251E-05** at limit **
   8  Prefactor     .10000E-03    31.959        .11342E-05** at limit **
   9  norm          .10000E-03    34.960        .24605E-05** at limit **
  10  Prefactor     .10000E-03    .99303        .19667E-07** at limit **
  11  norm          2.4012        6.0928        .65415E-05    .37864E-04
  12  Prefactor     25.524        22.853        .45091E-06   -.30933E-04
  13  Prefactor     7.1931        8.0692       -.10792E-05   -.62906E-04
  14  Prefactor     .10000E-03    14.570       -.77040E-06** at limit **
  15  norm          .10000E-03    1.3251        .28541E-06** at limit **
  16  Prefactor     12.381        24.705        .18008E-06   -.78886E-05
  17  Prefactor     76.948        69.479       -.47172E-06   -.13262E-04
  18  norm          7.5842        6.4813       -.27645E-06   -.10523E-03
  19  Prefactor     .10000E-03    15.672        .10912E-05** at limit **
  20  Prefactor     .10000E-03    2.0021        .21190E-07** at limit **
  21  norm          3.6509        2.2923        .63537E-07   -.28785E-04
  22  Prefactor     40.476        24.905        .32499E-06   -.24299E-04
  23  norm          7.1165        2.8210        .79301E-07   -.45845E-04
  24  Prefactor     .10000E-03    20.130       -.13716E-05** at limit **
  25  Prefactor     7.1722        7.1382        .18473E-06   -.52975E-05
  26  norm          .10000E-03    2.4339        .44681E-07** at limit **
  27  Normalizat    1.0668        .16819       -.73802E-06   -.30420E-03
  28  Prefactor     .73862        .20156       -.17358E-05   -.19057E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.7216
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 67.7036
  norm       = 0.0001
  Prefactor  = 0.000100898
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.40119
  Prefactor  = 25.5236
  Prefactor  = 7.19315
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.3814
  Prefactor  = 76.9485
  norm       = 7.58417
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.65094
  Prefactor  = 40.4764
  norm       = 7.11651
  Prefactor  = 0.0001
  Prefactor  = 7.17225
  norm       = 0.0001
  Normalizat = 1.06683
  Prefactor  = 0.738624
 **********
 **   18 **HESSE 
 **********

 FCN=   5199.478     FROM HESSE     STATUS=OK           521 CALLS     4068 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.722        123.51        .92286E-04   -1.4842    
   2  norm          .10000E-03    .86198        .65002E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    180.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.4186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     67.704        94.632        .24381E-03   -1.4060    
   6  norm          .10000E-03    16.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10090E-03    53.680        .27223E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    32.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    36.143        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .99587        .70068E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.4012        6.1179        .12963E-02   -1.5398    
  12  Prefactor     25.524        22.839        .79285E-04   -1.4697    
  13  Prefactor     7.1931        8.0722        .14956E-03   -1.5172    
  14  Prefactor     .10000E-03    14.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.2134        .15997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.381        24.708        .11383E-03   -1.5004    
  17  Prefactor     76.948        69.538        .22888E-03   -1.3951    
  18  norm          7.5842        6.4754        .14560E-03   -1.5157    
  19  Prefactor     .10000E-03    15.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.0066        .99615E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.6509        2.2902        .83323E-04   -1.5326    
  22  Prefactor     40.476        24.909        .63000E-04   -1.4435    
  23  norm          7.1165        2.8197        .73499E-04   -1.5174    
  24  Prefactor     .10000E-03    20.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     7.1722        7.1387        .14978E-03   -1.5172    
  26  norm          .10000E-03    2.4649        .10984E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0668        .19207        .20584E-03   -.90824    
  28  Prefactor     .73862        .23150        .30301E-03   -1.0203    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60922e-08
Minuit parameter uncertainties:
  1  96.4622
  2  1.85543e-05
  3  0.00192353
  4  3.17017e-05
  5  94.8437
  6  1.18809e-05
  7  0.0138986
  8  4.41512e-06
  9  6.53461e-06
  10  9.14405e-07
  11  6.11945
  12  22.8472
  13  8.07342
  14  1.55395e-05
  15  3.72545e-05
  16  24.7281
  17  69.6116
  18  6.47597
  19  7.10922e-05
  20  1.62845e-06
  21  2.29024
  22  24.9157
  23  2.81971
  24  1.41999e-05
  25  7.13957
  26  4.70591e-06
  27  0.192199
  28  0.231805
Done.

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

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  1.000e-04  3.725e-05  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:  7.386e-01  2.318e-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:  1.067e+00  1.922e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 182.226 54.700
Photon Flux Upper Limit: 6.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.75e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/355880/likelihoodResults_401328001_401587201_4FGL_J1208.9+5441_daily_bin625.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) = 5199.47911737
delta logL = -0.00148779010851

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5199.36363982
delta logL = 0.113989754064

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .15572       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0391       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75961       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5199.364     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      338 TOTAL
                     EDM=   .23E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .15577        .35008        .57316E-04    .45621E-04
   2  alpha         5.0000        4.7947        .16342    ** at limit **
   3  Normalizat    1.0391        .19289        .20826E-03   -.87344E-06
   4  Prefactor     .75963        .23468        .29923E-03   -.41033E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.155775
  alpha      = 5
  Normalizat = 1.03914
  Prefactor  = 0.759627
 **********
 **   18 **HESSE 
 **********

 FCN=   5199.364     FROM HESSE     STATUS=OK            23 CALLS      361 TOTAL
                     EDM=   .24E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .15577        .34485        .22926E-05   -1.5629    
   2  alpha         5.0000        4.7970        .65366E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0391        .19299        .83302E-05   -.91731    
   4  Prefactor     .75963        .23485        .11969E-04   -1.0123    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.36945e-13
Minuit parameter uncertainties:
  1  0.344859
  2  3.14321e-06
  3  0.193119
  4  0.23516
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/355880': 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) = 5199.3636398
delta logL = 0.113989780363

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  1.558e-01  3.449e-01  1.000e-04  1.000e+04 ( 1.000e-11)
377        alpha:  5.000e+00  3.143e-06  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:  7.596e-01  2.352e-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:  1.039e+00  1.931e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 182.226 54.700

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/355880/cmap_HighResolution_401328001_401587201_4FGL_J1208.9+5441_daily_bin625.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.75e-05', job_status='DONE', photon_flux_upper_limit='6.62e-08', time_completed='2021-09-05 01:34:49.791006', job_id='355880', GAL2='0.76', fit_tolerance='1e-08', EG2='1.04', EG='1.07', time_epoch_completed='1630830889.79', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='1.14e-01', ts2='0.24', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='625' AND source_name='4FGL J1208.9+5441' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 01:34:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0144>
Subject: Job 355880: <4FGL_J1208.9+5441_daily_bin625> in cluster <slac> Done

Job <4FGL_J1208.9+5441_daily_bin625> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Sep  5 01:20:37 2021
Job was executed on host(s) <bullet0144>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 01:20: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 01:20:39 2021
Terminated at Sun Sep  5 01:34:50 2021
Results reported at Sun Sep  5 01:34:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1208.9+5441_daily_bin625 182.226 54.6995 401328001 401587201 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 :                                   820.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             365.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            853 sec.

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

