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


Performing analysis on: 4FGL_J1608.7+1029_daily_bin1181
RA = 242.176, Dec = 10.4938
tmin = 545443201, tmax = 545702401
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='54896', job_status='RUN', time_executed='2021-09-13 09:44:03.892946', time_epoch_executed='1631551443.89' WHERE source_name='4FGL J1608.7+1029' and cadence='daily' and bin_id='1181'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/54896

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/54896/ft1_4FGL_J1608.7+1029_daily_bin1181.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/54896/ft2_4FGL_J1608.7+1029_daily_bin1181.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/54896/ft1_4FGL_J1608.7+1029_daily_bin1181.fits outfile=/scratch/kocevski/54896/ft1_filteredMKT_4FGL_J1608.7+1029_daily_bin1181.fits ra=242.176 dec=10.4938 rad=12.0 tmin=545443201.0 tmax=545702401.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 4.30
user 3.95
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/54896/ft2_4FGL_J1608.7+1029_daily_bin1181.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/54896/ft1_filteredMKT_4FGL_J1608.7+1029_daily_bin1181.fits evtable="EVENTS" outfile="/scratch/kocevski/54896/ft1_filtered_4FGL_J1608.7+1029_daily_bin1181.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.60
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/54896/ft1_filtered_4FGL_J1608.7+1029_daily_bin1181.fits" evtable="EVENTS" scfile=/scratch/kocevski/54896/ft2_4FGL_J1608.7+1029_daily_bin1181.fits sctable="SC_DATA" outfile=/scratch/kocevski/54896/ltcube_545443201_545702401_4FGL_J1608.7+1029_daily_bin1181.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/54896/ft2_4FGL_J1608.7+1029_daily_bin1181.fits
.....................!
real 14.52
user 14.06
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/54896/ft1_filtered_4FGL_J1608.7+1029_daily_bin1181.fits evtable="EVENTS" scfile=/scratch/kocevski/54896/ft2_4FGL_J1608.7+1029_daily_bin1181.fits sctable="SC_DATA" expcube=/scratch/kocevski/54896/ltcube_545443201_545702401_4FGL_J1608.7+1029_daily_bin1181.fits outfile=/scratch/kocevski/54896/expmap_545443201_545702401_4FGL_J1608.7+1029_daily_bin1181.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/54896/ltcube_545443201_545702401_4FGL_J1608.7+1029_daily_bin1181.fits
.....................!
real 192.47
user 186.37
sys 5.64

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 158 point sources and 0 extended sources

Setting source of interest to:
4FGL J1608.7+1029 @ 242.176 10.4938

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/54896/ft1_filtered_4FGL_J1608.7+1029_daily_bin1181.fits scfile=/scratch/kocevski/54896/ft2_4FGL_J1608.7+1029_daily_bin1181.fits outfile=/scratch/kocevski/54896/cmap_545443201_545702401_4FGL_J1608.7+1029_daily_bin1181.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.56
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/54896/ft1_filtered_4FGL_J1608.7+1029_daily_bin1181.fits scfile=/scratch/kocevski/54896/ft2_4FGL_J1608.7+1029_daily_bin1181.fits outfile=/scratch/kocevski/54896/cmap_HighResolution_545443201_545702401_4FGL_J1608.7+1029_daily_bin1181.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.56
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.003       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .94538       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .55773       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.1404       1.0000         .10000E-03   10000.    
    11 'norm      '    17.861       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    42.269       1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.176       1.0000         .10000E-03   10000.    
    15 'Prefactor '    39.346       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10635E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.1186       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.4639       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0455       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0899       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=   11813.72     FROM MIGRAD    STATUS=CONVERGED    434 CALLS     2190 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.983        34.957       -.22145E-05   -.16002E-03
   2  Prefactor     .10000E-03    8.3947       -.28214E-06** at limit **
   3  Prefactor     .10000E-03    4.1813       -.14030E-07** at limit **
   4  norm          .94721        1.5926        .58344E-06    .60654E-03
   5  Prefactor     .10000E-03    1.7967        .39458E-07** at limit **
   6  Prefactor     .10000E-03    8.1748        .22352E-06** at limit **
   7  norm          .55724        1.9092        .15527E-05   -.45118E-03
   8  Prefactor     .10000E-03    18.156       -.26452E-07** at limit **
   9  norm          .10000E-03    5.8008       -.22770E-07** at limit **
  10  norm          3.1404        1.4430       -.48857E-08   -.64853E-04
  11  norm          17.862        10.570       -.18567E-07   -.19853E-04
  12  norm          .10000E-03    24.986        .87994E-07** at limit **
  13  Prefactor     42.274        27.285        .40494E-06    .53877E-04
  14  Prefactor     21.173        38.746       -.34665E-06   -.19887E-04
  15  Prefactor     39.340        38.722       -.43730E-06   -.42261E-04
  16  Prefactor     .10000E-03    8.2187       -.23332E-06** at limit **
  17  Prefactor     5.1183        4.9309        .39832E-07   -.67077E-05
  18  Prefactor     .10000E-03    3.5755        .46614E-07** at limit **
  19  Prefactor     7.4639        5.3883        .85617E-07   -.29520E-04
  20  Normalizat    1.0450        .21854        .55485E-06   -.12457E-03
  21  Prefactor     1.0901        .90146E-01   -.41800E-06   -.37107E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.9829
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.947206
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.557244
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.14037
  norm       = 17.8624
  norm       = 0.0001
  Prefactor  = 42.2741
  Prefactor  = 21.1726
  Prefactor  = 39.3396
  Prefactor  = 0.0001
  Prefactor  = 5.11827
  Prefactor  = 0.0001
  Prefactor  = 7.46393
  Normalizat = 1.04499
  Prefactor  = 1.09014
 **********
 **   18 **HESSE 
 **********

 FCN=   11813.72     FROM HESSE     STATUS=OK           319 CALLS     2509 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.983        36.123        .67735E-04   -1.4524    
   2  Prefactor     .10000E-03    8.4029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.1826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .94721        1.4167        .18757E-02   -1.5513    
   5  Prefactor     .10000E-03    1.8521        .28407E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.1825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .55724        1.8880        .26708E-03   -1.5559    
   8  Prefactor     .10000E-03    18.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    5.8822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.1404        1.4428        .85980E-04   -1.5354    
  11  norm          17.862        10.578        .94769E-04   -1.4862    
  12  norm          .10000E-03    24.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     42.274        27.389        .61659E-04   -1.4407    
  14  Prefactor     21.173        38.801        .87040E-04   -1.4787    
  15  Prefactor     39.340        38.757        .63900E-04   -1.4453    
  16  Prefactor     .10000E-03    8.2836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.1183        4.9295        .17771E-03   -1.5255    
  18  Prefactor     .10000E-03    3.6174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.4639        5.3875        .14680E-03   -1.5161    
  20  Normalizat    1.0450        .25316        .40936E-03   -.91538    
  21  Prefactor     1.0901        .10520        .16967E-03   -.89782    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.63652e-10
Minuit parameter uncertainties:
  1  36.146
  2  1.59521e-05
  3  2.69708e-06
  4  1.41673
  5  5.90667e-06
  6  1.61948e-05
  7  1.88817
  8  9.37642e-06
  9  5.75256e-06
  10  1.44282
  11  10.5792
  12  1.08053e-05
  13  27.3968
  14  38.8467
  15  38.782
  16  2.62444e-05
  17  4.92991
  18  3.69985e-07
  19  5.38783
  20  0.253455
  21  0.105222
Done.

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

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  1.786e+01  1.058e+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.090e+00  1.052e-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.045e+00  2.535e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.64
Ra Dec: 242.176 10.494
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 5.70e-08 +/- 3.37e-08
Energy Flux (Fixed Index): 1.63e-05 +/- 9.64e-06

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) = 11812.8407198
delta logL = 0.874492647163

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11812.7468169
delta logL = 0.968395553969

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.780       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5142       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0918       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0790       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11812.75     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      216 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.780        8.0706        .28012E-02    .43785E-02
   2  alpha         1.5143        .41043        .46178       -.57858E-04
   3  Normalizat    1.0919        .20818        .90641E-01   -.22697E-03
   4  Prefactor     1.0790        .88238E-01    .38445E-01   -.71456E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.7798
  alpha      = 1.51425
  Normalizat = 1.09187
  Prefactor  = 1.07899
 **********
 **   18 **HESSE 
 **********

 FCN=   11812.75     FROM HESSE     STATUS=OK            29 CALLS      245 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.780        10.397        .11205E-03   -1.4993    
   2  alpha         1.5143        .59438        .18815E-01   -.40530    
   3  Normalizat    1.0919        .24445        .40146E-03   -.90013    
   4  Prefactor     1.0790        .10387        .17043E-03   -.90141    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02299e-08
Minuit parameter uncertainties:
  1  10.398
  2  0.601222
  3  0.244704
  4  0.103886
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/54896': 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) = 11812.7468168
delta logL = 0.968395567354

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  1.278e+01  1.040e+01  1.000e-04  1.000e+04 ( 1.000e-12)
262        alpha:  1.514e+00  6.012e-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.079e+00  1.039e-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.092e+00  2.447e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.58
Ra Dec: 242.176 10.494
Photon Index (Free Index): 1.51 +/- 0.60
Photon Flux (Free Index): 2.27e-08 +/- 2.05e-08
Energy Flux (Free Index): 2.10e-05 +/- 1.60e-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/54896/cmap_HighResolution_545443201_545702401_4FGL_J1608.7+1029_daily_bin1181.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.70e-08', energy_flux2='2.10e-05', photon_flux_error='3.37e-08', dlogl='9.68e-01', energy_flux='1.63e-05', photon_flux2='2.27e-08', job_status='DONE', time_completed='2021-09-13 09:56:28.729031', photon_index_error2='0.60', photon_index2='1.51', ts='6.64', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='1.60e-05', EG='1.04', time_epoch_completed='1631552188.73', return_code='0', job_id='54896', GAL2='1.08', EG2='1.09', return_code2='0', energy_flux_error='9.64e-06', photon_flux_error2='2.05e-08', ts2='8.58', photon_index='2.46' WHERE bin_id='1181' AND source_name='4FGL J1608.7+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 09:56:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 54896: <4FGL_J1608.7+1029_daily_bin1181> in cluster <slac> Done

Job <4FGL_J1608.7+1029_daily_bin1181> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 13 09:40:19 2021
Job was executed on host(s) <bullet0042>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 09:41:35 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:41:35 2021
Terminated at Mon Sep 13 09:56:29 2021
Results reported at Mon Sep 13 09:56:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1608.7+1029_daily_bin1181 242.176 10.4938 545443201 545702401 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 :                                   741.31 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             292.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   894 sec.
    Turnaround time :                            970 sec.

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

