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 62 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.7+2933_daily_bin1769
RA = 202.693, Dec = 29.5536
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='435846', job_status='RUN', time_executed='2023-02-15 00:51:41.325730', time_epoch_executed='1676451101.33' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='1769'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/435846

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


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/435846/ft1_4FGL_J1330.7+2933_daily_bin1769.fits outfile=/scratch/kocevski/435846/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1769.fits ra=202.693 dec=29.5536 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.36
user 4.13
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/435846/ft2_4FGL_J1330.7+2933_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/435846/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1769.fits evtable="EVENTS" outfile="/scratch/kocevski/435846/ft1_filtered_4FGL_J1330.7+2933_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.48
user 0.35
sys 0.13

Number of photons that the gtmktime cut: 550

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/435846/ft1_filtered_4FGL_J1330.7+2933_daily_bin1769.fits" evtable="EVENTS" scfile=/scratch/kocevski/435846/ft2_4FGL_J1330.7+2933_daily_bin1769.fits sctable="SC_DATA" outfile=/scratch/kocevski/435846/ltcube_697852801_698112001_4FGL_J1330.7+2933_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/435846/ft2_4FGL_J1330.7+2933_daily_bin1769.fits
.....................!
real 11.83
user 11.48
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/435846/ft1_filtered_4FGL_J1330.7+2933_daily_bin1769.fits evtable="EVENTS" scfile=/scratch/kocevski/435846/ft2_4FGL_J1330.7+2933_daily_bin1769.fits sctable="SC_DATA" expcube=/scratch/kocevski/435846/ltcube_697852801_698112001_4FGL_J1330.7+2933_daily_bin1769.fits outfile=/scratch/kocevski/435846/expmap_697852801_698112001_4FGL_J1330.7+2933_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/435846/ltcube_697852801_698112001_4FGL_J1330.7+2933_daily_bin1769.fits
.....................!
real 189.83
user 185.39
sys 4.12

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/435846/ft1_filtered_4FGL_J1330.7+2933_daily_bin1769.fits scfile=/scratch/kocevski/435846/ft2_4FGL_J1330.7+2933_daily_bin1769.fits outfile=/scratch/kocevski/435846/cmap_697852801_698112001_4FGL_J1330.7+2933_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.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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/435846/ft1_filtered_4FGL_J1330.7+2933_daily_bin1769.fits scfile=/scratch/kocevski/435846/ft2_4FGL_J1330.7+2933_daily_bin1769.fits outfile=/scratch/kocevski/435846/cmap_HighResolution_697852801_698112001_4FGL_J1330.7+2933_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.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.40
sys 0.13

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/435846/ft1_filtered_4FGL_J1330.7+2933_daily_bin1769.fits', '/scratch/kocevski/435846/ft2_4FGL_J1330.7+2933_daily_bin1769.fits', expMap='/scratch/kocevski/435846/expmap_697852801_698112001_4FGL_J1330.7+2933_daily_bin1769.fits', expCube='/scratch/kocevski/435846/ltcube_697852801_698112001_4FGL_J1330.7+2933_daily_bin1769.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/435846/Model_4FGL_J1330.7+2933_daily_bin1769.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/435846/ft1_filtered_4FGL_J1330.7+2933_daily_bin1769.fits
Spacecraft file(s): /scratch/kocevski/435846/ft2_4FGL_J1330.7+2933_daily_bin1769.fits
Exposure map: /scratch/kocevski/435846/expmap_697852801_698112001_4FGL_J1330.7+2933_daily_bin1769.fits
Exposure cube: /scratch/kocevski/435846/ltcube_697852801_698112001_4FGL_J1330.7+2933_daily_bin1769.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/435846/Model_4FGL_J1330.7+2933_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) = 5926.01578382

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13829E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .25258E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    4.5315       1.0000          .0000       .10000E+07
     4 'norm      '    .15947E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    .30111E-03   1.0000          .0000       .10000E+07
     6 'norm      '    .36643       1.0000          .0000       .10000E+07
     7 'Prefactor '    .79514E-03   1.0000          .0000       .10000E+07
     8 'norm      '    .20603E-04   1.0000          .0000       .10000E+07
     9 'norm      '    17.413       1.0000          .0000       .10000E+07
    10 'norm      '    23.178       1.0000          .0000       .10000E+07
    11 'norm      '    17.712       1.0000          .0000       .10000E+07
    12 'Prefactor '    .19595E-07   1.0000          .0000       .10000E+07
    13 'Prefactor '    .34566E-03   1.0000          .0000       .10000E+07
    14 'norm      '    33.890       1.0000          .0000       .10000E+07
    15 'Prefactor '    20.030       1.0000          .0000       .10000E+07
    16 'norm      '    .56510E-07   1.0000          .0000       .10000E+07
    17 'Prefactor '    .37270E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    6.1825       1.0000          .0000       .10000E+07
    19 'Prefactor '    7.5341       1.0000          .0000       .10000E+07
    20 'Prefactor '    .11360E-03   1.0000          .0000       .10000E+07
    21 'norm      '    4.2607       1.0000          .0000       .10000E+07
    22 'Prefactor '    15.366       1.0000          .0000       .10000E+07
    23 'Normalizat'    .78782       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0286       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=   5925.951     FROM MIGRAD    STATUS=CONVERGED    169 CALLS     1581 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    32.466        .73100E-06** at limit **
   2  Prefactor      .0000        1.8485       -.11566E-06** at limit **
   3  Prefactor     4.5352        4.8314       -.81251E-07    .73127E-03
   4  norm           .0000        1.5272       -.27673E-07** at limit **
   5  Prefactor     .11541E-06    3.8071        .14370E-06** at limit **
   6  norm          .36753        3.1351        .67387E-07    .44847E-03
   7  Prefactor     .92704E-08    7.1287       -.21073E-06** at limit **
   8  norm           .0000        1.8208       -.62742E-07** at limit **
   9  norm          17.420        4.7193       -.83209E-08    .16777E-01
  10  norm          23.206        4.1561        .47560E-08   -.40513E-01
  11  norm          17.808        2.1655       -.50970E-08    .38092E-01
  12  Prefactor      .0000        1.3263       -.86776E-07** at limit **
  13  Prefactor     .17103E-06    2.9825        .10872E-06** at limit **
  14  norm          34.006        8.9785       -.33733E-07    .99889E-03
  15  Prefactor     19.862        1.2064        .14761E-07    .12779E-01
  16  norm           .0000        3.0405       -.33166E-06** at limit **
  17  Prefactor     .53013E-07    96.630       -.46004E-05** at limit **
  18  Prefactor     6.3072        18.812        .31074E-06    .83314E-02
  19  Prefactor     7.5521        4.7064        .72337E-07    .78198E-03
  20  Prefactor     .20206E-07    6.4646       -.16169E-06** at limit **
  21  norm          4.2589        4.3658       -.10700E-06    .30165E-03
  22  Prefactor     15.366        5.1460        .16312E-07    .43673E-03
  23  Normalizat    .78689        .18979       -.17015E-05    .14548E-03
  24  Prefactor     1.0289        .21451       -.25187E-05    .13275E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 4.53523
  norm       = 0
  Prefactor  = 1.15408e-07
  norm       = 0.367529
  Prefactor  = 9.27036e-09
  norm       = 0
  norm       = 17.4203
  norm       = 23.2062
  norm       = 17.808
  Prefactor  = 0
  Prefactor  = 1.7103e-07
  norm       = 34.0063
  Prefactor  = 19.8624
  norm       = 0
  Prefactor  = 5.30131e-08
  Prefactor  = 6.30717
  Prefactor  = 7.55214
  Prefactor  = 2.02061e-08
  norm       = 4.25886
  Prefactor  = 15.366
  Normalizat = 0.78689
  Prefactor  = 1.02885
 **********
 **   18 **HESSE 
 **********

 FCN=   5925.951     FROM HESSE     STATUS=OK           443 CALLS     2024 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    32.473        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        1.8520        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.5352        4.8404        .47268E-03   -1.5665    
   4  norm           .0000        1.5257        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .11541E-06    5.9696        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .36753        3.1267        .93484E-03   -1.5696    
   7  Prefactor     .92704E-08    7.4404        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        1.8186        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          17.420        8.3388        .23975E-03   -1.5624    
  10  norm          23.206        16.696        .20776E-03   -1.5612    
  11  norm          17.808        16.854        .23771E-03   -1.5624    
  12  Prefactor      .0000        1.3240        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .17103E-06    6.1112        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          34.006        9.0380        .17180E-03   -1.5591    
  15  Prefactor     19.862        25.642        .22351E-03   -1.5619    
  16  norm           .0000        3.0564        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .53013E-07    95.462        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.3072        19.471        .40351E-03   -1.5658    
  19  Prefactor     7.5521        4.7040        .36513E-03   -1.5653    
  20  Prefactor     .20206E-07    7.0206        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.2589        4.3803        .48788E-03   -1.5667    
  22  Prefactor     15.366        5.1502        .25524E-03   -1.5630    
  23  Normalizat    .78689        .16597        .43451E-01   -1.0056    
  24  Prefactor     1.0289        .18661        .41371E-01   -.91774    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16644e-07
Minuit parameter uncertainties:
  1  7.9803e-05
  2  6.1893e-06
  3  4.84044
  4  3.88274e-07
  5  0.00165992
  6  2.14397
  7  0.000525134
  8  5.41038e-06
  9  8.33877
  10  16.6962
  11  16.8542
  12  4.95516e-06
  13  0.00204461
  14  9.03803
  15  25.6419
  16  1.2578e-05
  17  0.00449862
  18  19.4717
  19  4.70403
  20  0.000752881
  21  4.38028
  22  5.15025
  23  0.166076
  24  0.186726
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  5.301e-08  4.499e-03  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:  1.029e+00  1.867e-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:  7.869e-01  1.661e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 202.693 29.554
Photon Flux Upper Limit: 7.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/435846/likelihoodResults_697852801_698112001_4FGL_J1330.7+2933_daily_bin1769.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5925.95840258
delta logL = -0.00701315277274

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5925.93438421
delta logL = 0.0170052170251

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5925.934     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      337 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8066        30.621        .20454E-04   -.94488E-03
   2  Index         1.9409        1.4388        .11363E-01   -.69086E-04
   3  Normalizat    .78678        .18149        .24616E-03   -.13924E-03
   4  Prefactor     1.0255        .21360        .25469E-03    .10869E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.80658
  Index      = 1.94094
  Normalizat = 0.786779
  Prefactor  = 1.02554
 **********
 **   18 **HESSE 
 **********

 FCN=   5925.934     FROM HESSE     STATUS=OK            23 CALLS      360 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8066        29.806        .81816E-06   -1.5669    
   2  Index         1.9409        1.4211        .45452E-03   -.65835    
   3  Normalizat    .78678        .18166        .98465E-05   -1.0056    
   4  Prefactor     1.0255        .21376        .10188E-04   -.91883    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.70239e-10
Minuit parameter uncertainties:
  1  21.3037
  2  1.45362
  3  0.181801
  4  0.213934
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/435846': 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) = 5925.93437477
delta logL = 0.0170146500122

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  3.807e+00  2.130e+01  0.000e+00  1.000e+06 ( 1.000e-13)
306        Index:  1.941e+00  1.454e+00  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:  1.026e+00  2.139e-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:  7.868e-01  1.818e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 202.693 29.554

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/435846/cmap_HighResolution_697852801_698112001_4FGL_J1330.7+2933_daily_bin1769.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.90e-03', job_status='DONE', photon_flux_upper_limit='7.60e-08', time_completed='2023-02-15 01:01:17.712098', job_id='435846', GAL2='1.03', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1676451677.71', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='1.70e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1769' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Feb 15 01:01:17 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 435846: <4FGL_J1330.7+2933_daily_bin1769> in cluster <slac> Done

Job <4FGL_J1330.7+2933_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) <bullet0204>, 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:01:18 2023
Results reported at Wed Feb 15 01:01:18 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin1769 202.693 29.5536 697852801 698112001 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 :                                   578.35 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             315.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   656 sec.
    Turnaround time :                            658 sec.

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

