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


Performing analysis on: 4FGL_J1608.7+1029_daily_bin1211
RA = 242.176, Dec = 10.4938
tmin = 553219201, tmax = 553478401
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='54942', job_status='RUN', time_executed='2021-09-13 09:44:21.454705', time_epoch_executed='1631551461.45' WHERE source_name='4FGL J1608.7+1029' and cadence='daily' and bin_id='1211'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/54942

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/54942/ft1_4FGL_J1608.7+1029_daily_bin1211.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/54942/ft2_4FGL_J1608.7+1029_daily_bin1211.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/54942/ft1_4FGL_J1608.7+1029_daily_bin1211.fits outfile=/scratch/kocevski/54942/ft1_filteredMKT_4FGL_J1608.7+1029_daily_bin1211.fits ra=242.176 dec=10.4938 rad=12.0 tmin=553219201.0 tmax=553478401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.06
user 2.59
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/54942/ft2_4FGL_J1608.7+1029_daily_bin1211.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/54942/ft2_4FGL_J1608.7+1029_daily_bin1211.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/54942/ft1_filteredMKT_4FGL_J1608.7+1029_daily_bin1211.fits evtable="EVENTS" outfile="/scratch/kocevski/54942/ft1_filtered_4FGL_J1608.7+1029_daily_bin1211.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.50
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/54942/ft1_filtered_4FGL_J1608.7+1029_daily_bin1211.fits" evtable="EVENTS" scfile=/scratch/kocevski/54942/ft2_4FGL_J1608.7+1029_daily_bin1211.fits sctable="SC_DATA" outfile=/scratch/kocevski/54942/ltcube_553219201_553478401_4FGL_J1608.7+1029_daily_bin1211.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/54942/ft2_4FGL_J1608.7+1029_daily_bin1211.fits
.....................!
real 16.46
user 15.99
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/54942/ft1_filtered_4FGL_J1608.7+1029_daily_bin1211.fits evtable="EVENTS" scfile=/scratch/kocevski/54942/ft2_4FGL_J1608.7+1029_daily_bin1211.fits sctable="SC_DATA" expcube=/scratch/kocevski/54942/ltcube_553219201_553478401_4FGL_J1608.7+1029_daily_bin1211.fits outfile=/scratch/kocevski/54942/expmap_553219201_553478401_4FGL_J1608.7+1029_daily_bin1211.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/54942/ltcube_553219201_553478401_4FGL_J1608.7+1029_daily_bin1211.fits
.....................!
real 192.12
user 186.85
sys 4.33

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 158 point sources and 0 extended sources

Setting source of interest to:
4FGL J1608.7+1029 @ 242.176 10.4938

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/54942/ft1_filtered_4FGL_J1608.7+1029_daily_bin1211.fits scfile=/scratch/kocevski/54942/ft2_4FGL_J1608.7+1029_daily_bin1211.fits outfile=/scratch/kocevski/54942/cmap_553219201_553478401_4FGL_J1608.7+1029_daily_bin1211.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=242.176 yref=10.4938 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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/54942/ft1_filtered_4FGL_J1608.7+1029_daily_bin1211.fits scfile=/scratch/kocevski/54942/ft2_4FGL_J1608.7+1029_daily_bin1211.fits outfile=/scratch/kocevski/54942/cmap_HighResolution_553219201_553478401_4FGL_J1608.7+1029_daily_bin1211.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=242.176 yref=10.4938 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/54942/ft1_filtered_4FGL_J1608.7+1029_daily_bin1211.fits evtable="EVENTS" scfile=/scratch/kocevski/54942/ft2_4FGL_J1608.7+1029_daily_bin1211.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/54942/Model_4FGL_J1608.7+1029_daily_bin1211.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/54942/ft1_filtered_4FGL_J1608.7+1029_daily_bin1211.fits.....................!
real 69.19
user 67.72
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/54942/ft1_filtered_4FGL_J1608.7+1029_daily_bin1211.fits', '/scratch/kocevski/54942/ft2_4FGL_J1608.7+1029_daily_bin1211.fits', expMap='/scratch/kocevski/54942/expmap_553219201_553478401_4FGL_J1608.7+1029_daily_bin1211.fits', expCube='/scratch/kocevski/54942/ltcube_553219201_553478401_4FGL_J1608.7+1029_daily_bin1211.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/54942/Model_4FGL_J1608.7+1029_daily_bin1211.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1608.7+1029'

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  8.130e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
262        alpha:  2.458e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
263         beta:  1.591e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
264           Eb:  5.195e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/54942/ft1_filtered_4FGL_J1608.7+1029_daily_bin1211.fits
Spacecraft file(s): /scratch/kocevski/54942/ft2_4FGL_J1608.7+1029_daily_bin1211.fits
Exposure map: /scratch/kocevski/54942/expmap_553219201_553478401_4FGL_J1608.7+1029_daily_bin1211.fits
Exposure cube: /scratch/kocevski/54942/ltcube_553219201_553478401_4FGL_J1608.7+1029_daily_bin1211.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/54942/Model_4FGL_J1608.7+1029_daily_bin1211.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) = 9101.87033221

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11142E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.2687       1.0000         .10000E-03   10000.    
     4 'norm      '    4.8874       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.936       1.0000         .10000E-03   10000.    
     7 'norm      '    .25222       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14818E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    11.839       1.0000         .10000E-03   10000.    
    10 'norm      '    1.0816       1.0000         .10000E-03   10000.    
    11 'norm      '    .10139E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    20.629       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .36972E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.1041       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10328E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.9856       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .98657       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0645       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9101.863     FROM MIGRAD    STATUS=CONVERGED    454 CALLS     2207 TOTAL
                     EDM=   .67E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.065        .10431E-06** at limit **
   2  Prefactor     .10000E-03    10.838        .65145E-07** at limit **
   3  Prefactor     5.2639        18.954       -.72839E-06   -.22551E-04
   4  norm          4.8876        2.6893        .64234E-07    .42629E-04
   5  Prefactor     .10000E-03    2.2073        .10191E-06** at limit **
   6  Prefactor     24.936        28.316        .18155E-06   -.17561E-04
   7  norm          .26117        2.1175        .30141E-06   -.52865E-04
   8  Prefactor     .10000E-03    69.919        .34102E-06** at limit **
   9  norm          11.838        8.3918        .22152E-06   -.25302E-04
  10  norm          1.0816        .94891       -.16562E-07   -.50404E-04
  11  norm          .10000E-03    29.061        .21400E-06** at limit **
  12  norm          20.358        91.750       -.52638E-05   -.36318E-04
  13  Prefactor     .10000E-03    7.1582        .20530E-06** at limit **
  14  Prefactor     .10000E-03    98.024       -.22829E-06** at limit **
  15  Prefactor     .10000E-03    10.347        .73227E-07** at limit **
  16  Prefactor     .10000E-03    8.1051        .73016E-07** at limit **
  17  Prefactor     4.1051        10.497        .48632E-06    .70318E-04
  18  Prefactor     .10000E-03    17.786        .39725E-06** at limit **
  19  Prefactor     4.9898        9.8118        .25315E-06    .90403E-04
  20  Normalizat    .98694        .26584       -.72965E-05   -.77690E-04
  21  Prefactor     1.0643        .11918        .28557E-05   -.29224E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.26393
  norm       = 4.88759
  Prefactor  = 0.0001
  Prefactor  = 24.936
  norm       = 0.261166
  Prefactor  = 0.0001
  norm       = 11.8384
  norm       = 1.08163
  norm       = 0.0001
  norm       = 20.3583
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.10514
  Prefactor  = 0.0001
  Prefactor  = 4.98977
  Normalizat = 0.986944
  Prefactor  = 1.06431
 **********
 **   18 **HESSE 
 **********

 FCN=   9101.863     FROM HESSE     STATUS=OK           317 CALLS     2524 TOTAL
                     EDM=   .70E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.2639        18.855        .17511E-03   -1.5249    
   4  norm          4.8876        2.6849        .10936E-03   -1.5266    
   5  Prefactor     .10000E-03    2.2372        .13839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     24.936        28.296        .80219E-04   -1.4709    
   7  norm          .26117        5.5692        .26374E-02   -1.5606    
   8  Prefactor     .10000E-03    70.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          11.838        8.3724        .11642E-03   -1.5020    
  10  norm          1.0816        .93799        .84368E-04   -1.5500    
  11  norm          .10000E-03    29.876        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          20.358        94.258        .44093E-03   -1.4805    
  13  Prefactor     .10000E-03    7.2127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    98.168        .21299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.1671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.1051        10.509        .19900E-03   -1.5303    
  18  Prefactor     .10000E-03    18.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.9898        9.8427        .18011E-03   -1.5261    
  20  Normalizat    .98694        .26696        .39216E-03   -.93469    
  21  Prefactor     1.0643        .11961        .16825E-03   -.90616    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.03706e-08
Minuit parameter uncertainties:
  1  2.55154e-05
  2  1.61291e-05
  3  18.8765
  4  2.68492
  5  4.28428e-06
  6  28.3114
  7  2.41185
  8  0.000135426
  9  8.37324
  10  0.938004
  11  8.66395e-05
  12  87.8394
  13  3.0834e-05
  14  6.28954e-05
  15  1.01092e-05
  16  2.00138e-06
  17  10.5137
  18  3.70016e-05
  19  9.84592
  20  0.267318
  21  0.11964
Done.

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

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  1.000e-04  8.664e-05  1.000e-04  1.000e+04 ( 1.000e-12)
262        alpha:  2.458e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
263         beta:  1.591e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
264           Eb:  5.195e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  1.064e+00  1.196e-01  0.000e+00  1.000e+01 ( 1.000e+00)
520        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
521        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
518   Normalization:  9.869e-01  2.673e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 242.176 10.494
Photon Flux Upper Limit: 9.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.85e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/54942/likelihoodResults_553219201_553478401_4FGL_J1608.7+1029_daily_bin1211.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9101.86285486
delta logL = -0.00015964162958

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9101.86269515
delta logL = 6.67623680783e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11854E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5424       1.0000          .0000       5.0000    
     3 'Normalizat'    .98711       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0642       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5220E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   9101.851     FROM MIGRAD    STATUS=FAILED       194 CALLS      344 TOTAL
                     EDM=   .36E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0945        24.077        .55660E-02   -.62824E-02
   2  alpha         3.4315        4.2148        .16464        .13392E-04
   3  Normalizat    .97692        .26741        .39217E-03    .23597E-04
   4  Prefactor     1.0661        .11743        .16825E-03    .18206E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9101.851     FROM SIMPLEX   STATUS=UNCHANGED     66 CALLS      410 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0945        24.077        .57076E-03   -1.5917    
   2  alpha         3.4315        4.2148        .11209E-01    .38179    
   3  Normalizat    .97692        .26741        .15475E-03   -.93808    
   4  Prefactor     1.0661        .11743        .54294E-04   -.90556    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9101.851     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      441 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0946        14.834        .11132E-02   -.23846E-03
   2  alpha         3.4314        4.1121        .65855E-02   -.15192E-05
   3  Normalizat    .97692        .26932        .15687E-04    .35947E-04
   4  Prefactor     1.0661        .11751        .33649E-04    .11960E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.0946
  alpha      = 3.43141
  Normalizat = 0.976919
  Prefactor  = 1.06613
 **********
 **   18 **HESSE 
 **********

 FCN=   9101.851     FROM HESSE     STATUS=OK            25 CALLS      466 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0946        15.405        .22264E-03   -1.5917    
   2  alpha         3.4314        4.1241        .26342E-03    .38177    
   3  Normalizat    .97692        .26975        .31373E-05   -.93808    
   4  Prefactor     1.0661        .11760        .67299E-05   -.90556    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08612e-11
Minuit parameter uncertainties:
  1  8.21499
  2  3.63618
  3  0.270124
  4  0.117631
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/54942': 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) = 9101.85128959
delta logL = 0.01140562623

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  1.095e+00  8.215e+00  1.000e-04  1.000e+04 ( 1.000e-12)
262        alpha:  3.431e+00  3.636e+00  0.000e+00  5.000e+00 ( 1.000e+00)
263         beta:  1.591e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
264           Eb:  5.195e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  1.066e+00  1.176e-01  0.000e+00  1.000e+01 ( 1.000e+00)
520        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
521        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
518   Normalization:  9.769e-01  2.701e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 242.176 10.494

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/54942/cmap_HighResolution_553219201_553478401_4FGL_J1608.7+1029_daily_bin1211.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.85e-05', job_status='DONE', photon_flux_upper_limit='9.98e-08', time_completed='2021-09-13 09:56:20.393799', job_id='54942', GAL2='1.07', fit_tolerance='1e-08', EG2='0.98', EG='0.99', time_epoch_completed='1631552180.39', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='1.14e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='1211' AND source_name='4FGL J1608.7+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 09:56:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0187>
Subject: Job 54942: <4FGL_J1608.7+1029_daily_bin1211> in cluster <slac> Done

Job <4FGL_J1608.7+1029_daily_bin1211> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 13 09:40:22 2021
Job was executed on host(s) <bullet0187>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 09:41:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 13 09:41:54 2021
Terminated at Mon Sep 13 09:56:21 2021
Results reported at Mon Sep 13 09:56:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1608.7+1029_daily_bin1211 242.176 10.4938 553219201 553478401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1608.7+1029 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   716.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   866 sec.
    Turnaround time :                            959 sec.

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

