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


Performing analysis on: 4FGL_J1019.7+6321_daily_bin1774
RA = 154.926, Dec = 63.3527
tmin = 699148801, tmax = 699408001
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='678883', job_status='RUN', time_executed='2023-03-02 00:31:14.989761', time_epoch_executed='1677745874.99' WHERE source_name='4FGL J1019.7+6321' and cadence='daily' and bin_id='1774'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/678883

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/678883/ft1_4FGL_J1019.7+6321_daily_bin1774.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/678883/ft2_4FGL_J1019.7+6321_daily_bin1774.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/678883/ft1_4FGL_J1019.7+6321_daily_bin1774.fits outfile=/scratch/kocevski/678883/ft1_filteredMKT_4FGL_J1019.7+6321_daily_bin1774.fits ra=154.926 dec=63.3527 rad=12.0 tmin=699148801.0 tmax=699408001.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.80
user 2.61
sys 0.17

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

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

Number of photons that the gtmktime cut: 371

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/678883/ft1_filtered_4FGL_J1019.7+6321_daily_bin1774.fits" evtable="EVENTS" scfile=/scratch/kocevski/678883/ft2_4FGL_J1019.7+6321_daily_bin1774.fits sctable="SC_DATA" outfile=/scratch/kocevski/678883/ltcube_699148801_699408001_4FGL_J1019.7+6321_daily_bin1774.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/678883/ft2_4FGL_J1019.7+6321_daily_bin1774.fits
.....................!
real 13.87
user 13.51
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/678883/ft1_filtered_4FGL_J1019.7+6321_daily_bin1774.fits evtable="EVENTS" scfile=/scratch/kocevski/678883/ft2_4FGL_J1019.7+6321_daily_bin1774.fits sctable="SC_DATA" expcube=/scratch/kocevski/678883/ltcube_699148801_699408001_4FGL_J1019.7+6321_daily_bin1774.fits outfile=/scratch/kocevski/678883/expmap_699148801_699408001_4FGL_J1019.7+6321_daily_bin1774.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/678883/ltcube_699148801_699408001_4FGL_J1019.7+6321_daily_bin1774.fits
.....................!
real 190.73
user 185.67
sys 4.63

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/678883/ft1_filtered_4FGL_J1019.7+6321_daily_bin1774.fits scfile=/scratch/kocevski/678883/ft2_4FGL_J1019.7+6321_daily_bin1774.fits outfile=/scratch/kocevski/678883/cmap_699148801_699408001_4FGL_J1019.7+6321_daily_bin1774.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/678883/ft1_filtered_4FGL_J1019.7+6321_daily_bin1774.fits scfile=/scratch/kocevski/678883/ft2_4FGL_J1019.7+6321_daily_bin1774.fits outfile=/scratch/kocevski/678883/cmap_HighResolution_699148801_699408001_4FGL_J1019.7+6321_daily_bin1774.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.54
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/678883/ft1_filtered_4FGL_J1019.7+6321_daily_bin1774.fits evtable="EVENTS" scfile=/scratch/kocevski/678883/ft2_4FGL_J1019.7+6321_daily_bin1774.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/678883/Model_4FGL_J1019.7+6321_daily_bin1774.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/678883/ft1_filtered_4FGL_J1019.7+6321_daily_bin1774.fits.....................!
real 52.95
user 51.63
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/678883/ft1_filtered_4FGL_J1019.7+6321_daily_bin1774.fits', '/scratch/kocevski/678883/ft2_4FGL_J1019.7+6321_daily_bin1774.fits', expMap='/scratch/kocevski/678883/expmap_699148801_699408001_4FGL_J1019.7+6321_daily_bin1774.fits', expCube='/scratch/kocevski/678883/ltcube_699148801_699408001_4FGL_J1019.7+6321_daily_bin1774.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/678883/Model_4FGL_J1019.7+6321_daily_bin1774.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/678883/ft1_filtered_4FGL_J1019.7+6321_daily_bin1774.fits
Spacecraft file(s): /scratch/kocevski/678883/ft2_4FGL_J1019.7+6321_daily_bin1774.fits
Exposure map: /scratch/kocevski/678883/expmap_699148801_699408001_4FGL_J1019.7+6321_daily_bin1774.fits
Exposure cube: /scratch/kocevski/678883/ltcube_699148801_699408001_4FGL_J1019.7+6321_daily_bin1774.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/678883/Model_4FGL_J1019.7+6321_daily_bin1774.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) = 3444.29653647

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21877E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    .17934       1.0000          .0000       .10000E+07
     3 'norm      '    .42204E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    .39505E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    .10000E+07   1.0000          .0000       .10000E+07
     6 'Prefactor '    .39591E-06   1.0000          .0000       .10000E+07
     7 'norm      '    .48205       1.0000          .0000       .10000E+07
     8 'Prefactor '    .23964E-03   1.0000          .0000       .10000E+07
     9 'norm      '    .78188E-03   1.0000          .0000       .10000E+07
    10 'norm      '    .44433       1.0000          .0000       .10000E+07
    11 'Prefactor '    .51106       1.0000          .0000       .10000E+07
    12 'norm      '    .49385E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    5.3553       1.0000          .0000       .10000E+07
    14 'Prefactor '    3.8411       1.0000          .0000       .10000E+07
    15 'Prefactor '    .92893E-04   1.0000          .0000       .10000E+07
    16 'norm      '    .19797       1.0000          .0000       .10000E+07
    17 'norm      '    .62204E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    43.077       1.0000          .0000       .10000E+07
    19 'Prefactor '    .17764E-08   1.0000          .0000       .10000E+07
    20 'norm      '    4.0648       1.0000          .0000       .10000E+07
    21 'norm      '    .11851E-05   1.0000          .0000       .10000E+07
    22 'Prefactor '    .16229E-03   1.0000          .0000       .10000E+07
    23 'norm      '    .12408E-04   1.0000          .0000       .10000E+07
    24 'Prefactor '    .62038E-04   1.0000          .0000       .10000E+07
    25 'Prefactor '    .58557E-02   1.0000          .0000       .10000E+07
    26 'Prefactor '    .23552E-02   1.0000          .0000       .10000E+07
    27 'Prefactor '    54.621       1.0000          .0000       .10000E+07
    28 'Prefactor '    1.1241       1.0000          .0000       .10000E+07
    29 'Prefactor '    3.0869       1.0000          .0000       .10000E+07
    30 'norm      '    24.394       1.0000          .0000       .10000E+07
    31 'norm      '    .31109E-04   1.0000          .0000       .10000E+07
    32 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    33 'Prefactor '    .40843       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7590E+05   .2000E-04
 **********
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3444.237     FROM MIGRAD    STATUS=CONVERGED    323 CALLS     3403 TOTAL
                     EDM=   .43E-07  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        6.6077         .0000    ** at limit **
   2  Prefactor     .15221E-06    93.946         .0000    ** at limit **
   3  norm           .0000        1.7335         .0000    ** at limit **
   4  Prefactor      .0000        1.9852         .0000    ** at limit **
   5  Prefactor     .10000E+07    567.89         .0000    ** at limit **
   6  Prefactor      .0000        7.2484         .0000    ** at limit **
   7  norm          .63394E-07    106.22         .0000    ** at limit **
   8  Prefactor     .25446E-05    51.625         .0000    ** at limit **
   9  norm           .0000        2.9514         .0000    ** at limit **
  10  norm          .44370        .44370         .0000        .19215E-03
  11  Prefactor     .53757E-06    116.54         .0000    ** at limit **
  12  norm          .11102E-09    12.716         .0000    ** at limit **
  13  Prefactor     6.6976        7.3770         .0000        .31846E-02
  14  Prefactor     .43205E-03    234.76         .0000    ** at limit **
  15  Prefactor     .49960E-09    16.832         .0000    ** at limit **
  16  norm          .19794        6.6568         .0000    ** at limit **
  17  norm           .0000        1.9733         .0000    ** at limit **
  18  Prefactor     44.462        31.048         .0000       -.78170E-01
  19  Prefactor      .0000        1.7846         .0000    ** at limit **
  20  norm          4.0635        .80620         .0000       -.23065E-03
  21  norm           .0000        .58400         .0000    ** at limit **
  22  Prefactor     .15280E-03    77.927         .0000    ** at limit **
  23  norm           .0000        4.5229         .0000    ** at limit **
  24  Prefactor     .83772E-06    78.827         .0000    ** at limit **
  25  Prefactor     .13323E-08    11.799         .0000    ** at limit **
  26  Prefactor      .0000        4.2674         .0000    ** at limit **
  27  Prefactor     54.489        1.6987         .0000       -.17812E-01
  28  Prefactor     1.1204        33.776         .0000        .96620E-02
  29  Prefactor     3.0285        4.0113         .0000       -.14923E-02
  30  norm          24.363        3.4425         .0000        .52301E-01
  31  norm           .0000        3.2826         .0000    ** at limit **
  32  Normalizat    .10000E-01    .16790E-01     .0000    ** at limit **
  33  Prefactor     .40931        .86904E-01     .0000       -.60892E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 1.52212e-07
  norm       = 0
  Prefactor  = 0
  Prefactor  = 1e+06
  Prefactor  = 0
  norm       = 6.33937e-08
  Prefactor  = 2.54463e-06
  norm       = 0
  norm       = 0.4437
  Prefactor  = 5.3757e-07
  norm       = 1.11022e-10
  Prefactor  = 6.69756
  Prefactor  = 0.000432055
  Prefactor  = 4.996e-10
  norm       = 0.197943
  norm       = 0
  Prefactor  = 44.4618
  Prefactor  = 0
  norm       = 4.06352
  norm       = 0
  Prefactor  = 0.000152802
  norm       = 0
  Prefactor  = 8.37719e-07
  Prefactor  = 1.33227e-09
  Prefactor  = 0
  Prefactor  = 54.4886
  Prefactor  = 1.12044
  Prefactor  = 3.02853
  norm       = 24.3626
  norm       = 0
  Normalizat = 0.01
  Prefactor  = 0.409306
 **********
 **   18 **HESSE 
 **********

 FCN=   3444.237     FROM HESSE     STATUS=OK           765 CALLS     4168 TOTAL
                     EDM=   .57E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        6.6492        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .15221E-06    12.028        .66884E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm           .0000        1.7318        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        1.9894        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E+07    2191.3        .10568E-01    1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        7.2969        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .63394E-07    107.11        .80536E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .25446E-05    154.09        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm           .0000        2.9590        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .44370        .42591        .84520E-03   -1.5695    
  11  Prefactor     .53757E-06    117.44        .77604E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .11102E-09    12.728        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.6976        10.228        .43404E-03   -1.5656    
  14  Prefactor     .43205E-03    58.230        .80435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .49960E-09    16.880        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .19794        2.8256        .33766E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        1.9753        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     44.462        87.714        .15238E-03   -1.5575    
  19  Prefactor      .0000        1.7818        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.0635        .80704        .49986E-03   -1.5668    
  21  norm           .0000        .58426        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .15280E-03    132.84        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm           .0000        4.4839        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .83772E-06    79.429        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .13323E-08    11.827        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor      .0000        4.2757        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     54.489        34.634        .13532E-03   -1.5560    
  28  Prefactor     1.1204        33.593        .11052E-02   -1.5687    
  29  Prefactor     3.0285        4.0701        .57700E-03   -1.5673    
  30  norm          24.363        21.478        .20252E-03   -1.5609    
  31  norm           .0000        3.2901        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .10000E-01    .16634E-01    .10647       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .40931        .89466E-01    .38373E-01   -1.1634    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.7335e-06
Minuit parameter uncertainties:
  1  2.70265e-06
  2  0.00270622
  3  4.34747e-06
  4  4.04645e-08
  5  7.81842
  6  2.10678e-05
  7  0.00521189
  8  0.0396044
  9  6.30575e-06
  10  0.42591
  11  0.0158912
  12  6.67825e-05
  13  10.2284
  14  0.317231
  15  0.000184899
  16  1.49573
  17  3.56353e-06
  18  87.7162
  19  4.799e-06
  20  0.807036
  21  1.21166e-07
  22  0.28495
  23  6.75667e-07
  24  0.0163148
  25  0.00025273
  26  8.44883e-06
  27  34.6338
  28  12.2702
  29  4.07014
  30  21.4784
  31  3.50153e-06
  32  5.02147e-10
  33  0.0894959
Done.

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

Extracting fit parameters...

4FGL J1019.7+6321
   Spectrum: LogParabola
405         norm:  1.110e-10  6.678e-05  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:  4.093e-01  8.950e-02  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.000e-02  5.021e-10  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/678883/likelihoodResults_699148801_699408001_4FGL_J1019.7+6321_daily_bin1774.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) = 3444.23713191
delta logL = -0.000361727353265

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3444.23677168
delta logL = -1.50036976265e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12154E-04   1.0000          .0000       .10000E+07
     2 'alpha     '    .53652       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .40939       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   3444.237     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      247 TOTAL
                     EDM=   .28E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        2.8368        .42118E-03** at limit **
   2  alpha         3.0996        1.3435       -.65443E-04     .0000    
   3  Normalizat    .10000E-01    .25505        .19138E-04** at limit **
   4  Prefactor     .40931        .74202        .17356E-04    .13091E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 3.09958
  Normalizat = 0.01
  Prefactor  = 0.409306
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   3444.237     FROM HESSE     STATUS=FAILED         7 CALLS      254 TOTAL
                     EDM=   .28E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        2.8368        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8385        1.3435       -.65443E-04    .24219    
   3  Normalizat    .10000E-01    .25505        .19138E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .40931        .74202        .17356E-04   -1.1634    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.80196e-11
Minuit parameter uncertainties:
  1  1.24287e-05
  2  1.42371
  3  2.29887e-07
  4  0.760564
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/678883': 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): 101
logL (Free Index) = 3444.23677018
delta logL = -1.04591890704e-11

Extracting fit parameters...

4FGL J1019.7+6321
   Spectrum: LogParabola
405         norm:  0.000e+00  1.243e-05  0.000e+00  1.000e+06 ( 1.000e-13)
406        alpha:  3.100e+00  1.424e+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:  4.093e-01  7.606e-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.000e-02  2.299e-07  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/678883/cmap_HighResolution_699148801_699408001_4FGL_J1019.7+6321_daily_bin1774.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.04e-05', job_status='DONE', photon_flux_upper_limit='5.56e-08', time_completed='2023-03-02 00:43:54.627574', job_id='678883', GAL2='0.41', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1677746634.63', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.41', dlogl='-1.05e-11', ts2='0.00', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='1774' AND source_name='4FGL J1019.7+6321' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Mar  2 00:43:54 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 678883: <4FGL_J1019.7+6321_daily_bin1774> in cluster <slac> Done

Job <4FGL_J1019.7+6321_daily_bin1774> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Mar  2 00:30:25 2023
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar  2 00:30:27 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Mar  2 00:30:27 2023
Terminated at Thu Mar  2 00:43:55 2023
Results reported at Thu Mar  2 00:43:55 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1019.7+6321_daily_bin1774 154.926 63.3527 699148801 699408001 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 :                                   762.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             352.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            810 sec.

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

