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


Performing analysis on: 4FGL_J1633.8+0701_daily_bin323
RA = 248.454, Dec = 7.0309
tmin = 323049601, tmax = 323308801
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='675606', job_status='RUN', time_executed='2021-09-14 21:02:59.972953', time_epoch_executed='1631678579.97' WHERE source_name='4FGL J1633.8+0701' and cadence='daily' and bin_id='323'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/675606

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/675606/ft1_4FGL_J1633.8+0701_daily_bin323.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/675606/ft2_4FGL_J1633.8+0701_daily_bin323.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/675606/ft1_4FGL_J1633.8+0701_daily_bin323.fits outfile=/scratch/kocevski/675606/ft1_filteredMKT_4FGL_J1633.8+0701_daily_bin323.fits ra=248.454 dec=7.0309 rad=12.0 tmin=323049601.0 tmax=323308801.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.34
user 3.08
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/675606/ft2_4FGL_J1633.8+0701_daily_bin323.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/675606/ft1_filteredMKT_4FGL_J1633.8+0701_daily_bin323.fits evtable="EVENTS" outfile="/scratch/kocevski/675606/ft1_filtered_4FGL_J1633.8+0701_daily_bin323.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/675606/ft1_filtered_4FGL_J1633.8+0701_daily_bin323.fits" evtable="EVENTS" scfile=/scratch/kocevski/675606/ft2_4FGL_J1633.8+0701_daily_bin323.fits sctable="SC_DATA" outfile=/scratch/kocevski/675606/ltcube_323049601_323308801_4FGL_J1633.8+0701_daily_bin323.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/675606/ft2_4FGL_J1633.8+0701_daily_bin323.fits
.....................!
real 13.92
user 13.52
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/675606/ft1_filtered_4FGL_J1633.8+0701_daily_bin323.fits evtable="EVENTS" scfile=/scratch/kocevski/675606/ft2_4FGL_J1633.8+0701_daily_bin323.fits sctable="SC_DATA" expcube=/scratch/kocevski/675606/ltcube_323049601_323308801_4FGL_J1633.8+0701_daily_bin323.fits outfile=/scratch/kocevski/675606/expmap_323049601_323308801_4FGL_J1633.8+0701_daily_bin323.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/675606/ltcube_323049601_323308801_4FGL_J1633.8+0701_daily_bin323.fits
.....................!
real 191.55
user 185.48
sys 5.47

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/675606/ft1_filtered_4FGL_J1633.8+0701_daily_bin323.fits scfile=/scratch/kocevski/675606/ft2_4FGL_J1633.8+0701_daily_bin323.fits outfile=/scratch/kocevski/675606/cmap_323049601_323308801_4FGL_J1633.8+0701_daily_bin323.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/675606/ft1_filtered_4FGL_J1633.8+0701_daily_bin323.fits scfile=/scratch/kocevski/675606/ft2_4FGL_J1633.8+0701_daily_bin323.fits outfile=/scratch/kocevski/675606/cmap_HighResolution_323049601_323308801_4FGL_J1633.8+0701_daily_bin323.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/675606/ft1_filtered_4FGL_J1633.8+0701_daily_bin323.fits evtable="EVENTS" scfile=/scratch/kocevski/675606/ft2_4FGL_J1633.8+0701_daily_bin323.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/675606/Model_4FGL_J1633.8+0701_daily_bin323.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/675606/ft1_filtered_4FGL_J1633.8+0701_daily_bin323.fits.....................!
real 81.32
user 79.95
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.185       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.830       1.0000         .10000E-03   10000.    
     4 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.7521       1.0000         .10000E-03   10000.    
     6 'norm      '    .10106E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    150.92       1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.599       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.9960       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.1248       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.065       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .31164       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.4159       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11281E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.3067       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .82285       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9983.870     FROM MIGRAD    STATUS=CONVERGED    651 CALLS     2058 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.187        7.6069        .10635E-03   -.50884E-04
   2  norm          .10000E-03    1.0944        .10193E-02** at limit **
   3  Prefactor     23.874        56.407        .82056E-04   -.47106E-05
   4  norm          .10000E-03    5.5086        .18142E-02** at limit **
   5  norm          4.7522        1.8994        .84229E-04   -.89892E-04
   6  norm          .10000E-03    15.863        .36285E-03** at limit **
   7  norm          151.07        111.01        .16404E-03    .32794E-04
   8  Prefactor     27.753        45.174        .76258E-04   -.25344E-04
   9  Prefactor     .10000E-03    88.521        .18142E-02** at limit **
  10  Prefactor     .10000E-03    15.489        .18142E-02** at limit **
  11  Prefactor     8.9956        7.8954        .13363E-03   -.10311E-03
  12  Prefactor     1.1228        3.7405        .33935E-03   -.14647E-03
  13  Prefactor     11.066        6.5761        .12044E-03   -.15934E-03
  14  Prefactor     .20636        26.415        .17183        .12895E-03
  15  Prefactor     9.4212        7.2575        .13060E-03   -.11351E-03
  16  Prefactor     .10000E-03    67.695        .18142E-02** at limit **
  17  Normalizat    1.3064        .26866        .38754E-03   -.63775E-04
  18  Prefactor     .82297        .87122E-01    .15752E-03   -.96239E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.1871
  norm       = 0.0001
  Prefactor  = 23.8736
  norm       = 0.0001
  norm       = 4.75219
  norm       = 0.0001
  norm       = 151.068
  Prefactor  = 27.7535
  Prefactor  = 0.000100003
  Prefactor  = 0.000100001
  Prefactor  = 8.99561
  Prefactor  = 1.12281
  Prefactor  = 11.0657
  Prefactor  = 0.206357
  Prefactor  = 9.42119
  Prefactor  = 0.0001
  Normalizat = 1.30635
  Prefactor  = 0.822967
 **********
 **   18 **HESSE 
 **********

 FCN=   9983.870     FROM HESSE     STATUS=OK           236 CALLS     2294 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.187        7.6068        .42539E-05   -1.4954    
   2  norm          .10000E-03    1.0944        .20387E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     23.874        56.410        .32822E-05   -1.4730    
   4  norm          .10000E-03    5.5099        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.7522        1.8993        .33692E-05   -1.5272    
   6  norm          .10000E-03    15.864        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          151.07        111.01        .32808E-04   -1.3244    
   8  Prefactor     27.753        45.110        .30503E-05   -1.4654    
   9  Prefactor     .10000E-03    88.578        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    15.501        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.9956        7.8946        .53452E-05   -1.5108    
  12  Prefactor     1.1228        3.7397        .13574E-04   -1.5496    
  13  Prefactor     11.066        6.5757        .48175E-05   -1.5043    
  14  Prefactor     .20636        26.353        .17221       -1.5617    
  15  Prefactor     9.4212        7.2572        .52241E-05   -1.5094    
  16  Prefactor     .10000E-03    67.696        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.3064        .26883        .15502E-04   -.83377    
  18  Prefactor     .82297        .87184E-01    .31505E-04   -.98887    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02881e-09
Minuit parameter uncertainties:
  1  7.6073
  2  1.39353e-06
  3  56.5366
  4  2.16534e-05
  5  1.89934
  6  0.00011606
  7  111.168
  8  45.165
  9  0.000958056
  10  0.000185951
  11  7.89553
  12  3.74046
  13  6.57612
  14  4.66491
  15  7.25787
  16  3.26484e-05
  17  0.269121
  18  0.0871987
Done.

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

Extracting fit parameters...

4FGL J1633.8+0701
   Spectrum: PowerLaw
245    Prefactor:  8.996e+00  7.896e+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:  8.230e-01  8.720e-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:  1.306e+00  2.691e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.74
Ra Dec: 248.454 7.031
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 4.45e-08 +/- 3.90e-08
Energy Flux (Fixed Index): 2.22e-05 +/- 1.95e-05

TS (Fixed Index): 2.74
Ra Dec: 248.454 7.031
Photon Flux Upper Limit: 1.33e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.01e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/675606/likelihoodResults_323049601_323308801_4FGL_J1633.8+0701_daily_bin323.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) = 9983.87005047
delta logL = 4.19102652813e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9983.8700268
delta logL = 6.55824987916e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.0565       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1377       1.0000          .0000       10.000    
     3 'Normalizat'    1.3069       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82284       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9983.870     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      275 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.0567        10.233        .13318E-03   -.12890E-03
   2  Index         2.1380        .76291        .98288E-02    .53634E-03
   3  Normalizat    1.3069        .26668        .38747E-03    .55336E-04
   4  Prefactor     .82287        .87336E-01    .15753E-03    .18238E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.05672
  Index      = 2.13797
  Normalizat = 1.3069
  Prefactor  = 0.822873
 **********
 **   18 **HESSE 
 **********

 FCN=   9983.870     FROM HESSE     STATUS=OK            25 CALLS      300 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.0567        9.6419        .53273E-05   -1.5106    
   2  Index         2.1380        .71824        .19658E-02   -.60944    
   3  Normalizat    1.3069        .26609        .15499E-04   -.83360    
   4  Prefactor     .82287        .87294E-01    .31507E-04   -.98891    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.20271e-11
Minuit parameter uncertainties:
  1  9.64358
  2  0.721969
  3  0.266364
  4  0.0873088
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/675606': 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) = 9983.8700263
delta logL = 6.60865007376e-05

Extracting fit parameters...

4FGL J1633.8+0701
   Spectrum: PowerLaw
245    Prefactor:  9.057e+00  9.644e+00  1.000e-04  1.000e+04 ( 1.000e-13)
246        Index:  2.138e+00  7.220e-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:  8.229e-01  8.731e-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:  1.307e+00  2.664e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.74
Ra Dec: 248.454 7.031
Photon Index (Free Index): 2.14 +/- 0.72
Photon Flux (Free Index): 4.40e-08 +/- 5.52e-08
Energy Flux (Free Index): 2.23e-05 +/- 2.34e-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/675606/cmap_HighResolution_323049601_323308801_4FGL_J1633.8+0701_daily_bin323.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', comment='SUCCESS', photon_flux='4.45e-08', energy_flux2='2.23e-05', photon_flux_error='3.90e-08', dlogl='6.61e-05', energy_flux='2.22e-05', photon_flux2='4.40e-08', job_status='DONE', time_completed='2021-09-14 21:15:18.725762', photon_index_error2='0.72', photon_index2='2.14', ts='2.74', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='1.33e-07', energy_flux_error2='2.34e-05', EG='1.31', time_epoch_completed='1631679318.73', return_code='0', job_id='675606', GAL2='0.82', EG2='1.31', return_code2='0', energy_flux_error='1.95e-05', photon_flux_error2='5.52e-08', ts2='2.74', photon_index='2.15' WHERE bin_id='323' AND source_name='4FGL J1633.8+0701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 21:15:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 675606: <4FGL_J1633.8+0701_daily_bin323> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1633.8+0701_daily_bin323 248.454 7.0309 323049601 323308801 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 :                                   737.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             287.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            894 sec.

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

