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


Performing analysis on: 4FGL_J1633.8+0701_daily_bin327
RA = 248.454, Dec = 7.0309
tmin = 324086401, tmax = 324345601
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='675612', job_status='RUN', time_executed='2021-09-14 21:01:01.112416', time_epoch_executed='1631678461.11' WHERE source_name='4FGL J1633.8+0701' and cadence='daily' and bin_id='327'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/675612

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/675612/ft1_4FGL_J1633.8+0701_daily_bin327.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/675612/ft2_4FGL_J1633.8+0701_daily_bin327.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/675612/ft1_4FGL_J1633.8+0701_daily_bin327.fits outfile=/scratch/kocevski/675612/ft1_filteredMKT_4FGL_J1633.8+0701_daily_bin327.fits ra=248.454 dec=7.0309 rad=12.0 tmin=324086401.0 tmax=324345601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.29
user 4.02
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/675612/ft2_4FGL_J1633.8+0701_daily_bin327.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/675612/ft1_filteredMKT_4FGL_J1633.8+0701_daily_bin327.fits evtable="EVENTS" outfile="/scratch/kocevski/675612/ft1_filtered_4FGL_J1633.8+0701_daily_bin327.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.52
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/675612/ft1_filtered_4FGL_J1633.8+0701_daily_bin327.fits" evtable="EVENTS" scfile=/scratch/kocevski/675612/ft2_4FGL_J1633.8+0701_daily_bin327.fits sctable="SC_DATA" outfile=/scratch/kocevski/675612/ltcube_324086401_324345601_4FGL_J1633.8+0701_daily_bin327.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/675612/ft2_4FGL_J1633.8+0701_daily_bin327.fits
.....................!
real 13.02
user 12.64
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/675612/ft1_filtered_4FGL_J1633.8+0701_daily_bin327.fits evtable="EVENTS" scfile=/scratch/kocevski/675612/ft2_4FGL_J1633.8+0701_daily_bin327.fits sctable="SC_DATA" expcube=/scratch/kocevski/675612/ltcube_324086401_324345601_4FGL_J1633.8+0701_daily_bin327.fits outfile=/scratch/kocevski/675612/expmap_324086401_324345601_4FGL_J1633.8+0701_daily_bin327.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/675612/ltcube_324086401_324345601_4FGL_J1633.8+0701_daily_bin327.fits
.....................!
real 193.31
user 187.68
sys 5.25

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/675612/ft1_filtered_4FGL_J1633.8+0701_daily_bin327.fits scfile=/scratch/kocevski/675612/ft2_4FGL_J1633.8+0701_daily_bin327.fits outfile=/scratch/kocevski/675612/cmap_324086401_324345601_4FGL_J1633.8+0701_daily_bin327.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/675612/ft1_filtered_4FGL_J1633.8+0701_daily_bin327.fits scfile=/scratch/kocevski/675612/ft2_4FGL_J1633.8+0701_daily_bin327.fits outfile=/scratch/kocevski/675612/cmap_HighResolution_324086401_324345601_4FGL_J1633.8+0701_daily_bin327.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.6717       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10336E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.2956       1.0000         .10000E-03   10000.    
     6 'norm      '    2.1966       1.0000         .10000E-03   10000.    
     7 'norm      '    39.341       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    40.271       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10633E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10984E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.6307       1.0000         .10000E-03   10000.    
    14 'Prefactor '    79.389       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.1365       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.4896       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .94172       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=   11195.25     FROM MIGRAD    STATUS=CONVERGED    386 CALLS     1785 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    2.7669       -.29159E-06** at limit **
   2  norm          6.6722        4.4771        .16315E-05   -.93333E-03
   3  Prefactor     .10002E-03    93.408        .10472E-04** at limit **
   4  norm          .10000E-03    11.736       -.34201E-07** at limit **
   5  norm          1.2958        1.1013       -.28244E-08   -.45515E-04
   6  norm          2.1984        18.953        .51817E-06   -.47388E-04
   7  norm          39.336        76.300       -.88894E-06   -.17480E-04
   8  Prefactor     .10000E-03    65.560       -.36914E-05** at limit **
   9  Prefactor     40.280        33.484        .49855E-06    .38844E-04
  10  Prefactor     .10000E-03    11.275        .14644E-06** at limit **
  11  Prefactor     .10000E-03    8.1611        .62912E-07** at limit **
  12  Prefactor     .10000E-03    2.2053        .84408E-07** at limit **
  13  Prefactor     6.6317        5.7766        .26922E-07   -.68992E-04
  14  Prefactor     79.375        61.055       -.16923E-05   -.10052E-03
  15  Prefactor     4.1391        8.2652        .76767E-06    .52450E-05
  16  Prefactor     .10002E-03    142.08       -.94855E-05** at limit **
  17  Normalizat    1.4894        .24775       -.53399E-06    .70501E-05
  18  Prefactor     .94180        .77316E-01   -.11084E-07   -.11771E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100016
  norm       = 6.67217
  Prefactor  = 0.000100019
  norm       = 0.0001
  norm       = 1.29578
  norm       = 2.19839
  norm       = 39.3364
  Prefactor  = 0.000100003
  Prefactor  = 40.2797
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.6317
  Prefactor  = 79.3754
  Prefactor  = 4.1391
  Prefactor  = 0.000100018
  Normalizat = 1.4894
  Prefactor  = 0.941798
 **********
 **   18 **HESSE 
 **********

 FCN=   11195.25     FROM HESSE     STATUS=OK           246 CALLS     2031 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    39.965        .33698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.6722        4.6945        .77676E-03   -1.5191    
   3  Prefactor     .10002E-03    100.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    12.182        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.2958        1.1010        .38861E-04   -1.5480    
   6  norm          2.1984        19.103        .27764E-03   -1.5411    
   7  norm          39.336        76.385        .63904E-04   -1.4453    
   8  Prefactor     .10000E-03    66.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     40.280        33.558        .63165E-04   -1.4438    
  10  Prefactor     .10000E-03    11.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.3883        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.1289        .30228E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.6317        5.7652        .15584E-03   -1.5193    
  14  Prefactor     79.375        61.456        .45073E-04   -1.3924    
  15  Prefactor     4.1391        8.2289        .19819E-03   -1.5301    
  16  Prefactor     .10002E-03    147.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.4894        .29303        .40975E-03   -.78077    
  18  Prefactor     .94180        .92638E-01    .16329E-03   -.94695    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08367e-09
Minuit parameter uncertainties:
  1  0.00160197
  2  4.69479
  3  0.0027859
  4  1.82649e-06
  5  1.10101
  6  12.9661
  7  76.576
  8  0.000844241
  9  33.5737
  10  6.18074e-06
  11  5.17848e-07
  12  6.56428e-06
  13  5.7657
  14  61.5057
  15  8.23113
  16  0.00328518
  17  0.293366
  18  0.0926539
Done.

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

Extracting fit parameters...

4FGL J1633.8+0701
   Spectrum: PowerLaw
245    Prefactor:  1.000e-04  5.178e-07  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.418e-01  9.265e-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.489e+00  2.934e-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: 8.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.14e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/675612/likelihoodResults_324086401_324345601_4FGL_J1633.8+0701_daily_bin327.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) = 11195.2484627
delta logL = -0.000568978774027

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11195.247894
delta logL = -1.97745976038e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1398       1.0000          .0000       10.000    
     3 'Normalizat'    1.4893       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94184       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=   11195.25     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      216 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.0008        .90712E-02** at limit **
   2  Index         2.1342        7.9111        .50000        .51056E-05
   3  Normalizat    1.4894        .38096E-02    .92520E-01    .26434E-04
   4  Prefactor     .94180        .12497E-02    .45536E-01    .80873E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.13417
  Normalizat = 1.4894
  Prefactor  = 0.941798
 **********
 **   18 **HESSE 
 **********

 FCN=   11195.25     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      247 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    247.80        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1342        8.2133        .50000       -.61036    
   3  Normalizat    1.4894        .35308E-01    .40975E-03   -.78077    
   4  Prefactor     .94180        .11602E-01    .16329E-03   -.94695    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.88521e-07
Minuit parameter uncertainties:
  1  3.14633e-06
  2  348.283
  3  0.035309
  4  0.0116017
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/675612': 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): 102
logL (Free Index) = 11195.2478937
delta logL = 1.62744981935e-08

Extracting fit parameters...

4FGL J1633.8+0701
   Spectrum: PowerLaw
245    Prefactor:  1.000e-04  3.146e-06  1.000e-04  1.000e+04 ( 1.000e-13)
246        Index:  2.134e+00  3.483e+02  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.418e-01  1.160e-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.489e+00  3.531e-02  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/675612/cmap_HighResolution_324086401_324345601_4FGL_J1633.8+0701_daily_bin327.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.14e-03', job_status='DONE', photon_flux_upper_limit='8.09e-08', time_completed='2021-09-14 21:13:36.555895', job_id='675612', GAL2='0.94', fit_tolerance='1e-08', EG2='1.49', EG='1.49', time_epoch_completed='1631679216.56', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='1.63e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='327' AND source_name='4FGL J1633.8+0701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 21:13:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 675612: <4FGL_J1633.8+0701_daily_bin327> in cluster <slac> Done

Job <4FGL_J1633.8+0701_daily_bin327> 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) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 14 21:00:47 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:47 2021
Terminated at Tue Sep 14 21:13:37 2021
Results reported at Tue Sep 14 21:13:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1633.8+0701_daily_bin327 248.454 7.0309 324086401 324345601 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 :                                   751.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             345.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   769 sec.
    Turnaround time :                            792 sec.

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

