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


Performing analysis on: 4FGL_J1633.8+0701_daily_bin387
RA = 248.454, Dec = 7.0309
tmin = 339638401, tmax = 339897601
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='675711', job_status='RUN', time_executed='2021-09-14 21:04:12.963109', time_epoch_executed='1631678652.96' WHERE source_name='4FGL J1633.8+0701' and cadence='daily' and bin_id='387'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/675711

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/675711/ft1_4FGL_J1633.8+0701_daily_bin387.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/675711/ft2_4FGL_J1633.8+0701_daily_bin387.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/675711/ft1_4FGL_J1633.8+0701_daily_bin387.fits outfile=/scratch/kocevski/675711/ft1_filteredMKT_4FGL_J1633.8+0701_daily_bin387.fits ra=248.454 dec=7.0309 rad=12.0 tmin=339638401.0 tmax=339897601.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.36
user 3.15
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/675711/ft2_4FGL_J1633.8+0701_daily_bin387.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/675711/ft1_filteredMKT_4FGL_J1633.8+0701_daily_bin387.fits evtable="EVENTS" outfile="/scratch/kocevski/675711/ft1_filtered_4FGL_J1633.8+0701_daily_bin387.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.62
user 0.36
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/675711/ft1_filtered_4FGL_J1633.8+0701_daily_bin387.fits evtable="EVENTS" scfile=/scratch/kocevski/675711/ft2_4FGL_J1633.8+0701_daily_bin387.fits sctable="SC_DATA" expcube=/scratch/kocevski/675711/ltcube_339638401_339897601_4FGL_J1633.8+0701_daily_bin387.fits outfile=/scratch/kocevski/675711/expmap_339638401_339897601_4FGL_J1633.8+0701_daily_bin387.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/675711/ltcube_339638401_339897601_4FGL_J1633.8+0701_daily_bin387.fits
.....................!
real 191.53
user 185.77
sys 5.22

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

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/675711/ft1_filtered_4FGL_J1633.8+0701_daily_bin387.fits scfile=/scratch/kocevski/675711/ft2_4FGL_J1633.8+0701_daily_bin387.fits outfile=/scratch/kocevski/675711/cmap_HighResolution_339638401_339897601_4FGL_J1633.8+0701_daily_bin387.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .38319       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .29142E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.8442       1.0000         .10000E-03   10000.    
     6 'norm      '    5.5012       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.5130       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.2636       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10275E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11082E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.6767       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .19408E-01   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.6901       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .94093       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=   9970.533     FROM MIGRAD    STATUS=CONVERGED    675 CALLS     2099 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.5022        .11939E-02** at limit **
   2  norm          .36463        8.7943        .25841E-02   -.11520E-03
   3  Prefactor     .10000E-03    40.850        .18142E-02** at limit **
   4  norm          .10004E-03    9.7220        .79709E-01** at limit **
   5  norm          4.8456        2.0824        .90322E-04   -.10109E-02
   6  norm          5.5075        18.522        .17131E-03   -.15582E-03
   7  norm          .10000E-03    40.016        .18142E-02** at limit **
   8  Prefactor     .10000E-03    32.767        .18142E-02** at limit **
   9  Prefactor     .10000E-03    27.587        .18142E-02** at limit **
  10  Prefactor     .10000E-03    4.9751        .18142E-02** at limit **
  11  Prefactor     1.5133        10.673        .34764E-03    .11930E-03
  12  Prefactor     4.2615        4.4835        .19513E-03    .23189E-03
  13  Prefactor     .10005E-03    5.3959        .59815E-01** at limit **
  14  Prefactor     .10000E-03    33.092        .18142E-02** at limit **
  15  Prefactor     5.6664        7.6651        .16859E-03   -.69725E-04
  16  Prefactor     1.4453        115.42        .50000        .30700E-04
  17  Normalizat    1.6903        .32224        .40177E-03    .27904E-03
  18  Prefactor     .94087        .10142        .16928E-03   -.10348E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.364632
  Prefactor  = 0.000100001
  norm       = 0.000100045
  norm       = 4.84563
  norm       = 5.50747
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 1.51331
  Prefactor  = 4.26145
  Prefactor  = 0.000100053
  Prefactor  = 0.000100001
  Prefactor  = 5.66639
  Prefactor  = 1.44533
  Normalizat = 1.69033
  Prefactor  = 0.940869
 **********
 **   18 **HESSE 
 **********

 FCN=   9970.533     FROM HESSE     STATUS=OK           256 CALLS     2355 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.5023        .23879E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .36463        8.8269        .10336E-03   -1.5587    
   3  Prefactor     .10000E-03    40.852        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10004E-03    8.8366        .85418E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.8456        2.0820        .18064E-04   -1.5268    
   6  norm          5.5075        18.522        .68522E-05   -1.5239    
   7  norm          .10000E-03    40.016        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    32.768        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    27.591        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.9755        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.5133        10.666        .13906E-04   -1.5462    
  12  Prefactor     4.2615        4.4832        .78051E-05   -1.5295    
  13  Prefactor     .10005E-03    5.0979        .62239E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    33.093        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.6664        7.6643        .67438E-05   -1.5232    
  16  Prefactor     1.4453        115.41        .50000       -1.5468    
  17  Normalizat    1.6903        .32230        .80354E-04   -.72562    
  18  Prefactor     .94087        .10151        .33857E-04   -.94727    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.51991e-09
Minuit parameter uncertainties:
  1  1.3691e-06
  2  3.58817
  3  0.000371041
  4  0.00125451
  5  2.08204
  6  18.5414
  7  0.000106793
  8  0.00046439
  9  0.000561778
  10  5.13309e-05
  11  8.03705
  12  4.48356
  13  0.00103987
  14  0.000374129
  15  7.66559
  16  25.8819
  17  0.322704
  18  0.101526
Done.

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

Extracting fit parameters...

4FGL J1633.8+0701
   Spectrum: PowerLaw
245    Prefactor:  1.513e+00  8.037e+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.409e-01  1.015e-01  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.690e+00  3.227e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/675711/likelihoodResults_339638401_339897601_4FGL_J1633.8+0701_daily_bin387.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) = 9968.94167149
delta logL = 1.59136818756

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9968.83831393
delta logL = 1.6947257389

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .71510E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    5.4917       1.0000          .0000       10.000    
     3 'Normalizat'    1.4857       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98208       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=   9968.838     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      270 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .70738E-02    .47643E-01    .93325E-03   -.57728E-01
   2  Index         5.4956        1.4772        .90499E-01   -.52070E-03
   3  Normalizat    1.4856        .67733E-01    .95524E-01   -.22973E-03
   4  Prefactor     .98203        .22243E-01    .46043E-01   -.32811E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00707378
  Index      = 5.49558
  Normalizat = 1.48563
  Prefactor  = 0.982027
 **********
 **   18 **HESSE 
 **********

 FCN=   9968.838     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      301 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .70738E-02    .11837        .48029E-05   -1.5691    
   2  Index         5.4956        2.7783        .33157E-02    .99279E-01
   3  Normalizat    1.4856        .26824        .42312E-03   -.78183    
   4  Prefactor     .98203        .85938E-01    .16602E-03   -.93331    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.47985e-09
Minuit parameter uncertainties:
  1  0.0574634
  2  2.94773
  3  0.268497
  4  0.0859504
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/675711': 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) = 9968.83831122
delta logL = 1.69472845307

Extracting fit parameters...

4FGL J1633.8+0701
   Spectrum: PowerLaw
245    Prefactor:  7.074e-03  5.746e-02  1.000e-04  1.000e+04 ( 1.000e-13)
246        Index:  5.496e+00  2.948e+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.820e-01  8.595e-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.486e+00  2.685e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.82
Ra Dec: 248.454 7.031
Photon Index (Free Index): 5.50 +/- 2.95
Photon Flux (Free Index): 1.78e-07 +/- 1.03e-07
Energy Flux (Free Index): 2.28e-05 +/- 1.43e-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/675711/cmap_HighResolution_339638401_339897601_4FGL_J1633.8+0701_daily_bin387.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.69e-03', comment='SUCCESS', energy_flux2='2.28e-05', dlogl='1.69e+00', photon_flux2='1.78e-07', job_status='DONE', time_completed='2021-09-14 21:16:36.334342', photon_index_error2='2.95', photon_index2='5.50', ts='0.04', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.15e-07', energy_flux_error2='1.43e-05', EG='1.69', time_epoch_completed='1631679396.33', return_code='0', job_id='675711', GAL2='0.98', EG2='1.49', return_code2='102', photon_flux_error2='1.03e-07', ts2='3.82', photon_index='2.15' WHERE bin_id='387' AND source_name='4FGL J1633.8+0701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 21:16:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0174>
Subject: Job 675711: <4FGL_J1633.8+0701_daily_bin387> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1633.8+0701_daily_bin387 248.454 7.0309 339638401 339897601 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 :                                   741.09 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             265.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            964 sec.

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

