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


Performing analysis on: 4FGL_J1330.2+7002_daily_bin1703
RA = 202.573, Dec = 70.0406
tmin = 680745601, tmax = 681004801
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='304565', job_status='RUN', time_executed='2022-08-01 01:06:20.232910', time_epoch_executed='1659341180.23' WHERE source_name='4FGL J1330.2+7002' and cadence='daily' and bin_id='1703'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/304565

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/304565/ft1_4FGL_J1330.2+7002_daily_bin1703.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/304565/ft2_4FGL_J1330.2+7002_daily_bin1703.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/304565/ft1_4FGL_J1330.2+7002_daily_bin1703.fits outfile=/scratch/kocevski/304565/ft1_filteredMKT_4FGL_J1330.2+7002_daily_bin1703.fits ra=202.573 dec=70.0406 rad=12.0 tmin=680745601.0 tmax=681004801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.04
user 2.81
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/304565/ft2_4FGL_J1330.2+7002_daily_bin1703.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/304565/ft2_4FGL_J1330.2+7002_daily_bin1703.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/304565/ft1_filteredMKT_4FGL_J1330.2+7002_daily_bin1703.fits evtable="EVENTS" outfile="/scratch/kocevski/304565/ft1_filtered_4FGL_J1330.2+7002_daily_bin1703.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.55
user 0.36
sys 0.18

Number of photons that the gtmktime cut: 1180

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/304565/ft1_filtered_4FGL_J1330.2+7002_daily_bin1703.fits" evtable="EVENTS" scfile=/scratch/kocevski/304565/ft2_4FGL_J1330.2+7002_daily_bin1703.fits sctable="SC_DATA" outfile=/scratch/kocevski/304565/ltcube_680745601_681004801_4FGL_J1330.2+7002_daily_bin1703.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/304565/ft2_4FGL_J1330.2+7002_daily_bin1703.fits
.....................!
real 15.32
user 14.90
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/304565/ft1_filtered_4FGL_J1330.2+7002_daily_bin1703.fits evtable="EVENTS" scfile=/scratch/kocevski/304565/ft2_4FGL_J1330.2+7002_daily_bin1703.fits sctable="SC_DATA" expcube=/scratch/kocevski/304565/ltcube_680745601_681004801_4FGL_J1330.2+7002_daily_bin1703.fits outfile=/scratch/kocevski/304565/expmap_680745601_681004801_4FGL_J1330.2+7002_daily_bin1703.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/304565/ltcube_680745601_681004801_4FGL_J1330.2+7002_daily_bin1703.fits
.....................!
real 193.30
user 186.85
sys 5.84

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

Setting source of interest to:
4FGL J1330.2+7002 @ 202.573 70.0406

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/304565/ft1_filtered_4FGL_J1330.2+7002_daily_bin1703.fits scfile=/scratch/kocevski/304565/ft2_4FGL_J1330.2+7002_daily_bin1703.fits outfile=/scratch/kocevski/304565/cmap_680745601_681004801_4FGL_J1330.2+7002_daily_bin1703.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=202.573 yref=70.0406 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.58
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/304565/ft1_filtered_4FGL_J1330.2+7002_daily_bin1703.fits scfile=/scratch/kocevski/304565/ft2_4FGL_J1330.2+7002_daily_bin1703.fits outfile=/scratch/kocevski/304565/cmap_HighResolution_680745601_681004801_4FGL_J1330.2+7002_daily_bin1703.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=202.573 yref=70.0406 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.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/304565/ft1_filtered_4FGL_J1330.2+7002_daily_bin1703.fits evtable="EVENTS" scfile=/scratch/kocevski/304565/ft2_4FGL_J1330.2+7002_daily_bin1703.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/304565/Model_4FGL_J1330.2+7002_daily_bin1703.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/304565/ft1_filtered_4FGL_J1330.2+7002_daily_bin1703.fits....................!
real 117.04
user 115.40
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/304565/ft1_filtered_4FGL_J1330.2+7002_daily_bin1703.fits', '/scratch/kocevski/304565/ft2_4FGL_J1330.2+7002_daily_bin1703.fits', expMap='/scratch/kocevski/304565/expmap_680745601_681004801_4FGL_J1330.2+7002_daily_bin1703.fits', expCube='/scratch/kocevski/304565/ltcube_680745601_681004801_4FGL_J1330.2+7002_daily_bin1703.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/304565/Model_4FGL_J1330.2+7002_daily_bin1703.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1330.2+7002'

4FGL J1330.2+7002
   Spectrum: PowerLaw
379    Prefactor:  5.366e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
380        Index:  1.967e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
381        Scale:  2.478e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/304565/ft1_filtered_4FGL_J1330.2+7002_daily_bin1703.fits
Spacecraft file(s): /scratch/kocevski/304565/ft2_4FGL_J1330.2+7002_daily_bin1703.fits
Exposure map: /scratch/kocevski/304565/expmap_680745601_681004801_4FGL_J1330.2+7002_daily_bin1703.fits
Exposure cube: /scratch/kocevski/304565/ltcube_680745601_681004801_4FGL_J1330.2+7002_daily_bin1703.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/304565/Model_4FGL_J1330.2+7002_daily_bin1703.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) = 12720.599001

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    35.466       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.3590       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .21780E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    .19420E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.799       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.2015       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.849       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .21120E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .16432E-02   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .85295       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1418       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12720.52     FROM MIGRAD    STATUS=CONVERGED    692 CALLS     3481 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.2498        .25444E-06** at limit **
   2  Prefactor     .10000E-03    1.0224        .51620E-07** at limit **
   3  Prefactor     .10000E-03    11.924        .14592E-06** at limit **
   4  Prefactor     35.451        30.781        .64131E-06    .26527E-04
   5  Prefactor     5.3539        15.142       -.84637E-06    .81224E-04
   6  Prefactor     .10000E-03    17.434       -.26068E-06** at limit **
   7  norm          .10000E-03    1.0226        .19728E-07** at limit **
   8  norm          .10000E-03    1.1580        .11905E-06** at limit **
   9  Prefactor     23.795        26.133        .15632E-07    .14191E-04
  10  Prefactor     .10000E-03    23.902        .14025E-05** at limit **
  11  Prefactor     4.1820        34.554       -.73831E-06    .43908E-04
  12  Prefactor     .10000E-03    8.3197       -.39618E-06** at limit **
  13  Prefactor     .10001E-03    1.5637        .16709E-05** at limit **
  14  Prefactor     .10000E-03    5.8262        .25796E-06** at limit **
  15  Prefactor     13.855        6.2891       -.13567E-05    .33169E-03
  16  Prefactor     .10000E-03    2.5988        .16805E-06** at limit **
  17  Prefactor     .10000E-03    4.7237        .20602E-07** at limit **
  18  Prefactor     .10000E-03    14.892       -.66028E-06** at limit **
  19  Prefactor     .10000E-03    107.96        .95584E-06** at limit **
  20  Prefactor     .10000E-03    10.262        .27451E-06** at limit **
  21  Prefactor     .10000E-03    3.5436        .28755E-07** at limit **
  22  Prefactor     .10002E-03    39.659        .72606E-05** at limit **
  23  Prefactor     .10000E-03    26.399        .63797E-06** at limit **
  24  Prefactor     .10000E-03    11.239        .33823E-06** at limit **
  25  Prefactor     .10000E-03    4.3081        .55273E-06** at limit **
  26  Prefactor     .10000E-03    34.810       -.51593E-06** at limit **
  27  Normalizat    .85293        .10928       -.18270E-06   -.11856E-03
  28  Prefactor     1.1419        .11510       -.36547E-06    .84339E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.4512
  Prefactor  = 5.35392
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 23.7948
  Prefactor  = 0.0001
  Prefactor  = 4.18196
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 13.8548
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.852928
  Prefactor  = 1.14194
 **********
 **   18 **HESSE 
 **********

 FCN=   12720.52     FROM HESSE     STATUS=OK           517 CALLS     3998 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.2942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.0398        .11136E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     35.451        30.810        .67293E-04   -1.4516    
   5  Prefactor     5.3539        15.149        .17360E-03   -1.5245    
   6  Prefactor     .10000E-03    17.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    14.441        .22071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.8837        .23431E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     23.795        26.133        .82111E-04   -1.4732    
  10  Prefactor     .10000E-03    23.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.1820        34.551        .19660E-03   -1.5299    
  12  Prefactor     .10000E-03    8.3363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    4.2579        .22339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.9141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.855        6.3068        .10763E-03   -1.4963    
  16  Prefactor     .10000E-03    2.6933        .35502E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.7574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    107.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.5488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10002E-03    43.810        .52057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    26.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    11.244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.3370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    36.470        .40795E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .85293        .12614        .23605E-03   -.98134    
  28  Prefactor     1.1419        .13199        .21937E-03   -.88137    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12928e-09
Minuit parameter uncertainties:
  1  2.38316e-06
  2  3.05706e-07
  3  1.95288e-05
  4  30.8243
  5  15.1598
  6  4.90281e-06
  7  2.39011e-05
  8  1.80612e-05
  9  26.1459
  10  5.84615e-05
  11  24.0597
  12  1.12483e-05
  13  0.000343655
  14  4.82567e-06
  15  6.30707
  16  2.57938e-06
  17  6.91358e-06
  18  1.10302e-05
  19  0.000110001
  20  8.45519e-06
  21  5.25154e-07
  22  0.0016234
  23  1.23848e-05
  24  1.06064e-05
  25  3.49781e-06
  26  0.000110331
  27  0.126183
  28  0.132028
Done.

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

Extracting fit parameters...

4FGL J1330.2+7002
   Spectrum: PowerLaw
379    Prefactor:  1.000e-04  1.125e-05  1.000e-04  1.000e+04 ( 1.000e-14)
380        Index:  1.967e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
381        Scale:  2.478e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
732    Prefactor:  1.142e+00  1.320e-01  0.000e+00  1.000e+01 ( 1.000e+00)
733        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
734        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
731   Normalization:  8.529e-01  1.262e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 202.573 70.041
Photon Flux Upper Limit: 2.07e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/304565/likelihoodResults_680745601_681004801_4FGL_J1330.2+7002_daily_bin1703.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) = 12720.5187321
delta logL = -0.000571603477511

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12720.5181608
delta logL = -3.8852704165e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9609       1.0000          .0000       10.000    
     3 'Normalizat'    .85303       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1418       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   12720.52     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.4988        .90712E-02** at limit **
   2  Index         1.9554        5.3084        .50000        .52108E-05
   3  Normalizat    .85293        .23488E-02    .44298E-01   -.29021E-04
   4  Prefactor     1.1419        .25002E-02    .36178E-01    .18796E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.95535
  Normalizat = 0.852928
  Prefactor  = 1.14194
 **********
 **   18 **HESSE 
 **********

 FCN=   12720.52     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      233 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    51.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9554        8.0597        .50000       -.65471    
   3  Normalizat    .85293        .66264E-02    .23605E-03   -.98134    
   4  Prefactor     1.1419        .70568E-02    .21937E-03   -.88137    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.7768e-08
Minuit parameter uncertainties:
  1  0.000309866
  2  162.009
  3  0.00662643
  4  0.00705685
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/304565': 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) = 12720.5181604
delta logL = 1.50394043885e-08

Extracting fit parameters...

4FGL J1330.2+7002
   Spectrum: PowerLaw
379    Prefactor:  1.000e-04  3.099e-04  1.000e-04  1.000e+04 ( 1.000e-14)
380        Index:  1.955e+00  1.620e+02  0.000e+00  1.000e+01 (-1.000e+00)
381        Scale:  2.478e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
732    Prefactor:  1.142e+00  7.057e-03  0.000e+00  1.000e+01 ( 1.000e+00)
733        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
734        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
731   Normalization:  8.529e-01  6.626e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 202.573 70.041

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/304565/cmap_HighResolution_680745601_681004801_4FGL_J1330.2+7002_daily_bin1703.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.55e-03', job_status='DONE', photon_flux_upper_limit='2.07e-08', time_completed='2022-08-01 01:32:47.357254', job_id='304565', GAL2='1.14', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1659342767.36', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='1.50e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='1703' AND source_name='4FGL J1330.2+7002' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug  1 01:32:47 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0166>
Subject: Job 304378: <4FGL_J1330.2+7002_daily_bin1703> in cluster <slac> Done

Job <4FGL_J1330.2+7002_daily_bin1703> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug  1 00:06:37 2022
Job was executed on host(s) <bullet0166>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug  1 01:02:22 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug  1 01:02:22 2022
Terminated at Mon Aug  1 01:30:30 2022
Results reported at Mon Aug  1 01:30:30 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.2+7002_daily_bin1703 202.573 70.0406 680745601 681004801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1330.2+7002 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1583.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             349.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1688 sec.
    Turnaround time :                            5033 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0248>
Subject: Job 304565: <4FGL_J1330.2+7002_daily_bin1703> in cluster <slac> Done

Job <4FGL_J1330.2+7002_daily_bin1703> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Aug  1 00:06:44 2022
Job was executed on host(s) <bullet0248>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug  1 01:04:40 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug  1 01:04:40 2022
Terminated at Mon Aug  1 01:32:47 2022
Results reported at Mon Aug  1 01:32:47 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.2+7002_daily_bin1703 202.573 70.0406 680745601 681004801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1330.2+7002 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1587.45 sec.
    Max Memory :                                 629 MB
    Average Memory :                             326.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2931 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   1687 sec.
    Turnaround time :                            5163 sec.

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

