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


Performing analysis on: 4FGL_J1633.8+0701_daily_bin236
RA = 248.454, Dec = 7.0309
tmin = 300499201, tmax = 300758401
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='674379', job_status='RUN', time_executed='2021-09-14 20:58:55.571703', time_epoch_executed='1631678335.57' WHERE source_name='4FGL J1633.8+0701' and cadence='daily' and bin_id='236'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/674379

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/674379/ft1_4FGL_J1633.8+0701_daily_bin236.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/674379/ft2_4FGL_J1633.8+0701_daily_bin236.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/674379/ft1_4FGL_J1633.8+0701_daily_bin236.fits outfile=/scratch/kocevski/674379/ft1_filteredMKT_4FGL_J1633.8+0701_daily_bin236.fits ra=248.454 dec=7.0309 rad=12.0 tmin=300499201.0 tmax=300758401.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.51
user 3.30
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/674379/ft1_filtered_4FGL_J1633.8+0701_daily_bin236.fits evtable="EVENTS" scfile=/scratch/kocevski/674379/ft2_4FGL_J1633.8+0701_daily_bin236.fits sctable="SC_DATA" expcube=/scratch/kocevski/674379/ltcube_300499201_300758401_4FGL_J1633.8+0701_daily_bin236.fits outfile=/scratch/kocevski/674379/expmap_300499201_300758401_4FGL_J1633.8+0701_daily_bin236.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/674379/ltcube_300499201_300758401_4FGL_J1633.8+0701_daily_bin236.fits
.....................!
real 192.37
user 186.76
sys 5.04

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/674379/ft1_filtered_4FGL_J1633.8+0701_daily_bin236.fits scfile=/scratch/kocevski/674379/ft2_4FGL_J1633.8+0701_daily_bin236.fits outfile=/scratch/kocevski/674379/cmap_300499201_300758401_4FGL_J1633.8+0701_daily_bin236.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=248.454 yref=7.0309 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/674379/ft1_filtered_4FGL_J1633.8+0701_daily_bin236.fits scfile=/scratch/kocevski/674379/ft2_4FGL_J1633.8+0701_daily_bin236.fits outfile=/scratch/kocevski/674379/cmap_HighResolution_300499201_300758401_4FGL_J1633.8+0701_daily_bin236.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .73523       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.3820       1.0000         .10000E-03   10000.    
     4 'norm      '    7.5077       1.0000         .10000E-03   10000.    
     5 'norm      '    6.6532       1.0000         .10000E-03   10000.    
     6 'norm      '    5.0539       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.0339       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.3434       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .88971       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.7540       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.3324       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .94486       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=   11009.55     FROM MIGRAD    STATUS=CONVERGED    369 CALLS     1520 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.4984       -.15129E-06** at limit **
   2  norm          .73802        4.7670        .16511E-05    .18129E-03
   3  Prefactor     7.3504        130.88       -.90797E-04   -.13387E-05
   4  norm          7.5081        7.3340        .10092E-05    .38394E-04
   5  norm          6.6534        1.9975        .17764E-06    .17394E-03
   6  norm          5.0541        6.1785       -.17806E-05    .15535E-04
   7  norm          .10000E-03    34.225       -.45241E-05** at limit **
   8  Prefactor     .10000E-03    21.490        .16861E-05** at limit **
   9  Prefactor     .10000E-03    39.378        .10722E-04** at limit **
  10  Prefactor     .10000E-03    7.4345       -.20701E-06** at limit **
  11  Prefactor     6.0328        5.8181        .28479E-05    .12815E-04
  12  Prefactor     5.3431        5.8192       -.37681E-05   -.37763E-04
  13  Prefactor     .88843        .77573        .38254E-07   -.13637E-02
  14  Prefactor     .10000E-03    27.781       -.43196E-05** at limit **
  15  Prefactor     8.7535        9.0174       -.70400E-06    .24131E-04
  16  Prefactor     .10000E-03    70.127       -.48331E-05** at limit **
  17  Normalizat    1.3323        .24400        .40080E-05   -.95743E-04
  18  Prefactor     .94487        .76843E-01   -.24799E-06    .21854E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.738025
  Prefactor  = 7.35035
  norm       = 7.50813
  norm       = 6.65336
  norm       = 5.05408
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.0328
  Prefactor  = 5.34314
  Prefactor  = 0.888432
  Prefactor  = 0.0001
  Prefactor  = 8.75346
  Prefactor  = 0.0001
  Normalizat = 1.33234
  Prefactor  = 0.944874
 **********
 **   18 **HESSE 
 **********

 FCN=   11009.55     FROM HESSE     STATUS=OK           246 CALLS     1766 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.6569        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .73802        4.9253        .43676E-03   -1.5536    
   3  Prefactor     7.3504        131.34        .14762E-03   -1.5166    
   4  norm          7.5081        7.3386        .14637E-03   -1.5160    
   5  norm          6.6534        1.9981        .78692E-04   -1.5192    
   6  norm          5.0541        6.1764        .17886E-03   -1.5258    
   7  norm          .10000E-03    34.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    21.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    39.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.5295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.0328        5.8184        .16346E-03   -1.5217    
  12  Prefactor     5.3431        5.8140        .17386E-03   -1.5246    
  13  Prefactor     .88843        6.7078        .25540E-02   -1.5519    
  14  Prefactor     .10000E-03    27.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.7535        9.0449        .13548E-03   -1.5116    
  16  Prefactor     .10000E-03    70.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.3323        .28905        .42207E-03   -.82606    
  18  Prefactor     .94487        .91817E-01    .16063E-03   -.94590    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.60582e-09
Minuit parameter uncertainties:
  1  1.97058e-05
  2  3.81334
  3  62.3015
  4  7.3395
  5  1.99808
  6  6.17715
  7  4.56004e-06
  8  1.23199e-05
  9  0.000206177
  10  5.60527e-05
  11  5.81895
  12  5.81464
  13  4.88286
  14  1.20223e-05
  15  9.04635
  16  5.43057e-06
  17  0.289405
  18  0.0918321
Done.

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

Extracting fit parameters...

4FGL J1633.8+0701
   Spectrum: PowerLaw
245    Prefactor:  6.033e+00  5.819e+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.449e-01  9.183e-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.332e+00  2.894e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.95
Ra Dec: 248.454 7.031
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 2.98e-08 +/- 2.88e-08
Energy Flux (Fixed Index): 1.49e-05 +/- 1.43e-05

TS (Fixed Index): 1.95
Ra Dec: 248.454 7.031
Photon Flux Upper Limit: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.81e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/674379/likelihoodResults_300499201_300758401_4FGL_J1633.8+0701_daily_bin236.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) = 11009.4988424
delta logL = 0.0484790031078

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11009.4981135
delta logL = 0.0492078928164

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.8273       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3736       1.0000          .0000       10.000    
     3 'Normalizat'    1.3220       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94656       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=   11009.50     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      311 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.8268        7.0142        .18310E-03    .99469E-04
   2  Index         2.3736        .82076        .89236E-02    .65799E-03
   3  Normalizat    1.3222        .28094        .42344E-03   -.18321E-03
   4  Prefactor     .94654        .91738E-01    .16050E-03   -.52864E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.82678
  Index      = 2.37355
  Normalizat = 1.32216
  Prefactor  = 0.946537
 **********
 **   18 **HESSE 
 **********

 FCN=   11009.50     FROM HESSE     STATUS=OK            25 CALLS      336 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.8268        6.3507        .73240E-05   -1.5269    
   2  Index         2.3736        .74363        .17847E-02   -.55306    
   3  Normalizat    1.3222        .28067        .16938E-04   -.82907    
   4  Prefactor     .94654        .91740E-01    .32100E-04   -.94533    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.3108e-11
Minuit parameter uncertainties:
  1  6.35154
  2  0.747466
  3  0.280997
  4  0.0917547
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/674379': 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) = 11009.4981131
delta logL = 0.0492082816545

Extracting fit parameters...

4FGL J1633.8+0701
   Spectrum: PowerLaw
245    Prefactor:  4.827e+00  6.352e+00  1.000e-04  1.000e+04 ( 1.000e-13)
246        Index:  2.374e+00  7.475e-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:  9.465e-01  9.175e-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.322e+00  2.810e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.05
Ra Dec: 248.454 7.031
Photon Index (Free Index): 2.37 +/- 0.75
Photon Flux (Free Index): 3.90e-08 +/- 4.58e-08
Energy Flux (Free Index): 1.32e-05 +/- 1.29e-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/674379/cmap_HighResolution_300499201_300758401_4FGL_J1633.8+0701_daily_bin236.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.81e-03', comment='SUCCESS', photon_flux='2.98e-08', energy_flux2='1.32e-05', photon_flux_error='2.88e-08', dlogl='4.92e-02', energy_flux='1.49e-05', photon_flux2='3.90e-08', job_status='DONE', time_completed='2021-09-14 21:10:48.974130', photon_index_error2='0.75', photon_index2='2.37', ts='1.95', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.03e-07', energy_flux_error2='1.29e-05', EG='1.33', time_epoch_completed='1631679048.97', return_code='0', job_id='674379', GAL2='0.95', EG2='1.32', return_code2='0', energy_flux_error='1.43e-05', photon_flux_error2='4.58e-08', ts2='2.05', photon_index='2.15' WHERE bin_id='236' AND source_name='4FGL J1633.8+0701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 21:10:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 674379: <4FGL_J1633.8+0701_daily_bin236> in cluster <slac> Done

Job <4FGL_J1633.8+0701_daily_bin236> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 14 20:55:37 2021
Job was executed on host(s) <bullet0149>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 14 20:56:54 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:54 2021
Terminated at Tue Sep 14 21:10:49 2021
Results reported at Tue Sep 14 21:10:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1633.8+0701_daily_bin236 248.454 7.0309 300499201 300758401 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 :                                   711.31 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             302.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   835 sec.
    Turnaround time :                            912 sec.

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

