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 142 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.7+2933_daily_bin1776
RA = 202.693, Dec = 29.5536
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='833868', job_status='RUN', time_executed='2023-03-08 00:42:54.291680', time_epoch_executed='1678264974.29' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='1776'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/833868

Creating custom pfile directory:
/scratch/kocevski/833868/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/833868/ft1_4FGL_J1330.7+2933_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/833868/ft2_4FGL_J1330.7+2933_daily_bin1776.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/833868/ft1_4FGL_J1330.7+2933_daily_bin1776.fits outfile=/scratch/kocevski/833868/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1776.fits ra=202.693 dec=29.5536 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.90
user 3.65
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/833868/ft2_4FGL_J1330.7+2933_daily_bin1776.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/833868/ft2_4FGL_J1330.7+2933_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/833868/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1776.fits evtable="EVENTS" outfile="/scratch/kocevski/833868/ft1_filtered_4FGL_J1330.7+2933_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.52
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 533

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/833868/ft1_filtered_4FGL_J1330.7+2933_daily_bin1776.fits" evtable="EVENTS" scfile=/scratch/kocevski/833868/ft2_4FGL_J1330.7+2933_daily_bin1776.fits sctable="SC_DATA" outfile=/scratch/kocevski/833868/ltcube_699667201_699926401_4FGL_J1330.7+2933_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/833868/ft2_4FGL_J1330.7+2933_daily_bin1776.fits
.....................!
real 12.01
user 11.64
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/833868/ft1_filtered_4FGL_J1330.7+2933_daily_bin1776.fits evtable="EVENTS" scfile=/scratch/kocevski/833868/ft2_4FGL_J1330.7+2933_daily_bin1776.fits sctable="SC_DATA" expcube=/scratch/kocevski/833868/ltcube_699667201_699926401_4FGL_J1330.7+2933_daily_bin1776.fits outfile=/scratch/kocevski/833868/expmap_699667201_699926401_4FGL_J1330.7+2933_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/833868/ltcube_699667201_699926401_4FGL_J1330.7+2933_daily_bin1776.fits
.....................!
real 190.71
user 184.77
sys 5.52

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

Setting source of interest to:
4FGL J1330.7+2933 @ 202.693 29.5536

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/833868/ft1_filtered_4FGL_J1330.7+2933_daily_bin1776.fits scfile=/scratch/kocevski/833868/ft2_4FGL_J1330.7+2933_daily_bin1776.fits outfile=/scratch/kocevski/833868/cmap_699667201_699926401_4FGL_J1330.7+2933_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.693 yref=29.5536 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/833868/ft1_filtered_4FGL_J1330.7+2933_daily_bin1776.fits scfile=/scratch/kocevski/833868/ft2_4FGL_J1330.7+2933_daily_bin1776.fits outfile=/scratch/kocevski/833868/cmap_HighResolution_699667201_699926401_4FGL_J1330.7+2933_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.693 yref=29.5536 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/833868/ft1_filtered_4FGL_J1330.7+2933_daily_bin1776.fits evtable="EVENTS" scfile=/scratch/kocevski/833868/ft2_4FGL_J1330.7+2933_daily_bin1776.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/833868/Model_4FGL_J1330.7+2933_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/833868/ft1_filtered_4FGL_J1330.7+2933_daily_bin1776.fits.....................!
real 49.73
user 48.29
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/833868/ft1_filtered_4FGL_J1330.7+2933_daily_bin1776.fits', '/scratch/kocevski/833868/ft2_4FGL_J1330.7+2933_daily_bin1776.fits', expMap='/scratch/kocevski/833868/expmap_699667201_699926401_4FGL_J1330.7+2933_daily_bin1776.fits', expCube='/scratch/kocevski/833868/ltcube_699667201_699926401_4FGL_J1330.7+2933_daily_bin1776.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/833868/Model_4FGL_J1330.7+2933_daily_bin1776.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1330.7+2933'

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  2.755e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
306        Index:  2.449e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
307        Scale:  1.041e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/833868/ft1_filtered_4FGL_J1330.7+2933_daily_bin1776.fits
Spacecraft file(s): /scratch/kocevski/833868/ft2_4FGL_J1330.7+2933_daily_bin1776.fits
Exposure map: /scratch/kocevski/833868/expmap_699667201_699926401_4FGL_J1330.7+2933_daily_bin1776.fits
Exposure cube: /scratch/kocevski/833868/ltcube_699667201_699926401_4FGL_J1330.7+2933_daily_bin1776.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/833868/Model_4FGL_J1330.7+2933_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) = 5886.82745299

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18082E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .60098E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .84684E-03   1.0000          .0000       .10000E+07
     4 'norm      '    2.4289       1.0000          .0000       .10000E+07
     5 'Prefactor '    25.122       1.0000          .0000       .10000E+07
     6 'norm      '    3.7072       1.0000          .0000       .10000E+07
     7 'Prefactor '    .13592       1.0000          .0000       .10000E+07
     8 'norm      '    .12287E-02   1.0000          .0000       .10000E+07
     9 'norm      '    13.270       1.0000          .0000       .10000E+07
    10 'norm      '    5.7877       1.0000          .0000       .10000E+07
    11 'norm      '    .70370       1.0000          .0000       .10000E+07
    12 'Prefactor '    .27633E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    .22899E-02   1.0000          .0000       .10000E+07
    14 'norm      '    10.981       1.0000          .0000       .10000E+07
    15 'Prefactor '    1.4946       1.0000          .0000       .10000E+07
    16 'norm      '    .75411E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    30.848       1.0000          .0000       .10000E+07
    18 'Prefactor '    .41137E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    .27247E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    .23369E-02   1.0000          .0000       .10000E+07
    21 'norm      '    4.5024       1.0000          .0000       .10000E+07
    22 'Prefactor '    22.369       1.0000          .0000       .10000E+07
    23 'Normalizat'    1.3665       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .52765       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5480E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5886.817     FROM MIGRAD    STATUS=CONVERGED    196 CALLS     2039 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .28477E-07    9.3317        .18374E-07** at limit **
   2  Prefactor      .0000        2.5605        .20066E-07** at limit **
   3  Prefactor      .0000        4.7778        .27908E-07** at limit **
   4  norm          2.4321        4.6115       -.10773E-07   -.25723E-02
   5  Prefactor     25.003        6.9115       -.60706E-07    .99217E-01
   6  norm          3.7089        3.2395        .48039E-08    .18636E-03
   7  Prefactor     .27811E-07    36.151       -.25985E-06** at limit **
   8  norm          .55511E-10    3.7020        .71166E-07** at limit **
   9  norm          13.299        6.4432       -.12418E-07   -.65081E-02
  10  norm          5.8024        9.4241        .14388E-07    .45194E-02
  11  norm          .42982        255.38       -.79027E-06   -.46111E-02
  12  Prefactor      .0000        1.3159        .67564E-07** at limit **
  13  Prefactor     .35971E-07    8.3641       -.91423E-08** at limit **
  14  norm          11.007        7.3683        .55062E-07    .10071E-02
  15  Prefactor     .43796E-05    1115.4        .34605E-05** at limit **
  16  norm          .94924E-08    16.277        .11020E-06** at limit **
  17  Prefactor     30.876        3.9236        .21535E-07   -.79957E-01
  18  Prefactor     .12490E-07    11.463        .98554E-08** at limit **
  19  Prefactor      .0000        1.3935       -.40729E-07** at limit **
  20  Prefactor     .57176E-08    7.6549       -.56210E-07** at limit **
  21  norm          4.5334        4.4669       -.21321E-08   -.17373E-03
  22  Prefactor     22.360        6.3372       -.44391E-07   -.28528E-02
  23  Normalizat    1.3672        .20665       -.50139E-06   -.68205E-05
  24  Prefactor     .52777        .21656        .11586E-05    .59513E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.84772e-08
  Prefactor  = 0
  Prefactor  = 0
  norm       = 2.4321
  Prefactor  = 25.0033
  norm       = 3.7089
  Prefactor  = 2.78111e-08
  norm       = 5.55112e-11
  norm       = 13.2989
  norm       = 5.80241
  norm       = 0.429822
  Prefactor  = 0
  Prefactor  = 3.59712e-08
  norm       = 11.0067
  Prefactor  = 4.37955e-06
  norm       = 9.49241e-09
  Prefactor  = 30.8756
  Prefactor  = 1.249e-08
  Prefactor  = 0
  Prefactor  = 5.71765e-09
  norm       = 4.53339
  Prefactor  = 22.3601
  Normalizat = 1.36716
  Prefactor  = 0.527774
 **********
 **   18 **HESSE 
 **********

 FCN=   5886.817     FROM HESSE     STATUS=OK           459 CALLS     2498 TOTAL
                     EDM=   .41E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .28477E-07    9.4141        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        2.5569        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        4.7787        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.4321        5.0319        .65636E-03   -1.5677    
   5  Prefactor     25.003        25.637        .19956E-03   -1.5608    
   6  norm          3.7089        3.2485        .52425E-03   -1.5669    
   7  Prefactor     .27811E-07    11.270        .92092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .55511E-10    3.6719        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          13.299        6.4502        .27471E-03   -1.5635    
  10  norm          5.8024        9.3275        .41724E-03   -1.5660    
  11  norm          .42982        261.03        .60408E-03   -1.5695    
  12  Prefactor      .0000        1.3164        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .35971E-07    8.4568        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          11.007        7.5028        .30209E-03   -1.5642    
  15  Prefactor     .43796E-05    58.940        .14599E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .94924E-08    16.306        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     30.876        19.994        .18008E-03   -1.5597    
  18  Prefactor     .12490E-07    11.518        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        1.3900        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .57176E-08    7.6747        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.5334        4.4740        .47425E-03   -1.5665    
  22  Prefactor     22.360        6.3468        .21149E-03   -1.5613    
  23  Normalizat    1.3672        .17988        .47254E-01   -.81583    
  24  Prefactor     .52777        .18727        .77722E-01   -1.1072    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.09395e-07
Minuit parameter uncertainties:
  1  0.00103573
  2  2.11456e-06
  3  2.90426e-06
  4  5.03186
  5  25.6372
  6  3.24848
  7  0.00112004
  8  3.25078e-05
  9  6.45025
  10  9.32752
  11  21.1854
  12  6.3591e-06
  13  0.00110269
  14  7.50283
  15  0.0321332
  16  0.000786191
  17  19.9944
  18  0.000757851
  19  5.40758e-06
  20  0.000419478
  21  4.47397
  22  6.34676
  23  0.179967
  24  0.187485
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  3.088e+01  1.999e+01  0.000e+00  1.000e+06 ( 1.000e-13)
306        Index:  2.449e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
307        Scale:  1.041e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
545    Prefactor:  5.278e-01  1.875e-01  0.000e+00  1.000e+01 ( 1.000e+00)
546        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
547        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
544   Normalization:  1.367e+00  1.800e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.48
Ra Dec: 202.693 29.554
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 6.61e-08 +/- 4.28e-08
Energy Flux (Fixed Index): 2.04e-05 +/- 1.32e-05

TS (Fixed Index): 3.48
Ra Dec: 202.693 29.554
Photon Flux Upper Limit: 1.52e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.18e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/833868/likelihoodResults_699667201_699926401_4FGL_J1330.7+2933_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) = 5886.63941765
delta logL = 0.177145041278

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5886.62760814
delta logL = 0.188954549857

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.469       1.0000          .0000       .10000E+07
     2 'Index     '    2.7778       1.0000          .0000       10.000    
     3 'Normalizat'    1.3495       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .54089       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5480E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5886.628     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      267 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.451        270.43        .21588E-03    .59916E-02
   2  Index         2.7769        3.1114        .12602        .96015E-04
   3  Normalizat    1.3500        .71180E-01    .47491E-01    .16257E-03
   4  Prefactor     .54089        .72661E-01    .76855E-01    .12880E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.4514
  Index      = 2.7769
  Normalizat = 1.35004
  Prefactor  = 0.540888
 **********
 **   18 **HESSE 
 **********

 FCN=   5886.628     FROM HESSE     STATUS=OK            31 CALLS      298 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.451        23.943        .43176E-04   -1.5615    
   2  Index         2.7769        .63070        .47777E-02   -.46075    
   3  Normalizat    1.3500        .20601        .20994E-03   -.82085    
   4  Prefactor     .54089        .21739        .34035E-03   -1.1014    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.32012e-09
Minuit parameter uncertainties:
  1  23.9435
  2  0.632806
  3  0.206134
  4  0.21773
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/833868': 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) = 5886.62758957
delta logL = 0.188973121255

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  2.145e+01  2.394e+01  0.000e+00  1.000e+06 ( 1.000e-13)
306        Index:  2.777e+00  6.328e-01  0.000e+00  1.000e+01 (-1.000e+00)
307        Scale:  1.041e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
545    Prefactor:  5.409e-01  2.177e-01  0.000e+00  1.000e+01 ( 1.000e+00)
546        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
547        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
544   Normalization:  1.350e+00  2.061e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.85
Ra Dec: 202.693 29.554
Photon Index (Free Index): 2.78 +/- 0.63
Photon Flux (Free Index): 8.08e-08 +/- 5.19e-08
Energy Flux (Free Index): 1.84e-05 +/- 1.21e-05

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/833868/cmap_HighResolution_699667201_699926401_4FGL_J1330.7+2933_daily_bin1776.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.18e-02', comment='SUCCESS', photon_flux='6.61e-08', energy_flux2='1.84e-05', photon_flux_error='4.28e-08', dlogl='1.89e-01', energy_flux='2.04e-05', photon_flux2='8.08e-08', job_status='DONE', time_completed='2023-03-08 00:53:01.609201', photon_index_error2='0.63', photon_index2='2.78', ts='3.48', fit_tolerance='1e-08', GAL='0.53', photon_index_error='0.00', photon_flux_upper_limit='1.52e-07', energy_flux_error2='1.21e-05', EG='1.37', time_epoch_completed='1678265581.61', return_code='0', job_id='833868', GAL2='0.54', EG2='1.35', return_code2='0', energy_flux_error='1.32e-05', photon_flux_error2='5.19e-08', ts2='3.85', photon_index='2.45' WHERE bin_id='1776' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Mar  8 00:53:01 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0159>
Subject: Job 833868: <4FGL_J1330.7+2933_daily_bin1776> in cluster <slac> Done

Job <4FGL_J1330.7+2933_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) <bullet0159>, 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:53:02 2023
Results reported at Wed Mar  8 00:53:02 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin1776 202.693 29.5536 699667201 699926401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1330.7+2933 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   607.14 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             284.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   759 sec.
    Turnaround time :                            761 sec.

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

