/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 151 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 = 7433
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1635.6+3628_daily_bin1620
RA = 248.923, Dec = 36.4795
tmin = 659232001, tmax = 659491201
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='393519', job_status='RUN', time_executed='2021-12-08 02:48:10.193696', time_epoch_executed='1638960490.19' WHERE source_name='4FGL J1635.6+3628' and cadence='daily' and bin_id='1620'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/393519

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/393519/ft1_4FGL_J1635.6+3628_daily_bin1620.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/393519/ft2_4FGL_J1635.6+3628_daily_bin1620.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/393519/ft1_4FGL_J1635.6+3628_daily_bin1620.fits outfile=/scratch/kocevski/393519/ft1_filteredMKT_4FGL_J1635.6+3628_daily_bin1620.fits ra=248.923 dec=36.4795 rad=12.0 tmin=659232001.0 tmax=659491201.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 2.35
user 2.15
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/393519/ft2_4FGL_J1635.6+3628_daily_bin1620.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/393519/ft1_filteredMKT_4FGL_J1635.6+3628_daily_bin1620.fits evtable="EVENTS" outfile="/scratch/kocevski/393519/ft1_filtered_4FGL_J1635.6+3628_daily_bin1620.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.44
user 0.28
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/393519/ft1_filtered_4FGL_J1635.6+3628_daily_bin1620.fits" evtable="EVENTS" scfile=/scratch/kocevski/393519/ft2_4FGL_J1635.6+3628_daily_bin1620.fits sctable="SC_DATA" outfile=/scratch/kocevski/393519/ltcube_659232001_659491201_4FGL_J1635.6+3628_daily_bin1620.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/393519/ft2_4FGL_J1635.6+3628_daily_bin1620.fits
.....................!
real 11.13
user 10.80
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/393519/ft1_filtered_4FGL_J1635.6+3628_daily_bin1620.fits evtable="EVENTS" scfile=/scratch/kocevski/393519/ft2_4FGL_J1635.6+3628_daily_bin1620.fits sctable="SC_DATA" expcube=/scratch/kocevski/393519/ltcube_659232001_659491201_4FGL_J1635.6+3628_daily_bin1620.fits outfile=/scratch/kocevski/393519/expmap_659232001_659491201_4FGL_J1635.6+3628_daily_bin1620.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/393519/ltcube_659232001_659491201_4FGL_J1635.6+3628_daily_bin1620.fits
.....................!
real 155.36
user 151.25
sys 3.75

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/393519/ft1_filtered_4FGL_J1635.6+3628_daily_bin1620.fits scfile=/scratch/kocevski/393519/ft2_4FGL_J1635.6+3628_daily_bin1620.fits outfile=/scratch/kocevski/393519/cmap_659232001_659491201_4FGL_J1635.6+3628_daily_bin1620.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.49
user 0.32
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/393519/ft1_filtered_4FGL_J1635.6+3628_daily_bin1620.fits scfile=/scratch/kocevski/393519/ft2_4FGL_J1635.6+3628_daily_bin1620.fits outfile=/scratch/kocevski/393519/cmap_HighResolution_659232001_659491201_4FGL_J1635.6+3628_daily_bin1620.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.49
user 0.33
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/393519/ft1_filtered_4FGL_J1635.6+3628_daily_bin1620.fits evtable="EVENTS" scfile=/scratch/kocevski/393519/ft2_4FGL_J1635.6+3628_daily_bin1620.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/393519/Model_4FGL_J1635.6+3628_daily_bin1620.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/393519/ft1_filtered_4FGL_J1635.6+3628_daily_bin1620.fits.....................!
real 67.99
user 66.76
sys 1.04

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/393519/ft1_filtered_4FGL_J1635.6+3628_daily_bin1620.fits', '/scratch/kocevski/393519/ft2_4FGL_J1635.6+3628_daily_bin1620.fits', expMap='/scratch/kocevski/393519/expmap_659232001_659491201_4FGL_J1635.6+3628_daily_bin1620.fits', expCube='/scratch/kocevski/393519/ltcube_659232001_659491201_4FGL_J1635.6+3628_daily_bin1620.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/393519/Model_4FGL_J1635.6+3628_daily_bin1620.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/393519/ft1_filtered_4FGL_J1635.6+3628_daily_bin1620.fits
Spacecraft file(s): /scratch/kocevski/393519/ft2_4FGL_J1635.6+3628_daily_bin1620.fits
Exposure map: /scratch/kocevski/393519/expmap_659232001_659491201_4FGL_J1635.6+3628_daily_bin1620.fits
Exposure cube: /scratch/kocevski/393519/ltcube_659232001_659491201_4FGL_J1635.6+3628_daily_bin1620.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/393519/Model_4FGL_J1635.6+3628_daily_bin1620.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) = 12057.3247906

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.561       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.9772       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.3342       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .69054       1.0000         .10000E-03   10000.    
     7 'norm      '    .99660E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    3.8410       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.6389       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .92133       1.0000         .10000E-03   10000.    
    11 'norm      '    31.509       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.8838       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .95811       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10239       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10398E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.9013       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.4855       1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    22.220       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.0662       1.0000         .10000E-03   10000.    
    22 'norm      '    1.2734       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .96405       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0328       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6430E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12057.23     FROM MIGRAD    STATUS=CONVERGED    104 CALLS     1995 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.559        1.0580        .31928E-06   -.66783E-03
   2  Prefactor     .10000E-03    3.3075       -.18679E-07** at limit **
   3  Prefactor     1.9766        2.1292       -.16581E-06   -.47919E-03
   4  Prefactor     3.3297        3.6836       -.22471E-05   -.51862E-02
   5  Prefactor     .10000E-03    20.345       -.28324E-05** at limit **
   6  Prefactor     .68930        1.7913       -.12285E-07   -.11381E-03
   7  norm          .99723E-01    .10696       -.10872E-07   -.48167E-03
   8  norm          3.8396        1.1231       -.71852E-06    .17687E-03
   9  Prefactor     3.6310        1.1580        .73885E-06   -.53737E-03
  10  Prefactor     .92035        3.1284        .25826E-06    .56076E-03
  11  norm          31.513        1.0802       -.18806E-06    .18246E-02
  12  Prefactor     3.8843        1.8606       -.34847E-07    .27751E-03
  13  Prefactor     .95730        1.5232        .71443E-07    .59915E-03
  14  Prefactor     .10067E-03    417.64       -.30031E-05** at limit **
  15  Prefactor     .10000E-03    1.8667        .87939E-07** at limit **
  16  norm          2.9012        1.2127       -.61350E-08    .16102E-03
  17  Prefactor     .10000E-03    31.406        .24844E-05** at limit **
  18  Prefactor     2.4850        4.6410       -.22046E-05   -.24331E-02
  19  norm          .10000E-03    .54272       -.86072E-07** at limit **
  20  norm          22.215        6.1537        .37461E-05   -.70284E-02
  21  Prefactor     2.0407        2.3347        .28648E-05   -.18050E-02
  22  norm          1.2736        3.5550       -.10663E-04   -.14066E-02
  23  Normalizat    .96398        .17520        .21106E-05    .16927E-03
  24  Prefactor     1.0331        .13212       -.21191E-05   -.42674E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.5589
  Prefactor  = 0.0001
  Prefactor  = 1.97656
  Prefactor  = 3.32972
  Prefactor  = 0.0001
  Prefactor  = 0.689304
  norm       = 0.0997225
  norm       = 3.83957
  Prefactor  = 3.63103
  Prefactor  = 0.920349
  norm       = 31.5135
  Prefactor  = 3.88428
  Prefactor  = 0.957299
  Prefactor  = 0.000100672
  Prefactor  = 0.0001
  norm       = 2.90122
  Prefactor  = 0.000100001
  Prefactor  = 2.48498
  norm       = 0.0001
  norm       = 22.2148
  Prefactor  = 2.04073
  norm       = 1.27356
  Normalizat = 0.963982
  Prefactor  = 1.03307
 **********
 **   18 **HESSE 
 **********

 FCN=   12057.23     FROM HESSE     STATUS=OK           467 CALLS     2462 TOTAL
                     EDM=   .20E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.559        11.168        .30823E-02   -1.5058    
   2  Prefactor     .10000E-03    3.3106        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.9766        2.1496        .73702E-02   -1.5427    
   4  Prefactor     3.3297        5.0661        .55416E-02   -1.5343    
   5  Prefactor     .10000E-03    20.344        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .68930        1.8435        .12025E-01   -1.5542    
   7  norm          .99723E-01    .13213        .72769E-02   -1.5645    
   8  norm          3.8396        8.0498        .51480E-02   -1.5316    
   9  Prefactor     3.6310        12.975        .52945E-02   -1.5327    
  10  Prefactor     .92035        3.1224        .12885E-01   -1.5516    
  11  norm          31.513        27.340        .17845E-02   -1.4585    
  12  Prefactor     3.8843        2.3153        .51186E-03   -1.5314    
  13  Prefactor     .95730        1.9536        .13017E-01   -1.5512    
  14  Prefactor     .10067E-03    6.7196        .95226E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.0559        .38235E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.9012        1.2248        .59639E-02   -1.5367    
  17  Prefactor     .10000E-03    31.265        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.4850        5.1330        .64823E-02   -1.5393    
  19  norm          .10000E-03    .29298        .20481E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          22.215        7.8546        .21243E-02   -1.4765    
  21  Prefactor     2.0407        69.825        .71857E-02   -1.5422    
  22  norm          1.2736        3.6951        .98501E-02   -1.5482    
  23  Normalizat    .96398        .15636        .45715E-01   -.94247    
  24  Prefactor     1.0331        .11391        .41042E-01   -.91635    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99026e-06
Minuit parameter uncertainties:
  1  11.1707
  2  5.41949e-05
  3  2.14971
  4  5.06674
  5  2.73815e-05
  6  1.84368
  7  0.132126
  8  8.05203
  9  12.9846
  10  3.12296
  11  27.3509
  12  2.31531
  13  1.9537
  14  0.00425034
  15  2.60186e-06
  16  1.22478
  17  0.000270703
  18  5.13395
  19  4.34298e-06
  20  7.85498
  21  23.9039
  22  3.6958
  23  0.15643
  24  0.113932
Done.

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

Extracting fit parameters...

4FGL J1635.6+3628
   Spectrum: PowerLaw
282    Prefactor:  3.631e+00  1.298e+01  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:  1.033e+00  1.139e-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:  9.640e-01  1.564e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.11
Ra Dec: 248.923 36.480
Photon Flux Upper Limit: 7.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/393519/likelihoodResults_659232001_659491201_4FGL_J1635.6+3628_daily_bin1620.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) = 12057.2308688
delta logL = 0.00364637246275

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12057.229158
delta logL = 0.00535723721441

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9428       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8749       1.0000          .0000       10.000    
     3 'Normalizat'    .96202       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0341       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=   12057.23     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      220 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9428        65.805        .59190E-02    .42128E-03
   2  Index         2.8748        .72643        .50000        .54720E-04
   3  Normalizat    .96203        .11580E-01    .45689E-01    .42805E-03
   4  Prefactor     1.0341        .91540E-02    .40944E-01    .95593E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.94277
  Index      = 2.87481
  Normalizat = 0.962025
  Prefactor  = 1.03414
 **********
 **   18 **HESSE 
 **********

 FCN=   12057.23     FROM HESSE     STATUS=OK            31 CALLS      251 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9428        14.097        .23676E-03   -1.5365    
   2  Index         2.8748        2.1792        .52744E-02   -.43900    
   3  Normalizat    .96203        .16767        .28579E-03   -.94314    
   4  Prefactor     1.0341        .13067        .21769E-03   -.91600    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.95685e-10
Minuit parameter uncertainties:
  1  12.8864
  2  2.27364
  3  0.167765
  4  0.130706
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/393519': 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) = 12057.229158
delta logL = 0.00535724198198

Extracting fit parameters...

4FGL J1635.6+3628
   Spectrum: PowerLaw
282    Prefactor:  2.943e+00  1.289e+01  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  2.875e+00  2.274e+00  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:  1.034e+00  1.307e-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:  9.620e-01  1.678e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.11
Ra Dec: 248.923 36.480

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/393519/cmap_HighResolution_659232001_659491201_4FGL_J1635.6+3628_daily_bin1620.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.90e-03', job_status='DONE', photon_flux_upper_limit='7.51e-08', time_completed='2021-12-08 03:01:50.293877', job_id='393519', GAL2='1.03', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1638961310.29', return_code2='0', ts='0.11', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='5.36e-03', ts2='0.13', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='1620' AND source_name='4FGL J1635.6+3628' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 03:01:50 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 393519: <4FGL_J1635.6+3628_daily_bin1620> in cluster <slac> Done

Job <4FGL_J1635.6+3628_daily_bin1620> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Dec  8 02:45:15 2021
Job was executed on host(s) <bullet0023>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 02:45:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 02:45:34 2021
Terminated at Wed Dec  8 03:01:51 2021
Results reported at Wed Dec  8 03:01:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1635.6+3628_daily_bin1620 248.923 36.4795 659232001 659491201 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 :                                   818.31 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             303.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   976 sec.
    Turnaround time :                            996 sec.

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

