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


Performing analysis on: 4FGL_J1635.6+3628_daily_bin18
RA = 248.923, Dec = 36.4795
tmin = 243993601, tmax = 244252801
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='706091', job_status='RUN', time_executed='2021-09-14 22:43:48.213252', time_epoch_executed='1631684628.21' WHERE source_name='4FGL J1635.6+3628' and cadence='daily' and bin_id='18'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/706091

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/706091/ft1_4FGL_J1635.6+3628_daily_bin18.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/706091/ft2_4FGL_J1635.6+3628_daily_bin18.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/706091/ft1_4FGL_J1635.6+3628_daily_bin18.fits outfile=/scratch/kocevski/706091/ft1_filteredMKT_4FGL_J1635.6+3628_daily_bin18.fits ra=248.923 dec=36.4795 rad=12.0 tmin=243993601.0 tmax=244252801.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.44
user 1.26
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/706091/ft2_4FGL_J1635.6+3628_daily_bin18.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/706091/ft1_filteredMKT_4FGL_J1635.6+3628_daily_bin18.fits evtable="EVENTS" outfile="/scratch/kocevski/706091/ft1_filtered_4FGL_J1635.6+3628_daily_bin18.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.51
user 0.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/706091/ft1_filtered_4FGL_J1635.6+3628_daily_bin18.fits" evtable="EVENTS" scfile=/scratch/kocevski/706091/ft2_4FGL_J1635.6+3628_daily_bin18.fits sctable="SC_DATA" outfile=/scratch/kocevski/706091/ltcube_243993601_244252801_4FGL_J1635.6+3628_daily_bin18.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/706091/ft2_4FGL_J1635.6+3628_daily_bin18.fits
.....................!
real 16.58
user 16.16
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/706091/ft1_filtered_4FGL_J1635.6+3628_daily_bin18.fits evtable="EVENTS" scfile=/scratch/kocevski/706091/ft2_4FGL_J1635.6+3628_daily_bin18.fits sctable="SC_DATA" expcube=/scratch/kocevski/706091/ltcube_243993601_244252801_4FGL_J1635.6+3628_daily_bin18.fits outfile=/scratch/kocevski/706091/expmap_243993601_244252801_4FGL_J1635.6+3628_daily_bin18.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/706091/ltcube_243993601_244252801_4FGL_J1635.6+3628_daily_bin18.fits
.....................!
real 190.55
user 186.13
sys 4.01

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/706091/ft1_filtered_4FGL_J1635.6+3628_daily_bin18.fits scfile=/scratch/kocevski/706091/ft2_4FGL_J1635.6+3628_daily_bin18.fits outfile=/scratch/kocevski/706091/cmap_243993601_244252801_4FGL_J1635.6+3628_daily_bin18.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/706091/ft1_filtered_4FGL_J1635.6+3628_daily_bin18.fits scfile=/scratch/kocevski/706091/ft2_4FGL_J1635.6+3628_daily_bin18.fits outfile=/scratch/kocevski/706091/cmap_HighResolution_243993601_244252801_4FGL_J1635.6+3628_daily_bin18.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    44.182       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10453E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.9824       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12171E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    54.995       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.1696       1.0000         .10000E-03   10000.    
     7 'norm      '    .79992       1.0000         .10000E-03   10000.    
     8 'norm      '    .24568E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.4381       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.2540       1.0000         .10000E-03   10000.    
    11 'norm      '    27.671       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.4723       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.4796       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.002       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10407E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.2276       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10284E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .26443E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .12085E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    17.743       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12683E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.0363       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .74392       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1783       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=   6241.065     FROM MIGRAD    STATUS=CONVERGED    577 CALLS     2814 TOTAL
                     EDM=   .26E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          44.185        32.667        .85184E-07   -.10751E-04
   2  Prefactor     .10000E-03    8.9891        .19414E-07** at limit **
   3  Prefactor     1.9822        3.4409        .51935E-06   -.11782E-04
   4  Prefactor     .10000E-03    13.205       -.22120E-05** at limit **
   5  Prefactor     55.014        35.335       -.10188E-06   -.25753E-04
   6  Prefactor     1.1718        3.0455        .76138E-06   -.12815E-04
   7  norm          .79994        .22959       -.17834E-07   -.29825E-03
   8  norm          .10000E-03    28.151       -.68783E-07** at limit **
   9  Prefactor     3.4298        28.347        .12919E-05    .12395E-04
  10  Prefactor     1.2564        5.2909        .21070E-05   -.30232E-04
  11  norm          27.478        52.827       -.29497E-06   -.24160E-04
  12  Prefactor     4.4733        2.6295        .32918E-07   -.14453E-03
  13  Prefactor     4.4803        2.6159       -.60001E-08   -.11591E-03
  14  Prefactor     11.025        17.344        .13364E-06   -.78385E-04
  15  Prefactor     .10000E-03    1.0176       -.89114E-07** at limit **
  16  norm          1.2275        1.0423       -.19261E-07    .46577E-04
  17  Prefactor     .10000E-03    14.501       -.97795E-07** at limit **
  18  Prefactor     .10000E-03    5.7418        .25471E-06** at limit **
  19  norm          .10000E-03    .43755        .64502E-07** at limit **
  20  norm          17.744        11.966       -.43132E-07   -.44099E-04
  21  Prefactor     .10000E-03    39.008       -.22165E-06** at limit **
  22  norm          5.0295        7.5793        .18951E-06   -.51065E-04
  23  Normalizat    .74393        .23115       -.85043E-06   -.68550E-04
  24  Prefactor     1.1783        .16801       -.25302E-06   -.96923E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 44.1854
  Prefactor  = 0.0001
  Prefactor  = 1.98215
  Prefactor  = 0.0001
  Prefactor  = 55.0141
  Prefactor  = 1.17184
  norm       = 0.799936
  norm       = 0.0001
  Prefactor  = 3.42982
  Prefactor  = 1.25643
  norm       = 27.4776
  Prefactor  = 4.4733
  Prefactor  = 4.4803
  Prefactor  = 11.0252
  Prefactor  = 0.0001
  norm       = 1.22753
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 17.7441
  Prefactor  = 0.0001
  norm       = 5.02951
  Normalizat = 0.743928
  Prefactor  = 1.17828
 **********
 **   18 **HESSE 
 **********

 FCN=   6241.065     FROM HESSE     STATUS=OK           407 CALLS     3221 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          44.185        32.726        .60315E-04   -1.4378    
   2  Prefactor     .10000E-03    8.9905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.9822        3.4280        .18323E-03   -1.5426    
   4  Prefactor     .10000E-03    13.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     55.014        35.115        .54090E-04   -1.4223    
   6  Prefactor     1.1718        3.0152        .21267E-03   -1.5491    
   7  norm          .79994        .22986        .17641E-04   -1.5529    
   8  norm          .10000E-03    28.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.4298        28.309        .21813E-03   -1.5338    
  10  Prefactor     1.2564        5.2758        .34013E-03   -1.5484    
  11  norm          27.478        52.730        .76159E-04   -1.4659    
  12  Prefactor     4.4733        2.7354        .63288E-04   -1.5285    
  13  Prefactor     4.4803        2.7193        .63656E-04   -1.5285    
  14  Prefactor     11.025        17.316        .12078E-03   -1.5044    
  15  Prefactor     .10000E-03    1.0230        .77776E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.2275        1.1715        .72056E-03   -1.5486    
  17  Prefactor     .10000E-03    14.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    19.339        .35997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.4996        .99231E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          17.744        11.934        .95085E-04   -1.4865    
  21  Prefactor     .10000E-03    39.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.0295        7.5612        .17918E-03   -1.5259    
  23  Normalizat    .74393        .26417        .34235E-03   -1.0218    
  24  Prefactor     1.1783        .19441        .21513E-03   -.87002    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11044e-10
Minuit parameter uncertainties:
  1  32.7396
  2  1.03406e-06
  3  3.42836
  4  2.72315e-05
  5  35.1286
  6  3.01555
  7  0.229856
  8  1.89192e-05
  9  19.7198
  10  5.1498
  11  52.8193
  12  2.73551
  13  2.71942
  14  17.3241
  15  2.08374e-07
  16  1.17153
  17  4.73092e-06
  18  0.00030934
  19  3.09024e-05
  20  11.9352
  21  4.06573e-05
  22  7.56267
  23  0.264623
  24  0.194527
Done.

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

Extracting fit parameters...

4FGL J1635.6+3628
   Spectrum: PowerLaw
282    Prefactor:  3.430e+00  1.972e+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.178e+00  1.945e-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.439e-01  2.646e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.04
Ra Dec: 248.923 36.480
Photon Flux Upper Limit: 1.27e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.00e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/706091/likelihoodResults_243993601_244252801_4FGL_J1635.6+3628_daily_bin18.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) = 6241.06541806
delta logL = 7.56572344471e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6241.06539982
delta logL = 9.38948605835e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3254       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6892       1.0000          .0000       10.000    
     3 'Normalizat'    .74366       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1784       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6241.065     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      268 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3207        31.744        .22197E-03   -.17921E-03
   2  Index         2.6928        1.9878        .64686E-02   -.14119E-03
   3  Normalizat    .74380        .24581        .34238E-03   -.11153E-02
   4  Prefactor     1.1783        .18998        .21512E-03   -.13882E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.32065
  Index      = 2.69282
  Normalizat = 0.743796
  Prefactor  = 1.17835
 **********
 **   18 **HESSE 
 **********

 FCN=   6241.065     FROM HESSE     STATUS=OK            23 CALLS      291 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3207        29.315        .88789E-05   -1.5343    
   2  Index         2.6928        1.9157        .25874E-03   -.47961    
   3  Normalizat    .74380        .24603        .68475E-04   -1.0219    
   4  Prefactor     1.1783        .19013        .43024E-04   -.87000    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.49238e-09
Minuit parameter uncertainties:
  1  19.7452
  2  1.98086
  3  0.246396
  4  0.190243
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/706091': 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) = 6241.06539731
delta logL = 9.64030878094e-05

Extracting fit parameters...

4FGL J1635.6+3628
   Spectrum: PowerLaw
282    Prefactor:  3.321e+00  1.975e+01  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  2.693e+00  1.981e+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.178e+00  1.902e-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.438e-01  2.464e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
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/706091/cmap_HighResolution_243993601_244252801_4FGL_J1635.6+3628_daily_bin18.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.00e-02', job_status='DONE', photon_flux_upper_limit='1.27e-07', time_completed='2021-09-14 22:56:17.704995', job_id='706091', GAL2='1.18', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1631685377.71', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='9.64e-05', ts2='0.04', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='18' AND source_name='4FGL J1635.6+3628' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 22:56:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 706091: <4FGL_J1635.6+3628_daily_bin18> in cluster <slac> Done

Job <4FGL_J1635.6+3628_daily_bin18> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 14 22:40:18 2021
Job was executed on host(s) <bullet0290>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 14 22:41:02 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:02 2021
Terminated at Tue Sep 14 22:56:18 2021
Results reported at Tue Sep 14 22:56:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1635.6+3628_daily_bin18 248.923 36.4795 243993601 244252801 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 :                                   749.19 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             285.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            960 sec.

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

