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


Performing analysis on: 4FGL_J1608.7+1029_daily_bin35
RA = 242.176, Dec = 10.4938
tmin = 248400001, tmax = 248659201
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='45876', job_status='RUN', time_executed='2021-09-13 09:16:28.379064', time_epoch_executed='1631549788.38' WHERE source_name='4FGL J1608.7+1029' and cadence='daily' and bin_id='35'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/45876

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/45876/ft1_4FGL_J1608.7+1029_daily_bin35.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/45876/ft2_4FGL_J1608.7+1029_daily_bin35.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/45876/ft1_4FGL_J1608.7+1029_daily_bin35.fits outfile=/scratch/kocevski/45876/ft1_filteredMKT_4FGL_J1608.7+1029_daily_bin35.fits ra=242.176 dec=10.4938 rad=12.0 tmin=248400001.0 tmax=248659201.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.44
user 1.25
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/45876/ft1_filtered_4FGL_J1608.7+1029_daily_bin35.fits" evtable="EVENTS" scfile=/scratch/kocevski/45876/ft2_4FGL_J1608.7+1029_daily_bin35.fits sctable="SC_DATA" outfile=/scratch/kocevski/45876/ltcube_248400001_248659201_4FGL_J1608.7+1029_daily_bin35.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/45876/ft2_4FGL_J1608.7+1029_daily_bin35.fits
.....................!
real 15.10
user 14.71
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/45876/ft1_filtered_4FGL_J1608.7+1029_daily_bin35.fits evtable="EVENTS" scfile=/scratch/kocevski/45876/ft2_4FGL_J1608.7+1029_daily_bin35.fits sctable="SC_DATA" expcube=/scratch/kocevski/45876/ltcube_248400001_248659201_4FGL_J1608.7+1029_daily_bin35.fits outfile=/scratch/kocevski/45876/expmap_248400001_248659201_4FGL_J1608.7+1029_daily_bin35.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/45876/ltcube_248400001_248659201_4FGL_J1608.7+1029_daily_bin35.fits
.....................!
real 191.08
user 186.07
sys 4.64

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/45876/ft1_filtered_4FGL_J1608.7+1029_daily_bin35.fits scfile=/scratch/kocevski/45876/ft2_4FGL_J1608.7+1029_daily_bin35.fits outfile=/scratch/kocevski/45876/cmap_248400001_248659201_4FGL_J1608.7+1029_daily_bin35.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.57
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/45876/ft1_filtered_4FGL_J1608.7+1029_daily_bin35.fits scfile=/scratch/kocevski/45876/ft2_4FGL_J1608.7+1029_daily_bin35.fits outfile=/scratch/kocevski/45876/cmap_HighResolution_248400001_248659201_4FGL_J1608.7+1029_daily_bin35.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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/45876/ft1_filtered_4FGL_J1608.7+1029_daily_bin35.fits evtable="EVENTS" scfile=/scratch/kocevski/45876/ft2_4FGL_J1608.7+1029_daily_bin35.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/45876/Model_4FGL_J1608.7+1029_daily_bin35.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/45876/ft1_filtered_4FGL_J1608.7+1029_daily_bin35.fits....................!
real 62.23
user 60.92
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/45876/ft1_filtered_4FGL_J1608.7+1029_daily_bin35.fits', '/scratch/kocevski/45876/ft2_4FGL_J1608.7+1029_daily_bin35.fits', expMap='/scratch/kocevski/45876/expmap_248400001_248659201_4FGL_J1608.7+1029_daily_bin35.fits', expCube='/scratch/kocevski/45876/ltcube_248400001_248659201_4FGL_J1608.7+1029_daily_bin35.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/45876/Model_4FGL_J1608.7+1029_daily_bin35.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/45876/ft1_filtered_4FGL_J1608.7+1029_daily_bin35.fits
Spacecraft file(s): /scratch/kocevski/45876/ft2_4FGL_J1608.7+1029_daily_bin35.fits
Exposure map: /scratch/kocevski/45876/expmap_248400001_248659201_4FGL_J1608.7+1029_daily_bin35.fits
Exposure cube: /scratch/kocevski/45876/ltcube_248400001_248659201_4FGL_J1608.7+1029_daily_bin35.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/45876/Model_4FGL_J1608.7+1029_daily_bin35.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) = 7915.4836115

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    82.210       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .66005       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.5810       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    21.004       1.0000         .10000E-03   10000.    
    10 'norm      '    5.6850       1.0000         .10000E-03   10000.    
    11 'norm      '    25.603       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    71.130       1.0000         .10000E-03   10000.    
    15 'Prefactor '    42.464       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .97961E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.8915       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .76234       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1088       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=   7915.483     FROM MIGRAD    STATUS=CONVERGED    443 CALLS     2849 TOTAL
                     EDM=   .27E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     82.210        46.730       -.70342E-07   -.36166E-05
   2  Prefactor     .10000E-03    19.577        .55835E-06** at limit **
   3  Prefactor     .10000E-03    16.895       -.84279E-05** at limit **
   4  norm          .65979        1.6705        .48898E-08   -.68630E-04
   5  Prefactor     2.5811        3.3810        .40890E-08   -.69628E-05
   6  Prefactor     .10000E-03    12.979        .27481E-05** at limit **
   7  norm          .10000E-03    1.8731       -.24115E-09** at limit **
   8  Prefactor     .10000E-03    21.689        .89779E-05** at limit **
   9  norm          21.005        10.184       -.13807E-09   -.38132E-04
  10  norm          5.6850        2.0996       -.27388E-09   -.15065E-04
  11  norm          25.604        15.960       -.53127E-07   -.64122E-05
  12  norm          .10000E-03    32.252       -.38925E-05** at limit **
  13  Prefactor     .10000E-03    7.8465       -.82631E-06** at limit **
  14  Prefactor     71.127        61.097       -.36757E-05    .26373E-06
  15  Prefactor     42.466        38.735        .18509E-05   -.29370E-05
  16  Prefactor     .10000E-03    7.4302        .46686E-06** at limit **
  17  Prefactor     .10000E-03    2.5023        .21329E-09** at limit **
  18  Prefactor     .10000E-03    4.7505       -.10191E-06** at limit **
  19  Prefactor     1.8902        1.1717        .56705E-07   -.77757E-03
  20  Normalizat    .76234        .26042       -.35114E-06    .79878E-05
  21  Prefactor     1.1087        .10926        .10946E-06    .20428E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 82.2104
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.659787
  Prefactor  = 2.58113
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 21.0048
  norm       = 5.68498
  norm       = 25.6036
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 71.1267
  Prefactor  = 42.4657
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 1.89016
  Normalizat = 0.762336
  Prefactor  = 1.10875
 **********
 **   18 **HESSE 
 **********

 FCN=   7915.483     FROM HESSE     STATUS=OK           317 CALLS     3166 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     82.210        46.922        .44299E-04   -1.3892    
   2  Prefactor     .10000E-03    19.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .65979        1.4520        .17663E-02   -1.5546    
   5  Prefactor     2.5811        3.3696        .17958E-03   -1.5387    
   6  Prefactor     .10000E-03    12.995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.9039        .11886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    21.725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          21.005        10.161        .43697E-03   -1.4791    
  10  norm          5.6850        2.0997        .75712E-04   -1.5231    
  11  norm          25.604        15.966        .79168E-04   -1.4696    
  12  norm          .10000E-03    32.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.8874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     71.127        61.139        .47599E-04   -1.4019    
  15  Prefactor     42.466        38.688        .61518E-04   -1.4404    
  16  Prefactor     .10000E-03    7.5350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.5232        .13743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    24.456        .37462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.8902        5.9077        .15127E-02   -1.5433    
  20  Normalizat    .76234        .29343        .43789E-03   -1.0148    
  21  Prefactor     1.1087        .12548        .16245E-03   -.89188    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16803e-08
Minuit parameter uncertainties:
  1  46.943
  2  1.55193e-07
  3  2.23167e-05
  4  1.45203
  5  3.3699
  6  8.02819e-07
  7  5.81067e-07
  8  6.88945e-06
  9  10.1622
  10  2.0997
  11  15.9686
  12  3.04079e-06
  13  1.10805e-06
  14  61.1929
  15  38.7107
  16  1.84278e-05
  17  2.99681e-07
  18  0.000309022
  19  5.90951
  20  0.294038
  21  0.125511
Done.

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

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  2.560e+01  1.597e+01  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.109e+00  1.255e-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:  7.623e-01  2.940e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.23
Ra Dec: 242.176 10.494
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 8.17e-08 +/- 5.09e-08
Energy Flux (Fixed Index): 2.33e-05 +/- 1.46e-05

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) = 7915.27459611
delta logL = 0.208848730102

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7915.27336181
delta logL = 0.2100830263

Fit tolerance = 1e-08

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

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

 FCN=   7915.273     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      261 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          21.977        190.41        .21369E-02   -.55522E-04
   2  alpha         3.0374        3.8773        .42419        .43647E-04
   3  Normalizat    .69604        .12150        .10299        .13582E-03
   4  Prefactor     1.1274        .39027E-01    .36616E-01    .35128E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 21.9773
  alpha      = 3.03736
  Normalizat = 0.696042
  Prefactor  = 1.12737
 **********
 **   18 **HESSE 
 **********

 FCN=   7915.273     FROM HESSE     STATUS=OK            31 CALLS      292 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          21.977        18.891        .85474E-04   -1.4770    
   2  alpha         3.0374        1.0162        .16920E-01    .21663    
   3  Normalizat    .69604        .30269        .45646E-03   -1.0405    
   4  Prefactor     1.1274        .12798        .16122E-03   -.88596    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.25527e-09
Minuit parameter uncertainties:
  1  18.8962
  2  1.04815
  3  0.303416
  4  0.128014
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/45876': 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) = 7915.27335228
delta logL = 0.210092563229

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  2.198e+01  1.890e+01  1.000e-04  1.000e+04 ( 1.000e-12)
262        alpha:  3.037e+00  1.048e+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.127e+00  1.280e-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:  6.960e-01  3.034e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.79
Ra Dec: 242.176 10.494
Photon Index (Free Index): 3.04 +/- 1.05
Photon Flux (Free Index): 1.26e-07 +/- 9.09e-08
Energy Flux (Free Index): 2.60e-05 +/- 1.39e-05

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/45876/cmap_HighResolution_248400001_248659201_4FGL_J1608.7+1029_daily_bin35.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.17e-08', energy_flux2='2.60e-05', photon_flux_error='5.09e-08', dlogl='2.10e-01', energy_flux='2.33e-05', photon_flux2='1.26e-07', job_status='DONE', time_completed='2021-09-13 09:27:19.989030', photon_index_error2='1.05', photon_index2='3.04', ts='5.23', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='1.39e-05', EG='0.76', time_epoch_completed='1631550439.99', return_code='0', job_id='45876', GAL2='1.13', EG2='0.70', return_code2='0', energy_flux_error='1.46e-05', photon_flux_error2='9.09e-08', ts2='5.79', photon_index='2.46' WHERE bin_id='35' AND source_name='4FGL J1608.7+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 09:27:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 45876: <4FGL_J1608.7+1029_daily_bin35> in cluster <slac> Done

Job <4FGL_J1608.7+1029_daily_bin35> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Sep 13 09:10:44 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 09:13:20 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:13:20 2021
Terminated at Mon Sep 13 09:27:22 2021
Results reported at Mon Sep 13 09:27:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1608.7+1029_daily_bin35 242.176 10.4938 248400001 248659201 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 :                                   652.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             285.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   840 sec.
    Turnaround time :                            998 sec.

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

