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


Performing analysis on: 4FGL_J1633.8+0701_daily_bin396
RA = 248.454, Dec = 7.0309
tmin = 341971201, tmax = 342230401
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='675725', job_status='RUN', time_executed='2021-09-14 21:03:33.039619', time_epoch_executed='1631678613.04' WHERE source_name='4FGL J1633.8+0701' and cadence='daily' and bin_id='396'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/675725

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/675725/ft1_4FGL_J1633.8+0701_daily_bin396.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/675725/ft2_4FGL_J1633.8+0701_daily_bin396.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/675725/ft1_4FGL_J1633.8+0701_daily_bin396.fits outfile=/scratch/kocevski/675725/ft1_filteredMKT_4FGL_J1633.8+0701_daily_bin396.fits ra=248.454 dec=7.0309 rad=12.0 tmin=341971201.0 tmax=342230401.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.46
user 3.22
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/675725/ft1_filtered_4FGL_J1633.8+0701_daily_bin396.fits" evtable="EVENTS" scfile=/scratch/kocevski/675725/ft2_4FGL_J1633.8+0701_daily_bin396.fits sctable="SC_DATA" outfile=/scratch/kocevski/675725/ltcube_341971201_342230401_4FGL_J1633.8+0701_daily_bin396.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/675725/ft2_4FGL_J1633.8+0701_daily_bin396.fits
.....................!
real 13.58
user 13.15
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/675725/ft1_filtered_4FGL_J1633.8+0701_daily_bin396.fits evtable="EVENTS" scfile=/scratch/kocevski/675725/ft2_4FGL_J1633.8+0701_daily_bin396.fits sctable="SC_DATA" expcube=/scratch/kocevski/675725/ltcube_341971201_342230401_4FGL_J1633.8+0701_daily_bin396.fits outfile=/scratch/kocevski/675725/expmap_341971201_342230401_4FGL_J1633.8+0701_daily_bin396.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/675725/ltcube_341971201_342230401_4FGL_J1633.8+0701_daily_bin396.fits
.....................!
real 191.25
user 185.02
sys 5.81

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/675725/ft1_filtered_4FGL_J1633.8+0701_daily_bin396.fits scfile=/scratch/kocevski/675725/ft2_4FGL_J1633.8+0701_daily_bin396.fits outfile=/scratch/kocevski/675725/cmap_341971201_342230401_4FGL_J1633.8+0701_daily_bin396.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/675725/ft1_filtered_4FGL_J1633.8+0701_daily_bin396.fits scfile=/scratch/kocevski/675725/ft2_4FGL_J1633.8+0701_daily_bin396.fits outfile=/scratch/kocevski/675725/cmap_HighResolution_341971201_342230401_4FGL_J1633.8+0701_daily_bin396.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9585       1.0000         .10000E-03   10000.    
     2 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.428       1.0000         .10000E-03   10000.    
     4 'norm      '    2.3184       1.0000         .10000E-03   10000.    
     5 'norm      '    4.2366       1.0000         .10000E-03   10000.    
     6 'norm      '    9.2431       1.0000         .10000E-03   10000.    
     7 'norm      '    .10855E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.649       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10714E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.5310       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.2031       1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.050       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12684E-01   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .91512       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1683       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=   10755.10     FROM MIGRAD    STATUS=CONVERGED    360 CALLS     1789 TOTAL
                     EDM=   .13E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9556        7.3498       -.13771E-06    .46015E-04
   2  norm          .10000E-03    3.0710       -.25858E-06** at limit **
   3  Prefactor     10.332        92.564        .85652E-05   -.23741E-05
   4  norm          2.3127        12.303        .20092E-05   -.12043E-04
   5  norm          4.2369        1.9961       -.42892E-07   -.43066E-04
   6  norm          9.2451        16.556        .39783E-07   -.24078E-05
   7  norm          .10000E-03    33.418        .16365E-06** at limit **
   8  Prefactor     27.652        43.521       -.45555E-07    .24904E-06
   9  Prefactor     .10000E-03    45.732       -.52312E-06** at limit **
  10  Prefactor     .10000E-03    7.0481       -.87812E-07** at limit **
  11  Prefactor     3.5311        4.0733        .27746E-07    .26701E-05
  12  Prefactor     .10000E-03    2.9801       -.85908E-07** at limit **
  13  Prefactor     .10000E-03    3.7853       -.83913E-07** at limit **
  14  Prefactor     9.1976        124.74        .76605E-06   -.37738E-06
  15  Prefactor     14.052        9.3547        .12612E-06   -.56571E-05
  16  Prefactor     .10001E-03    6816.4        .62413E-04** at limit **
  17  Normalizat    .91556        .28160       -.22300E-06   -.80078E-05
  18  Prefactor     1.1681        .88804E-01   -.11368E-06   -.66335E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.95556
  norm       = 0.000100004
  Prefactor  = 10.3317
  norm       = 2.31267
  norm       = 4.23687
  norm       = 9.24509
  norm       = 0.0001
  Prefactor  = 27.6518
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.53106
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.19757
  Prefactor  = 14.0523
  Prefactor  = 0.00010001
  Normalizat = 0.915561
  Prefactor  = 1.16815
 **********
 **   18 **HESSE 
 **********

 FCN=   10755.10     FROM HESSE     STATUS=OK           250 CALLS     2039 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9556        7.1349        .23609E-03   -1.5364    
   2  norm          .10000E-03    23.530        .33775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.332        93.263        .12407E-03   -1.5065    
   4  norm          2.3127        12.378        .13471E-02   -1.5404    
   5  norm          4.2369        1.9959        .95599E-04   -1.5296    
   6  norm          9.2451        16.579        .13182E-03   -1.5100    
   7  norm          .10000E-03    33.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     27.652        43.515        .76189E-04   -1.4656    
   9  Prefactor     .10000E-03    46.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.1108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.5311        4.0714        .21512E-03   -1.5332    
  12  Prefactor     .10000E-03    3.0138        .17477E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.8234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.1976        124.55        .13211E-03   -1.5101    
  15  Prefactor     14.052        9.3363        .10686E-03   -1.4958    
  16  Prefactor     .10001E-03    6826.1        .18173E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .91556        .31125        .51866E-03   -.95915    
  18  Prefactor     1.1681        .99404E-01    .15617E-03   -.87317    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.95338e-10
Minuit parameter uncertainties:
  1  7.13694
  2  0.000576218
  3  62.2117
  4  10.7038
  5  1.99598
  6  16.5873
  7  9.09138e-07
  8  43.5654
  9  1.40643e-05
  10  1.58971e-06
  11  4.07174
  12  9.18189e-07
  13  4.80917e-07
  14  67.8633
  15  9.33731
  16  0.0129383
  17  0.311864
  18  0.0994196
Done.

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

Extracting fit parameters...

4FGL J1633.8+0701
   Spectrum: PowerLaw
245    Prefactor:  3.531e+00  4.072e+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.168e+00  9.942e-02  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:  9.156e-01  3.119e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.06
Ra Dec: 248.454 7.031
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 1.75e-08 +/- 2.01e-08
Energy Flux (Fixed Index): 8.70e-06 +/- 1.00e-05

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

Saving results to:
/scratch/kocevski/675725/likelihoodResults_341971201_342230401_4FGL_J1633.8+0701_daily_bin396.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) = 10754.5973449
delta logL = 0.501601440752

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10754.5861402
delta logL = 0.512806160412

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1804       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3339       1.0000          .0000       10.000    
     3 'Normalizat'    .92770       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1665       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=   10754.59     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      212 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1836        5.6648        .49279E-02   -.50286E-02
   2  Index         1.3342        .70048        .32043       -.55330E-04
   3  Normalizat    .92769        .26054        .11624        .24381E-04
   4  Prefactor     1.1665        .87599E-01    .35475E-01   -.91936E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.18357
  Index      = 1.33425
  Normalizat = 0.927691
  Prefactor  = 1.16654
 **********
 **   18 **HESSE 
 **********

 FCN=   10754.59     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .54E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1836        4.8576        .98558E-03   -1.5299    
   2  Index         1.3342        .69528        .16833E-01   -.82294    
   3  Normalizat    .92769        .28815        .51549E-03   -.95494    
   4  Prefactor     1.1665        .97686E-01    .15625E-03   -.87367    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.38821e-12
Minuit parameter uncertainties:
  1  4.85809
  2  0.700222
  3  0.288632
  4  0.0977012
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/675725': 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) = 10754.5861399
delta logL = 0.512806390901

Extracting fit parameters...

4FGL J1633.8+0701
   Spectrum: PowerLaw
245    Prefactor:  4.184e+00  4.858e+00  1.000e-04  1.000e+04 ( 1.000e-13)
246        Index:  1.334e+00  7.002e-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.167e+00  9.770e-02  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:  9.277e-01  2.886e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.08
Ra Dec: 248.454 7.031
Photon Index (Free Index): 1.33 +/- 0.70
Photon Flux (Free Index): 5.80e-09 +/- 8.22e-09
Energy Flux (Free Index): 3.18e-05 +/- 5.58e-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/675725/cmap_HighResolution_341971201_342230401_4FGL_J1633.8+0701_daily_bin396.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.34e-03', comment='SUCCESS', photon_flux='1.75e-08', energy_flux2='3.18e-05', photon_flux_error='2.01e-08', dlogl='5.13e-01', energy_flux='8.70e-06', photon_flux2='5.80e-09', job_status='DONE', time_completed='2021-09-14 21:15:36.966901', photon_index_error2='0.70', photon_index2='1.33', ts='2.06', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', photon_flux_upper_limit='8.35e-08', energy_flux_error2='5.58e-05', EG='0.92', time_epoch_completed='1631679336.97', return_code='0', job_id='675725', GAL2='1.17', EG2='0.93', return_code2='0', energy_flux_error='1.00e-05', photon_flux_error2='8.22e-09', ts2='3.08', photon_index='2.15' WHERE bin_id='396' AND source_name='4FGL J1633.8+0701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 21:15:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 675725: <4FGL_J1633.8+0701_daily_bin396> in cluster <slac> Done

Job <4FGL_J1633.8+0701_daily_bin396> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 14 21:00:34 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 14 21:01:20 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:01:20 2021
Terminated at Tue Sep 14 21:15:37 2021
Results reported at Tue Sep 14 21:15:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1633.8+0701_daily_bin396 248.454 7.0309 341971201 342230401 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 :                                   722.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             326.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   857 sec.
    Turnaround time :                            903 sec.

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

