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


Performing analysis on: 4FGL_J1330.2+7002_daily_bin1769
RA = 202.573, Dec = 70.0406
tmin = 697852801, tmax = 698112001
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='435842', job_status='RUN', time_executed='2023-02-15 00:52:53.757277', time_epoch_executed='1676451173.76' WHERE source_name='4FGL J1330.2+7002' and cadence='daily' and bin_id='1769'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/435842

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/435842/ft1_4FGL_J1330.2+7002_daily_bin1769.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/435842/ft2_4FGL_J1330.2+7002_daily_bin1769.fits


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

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

Done.
real 4.38
user 4.18
sys 0.18

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

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

Number of photons that the gtmktime cut: 627

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/435842/ft1_filtered_4FGL_J1330.2+7002_daily_bin1769.fits" evtable="EVENTS" scfile=/scratch/kocevski/435842/ft2_4FGL_J1330.2+7002_daily_bin1769.fits sctable="SC_DATA" outfile=/scratch/kocevski/435842/ltcube_697852801_698112001_4FGL_J1330.2+7002_daily_bin1769.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/435842/ft2_4FGL_J1330.2+7002_daily_bin1769.fits
.....................!
real 12.09
user 11.75
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/435842/ft1_filtered_4FGL_J1330.2+7002_daily_bin1769.fits evtable="EVENTS" scfile=/scratch/kocevski/435842/ft2_4FGL_J1330.2+7002_daily_bin1769.fits sctable="SC_DATA" expcube=/scratch/kocevski/435842/ltcube_697852801_698112001_4FGL_J1330.2+7002_daily_bin1769.fits outfile=/scratch/kocevski/435842/expmap_697852801_698112001_4FGL_J1330.2+7002_daily_bin1769.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/435842/ltcube_697852801_698112001_4FGL_J1330.2+7002_daily_bin1769.fits
.....................!
real 189.99
user 185.42
sys 3.85

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/435842/ft1_filtered_4FGL_J1330.2+7002_daily_bin1769.fits scfile=/scratch/kocevski/435842/ft2_4FGL_J1330.2+7002_daily_bin1769.fits outfile=/scratch/kocevski/435842/cmap_697852801_698112001_4FGL_J1330.2+7002_daily_bin1769.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/435842/ft1_filtered_4FGL_J1330.2+7002_daily_bin1769.fits scfile=/scratch/kocevski/435842/ft2_4FGL_J1330.2+7002_daily_bin1769.fits outfile=/scratch/kocevski/435842/cmap_HighResolution_697852801_698112001_4FGL_J1330.2+7002_daily_bin1769.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.54
user 0.40
sys 0.13

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/435842/ft1_filtered_4FGL_J1330.2+7002_daily_bin1769.fits', '/scratch/kocevski/435842/ft2_4FGL_J1330.2+7002_daily_bin1769.fits', expMap='/scratch/kocevski/435842/expmap_697852801_698112001_4FGL_J1330.2+7002_daily_bin1769.fits', expCube='/scratch/kocevski/435842/ltcube_697852801_698112001_4FGL_J1330.2+7002_daily_bin1769.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/435842/Model_4FGL_J1330.2+7002_daily_bin1769.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  0.000e+00  1.000e+06 ( 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/435842/ft1_filtered_4FGL_J1330.2+7002_daily_bin1769.fits
Spacecraft file(s): /scratch/kocevski/435842/ft2_4FGL_J1330.2+7002_daily_bin1769.fits
Exposure map: /scratch/kocevski/435842/expmap_697852801_698112001_4FGL_J1330.2+7002_daily_bin1769.fits
Exposure cube: /scratch/kocevski/435842/ltcube_697852801_698112001_4FGL_J1330.2+7002_daily_bin1769.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/435842/Model_4FGL_J1330.2+7002_daily_bin1769.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) = 6808.7050063

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    43.110       1.0000          .0000       .10000E+07
     2 'Prefactor '    1.9387       1.0000          .0000       .10000E+07
     3 'Prefactor '    .24596E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .53033E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .48873E-02   1.0000          .0000       .10000E+07
     6 'norm      '    .10969E-06   1.0000          .0000       .10000E+07
     7 'norm      '    .11940E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    .35540E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .48780E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    45.148       1.0000          .0000       .10000E+07
    11 'Prefactor '    47.362       1.0000          .0000       .10000E+07
    12 'Prefactor '    .14311E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .13097E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .49020E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    .30449E-01   1.0000          .0000       .10000E+07
    16 'Prefactor '    .12858E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .27597E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .72692E-06   1.0000          .0000       .10000E+07
    19 'Prefactor '    .13744E-01   1.0000          .0000       .10000E+07
    20 'Prefactor '    .64995E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    39.338       1.0000          .0000       .10000E+07
    22 'Normalizat'    1.1047       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .75222       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6808.691     FROM MIGRAD    STATUS=CONVERGED    142 CALLS     1804 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     43.091        1.1854       -.30620E-08   -.73215E-02
   2  Prefactor     1.9380        2.0511       -.12906E-06   -.10783E-02
   3  Prefactor      .0000        7.7437       -.76268E-06** at limit **
   4  Prefactor     .84566E-06    7.4074        .17034E-07** at limit **
   5  Prefactor     .71295E-05    13.382       -.73720E-06** at limit **
   6  norm           .0000        1.8166        .90792E-07** at limit **
   7  norm           .0000        1.1401       -.38044E-07** at limit **
   8  Prefactor     .12608E-05    9.9711        .88548E-07** at limit **
   9  Prefactor      .0000        40.126        .11200E-06** at limit **
  10  Prefactor     44.706        4.3032        .93308E-07   -.66562E-01
  11  Prefactor     46.858        8.1959       -.27747E-07    .82945E-01
  12  Prefactor      .0000        4.2872       -.55859E-07** at limit **
  13  Prefactor     .47195E-05    89.272        .12019E-05** at limit **
  14  Prefactor     .88640E-06    6.4856        .41139E-07** at limit **
  15  Prefactor     .33307E-09    45.025        .59121E-06** at limit **
  16  Prefactor     .73290E-05    18.085        .28273E-06** at limit **
  17  Prefactor     .20373E-07    11.034        .40681E-06** at limit **
  18  Prefactor     .22993E-05    6.6111        .12127E-06** at limit **
  19  Prefactor     .11586E-04    22.254        .17705E-05** at limit **
  20  Prefactor     .34894E-06    12.708        .11716E-05** at limit **
  21  Prefactor     39.263        1.2052        .20003E-07   -.17941E-02
  22  Normalizat    1.1051        .15889        .10774E-04    .21170E-03
  23  Prefactor     .75223        .16243       -.45827E-05    .17448E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 43.0906
  Prefactor  = 1.93795
  Prefactor  = 0
  Prefactor  = 8.45657e-07
  Prefactor  = 7.12946e-06
  norm       = 0
  norm       = 0
  Prefactor  = 1.26077e-06
  Prefactor  = 0
  Prefactor  = 44.7063
  Prefactor  = 46.8579
  Prefactor  = 0
  Prefactor  = 4.7195e-06
  Prefactor  = 8.86402e-07
  Prefactor  = 3.33067e-10
  Prefactor  = 7.32897e-06
  Prefactor  = 2.03726e-08
  Prefactor  = 2.29927e-06
  Prefactor  = 1.15858e-05
  Prefactor  = 3.48943e-07
  Prefactor  = 39.2632
  Normalizat = 1.10512
  Prefactor  = 0.752232
 **********
 **   18 **HESSE 
 **********

 FCN=   6808.691     FROM HESSE     STATUS=OK           400 CALLS     2204 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     43.091        20.742        .15232E-03   -1.5577    
   2  Prefactor     1.9380        2.0478        .74540E-03   -1.5680    
   3  Prefactor      .0000        7.7617        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .84566E-06    17.362        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .71295E-05    20.492        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        1.8155        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm           .0000        1.1384        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .12608E-05    12.544        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        40.088        .15589E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     44.706        34.973        .14884E-03   -1.5574    
  11  Prefactor     46.858        32.652        .14532E-03   -1.5571    
  12  Prefactor      .0000        4.2646        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .47195E-05    93.508        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .88640E-06    17.493        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .33307E-09    44.595        .16427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .73290E-05    31.912        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .20373E-07    14.768        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .22993E-05    13.015        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .11586E-04    39.185        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .34894E-06    35.949        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     39.263        27.010        .15945E-03   -1.5583    
  22  Normalizat    1.1051        .13916        .37811E-01   -.89587    
  23  Prefactor     .75223        .14180        .43092E-01   -1.0151    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57313e-06
Minuit parameter uncertainties:
  1  20.7424
  2  2.04776
  3  1.22912e-05
  4  0.00766351
  5  0.0241744
  6  4.64873e-06
  7  2.2735e-06
  8  0.00795368
  9  1.27323e-06
  10  34.9729
  11  32.6517
  12  1.7689e-05
  13  0.0420157
  14  0.00787553
  15  0.000245129
  16  0.0305863
  17  0.0010967
  18  0.0109407
  19  0.0426144
  20  0.00708376
  21  27.0101
  22  0.139204
  23  0.14187
Done.

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

Extracting fit parameters...

4FGL J1330.2+7002
   Spectrum: PowerLaw
379    Prefactor:  4.686e+01  3.265e+01  0.000e+00  1.000e+06 ( 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:  7.522e-01  1.419e-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:  1.105e+00  1.392e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.06
Ra Dec: 202.573 70.041
Photon Index (Fixed Index): 1.97 +/- 0.00
Photon Flux (Fixed Index): 2.67e-08 +/- 1.86e-08
Energy Flux (Fixed Index): 2.01e-05 +/- 1.40e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6808.69089942
delta logL = 2.81368829746e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6808.69089806
delta logL = 4.17241517425e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    46.915       1.0000          .0000       .10000E+07
     2 'Index     '    1.9649       1.0000          .0000       10.000    
     3 'Normalizat'    1.1052       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75225       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6808.691     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      258 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     46.917        43.184        .58403E-05   -.11481E-02
   2  Index         1.9650        .59246        .72729E-02   -.23443E-04
   3  Normalizat    1.1052        .16173        .20356E-03   -.50990E-04
   4  Prefactor     .75219        .16332        .24658E-03   -.27386E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 46.9166
  Index      = 1.96495
  Normalizat = 1.1052
  Prefactor  = 0.752189
 **********
 **   18 **HESSE 
 **********

 FCN=   6808.691     FROM HESSE     STATUS=OK            25 CALLS      283 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     46.917        41.101        .11681E-05   -1.5571    
   2  Index         1.9650        .56347        .29092E-03   -.65229    
   3  Normalizat    1.1052        .16156        .81425E-05   -.89585    
   4  Prefactor     .75219        .16334        .98633E-05   -1.0152    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.25188e-11
Minuit parameter uncertainties:
  1  41.1014
  2  0.565377
  3  0.161636
  4  0.163448
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/435842': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6808.69089799
delta logL = 4.24154313805e-06

Extracting fit parameters...

4FGL J1330.2+7002
   Spectrum: PowerLaw
379    Prefactor:  4.692e+01  4.110e+01  0.000e+00  1.000e+06 ( 1.000e-14)
380        Index:  1.965e+00  5.654e-01  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:  7.522e-01  1.634e-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:  1.105e+00  1.616e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.06
Ra Dec: 202.573 70.041
Photon Index (Free Index): 1.96 +/- 0.57
Photon Flux (Free Index): 2.67e-08 +/- 2.64e-08
Energy Flux (Free Index): 2.01e-05 +/- 2.06e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/435842/cmap_HighResolution_697852801_698112001_4FGL_J1330.2+7002_daily_bin1769.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.67e-08', energy_flux2='2.01e-05', photon_flux_error='1.86e-08', dlogl='4.24e-06', energy_flux='2.01e-05', photon_flux2='2.67e-08', job_status='DONE', time_completed='2023-02-15 01:03:52.395071', photon_index_error2='0.57', photon_index2='1.96', ts='4.06', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', energy_flux_error2='2.06e-05', EG='1.11', time_epoch_completed='1676451832.4', return_code='0', job_id='435842', GAL2='0.75', EG2='1.11', return_code2='0', energy_flux_error='1.40e-05', photon_flux_error2='2.64e-08', ts2='4.06', photon_index='1.97' WHERE bin_id='1769' AND source_name='4FGL J1330.2+7002' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Feb 15 01:03:52 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 435842: <4FGL_J1330.2+7002_daily_bin1769> in cluster <slac> Done

Job <4FGL_J1330.2+7002_daily_bin1769> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Feb 15 00:50:20 2023
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Feb 15 00:50:21 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Feb 15 00:50:21 2023
Terminated at Wed Feb 15 01:03:53 2023
Results reported at Wed Feb 15 01:03:53 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.2+7002_daily_bin1769 202.573 70.0406 697852801 698112001 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 :                                   660.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             317.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            813 sec.

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

