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


Performing analysis on: 4FGL_J1208.9+5441_daily_bin40
RA = 182.226, Dec = 54.6995
tmin = 249696001, tmax = 249955201
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='351275', job_status='RUN', time_executed='2021-09-05 01:07:45.211750', time_epoch_executed='1630829265.21' WHERE source_name='4FGL J1208.9+5441' and cadence='daily' and bin_id='40'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/351275

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/351275/ft1_4FGL_J1208.9+5441_daily_bin40.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/351275/ft2_4FGL_J1208.9+5441_daily_bin40.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/351275/ft1_4FGL_J1208.9+5441_daily_bin40.fits outfile=/scratch/kocevski/351275/ft1_filteredMKT_4FGL_J1208.9+5441_daily_bin40.fits ra=182.226 dec=54.6995 rad=12.0 tmin=249696001.0 tmax=249955201.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.49
user 1.26
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/351275/ft2_4FGL_J1208.9+5441_daily_bin40.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/351275/ft1_filteredMKT_4FGL_J1208.9+5441_daily_bin40.fits evtable="EVENTS" outfile="/scratch/kocevski/351275/ft1_filtered_4FGL_J1208.9+5441_daily_bin40.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/351275/ft1_filtered_4FGL_J1208.9+5441_daily_bin40.fits evtable="EVENTS" scfile=/scratch/kocevski/351275/ft2_4FGL_J1208.9+5441_daily_bin40.fits sctable="SC_DATA" expcube=/scratch/kocevski/351275/ltcube_249696001_249955201_4FGL_J1208.9+5441_daily_bin40.fits outfile=/scratch/kocevski/351275/expmap_249696001_249955201_4FGL_J1208.9+5441_daily_bin40.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/351275/ltcube_249696001_249955201_4FGL_J1208.9+5441_daily_bin40.fits
.....................!
real 189.93
user 185.16
sys 4.45

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/351275/ft1_filtered_4FGL_J1208.9+5441_daily_bin40.fits scfile=/scratch/kocevski/351275/ft2_4FGL_J1208.9+5441_daily_bin40.fits outfile=/scratch/kocevski/351275/cmap_249696001_249955201_4FGL_J1208.9+5441_daily_bin40.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.33
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/351275/ft1_filtered_4FGL_J1208.9+5441_daily_bin40.fits scfile=/scratch/kocevski/351275/ft2_4FGL_J1208.9+5441_daily_bin40.fits outfile=/scratch/kocevski/351275/cmap_HighResolution_249696001_249955201_4FGL_J1208.9+5441_daily_bin40.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11520E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.5932       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10411E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.5715       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10296E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .78825       1.0000         .10000E-03   10000.    
    16 'Prefactor '    39.410       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.8641       1.0000         .10000E-03   10000.    
    18 'norm      '    4.0611       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.7997       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10506E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    9.9103       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.7710       1.0000         .10000E-03   10000.    
    24 'Prefactor '    54.589       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .11080E-01   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0284       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0186       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=   5019.944     FROM MIGRAD    STATUS=CONVERGED    712 CALLS     3541 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    191.30        .64539E-05** at limit **
   2  norm          4.5912        2.6443       -.10671E-06   -.17083E-03
   3  Prefactor     .10005E-03    103.51        .18580E-04** at limit **
   4  Prefactor     .10000E-03    13.745       -.11598E-06** at limit **
   5  Prefactor     .10000E-03    33.515        .17702E-05** at limit **
   6  norm          .10000E-03    19.794       -.70753E-06** at limit **
   7  Prefactor     3.5687        7.6244        .98692E-05   -.72730E-03
   8  Prefactor     .10000E-03    17.414        .78042E-06** at limit **
   9  norm          .10000E-03    4.0786        .10238E-07** at limit **
  10  Prefactor     .10000E-03    3.4351        .37332E-06** at limit **
  11  norm          .10000E-03    1.7575       -.10776E-06** at limit **
  12  Prefactor     .10000E-03    68.631       -.47446E-05** at limit **
  13  Prefactor     .10000E-03    3.3985       -.22242E-06** at limit **
  14  Prefactor     .10000E-03    12.645       -.18443E-05** at limit **
  15  norm          .78718        2.6599        .73328E-06   -.21137E-03
  16  Prefactor     39.407        26.567        .12557E-05    .13881E-03
  17  Prefactor     1.6769        230.31       -.35745E-04   -.78020E-04
  18  norm          4.0608        5.4186       -.27822E-06   -.10539E-04
  19  Prefactor     4.7986        12.975        .48716E-05   -.15815E-03
  20  Prefactor     .10000E-03    4.0450        .51336E-06** at limit **
  21  norm          9.9128        3.5297        .88102E-07   -.32295E-03
  22  Prefactor     .10000E-03    19.857       -.25748E-06** at limit **
  23  norm          3.7713        2.2264        .28100E-07   -.27563E-05
  24  Prefactor     54.492        64.382       -.88118E-05   -.34769E-03
  25  Prefactor     .10000E-03    12.202        .11944E-05** at limit **
  26  norm          .10141E-03    2.9115       -.65460E-06** at limit **
  27  Normalizat    1.0284        .18355       -.15478E-05   -.29863E-04
  28  Prefactor     1.0190        .22142       -.11831E-05   -.35991E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100007
  norm       = 4.59117
  Prefactor  = 0.00010005
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 3.56872
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.787178
  Prefactor  = 39.4075
  Prefactor  = 1.67695
  norm       = 4.06078
  Prefactor  = 4.79861
  Prefactor  = 0.0001
  norm       = 9.91276
  Prefactor  = 0.0001
  norm       = 3.77133
  Prefactor  = 54.4916
  Prefactor  = 0.0001
  norm       = 0.000101408
  Normalizat = 1.02836
  Prefactor  = 1.01895
 **********
 **   18 **HESSE 
 **********

 FCN=   5019.944     FROM HESSE     STATUS=OK           523 CALLS     4064 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    191.79        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.5912        2.6451        .85047E-04   -1.5279    
   3  Prefactor     .10005E-03    106.62        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    33.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    19.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.5687        7.8985        .10692E-02   -1.5330    
   8  Prefactor     .10000E-03    17.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.0791        .13975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.5818        .25608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.7656        .91713E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    70.630        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.4093        .12754E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .78718        2.6662        .19435E-03   -1.5531    
  16  Prefactor     39.407        26.603        .63848E-04   -1.4452    
  17  Prefactor     1.6769        245.83        .30516E-03   -1.5449    
  18  norm          4.0608        5.4023        .18089E-03   -1.5305    
  19  Prefactor     4.7986        13.001        .91818E-03   -1.5270    
  20  Prefactor     .10000E-03    27.621        .26691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          9.9128        3.4334        .74487E-04   -1.5078    
  22  Prefactor     .10000E-03    19.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.7713        2.2264        .78699E-04   -1.5320    
  24  Prefactor     54.492        66.077        .54289E-04   -1.4230    
  25  Prefactor     .10000E-03    12.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10141E-03    4.6854        .42964E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0284        .21706        .22536E-03   -.92086    
  28  Prefactor     1.0190        .26252        .28377E-03   -.92100    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.431e-09
Minuit parameter uncertainties:
  1  0.00234715
  2  2.64521
  3  0.00464027
  4  5.19456e-05
  5  0.000273753
  6  9.11225e-05
  7  7.90081
  8  3.39293e-05
  9  5.91959e-08
  10  9.35466e-06
  11  1.19213e-06
  12  0.00118143
  13  1.45699e-05
  14  1.4045e-05
  15  2.66655
  16  26.6108
  17  40.7778
  18  5.40294
  19  13.0088
  20  0.000182034
  21  3.43348
  22  7.35529e-05
  23  2.22649
  24  66.1658
  25  0.000124844
  26  0.00513772
  27  0.217251
  28  0.262847
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
703    Prefactor:  1.019e+00  2.628e-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.028e+00  2.173e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/351275/likelihoodResults_249696001_249955201_4FGL_J1208.9+5441_daily_bin40.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) = 5019.92277757
delta logL = 0.0213723874313

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5019.92196768
delta logL = 0.022182277241

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .72885       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0775       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0197       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0273       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=   5019.922     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      251 TOTAL
                     EDM=   .72E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .73184        4.4394        .15482E-03    .21882E-04
   2  alpha         3.0891        4.0195        .64120E-01    .16991E-05
   3  Normalizat    1.0196        .21569        .22624E-03   -.70351E-05
   4  Prefactor     1.0273        .26813        .28276E-03   -.71970E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.731838
  alpha      = 3.08911
  Normalizat = 1.01955
  Prefactor  = 1.02729
 **********
 **   18 **HESSE 
 **********

 FCN=   5019.922     FROM HESSE     STATUS=OK            25 CALLS      276 TOTAL
                     EDM=   .70E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .73184        2.6417        .61930E-05   -1.5537    
   2  alpha         3.0891        3.9746        .25648E-02    .23788    
   3  Normalizat    1.0196        .21559        .90495E-05   -.92378    
   4  Prefactor     1.0273        .26593        .11310E-04   -.91825    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.04682e-13
Minuit parameter uncertainties:
  1  2.6421
  2  3.57747
  3  0.215777
  4  0.266276
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/351275': 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) = 5019.92195384
delta logL = 0.0221961109301

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  7.318e-01  2.642e+00  1.000e-04  1.000e+04 ( 1.000e-11)
377        alpha:  3.089e+00  3.577e+00  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.027e+00  2.663e-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.020e+00  2.158e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.10
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/351275/cmap_HighResolution_249696001_249955201_4FGL_J1208.9+5441_daily_bin40.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.81e-05', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2021-09-05 01:20:41.552285', job_id='351275', GAL2='1.03', fit_tolerance='1e-08', EG2='1.02', EG='1.03', time_epoch_completed='1630830041.55', return_code2='0', ts='0.10', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='2.22e-02', ts2='0.15', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='40' AND source_name='4FGL J1208.9+5441' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 01:20:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0292>
Subject: Job 351275: <4FGL_J1208.9+5441_daily_bin40> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1208.9+5441_daily_bin40 182.226 54.6995 249696001 249955201 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 :                                   775.20 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             300.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            893 sec.

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

