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


Performing analysis on: 4FGL_J1633.8+0701_daily_bin109
RA = 248.454, Dec = 7.0309
tmin = 267580801, tmax = 267840001
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='674198', job_status='RUN', time_executed='2021-09-14 20:59:08.555119', time_epoch_executed='1631678348.56' WHERE source_name='4FGL J1633.8+0701' and cadence='daily' and bin_id='109'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/674198

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/674198/ft1_4FGL_J1633.8+0701_daily_bin109.fits


Retrieving the FT1 file...

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

Retrieving 44 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/674198/ft2_4FGL_J1633.8+0701_daily_bin109.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/674198/ft1_4FGL_J1633.8+0701_daily_bin109.fits outfile=/scratch/kocevski/674198/ft1_filteredMKT_4FGL_J1633.8+0701_daily_bin109.fits ra=248.454 dec=7.0309 rad=12.0 tmin=267580801.0 tmax=267840001.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 1.41
user 1.21
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/674198/ft1_filtered_4FGL_J1633.8+0701_daily_bin109.fits evtable="EVENTS" scfile=/scratch/kocevski/674198/ft2_4FGL_J1633.8+0701_daily_bin109.fits sctable="SC_DATA" expcube=/scratch/kocevski/674198/ltcube_267580801_267840001_4FGL_J1633.8+0701_daily_bin109.fits outfile=/scratch/kocevski/674198/expmap_267580801_267840001_4FGL_J1633.8+0701_daily_bin109.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/674198/ltcube_267580801_267840001_4FGL_J1633.8+0701_daily_bin109.fits
.....................!
real 191.94
user 186.13
sys 5.35

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

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.942       1.0000         .10000E-03   10000.    
     2 'norm      '    1.6461       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.4695       1.0000         .10000E-03   10000.    
     6 'norm      '    16.511       1.0000         .10000E-03   10000.    
     7 'norm      '    .10241E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.4778       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.683       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.7795       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.0401       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.5715       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11227E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.911       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.2108       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .95309       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=   10756.73     FROM MIGRAD    STATUS=CONVERGED    364 CALLS     1533 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.941        6.8027       -.12739E-06   -.38653E-04
   2  norm          1.6462        3.3463        .12580E-05    .35566E-03
   3  Prefactor     .10000E-03    17.828       -.53469E-07** at limit **
   4  norm          .10000E-03    13.021       -.23376E-06** at limit **
   5  norm          4.4696        2.0921        .46976E-07    .59037E-04
   6  norm          16.510        14.581       -.17177E-06    .89689E-05
   7  norm          .10000E-03    114.10       -.12520E-06** at limit **
   8  Prefactor     5.4742        141.80        .86395E-06   -.17322E-05
   9  Prefactor     11.682        16.485       -.14126E-06    .31872E-05
  10  Prefactor     .10000E-03    5.3498       -.83850E-07** at limit **
  11  Prefactor     2.7794        6.7474        .70466E-06    .98497E-04
  12  Prefactor     3.0400        4.3891        .62202E-06    .19672E-03
  13  Prefactor     3.5714        5.4234        .47945E-06    .11297E-03
  14  Prefactor     .10000E-03    83.221       -.55879E-06** at limit **
  15  Prefactor     .10000E-03    1.5762       -.62540E-07** at limit **
  16  Prefactor     22.128        161.64        .18653E-05    .11173E-04
  17  Normalizat    1.2111        .27260        .49906E-05   -.81073E-04
  18  Prefactor     .95297        .89204E-01   -.21263E-05    .15177E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.9414
  norm       = 1.64621
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.46963
  norm       = 16.51
  norm       = 0.0001
  Prefactor  = 5.47423
  Prefactor  = 11.6815
  Prefactor  = 0.0001
  Prefactor  = 2.77945
  Prefactor  = 3.04004
  Prefactor  = 3.57142
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.1276
  Normalizat = 1.21105
  Prefactor  = 0.952971
 **********
 **   18 **HESSE 
 **********

 FCN=   10756.73     FROM HESSE     STATUS=OK           248 CALLS     1781 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.941        6.7966        .11135E-03   -1.4988    
   2  norm          1.6462        3.4145        .26721E-03   -1.5451    
   3  Prefactor     .10000E-03    17.832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    13.348        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.4696        2.0890        .99491E-04   -1.5285    
   6  norm          16.510        14.607        .98566E-04   -1.4895    
   7  norm          .10000E-03    114.21        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.4742        141.91        .17168E-03   -1.5240    
   9  Prefactor     11.682        16.486        .11720E-03   -1.5024    
  10  Prefactor     .10000E-03    5.3910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.7794        6.7713        .24408E-03   -1.5375    
  12  Prefactor     3.0400        4.4088        .23271E-03   -1.5359    
  13  Prefactor     3.5714        5.4297        .21385E-03   -1.5330    
  14  Prefactor     .10000E-03    83.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.5811        .12716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     22.128        160.60        .42785E-03   -1.4767    
  17  Normalizat    1.2111        .28177        .42065E-03   -.86262    
  18  Prefactor     .95297        .91578E-01    .15601E-03   -.94314    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.05136e-10
Minuit parameter uncertainties:
  1  6.79703
  2  3.41492
  3  9.09282e-06
  4  3.43826e-05
  5  2.08899
  6  14.6098
  7  4.25455e-05
  8  55.8921
  9  16.4921
  10  1.43922e-05
  11  6.77317
  12  4.4093
  13  5.43042
  14  0.000106208
  15  2.57925e-06
  16  119.681
  17  0.28212
  18  0.0915931
Done.

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

Extracting fit parameters...

4FGL J1633.8+0701
   Spectrum: PowerLaw
245    Prefactor:  2.779e+00  6.773e+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.530e-01  9.159e-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.211e+00  2.821e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/674198/likelihoodResults_267580801_267840001_4FGL_J1633.8+0701_daily_bin109.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) = 10755.9022798
delta logL = 0.831007467177

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10755.8778753
delta logL = 0.855411948569

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .82050       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3706       1.0000          .0000       10.000    
     3 'Normalizat'    1.1408       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96478       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=   10755.88     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      315 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .81994        10.006        .12516E-01    .17205E-02
   2  Index         3.3708        2.1526        .98714E-01    .31445E-03
   3  Normalizat    1.1410        .56710E-01    .97402E-01    .33166E-04
   4  Prefactor     .96474        .18838E-01    .35093E-01   -.40882E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.819935
  Index      = 3.37084
  Normalizat = 1.14099
  Prefactor  = 0.964736
 **********
 **   18 **HESSE 
 **********

 FCN=   10755.88     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      350 TOTAL
                     EDM=   .29E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .81994        26.633        .75419E-03   -1.5527    
   2  Index         3.3708        3.9516        .56325E-02   -.33189    
   3  Normalizat    1.1410        .21753        .43155E-03   -.88447    
   4  Prefactor     .96474        .71526E-01    .15506E-03   -.93914    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.89709e-07
Minuit parameter uncertainties:
  1  9.35009
  2  4.67916
  3  0.2177
  4  0.0715332
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/674198': 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) = 10755.8778752
delta logL = 0.855412113664

Extracting fit parameters...

4FGL J1633.8+0701
   Spectrum: PowerLaw
245    Prefactor:  8.199e-01  9.350e+00  1.000e-04  1.000e+04 ( 1.000e-13)
246        Index:  3.371e+00  4.679e+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.647e-01  7.153e-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.141e+00  2.177e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.97
Ra Dec: 248.454 7.031
Photon Index (Free Index): 3.37 +/- 4.68
Photon Flux (Free Index): 7.31e-08 +/- 6.67e-08
Energy Flux (Free Index): 1.26e-05 +/- 1.57e-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/674198/cmap_HighResolution_267580801_267840001_4FGL_J1633.8+0701_daily_bin109.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.08e-03', comment='SUCCESS', energy_flux2='1.26e-05', dlogl='8.55e-01', photon_flux2='7.31e-08', job_status='DONE', time_completed='2021-09-14 21:10:57.524741', photon_index_error2='4.68', photon_index2='3.37', ts='0.19', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='9.34e-08', energy_flux_error2='1.57e-05', EG='1.21', time_epoch_completed='1631679057.52', return_code='0', job_id='674198', GAL2='0.96', EG2='1.14', return_code2='102', photon_flux_error2='6.67e-08', ts2='1.97', photon_index='2.15' WHERE bin_id='109' AND source_name='4FGL J1633.8+0701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 21:10:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 674198: <4FGL_J1633.8+0701_daily_bin109> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1633.8+0701_daily_bin109 248.454 7.0309 267580801 267840001 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 :                                   708.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            933 sec.

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

