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


Performing analysis on: 4FGL_J1633.8+0701_daily_bin146
RA = 248.454, Dec = 7.0309
tmin = 277171201, tmax = 277430401
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='674251', job_status='RUN', time_executed='2021-09-14 20:58:45.991674', time_epoch_executed='1631678325.99' WHERE source_name='4FGL J1633.8+0701' and cadence='daily' and bin_id='146'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/674251

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/674251/ft1_4FGL_J1633.8+0701_daily_bin146.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/674251/ft2_4FGL_J1633.8+0701_daily_bin146.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/674251/ft1_4FGL_J1633.8+0701_daily_bin146.fits outfile=/scratch/kocevski/674251/ft1_filteredMKT_4FGL_J1633.8+0701_daily_bin146.fits ra=248.454 dec=7.0309 rad=12.0 tmin=277171201.0 tmax=277430401.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.62
user 3.40
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/674251/ft1_filtered_4FGL_J1633.8+0701_daily_bin146.fits" evtable="EVENTS" scfile=/scratch/kocevski/674251/ft2_4FGL_J1633.8+0701_daily_bin146.fits sctable="SC_DATA" outfile=/scratch/kocevski/674251/ltcube_277171201_277430401_4FGL_J1633.8+0701_daily_bin146.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/674251/ft2_4FGL_J1633.8+0701_daily_bin146.fits
.....................!
real 14.17
user 13.81
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/674251/ft1_filtered_4FGL_J1633.8+0701_daily_bin146.fits evtable="EVENTS" scfile=/scratch/kocevski/674251/ft2_4FGL_J1633.8+0701_daily_bin146.fits sctable="SC_DATA" expcube=/scratch/kocevski/674251/ltcube_277171201_277430401_4FGL_J1633.8+0701_daily_bin146.fits outfile=/scratch/kocevski/674251/expmap_277171201_277430401_4FGL_J1633.8+0701_daily_bin146.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/674251/ltcube_277171201_277430401_4FGL_J1633.8+0701_daily_bin146.fits
.....................!
real 191.69
user 186.77
sys 4.08

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/674251/ft1_filtered_4FGL_J1633.8+0701_daily_bin146.fits scfile=/scratch/kocevski/674251/ft2_4FGL_J1633.8+0701_daily_bin146.fits outfile=/scratch/kocevski/674251/cmap_277171201_277430401_4FGL_J1633.8+0701_daily_bin146.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.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/674251/ft1_filtered_4FGL_J1633.8+0701_daily_bin146.fits scfile=/scratch/kocevski/674251/ft2_4FGL_J1633.8+0701_daily_bin146.fits outfile=/scratch/kocevski/674251/cmap_HighResolution_277171201_277430401_4FGL_J1633.8+0701_daily_bin146.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/674251/ft1_filtered_4FGL_J1633.8+0701_daily_bin146.fits evtable="EVENTS" scfile=/scratch/kocevski/674251/ft2_4FGL_J1633.8+0701_daily_bin146.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/674251/Model_4FGL_J1633.8+0701_daily_bin146.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/674251/ft1_filtered_4FGL_J1633.8+0701_daily_bin146.fits.....................!
real 84.47
user 82.93
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    30.350       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.9020       1.0000         .10000E-03   10000.    
     6 'norm      '    37.594       1.0000         .10000E-03   10000.    
     7 'norm      '    57.868       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    35.223       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.5159       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .37857       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.5800       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .33503E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.3118       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .95931       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=   10739.11     FROM MIGRAD    STATUS=CONVERGED    348 CALLS     1747 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.3582       -.12640E-07** at limit **
   2  norm          .10000E-03    1.2533        .20562E-06** at limit **
   3  Prefactor     30.269        90.605        .22398E-05    .62685E-04
   4  norm          .10000E-03    4.4561        .97311E-07** at limit **
   5  norm          3.9022        1.8834       -.14861E-07    .18380E-04
   6  norm          37.588        17.213       -.12852E-06    .51023E-04
   7  norm          57.850        88.130        .65083E-06    .25980E-04
   8  Prefactor     .10000E-03    17.021       -.55772E-07** at limit **
   9  Prefactor     35.220        38.034       -.70381E-07    .22362E-04
  10  Prefactor     6.5130        7.7889       -.14837E-06   -.31822E-04
  11  Prefactor     .39683        18.589        .72744E-05   -.19812E-03
  12  Prefactor     1.5795        4.2058       -.15005E-05   -.12323E-03
  13  Prefactor     .10000E-03    5.3261       -.15493E-06** at limit **
  14  Prefactor     .10000E-03    32.118       -.18057E-06** at limit **
  15  Prefactor     .10000E-03    2.3043       -.10351E-06** at limit **
  16  Prefactor     .10002E-03    238.90        .50735E-05** at limit **
  17  Normalizat    1.3117        .25325        .26191E-05    .35404E-03
  18  Prefactor     .95938        .82078E-01   -.61195E-06   -.77139E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 30.269
  norm       = 0.0001
  norm       = 3.90221
  norm       = 37.5882
  norm       = 57.8496
  Prefactor  = 0.0001
  Prefactor  = 35.2201
  Prefactor  = 6.51298
  Prefactor  = 0.396832
  Prefactor  = 1.5795
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100015
  Normalizat = 1.31168
  Prefactor  = 0.959375
 **********
 **   18 **HESSE 
 **********

 FCN=   10739.11     FROM HESSE     STATUS=OK           242 CALLS     1989 TOTAL
                     EDM=   .66E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.3736        .15540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.2562        .11314E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     30.269        91.228        .72727E-04   -1.4607    
   4  norm          .10000E-03    4.4727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.9022        1.8824        .95416E-04   -1.5313    
   6  norm          37.588        17.284        .65367E-04   -1.4481    
   7  norm          57.850        88.204        .52737E-04   -1.4185    
   8  Prefactor     .10000E-03    17.024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     35.220        38.057        .67524E-04   -1.4520    
  10  Prefactor     6.5130        7.7486        .15722E-03   -1.5198    
  11  Prefactor     .39683        20.082        .39633E-02   -1.5582    
  12  Prefactor     1.5795        4.2497        .33585E-03   -1.5457    
  13  Prefactor     .10000E-03    5.4282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    32.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.3151        .15363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10002E-03    241.47        .21343E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.3117        .29813        .42465E-03   -.83218    
  18  Prefactor     .95938        .93803E-01    .16017E-03   -.94096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.57519e-08
Minuit parameter uncertainties:
  1  4.65456e-06
  2  1.12807e-06
  3  91.6521
  4  4.70752e-06
  5  1.88241
  6  17.2859
  7  88.4037
  8  8.65382e-06
  9  38.0832
  10  7.74984
  11  5.64717
  12  4.25046
  13  3.03651e-07
  14  2.93473e-05
  15  3.1231e-06
  16  0.00383276
  17  0.298517
  18  0.0938191
Done.

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

Extracting fit parameters...

4FGL J1633.8+0701
   Spectrum: PowerLaw
245    Prefactor:  3.968e-01  5.647e+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:  9.594e-01  9.382e-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.312e+00  2.985e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/674251/likelihoodResults_277171201_277430401_4FGL_J1633.8+0701_daily_bin146.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) = 10739.1047674
delta logL = 0.00343679761681

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10739.1047237
delta logL = 0.00348047081934

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39685       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4359       1.0000          .0000       10.000    
     3 'Normalizat'    1.3100       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95957       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=   10739.10     FROM MIGRAD    STATUS=CONVERGED     68 CALLS      240 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .42501        5.1302        .54989E-01    .11755E-02
   2  Index         2.4314        .34438        .50000        .45858E-05
   3  Normalizat    1.3100        .84412E-02    .95909E-01    .30714E-04
   4  Prefactor     .95953        .27883E-02    .45760E-01    .52867E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.425015
  Index      = 2.43142
  Normalizat = 1.30999
  Prefactor  = 0.959525
 **********
 **   18 **HESSE 
 **********

 FCN=   10739.10     FROM HESSE     STATUS=OK            35 CALLS      275 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .42501        53.309        .34314E-02   -1.5578    
   2  Index         2.4314        5.6907        .60867E-02   -.53951    
   3  Normalizat    1.3100        .27933        .42488E-03   -.83269    
   4  Prefactor     .95953        .92415E-01    .16016E-03   -.94091    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.57228e-10
Minuit parameter uncertainties:
  1  9.52749
  2  7.25538
  3  0.279656
  4  0.0924303
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/674251': 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) = 10739.1047016
delta logL = 0.00350260654523

Extracting fit parameters...

4FGL J1633.8+0701
   Spectrum: PowerLaw
245    Prefactor:  4.250e-01  9.527e+00  1.000e-04  1.000e+04 ( 1.000e-13)
246        Index:  2.431e+00  7.255e+00  0.000e+00  1.000e+01 (-1.000e+00)
247        Scale:  1.918e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
548    Prefactor:  9.595e-01  9.243e-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.310e+00  2.797e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/674251/cmap_HighResolution_277171201_277430401_4FGL_J1633.8+0701_daily_bin146.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.20e-03', job_status='DONE', photon_flux_upper_limit='8.17e-08', time_completed='2021-09-14 21:10:52.958241', job_id='674251', GAL2='0.96', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1631679052.96', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='3.50e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='146' AND source_name='4FGL J1633.8+0701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 21:10:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 674251: <4FGL_J1633.8+0701_daily_bin146> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1633.8+0701_daily_bin146 248.454 7.0309 277171201 277430401 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 :                                   725.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             272.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   878 sec.
    Turnaround time :                            925 sec.

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

