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


Performing analysis on: 4FGL_J1330.2+7002_daily_bin1776
RA = 202.573, Dec = 70.0406
tmin = 699667201, tmax = 699926401
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='833865', job_status='RUN', time_executed='2023-03-08 00:41:11.802867', time_epoch_executed='1678264871.8' WHERE source_name='4FGL J1330.2+7002' and cadence='daily' and bin_id='1776'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/833865

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/833865/ft1_4FGL_J1330.2+7002_daily_bin1776.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/833865/ft2_4FGL_J1330.2+7002_daily_bin1776.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/833865/ft1_4FGL_J1330.2+7002_daily_bin1776.fits outfile=/scratch/kocevski/833865/ft1_filteredMKT_4FGL_J1330.2+7002_daily_bin1776.fits ra=202.573 dec=70.0406 rad=12.0 tmin=699667201.0 tmax=699926401.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.93
user 3.71
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/833865/ft2_4FGL_J1330.2+7002_daily_bin1776.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/833865/ft1_filteredMKT_4FGL_J1330.2+7002_daily_bin1776.fits evtable="EVENTS" outfile="/scratch/kocevski/833865/ft1_filtered_4FGL_J1330.2+7002_daily_bin1776.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.50
user 0.34
sys 0.14

Number of photons that the gtmktime cut: 681

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/833865/ft1_filtered_4FGL_J1330.2+7002_daily_bin1776.fits evtable="EVENTS" scfile=/scratch/kocevski/833865/ft2_4FGL_J1330.2+7002_daily_bin1776.fits sctable="SC_DATA" expcube=/scratch/kocevski/833865/ltcube_699667201_699926401_4FGL_J1330.2+7002_daily_bin1776.fits outfile=/scratch/kocevski/833865/expmap_699667201_699926401_4FGL_J1330.2+7002_daily_bin1776.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/833865/ltcube_699667201_699926401_4FGL_J1330.2+7002_daily_bin1776.fits
.....................!
real 190.96
user 186.41
sys 4.11

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/833865/ft1_filtered_4FGL_J1330.2+7002_daily_bin1776.fits scfile=/scratch/kocevski/833865/ft2_4FGL_J1330.2+7002_daily_bin1776.fits outfile=/scratch/kocevski/833865/cmap_699667201_699926401_4FGL_J1330.2+7002_daily_bin1776.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/833865/ft1_filtered_4FGL_J1330.2+7002_daily_bin1776.fits scfile=/scratch/kocevski/833865/ft2_4FGL_J1330.2+7002_daily_bin1776.fits outfile=/scratch/kocevski/833865/cmap_HighResolution_699667201_699926401_4FGL_J1330.2+7002_daily_bin1776.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.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/833865/ft1_filtered_4FGL_J1330.2+7002_daily_bin1776.fits', '/scratch/kocevski/833865/ft2_4FGL_J1330.2+7002_daily_bin1776.fits', expMap='/scratch/kocevski/833865/expmap_699667201_699926401_4FGL_J1330.2+7002_daily_bin1776.fits', expCube='/scratch/kocevski/833865/ltcube_699667201_699926401_4FGL_J1330.2+7002_daily_bin1776.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/833865/Model_4FGL_J1330.2+7002_daily_bin1776.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/833865/ft1_filtered_4FGL_J1330.2+7002_daily_bin1776.fits
Spacecraft file(s): /scratch/kocevski/833865/ft2_4FGL_J1330.2+7002_daily_bin1776.fits
Exposure map: /scratch/kocevski/833865/expmap_699667201_699926401_4FGL_J1330.2+7002_daily_bin1776.fits
Exposure cube: /scratch/kocevski/833865/ltcube_699667201_699926401_4FGL_J1330.2+7002_daily_bin1776.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/833865/Model_4FGL_J1330.2+7002_daily_bin1776.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) = 7405.14262328

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13765E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .12046E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    16.594       1.0000          .0000       .10000E+07
     4 'Prefactor '    34.316       1.0000          .0000       .10000E+07
     5 'Prefactor '    6.8239       1.0000          .0000       .10000E+07
     6 'norm      '    .71332E-07   1.0000          .0000       .10000E+07
     7 'norm      '    .27208E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    .82183E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    31.286       1.0000          .0000       .10000E+07
    10 'Prefactor '    15.685       1.0000          .0000       .10000E+07
    11 'Prefactor '    20.749       1.0000          .0000       .10000E+07
    12 'Prefactor '    .30503E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    9.3676       1.0000          .0000       .10000E+07
    14 'Prefactor '    .80934E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    31.084       1.0000          .0000       .10000E+07
    16 'Prefactor '    .20999E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .47913E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    36.791       1.0000          .0000       .10000E+07
    19 'Prefactor '    .38743E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .55619E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    .71509E-01   1.0000          .0000       .10000E+07
    22 'Normalizat'    1.0345       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .95251       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=   7405.139     FROM MIGRAD    STATUS=CONVERGED    107 CALLS     1884 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .44409E-09    4.7281        .84870E-08** at limit **
   2  Prefactor      .0000        .96077        .46055E-07** at limit **
   3  Prefactor     16.109        31.297       -.13036E-06    .65285E-01
   4  Prefactor     34.003        16.693       -.35342E-07   -.34503E-01
   5  Prefactor     6.8914        6.9962        .78434E-07    .32622E-03
   6  norm           .0000        1.0179        .62868E-07** at limit **
   7  norm          .89588E-02    1.9663        .46978E-08** at limit **
   8  Prefactor     .26379E-06    13.980       -.15350E-06** at limit **
   9  Prefactor     31.295        5.7845        .21430E-07   -.39960E-01
  10  Prefactor     15.585        1.4630        .22968E-08   -.31763E-02
  11  Prefactor     20.818        1.2643       -.50587E-08   -.18269E-01
  12  Prefactor     .27495E-06    3.7319        .91746E-07** at limit **
  13  Prefactor     9.3390        2.6466        .76428E-08   -.71836E-01
  14  Prefactor     .14038E-04    16.738        .66563E-06** at limit **
  15  Prefactor     31.012        1.2550        .99832E-09    .77466E-02
  16  Prefactor     .72270E-06    15.918        .33992E-07** at limit **
  17  Prefactor     .55511E-10    6.3629        .37587E-06** at limit **
  18  Prefactor     36.877        2.1441       -.42106E-08   -.14836E-01
  19  Prefactor     .89151E-07    6.7599       -.12049E-08** at limit **
  20  Prefactor     .10089E-04    14.825        .75665E-06** at limit **
  21  Prefactor      .0000        35.395       -.40904E-07** at limit **
  22  Normalizat    1.0345        .15994       -.84598E-06   -.33886E-03
  23  Prefactor     .95282        .16717       -.53060E-05   -.36439E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.44089e-10
  Prefactor  = 0
  Prefactor  = 16.1087
  Prefactor  = 34.0025
  Prefactor  = 6.89138
  norm       = 0
  norm       = 0.0089588
  Prefactor  = 2.63789e-07
  Prefactor  = 31.2948
  Prefactor  = 15.5854
  Prefactor  = 20.8184
  Prefactor  = 2.74947e-07
  Prefactor  = 9.33896
  Prefactor  = 1.40376e-05
  Prefactor  = 31.0121
  Prefactor  = 7.227e-07
  Prefactor  = 5.55112e-11
  Prefactor  = 36.8775
  Prefactor  = 8.91509e-08
  Prefactor  = 1.00885e-05
  Prefactor  = 0
  Normalizat = 1.03451
  Prefactor  = 0.952816
 **********
 **   18 **HESSE 
 **********

 FCN=   7405.139     FROM HESSE     STATUS=OK           420 CALLS     2304 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .44409E-09    4.7984        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        .96305        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.109        40.712        .24560E-03   -1.5628    
   4  Prefactor     34.003        35.722        .17073E-03   -1.5591    
   5  Prefactor     6.8914        22.578        .38385E-03   -1.5655    
   6  norm           .0000        1.0188        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .89588E-02    1.2664        .62733E-02   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .26379E-06    14.408        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     31.295        52.300        .17881E-03   -1.5596    
  10  Prefactor     15.585        32.739        .25263E-03   -1.5629    
  11  Prefactor     20.818        26.059        .21960E-03   -1.5617    
  12  Prefactor     .27495E-06    10.976        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.3390        14.425        .32720E-03   -1.5647    
  14  Prefactor     .14038E-04    28.372        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     31.012        44.912        .17939E-03   -1.5597    
  16  Prefactor     .72270E-06    17.250        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .55511E-10    6.5450        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     36.877        26.723        .16488E-03   -1.5587    
  19  Prefactor     .89151E-07    9.2745        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10089E-04    23.390        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor      .0000        35.008        .14769E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0345        .14488        .41745E-01   -.91883    
  23  Prefactor     .95282        .14756        .45671E-01   -.94319    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70628e-06
Minuit parameter uncertainties:
  1  9.09581e-05
  2  1.61695e-06
  3  40.7122
  4  35.7224
  5  22.5786
  6  2.75719e-07
  7  0.213028
  8  0.00389925
  9  52.301
  10  32.739
  11  26.0587
  12  0.00347439
  13  14.4253
  14  0.0399141
  15  44.9121
  16  0.00706177
  17  3.57212e-05
  18  26.7226
  19  0.00181836
  20  0.0307228
  21  5.50158e-05
  22  0.144938
  23  0.147624
Done.

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

Extracting fit parameters...

4FGL J1330.2+7002
   Spectrum: PowerLaw
379    Prefactor:  2.082e+01  2.606e+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:  9.528e-01  1.476e-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.035e+00  1.449e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.29
Ra Dec: 202.573 70.041
Photon Index (Fixed Index): 1.97 +/- 0.00
Photon Flux (Fixed Index): 1.19e-08 +/- 1.49e-08
Energy Flux (Fixed Index): 8.92e-06 +/- 1.12e-05

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

Saving results to:
/scratch/kocevski/833865/likelihoodResults_699667201_699926401_4FGL_J1330.2+7002_daily_bin1776.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7405.13656199
delta logL = 0.00288586268744

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7405.13479638
delta logL = 0.0046514759224

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.032       1.0000          .0000       .10000E+07
     2 'Index     '    2.0486       1.0000          .0000       10.000    
     3 'Normalizat'    1.0333       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95346       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=   7405.135     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      276 TOTAL
                     EDM=   .93E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.030        33.005        .91723E-05    .14219E-02
   2  Index         2.0489        .94079        .10082E-01    .44354E-04
   3  Normalizat    1.0331        .16074        .22234E-03   -.15146E-03
   4  Prefactor     .95365        .16750        .24016E-03   -.16492E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.0303
  Index      = 2.04885
  Normalizat = 1.0331
  Prefactor  = 0.953649
 **********
 **   18 **HESSE 
 **********

 FCN=   7405.135     FROM HESSE     STATUS=OK            25 CALLS      301 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.030        30.225        .18345E-05   -1.5621    
   2  Index         2.0489        .86281        .40330E-03   -.63134    
   3  Normalizat    1.0331        .16067        .88935E-05   -.91930    
   4  Prefactor     .95365        .16755        .96065E-05   -.94291    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.45887e-11
Minuit parameter uncertainties:
  1  30.2253
  2  0.869525
  3  0.160743
  4  0.167639
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/833865': 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) = 7405.13479565
delta logL = 0.00465220277965

Extracting fit parameters...

4FGL J1330.2+7002
   Spectrum: PowerLaw
379    Prefactor:  1.903e+01  3.023e+01  0.000e+00  1.000e+06 ( 1.000e-14)
380        Index:  2.049e+00  8.695e-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:  9.536e-01  1.676e-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.033e+00  1.607e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.30
Ra Dec: 202.573 70.041
Photon Index (Free Index): 2.05 +/- 0.87
Photon Flux (Free Index): 1.30e-08 +/- 1.97e-08
Energy Flux (Free Index): 8.01e-06 +/- 1.30e-05

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/833865/cmap_HighResolution_699667201_699926401_4FGL_J1330.2+7002_daily_bin1776.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.90e-03', comment='SUCCESS', photon_flux='1.19e-08', energy_flux2='8.01e-06', photon_flux_error='1.49e-08', dlogl='4.65e-03', energy_flux='8.92e-06', photon_flux2='1.30e-08', job_status='DONE', time_completed='2023-03-08 00:54:40.341409', photon_index_error2='0.87', photon_index2='2.05', ts='1.29', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='5.22e-08', energy_flux_error2='1.30e-05', EG='1.03', time_epoch_completed='1678265680.34', return_code='0', job_id='833865', GAL2='0.95', EG2='1.03', return_code2='0', energy_flux_error='1.12e-05', photon_flux_error2='1.97e-08', ts2='1.30', photon_index='1.97' WHERE bin_id='1776' AND source_name='4FGL J1330.2+7002' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Mar  8 00:54:40 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 833865: <4FGL_J1330.2+7002_daily_bin1776> in cluster <slac> Done

Job <4FGL_J1330.2+7002_daily_bin1776> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Mar  8 00:40:21 2023
Job was executed on host(s) <bullet0125>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Mar  8 00:40:22 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Mar  8 00:40:22 2023
Terminated at Wed Mar  8 00:54:40 2023
Results reported at Wed Mar  8 00:54:40 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.2+7002_daily_bin1776 202.573 70.0406 699667201 699926401 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 :                                   810.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             304.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   858 sec.
    Turnaround time :                            859 sec.

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

