/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 6 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7405
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1208.9+5441_daily_bin13
RA = 182.226, Dec = 54.6995
tmin = 242697601, tmax = 242956801
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='351185', job_status='RUN', time_executed='2021-09-05 01:06:11.525803', time_epoch_executed='1630829171.53' WHERE source_name='4FGL J1208.9+5441' and cadence='daily' and bin_id='13'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/351185

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/351185/ft1_4FGL_J1208.9+5441_daily_bin13.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/351185/ft2_4FGL_J1208.9+5441_daily_bin13.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/351185/ft1_4FGL_J1208.9+5441_daily_bin13.fits outfile=/scratch/kocevski/351185/ft1_filteredMKT_4FGL_J1208.9+5441_daily_bin13.fits ra=182.226 dec=54.6995 rad=12.0 tmin=242697601.0 tmax=242956801.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 1.46
user 1.25
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/351185/ft1_filtered_4FGL_J1208.9+5441_daily_bin13.fits evtable="EVENTS" scfile=/scratch/kocevski/351185/ft2_4FGL_J1208.9+5441_daily_bin13.fits sctable="SC_DATA" expcube=/scratch/kocevski/351185/ltcube_242697601_242956801_4FGL_J1208.9+5441_daily_bin13.fits outfile=/scratch/kocevski/351185/expmap_242697601_242956801_4FGL_J1208.9+5441_daily_bin13.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/351185/ltcube_242697601_242956801_4FGL_J1208.9+5441_daily_bin13.fits
.....................!
real 192.32
user 186.53
sys 5.48

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/351185/ft1_filtered_4FGL_J1208.9+5441_daily_bin13.fits scfile=/scratch/kocevski/351185/ft2_4FGL_J1208.9+5441_daily_bin13.fits outfile=/scratch/kocevski/351185/cmap_242697601_242956801_4FGL_J1208.9+5441_daily_bin13.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/351185/ft1_filtered_4FGL_J1208.9+5441_daily_bin13.fits scfile=/scratch/kocevski/351185/ft2_4FGL_J1208.9+5441_daily_bin13.fits outfile=/scratch/kocevski/351185/cmap_HighResolution_242697601_242956801_4FGL_J1208.9+5441_daily_bin13.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    86.922       1.0000         .10000E-03   10000.    
     2 'norm      '    3.0589       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.9513       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.2872       1.0000         .10000E-03   10000.    
     9 'norm      '    5.3756       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.4712       1.0000         .10000E-03   10000.    
    11 'norm      '    .11915E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.1012       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.8038       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    48.140       1.0000         .10000E-03   10000.    
    18 'norm      '    .94986       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.5263       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.5867       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.9750       1.0000         .10000E-03   10000.    
    24 'Prefactor '    24.368       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .15321       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.4043       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .71567       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=   7182.075     FROM MIGRAD    STATUS=CONVERGED    669 CALLS     3034 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     86.928        84.522        .48886E-07    .17951E-04
   2  norm          3.0583        2.2248        .25219E-07    .20351E-04
   3  Prefactor     6.9356        82.368       -.85235E-06   -.32421E-04
   4  Prefactor     .10000E-03    15.777       -.13922E-06** at limit **
   5  Prefactor     .10000E-03    59.348        .13644E-06** at limit **
   6  norm          .10000E-03    14.210       -.22083E-06** at limit **
   7  Prefactor     .10000E-03    2.0516       -.27535E-06** at limit **
   8  Prefactor     6.2565        28.729       -.12715E-05   -.95261E-04
   9  norm          5.3734        9.1121        .23421E-05   -.63496E-04
  10  Prefactor     8.4707        4.2532       -.53811E-07   -.16554E-03
  11  norm          .10000E-03    5.9139       -.96426E-06** at limit **
  12  Prefactor     8.0987        17.760       -.56621E-07   -.27226E-04
  13  Prefactor     .10000E-03    3.3934       -.18514E-06** at limit **
  14  Prefactor     .10000E-03    8.0734       -.17538E-06** at limit **
  15  norm          3.8031        2.5112        .15571E-07   -.20395E-04
  16  Prefactor     .10000E-03    6.4748       -.65597E-07** at limit **
  17  Prefactor     48.122        47.603       -.51686E-06   -.95158E-04
  18  norm          .95019        6.3804        .38343E-05    .45697E-04
  19  Prefactor     6.5241        17.390       -.18439E-05   -.84408E-04
  20  Prefactor     .10000E-03    4.8296        .19902E-06** at limit **
  21  norm          1.5866        1.2942       -.13152E-07    .49985E-04
  22  Prefactor     .10000E-03    9.0584        .19175E-06** at limit **
  23  norm          1.9751        1.6075        .24033E-07   -.40963E-04
  24  Prefactor     24.361        33.201       -.89816E-07   -.42738E-04
  25  Prefactor     .10000E-03    2.4181        .48725E-07** at limit **
  26  norm          .17317        2.7277        .15363E-07   -.27722E-04
  27  Normalizat    1.4046        .17035        .15160E-05   -.19619E-03
  28  Prefactor     .71518        .20055       -.29153E-05    .45412E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 86.9278
  norm       = 3.05831
  Prefactor  = 6.93559
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.25651
  norm       = 5.37338
  Prefactor  = 8.47067
  norm       = 0.0001
  Prefactor  = 8.09871
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.80308
  Prefactor  = 0.0001
  Prefactor  = 48.122
  norm       = 0.950193
  Prefactor  = 6.5241
  Prefactor  = 0.0001
  norm       = 1.58664
  Prefactor  = 0.0001
  norm       = 1.97512
  Prefactor  = 24.3607
  Prefactor  = 0.0001
  norm       = 0.173166
  Normalizat = 1.40458
  Prefactor  = 0.715184
 **********
 **   18 **HESSE 
 **********

 FCN=   7182.075     FROM HESSE     STATUS=OK           523 CALLS     3557 TOTAL
                     EDM=   .62E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     86.928        84.582        .43092E-04   -1.3841    
   2  norm          3.0583        2.2214        .10361E-03   -1.5358    
   3  Prefactor     6.9356        83.100        .15216E-03   -1.5181    
   4  Prefactor     .10000E-03    15.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    59.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    14.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.0598        .11847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.2565        29.448        .16009E-03   -1.5208    
   9  norm          5.3734        9.0993        .86664E-03   -1.5244    
  10  Prefactor     8.4707        4.2473        .11005E-03   -1.5126    
  11  norm          .10000E-03    6.1730        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.0987        17.706        .14086E-03   -1.5139    
  13  Prefactor     .10000E-03    3.4063        .15241E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.0796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.8031        2.5155        .10301E-03   -1.5318    
  16  Prefactor     .10000E-03    6.4842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     48.122        47.790        .28897E-03   -1.4319    
  18  norm          .95019        6.4074        .38596E-03   -1.5513    
  19  Prefactor     6.5241        17.152        .15709E-03   -1.5197    
  20  Prefactor     .10000E-03    4.9325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.5866        1.2993        .84785E-04   -1.5456    
  22  Prefactor     .10000E-03    9.0841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.9751        1.6034        .94052E-04   -1.5427    
  24  Prefactor     24.361        33.234        .81148E-04   -1.4720    
  25  Prefactor     .10000E-03    2.4208        .12870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .17317        10.711        .27139E-02   -1.5625    
  27  Normalizat    1.4046        .19662        .21084E-03   -.80496    
  28  Prefactor     .71518        .22803        .34595E-03   -1.0293    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.24695e-08
Minuit parameter uncertainties:
  1  84.6998
  2  2.22148
  3  48.0978
  4  8.05845e-05
  5  3.47115e-05
  6  8.83144e-05
  7  3.31702e-06
  8  27.169
  9  9.10163
  10  4.24744
  11  1.36407e-05
  12  17.7171
  13  1.89739e-06
  14  3.3513e-07
  15  2.51555
  16  1.47647e-05
  17  47.828
  18  4.93538
  19  17.1652
  20  1.15679e-06
  21  1.29935
  22  1.18615e-05
  23  1.60339
  24  33.2597
  25  1.64421e-08
  26  2.72349
  27  0.196727
  28  0.228328
Done.

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

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  3.803e+00  2.516e+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:  7.152e-01  2.283e-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.405e+00  1.967e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.07
Ra Dec: 182.226 54.700
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 5.95e-08 +/- 3.93e-08
Energy Flux (Fixed Index): 1.57e-05 +/- 1.04e-05

TS (Fixed Index): 3.07
Ra Dec: 182.226 54.700
Photon Flux Upper Limit: 1.36e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.58e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/351185/likelihoodResults_242697601_242956801_4FGL_J1208.9+5441_daily_bin13.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) = 7180.63800062
delta logL = 1.43732401692

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7180.63507362
delta logL = 1.44025101358

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .69674       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3292       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80132       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=   7180.635     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      313 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .69684        8.7570        .76528E-02    .68330E-03
   2  alpha         5.0000        3.6242        .46402    ** at limit **
   3  Normalizat    1.3292        .10456        .48726E-01    .57147E-05
   4  Prefactor     .80128        .12102        .74310E-01    .24365E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.696845
  alpha      = 5
  Normalizat = 1.32919
  Prefactor  = 0.801279
 **********
 **   18 **HESSE 
 **********

 FCN=   7180.635     FROM HESSE     STATUS=OK            35 CALLS      348 TOTAL
                     EDM=   .40E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .69684        .47852        .34487E-04   -1.5541    
   2  alpha         5.0000        3.1242        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.3292        .19222        .21541E-03   -.82699    
   4  Prefactor     .80128        .23063        .32888E-03   -.99681    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.04285e-13
Minuit parameter uncertainties:
  1  0.478527
  2  3.56725e-06
  3  0.192324
  4  0.230912
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/351185': 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) = 7180.63507349
delta logL = 1.44025115265

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  6.968e-01  4.785e-01  1.000e-04  1.000e+04 ( 1.000e-11)
377        alpha:  5.000e+00  3.567e-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:  8.013e-01  2.309e-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.329e+00  1.923e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.20
Ra Dec: 182.226 54.700
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 9.85e-08 +/- 6.72e-08
Energy Flux (Free Index): 1.32e-05 +/- 9.04e-06

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/351185/cmap_HighResolution_242697601_242956801_4FGL_J1208.9+5441_daily_bin13.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.58e-05', comment='SUCCESS', photon_flux='5.95e-08', energy_flux2='1.32e-05', photon_flux_error='3.93e-08', dlogl='1.44e+00', energy_flux='1.57e-05', photon_flux2='9.85e-08', job_status='DONE', time_completed='2021-09-05 01:21:59.868178', photon_index_error2='0.00', photon_index2='5.00', ts='3.07', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', photon_flux_upper_limit='1.36e-07', energy_flux_error2='9.04e-06', EG='1.40', time_epoch_completed='1630830119.87', return_code='0', job_id='351185', GAL2='0.80', EG2='1.33', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='6.72e-08', ts2='6.20', photon_index='2.51' WHERE bin_id='13' AND source_name='4FGL J1208.9+5441' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 01:21:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0166>
Subject: Job 351185: <4FGL_J1208.9+5441_daily_bin13> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1208.9+5441_daily_bin13 182.226 54.6995 242697601 242956801 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 :                                   946.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             345.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   973 sec.
    Turnaround time :                            975 sec.

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

