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


Performing analysis on: 4FGL_J1608.7+1029_daily_bin1320
RA = 242.176, Dec = 10.4938
tmin = 581472001, tmax = 581731201
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='55104', job_status='RUN', time_executed='2021-09-13 09:46:18.719719', time_epoch_executed='1631551578.72' WHERE source_name='4FGL J1608.7+1029' and cadence='daily' and bin_id='1320'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/55104

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/55104/ft1_4FGL_J1608.7+1029_daily_bin1320.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/55104/ft2_4FGL_J1608.7+1029_daily_bin1320.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/55104/ft1_4FGL_J1608.7+1029_daily_bin1320.fits outfile=/scratch/kocevski/55104/ft1_filteredMKT_4FGL_J1608.7+1029_daily_bin1320.fits ra=242.176 dec=10.4938 rad=12.0 tmin=581472001.0 tmax=581731201.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 2.76
user 2.55
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/55104/ft1_filtered_4FGL_J1608.7+1029_daily_bin1320.fits" evtable="EVENTS" scfile=/scratch/kocevski/55104/ft2_4FGL_J1608.7+1029_daily_bin1320.fits sctable="SC_DATA" outfile=/scratch/kocevski/55104/ltcube_581472001_581731201_4FGL_J1608.7+1029_daily_bin1320.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/55104/ft2_4FGL_J1608.7+1029_daily_bin1320.fits
.....................!
real 13.38
user 12.86
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/55104/ft1_filtered_4FGL_J1608.7+1029_daily_bin1320.fits evtable="EVENTS" scfile=/scratch/kocevski/55104/ft2_4FGL_J1608.7+1029_daily_bin1320.fits sctable="SC_DATA" expcube=/scratch/kocevski/55104/ltcube_581472001_581731201_4FGL_J1608.7+1029_daily_bin1320.fits outfile=/scratch/kocevski/55104/expmap_581472001_581731201_4FGL_J1608.7+1029_daily_bin1320.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/55104/ltcube_581472001_581731201_4FGL_J1608.7+1029_daily_bin1320.fits
.....................!
real 191.93
user 185.30
sys 5.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/55104/ft1_filtered_4FGL_J1608.7+1029_daily_bin1320.fits scfile=/scratch/kocevski/55104/ft2_4FGL_J1608.7+1029_daily_bin1320.fits outfile=/scratch/kocevski/55104/cmap_581472001_581731201_4FGL_J1608.7+1029_daily_bin1320.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/55104/ft1_filtered_4FGL_J1608.7+1029_daily_bin1320.fits scfile=/scratch/kocevski/55104/ft2_4FGL_J1608.7+1029_daily_bin1320.fits outfile=/scratch/kocevski/55104/cmap_HighResolution_581472001_581731201_4FGL_J1608.7+1029_daily_bin1320.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.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    46.646       1.0000         .10000E-03   10000.    
     2 'Prefactor '    33.453       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.486       1.0000         .10000E-03   10000.    
     4 'norm      '    5.5391       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    74.047       1.0000         .10000E-03   10000.    
     7 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    31.137       1.0000         .10000E-03   10000.    
    10 'norm      '    5.7081       1.0000         .10000E-03   10000.    
    11 'norm      '    48.804       1.0000         .10000E-03   10000.    
    12 'norm      '    .10447E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    33.163       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10533E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.3617       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    35.620       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .48210E-01   1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1756       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3699.430     FROM MIGRAD    STATUS=CONVERGED     78 CALLS     2175 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     46.648        1.1280        .53306E-06   -.12999E-02
   2  Prefactor     33.453        1.0108        .17953E-06   -.29907E-03
   3  Prefactor     15.497        2.3119        .34487E-05   -.26685E-02
   4  norm          5.5391        4.2921       -.11199E-06   -.20084E-03
   5  Prefactor     .10000E-03    7.2066       -.91165E-06** at limit **
   6  Prefactor     74.055        1.7333        .10670E-05   -.38210E-02
   7  norm          .10000E-03    4.3057       -.45668E-06** at limit **
   8  Prefactor     .10017E-03    28.739       -.62997E-04** at limit **
   9  norm          31.132        1.3020        .95953E-06   -.87188E-03
  10  norm          5.7081        2.7862       -.14441E-06   -.10160E-02
  11  norm          48.824        2.6620        .18434E-05   -.36653E-02
  12  norm          .12179E-03    83.159       -.46160E-04** at limit **
  13  Prefactor     33.168        1.1820       -.67945E-06    .35564E-03
  14  Prefactor     .11637E-03    86.399       -.12427E-05** at limit **
  15  Prefactor     .10016E-03    35.245        .49295E-04** at limit **
  16  Prefactor     7.3525        1.2518       -.48124E-06   -.91714E-04
  17  Prefactor     .10001E-03    22.994        .23003E-04** at limit **
  18  Prefactor     .10000E-03    16.356       -.27511E-05** at limit **
  19  Prefactor     35.636        1.9067       -.94680E-06    .14756E-02
  20  Normalizat    .47942E-01    1.0443       -.21375E-04   -.67146E-04
  21  Prefactor     1.1756        .18460        .28984E-07   -.10137E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 46.6481
  Prefactor  = 33.4533
  Prefactor  = 15.4971
  norm       = 5.53907
  Prefactor  = 0.000100001
  Prefactor  = 74.0553
  norm       = 0.000100001
  Prefactor  = 0.000100167
  norm       = 31.1317
  norm       = 5.70809
  norm       = 48.8236
  norm       = 0.000121793
  Prefactor  = 33.1681
  Prefactor  = 0.000116365
  Prefactor  = 0.000100157
  Prefactor  = 7.3525
  Prefactor  = 0.000100015
  Prefactor  = 0.000100001
  Prefactor  = 35.636
  Normalizat = 0.0479415
  Prefactor  = 1.17561
 **********
 **   18 **HESSE 
 **********

 FCN=   3699.430     FROM HESSE     STATUS=NOT POSDEF   359 CALLS     2534 TOTAL
                     EDM=   .18E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     46.648        156.29        .14677E-02   -1.4341    
   2  Prefactor     33.453        127.21        .17321E-02   -1.4551    
   3  Prefactor     15.497        70.559        .25445E-02   -1.4920    
   4  norm          5.5391        4.3436        .42677E-02   -1.5237    
   5  Prefactor     .10000E-03    6.2440        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     74.055        79.908        .11665E-02   -1.3985    
   7  norm          .10000E-03    3.7279        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10017E-03    25.413        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          31.132        29.917        .17951E-02   -1.4591    
  10  norm          5.7081        2.6130        .42031E-02   -1.5230    
  11  norm          48.824        54.139        .14350E-02   -1.4309    
  12  norm          .12179E-03    160.76        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     33.168        34.225        .17396E-02   -1.4555    
  14  Prefactor     .11637E-03    130.87        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10016E-03    31.151        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.3525        28.056        .36956E-02   -1.5166    
  17  Prefactor     .10001E-03    19.942        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.204        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     35.636        36.843        .16787E-02   -1.4513    
  20  Normalizat    .47942E-01    9.7260        .32726       -1.4475    
  21  Prefactor     1.1756        .91631        .35235E-01   -.87085    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.81322e-06
Minuit parameter uncertainties:
  1  157.689
  2  128.261
  3  66.2645
  4  4.34388
  5  0.000184139
  6  80.0242
  7  0.000110722
  8  0.00412608
  9  29.9312
  10  2.61302
  11  54.194
  12  0.118698
  13  34.2448
  14  0.0927612
  15  0.00442907
  16  28.1061
  17  0.00107765
  18  0.000264454
  19  36.8665
  20  1.73179
  21  0.929138
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 3699.43005519

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  4.882e+01  5.419e+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.176e+00  9.291e-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:  4.794e-02  1.732e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.26
Ra Dec: 242.176 10.494
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 1.56e-07 +/- 1.73e-07
Energy Flux (Fixed Index): 4.45e-05 +/- 4.94e-05

TS (Fixed Index): 3.26
Ra Dec: 242.176 10.494
Photon Flux Upper Limit: 3.99e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.14e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/55104/likelihoodResults_581472001_581731201_4FGL_J1608.7+1029_daily_bin1320.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) = 3699.42774603
delta logL = 0.0023091632238

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3699.42747173
delta logL = 0.00258346323335

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    48.241       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5161       1.0000          .0000       5.0000    
     3 'Normalizat'    .42830E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1771       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=   3699.427     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      266 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          48.243        36.727        .57733E-04   -.58544E-04
   2  alpha         2.5161        .82026        .15730E-01   -.92173E-05
   3  Normalizat    .42830E-01    1.8747        .12380E-01    .37200E-04
   4  Prefactor     1.1771        .23105        .16272E-03    .60505E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 48.2427
  alpha      = 2.51608
  Normalizat = 0.0428305
  Prefactor  = 1.17713
 **********
 **   18 **HESSE 
 **********

 FCN=   3699.427     FROM HESSE     STATUS=OK            27 CALLS      293 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          48.243        36.367        .11547E-04   -1.4318    
   2  alpha         2.5161        .80391        .62918E-03    .64337E-02
   3  Normalizat    .42830E-01    1.2522        .49522E-03   -1.4561    
   4  Prefactor     1.1771        .18716        .65087E-05   -.87038    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.46538e-10
Minuit parameter uncertainties:
  1  36.3841
  2  0.818456
  3  0.415252
  4  0.187268
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/55104': 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) = 3699.42747173
delta logL = 0.0025834649864

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  4.824e+01  3.638e+01  1.000e-04  1.000e+04 ( 1.000e-12)
262        alpha:  2.516e+00  8.185e-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.177e+00  1.873e-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:  4.283e-02  4.153e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.26
Ra Dec: 242.176 10.494
Photon Index (Free Index): 2.52 +/- 0.82
Photon Flux (Free Index): 1.62e-07 +/- 1.49e-07
Energy Flux (Free Index): 4.45e-05 +/- 3.23e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/55104/cmap_HighResolution_581472001_581731201_4FGL_J1608.7+1029_daily_bin1320.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-04', comment='SUCCESS', photon_flux='1.56e-07', energy_flux2='4.45e-05', photon_flux_error='1.73e-07', dlogl='2.58e-03', energy_flux='4.45e-05', photon_flux2='1.62e-07', job_status='DONE', time_completed='2021-09-13 09:54:04.363071', photon_index_error2='0.82', photon_index2='2.52', ts='3.26', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', photon_flux_upper_limit='3.99e-07', energy_flux_error2='3.23e-05', EG='0.05', time_epoch_completed='1631552044.36', return_code='102', job_id='55104', GAL2='1.18', EG2='0.04', return_code2='0', energy_flux_error='4.94e-05', photon_flux_error2='1.49e-07', ts2='3.26', photon_index='2.46' WHERE bin_id='1320' AND source_name='4FGL J1608.7+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 09:54:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 55104: <4FGL_J1608.7+1029_daily_bin1320> in cluster <slac> Done

Job <4FGL_J1608.7+1029_daily_bin1320> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 13 09:40:33 2021
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 09:43:02 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:43:02 2021
Terminated at Mon Sep 13 09:54:05 2021
Results reported at Mon Sep 13 09:54:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1608.7+1029_daily_bin1320 242.176 10.4938 581472001 581731201 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 :                                   460.10 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             250.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   665 sec.
    Turnaround time :                            812 sec.

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

