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


Performing analysis on: 4FGL_J1608.7+1029_daily_bin1310
RA = 242.176, Dec = 10.4938
tmin = 578880001, tmax = 579139201
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='55090', job_status='RUN', time_executed='2021-09-13 09:43:56.128944', time_epoch_executed='1631551436.13' WHERE source_name='4FGL J1608.7+1029' and cadence='daily' and bin_id='1310'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/55090

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/55090/ft1_4FGL_J1608.7+1029_daily_bin1310.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/55090/ft2_4FGL_J1608.7+1029_daily_bin1310.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/55090/ft1_4FGL_J1608.7+1029_daily_bin1310.fits outfile=/scratch/kocevski/55090/ft1_filteredMKT_4FGL_J1608.7+1029_daily_bin1310.fits ra=242.176 dec=10.4938 rad=12.0 tmin=578880001.0 tmax=579139201.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.68
user 3.42
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/55090/ft2_4FGL_J1608.7+1029_daily_bin1310.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/55090/ft1_filteredMKT_4FGL_J1608.7+1029_daily_bin1310.fits evtable="EVENTS" outfile="/scratch/kocevski/55090/ft1_filtered_4FGL_J1608.7+1029_daily_bin1310.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/55090/ft1_filtered_4FGL_J1608.7+1029_daily_bin1310.fits evtable="EVENTS" scfile=/scratch/kocevski/55090/ft2_4FGL_J1608.7+1029_daily_bin1310.fits sctable="SC_DATA" expcube=/scratch/kocevski/55090/ltcube_578880001_579139201_4FGL_J1608.7+1029_daily_bin1310.fits outfile=/scratch/kocevski/55090/expmap_578880001_579139201_4FGL_J1608.7+1029_daily_bin1310.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/55090/ltcube_578880001_579139201_4FGL_J1608.7+1029_daily_bin1310.fits
.....................!
real 191.93
user 186.16
sys 4.78

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/55090/ft1_filtered_4FGL_J1608.7+1029_daily_bin1310.fits scfile=/scratch/kocevski/55090/ft2_4FGL_J1608.7+1029_daily_bin1310.fits outfile=/scratch/kocevski/55090/cmap_578880001_579139201_4FGL_J1608.7+1029_daily_bin1310.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=242.176 yref=10.4938 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/55090/ft1_filtered_4FGL_J1608.7+1029_daily_bin1310.fits scfile=/scratch/kocevski/55090/ft2_4FGL_J1608.7+1029_daily_bin1310.fits outfile=/scratch/kocevski/55090/cmap_HighResolution_578880001_579139201_4FGL_J1608.7+1029_daily_bin1310.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/55090/ft1_filtered_4FGL_J1608.7+1029_daily_bin1310.fits evtable="EVENTS" scfile=/scratch/kocevski/55090/ft2_4FGL_J1608.7+1029_daily_bin1310.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/55090/Model_4FGL_J1608.7+1029_daily_bin1310.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/55090/ft1_filtered_4FGL_J1608.7+1029_daily_bin1310.fits.....................!
real 64.02
user 61.93
sys 1.40

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    22.279       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.2574       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.9803       1.0000         .10000E-03   10000.    
     6 'Prefactor '    43.581       1.0000         .10000E-03   10000.    
     7 'norm      '    .20087E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    93.418       1.0000         .10000E-03   10000.    
     9 'norm      '    28.427       1.0000         .10000E-03   10000.    
    10 'norm      '    6.5183       1.0000         .10000E-03   10000.    
    11 'norm      '    19.819       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.3436       1.0000         .10000E-03   10000.    
    14 'Prefactor '    89.175       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.0314       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .36301       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .77525       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2230       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=   8314.046     FROM MIGRAD    STATUS=CONVERGED    460 CALLS     2227 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.159        .48639E-07** at limit **
   2  Prefactor     22.278        21.805        .30245E-06    .95938E-05
   3  Prefactor     .10000E-03    7.2590       -.55543E-07** at limit **
   4  norm          2.2573        1.9371        .37768E-07    .31783E-04
   5  Prefactor     4.9816        2.8605        .78706E-06   -.30873E-02
   6  Prefactor     43.579        31.228       -.60721E-06   -.63738E-04
   7  norm          .10014E-03    2.1503       -.34483E-06** at limit **
   8  Prefactor     93.433        67.885        .80953E-05    .31076E-03
   9  norm          28.426        11.205       -.20596E-06   -.79166E-04
  10  norm          6.5183        2.2196       -.91695E-07    .92055E-03
  11  norm          19.818        16.279        .39335E-06    .64646E-04
  12  norm          .10000E-03    48.873       -.25723E-06** at limit **
  13  Prefactor     2.3430        12.677        .41222E-06   -.69158E-04
  14  Prefactor     89.169        75.144       -.32402E-05   -.10241E-03
  15  Prefactor     3.0251        47.160        .23694E-05    .85159E-05
  16  Prefactor     .10000E-03    2.3747       -.38008E-07** at limit **
  17  Prefactor     .10000E-03    3.1536       -.95076E-07** at limit **
  18  Prefactor     .34321        4.4367        .33764E-08   -.88082E-04
  19  Prefactor     .10000E-03    2.0062        .27922E-07** at limit **
  20  Normalizat    .77523        .27442       -.13452E-05    .83409E-05
  21  Prefactor     1.2231        .11887        .34075E-07    .24387E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 22.2776
  Prefactor  = 0.0001
  norm       = 2.25735
  Prefactor  = 4.98165
  Prefactor  = 43.5786
  norm       = 0.000100139
  Prefactor  = 93.4329
  norm       = 28.426
  norm       = 6.51831
  norm       = 19.8178
  norm       = 0.0001
  Prefactor  = 2.34302
  Prefactor  = 89.1686
  Prefactor  = 3.02514
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.34321
  Prefactor  = 0.0001
  Normalizat = 0.775228
  Prefactor  = 1.22309
 **********
 **   18 **HESSE 
 **********

 FCN=   8314.046     FROM HESSE     STATUS=OK           329 CALLS     2556 TOTAL
                     EDM=   .59E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     22.278        21.800        .84861E-04   -1.4764    
   3  Prefactor     .10000E-03    7.2601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.2573        1.9370        .11370E-03   -1.5407    
   5  Prefactor     4.9816        4.3118        .83776E-03   -1.5262    
   6  Prefactor     43.579        31.250        .60728E-04   -1.4387    
   7  norm          .10014E-03    4.7235        .42873E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     93.433        70.047        .20790E-03   -1.3772    
   9  norm          28.426        11.217        .75142E-04   -1.4641    
  10  norm          6.5183        2.2267        .38370E-03   -1.5197    
  11  norm          19.818        16.269        .89967E-04   -1.4817    
  12  norm          .10000E-03    48.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.3430        12.754        .26780E-03   -1.5402    
  14  Prefactor     89.169        75.526        .42549E-04   -1.3817    
  15  Prefactor     3.0251        47.139        .23307E-03   -1.5360    
  16  Prefactor     .10000E-03    2.3762        .13722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.1652        .15811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .34321        21.469        .37164E-02   -1.5591    
  19  Prefactor     .10000E-03    2.0160        .12611E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .77523        .30319        .46096E-03   -1.0099    
  21  Prefactor     1.2231        .13360        .16885E-03   -.85624    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.88065e-08
Minuit parameter uncertainties:
  1  8.90941e-06
  2  21.8077
  3  3.8843e-06
  4  1.93702
  5  4.3121
  6  31.2614
  7  0.00162054
  8  70.1087
  9  11.218
  10  2.22673
  11  16.2721
  12  3.35857e-05
  13  10.9365
  14  75.607
  15  23.9053
  16  1.06614e-06
  17  8.8093e-07
  18  5.43015
  19  1.84986e-06
  20  0.303848
  21  0.133634
Done.

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

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  1.982e+01  1.627e+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.223e+00  1.336e-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.752e-01  3.038e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.07
Ra Dec: 242.176 10.494
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 6.32e-08 +/- 5.19e-08
Energy Flux (Fixed Index): 1.81e-05 +/- 1.48e-05

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

Saving results to:
/scratch/kocevski/55090/likelihoodResults_578880001_579139201_4FGL_J1608.7+1029_daily_bin1310.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) = 8313.35075116
delta logL = 0.695700843477

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8313.33530132
delta logL = 0.711150683668

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.147       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3425       1.0000          .0000       5.0000    
     3 'Normalizat'    .71710       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2394       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=   8313.335     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      273 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.147        14.911        .11047E-03   -.26983E-03
   2  alpha         3.3426        .88965        .17185E-01   -.38749E-04
   3  Normalizat    .71707        .29985        .47757E-03    .72796E-04
   4  Prefactor     1.2394        .13370        .16780E-03    .21940E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 13.1471
  alpha      = 3.34256
  Normalizat = 0.717075
  Prefactor  = 1.23937
 **********
 **   18 **HESSE 
 **********

 FCN=   8313.335     FROM HESSE     STATUS=OK            25 CALLS      298 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.147        13.279        .44189E-05   -1.4983    
   2  alpha         3.3426        .79560        .68740E-03    .34375    
   3  Normalizat    .71707        .29998        .19103E-04   -1.0322    
   4  Prefactor     1.2394        .13369        .33561E-04   -.85128    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45735e-10
Minuit parameter uncertainties:
  1  13.282
  2  0.811584
  3  0.300667
  4  0.133727
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/55090': 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) = 8313.33530131
delta logL = 0.711150693221

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  1.315e+01  1.328e+01  1.000e-04  1.000e+04 ( 1.000e-12)
262        alpha:  3.343e+00  8.116e-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.239e+00  1.337e-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.171e-01  3.007e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.60
Ra Dec: 242.176 10.494
Photon Index (Free Index): 3.34 +/- 0.81
Photon Flux (Free Index): 1.07e-07 +/- 7.03e-08
Energy Flux (Free Index): 1.97e-05 +/- 1.26e-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/55090/cmap_HighResolution_578880001_579139201_4FGL_J1608.7+1029_daily_bin1310.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.84e-05', comment='SUCCESS', photon_flux='6.32e-08', energy_flux2='1.97e-05', photon_flux_error='5.19e-08', dlogl='7.11e-01', energy_flux='1.81e-05', photon_flux2='1.07e-07', job_status='DONE', time_completed='2021-09-13 09:55:34.110578', photon_index_error2='0.81', photon_index2='3.34', ts='2.07', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', photon_flux_upper_limit='1.69e-07', energy_flux_error2='1.26e-05', EG='0.78', time_epoch_completed='1631552134.11', return_code='0', job_id='55090', GAL2='1.24', EG2='0.72', return_code2='0', energy_flux_error='1.48e-05', photon_flux_error2='7.03e-08', ts2='3.60', photon_index='2.46' WHERE bin_id='1310' AND source_name='4FGL J1608.7+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 09:55:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 55090: <4FGL_J1608.7+1029_daily_bin1310> in cluster <slac> Done

Job <4FGL_J1608.7+1029_daily_bin1310> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 13 09:40:32 2021
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 09:42:53 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:42:53 2021
Terminated at Mon Sep 13 09:55:34 2021
Results reported at Mon Sep 13 09:55:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1608.7+1029_daily_bin1310 242.176 10.4938 578880001 579139201 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 :                                   695.52 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   761 sec.
    Turnaround time :                            902 sec.

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

