/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 104 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 = 7415
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1633.8+0701_daily_bin173
RA = 248.454, Dec = 7.0309
tmin = 284169601, tmax = 284428801
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='674288', job_status='RUN', time_executed='2021-09-14 20:58:17.679467', time_epoch_executed='1631678297.68' WHERE source_name='4FGL J1633.8+0701' and cadence='daily' and bin_id='173'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/674288

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/674288/ft1_4FGL_J1633.8+0701_daily_bin173.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/674288/ft2_4FGL_J1633.8+0701_daily_bin173.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/674288/ft1_4FGL_J1633.8+0701_daily_bin173.fits outfile=/scratch/kocevski/674288/ft1_filteredMKT_4FGL_J1633.8+0701_daily_bin173.fits ra=248.454 dec=7.0309 rad=12.0 tmin=284169601.0 tmax=284428801.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.71
user 3.34
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/674288/ft1_filtered_4FGL_J1633.8+0701_daily_bin173.fits" evtable="EVENTS" scfile=/scratch/kocevski/674288/ft2_4FGL_J1633.8+0701_daily_bin173.fits sctable="SC_DATA" outfile=/scratch/kocevski/674288/ltcube_284169601_284428801_4FGL_J1633.8+0701_daily_bin173.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/674288/ft2_4FGL_J1633.8+0701_daily_bin173.fits
.....................!
real 14.28
user 13.84
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/674288/ft1_filtered_4FGL_J1633.8+0701_daily_bin173.fits evtable="EVENTS" scfile=/scratch/kocevski/674288/ft2_4FGL_J1633.8+0701_daily_bin173.fits sctable="SC_DATA" expcube=/scratch/kocevski/674288/ltcube_284169601_284428801_4FGL_J1633.8+0701_daily_bin173.fits outfile=/scratch/kocevski/674288/expmap_284169601_284428801_4FGL_J1633.8+0701_daily_bin173.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/674288/ltcube_284169601_284428801_4FGL_J1633.8+0701_daily_bin173.fits
.....................!
real 194.27
user 188.37
sys 5.26

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/674288/ft1_filtered_4FGL_J1633.8+0701_daily_bin173.fits scfile=/scratch/kocevski/674288/ft2_4FGL_J1633.8+0701_daily_bin173.fits outfile=/scratch/kocevski/674288/cmap_284169601_284428801_4FGL_J1633.8+0701_daily_bin173.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.54
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/674288/ft1_filtered_4FGL_J1633.8+0701_daily_bin173.fits scfile=/scratch/kocevski/674288/ft2_4FGL_J1633.8+0701_daily_bin173.fits outfile=/scratch/kocevski/674288/cmap_HighResolution_284169601_284428801_4FGL_J1633.8+0701_daily_bin173.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.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/674288/ft1_filtered_4FGL_J1633.8+0701_daily_bin173.fits evtable="EVENTS" scfile=/scratch/kocevski/674288/ft2_4FGL_J1633.8+0701_daily_bin173.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/674288/Model_4FGL_J1633.8+0701_daily_bin173.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/674288/ft1_filtered_4FGL_J1633.8+0701_daily_bin173.fits.....................!
real 90.85
user 89.40
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/674288/ft1_filtered_4FGL_J1633.8+0701_daily_bin173.fits', '/scratch/kocevski/674288/ft2_4FGL_J1633.8+0701_daily_bin173.fits', expMap='/scratch/kocevski/674288/expmap_284169601_284428801_4FGL_J1633.8+0701_daily_bin173.fits', expCube='/scratch/kocevski/674288/ltcube_284169601_284428801_4FGL_J1633.8+0701_daily_bin173.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/674288/Model_4FGL_J1633.8+0701_daily_bin173.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/674288/ft1_filtered_4FGL_J1633.8+0701_daily_bin173.fits
Spacecraft file(s): /scratch/kocevski/674288/ft2_4FGL_J1633.8+0701_daily_bin173.fits
Exposure map: /scratch/kocevski/674288/expmap_284169601_284428801_4FGL_J1633.8+0701_daily_bin173.fits
Exposure cube: /scratch/kocevski/674288/ltcube_284169601_284428801_4FGL_J1633.8+0701_daily_bin173.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/674288/Model_4FGL_J1633.8+0701_daily_bin173.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) = 11056.4157275

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.0603       1.0000         .10000E-03   10000.    
     3 'Prefactor '    106.76       1.0000         .10000E-03   10000.    
     4 'norm      '    11.610       1.0000         .10000E-03   10000.    
     5 'norm      '    6.3366       1.0000         .10000E-03   10000.    
     6 'norm      '    22.514       1.0000         .10000E-03   10000.    
     7 'norm      '    74.642       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .55238E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .28982       1.0000         .10000E-03   10000.    
    14 'Prefactor '    41.617       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.8578       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .96984       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=   11056.42     FROM MIGRAD    STATUS=CONVERGED    370 CALLS     1800 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.3276        .90712E-02** at limit **
   2  norm          1.0604        3.1744        .11900E-01    .18845E-02
   3  Prefactor     106.77        74.799        .97302E-03   -.12042E-02
   4  norm          11.611        9.5552        .29393E-02   -.64925E-04
   5  norm          6.3367        2.0944        .39864E-02   -.23060E-03
   6  norm          22.516        14.754        .21104E-02    .77193E-03
   7  norm          74.642        81.965        .11618E-02   -.13537E-03
   8  Prefactor     .10000E-03    20.086        .90712E-02** at limit **
   9  Prefactor     .10000E-03    24.805        .90712E-02** at limit **
  10  Prefactor     .10000E-03    9.9472        .90712E-02** at limit **
  11  Prefactor     .10000E-03    4.2321        .90712E-02** at limit **
  12  Prefactor     .10000E-03    3.2806        .61566E-01** at limit **
  13  Prefactor     .29898        3.8599        .69618E-01    .69792E-03
  14  Prefactor     41.618        56.073        .15535E-02   -.67612E-03
  15  Prefactor     .10000E-03    8.4787        .90712E-02** at limit **
  16  Prefactor     .10000E-03    128.57        .90712E-02** at limit **
  17  Normalizat    1.8576        .27026        .94231E-01    .65873E-04
  18  Prefactor     .96985        .85318E-01    .45889E-01    .60755E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.06043
  Prefactor  = 106.766
  norm       = 11.6106
  norm       = 6.33665
  norm       = 22.5158
  norm       = 74.6418
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.298985
  Prefactor  = 41.6184
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.8576
  Prefactor  = 0.96985
 **********
 **   18 **HESSE 
 **********

 FCN=   11056.42     FROM HESSE     STATUS=OK           240 CALLS     2040 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.3534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.0604        3.1261        .31344E-03   -1.5502    
   3  Prefactor     106.77        74.852        .38921E-04   -1.3638    
   4  norm          11.611        9.5599        .11757E-03   -1.5026    
   5  norm          6.3367        2.0946        .84500E-04   -1.5204    
   6  norm          22.516        14.785        .84418E-04   -1.4759    
   7  norm          74.642        81.974        .46474E-04   -1.3978    
   8  Prefactor     .10000E-03    20.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    24.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.2551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.275        .36466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .29898        25.676        .38976E-02   -1.5599    
  14  Prefactor     41.618        56.059        .62139E-04   -1.4417    
  15  Prefactor     .10000E-03    8.6359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    128.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.8576        .32335        .41725E-03   -.68169    
  18  Prefactor     .96985        .10265        .17774E-03   -.93741    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23286e-08
Minuit parameter uncertainties:
  1  3.35789e-06
  2  3.1266
  3  74.9183
  4  9.56116
  5  2.09462
  6  14.7877
  7  82.098
  8  5.93358e-06
  9  2.60975e-05
  10  7.34655e-07
  11  6.30157e-06
  12  7.57365e-05
  13  5.54286
  14  56.1299
  15  1.86324e-05
  16  5.35834e-05
  17  0.323723
  18  0.102669
Done.

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

Extracting fit parameters...

4FGL J1633.8+0701
   Spectrum: PowerLaw
245    Prefactor:  1.000e-04  6.302e-06  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:  9.698e-01  1.027e-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.858e+00  3.237e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 248.454 7.031
Photon Flux Upper Limit: 7.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.05e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/674288/likelihoodResults_284169601_284428801_4FGL_J1633.8+0701_daily_bin173.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): 102
logL (Free Index) = 11056.4164878
delta logL = -0.00112002609239

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11056.4153677
delta logL = -3.17231751978e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1405       1.0000          .0000       10.000    
     3 'Normalizat'    1.8576       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96984       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=   11056.42     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      206 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    46.142        .90712E-02** at limit **
   2  Index         2.1348        8.1761        .50000        .10752E-04
   3  Normalizat    1.8576        .23506E-01    .94231E-01   -.80628E-05
   4  Prefactor     .96985        .76449E-02    .45889E-01   -.40205E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.13481
  Normalizat = 1.8576
  Prefactor  = 0.96985
 **********
 **   18 **HESSE 
 **********

 FCN=   11056.42     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.1991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1348        5.9246        .50000       -.61021    
   3  Normalizat    1.8576        .31237        .41725E-03   -.68169    
   4  Prefactor     .96985        .10184        .17774E-03   -.93741    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8146e-10
Minuit parameter uncertainties:
  1  7.38875e-06
  2  5.32776
  3  0.31271
  4  0.101857
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/674288': 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) = 11056.4153677
delta logL = 3.05008143187e-08

Extracting fit parameters...

4FGL J1633.8+0701
   Spectrum: PowerLaw
245    Prefactor:  1.000e-04  7.389e-06  1.000e-04  1.000e+04 ( 1.000e-13)
246        Index:  2.135e+00  5.328e+00  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:  9.698e-01  1.019e-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.858e+00  3.127e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 248.454 7.031

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/674288/cmap_HighResolution_284169601_284428801_4FGL_J1633.8+0701_daily_bin173.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.05e-03', job_status='DONE', photon_flux_upper_limit='7.97e-08', time_completed='2021-09-14 21:10:48.117276', job_id='674288', GAL2='0.97', fit_tolerance='1e-08', EG2='1.86', EG='1.86', time_epoch_completed='1631679048.12', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='3.05e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='173' AND source_name='4FGL J1633.8+0701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 21:10:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 674288: <4FGL_J1633.8+0701_daily_bin173> in cluster <slac> Done

Job <4FGL_J1633.8+0701_daily_bin173> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 14 20:55:31 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 14 20:56:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 14 20:56:23 2021
Terminated at Tue Sep 14 21:10:49 2021
Results reported at Tue Sep 14 21:10:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1633.8+0701_daily_bin173 248.454 7.0309 284169601 284428801 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 :                                   748.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            918 sec.

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

