/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 92 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 = 7401
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1633.8+0701_daily_bin19
RA = 248.454, Dec = 7.0309
tmin = 244252801, tmax = 244512001
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='674070', job_status='RUN', time_executed='2021-09-14 20:57:03.671286', time_epoch_executed='1631678223.67' WHERE source_name='4FGL J1633.8+0701' and cadence='daily' and bin_id='19'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/674070

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/674070/ft1_4FGL_J1633.8+0701_daily_bin19.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/674070/ft2_4FGL_J1633.8+0701_daily_bin19.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/674070/ft1_4FGL_J1633.8+0701_daily_bin19.fits outfile=/scratch/kocevski/674070/ft1_filteredMKT_4FGL_J1633.8+0701_daily_bin19.fits ra=248.454 dec=7.0309 rad=12.0 tmin=244252801.0 tmax=244512001.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 2.42
user 2.20
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/674070/ft1_filtered_4FGL_J1633.8+0701_daily_bin19.fits evtable="EVENTS" scfile=/scratch/kocevski/674070/ft2_4FGL_J1633.8+0701_daily_bin19.fits sctable="SC_DATA" expcube=/scratch/kocevski/674070/ltcube_244252801_244512001_4FGL_J1633.8+0701_daily_bin19.fits outfile=/scratch/kocevski/674070/expmap_244252801_244512001_4FGL_J1633.8+0701_daily_bin19.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/674070/ltcube_244252801_244512001_4FGL_J1633.8+0701_daily_bin19.fits
.....................!
real 190.41
user 185.55
sys 4.34

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/674070/ft1_filtered_4FGL_J1633.8+0701_daily_bin19.fits scfile=/scratch/kocevski/674070/ft2_4FGL_J1633.8+0701_daily_bin19.fits outfile=/scratch/kocevski/674070/cmap_244252801_244512001_4FGL_J1633.8+0701_daily_bin19.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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/674070/ft1_filtered_4FGL_J1633.8+0701_daily_bin19.fits scfile=/scratch/kocevski/674070/ft2_4FGL_J1633.8+0701_daily_bin19.fits outfile=/scratch/kocevski/674070/cmap_HighResolution_244252801_244512001_4FGL_J1633.8+0701_daily_bin19.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7030       1.0000         .10000E-03   10000.    
     2 'norm      '    .55059E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    62.418       1.0000         .10000E-03   10000.    
     4 'norm      '    19.562       1.0000         .10000E-03   10000.    
     5 'norm      '    4.4717       1.0000         .10000E-03   10000.    
     6 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .12490E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    26.682       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10181E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .53622       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    52.601       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.6206       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .24718E-02   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .86993       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0731       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=   10283.27     FROM MIGRAD    STATUS=CONVERGED    383 CALLS     1778 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7090        4.0247        .22574E-05    .73272E-03
   2  norm          .56601E-01    5.0670        .18066E-05   -.11220E-02
   3  Prefactor     62.430        74.327        .59743E-07   -.23683E-04
   4  norm          19.570        12.284        .11431E-07   -.12182E-03
   5  norm          4.4717        2.1136        .15422E-07   -.53822E-04
   6  norm          .10000E-03    3.6094       -.45760E-07** at limit **
   7  norm          .10000E-03    74.220        .13412E-07** at limit **
   8  Prefactor     26.732        52.395        .11321E-05    .79629E-04
   9  Prefactor     .10000E-03    6.6076       -.41282E-07** at limit **
  10  Prefactor     .54450        4.9063        .11190E-05   -.22680E-03
  11  Prefactor     .10000E-03    2.5785       -.16238E-07** at limit **
  12  Prefactor     .10000E-03    1.6479       -.25089E-07** at limit **
  13  Prefactor     .10000E-03    1.7700       -.49061E-07** at limit **
  14  Prefactor     52.637        64.657        .32337E-06    .69430E-04
  15  Prefactor     3.6242        6.8083        .10303E-05    .26184E-03
  16  Prefactor     .10000E-03    340.78        .70757E-06** at limit **
  17  Normalizat    .86978        .25652       -.80358E-06   -.17602E-03
  18  Prefactor     1.0730        .84016E-01   -.19185E-06   -.53478E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.70897
  norm       = 0.056601
  Prefactor  = 62.43
  norm       = 19.5697
  norm       = 4.47175
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 26.7323
  Prefactor  = 0.0001
  Prefactor  = 0.544496
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 52.637
  Prefactor  = 3.62416
  Prefactor  = 0.000100002
  Normalizat = 0.869783
  Prefactor  = 1.073
 **********
 **   18 **HESSE 
 **********

 FCN=   10283.27     FROM HESSE     STATUS=OK           250 CALLS     2028 TOTAL
                     EDM=   .61E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7090        4.1674        .31096E-03   -1.5447    
   2  norm          .56601E-01    2.5436        .49719E-01   -1.5660    
   3  Prefactor     62.430        74.393        .50790E-04   -1.4126    
   4  norm          19.570        12.303        .90557E-04   -1.4823    
   5  norm          4.4717        2.1122        .96173E-04   -1.5285    
   6  norm          .10000E-03    3.6129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    74.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     26.732        52.407        .77555E-04   -1.4673    
   9  Prefactor     .10000E-03    6.6105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .54450        15.633        .40373E-02   -1.5560    
  11  Prefactor     .10000E-03    2.5884        .15897E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.6626        .12708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.7796        .13172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     52.637        64.534        .55300E-04   -1.4256    
  15  Prefactor     3.6242        6.7992        .21233E-03   -1.5327    
  16  Prefactor     .10000E-03    341.88        .20029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .86978        .29124        .48134E-03   -.97530    
  18  Prefactor     1.0730        .96431E-01    .14856E-03   -.90334    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.11842e-08
Minuit parameter uncertainties:
  1  4.16807
  2  0.758226
  3  74.5037
  4  12.3041
  5  2.11226
  6  3.18096e-06
  7  1.75009e-05
  8  52.4971
  9  4.55791e-06
  10  5.83626
  11  1.95288e-06
  12  5.19956e-07
  13  2.74634e-06
  14  64.6201
  15  6.80069
  16  0.00156447
  17  0.291771
  18  0.0964469
Done.

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

Extracting fit parameters...

4FGL J1633.8+0701
   Spectrum: PowerLaw
245    Prefactor:  1.000e-04  1.953e-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:  1.073e+00  9.645e-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:  8.698e-01  2.918e-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: 5.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/674070/likelihoodResults_244252801_244512001_4FGL_J1633.8+0701_daily_bin19.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) = 10283.2691877
delta logL = -0.00183969809586

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10283.2673481
delta logL = -9.64955688687e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1326       1.0000          .0000       10.000    
     3 'Normalizat'    .86974       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0730       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   10283.27     FROM MIGRAD    STATUS=FAILED        87 CALLS      241 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10093E-03    28.513        .16016E-02** at limit **
   2  Index         2.0784        6.0379        .50000        .36192E-04
   3  Normalizat    .86978        .20003E-01    .48135E-03    .62447E-04
   4  Prefactor     1.0730        .68434E-02    .14856E-03    .13514E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   10283.27     FROM SIMPLEX   STATUS=UNCHANGED    130 CALLS      371 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10093E-03    28.513        .31396E-03** at limit **
   2  Index         2.0784        6.0379        .33570E-03    .36192E-04
   3  Normalizat    .86978        .20003E-01    .25752E-05    .62447E-04
   4  Prefactor     1.0730        .68434E-02    .42031E-06    .13514E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10283.27     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      417 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.202        .32031E-02** at limit **
   2  Index         1.7434        6.8823        .50000        .34197E-07
   3  Normalizat    .86978        .19072E-01    .19254E-04   -.69745E-03
   4  Prefactor     1.0730        .65251E-02    .59424E-05   -.22353E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.7434
  Normalizat = 0.869781
  Prefactor  = 1.073
 **********
 **   18 **HESSE 
 **********

 FCN=   10283.27     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      446 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    167.84        .64063E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7434        7.8849        .50000       -.70932    
   3  Normalizat    .86978        .49458E-01    .38508E-05   -.97530    
   4  Prefactor     1.0730        .16917E-01    .11885E-05   -.90334    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.81934e-10
Minuit parameter uncertainties:
  1  6.5068e-05
  2  750.221
  3  0.0494602
  4  0.0169168
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/674070': 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) = 10283.2673459
delta logL = 2.1334108169e-06

Extracting fit parameters...

4FGL J1633.8+0701
   Spectrum: PowerLaw
245    Prefactor:  1.000e-04  6.507e-05  1.000e-04  1.000e+04 ( 1.000e-13)
246        Index:  1.743e+00  7.502e+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:  1.073e+00  1.692e-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:  8.698e-01  4.946e-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/674070/cmap_HighResolution_244252801_244512001_4FGL_J1633.8+0701_daily_bin19.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.37e-03', job_status='DONE', photon_flux_upper_limit='5.75e-08', time_completed='2021-09-14 21:09:24.421744', job_id='674070', GAL2='1.07', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1631678964.42', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='2.13e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='19' AND source_name='4FGL J1633.8+0701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 21:09:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 674070: <4FGL_J1633.8+0701_daily_bin19> in cluster <slac> Done

Job <4FGL_J1633.8+0701_daily_bin19> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 14 20:55:17 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 14 20:55:22 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:55:22 2021
Terminated at Tue Sep 14 21:09:25 2021
Results reported at Tue Sep 14 21:09:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1633.8+0701_daily_bin19 248.454 7.0309 244252801 244512001 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 :                                   736.46 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             293.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            848 sec.

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

