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


Performing analysis on: 4FGL_J1608.7+1029_daily_bin20
RA = 242.176, Dec = 10.4938
tmin = 244512001, tmax = 244771201
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='45850', job_status='RUN', time_executed='2021-09-13 09:13:22.105231', time_epoch_executed='1631549602.11' WHERE source_name='4FGL J1608.7+1029' and cadence='daily' and bin_id='20'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/45850

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/45850/ft1_4FGL_J1608.7+1029_daily_bin20.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/45850/ft2_4FGL_J1608.7+1029_daily_bin20.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/45850/ft1_4FGL_J1608.7+1029_daily_bin20.fits outfile=/scratch/kocevski/45850/ft1_filteredMKT_4FGL_J1608.7+1029_daily_bin20.fits ra=242.176 dec=10.4938 rad=12.0 tmin=244512001.0 tmax=244771201.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.26
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/45850/ft2_4FGL_J1608.7+1029_daily_bin20.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/45850/ft1_filteredMKT_4FGL_J1608.7+1029_daily_bin20.fits evtable="EVENTS" outfile="/scratch/kocevski/45850/ft1_filtered_4FGL_J1608.7+1029_daily_bin20.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.71
user 0.36
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/45850/ft1_filtered_4FGL_J1608.7+1029_daily_bin20.fits" evtable="EVENTS" scfile=/scratch/kocevski/45850/ft2_4FGL_J1608.7+1029_daily_bin20.fits sctable="SC_DATA" outfile=/scratch/kocevski/45850/ltcube_244512001_244771201_4FGL_J1608.7+1029_daily_bin20.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/45850/ft2_4FGL_J1608.7+1029_daily_bin20.fits
.....................!
real 14.71
user 14.26
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/45850/ft1_filtered_4FGL_J1608.7+1029_daily_bin20.fits evtable="EVENTS" scfile=/scratch/kocevski/45850/ft2_4FGL_J1608.7+1029_daily_bin20.fits sctable="SC_DATA" expcube=/scratch/kocevski/45850/ltcube_244512001_244771201_4FGL_J1608.7+1029_daily_bin20.fits outfile=/scratch/kocevski/45850/expmap_244512001_244771201_4FGL_J1608.7+1029_daily_bin20.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/45850/ltcube_244512001_244771201_4FGL_J1608.7+1029_daily_bin20.fits
.....................!
real 192.37
user 186.25
sys 5.37

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/45850/ft1_filtered_4FGL_J1608.7+1029_daily_bin20.fits scfile=/scratch/kocevski/45850/ft2_4FGL_J1608.7+1029_daily_bin20.fits outfile=/scratch/kocevski/45850/cmap_244512001_244771201_4FGL_J1608.7+1029_daily_bin20.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.54
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/45850/ft1_filtered_4FGL_J1608.7+1029_daily_bin20.fits scfile=/scratch/kocevski/45850/ft2_4FGL_J1608.7+1029_daily_bin20.fits outfile=/scratch/kocevski/45850/cmap_HighResolution_244512001_244771201_4FGL_J1608.7+1029_daily_bin20.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/45850/ft1_filtered_4FGL_J1608.7+1029_daily_bin20.fits evtable="EVENTS" scfile=/scratch/kocevski/45850/ft2_4FGL_J1608.7+1029_daily_bin20.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/45850/Model_4FGL_J1608.7+1029_daily_bin20.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/45850/ft1_filtered_4FGL_J1608.7+1029_daily_bin20.fits.....................!
real 70.98
user 69.57
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12470E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .72410       1.0000         .10000E-03   10000.    
     8 'Prefactor '    81.514       1.0000         .10000E-03   10000.    
     9 'norm      '    26.848       1.0000         .10000E-03   10000.    
    10 'norm      '    5.2271       1.0000         .10000E-03   10000.    
    11 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .15545E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    45.965       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12404E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.0899       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.908       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .51484       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2897       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .84466       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=   9154.223     FROM MIGRAD    STATUS=CONVERGED    471 CALLS     2265 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.769       -.37433E-08** at limit **
   2  Prefactor     .10000E-03    11.228       -.28551E-06** at limit **
   3  Prefactor     .10000E-03    5.6573        .33219E-08** at limit **
   4  norm          .10000E-03    1.0771       -.21118E-07** at limit **
   5  Prefactor     .10000E-03    1.7812       -.18432E-06** at limit **
   6  Prefactor     .10000E-03    52.421       -.12900E-05** at limit **
   7  norm          .72700        1.7732        .12556E-05    .59575E-03
   8  Prefactor     81.502        65.344       -.46828E-06   -.28497E-04
   9  norm          26.847        10.245        .60862E-08   -.21841E-04
  10  norm          5.2271        1.9126        .13500E-07   -.43167E-04
  11  norm          .10000E-03    9.3547        .16629E-06** at limit **
  12  norm          .10000E-03    27.945       -.29372E-06** at limit **
  13  Prefactor     .10016E-03    33.261       -.26959E-05** at limit **
  14  Prefactor     45.962        60.304        .42697E-06   -.62489E-06
  15  Prefactor     .10000E-03    14.587       -.63022E-07** at limit **
  16  Prefactor     .10001E-03    7.5031        .66690E-06** at limit **
  17  Prefactor     2.0911        4.9350        .19856E-06    .81598E-03
  18  Prefactor     12.908        8.2706        .22398E-06   -.60035E-04
  19  Prefactor     .51105        2.8739        .25795E-06   -.16094E-03
  20  Normalizat    1.2898        .22445       -.19496E-05   -.75263E-05
  21  Prefactor     .84464        .92511E-01    .47054E-06   -.28840E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.726999
  Prefactor  = 81.5024
  norm       = 26.8468
  norm       = 5.22711
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100158
  Prefactor  = 45.9619
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 2.09107
  Prefactor  = 12.908
  Prefactor  = 0.511054
  Normalizat = 1.28983
  Prefactor  = 0.844643
 **********
 **   18 **HESSE 
 **********

 FCN=   9154.223     FROM HESSE     STATUS=OK           323 CALLS     2588 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.6587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.0225        .19234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.4338        .24509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    52.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .72700        1.8228        .21092E-02   -1.5537    
   8  Prefactor     81.502        65.588        .44487E-04   -1.3900    
   9  norm          26.847        10.218        .77315E-04   -1.4671    
  10  norm          5.2271        1.9132        .77145E-04   -1.5251    
  11  norm          .10000E-03    9.4441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    27.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10016E-03    61.946        .43839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     45.962        60.313        .59139E-04   -1.4351    
  15  Prefactor     .10000E-03    14.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    30.355        .41851E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.0911        6.6122        .14278E-02   -1.5419    
  18  Prefactor     12.908        8.2321        .11149E-03   -1.4989    
  19  Prefactor     .51105        17.326        .29837E-02   -1.5565    
  20  Normalizat    1.2898        .26106        .33734E-03   -.83870    
  21  Prefactor     .84464        .11067        .17196E-03   -.98103    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.61911e-09
Minuit parameter uncertainties:
  1  1.46569e-06
  2  1.72538e-05
  3  2.31334e-06
  4  2.17408e-05
  5  1.43553e-05
  6  0.000102727
  7  1.82295
  8  65.6463
  9  10.2191
  10  1.91323
  11  1.27793e-05
  12  4.9827e-05
  13  0.00626699
  14  60.3928
  15  6.16816e-06
  16  0.000880529
  17  6.61449
  18  8.23283
  19  5.95265
  20  0.261325
  21  0.110699
Done.

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

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  1.000e-04  1.278e-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:  8.446e-01  1.107e-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:  1.290e+00  2.613e-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: 7.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.25e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/45850/likelihoodResults_244512001_244771201_4FGL_J1608.7+1029_daily_bin20.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) = 9154.22340269
delta logL = -0.000504717487274

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9154.22289866
delta logL = -6.8147892307e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10946E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4898       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2898       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84460       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=   9154.221     FROM MIGRAD    STATUS=FAILED       174 CALLS      324 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .22903        26.024        .84541E-01    .37634E-03
   2  alpha         3.7298        3.5173        .16461        .11629E-03
   3  Normalizat    1.2862        .22628E-01    .33734E-03   -.84926E-05
   4  Prefactor     .84547        .95661E-02    .17196E-03   -.38345E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9154.221     FROM SIMPLEX   STATUS=UNCHANGED     67 CALLS      391 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .22903        26.024        .59883E-03    .37634E-03
   2  alpha         3.7298        3.5173        .11201E-01    .11629E-03
   3  Normalizat    1.2862        .22628E-01    .98506E-04   -.84926E-05
   4  Prefactor     .84547        .95661E-02    .58019E-04   -.38345E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9154.221     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      440 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .22903        45.000         .0000        .15511E-02
   2  alpha         3.7298        3.2112         .0000       -.46343E-06
   3  Normalizat    1.2862        .27056         .0000       -.87622E-05
   4  Prefactor     .84547        .11039         .0000       -.33056E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.229035
  alpha      = 3.7298
  Normalizat = 1.28615
  Prefactor  = 0.845474
 **********
 **   18 **HESSE 
 **********

 FCN=   9154.221     FROM HESSE     STATUS=OK            27 CALLS      467 TOTAL
                     EDM=   .28E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .22903        22.519        .46605E-03   -1.5612    
   2  alpha         3.7298        4.2374        .13169E-02    .51430    
   3  Normalizat    1.2862        .26395        .26987E-05   -.83981    
   4  Prefactor     .84547        .10947        .13757E-05   -.98073    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76997e-12
Minuit parameter uncertainties:
  1  4.54285
  2  5.53013
  3  0.264229
  4  0.109502
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/45850': 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) = 9154.22141443
delta logL = 0.00148355166311

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  2.290e-01  4.543e+00  1.000e-04  1.000e+04 ( 1.000e-12)
262        alpha:  3.730e+00  5.530e+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:  8.455e-01  1.095e-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:  1.286e+00  2.642e-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/45850/cmap_HighResolution_244512001_244771201_4FGL_J1608.7+1029_daily_bin20.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.25e-05', job_status='DONE', photon_flux_upper_limit='7.89e-08', time_completed='2021-09-13 09:25:43.905940', job_id='45850', GAL2='0.85', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1631550343.91', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='1.48e-03', ts2='0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='20' AND source_name='4FGL J1608.7+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 09:25:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 45850: <4FGL_J1608.7+1029_daily_bin20> in cluster <slac> Done

Job <4FGL_J1608.7+1029_daily_bin20> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Sep 13 09:10:42 2021
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 09:13:05 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:05 2021
Terminated at Mon Sep 13 09:25:45 2021
Results reported at Mon Sep 13 09:25:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1608.7+1029_daily_bin20 242.176 10.4938 244512001 244771201 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 :                                   740.23 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             339.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   760 sec.
    Turnaround time :                            903 sec.

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

