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


Performing analysis on: 4FGL_J0102.8+5824_daily_bin1667
RA = 15.701, Dec = 58.4092
tmin = 671414401, tmax = 671673601
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='475767', job_status='RUN', time_executed='2022-04-15 02:44:35.253785', time_epoch_executed='1650015875.25' WHERE source_name='4FGL J0102.8+5824' and cadence='daily' and bin_id='1667'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/475767

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/475767/ft1_4FGL_J0102.8+5824_daily_bin1667.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/475767/ft2_4FGL_J0102.8+5824_daily_bin1667.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/475767/ft1_4FGL_J0102.8+5824_daily_bin1667.fits outfile=/scratch/kocevski/475767/ft1_filteredMKT_4FGL_J0102.8+5824_daily_bin1667.fits ra=15.701 dec=58.4092 rad=12.0 tmin=671414401.0 tmax=671673601.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.93
user 2.57
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/475767/ft2_4FGL_J0102.8+5824_daily_bin1667.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/475767/ft2_4FGL_J0102.8+5824_daily_bin1667.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/475767/ft1_filteredMKT_4FGL_J0102.8+5824_daily_bin1667.fits evtable="EVENTS" outfile="/scratch/kocevski/475767/ft1_filtered_4FGL_J0102.8+5824_daily_bin1667.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.52
user 0.27
sys 0.16

Number of photons that the gtmktime cut: 3190

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/475767/ft1_filtered_4FGL_J0102.8+5824_daily_bin1667.fits" evtable="EVENTS" scfile=/scratch/kocevski/475767/ft2_4FGL_J0102.8+5824_daily_bin1667.fits sctable="SC_DATA" outfile=/scratch/kocevski/475767/ltcube_671414401_671673601_4FGL_J0102.8+5824_daily_bin1667.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/475767/ft2_4FGL_J0102.8+5824_daily_bin1667.fits
.....................!
real 9.89
user 9.31
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/475767/ft1_filtered_4FGL_J0102.8+5824_daily_bin1667.fits evtable="EVENTS" scfile=/scratch/kocevski/475767/ft2_4FGL_J0102.8+5824_daily_bin1667.fits sctable="SC_DATA" expcube=/scratch/kocevski/475767/ltcube_671414401_671673601_4FGL_J0102.8+5824_daily_bin1667.fits outfile=/scratch/kocevski/475767/expmap_671414401_671673601_4FGL_J0102.8+5824_daily_bin1667.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/475767/ltcube_671414401_671673601_4FGL_J0102.8+5824_daily_bin1667.fits
.....................!
real 155.99
user 150.93
sys 4.65

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source HB 3 in ROI with RadialDisk spatial model.
Extended source W 3 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W3.fits is the correct path to the extended template.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source FHES J2208.4+6443 in ROI with RadialGaussian spatial model.
Added 196 point sources and 5 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0102.8+5824 @ 15.701 58.4092

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/475767/ft1_filtered_4FGL_J0102.8+5824_daily_bin1667.fits scfile=/scratch/kocevski/475767/ft2_4FGL_J0102.8+5824_daily_bin1667.fits outfile=/scratch/kocevski/475767/cmap_671414401_671673601_4FGL_J0102.8+5824_daily_bin1667.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=15.701 yref=58.4092 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.51
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/475767/ft1_filtered_4FGL_J0102.8+5824_daily_bin1667.fits scfile=/scratch/kocevski/475767/ft2_4FGL_J0102.8+5824_daily_bin1667.fits outfile=/scratch/kocevski/475767/cmap_HighResolution_671414401_671673601_4FGL_J0102.8+5824_daily_bin1667.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=15.701 yref=58.4092 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/475767/ft1_filtered_4FGL_J0102.8+5824_daily_bin1667.fits evtable="EVENTS" scfile=/scratch/kocevski/475767/ft2_4FGL_J0102.8+5824_daily_bin1667.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/475767/Model_4FGL_J0102.8+5824_daily_bin1667.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 CTB 109
adding source EG_v02
adding source FHES J2208.4+6443
adding source FHES J2304.0+5406
adding source GAL_V02
adding source HB 3
adding source W 3
Working on...
/scratch/kocevski/475767/ft1_filtered_4FGL_J0102.8+5824_daily_bin1667.fits.....................!
real 336.89
user 335.12
sys 1.04

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/475767/ft1_filtered_4FGL_J0102.8+5824_daily_bin1667.fits', '/scratch/kocevski/475767/ft2_4FGL_J0102.8+5824_daily_bin1667.fits', expMap='/scratch/kocevski/475767/expmap_671414401_671673601_4FGL_J0102.8+5824_daily_bin1667.fits', expCube='/scratch/kocevski/475767/ltcube_671414401_671673601_4FGL_J0102.8+5824_daily_bin1667.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/475767/Model_4FGL_J0102.8+5824_daily_bin1667.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0102.8+5824'

4FGL J0102.8+5824
   Spectrum: LogParabola
172         norm:  7.100e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
173        alpha:  2.218e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
174         beta:  6.508e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
175           Eb:  9.007e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/475767/ft1_filtered_4FGL_J0102.8+5824_daily_bin1667.fits
Spacecraft file(s): /scratch/kocevski/475767/ft2_4FGL_J0102.8+5824_daily_bin1667.fits
Exposure map: /scratch/kocevski/475767/expmap_671414401_671673601_4FGL_J0102.8+5824_daily_bin1667.fits
Exposure cube: /scratch/kocevski/475767/ltcube_671414401_671673601_4FGL_J0102.8+5824_daily_bin1667.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/475767/Model_4FGL_J0102.8+5824_daily_bin1667.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) = 30301.0572698

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6221       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.2792       1.0000         .10000E-03   10000.    
     4 'norm      '    .28530E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    9.0713       1.0000         .10000E-03   10000.    
     6 'norm      '    30.193       1.0000         .10000E-03   10000.    
     7 'norm      '    .49276E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.0029       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.8709       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .40800       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.721       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.2228       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .92448       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .99146       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6830E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   30300.99     FROM MIGRAD    STATUS=CONVERGED    373 CALLS     1587 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6221        1.7876        .65309E-07    .75085E-04
   2  Prefactor     .10000E-03    20.142        .40616E-09** at limit **
   3  norm          4.2793        4.5411        .20824E-06    .16081E-03
   4  norm          .10334E-03    5.7776       -.14707E-05** at limit **
   5  norm          9.0711        5.1768        .33425E-07   -.52785E-05
   6  norm          30.208        29.185        .93663E-06    .33225E-03
   7  norm          .10000E-03    1.5515        .68672E-07** at limit **
   8  norm          2.0033        2.7199        .10479E-05    .46437E-03
   9  Prefactor     8.8567        18.919        .88307E-07   -.46607E-04
  10  Prefactor     .10000E-03    62.973       -.39993E-06** at limit **
  11  norm          .10000E-03    2.2202        .10392E-08** at limit **
  12  norm          .10000E-03    .24914       -.62582E-08** at limit **
  13  Prefactor     .41000        1.4533       -.10879E-07   -.82766E-04
  14  Prefactor     12.720        14.345        .15386E-05    .14308E-03
  15  Prefactor     1.2227        .70639        .11204E-06    .46565E-03
  16  Prefactor     .10000E-03    63.809        .45592E-06** at limit **
  17  Normalizat    .92441        .25301       -.69413E-06    .32097E-04
  18  Prefactor     .99147        .31007E-01   -.42404E-07    .20249E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.62207
  Prefactor  = 0.0001
  norm       = 4.27926
  norm       = 0.00010334
  norm       = 9.07106
  norm       = 30.2078
  norm       = 0.0001
  norm       = 2.0033
  Prefactor  = 8.85673
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.410003
  Prefactor  = 12.7202
  Prefactor  = 1.2227
  Prefactor  = 0.000100001
  Normalizat = 0.924414
  Prefactor  = 0.991473
 **********
 **   18 **HESSE 
 **********

 FCN=   30300.99     FROM HESSE     STATUS=OK           264 CALLS     1851 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6221        1.7845        .18696E-03   -1.5384    
   2  Prefactor     .10000E-03    20.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.2793        4.5372        .19476E-03   -1.5294    
   4  norm          .10334E-03    4.8597        .13261       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          9.0711        5.1561        .13307E-03   -1.5106    
   6  norm          30.208        29.383        .72916E-04   -1.4608    
   7  norm          .10000E-03    17.320        .41709E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.0033        2.7240        .29261E-03   -1.5425    
   9  Prefactor     8.8567        18.923        .13458E-03   -1.5113    
  10  Prefactor     .10000E-03    64.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.3166        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .25507        .84794E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .41000        11.350        .37697E-02   -1.5580    
  14  Prefactor     12.720        14.337        .56155E-03   -1.4995    
  15  Prefactor     1.2227        .70050        .10771E-03   -1.5487    
  16  Prefactor     .10000E-03    63.837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .92441        .24381        .96735E-03   -.95608    
  18  Prefactor     .99147        .30626E-01    .11683E-03   -.93014    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02015e-07
Minuit parameter uncertainties:
  1  1.78457
  2  3.88806e-07
  3  4.53757
  4  0.00805807
  5  5.15633
  6  29.3972
  7  5.22002e-05
  8  2.72417
  9  18.9361
  10  0.000218745
  11  4.20259e-07
  12  1.65015e-07
  13  4.31472
  14  14.3408
  15  0.7005
  16  0.000364717
  17  0.244103
  18  0.0306267
Done.

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

Extracting fit parameters...

4FGL J0102.8+5824
   Spectrum: LogParabola
172         norm:  9.071e+00  5.156e+00  1.000e-04  1.000e+04 ( 1.000e-12)
173        alpha:  2.218e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
174         beta:  6.508e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
175           Eb:  9.007e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
672    Prefactor:  9.915e-01  3.063e-02  0.000e+00  1.000e+01 ( 1.000e+00)
673        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
674        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
663   Normalization:  9.244e-01  2.441e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.12
Ra Dec: 15.701 58.409
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 8.30e-08 +/- 4.72e-08
Energy Flux (Fixed Index): 3.46e-05 +/- 1.97e-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) = 30300.6166231
delta logL = 0.372365729978

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 30300.6138705
delta logL = 0.375118347434

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.3739       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6174       1.0000          .0000       5.0000    
     3 'Normalizat'    .89470       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99238       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6830E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   30300.61     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      321 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.3739        5.6695        .73850E-03   -.55697E-03
   2  alpha         2.6174        .53861        .16484E-01    .31845E-04
   3  Normalizat    .89475        .23868        .98087E-03   -.50998E-06
   4  Prefactor     .99237        .29777E-01    .11677E-03   -.38944E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 7.37387
  alpha      = 2.61744
  Normalizat = 0.894747
  Prefactor  = 0.992372
 **********
 **   18 **HESSE 
 **********

 FCN=   30300.61     FROM HESSE     STATUS=OK            25 CALLS      346 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.3739        4.9974        .29540E-04   -1.5165    
   2  alpha         2.6174        .47524        .65934E-03    .46993E-01
   3  Normalizat    .89475        .23836        .39235E-04   -.96645    
   4  Prefactor     .99237        .29753E-01    .46708E-05   -.92984    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13678e-10
Minuit parameter uncertainties:
  1  4.99768
  2  0.478153
  3  0.238636
  4  0.0297538
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/475767': 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) = 30300.6138705
delta logL = 0.375118389846

Extracting fit parameters...

4FGL J0102.8+5824
   Spectrum: LogParabola
172         norm:  7.374e+00  4.998e+00  1.000e-04  1.000e+04 ( 1.000e-12)
173        alpha:  2.617e+00  4.782e-01  0.000e+00  5.000e+00 ( 1.000e+00)
174         beta:  6.508e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
175           Eb:  9.007e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
672    Prefactor:  9.924e-01  2.975e-02  0.000e+00  1.000e+01 ( 1.000e+00)
673        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
674        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
663   Normalization:  8.947e-01  2.386e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.92
Ra Dec: 15.701 58.409
Photon Index (Free Index): 2.62 +/- 0.48
Photon Flux (Free Index): 1.20e-07 +/- 6.86e-08
Energy Flux (Free Index): 3.22e-05 +/- 1.66e-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/475767/cmap_HighResolution_671414401_671673601_4FGL_J0102.8+5824_daily_bin1667.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.30e-08', energy_flux2='3.22e-05', photon_flux_error='4.72e-08', dlogl='3.75e-01', energy_flux='3.46e-05', photon_flux2='1.20e-07', job_status='DONE', time_completed='2022-04-15 03:08:58.798255', photon_index_error2='0.48', photon_index2='2.62', ts='5.12', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='1.66e-05', EG='0.92', time_epoch_completed='1650017338.8', return_code='0', job_id='475767', GAL2='0.99', EG2='0.89', return_code2='0', energy_flux_error='1.97e-05', photon_flux_error2='6.86e-08', ts2='5.92', photon_index='2.22' WHERE bin_id='1667' AND source_name='4FGL J0102.8+5824' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Apr 15 03:08:58 PDT 2022



------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 475743: <4FGL_J0102.8+5824_daily_bin1667> in cluster <slac> Done

Job <4FGL_J0102.8+5824_daily_bin1667> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Apr 15 00:05:34 2022
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Apr 15 02:40:52 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Apr 15 02:40:52 2022
Terminated at Fri Apr 15 03:07:23 2022
Results reported at Fri Apr 15 03:07:23 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0102.8+5824_daily_bin1667 15.701 58.4092 671414401 671673601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0102.8+5824 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1471.08 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             388.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1591 sec.
    Turnaround time :                            10909 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0247>
Subject: Job 475767: <4FGL_J0102.8+5824_daily_bin1667> in cluster <slac> Done

Job <4FGL_J0102.8+5824_daily_bin1667> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Apr 15 00:05:35 2022
Job was executed on host(s) <bullet0247>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Apr 15 02:41:03 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Apr 15 02:41:03 2022
Terminated at Fri Apr 15 03:08:59 2022
Results reported at Fri Apr 15 03:08:59 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0102.8+5824_daily_bin1667 15.701 58.4092 671414401 671673601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0102.8+5824 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1451.79 sec.
    Max Memory :                                 1269 MB
    Average Memory :                             348.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2937 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   1676 sec.
    Turnaround time :                            11004 sec.

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

