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


Performing analysis on: 4FGL_J1633.8+0701_daily_bin493
RA = 248.454, Dec = 7.0309
tmin = 367113601, tmax = 367372801
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='675877', job_status='RUN', time_executed='2021-09-14 21:04:37.114101', time_epoch_executed='1631678677.11' WHERE source_name='4FGL J1633.8+0701' and cadence='daily' and bin_id='493'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/675877

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/675877/ft1_4FGL_J1633.8+0701_daily_bin493.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/675877/ft2_4FGL_J1633.8+0701_daily_bin493.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/675877/ft1_4FGL_J1633.8+0701_daily_bin493.fits outfile=/scratch/kocevski/675877/ft1_filteredMKT_4FGL_J1633.8+0701_daily_bin493.fits ra=248.454 dec=7.0309 rad=12.0 tmin=367113601.0 tmax=367372801.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 5.39
user 5.02
sys 0.31

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/675877/ft2_4FGL_J1633.8+0701_daily_bin493.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/675877/ft2_4FGL_J1633.8+0701_daily_bin493.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/675877/ft1_filteredMKT_4FGL_J1633.8+0701_daily_bin493.fits evtable="EVENTS" outfile="/scratch/kocevski/675877/ft1_filtered_4FGL_J1633.8+0701_daily_bin493.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.51
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/675877/ft1_filtered_4FGL_J1633.8+0701_daily_bin493.fits" evtable="EVENTS" scfile=/scratch/kocevski/675877/ft2_4FGL_J1633.8+0701_daily_bin493.fits sctable="SC_DATA" outfile=/scratch/kocevski/675877/ltcube_367113601_367372801_4FGL_J1633.8+0701_daily_bin493.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/675877/ft2_4FGL_J1633.8+0701_daily_bin493.fits
.....................!
real 14.53
user 14.16
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/675877/ft1_filtered_4FGL_J1633.8+0701_daily_bin493.fits evtable="EVENTS" scfile=/scratch/kocevski/675877/ft2_4FGL_J1633.8+0701_daily_bin493.fits sctable="SC_DATA" expcube=/scratch/kocevski/675877/ltcube_367113601_367372801_4FGL_J1633.8+0701_daily_bin493.fits outfile=/scratch/kocevski/675877/expmap_367113601_367372801_4FGL_J1633.8+0701_daily_bin493.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/675877/ltcube_367113601_367372801_4FGL_J1633.8+0701_daily_bin493.fits
.....................!
real 192.48
user 187.50
sys 4.39

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
Extended source FHES J1723.5-0501 in ROI with RadialGaussian spatial model.
Added 163 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1633.8+0701 @ 248.454 7.0309

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/675877/ft1_filtered_4FGL_J1633.8+0701_daily_bin493.fits scfile=/scratch/kocevski/675877/ft2_4FGL_J1633.8+0701_daily_bin493.fits outfile=/scratch/kocevski/675877/cmap_367113601_367372801_4FGL_J1633.8+0701_daily_bin493.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=248.454 yref=7.0309 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/675877/ft1_filtered_4FGL_J1633.8+0701_daily_bin493.fits scfile=/scratch/kocevski/675877/ft2_4FGL_J1633.8+0701_daily_bin493.fits outfile=/scratch/kocevski/675877/cmap_HighResolution_367113601_367372801_4FGL_J1633.8+0701_daily_bin493.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=248.454 yref=7.0309 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/675877/ft1_filtered_4FGL_J1633.8+0701_daily_bin493.fits evtable="EVENTS" scfile=/scratch/kocevski/675877/ft2_4FGL_J1633.8+0701_daily_bin493.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/675877/Model_4FGL_J1633.8+0701_daily_bin493.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 FHES J1723.5-0501
adding source GAL_V02
Working on...
/scratch/kocevski/675877/ft1_filtered_4FGL_J1633.8+0701_daily_bin493.fits.....................!
real 88.70
user 87.25
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/675877/ft1_filtered_4FGL_J1633.8+0701_daily_bin493.fits', '/scratch/kocevski/675877/ft2_4FGL_J1633.8+0701_daily_bin493.fits', expMap='/scratch/kocevski/675877/expmap_367113601_367372801_4FGL_J1633.8+0701_daily_bin493.fits', expCube='/scratch/kocevski/675877/ltcube_367113601_367372801_4FGL_J1633.8+0701_daily_bin493.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/675877/Model_4FGL_J1633.8+0701_daily_bin493.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1633.8+0701'

4FGL J1633.8+0701
   Spectrum: PowerLaw
245    Prefactor:  1.015e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
246        Index:  2.146e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
247        Scale:  1.918e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/675877/ft1_filtered_4FGL_J1633.8+0701_daily_bin493.fits
Spacecraft file(s): /scratch/kocevski/675877/ft2_4FGL_J1633.8+0701_daily_bin493.fits
Exposure map: /scratch/kocevski/675877/expmap_367113601_367372801_4FGL_J1633.8+0701_daily_bin493.fits
Exposure cube: /scratch/kocevski/675877/ltcube_367113601_367372801_4FGL_J1633.8+0701_daily_bin493.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/675877/Model_4FGL_J1633.8+0701_daily_bin493.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) = 10401.5397476

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8637       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10276E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    19.135       1.0000         .10000E-03   10000.    
     5 'norm      '    2.8327       1.0000         .10000E-03   10000.    
     6 'norm      '    2.0086       1.0000         .10000E-03   10000.    
     7 'norm      '    44.300       1.0000         .10000E-03   10000.    
     8 'Prefactor '    46.593       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.2111       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.2006       1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.826       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .98460E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.940       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.1796       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1110       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10401.53     FROM MIGRAD    STATUS=CONVERGED    351 CALLS     1936 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8638        3.7901        .83970E-06   -.47526E-04
   2  norm          .10000E-03    1.5664       -.10345E-06** at limit **
   3  Prefactor     .10000E-03    40.404        .49498E-07** at limit **
   4  norm          19.135        11.471        .36840E-07   -.12008E-04
   5  norm          2.8326        1.6391        .30332E-07   -.47057E-04
   6  norm          2.0063        14.340        .72743E-06   -.26329E-04
   7  norm          44.336        58.956        .38072E-05    .17617E-03
   8  Prefactor     46.629        63.999        .38900E-05    .14520E-03
   9  Prefactor     .10000E-03    9.0989       -.32802E-06** at limit **
  10  Prefactor     3.2103        8.4839        .12688E-04   -.26979E-03
  11  Prefactor     7.2008        6.4079       -.89548E-06   -.18935E-03
  12  Prefactor     14.826        7.9499       -.99920E-08   -.14406E-03
  13  Prefactor     .10000E-03    2.2204       -.16434E-06** at limit **
  14  Prefactor     .10000E-03    29.977       -.29117E-06** at limit **
  15  Prefactor     .10000E-03    4.3100       -.61211E-08** at limit **
  16  Prefactor     22.371        850.41        .74083E-04    .77004E-04
  17  Normalizat    1.1798        .28113        .32684E-05   -.17900E-03
  18  Prefactor     1.1109        .92603E-01   -.22943E-05    .31556E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.86379
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 19.1348
  norm       = 2.83264
  norm       = 2.00631
  norm       = 44.3357
  Prefactor  = 46.6292
  Prefactor  = 0.0001
  Prefactor  = 3.21028
  Prefactor  = 7.20076
  Prefactor  = 14.8262
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 22.3712
  Normalizat = 1.17982
  Prefactor  = 1.1109
 **********
 **   18 **HESSE 
 **********

 FCN=   10401.53     FROM HESSE     STATUS=OK           242 CALLS     2178 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8638        3.7639        .27509E-03   -1.5435    
   2  norm          .10000E-03    1.5777        .12463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    40.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          19.135        11.479        .91561E-04   -1.4833    
   5  norm          2.8326        1.6385        .96104E-04   -1.5371    
   6  norm          2.0063        14.286        .29213E-03   -1.5425    
   7  norm          44.336        59.238        .30117E-03   -1.4375    
   8  Prefactor     46.629        64.294        .58741E-04   -1.4341    
   9  Prefactor     .10000E-03    9.1049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.2103        8.6119        .11304E-02   -1.5350    
  11  Prefactor     7.2008        6.4075        .14948E-03   -1.5171    
  12  Prefactor     14.826        7.9494        .10402E-03   -1.4938    
  13  Prefactor     .10000E-03    2.2320        .14838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    29.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    25.321        .40577E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     22.371        906.53        .42757E-03   -1.4762    
  17  Normalizat    1.1798        .31910        .47692E-03   -.87229    
  18  Prefactor     1.1109        .10585        .16303E-03   -.89119    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.45379e-09
Minuit parameter uncertainties:
  1  3.76436
  2  6.48128e-07
  3  5.77765e-05
  4  11.4804
  5  1.63851
  6  10.7107
  7  59.3168
  8  64.3902
  9  3.68837e-05
  10  8.61518
  11  6.40807
  12  7.95
  13  3.20889e-06
  14  1.24971e-05
  15  0.000624867
  16  289.652
  17  0.319622
  18  0.10587
Done.

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

Extracting fit parameters...

4FGL J1633.8+0701
   Spectrum: PowerLaw
245    Prefactor:  7.201e+00  6.408e+00  1.000e-04  1.000e+04 ( 1.000e-13)
246        Index:  2.146e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
247        Scale:  1.918e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
548    Prefactor:  1.111e+00  1.059e-01  0.000e+00  1.000e+01 ( 1.000e+00)
549        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
550        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
544   Normalization:  1.180e+00  3.196e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.74
Ra Dec: 248.454 7.031
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 3.56e-08 +/- 3.17e-08
Energy Flux (Fixed Index): 1.77e-05 +/- 1.58e-05

TS (Fixed Index): 3.74
Ra Dec: 248.454 7.031
Photon Flux Upper Limit: 1.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/675877/likelihoodResults_367113601_367372801_4FGL_J1633.8+0701_daily_bin493.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) = 10401.5104702
delta logL = 0.0187192272297

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10401.5035283
delta logL = 0.0256610873712

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.0454       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9539       1.0000          .0000       10.000    
     3 'Normalizat'    1.1899       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1092       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10401.50     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      209 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.0534        160.27        .35338E-02    .13839E-03
   2  Index         1.9553        5.9664        .26061        .95910E-04
   3  Normalizat    1.1900        .12608        .10719       -.31113E-03
   4  Prefactor     1.1092        .29665E-01    .37246E-01   -.12849E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.05337
  Index      = 1.95528
  Normalizat = 1.19004
  Prefactor  = 1.10916
 **********
 **   18 **HESSE 
 **********

 FCN=   10401.50     FROM HESSE     STATUS=OK            29 CALLS      238 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.0534        7.9295        .14135E-03   -1.5140    
   2  Index         1.9553        .81220        .10072E-01   -.65473    
   3  Normalizat    1.1900        .31167        .47514E-03   -.86911    
   4  Prefactor     1.1092        .10394        .16314E-03   -.89174    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.34696e-10
Minuit parameter uncertainties:
  1  7.93058
  2  0.817982
  3  0.312158
  4  0.103961
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/675877': 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) = 10401.5035248
delta logL = 0.0256645577392

Extracting fit parameters...

4FGL J1633.8+0701
   Spectrum: PowerLaw
245    Prefactor:  8.053e+00  7.931e+00  1.000e-04  1.000e+04 ( 1.000e-13)
246        Index:  1.955e+00  8.180e-01  0.000e+00  1.000e+01 (-1.000e+00)
247        Scale:  1.918e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
548    Prefactor:  1.109e+00  1.040e-01  0.000e+00  1.000e+01 ( 1.000e+00)
549        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
550        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
544   Normalization:  1.190e+00  3.122e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.80
Ra Dec: 248.454 7.031
Photon Index (Free Index): 1.96 +/- 0.82
Photon Flux (Free Index): 2.72e-08 +/- 4.03e-08
Energy Flux (Free Index): 2.10e-05 +/- 2.75e-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/675877/cmap_HighResolution_367113601_367372801_4FGL_J1633.8+0701_daily_bin493.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.97e-03', comment='SUCCESS', photon_flux='3.56e-08', energy_flux2='2.10e-05', photon_flux_error='3.17e-08', dlogl='2.57e-02', energy_flux='1.77e-05', photon_flux2='2.72e-08', job_status='DONE', time_completed='2021-09-14 21:17:05.850870', photon_index_error2='0.82', photon_index2='1.96', ts='3.74', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='1.18e-07', energy_flux_error2='2.75e-05', EG='1.18', time_epoch_completed='1631679425.85', return_code='0', job_id='675877', GAL2='1.11', EG2='1.19', return_code2='0', energy_flux_error='1.58e-05', photon_flux_error2='4.03e-08', ts2='3.80', photon_index='2.15' WHERE bin_id='493' AND source_name='4FGL J1633.8+0701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 21:17:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 675877: <4FGL_J1633.8+0701_daily_bin493> in cluster <slac> Done

Job <4FGL_J1633.8+0701_daily_bin493> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 14 21:00:46 2021
Job was executed on host(s) <bullet0148>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 14 21:02:07 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 14 21:02:07 2021
Terminated at Tue Sep 14 21:17:06 2021
Results reported at Tue Sep 14 21:17:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1633.8+0701_daily_bin493 248.454 7.0309 367113601 367372801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1633.8+0701 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   745.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             315.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            980 sec.

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

