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


Performing analysis on: 4FGL_J1019.7+6321_daily_bin1760
RA = 154.926, Dec = 63.3527
tmin = 695520001, tmax = 695779201
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='733596', job_status='RUN', time_executed='2023-01-19 00:43:31.906997', time_epoch_executed='1674117811.91' WHERE source_name='4FGL J1019.7+6321' and cadence='daily' and bin_id='1760'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/733596

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/733596/ft1_4FGL_J1019.7+6321_daily_bin1760.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/733596/ft2_4FGL_J1019.7+6321_daily_bin1760.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/733596/ft1_4FGL_J1019.7+6321_daily_bin1760.fits outfile=/scratch/kocevski/733596/ft1_filteredMKT_4FGL_J1019.7+6321_daily_bin1760.fits ra=154.926 dec=63.3527 rad=12.0 tmin=695520001.0 tmax=695779201.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.47
user 2.24
sys 0.18

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

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

Number of photons that the gtmktime cut: 394

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/733596/ft1_filtered_4FGL_J1019.7+6321_daily_bin1760.fits" evtable="EVENTS" scfile=/scratch/kocevski/733596/ft2_4FGL_J1019.7+6321_daily_bin1760.fits sctable="SC_DATA" outfile=/scratch/kocevski/733596/ltcube_695520001_695779201_4FGL_J1019.7+6321_daily_bin1760.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/733596/ft2_4FGL_J1019.7+6321_daily_bin1760.fits
.....................!
real 16.51
user 16.06
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/733596/ft1_filtered_4FGL_J1019.7+6321_daily_bin1760.fits evtable="EVENTS" scfile=/scratch/kocevski/733596/ft2_4FGL_J1019.7+6321_daily_bin1760.fits sctable="SC_DATA" expcube=/scratch/kocevski/733596/ltcube_695520001_695779201_4FGL_J1019.7+6321_daily_bin1760.fits outfile=/scratch/kocevski/733596/expmap_695520001_695779201_4FGL_J1019.7+6321_daily_bin1760.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/733596/ltcube_695520001_695779201_4FGL_J1019.7+6321_daily_bin1760.fits
.....................!
real 192.47
user 186.82
sys 4.44

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/733596/ft1_filtered_4FGL_J1019.7+6321_daily_bin1760.fits scfile=/scratch/kocevski/733596/ft2_4FGL_J1019.7+6321_daily_bin1760.fits outfile=/scratch/kocevski/733596/cmap_695520001_695779201_4FGL_J1019.7+6321_daily_bin1760.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.56
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/733596/ft1_filtered_4FGL_J1019.7+6321_daily_bin1760.fits scfile=/scratch/kocevski/733596/ft2_4FGL_J1019.7+6321_daily_bin1760.fits outfile=/scratch/kocevski/733596/cmap_HighResolution_695520001_695779201_4FGL_J1019.7+6321_daily_bin1760.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.57
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/733596/ft1_filtered_4FGL_J1019.7+6321_daily_bin1760.fits evtable="EVENTS" scfile=/scratch/kocevski/733596/ft2_4FGL_J1019.7+6321_daily_bin1760.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/733596/Model_4FGL_J1019.7+6321_daily_bin1760.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/733596/ft1_filtered_4FGL_J1019.7+6321_daily_bin1760.fits.....................!
real 54.68
user 53.08
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/733596/ft1_filtered_4FGL_J1019.7+6321_daily_bin1760.fits', '/scratch/kocevski/733596/ft2_4FGL_J1019.7+6321_daily_bin1760.fits', expMap='/scratch/kocevski/733596/expmap_695520001_695779201_4FGL_J1019.7+6321_daily_bin1760.fits', expCube='/scratch/kocevski/733596/ltcube_695520001_695779201_4FGL_J1019.7+6321_daily_bin1760.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/733596/Model_4FGL_J1019.7+6321_daily_bin1760.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  0.000e+00  1.000e+06 ( 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 -5.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/733596/ft1_filtered_4FGL_J1019.7+6321_daily_bin1760.fits
Spacecraft file(s): /scratch/kocevski/733596/ft2_4FGL_J1019.7+6321_daily_bin1760.fits
Exposure map: /scratch/kocevski/733596/expmap_695520001_695779201_4FGL_J1019.7+6321_daily_bin1760.fits
Exposure cube: /scratch/kocevski/733596/ltcube_695520001_695779201_4FGL_J1019.7+6321_daily_bin1760.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/733596/Model_4FGL_J1019.7+6321_daily_bin1760.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) = 4368.29541379

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    74.141       1.0000          .0000       .10000E+07
     2 'Prefactor '    .13551E-02   1.0000          .0000       .10000E+07
     3 'norm      '    3.2161       1.0000          .0000       .10000E+07
     4 'Prefactor '    .71730E-01   1.0000          .0000       .10000E+07
     5 'Prefactor '    19.045       1.0000          .0000       .10000E+07
     6 'Prefactor '    .25389E-02   1.0000          .0000       .10000E+07
     7 'norm      '    .69109E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    60.135       1.0000          .0000       .10000E+07
     9 'norm      '    1.6624       1.0000          .0000       .10000E+07
    10 'norm      '    2.1860       1.0000          .0000       .10000E+07
    11 'Prefactor '    61.188       1.0000          .0000       .10000E+07
    12 'norm      '    .13690E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .35443E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    35.702       1.0000          .0000       .10000E+07
    15 'Prefactor '    1.9704       1.0000          .0000       .10000E+07
    16 'norm      '    1.7898       1.0000          .0000       .10000E+07
    17 'norm      '    .85479E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    .94372E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    2.6283       1.0000          .0000       .10000E+07
    20 'norm      '    2.3108       1.0000          .0000       .10000E+07
    21 'norm      '    .33140E-06   1.0000          .0000       .10000E+07
    22 'Prefactor '    .26787       1.0000          .0000       .10000E+07
    23 'norm      '    .32196E-08   1.0000          .0000       .10000E+07
    24 'Prefactor '    .10488       1.0000          .0000       .10000E+07
    25 'Prefactor '    .36602E-02   1.0000          .0000       .10000E+07
    26 'Prefactor '    .84488E-03   1.0000          .0000       .10000E+07
    27 'Prefactor '    29.618       1.0000          .0000       .10000E+07
    28 'Prefactor '    .63105E-02   1.0000          .0000       .10000E+07
    29 'Prefactor '    .53615E-04   1.0000          .0000       .10000E+07
    30 'norm      '    .85714E-02   1.0000          .0000       .10000E+07
    31 'norm      '    .13208E-03   1.0000          .0000       .10000E+07
    32 'Normalizat'    1.3368       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .93745       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4368.263     FROM MIGRAD    STATUS=CONVERGED    212 CALLS     3293 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     73.700        5.7189       -.23510E-07   -.19597E-01
   2  Prefactor     .15050E-05    29.067        .61616E-06** at limit **
   3  norm          3.2206        1.8731        .47629E-07    .53478E-02
   4  Prefactor     .85399E-04    54.888       -.48868E-06** at limit **
   5  Prefactor     18.883        4.5297        .91811E-07   -.66626E-01
   6  Prefactor     .18319E-07    13.203        .90989E-07** at limit **
   7  norm          .89373E-08    9.6127        .40308E-07** at limit **
   8  Prefactor     60.452        25.935        .25295E-06    .16417    
   9  norm          1.6513        1.0518       -.20114E-07   -.43556E-02
  10  norm          2.1916        1.5061       -.50988E-07   -.67962E-02
  11  Prefactor     66.923        74.358       -.39714E-06   -.26652E-01
  12  norm          .11603E-04    102.39       -.82691E-06** at limit **
  13  Prefactor     .11935E-06    16.957        .66015E-07** at limit **
  14  Prefactor     35.725        7.5987       -.23753E-08    .74766E-01
  15  Prefactor     .23477E-03    127.34       -.48347E-07** at limit **
  16  norm          1.9535        3.3806       -.88269E-07   -.17059E-02
  17  norm          .35162E-04    12.487       -.30316E-06** at limit **
  18  Prefactor     .94053E-06    70.782        .66246E-06** at limit **
  19  Prefactor     2.6606        5.9803        .75608E-07   -.22546E-03
  20  norm          2.3088        1.1006       -.22257E-07   -.53717E-02
  21  norm          .33307E-09    1.2790       -.22868E-07** at limit **
  22  Prefactor     .35681E-04    16.935       -.71170E-06** at limit **
  23  norm          .11102E-09    .93495       -.69576E-07** at limit **
  24  Prefactor     .55511E-10    113.98        .31416E-06** at limit **
  25  Prefactor     .20146E-05    31.131       -.55641E-06** at limit **
  26  Prefactor     .61614E-05    22.001        .38278E-06** at limit **
  27  Prefactor     29.817        9.6742       -.62370E-08    .88934E-01
  28  Prefactor     .38114E-06    22.086       -.10452E-06** at limit **
  29  Prefactor     .42744E-08    3.7256       -.95152E-07** at limit **
  30  norm          .30531E-08    15.845        .21774E-07** at limit **
  31  norm          .34972E-08    4.3133        .52982E-07** at limit **
  32  Normalizat    1.3356        .25575        .10544E-05   -.51679E-04
  33  Prefactor     .93746        .24709       -.91944E-06   -.53712E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 73.7002
  Prefactor  = 1.50496e-06
  norm       = 3.22062
  Prefactor  = 8.53989e-05
  Prefactor  = 18.8833
  Prefactor  = 1.83187e-08
  norm       = 8.9373e-09
  Prefactor  = 60.4517
  norm       = 1.65134
  norm       = 2.19164
  Prefactor  = 66.9233
  norm       = 1.16032e-05
  Prefactor  = 1.19349e-07
  Prefactor  = 35.7252
  Prefactor  = 0.000234773
  norm       = 1.9535
  norm       = 3.51617e-05
  Prefactor  = 9.40525e-07
  Prefactor  = 2.66065
  norm       = 2.30877
  norm       = 3.33067e-10
  Prefactor  = 3.56811e-05
  norm       = 1.11022e-10
  Prefactor  = 5.55112e-11
  Prefactor  = 2.01456e-06
  Prefactor  = 6.1614e-06
  Prefactor  = 29.8174
  Prefactor  = 3.8114e-07
  Prefactor  = 4.27436e-09
  norm       = 3.05311e-09
  norm       = 3.4972e-09
  Normalizat = 1.33559
  Prefactor  = 0.937461
 **********
 **   18 **HESSE 
 **********

 FCN=   4368.263     FROM HESSE     STATUS=OK           775 CALLS     4068 TOTAL
                     EDM=   .53E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     73.700        66.163        .11614E-03   -1.5536    
   2  Prefactor     .15050E-05    32.837        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.2206        1.8795        .56466E-03   -1.5672    
   4  Prefactor     .85399E-04    19.617        .98277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     18.883        22.899        .22922E-03   -1.5621    
   6  Prefactor     .18319E-07    13.227        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .89373E-08    9.6262        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     60.452        89.990        .12896E-03   -1.5552    
   9  norm          1.6513        1.0699        .81782E-04   -1.5682    
  10  norm          2.1916        1.5285        .69591E-03   -1.5678    
  11  Prefactor     66.923        80.442        .12785E-03   -1.5544    
  12  norm          .11603E-04    139.84        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .11935E-06    17.003        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     35.725        33.793        .16738E-03   -1.5588    
  15  Prefactor     .23477E-03    85.715        .95993E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.9535        4.6034        .78156E-03   -1.5680    
  17  norm          .35162E-04    1.7072        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .94053E-06    100.69        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.6606        5.9957        .62877E-03   -1.5675    
  20  norm          2.3088        1.0943        .67466E-03   -1.5678    
  21  norm          .33307E-09    1.2808        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .35681E-04    142.84        .10674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .11102E-09    .93597        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .55511E-10    113.67        .13800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .20146E-05    35.437        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .61614E-05    8.4613        .60646E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     29.817        33.821        .18378E-03   -1.5599    
  28  Prefactor     .38114E-06    23.287        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .42744E-08    3.7256        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .30531E-08    15.857        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .34972E-08    4.3199        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.3356        .23962        .59936E-01   -.82510    
  33  Prefactor     .93746        .22356        .68743E-01   -.94844    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.27883e-06
Minuit parameter uncertainties:
  1  66.164
  2  0.0140597
  3  1.87948
  4  0.0818601
  5  22.8989
  6  0.000984653
  7  0.000586698
  8  89.9917
  9  1.06992
  10  1.52854
  11  80.4438
  12  0.0805639
  13  0.00284905
  14  33.7932
  15  0.283719
  16  4.60341
  17  0.0154954
  18  0.0194631
  19  5.99573
  20  1.09428
  21  4.23856e-05
  22  0.142787
  23  2.07845e-05
  24  0.000132301
  25  0.0168986
  26  0.0144407
  27  33.8214
  28  0.00595837
  29  0.00025237
  30  0.000440811
  31  0.000245148
  32  0.239824
  33  0.223775
Done.

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

Extracting fit parameters...

4FGL J1019.7+6321
   Spectrum: LogParabola
405         norm:  1.160e-05  8.056e-02  0.000e+00  1.000e+06 ( 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 -5.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:  9.375e-01  2.238e-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:  1.336e+00  2.398e-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: 7.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.17e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/733596/likelihoodResults_695520001_695779201_4FGL_J1019.7+6321_daily_bin1760.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): 102
logL (Free Index) = 4368.26702627
delta logL = -0.00385871054186

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4367.84256848
delta logL = 0.420599085997

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8816       1.0000          .0000       .10000E+07
     2 'alpha     '    4.2045       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2566       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96954       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.

 FCN=   4367.843     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      233 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8635        46.425        .75859E-03    .12425E-01
   2  alpha         4.2080        4.5501        .43746        .80525E-04
   3  Normalizat    1.2569        .66004E-01    .61399E-01   -.32655E-04
   4  Prefactor     .96950        .63181E-01    .67678E-01    .29647E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.86354
  alpha      = 4.20798
  Normalizat = 1.25685
  Prefactor  = 0.969501
 **********
 **   18 **HESSE 
 **********

 FCN=   4367.843     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      266 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8635        106.29        .95944E-05   -1.5681    
   2  alpha         4.2080        2.9489        .18411E-01    .75212    
   3  Normalizat    1.2569        .25960        .27156E-03   -.84864    
   4  Prefactor     .96950        .23997        .29935E-03   -.93753    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.70465e-09
Minuit parameter uncertainties:
  1  28.1491
  2  7.7109
  3  0.259866
  4  0.240235
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/733596': 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): 102
logL (Free Index) = 4367.84256342
delta logL = 0.420604144851

Extracting fit parameters...

4FGL J1019.7+6321
   Spectrum: LogParabola
405         norm:  1.864e+00  2.815e+01  0.000e+00  1.000e+06 ( 1.000e-13)
406        alpha:  4.208e+00  7.711e+00  0.000e+00  5.000e+00 ( 1.000e+00)
407         beta:  1.985e-01  0.000e+00 -5.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:  9.695e-01  2.402e-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:  1.257e+00  2.599e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/733596/cmap_HighResolution_695520001_695779201_4FGL_J1019.7+6321_daily_bin1760.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.17e-05', job_status='DONE', photon_flux_upper_limit='7.11e-08', time_completed='2023-01-19 00:56:32.982434', job_id='733596', GAL2='0.97', fit_tolerance='1e-08', EG2='1.26', EG='1.34', time_epoch_completed='1674118592.98', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='4.21e-01', ts2='0.89', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='1760' AND source_name='4FGL J1019.7+6321' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jan 19 00:56:33 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 733596: <4FGL_J1019.7+6321_daily_bin1760> in cluster <slac> Done

Job <4FGL_J1019.7+6321_daily_bin1760> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Jan 19 00:40:28 2023
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jan 19 00:43:15 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jan 19 00:43:15 2023
Terminated at Thu Jan 19 00:56:33 2023
Results reported at Thu Jan 19 00:56:33 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1019.7+6321_daily_bin1760 154.926 63.3527 695520001 695779201 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 :                                   781.02 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             303.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   798 sec.
    Turnaround time :                            965 sec.

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

