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


Performing analysis on: 4FGL_J1208.9+5441_daily_bin1200
RA = 182.226, Dec = 54.6995
tmin = 550368001, tmax = 550627201
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='359743', job_status='RUN', time_executed='2021-09-05 01:35:30.635786', time_epoch_executed='1630830930.64' WHERE source_name='4FGL J1208.9+5441' and cadence='daily' and bin_id='1200'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/359743

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/359743/ft1_4FGL_J1208.9+5441_daily_bin1200.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/359743/ft2_4FGL_J1208.9+5441_daily_bin1200.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/359743/ft1_4FGL_J1208.9+5441_daily_bin1200.fits outfile=/scratch/kocevski/359743/ft1_filteredMKT_4FGL_J1208.9+5441_daily_bin1200.fits ra=182.226 dec=54.6995 rad=12.0 tmin=550368001.0 tmax=550627201.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 4.22
user 3.77
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/359743/ft2_4FGL_J1208.9+5441_daily_bin1200.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/359743/ft1_filteredMKT_4FGL_J1208.9+5441_daily_bin1200.fits evtable="EVENTS" outfile="/scratch/kocevski/359743/ft1_filtered_4FGL_J1208.9+5441_daily_bin1200.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.51
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/359743/ft1_filtered_4FGL_J1208.9+5441_daily_bin1200.fits" evtable="EVENTS" scfile=/scratch/kocevski/359743/ft2_4FGL_J1208.9+5441_daily_bin1200.fits sctable="SC_DATA" outfile=/scratch/kocevski/359743/ltcube_550368001_550627201_4FGL_J1208.9+5441_daily_bin1200.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/359743/ft2_4FGL_J1208.9+5441_daily_bin1200.fits
.....................!
real 12.66
user 12.00
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/359743/ft1_filtered_4FGL_J1208.9+5441_daily_bin1200.fits evtable="EVENTS" scfile=/scratch/kocevski/359743/ft2_4FGL_J1208.9+5441_daily_bin1200.fits sctable="SC_DATA" expcube=/scratch/kocevski/359743/ltcube_550368001_550627201_4FGL_J1208.9+5441_daily_bin1200.fits outfile=/scratch/kocevski/359743/expmap_550368001_550627201_4FGL_J1208.9+5441_daily_bin1200.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/359743/ltcube_550368001_550627201_4FGL_J1208.9+5441_daily_bin1200.fits
.....................!
real 193.79
user 185.23
sys 5.75

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/359743/ft1_filtered_4FGL_J1208.9+5441_daily_bin1200.fits scfile=/scratch/kocevski/359743/ft2_4FGL_J1208.9+5441_daily_bin1200.fits outfile=/scratch/kocevski/359743/cmap_550368001_550627201_4FGL_J1208.9+5441_daily_bin1200.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/359743/ft1_filtered_4FGL_J1208.9+5441_daily_bin1200.fits scfile=/scratch/kocevski/359743/ft2_4FGL_J1208.9+5441_daily_bin1200.fits outfile=/scratch/kocevski/359743/cmap_HighResolution_550368001_550627201_4FGL_J1208.9+5441_daily_bin1200.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.56
user 0.38
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/359743/ft1_filtered_4FGL_J1208.9+5441_daily_bin1200.fits', '/scratch/kocevski/359743/ft2_4FGL_J1208.9+5441_daily_bin1200.fits', expMap='/scratch/kocevski/359743/expmap_550368001_550627201_4FGL_J1208.9+5441_daily_bin1200.fits', expCube='/scratch/kocevski/359743/ltcube_550368001_550627201_4FGL_J1208.9+5441_daily_bin1200.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/359743/Model_4FGL_J1208.9+5441_daily_bin1200.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/359743/ft1_filtered_4FGL_J1208.9+5441_daily_bin1200.fits
Spacecraft file(s): /scratch/kocevski/359743/ft2_4FGL_J1208.9+5441_daily_bin1200.fits
Exposure map: /scratch/kocevski/359743/expmap_550368001_550627201_4FGL_J1208.9+5441_daily_bin1200.fits
Exposure cube: /scratch/kocevski/359743/ltcube_550368001_550627201_4FGL_J1208.9+5441_daily_bin1200.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/359743/Model_4FGL_J1208.9+5441_daily_bin1200.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 169.425229309

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 167.223940855

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7572       1.0000         .10000E-03   10000.    
     2 'norm      '    2.5251       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.6355       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.7144       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.3828       1.0000         .10000E-03   10000.    
     6 'norm      '    2.6916       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.9060       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.7272       1.0000         .10000E-03   10000.    
     9 'norm      '    2.0568       1.0000         .10000E-03   10000.    
    10 'Prefactor '    62.238       1.0000         .10000E-03   10000.    
    11 'norm      '    1.8412       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.0472       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.2788       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.7725       1.0000         .10000E-03   10000.    
    15 'norm      '    2.4226       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.2531       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.4032       1.0000         .10000E-03   10000.    
    18 'norm      '    .38311E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.2048       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.1042       1.0000         .10000E-03   10000.    
    21 'norm      '    3.6111       1.0000         .10000E-03   10000.    
    22 'Prefactor '    323.84       1.0000         .10000E-03   10000.    
    23 'norm      '    .33420E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.9973       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.9880       1.0000         .10000E-03   10000.    
    26 'norm      '    .37850E-02   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0566       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   167.2062     FROM MIGRAD    STATUS=CONVERGED    133 CALLS      298 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7572        1.0038         .0000         .0000    
   2  norm          2.5251        1.0211         .0000         .0000    
   3  Prefactor     .18666E-01    .46466E-01   -.10210E-03    .31465E-02
   4  Prefactor     2.7144        1.0181         .0000         .0000    
   5  Prefactor     .15910        .36885       -.41333E-04   -.27011E-02
   6  norm          .10002E-03    .96360E-01    .10368E-04** at limit **
   7  Prefactor     1.9060        1.0394         .0000         .0000    
   8  Prefactor     9.7272        1.0013         .0000         .0000    
   9  norm          2.0568        1.0331         .0000         .0000    
  10  Prefactor     63.752        1.0120       -.21085E-04    .23585E-03
  11  norm          1.8412        1.0427         .0000         .0000    
  12  Prefactor     .21554E-03    .35681E-01    .28497E-04** at limit **
  13  Prefactor     3.2788        1.0121         .0000         .0000    
  14  Prefactor     1.7725        1.0467         .0000         .0000    
  15  norm          .16956        .27061       -.61498E-04   -.43365E-02
  16  Prefactor     3.2531        1.0123         .0000         .0000    
  17  Prefactor     7.4032        1.0023         .0000         .0000    
  18  norm          .10000E-03    .23881       -.19865E-05** at limit **
  19  Prefactor     .10000E-03    .26649        .23200E-05** at limit **
  20  Prefactor     1.1042        1.1851         .0000         .0000    
  21  norm          3.6111        1.0099         .0000         .0000    
  22  Prefactor     320.48        .99498       -.36138E-05    .20925E-01
  23  norm          .10000E-03    .28472       -.12753E-04** at limit **
  24  Prefactor     7.9973        1.0020         .0000         .0000    
  25  Prefactor     1.9880        1.0358         .0000         .0000    
  26  norm          .10000E-03    .23917        .49365E-05** at limit **
  27  Normalizat    .10000E-01    .25505        .13290E-04** at limit **
  28  Prefactor     1.0617        1.1865        .40830E-04   -.55792E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.75724
  norm       = 2.52509
  Prefactor  = 0.018666
  Prefactor  = 2.71437
  Prefactor  = 0.159099
  norm       = 0.000100016
  Prefactor  = 1.90603
  Prefactor  = 9.72722
  norm       = 2.05675
  Prefactor  = 63.7518
  norm       = 1.84122
  Prefactor  = 0.000215545
  Prefactor  = 3.27881
  Prefactor  = 1.77245
  norm       = 0.169556
  Prefactor  = 3.2531
  Prefactor  = 7.4032
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.10422
  norm       = 3.61115
  Prefactor  = 320.482
  norm       = 0.000100003
  Prefactor  = 7.99726
  Prefactor  = 1.98797
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.06168
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   167.2062     FROM HESSE     STATUS=FAILED        11 CALLS      309 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     524.20        518.40         .0000       -1.5228    
   2  norm          2.5251        1.0211         .0000       -1.5390    
   3  Prefactor     .18666E-01    .46466E-01   -.10210E-03   -1.5681    
   4  Prefactor     2.7144        1.0181         .0000       -1.5378    
   5  Prefactor     .15910        .36885       -.41333E-04   -1.5788    
   6  norm          .10002E-03    .96360E-01    .10368E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.9060        1.0394         .0000       -1.5432    
   8  Prefactor     9.7272        1.0013         .0000       -1.5084    
   9  norm          2.0568        1.0331         .0000       -1.5421    
  10  Prefactor     63.752        1.0120       -.21085E-04   -1.4109    
  11  norm          1.8412        1.0427         .0000       -1.5437    
  12  Prefactor     .21554E-03    .35681E-01    .28497E-04   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.2788        1.0121         .0000       -1.5346    
  14  Prefactor     1.7725        1.0467         .0000       -1.5442    
  15  norm          .16956        .27061       -.61498E-04   -1.5790    
  16  Prefactor     3.2531        1.0123         .0000       -1.5347    
  17  Prefactor     7.4032        1.0023         .0000       -1.5164    
  18  norm          .10000E-03    .23881       -.19865E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .26649        .23200E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.1042        1.1851         .0000       -1.5498    
  21  norm          3.6111        1.0099         .0000       -1.5328    
  22  Prefactor     320.48        .99498       -.36138E-05   -1.2108    
  23  norm          .10000E-03    .28472       -.12753E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     7.9973        1.0020         .0000       -1.5142    
  25  Prefactor     1.9880        1.0358         .0000       -1.5426    
  26  norm          .10000E-03    .23917        .49365E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .10000E-01    .25505        .13290E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     1.0617        1.1865        .40830E-04   -.90701    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.25797e-09
Minuit parameter uncertainties:
  1  1.00382
  2  1.02109
  3  0.0464663
  4  1.01806
  5  0.368857
  6  7.81983e-05
  7  1.03938
  8  1.00133
  9  1.03311
  10  1.01204
  11  1.04267
  12  0.00406093
  13  1.01213
  14  1.04666
  15  0.270616
  16  1.01233
  17  1.0023
  18  6.21204e-06
  19  7.29988e-06
  20  1.18513
  21  1.00992
  22  0.994978
  23  5.36169e-05
  24  1.00197
  25  1.03576
  26  1.10352e-05
  27  3.09386e-07
  28  1.21799
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 167.206163302

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  1.696e-01  2.706e-01  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.062e+00  1.218e+00  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.000e-02  3.094e-07  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = -1.05343038351

TS (Fixed Index): -0.00
Ra Dec: 182.226 54.700
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -2.64e+02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/359743/likelihoodResults_550368001_550627201_4FGL_J1208.9+5441_daily_bin1200.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) = 167.206485155
delta logL = -0.000321853088309

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 167.206485155
delta logL = -0.000321853087883

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'alpha     '    2.4964       1.0000          .0000       5.0000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   167.2065     FROM MIGRAD    STATUS=CONVERGED     23 CALLS       91 TOTAL
                     EDM=   .24E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    alpha       2.4964        3.7211         .0000       -.64197E-08
                               ERR DEF=  .500    
Final values: 
  alpha      = 2.49643
 **********
 **   18 **HESSE 
 **********

 FCN=   167.2065     FROM HESSE     STATUS=OK             9 CALLS      100 TOTAL
                     EDM=   .56E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    alpha       2.4964        2.6019        .16461       -.14268E-02
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.55331e-14
Minuit parameter uncertainties:
  1  290.386
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/359743': 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) = 167.206485155
delta logL = -0.000321853087883

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  1.695e-01  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11) fixed
377        alpha:  2.496e+00  2.904e+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:  1.061e+00  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
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.000e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


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/359743/cmap_HighResolution_550368001_550627201_4FGL_J1208.9+5441_daily_bin1200.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-2.64e+02', job_status='DONE', photon_flux_upper_limit='-1.00e+00', time_completed='2021-09-05 01:42:21.550965', job_id='359743', GAL2='1.06', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630831341.55', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='1.06', dlogl='-3.22e-04', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1200' AND source_name='4FGL J1208.9+5441' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 01:42:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 359743: <4FGL_J1208.9+5441_daily_bin1200> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1208.9+5441_daily_bin1200 182.226 54.6995 550368001 550627201 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 :                                   337.04 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             171.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   634 sec.
    Turnaround time :                            638 sec.

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

