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


Performing analysis on: 4FGL_J1608.7+1029_daily_bin820
RA = 242.176, Dec = 10.4938
tmin = 451872001, tmax = 452131201
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='53003', job_status='RUN', time_executed='2021-09-13 09:35:30.640527', time_epoch_executed='1631550930.64' WHERE source_name='4FGL J1608.7+1029' and cadence='daily' and bin_id='820'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/53003

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/53003/ft1_4FGL_J1608.7+1029_daily_bin820.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/53003/ft2_4FGL_J1608.7+1029_daily_bin820.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/53003/ft1_4FGL_J1608.7+1029_daily_bin820.fits outfile=/scratch/kocevski/53003/ft1_filteredMKT_4FGL_J1608.7+1029_daily_bin820.fits ra=242.176 dec=10.4938 rad=12.0 tmin=451872001.0 tmax=452131201.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.39
user 3.17
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/53003/ft1_filtered_4FGL_J1608.7+1029_daily_bin820.fits" evtable="EVENTS" scfile=/scratch/kocevski/53003/ft2_4FGL_J1608.7+1029_daily_bin820.fits sctable="SC_DATA" outfile=/scratch/kocevski/53003/ltcube_451872001_452131201_4FGL_J1608.7+1029_daily_bin820.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/53003/ft2_4FGL_J1608.7+1029_daily_bin820.fits
.....................!
real 13.00
user 12.64
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/53003/ft1_filtered_4FGL_J1608.7+1029_daily_bin820.fits evtable="EVENTS" scfile=/scratch/kocevski/53003/ft2_4FGL_J1608.7+1029_daily_bin820.fits sctable="SC_DATA" expcube=/scratch/kocevski/53003/ltcube_451872001_452131201_4FGL_J1608.7+1029_daily_bin820.fits outfile=/scratch/kocevski/53003/expmap_451872001_452131201_4FGL_J1608.7+1029_daily_bin820.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/53003/ltcube_451872001_452131201_4FGL_J1608.7+1029_daily_bin820.fits
.....................!
real 191.51
user 186.59
sys 4.54

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/53003/ft1_filtered_4FGL_J1608.7+1029_daily_bin820.fits scfile=/scratch/kocevski/53003/ft2_4FGL_J1608.7+1029_daily_bin820.fits outfile=/scratch/kocevski/53003/cmap_451872001_452131201_4FGL_J1608.7+1029_daily_bin820.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/53003/ft1_filtered_4FGL_J1608.7+1029_daily_bin820.fits scfile=/scratch/kocevski/53003/ft2_4FGL_J1608.7+1029_daily_bin820.fits outfile=/scratch/kocevski/53003/cmap_HighResolution_451872001_452131201_4FGL_J1608.7+1029_daily_bin820.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.59
user 0.38
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/53003/ft1_filtered_4FGL_J1608.7+1029_daily_bin820.fits evtable="EVENTS" scfile=/scratch/kocevski/53003/ft2_4FGL_J1608.7+1029_daily_bin820.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/53003/Model_4FGL_J1608.7+1029_daily_bin820.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/53003/ft1_filtered_4FGL_J1608.7+1029_daily_bin820.fits.....................!
real 66.85
user 65.53
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2472       1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.087       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.8767       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.9148       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.0612       1.0000         .10000E-03   10000.    
    10 'norm      '    8.7582       1.0000         .10000E-03   10000.    
    11 'norm      '    23.478       1.0000         .10000E-03   10000.    
    12 'norm      '    6.4536       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    80.526       1.0000         .10000E-03   10000.    
    15 'Prefactor '    33.410       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.5180       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .91682       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .97715       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=   8588.978     FROM MIGRAD    STATUS=CONVERGED    430 CALLS     2163 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1597        140.72       -.20314E-04   -.21735E-03
   2  Prefactor     14.084        20.002       -.75288E-06   -.98401E-05
   3  Prefactor     .10000E-03    9.9660        .51896E-07** at limit **
   4  norm          .10000E-03    1.0352       -.55681E-06** at limit **
   5  Prefactor     9.8762        5.4008        .28048E-06   -.10428E-03
   6  Prefactor     .10000E-03    20.977       -.24507E-06** at limit **
   7  norm          4.9145        4.2585        .25343E-06   -.22429E-03
   8  Prefactor     .10000E-03    51.144        .80231E-06** at limit **
   9  norm          3.0574        10.944        .18569E-04   -.42587E-03
  10  norm          8.7583        2.6409       -.73225E-06   -.56605E-03
  11  norm          23.476        17.660       -.82368E-06   -.12797E-03
  12  norm          6.4073        409.52       -.16047E-05   -.36980E-04
  13  Prefactor     .10000E-03    3.1728        .19657E-06** at limit **
  14  Prefactor     80.524        67.884        .11022E-05    .18390E-05
  15  Prefactor     33.410        29.548        .45768E-06   -.13348E-04
  16  Prefactor     4.5179        8.4453        .82079E-06   -.25796E-04
  17  Prefactor     .10000E-03    2.3670        .17644E-06** at limit **
  18  Prefactor     .10000E-03    1.7211        .11333E-06** at limit **
  19  Prefactor     .10000E-03    4.3755        .64341E-06** at limit **
  20  Normalizat    .91700        .23725       -.76464E-06   -.15794E-03
  21  Prefactor     .97708        .96559E-01   -.16505E-05    .41506E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.15974
  Prefactor  = 14.0838
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.87621
  Prefactor  = 0.0001
  norm       = 4.91451
  Prefactor  = 0.000100001
  norm       = 3.05737
  norm       = 8.75835
  norm       = 23.476
  norm       = 6.40734
  Prefactor  = 0.0001
  Prefactor  = 80.5241
  Prefactor  = 33.4096
  Prefactor  = 4.51792
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.917002
  Prefactor  = 0.977083
 **********
 **   18 **HESSE 
 **********

 FCN=   8588.978     FROM HESSE     STATUS=OK           313 CALLS     2476 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1597        152.05        .27412E-03   -1.5414    
   2  Prefactor     14.084        20.004        .10672E-03   -1.4957    
   3  Prefactor     .10000E-03    9.9723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.0517        .92289E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.8762        5.3946        .12751E-03   -1.5079    
   6  Prefactor     .10000E-03    21.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.9145        4.2496        .16940E-03   -1.5265    
   8  Prefactor     .10000E-03    51.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.0574        11.101        .11593E-02   -1.5358    
  10  norm          8.7583        2.6448        .77403E-04   -1.5116    
  11  norm          23.476        17.696        .82669E-04   -1.4739    
  12  norm          6.4073        417.13        .15799E-03   -1.5202    
  13  Prefactor     .10000E-03    3.1779        .16122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     80.524        67.900        .44757E-04   -1.3911    
  15  Prefactor     33.410        29.483        .69326E-04   -1.4551    
  16  Prefactor     4.5179        8.4121        .18941E-03   -1.5283    
  17  Prefactor     .10000E-03    2.3802        .13922E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.7244        .11874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.4730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .91700        .28098        .39554E-03   -.95865    
  21  Prefactor     .97708        .11525        .16568E-03   -.93497    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.77992e-09
Minuit parameter uncertainties:
  1  36.3382
  2  20.0138
  3  8.00839e-06
  4  2.15285e-05
  5  5.39486
  6  7.46222e-05
  7  4.24991
  8  0.000453289
  9  11.1082
  10  2.64487
  11  17.7001
  12  104.163
  13  1.4594e-06
  14  67.9656
  15  29.4961
  16  8.41426
  17  2.11379e-06
  18  1.7148e-06
  19  1.51692e-05
  20  0.281434
  21  0.115282
Done.

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

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  2.348e+01  1.770e+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:  9.771e-01  1.153e-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.170e-01  2.814e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.52
Ra Dec: 242.176 10.494
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 7.49e-08 +/- 5.64e-08
Energy Flux (Fixed Index): 2.14e-05 +/- 1.61e-05

TS (Fixed Index): 2.52
Ra Dec: 242.176 10.494
Photon Flux Upper Limit: 1.86e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.31e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/53003/likelihoodResults_451872001_452131201_4FGL_J1608.7+1029_daily_bin820.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) = 8588.26376361
delta logL = 0.714080582085

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8588.25286602
delta logL = 0.724978174434

Fit tolerance = 1e-08

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

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

 FCN=   8588.253     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      300 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.067        22.008        .99942E-04   -.86475E-03
   2  alpha         3.4395        1.1322        .16251E-01   -.54533E-04
   3  Normalizat    .82028        .27580        .41566E-03   -.13194E-03
   4  Prefactor     1.0037        .11600        .16365E-03   -.58771E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 16.0667
  alpha      = 3.43951
  Normalizat = 0.820282
  Prefactor  = 1.00375
 **********
 **   18 **HESSE 
 **********

 FCN=   8588.253     FROM HESSE     STATUS=OK            25 CALLS      325 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.067        17.500        .39977E-05   -1.4906    
   2  alpha         3.4395        .91308        .65003E-03    .38526    
   3  Normalizat    .82028        .27494        .16626E-04   -.99321    
   4  Prefactor     1.0037        .11542        .65461E-05   -.92605    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.42603e-10
Minuit parameter uncertainties:
  1  17.5052
  2  0.93854
  3  0.275405
  4  0.115446
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/53003': 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) = 8588.25286443
delta logL = 0.724979764798

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  1.607e+01  1.751e+01  1.000e-04  1.000e+04 ( 1.000e-12)
262        alpha:  3.440e+00  9.385e-01  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.004e+00  1.154e-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:  8.203e-01  2.754e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.24
Ra Dec: 242.176 10.494
Photon Index (Free Index): 3.44 +/- 0.94
Photon Flux (Free Index): 1.47e-07 +/- 8.82e-08
Energy Flux (Free Index): 2.62e-05 +/- 1.51e-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/53003/cmap_HighResolution_451872001_452131201_4FGL_J1608.7+1029_daily_bin820.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.31e-05', comment='SUCCESS', photon_flux='7.49e-08', energy_flux2='2.62e-05', photon_flux_error='5.64e-08', dlogl='7.25e-01', energy_flux='2.14e-05', photon_flux2='1.47e-07', job_status='DONE', time_completed='2021-09-13 09:46:55.695403', photon_index_error2='0.94', photon_index2='3.44', ts='2.52', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.86e-07', energy_flux_error2='1.51e-05', EG='0.92', time_epoch_completed='1631551615.7', return_code='0', job_id='53003', GAL2='1.00', EG2='0.82', return_code2='0', energy_flux_error='1.61e-05', photon_flux_error2='8.82e-08', ts2='4.24', photon_index='2.46' WHERE bin_id='820' AND source_name='4FGL J1608.7+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 09:46:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 53003: <4FGL_J1608.7+1029_daily_bin820> in cluster <slac> Done

Job <4FGL_J1608.7+1029_daily_bin820> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Sep 13 09:35:14 2021
Job was executed on host(s) <bullet0290>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 09:35:21 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:35:21 2021
Terminated at Mon Sep 13 09:46:56 2021
Results reported at Mon Sep 13 09:46:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1608.7+1029_daily_bin820 242.176 10.4938 451872001 452131201 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 :                                   685.00 sec.
    Max Memory :                                 1068 MB
    Average Memory :                             332.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   694 sec.
    Turnaround time :                            702 sec.

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

