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


Performing analysis on: 4FGL_J1208.9+5441_daily_bin1110
RA = 182.226, Dec = 54.6995
tmin = 527040001, tmax = 527299201
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='359549', job_status='RUN', time_executed='2021-09-05 01:34:04.391838', time_epoch_executed='1630830844.39' WHERE source_name='4FGL J1208.9+5441' and cadence='daily' and bin_id='1110'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/359549

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/359549/ft1_4FGL_J1208.9+5441_daily_bin1110.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/359549/ft2_4FGL_J1208.9+5441_daily_bin1110.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/359549/ft1_4FGL_J1208.9+5441_daily_bin1110.fits outfile=/scratch/kocevski/359549/ft1_filteredMKT_4FGL_J1208.9+5441_daily_bin1110.fits ra=182.226 dec=54.6995 rad=12.0 tmin=527040001.0 tmax=527299201.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 6.06
user 5.75
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/359549/ft1_filtered_4FGL_J1208.9+5441_daily_bin1110.fits" evtable="EVENTS" scfile=/scratch/kocevski/359549/ft2_4FGL_J1208.9+5441_daily_bin1110.fits sctable="SC_DATA" outfile=/scratch/kocevski/359549/ltcube_527040001_527299201_4FGL_J1208.9+5441_daily_bin1110.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/359549/ft2_4FGL_J1208.9+5441_daily_bin1110.fits
.....................!
real 12.60
user 12.11
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/359549/ft1_filtered_4FGL_J1208.9+5441_daily_bin1110.fits evtable="EVENTS" scfile=/scratch/kocevski/359549/ft2_4FGL_J1208.9+5441_daily_bin1110.fits sctable="SC_DATA" expcube=/scratch/kocevski/359549/ltcube_527040001_527299201_4FGL_J1208.9+5441_daily_bin1110.fits outfile=/scratch/kocevski/359549/expmap_527040001_527299201_4FGL_J1208.9+5441_daily_bin1110.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/359549/ltcube_527040001_527299201_4FGL_J1208.9+5441_daily_bin1110.fits
.....................!
real 192.06
user 186.57
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 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/359549/ft1_filtered_4FGL_J1208.9+5441_daily_bin1110.fits scfile=/scratch/kocevski/359549/ft2_4FGL_J1208.9+5441_daily_bin1110.fits outfile=/scratch/kocevski/359549/cmap_527040001_527299201_4FGL_J1208.9+5441_daily_bin1110.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/359549/ft1_filtered_4FGL_J1208.9+5441_daily_bin1110.fits scfile=/scratch/kocevski/359549/ft2_4FGL_J1208.9+5441_daily_bin1110.fits outfile=/scratch/kocevski/359549/cmap_HighResolution_527040001_527299201_4FGL_J1208.9+5441_daily_bin1110.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.54
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10403E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    56.199       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.7832       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.673       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.6223       1.0000         .10000E-03   10000.    
     9 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.5506       1.0000         .10000E-03   10000.    
    11 'norm      '    5.9648       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.5893       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.950       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    72.214       1.0000         .10000E-03   10000.    
    18 'norm      '    9.8649       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10374E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.2277       1.0000         .10000E-03   10000.    
    21 'norm      '    10.771       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.3190       1.0000         .10000E-03   10000.    
    24 'Prefactor '    36.962       1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.4337       1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0846       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .87464       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=   4124.939     FROM MIGRAD    STATUS=CONVERGED    705 CALLS     3501 TOTAL
                     EDM=   .85E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    120.40        .68107E-05** at limit **
   2  norm          .10000E-03    1.2837       -.26118E-07** at limit **
   3  Prefactor     56.172        66.535       -.17901E-05   -.48788E-04
   4  Prefactor     4.7805        21.824        .12690E-06    .24227E-05
   5  Prefactor     .10000E-03    42.506        .24211E-05** at limit **
   6  norm          .10000E-03    49.330       -.23168E-05** at limit **
   7  Prefactor     20.682        10.661       -.92628E-08    .73569E-04
   8  Prefactor     2.4077        125.40       -.24810E-05   -.20741E-04
   9  norm          .10000E-03    4.4709       -.23903E-07** at limit **
  10  Prefactor     2.5486        5.2165       -.12137E-05   -.11325E-03
  11  norm          5.9660        5.0665        .51012E-07    .44356E-04
  12  Prefactor     4.6002        36.432        .10757E-04   -.54157E-04
  13  Prefactor     .10000E-03    3.9824       -.13781E-07** at limit **
  14  Prefactor     19.955        24.344        .25478E-06    .30900E-05
  15  norm          .10000E-03    .94839        .77515E-07** at limit **
  16  Prefactor     .10000E-03    6.6320        .12254E-07** at limit **
  17  Prefactor     72.196        87.408       -.12948E-05   -.20594E-04
  18  norm          9.8682        8.6117       -.11160E-06   -.54910E-05
  19  Prefactor     .10000E-03    31.932       -.40567E-06** at limit **
  20  Prefactor     7.2273        7.1603        .35932E-06    .10679E-03
  21  norm          10.770        4.8907        .59051E-07    .84791E-04
  22  Prefactor     .10000E-03    87.555       -.24433E-05** at limit **
  23  norm          1.3190        1.8002        .49129E-07   -.10624E-04
  24  Prefactor     36.954        39.872       -.20566E-06   -.10956E-04
  25  Prefactor     4.4316        16.111        .56196E-06   -.18513E-05
  26  norm          .10000E-03    3.5365        .39328E-07** at limit **
  27  Normalizat    1.0848        .21570        .52166E-06   -.26985E-04
  28  Prefactor     .87437        .25597       -.16177E-05    .35825E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 56.172
  Prefactor  = 4.78053
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 20.6815
  Prefactor  = 2.40767
  norm       = 0.0001
  Prefactor  = 2.54862
  norm       = 5.96599
  Prefactor  = 4.60018
  Prefactor  = 0.0001
  Prefactor  = 19.9549
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 72.1959
  norm       = 9.86819
  Prefactor  = 0.0001
  Prefactor  = 7.22727
  norm       = 10.7705
  Prefactor  = 0.0001
  norm       = 1.31896
  Prefactor  = 36.954
  Prefactor  = 4.43164
  norm       = 0.0001
  Normalizat = 1.08482
  Prefactor  = 0.874372
 **********
 **   18 **HESSE 
 **********

 FCN=   4124.939     FROM HESSE     STATUS=OK           519 CALLS     4020 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    123.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.2945        .70957E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     56.172        67.239        .53510E-04   -1.4208    
   4  Prefactor     4.7805        21.705        .18396E-03   -1.5271    
   5  Prefactor     .10000E-03    42.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    49.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     20.682        10.585        .88092E-04   -1.4798    
   8  Prefactor     2.4077        125.21        .25185E-03   -1.5398    
   9  norm          .10000E-03    4.4712        .13264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.5486        5.1841        .16979E-03   -1.5389    
  11  norm          5.9660        5.0565        .12641E-03   -1.5219    
  12  Prefactor     4.6002        37.733        .93947E-03   -1.5279    
  13  Prefactor     .10000E-03    3.9865        .12510E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     19.955        24.326        .89672E-04   -1.4814    
  15  norm          .10000E-03    .95726        .61055E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.6384        .16155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     72.196        87.673        .47243E-04   -1.4007    
  18  norm          9.8682        8.6068        .12758E-03   -1.5080    
  19  Prefactor     .10000E-03    32.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.2273        7.1705        .14920E-03   -1.5170    
  21  norm          10.770        4.8776        .86388E-04   -1.5051    
  22  Prefactor     .10000E-03    89.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.3190        1.7741        .97883E-04   -1.5478    
  24  Prefactor     36.954        39.884        .65921E-04   -1.4491    
  25  Prefactor     4.4316        16.071        .19125E-03   -1.5287    
  26  norm          .10000E-03    3.5488        .11795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0848        .25501        .22506E-03   -.90241    
  28  Prefactor     .87437        .29958        .30898E-03   -.97042    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82952e-10
Minuit parameter uncertainties:
  1  0.00142849
  2  2.11719e-06
  3  67.3299
  4  20.3847
  5  0.000282501
  6  0.00027253
  7  10.5862
  8  34.8025
  9  5.97129e-07
  10  5.18501
  11  5.05685
  12  26.3722
  13  2.14323e-06
  14  24.3379
  15  3.79832e-08
  16  1.75985e-06
  17  87.8304
  18  8.60792
  19  3.95662e-05
  20  7.17132
  21  4.87779
  22  0.000312413
  23  1.77421
  24  39.9128
  25  16.0866
  26  2.0497e-07
  27  0.255299
  28  0.300142
Done.

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

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  1.000e-04  3.798e-08  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:  8.744e-01  3.001e-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.085e+00  2.553e-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.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.84e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/359549/likelihoodResults_527040001_527299201_4FGL_J1208.9+5441_daily_bin1110.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) = 4124.94383606
delta logL = -0.00482649502283

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4124.93900514
delta logL = 4.43004046247e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2195       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0848       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87439       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4124.939     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      264 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    1.0475        .12604E-03** at limit **
   2  alpha         3.2439        2.8089        .17418       -.76569E-06
   3  Normalizat    1.0848        .23647        .22506E-03    .27934E-04
   4  Prefactor     .87437        .29560        .30898E-03    .80947E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100008
  alpha      = 3.24394
  Normalizat = 1.08482
  Prefactor  = 0.874372
 **********
 **   18 **HESSE 
 **********

 FCN=   4124.939     FROM HESSE     STATUS=OK            23 CALLS      287 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    1.0466        .25208E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.2439        3.3763        .69671E-02    .30215    
   3  Normalizat    1.0848        .23673        .90023E-05   -.90241    
   4  Prefactor     .87437        .29591        .12359E-04   -.97042    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69141e-08
Minuit parameter uncertainties:
  1  0.000185839
  2  296.773
  3  0.236958
  4  0.296454
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/359549': 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) = 4124.93900511
delta logL = 4.45464775112e-06

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  1.000e-04  1.858e-04  1.000e-04  1.000e+04 ( 1.000e-11)
377        alpha:  3.244e+00  2.968e+02  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:  8.744e-01  2.965e-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.085e+00  2.370e-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/359549/cmap_HighResolution_527040001_527299201_4FGL_J1208.9+5441_daily_bin1110.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.84e-05', job_status='DONE', photon_flux_upper_limit='6.98e-08', time_completed='2021-09-05 01:47:41.786729', job_id='359549', GAL2='0.87', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1630831661.79', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='4.45e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1110' AND source_name='4FGL J1208.9+5441' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 01:47:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0142>
Subject: Job 359549: <4FGL_J1208.9+5441_daily_bin1110> in cluster <slac> Done

Job <4FGL_J1208.9+5441_daily_bin1110> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 01:31:32 2021
Job was executed on host(s) <bullet0142>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 01:31:34 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:31:34 2021
Terminated at Sun Sep  5 01:47:42 2021
Results reported at Sun Sep  5 01:47:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1208.9+5441_daily_bin1110 182.226 54.6995 527040001 527299201 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 :                                   728.23 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             269.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   968 sec.
    Turnaround time :                            970 sec.

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

