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


Performing analysis on: 4FGL_J1019.7+6321_daily_bin1692
RA = 154.926, Dec = 63.3527
tmin = 677894401, tmax = 678153601
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='404923', job_status='RUN', time_executed='2022-06-29 04:24:31.895381', time_epoch_executed='1656501871.9' WHERE source_name='4FGL J1019.7+6321' and cadence='daily' and bin_id='1692'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/404923

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/404923/ft1_4FGL_J1019.7+6321_daily_bin1692.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/404923/ft2_4FGL_J1019.7+6321_daily_bin1692.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/404923/ft1_4FGL_J1019.7+6321_daily_bin1692.fits outfile=/scratch/kocevski/404923/ft1_filteredMKT_4FGL_J1019.7+6321_daily_bin1692.fits ra=154.926 dec=63.3527 rad=12.0 tmin=677894401.0 tmax=678153601.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 4.49
user 4.21
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/404923/ft2_4FGL_J1019.7+6321_daily_bin1692.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/404923/ft2_4FGL_J1019.7+6321_daily_bin1692.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/404923/ft1_filteredMKT_4FGL_J1019.7+6321_daily_bin1692.fits evtable="EVENTS" outfile="/scratch/kocevski/404923/ft1_filtered_4FGL_J1019.7+6321_daily_bin1692.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.36
sys 0.15

Number of photons that the gtmktime cut: 740

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/404923/ft1_filtered_4FGL_J1019.7+6321_daily_bin1692.fits" evtable="EVENTS" scfile=/scratch/kocevski/404923/ft2_4FGL_J1019.7+6321_daily_bin1692.fits sctable="SC_DATA" outfile=/scratch/kocevski/404923/ltcube_677894401_678153601_4FGL_J1019.7+6321_daily_bin1692.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/404923/ft2_4FGL_J1019.7+6321_daily_bin1692.fits
.....................!
real 14.91
user 14.32
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/404923/ft1_filtered_4FGL_J1019.7+6321_daily_bin1692.fits evtable="EVENTS" scfile=/scratch/kocevski/404923/ft2_4FGL_J1019.7+6321_daily_bin1692.fits sctable="SC_DATA" expcube=/scratch/kocevski/404923/ltcube_677894401_678153601_4FGL_J1019.7+6321_daily_bin1692.fits outfile=/scratch/kocevski/404923/expmap_677894401_678153601_4FGL_J1019.7+6321_daily_bin1692.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/404923/ltcube_677894401_678153601_4FGL_J1019.7+6321_daily_bin1692.fits
.....................!
real 192.26
user 186.21
sys 5.69

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

Setting source of interest to:
4FGL J1019.7+6321 @ 154.926 63.3527

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/404923/ft1_filtered_4FGL_J1019.7+6321_daily_bin1692.fits scfile=/scratch/kocevski/404923/ft2_4FGL_J1019.7+6321_daily_bin1692.fits outfile=/scratch/kocevski/404923/cmap_677894401_678153601_4FGL_J1019.7+6321_daily_bin1692.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=154.926 yref=63.3527 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.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/404923/ft1_filtered_4FGL_J1019.7+6321_daily_bin1692.fits scfile=/scratch/kocevski/404923/ft2_4FGL_J1019.7+6321_daily_bin1692.fits outfile=/scratch/kocevski/404923/cmap_HighResolution_677894401_678153601_4FGL_J1019.7+6321_daily_bin1692.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=154.926 yref=63.3527 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.37
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/404923/ft1_filtered_4FGL_J1019.7+6321_daily_bin1692.fits evtable="EVENTS" scfile=/scratch/kocevski/404923/ft2_4FGL_J1019.7+6321_daily_bin1692.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/404923/Model_4FGL_J1019.7+6321_daily_bin1692.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/404923/ft1_filtered_4FGL_J1019.7+6321_daily_bin1692.fits....................!
real 84.61
user 82.89
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/404923/ft1_filtered_4FGL_J1019.7+6321_daily_bin1692.fits', '/scratch/kocevski/404923/ft2_4FGL_J1019.7+6321_daily_bin1692.fits', expMap='/scratch/kocevski/404923/expmap_677894401_678153601_4FGL_J1019.7+6321_daily_bin1692.fits', expCube='/scratch/kocevski/404923/ltcube_677894401_678153601_4FGL_J1019.7+6321_daily_bin1692.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/404923/Model_4FGL_J1019.7+6321_daily_bin1692.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1019.7+6321'

4FGL J1019.7+6321
   Spectrum: LogParabola
405         norm:  3.570e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
406        alpha:  1.940e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
407         beta:  1.985e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
408           Eb:  1.251e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/404923/ft1_filtered_4FGL_J1019.7+6321_daily_bin1692.fits
Spacecraft file(s): /scratch/kocevski/404923/ft2_4FGL_J1019.7+6321_daily_bin1692.fits
Exposure map: /scratch/kocevski/404923/expmap_677894401_678153601_4FGL_J1019.7+6321_daily_bin1692.fits
Exposure cube: /scratch/kocevski/404923/ltcube_677894401_678153601_4FGL_J1019.7+6321_daily_bin1692.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/404923/Model_4FGL_J1019.7+6321_daily_bin1692.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) = 7923.20740673

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.1480       1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.338       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.772       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.3526       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.4062       1.0000         .10000E-03   10000.    
    12 'norm      '    3.5715       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.4683       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.481       1.0000         .10000E-03   10000.    
    18 'norm      '    .40898       1.0000         .10000E-03   10000.    
    19 'norm      '    2.3072       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    81.548       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.9714       1.0000         .10000E-03   10000.    
    23 'norm      '    .35626       1.0000         .10000E-03   10000.    
    24 'norm      '    2.8678       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    3.9674       1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.0342       1.0000         .10000E-03   10000.    
    28 'Prefactor '    94.169       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10568E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.4907       1.0000         .10000E-03   10000.    
    31 'Prefactor '    44.321       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10421E-03   1.0000         .10000E-03   10000.    
    34 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    35 'norm      '    3.0610       1.0000         .10000E-03   10000.    
    36 'Normalizat'    .91072       1.0000         .10000E-01   10.000    
    37 'Prefactor '    1.2108       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7923.206     FROM MIGRAD    STATUS=CONVERGED   1063 CALLS     5589 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.1430        75.043       -.11591E-04   -.10681E-04
   2  Prefactor     23.337        21.392       -.21390E-06   -.61536E-06
   3  Prefactor     .10000E-03    9.3724        .10629E-05** at limit **
   4  norm          .10000E-03    .32764       -.28030E-07** at limit **
   5  Prefactor     12.771        12.787        .34088E-07   -.12906E-03
   6  Prefactor     .10000E-03    1.8963        .56561E-08** at limit **
   7  Prefactor     4.3506        8.8134       -.41284E-06   -.18481E-03
   8  Prefactor     .10000E-03    17.859        .58338E-05** at limit **
   9  norm          .10000E-03    2.6462        .78293E-09** at limit **
  10  Prefactor     .10000E-03    22.836       -.66944E-05** at limit **
  11  norm          1.4062        .51592       -.10213E-07    .45906E-04
  12  norm          3.5714        .94550       -.22903E-07   -.47954E-03
  13  Prefactor     .10000E-03    7.7710       -.37494E-06** at limit **
  14  norm          .10000E-03    5.9785        .11099E-06** at limit **
  15  Prefactor     2.4656        11.211       -.12331E-06    .24152E-04
  16  Prefactor     .10000E-03    13.014       -.30250E-05** at limit **
  17  Prefactor     13.453        20.889       -.29457E-05   -.26715E-03
  18  norm          .41214        4.2909        .16450E-05   -.69790E-04
  19  norm          2.3071        1.2835        .81242E-08   -.67795E-04
  20  Prefactor     .10000E-03    58.729       -.69301E-05** at limit **
  21  Prefactor     81.544        161.02       -.40314E-05   -.26803E-05
  22  Prefactor     2.9705        5.7714       -.72076E-08    .28346E-04
  23  norm          .35622        .82821       -.86028E-08   -.19022E-03
  24  norm          2.8676        4.1066        .23481E-07   -.61211E-04
  25  Prefactor     .10000E-03    36.237       -.13019E-05** at limit **
  26  norm          3.9668        2.1765        .28050E-07   -.22803E-03
  27  Prefactor     3.0352        9.0477       -.13550E-06   -.10679E-03
  28  Prefactor     94.163        75.159       -.45204E-05   -.25578E-04
  29  Prefactor     .10000E-03    44.490        .10004E-04** at limit **
  30  Prefactor     1.4865        9.8315       -.73622E-07   -.14142E-03
  31  Prefactor     44.320        29.277       -.67064E-06   -.55865E-04
  32  Prefactor     .10000E-03    5.5079       -.26233E-07** at limit **
  33  Prefactor     .10000E-03    3.1556        .14874E-06** at limit **
  34  norm          .10000E-03    4.1438        .39525E-08** at limit **
  35  norm          3.0603        2.2106        .12922E-07   -.20333E-02
  36  Normalizat    .91070        .16959        .94740E-06   -.25013E-03
  37  Prefactor     1.2109        .16543        .51080E-07   -.14655E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.14303
  Prefactor  = 23.3374
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.7715
  Prefactor  = 0.0001
  Prefactor  = 4.35062
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.40616
  norm       = 3.57141
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.46559
  Prefactor  = 0.0001
  Prefactor  = 13.4534
  norm       = 0.412138
  norm       = 2.30711
  Prefactor  = 0.0001
  Prefactor  = 81.5435
  Prefactor  = 2.97046
  norm       = 0.356215
  norm       = 2.86765
  Prefactor  = 0.0001
  norm       = 3.96685
  Prefactor  = 3.03515
  Prefactor  = 94.1633
  Prefactor  = 0.0001
  Prefactor  = 1.48653
  Prefactor  = 44.3204
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.0001
  norm       = 3.06034
  Normalizat = 0.910701
  Prefactor  = 1.2109
 **********
 **   18 **HESSE 
 **********

 FCN=   7923.206     FROM HESSE     STATUS=OK           857 CALLS     6446 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.1430        74.469        .14045E-03   -1.5137    
   2  Prefactor     23.337        21.389        .82916E-04   -1.4741    
   3  Prefactor     .10000E-03    9.5034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .47631        .97607E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.771        12.854        .56043E-03   -1.4993    
   6  Prefactor     .10000E-03    1.9034        .11970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.3506        8.7590        .19307E-03   -1.5291    
   8  Prefactor     .10000E-03    18.162        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.6480        .14141E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    22.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.4062        .51666        .37485E-04   -1.5471    
  12  norm          3.5714        .94494        .42250E-04   -1.5330    
  13  Prefactor     .10000E-03    7.7728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    5.9819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.4656        11.083        .26028E-03   -1.5394    
  16  Prefactor     .10000E-03    12.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.453        18.334        .10909E-03   -1.4974    
  18  norm          .41214        3.3751        .22157E-03   -1.5580    
  19  norm          2.3071        1.2867        .73154E-04   -1.5404    
  20  Prefactor     .10000E-03    58.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     81.544        160.85        .44477E-04   -1.3899    
  22  Prefactor     2.9705        5.3537        .18826E-03   -1.5363    
  23  norm          .35622        .73475        .76135E-04   -1.5589    
  24  norm          2.8676        4.1286        .10585E-03   -1.5369    
  25  Prefactor     .10000E-03    36.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          3.9668        2.1733        .93951E-04   -1.5310    
  27  Prefactor     3.0352        9.1047        .22779E-03   -1.5360    
  28  Prefactor     94.163        74.974        .41416E-04   -1.3764    
  29  Prefactor     .10000E-03    44.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     1.4865        9.7261        .35111E-03   -1.5464    
  31  Prefactor     44.320        29.221        .60221E-04   -1.4376    
  32  Prefactor     .10000E-03    5.5102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    13.708        .30358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  norm          .10000E-03    4.1466        .17697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  norm          3.0603        5.2969        .11593E-02   -1.5358    
  36  Normalizat    .91070        .19111        .28305E-03   -.96085    
  37  Prefactor     1.2109        .18883        .25541E-03   -.85996    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.12534e-09
Minuit parameter uncertainties:
  1  49.3317
  2  21.3959
  3  1.0868e-06
  4  3.20056e-06
  5  12.8572
  6  1.15493e-06
  7  8.76156
  8  6.00569e-05
  9  2.92967e-07
  10  6.57191e-05
  11  0.516663
  12  0.944947
  13  1.45528e-06
  14  6.65152e-07
  15  10.4579
  16  1.76127e-05
  17  18.3416
  18  2.35872
  19  1.28672
  20  6.84574e-05
  21  161.717
  22  5.35459
  23  0.734771
  24  4.12899
  25  7.06306e-06
  26  2.17333
  27  9.10885
  28  75.0496
  29  2.00472e-05
  30  7.60629
  31  29.2304
  32  1.55497e-06
  33  0.000395068
  34  1.83187e-07
  35  5.29776
  36  0.191254
  37  0.18894
Done.

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

Extracting fit parameters...

4FGL J1019.7+6321
   Spectrum: LogParabola
405         norm:  1.000e-04  6.652e-07  1.000e-04  1.000e+04 ( 1.000e-13)
406        alpha:  1.940e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
407         beta:  1.985e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
408           Eb:  1.251e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
756    Prefactor:  1.211e+00  1.889e-01  0.000e+00  1.000e+01 ( 1.000e+00)
757        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
758        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
755   Normalization:  9.107e-01  1.913e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 154.926 63.353
Photon Flux Upper Limit: 2.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.89e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/404923/likelihoodResults_677894401_678153601_4FGL_J1019.7+6321_daily_bin1692.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) = 7923.20684701
delta logL = -0.000784819457294

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7923.20606219
delta logL = 3.23780113831e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9370       1.0000          .0000       5.0000    
     3 'Normalizat'    .91070       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2109       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7590E+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=   7923.206     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      239 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1341.3        .18142E-02** at limit **
   2  alpha         1.7666        3.3294        .17022        .20037E-09
   3  Normalizat    .91070        .12762        .28305E-03    .10443E-04
   4  Prefactor     1.2109        .13130        .25541E-03    .12241E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.7666
  Normalizat = 0.910702
  Prefactor  = 1.2109
 **********
 **   18 **HESSE 
 **********

 FCN=   7923.206     FROM HESSE     STATUS=OK            23 CALLS      262 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.0514        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7666        3.3567        .68087E-02   -.29774    
   3  Normalizat    .91070        .17665        .11322E-04   -.96085    
   4  Prefactor     1.2109        .18175        .10216E-04   -.85996    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54126e-12
Minuit parameter uncertainties:
  1  1.436e-05
  2  393.974
  3  0.17676
  4  0.181842
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/404923': 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) = 7923.2060621
delta logL = 9.51167749008e-08

Extracting fit parameters...

4FGL J1019.7+6321
   Spectrum: LogParabola
405         norm:  1.000e-04  1.436e-05  1.000e-04  1.000e+04 ( 1.000e-13)
406        alpha:  1.767e+00  3.940e+02  0.000e+00  5.000e+00 ( 1.000e+00)
407         beta:  1.985e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
408           Eb:  1.251e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
756    Prefactor:  1.211e+00  1.818e-01  0.000e+00  1.000e+01 ( 1.000e+00)
757        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
758        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
755   Normalization:  9.107e-01  1.768e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 154.926 63.353

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/404923/cmap_HighResolution_677894401_678153601_4FGL_J1019.7+6321_daily_bin1692.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.89e-05', job_status='DONE', photon_flux_upper_limit='2.60e-08', time_completed='2022-06-29 04:52:10.305763', job_id='404923', GAL2='1.21', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1656503530.31', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='9.51e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='1692' AND source_name='4FGL J1019.7+6321' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jun 29 04:52:10 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 404924: <4FGL_J1019.7+6321_daily_bin1692> in cluster <slac> Done

Job <4FGL_J1019.7+6321_daily_bin1692> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Jun 29 00:06:21 2022
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jun 29 04:22:27 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jun 29 04:22:27 2022
Terminated at Wed Jun 29 04:50:41 2022
Results reported at Wed Jun 29 04:50:41 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1019.7+6321_daily_bin1692 154.926 63.3527 677894401 678153601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1019.7+6321 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1652.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             327.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1694 sec.
    Turnaround time :                            17060 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0039>
Subject: Job 404923: <4FGL_J1019.7+6321_daily_bin1692> in cluster <slac> Done

Job <4FGL_J1019.7+6321_daily_bin1692> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Jun 29 00:06:21 2022
Job was executed on host(s) <bullet0039>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jun 29 04:22:27 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jun 29 04:22:27 2022
Terminated at Wed Jun 29 04:52:10 2022
Results reported at Wed Jun 29 04:52:10 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1019.7+6321_daily_bin1692 154.926 63.3527 677894401 678153601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1019.7+6321 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1650.85 sec.
    Max Memory :                                 633 MB
    Average Memory :                             313.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   3409 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   1783 sec.
    Turnaround time :                            17149 sec.

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

