aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 50 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J1635.6+3628_daily_bin1778
RA = 248.923, Dec = 36.4795
tmin = 700185601, tmax = 700444801
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='969425', job_status='RUN', time_executed='2023-03-14 01:26:18.079087', time_epoch_executed='1678782378.08' WHERE source_name='4FGL J1635.6+3628' and cadence='daily' and bin_id='1778'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/969425

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/969425/ft1_4FGL_J1635.6+3628_daily_bin1778.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/969425/ft2_4FGL_J1635.6+3628_daily_bin1778.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/969425/ft1_4FGL_J1635.6+3628_daily_bin1778.fits outfile=/scratch/kocevski/969425/ft1_filteredMKT_4FGL_J1635.6+3628_daily_bin1778.fits ra=248.923 dec=36.4795 rad=12.0 tmin=700185601.0 tmax=700444801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.97
user 3.75
sys 0.21

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

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

Number of photons that the gtmktime cut: 741

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/969425/ft1_filtered_4FGL_J1635.6+3628_daily_bin1778.fits" evtable="EVENTS" scfile=/scratch/kocevski/969425/ft2_4FGL_J1635.6+3628_daily_bin1778.fits sctable="SC_DATA" outfile=/scratch/kocevski/969425/ltcube_700185601_700444801_4FGL_J1635.6+3628_daily_bin1778.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/969425/ft2_4FGL_J1635.6+3628_daily_bin1778.fits
.....................!
real 11.77
user 11.44
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/969425/ft1_filtered_4FGL_J1635.6+3628_daily_bin1778.fits evtable="EVENTS" scfile=/scratch/kocevski/969425/ft2_4FGL_J1635.6+3628_daily_bin1778.fits sctable="SC_DATA" expcube=/scratch/kocevski/969425/ltcube_700185601_700444801_4FGL_J1635.6+3628_daily_bin1778.fits outfile=/scratch/kocevski/969425/expmap_700185601_700444801_4FGL_J1635.6+3628_daily_bin1778.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/969425/ltcube_700185601_700444801_4FGL_J1635.6+3628_daily_bin1778.fits
.....................!
real 190.56
user 185.77
sys 4.48

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/969425/ft1_filtered_4FGL_J1635.6+3628_daily_bin1778.fits scfile=/scratch/kocevski/969425/ft2_4FGL_J1635.6+3628_daily_bin1778.fits outfile=/scratch/kocevski/969425/cmap_700185601_700444801_4FGL_J1635.6+3628_daily_bin1778.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/969425/ft1_filtered_4FGL_J1635.6+3628_daily_bin1778.fits scfile=/scratch/kocevski/969425/ft2_4FGL_J1635.6+3628_daily_bin1778.fits outfile=/scratch/kocevski/969425/cmap_HighResolution_700185601_700444801_4FGL_J1635.6+3628_daily_bin1778.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.54
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/969425/ft1_filtered_4FGL_J1635.6+3628_daily_bin1778.fits', '/scratch/kocevski/969425/ft2_4FGL_J1635.6+3628_daily_bin1778.fits', expMap='/scratch/kocevski/969425/expmap_700185601_700444801_4FGL_J1635.6+3628_daily_bin1778.fits', expCube='/scratch/kocevski/969425/ltcube_700185601_700444801_4FGL_J1635.6+3628_daily_bin1778.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/969425/Model_4FGL_J1635.6+3628_daily_bin1778.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  0.000e+00  1.000e+06 ( 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/969425/ft1_filtered_4FGL_J1635.6+3628_daily_bin1778.fits
Spacecraft file(s): /scratch/kocevski/969425/ft2_4FGL_J1635.6+3628_daily_bin1778.fits
Exposure map: /scratch/kocevski/969425/expmap_700185601_700444801_4FGL_J1635.6+3628_daily_bin1778.fits
Exposure cube: /scratch/kocevski/969425/ltcube_700185601_700444801_4FGL_J1635.6+3628_daily_bin1778.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/969425/Model_4FGL_J1635.6+3628_daily_bin1778.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) = 8195.22663275

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14358E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .72734E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .16098E-08   1.0000          .0000       .10000E+07
     4 'Prefactor '    1.8107       1.0000          .0000       .10000E+07
     5 'Prefactor '    3.1285       1.0000          .0000       .10000E+07
     6 'Prefactor '    .61170       1.0000          .0000       .10000E+07
     7 'norm      '    .60808E-01   1.0000          .0000       .10000E+07
     8 'norm      '    .12811E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    66.391       1.0000          .0000       .10000E+07
    10 'Prefactor '    3.1877       1.0000          .0000       .10000E+07
    11 'norm      '    .15069E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .17264E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    .29476E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    .14216E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .23490E-05   1.0000          .0000       .10000E+07
    16 'norm      '    5.5127       1.0000          .0000       .10000E+07
    17 'Prefactor '    34.762       1.0000          .0000       .10000E+07
    18 'Prefactor '    6.4773       1.0000          .0000       .10000E+07
    19 'norm      '    .44556       1.0000          .0000       .10000E+07
    20 'norm      '    1.6824       1.0000          .0000       .10000E+07
    21 'norm      '    24.092       1.0000          .0000       .10000E+07
    22 'Normalizat'    .86238       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1843       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=   8195.203     FROM MIGRAD    STATUS=CONVERGED    167 CALLS     1947 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        5.1772       -.32593E-06** at limit **
   2  Prefactor     .35660E-06    20.523       -.25410E-06** at limit **
   3  Prefactor      .0000        .73552       -.97786E-07** at limit **
   4  Prefactor     1.7625        5.2199        .10238E-06   -.75391E-03
   5  Prefactor     3.1476        1.5851        .10363E-07    .25879E-02
   6  Prefactor     .61144        4.2283       -.17172E-06   -.20203E-02
   7  norm          .59894E-01    .13928       -.21607E-07** at limit **
   8  norm          .11102E-08    5.9824       -.17959E-06** at limit **
   9  Prefactor     66.641        11.930       -.46454E-07    .24998    
  10  Prefactor     3.1971        4.4927        .42753E-07    .21873E-02
  11  norm          .59125E-06    21.223       -.26091E-06** at limit **
  12  Prefactor      .0000        .75805       -.93334E-07** at limit **
  13  Prefactor      .0000        .65129        .25713E-07** at limit **
  14  Prefactor     .23870E-08    5.7351       -.14938E-06** at limit **
  15  Prefactor      .0000        2.2769        .20309E-06** at limit **
  16  norm          5.5124        1.9016        .21304E-07    .18347E-02
  17  Prefactor     33.652        52.493        .18750E-07    .10925E-01
  18  Prefactor     6.4658        6.5649       -.79380E-07   -.79443E-01
  19  norm          .44494        .83706        .17316E-07    .26991E-02
  20  norm          1.6733        8.3201       -.31479E-06   -.11619E-01
  21  norm          24.083        6.2107        .24992E-08    .73011E-01
  22  Normalizat    .86180        .22144       -.86886E-05    .76460E-05
  23  Prefactor     1.1850        .16750        .68776E-05    .15930E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 3.56604e-07
  Prefactor  = 0
  Prefactor  = 1.76255
  Prefactor  = 3.14762
  Prefactor  = 0.611443
  norm       = 0.0598941
  norm       = 1.11022e-09
  Prefactor  = 66.6414
  Prefactor  = 3.19706
  norm       = 5.91249e-07
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 2.38698e-09
  Prefactor  = 0
  norm       = 5.51245
  Prefactor  = 33.6515
  Prefactor  = 6.46579
  norm       = 0.444945
  norm       = 1.67328
  norm       = 24.0833
  Normalizat = 0.861802
  Prefactor  = 1.18503
 **********
 **   18 **HESSE 
 **********

 FCN=   8195.203     FROM HESSE     STATUS=OK           418 CALLS     2365 TOTAL
                     EDM=   .53E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        5.1814        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .35660E-06    20.928        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        .73526        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.7625        16.717        .77612E-03   -1.5681    
   5  Prefactor     3.1476        122.90        .57293E-03   -1.5672    
   6  Prefactor     .61144        4.1736        .68187E-03   -1.5692    
   7  norm          .59894E-01    .11209        .10549E-02   -1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .11102E-08    5.9864        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     66.641        23.461        .12274E-03   -1.5545    
  10  Prefactor     3.1971        4.5304        .56730E-03   -1.5672    
  11  norm          .59125E-06    21.917        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        .74512        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        .64344        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .23870E-08    5.7466        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        2.2604        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.5124        1.9023        .42769E-03   -1.5661    
  17  Prefactor     33.652        52.858        .16963E-03   -1.5592    
  18  Prefactor     6.4658        9.0326        .39410E-03   -1.5657    
  19  norm          .44494        .89499        .84387E-03   -1.5695    
  20  norm          1.6733        11.098        .81171E-03   -1.5682    
  21  norm          24.083        9.4021        .20378E-03   -1.5610    
  22  Normalizat    .86180        .19364        .70812E-01   -.97816    
  23  Prefactor     1.1850        .14334        .35014E-01   -.86793    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.329e-06
Minuit parameter uncertainties:
  1  3.6675e-06
  2  0.0054638
  3  4.80575e-06
  4  10.8563
  5  39.3369
  6  3.19494
  7  0.112085
  8  0.000163094
  9  23.4615
  10  4.53038
  11  0.00719971
  12  5.45976e-06
  13  1.08913e-07
  14  0.000233972
  15  1.37067e-05
  16  1.90233
  17  52.8583
  18  9.0326
  19  0.894993
  20  8.61877
  21  9.40215
  22  0.193795
  23  0.14339
Done.

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

Extracting fit parameters...

4FGL J1635.6+3628
   Spectrum: PowerLaw
282    Prefactor:  6.664e+01  2.346e+01  0.000e+00  1.000e+06 ( 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.185e+00  1.434e-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:  8.618e-01  1.938e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.88
Ra Dec: 248.923 36.480
Photon Index (Fixed Index): 2.67 +/- 0.00
Photon Flux (Fixed Index): 1.66e-07 +/- 5.85e-08
Energy Flux (Fixed Index): 4.12e-05 +/- 1.45e-05

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) = 8194.6182495
delta logL = 0.585058989946

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8194.61174051
delta logL = 0.591567978548

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.696       1.0000          .0000       .10000E+07
     2 'Index     '    3.1512       1.0000          .0000       10.000    
     3 'Normalizat'    .81245       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2147       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=   8194.612     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      295 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.700        37.585        .67916E-05   -.21460E-02
   2  Index         3.1511        .63337        .32497E-02   -.59444E-04
   3  Normalizat    .81258        .21757        .32158E-03    .27292E-04
   4  Prefactor     1.2145        .16658        .21025E-03    .19611E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.7004
  Index      = 3.15111
  Normalizat = 0.812584
  Prefactor  = 1.21454
 **********
 **   18 **HESSE 
 **********

 FCN=   8194.612     FROM HESSE     STATUS=OK            25 CALLS      320 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.700        29.652        .27167E-06   -1.5590    
   2  Index         3.1511        .49983        .12999E-03   -.37877    
   3  Normalizat    .81258        .21676        .12863E-04   -.99604    
   4  Prefactor     1.2145        .16588        .42050E-04   -.85885    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.66487e-11
Minuit parameter uncertainties:
  1  29.6522
  2  0.500798
  3  0.216987
  4  0.165954
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/969425': 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) = 8194.61174024
delta logL = 0.59156824731

Extracting fit parameters...

4FGL J1635.6+3628
   Spectrum: PowerLaw
282    Prefactor:  3.470e+01  2.965e+01  0.000e+00  1.000e+06 ( 1.000e-13)
283        Index:  3.151e+00  5.008e-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:  1.215e+00  1.660e-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:  8.126e-01  2.170e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.50
Ra Dec: 248.923 36.480
Photon Index (Free Index): 3.15 +/- 0.50
Photon Flux (Free Index): 2.01e-07 +/- 7.05e-08
Energy Flux (Free Index): 3.76e-05 +/- 1.29e-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/969425/cmap_HighResolution_700185601_700444801_4FGL_J1635.6+3628_daily_bin1778.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.66e-07', energy_flux2='3.76e-05', photon_flux_error='5.85e-08', dlogl='5.92e-01', energy_flux='4.12e-05', photon_flux2='2.01e-07', job_status='DONE', time_completed='2023-03-14 01:37:34.434285', photon_index_error2='0.50', photon_index2='3.15', ts='13.88', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', energy_flux_error2='1.29e-05', EG='0.86', time_epoch_completed='1678783054.43', return_code='0', job_id='969425', GAL2='1.21', EG2='0.81', return_code2='0', energy_flux_error='1.45e-05', photon_flux_error2='7.05e-08', ts2='15.50', photon_index='2.67' WHERE bin_id='1778' AND source_name='4FGL J1635.6+3628' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Mar 14 01:37:34 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 969425: <4FGL_J1635.6+3628_daily_bin1778> in cluster <slac> Done

Job <4FGL_J1635.6+3628_daily_bin1778> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Mar 14 01:25:18 2023
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar 14 01:25:19 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar 14 01:25:19 2023
Terminated at Tue Mar 14 01:37:35 2023
Results reported at Tue Mar 14 01:37:35 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1635.6+3628_daily_bin1778 248.923 36.4795 700185601 700444801 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 :                                   678.35 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             296.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   735 sec.
    Turnaround time :                            737 sec.

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

