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


Performing analysis on: 4FGL_J1330.2+7002_daily_bin1752
RA = 202.573, Dec = 70.0406
tmin = 693446401, tmax = 693705601
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='264909', job_status='RUN', time_executed='2022-12-26 01:02:33.400446', time_epoch_executed='1672045353.4' WHERE source_name='4FGL J1330.2+7002' and cadence='daily' and bin_id='1752'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/264909

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/264909/ft1_4FGL_J1330.2+7002_daily_bin1752.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/264909/ft2_4FGL_J1330.2+7002_daily_bin1752.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/264909/ft1_4FGL_J1330.2+7002_daily_bin1752.fits outfile=/scratch/kocevski/264909/ft1_filteredMKT_4FGL_J1330.2+7002_daily_bin1752.fits ra=202.573 dec=70.0406 rad=12.0 tmin=693446401.0 tmax=693705601.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.51
user 3.27
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/264909/ft2_4FGL_J1330.2+7002_daily_bin1752.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/264909/ft1_filteredMKT_4FGL_J1330.2+7002_daily_bin1752.fits evtable="EVENTS" outfile="/scratch/kocevski/264909/ft1_filtered_4FGL_J1330.2+7002_daily_bin1752.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.33
sys 0.17

Number of photons that the gtmktime cut: 583

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/264909/ft1_filtered_4FGL_J1330.2+7002_daily_bin1752.fits" evtable="EVENTS" scfile=/scratch/kocevski/264909/ft2_4FGL_J1330.2+7002_daily_bin1752.fits sctable="SC_DATA" outfile=/scratch/kocevski/264909/ltcube_693446401_693705601_4FGL_J1330.2+7002_daily_bin1752.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/264909/ft2_4FGL_J1330.2+7002_daily_bin1752.fits
.....................!
real 16.68
user 15.84
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/264909/ft1_filtered_4FGL_J1330.2+7002_daily_bin1752.fits evtable="EVENTS" scfile=/scratch/kocevski/264909/ft2_4FGL_J1330.2+7002_daily_bin1752.fits sctable="SC_DATA" expcube=/scratch/kocevski/264909/ltcube_693446401_693705601_4FGL_J1330.2+7002_daily_bin1752.fits outfile=/scratch/kocevski/264909/expmap_693446401_693705601_4FGL_J1330.2+7002_daily_bin1752.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/264909/ltcube_693446401_693705601_4FGL_J1330.2+7002_daily_bin1752.fits
.....................!
real 192.95
user 186.39
sys 5.36

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/264909/ft1_filtered_4FGL_J1330.2+7002_daily_bin1752.fits scfile=/scratch/kocevski/264909/ft2_4FGL_J1330.2+7002_daily_bin1752.fits outfile=/scratch/kocevski/264909/cmap_693446401_693705601_4FGL_J1330.2+7002_daily_bin1752.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/264909/ft1_filtered_4FGL_J1330.2+7002_daily_bin1752.fits scfile=/scratch/kocevski/264909/ft2_4FGL_J1330.2+7002_daily_bin1752.fits outfile=/scratch/kocevski/264909/cmap_HighResolution_693446401_693705601_4FGL_J1330.2+7002_daily_bin1752.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .78101E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    3.5774       1.0000          .0000       .10000E+07
     3 'Prefactor '    35.565       1.0000          .0000       .10000E+07
     4 'Prefactor '    .86956E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    .28398E-05   1.0000          .0000       .10000E+07
     6 'norm      '    .28943E-03   1.0000          .0000       .10000E+07
     7 'norm      '    3.4305       1.0000          .0000       .10000E+07
     8 'Prefactor '    .17953E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .73702E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .58898E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    5.7669       1.0000          .0000       .10000E+07
    12 'Prefactor '    .16859       1.0000          .0000       .10000E+07
    13 'Prefactor '    .12418E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    .41536E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    37.548       1.0000          .0000       .10000E+07
    16 'Prefactor '    .13834       1.0000          .0000       .10000E+07
    17 'Prefactor '    .79763E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    13.991       1.0000          .0000       .10000E+07
    19 'Prefactor '    .47256E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    10.051       1.0000          .0000       .10000E+07
    21 'Prefactor '    34.658       1.0000          .0000       .10000E+07
    22 'Normalizat'    1.4101       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .38476       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=   6326.878     FROM MIGRAD    STATUS=CONVERGED    145 CALLS     1495 TOTAL
                     EDM=   .55E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16653E-09    8.8075        .78010E-06** at limit **
   2  Prefactor     3.5785        2.9069       -.15456E-06   -.72106E-04
   3  Prefactor     35.585        1.1136        .17161E-07   -.18631E-02
   4  Prefactor     .29032E-07    7.4077        .15873E-05** at limit **
   5  Prefactor     .16653E-09    6.0230       -.82229E-07** at limit **
   6  norm          .55511E-10    12.343       -.13939E-06** at limit **
   7  norm          3.4312        2.3371       -.11588E-06    .13897E-02
   8  Prefactor     .30531E-07    8.5146        .14195E-05** at limit **
   9  Prefactor     .15260E-06    17.276        .40707E-06** at limit **
  10  Prefactor     .10547E-08    10.703       -.21973E-05** at limit **
  11  Prefactor     5.7637        1.0339       -.15993E-07   -.12203E-03
  12  Prefactor     .14406        33.510       -.30062E-06** at limit **
  13  Prefactor      .0000        5.2853       -.11544E-05** at limit **
  14  Prefactor      .0000        6.1635        .16813E-05** at limit **
  15  Prefactor     39.305        36.875        .11396E-05    .22488E-02
  16  Prefactor     .12310E-05    3.3671       -.23397E-07** at limit **
  17  Prefactor     .55511E-10    19.669        .42086E-06** at limit **
  18  Prefactor     13.996        1.3459        .75107E-07   -.35333E-02
  19  Prefactor     .14644E-06    16.195        .36692E-06** at limit **
  20  Prefactor     9.8361        6.8488       -.51016E-06    .10148E-01
  21  Prefactor     34.157        2.5766        .25624E-07   -.41035E-02
  22  Normalizat    1.4098        .16953       -.18634E-05   -.95552E-04
  23  Prefactor     .38472        .16333        .27408E-05   -.13589E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.66533e-10
  Prefactor  = 3.57854
  Prefactor  = 35.5845
  Prefactor  = 2.90323e-08
  Prefactor  = 1.66533e-10
  norm       = 5.55112e-11
  norm       = 3.43115
  Prefactor  = 3.05311e-08
  Prefactor  = 1.526e-07
  Prefactor  = 1.05471e-09
  Prefactor  = 5.76366
  Prefactor  = 0.144063
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 39.3046
  Prefactor  = 1.23102e-06
  Prefactor  = 5.55112e-11
  Prefactor  = 13.9956
  Prefactor  = 1.46438e-07
  Prefactor  = 9.83607
  Prefactor  = 34.1574
  Normalizat = 1.40985
  Prefactor  = 0.384716
 **********
 **   18 **HESSE 
 **********

 FCN=   6326.878     FROM HESSE     STATUS=OK           430 CALLS     1925 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16653E-09    8.8202        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.5785        2.9056        .53406E-03   -1.5670    
   3  Prefactor     35.585        29.213        .16770E-03   -1.5589    
   4  Prefactor     .29032E-07    15.887        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .16653E-09    6.0365        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .55511E-10    2.4110        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.4312        2.3303        .54587E-03   -1.5671    
   8  Prefactor     .30531E-07    15.357        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .15260E-06    33.976        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10547E-08    10.743        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.7637        17.753        .41801E-03   -1.5660    
  12  Prefactor     .14406        1.9995        .80876E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        5.2767        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        6.1710        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     39.305        37.577        .16321E-03   -1.5583    
  16  Prefactor     .12310E-05    36.846        .18012E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .55511E-10    20.017        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.996        18.384        .26752E-03   -1.5633    
  19  Prefactor     .14644E-06    33.301        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.8361        43.719        .31581E-03   -1.5645    
  21  Prefactor     34.157        27.842        .16988E-03   -1.5591    
  22  Normalizat    1.4098        .15654        .31079E-01   -.80344    
  23  Prefactor     .38472        .15104        .72339E-01   -1.1760    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.62719e-08
Minuit parameter uncertainties:
  1  7.90162e-05
  2  2.90558
  3  29.2128
  4  0.00135786
  5  6.24265e-05
  6  1.75811e-05
  7  2.33029
  8  0.00136916
  9  0.00455417
  10  0.000214073
  11  17.7533
  12  1.07342
  13  2.13384e-05
  14  8.49983e-06
  15  37.5771
  16  0.0134697
  17  6.57937e-05
  18  18.3846
  19  0.00441676
  20  41.4746
  21  27.8421
  22  0.156596
  23  0.151192
Done.

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

Extracting fit parameters...

4FGL J1330.2+7002
   Spectrum: PowerLaw
379    Prefactor:  5.764e+00  1.775e+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:  3.847e-01  1.512e-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.410e+00  1.566e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/264909/likelihoodResults_693446401_693705601_4FGL_J1330.2+7002_daily_bin1752.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) = 6326.8628114
delta logL = 0.0154549441313

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6326.85733503
delta logL = 0.0209313157175

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.0618       1.0000          .0000       .10000E+07
     2 'Index     '    1.7142       1.0000          .0000       10.000    
     3 'Normalizat'    1.4111       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .38366       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=   6326.857     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      264 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.0463        23.399        .14115E-04   -.46715E-04
   2  Index         1.7139        1.1755        .15258E-01    .12435E-03
   3  Normalizat    1.4110        .16658        .18208E-03    .10668E-03
   4  Prefactor     .38373        .16205        .32071E-03   -.66608E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.04634
  Index      = 1.71388
  Normalizat = 1.41101
  Prefactor  = 0.383731
 **********
 **   18 **HESSE 
 **********

 FCN=   6326.857     FROM HESSE     STATUS=OK            25 CALLS      289 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.0463        22.882        .56460E-06   -1.5651    
   2  Index         1.7139        1.1515        .30516E-02   -.71713    
   3  Normalizat    1.4110        .16663        .36415E-04   -.80311    
   4  Prefactor     .38373        .16210        .12828E-04   -1.1765    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08452e-10
Minuit parameter uncertainties:
  1  22.8824
  2  1.17025
  3  0.166694
  4  0.162297
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/264909': 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) = 6326.85733456
delta logL = 0.020931785195

Extracting fit parameters...

4FGL J1330.2+7002
   Spectrum: PowerLaw
379    Prefactor:  8.046e+00  2.288e+01  0.000e+00  1.000e+06 ( 1.000e-14)
380        Index:  1.714e+00  1.170e+00  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:  3.837e-01  1.623e-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.411e+00  1.667e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.13
Ra Dec: 202.573 70.041

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/264909/cmap_HighResolution_693446401_693705601_4FGL_J1330.2+7002_daily_bin1752.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.86e-03', job_status='DONE', photon_flux_upper_limit='3.82e-08', time_completed='2022-12-26 01:14:26.836988', job_id='264909', GAL2='0.38', fit_tolerance='1e-08', EG2='1.41', EG='1.41', time_epoch_completed='1672046066.84', return_code2='0', ts='0.13', comment='SUCCESS', return_code='0', GAL='0.38', dlogl='2.09e-02', ts2='0.18', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='1752' AND source_name='4FGL J1330.2+7002' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec 26 01:14:26 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 264909: <4FGL_J1330.2+7002_daily_bin1752> in cluster <slac> Done

Job <4FGL_J1330.2+7002_daily_bin1752> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Mon Dec 26 01:00:18 2022
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec 26 01:00:29 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec 26 01:00:29 2022
Terminated at Mon Dec 26 01:14:27 2022
Results reported at Mon Dec 26 01:14:27 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.2+7002_daily_bin1752 202.573 70.0406 693446401 693705601 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 :                                   714.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             310.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            849 sec.

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

