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


Performing analysis on: 4FGL_J1635.6+3628_daily_bin72
RA = 248.923, Dec = 36.4795
tmin = 257990401, tmax = 258249601
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='706171', job_status='RUN', time_executed='2021-09-14 22:44:31.643717', time_epoch_executed='1631684671.64' WHERE source_name='4FGL J1635.6+3628' and cadence='daily' and bin_id='72'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/706171

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/706171/ft1_4FGL_J1635.6+3628_daily_bin72.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/706171/ft2_4FGL_J1635.6+3628_daily_bin72.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/706171/ft1_4FGL_J1635.6+3628_daily_bin72.fits outfile=/scratch/kocevski/706171/ft1_filteredMKT_4FGL_J1635.6+3628_daily_bin72.fits ra=248.923 dec=36.4795 rad=12.0 tmin=257990401.0 tmax=258249601.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.43
user 1.24
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/706171/ft2_4FGL_J1635.6+3628_daily_bin72.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/706171/ft2_4FGL_J1635.6+3628_daily_bin72.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/706171/ft1_filteredMKT_4FGL_J1635.6+3628_daily_bin72.fits evtable="EVENTS" outfile="/scratch/kocevski/706171/ft1_filtered_4FGL_J1635.6+3628_daily_bin72.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.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/706171/ft1_filtered_4FGL_J1635.6+3628_daily_bin72.fits" evtable="EVENTS" scfile=/scratch/kocevski/706171/ft2_4FGL_J1635.6+3628_daily_bin72.fits sctable="SC_DATA" outfile=/scratch/kocevski/706171/ltcube_257990401_258249601_4FGL_J1635.6+3628_daily_bin72.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/706171/ft2_4FGL_J1635.6+3628_daily_bin72.fits
.....................!
real 16.21
user 15.74
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/706171/ft1_filtered_4FGL_J1635.6+3628_daily_bin72.fits evtable="EVENTS" scfile=/scratch/kocevski/706171/ft2_4FGL_J1635.6+3628_daily_bin72.fits sctable="SC_DATA" expcube=/scratch/kocevski/706171/ltcube_257990401_258249601_4FGL_J1635.6+3628_daily_bin72.fits outfile=/scratch/kocevski/706171/expmap_257990401_258249601_4FGL_J1635.6+3628_daily_bin72.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/706171/ltcube_257990401_258249601_4FGL_J1635.6+3628_daily_bin72.fits
.....................!
real 193.00
user 186.89
sys 5.37

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
Added 198 point sources and 0 extended sources

Setting source of interest to:
4FGL J1635.6+3628 @ 248.923 36.4795

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/706171/ft1_filtered_4FGL_J1635.6+3628_daily_bin72.fits scfile=/scratch/kocevski/706171/ft2_4FGL_J1635.6+3628_daily_bin72.fits outfile=/scratch/kocevski/706171/cmap_257990401_258249601_4FGL_J1635.6+3628_daily_bin72.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.923 yref=36.4795 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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/706171/ft1_filtered_4FGL_J1635.6+3628_daily_bin72.fits scfile=/scratch/kocevski/706171/ft2_4FGL_J1635.6+3628_daily_bin72.fits outfile=/scratch/kocevski/706171/cmap_HighResolution_257990401_258249601_4FGL_J1635.6+3628_daily_bin72.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.923 yref=36.4795 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/706171/ft1_filtered_4FGL_J1635.6+3628_daily_bin72.fits evtable="EVENTS" scfile=/scratch/kocevski/706171/ft2_4FGL_J1635.6+3628_daily_bin72.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/706171/Model_4FGL_J1635.6+3628_daily_bin72.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 GAL_V02
Working on...
/scratch/kocevski/706171/ft1_filtered_4FGL_J1635.6+3628_daily_bin72.fits.....................!
real 49.33
user 47.88
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/706171/ft1_filtered_4FGL_J1635.6+3628_daily_bin72.fits', '/scratch/kocevski/706171/ft2_4FGL_J1635.6+3628_daily_bin72.fits', expMap='/scratch/kocevski/706171/expmap_257990401_258249601_4FGL_J1635.6+3628_daily_bin72.fits', expCube='/scratch/kocevski/706171/ltcube_257990401_258249601_4FGL_J1635.6+3628_daily_bin72.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/706171/Model_4FGL_J1635.6+3628_daily_bin72.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1635.6+3628'

4FGL J1635.6+3628
   Spectrum: PowerLaw
282    Prefactor:  4.539e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  2.666e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  9.602e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/706171/ft1_filtered_4FGL_J1635.6+3628_daily_bin72.fits
Spacecraft file(s): /scratch/kocevski/706171/ft2_4FGL_J1635.6+3628_daily_bin72.fits
Exposure map: /scratch/kocevski/706171/expmap_257990401_258249601_4FGL_J1635.6+3628_daily_bin72.fits
Exposure cube: /scratch/kocevski/706171/ltcube_257990401_258249601_4FGL_J1635.6+3628_daily_bin72.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/706171/Model_4FGL_J1635.6+3628_daily_bin72.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) = 5994.34063865

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6098       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .57810E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.7696       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .16552E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .79885       1.0000         .10000E-03   10000.    
     8 'norm      '    8.3526       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .97432E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .32027E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .36678E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .72729       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.5930       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .17294       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .17057E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.8574       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10750E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.266       1.0000         .10000E-03   10000.    
    19 'norm      '    1.9851       1.0000         .10000E-03   10000.    
    20 'norm      '    8.5568       1.0000         .10000E-03   10000.    
    21 'Prefactor '    28.792       1.0000         .10000E-03   10000.    
    22 'norm      '    51.960       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .75269       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .93765       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6430E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5994.339     FROM MIGRAD    STATUS=CONVERGED    616 CALLS     2835 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6740        29.214        .88982E-05    .23061E-03
   2  Prefactor     .10000E-03    18.389        .71461E-07** at limit **
   3  Prefactor     3.7733        4.3875        .15066E-06    .30701E-04
   4  Prefactor     .10000E-03    2.2074       -.47786E-10** at limit **
   5  Prefactor     .10000E-03    17.358       -.29571E-06** at limit **
   6  Prefactor     .10000E-03    1.0502       -.49511E-08** at limit **
   7  norm          .79917        .20998        .12370E-07   -.12445E-02
   8  norm          8.3717        8.7193        .78046E-06   -.63962E-05
   9  Prefactor     .10089E-03    24.633        .25646E-05** at limit **
  10  Prefactor     .10000E-03    2.3593       -.65472E-07** at limit **
  11  norm          .10000E-03    9.3169       -.15886E-07** at limit **
  12  Prefactor     .72731        .83288        .32860E-08    .11910E-04
  13  Prefactor     1.5927        1.0653        .70861E-08    .12557E-03
  14  Prefactor     .14757E-03    17.519       -.36157E-05** at limit **
  15  Prefactor     .10002E-03    1.3731       -.55677E-06** at limit **
  16  norm          2.8573        1.7965        .23028E-07    .11352E-03
  17  Prefactor     .10000E-03    22.342        .42537E-07** at limit **
  18  Prefactor     13.261        9.6893        .44432E-06    .10003E-03
  19  norm          1.9847        1.0135       -.29651E-07    .16559E-03
  20  norm          8.5474        8.0622        .14241E-06    .20604E-04
  21  Prefactor     28.481        45.085       -.25580E-05    .26744E-05
  22  norm          52.016        13.322        .21615E-06    .10946E-04
  23  Normalizat    .75280        .19580        .51799E-07    .19982E-03
  24  Prefactor     .93787        .14462       -.27251E-06    .21865E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.67399
  Prefactor  = 0.0001
  Prefactor  = 3.77335
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.799168
  norm       = 8.37166
  Prefactor  = 0.000100889
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.727311
  Prefactor  = 1.59265
  Prefactor  = 0.00014757
  Prefactor  = 0.000100019
  norm       = 2.85731
  Prefactor  = 0.0001
  Prefactor  = 13.2611
  norm       = 1.98473
  norm       = 8.54739
  Prefactor  = 28.4813
  norm       = 52.0164
  Normalizat = 0.752796
  Prefactor  = 0.93787
 **********
 **   18 **HESSE 
 **********

 FCN=   5994.339     FROM HESSE     STATUS=OK           425 CALLS     3260 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6740        29.809        .12625E-02   -1.5381    
   2  Prefactor     .10000E-03    18.481        .21084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.7733        4.3765        .16285E-03   -1.5319    
   4  Prefactor     .10000E-03    2.2106        .11233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.0570        .77445E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .79917        .21379        .15585E-04   -1.5529    
   8  norm          8.3717        8.7330        .13871E-03   -1.5129    
   9  Prefactor     .10089E-03    31.638        .85272E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.590        .22907E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    9.3174        .21303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .72731        .81098        .67182E-04   -1.5537    
  13  Prefactor     1.5927        1.0685        .57729E-04   -1.5456    
  14  Prefactor     .14757E-03    18.132        .73004E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10002E-03    16.707        .16537E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.8573        1.7887        .79052E-04   -1.5370    
  17  Prefactor     .10000E-03    22.367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.261        9.6852        .10997E-03   -1.4979    
  19  norm          1.9847        1.0081        .51165E-04   -1.5426    
  20  norm          8.5474        8.0557        .13704E-03   -1.5123    
  21  Prefactor     28.481        45.196        .74665E-04   -1.4640    
  22  norm          52.016        13.315        .55639E-04   -1.4264    
  23  Normalizat    .75280        .23101        .29797E-03   -1.0184    
  24  Prefactor     .93787        .17257        .20937E-03   -.94830    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0479e-09
Minuit parameter uncertainties:
  1  17.867
  2  1.62722e-06
  3  4.37687
  4  1.82716e-07
  5  4.42032e-06
  6  7.52551e-07
  7  0.213793
  8  8.73434
  9  0.0106147
  10  3.56477e-05
  11  9.77469e-07
  12  0.810989
  13  1.06852
  14  0.0587561
  15  0.00111385
  16  1.78869
  17  6.37006e-06
  18  9.68638
  19  1.00812
  20  8.0567
  21  45.2503
  22  13.3158
  23  0.231311
  24  0.172672
Done.

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

Extracting fit parameters...

4FGL J1635.6+3628
   Spectrum: PowerLaw
282    Prefactor:  1.009e-04  1.061e-02  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  2.666e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  9.602e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
640    Prefactor:  9.379e-01  1.727e-01  0.000e+00  1.000e+01 ( 1.000e+00)
641        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
642        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
639   Normalization:  7.528e-01  2.313e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 248.923 36.480
Photon Flux Upper Limit: 1.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/706171/likelihoodResults_257990401_258249601_4FGL_J1635.6+3628_daily_bin72.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) = 5994.33857956
delta logL = -1.63157965289e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5994.33857955
delta logL = -1.63093909578e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96364E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6656       1.0000          .0000       10.000    
     3 'Normalizat'    .75279       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93788       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6430E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5994.220     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      289 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7117        104.22        .90712E-02    .74041E-03
   2  Index         3.7339        4.0468        .16461        .76841E-04
   3  Normalizat    .72224        .38271E-01    .68544E-01    .42224E-03
   4  Prefactor     .95166        .29930E-01    .45486E-01    .74771E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.71174
  Index      = 3.73386
  Normalizat = 0.722242
  Prefactor  = 0.95166
 **********
 **   18 **HESSE 
 **********

 FCN=   5994.220     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      320 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7117        367.89        .20039E-03   -1.5446    
   2  Index         3.7339        5.5355        .97088E-02   -.25601    
   3  Normalizat    .72224        .20783        .30331E-03   -1.0302    
   4  Prefactor     .95166        .15532        .20789E-03   -.94359    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.32952e-06
Minuit parameter uncertainties:
  1  50.5048
  2  13.7689
  3  0.208055
  4  0.155388
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/706171': 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) = 5994.21978293
delta logL = 0.11878031202

Extracting fit parameters...

4FGL J1635.6+3628
   Spectrum: PowerLaw
282    Prefactor:  1.712e+00  5.050e+01  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  3.734e+00  1.377e+01  0.000e+00  1.000e+01 (-1.000e+00)
284        Scale:  9.602e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
640    Prefactor:  9.517e-01  1.554e-01  0.000e+00  1.000e+01 ( 1.000e+00)
641        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
642        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
639   Normalization:  7.222e-01  2.081e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 248.923 36.480

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/706171/cmap_HighResolution_257990401_258249601_4FGL_J1635.6+3628_daily_bin72.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.35e-03', job_status='DONE', photon_flux_upper_limit='1.19e-07', time_completed='2021-09-14 22:57:00.045253', job_id='706171', GAL2='0.95', fit_tolerance='1e-08', EG2='0.72', EG='0.75', time_epoch_completed='1631685420.05', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='1.19e-01', ts2='0.25', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='72' AND source_name='4FGL J1635.6+3628' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 22:57:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 706171: <4FGL_J1635.6+3628_daily_bin72> in cluster <slac> Done

Job <4FGL_J1635.6+3628_daily_bin72> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 14 22:40:24 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 14 22:41:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 14 22:41:34 2021
Terminated at Tue Sep 14 22:57:00 2021
Results reported at Tue Sep 14 22:57:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1635.6+3628_daily_bin72 248.923 36.4795 257990401 258249601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1635.6+3628 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   748.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             296.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   926 sec.
    Turnaround time :                            996 sec.

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

