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


Performing analysis on: 4FGL_J1330.2+7002_daily_bin1759
RA = 202.573, Dec = 70.0406
tmin = 695260801, tmax = 695520001
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='558352', job_status='RUN', time_executed='2023-01-16 01:13:13.116482', time_epoch_executed='1673860393.12' WHERE source_name='4FGL J1330.2+7002' and cadence='daily' and bin_id='1759'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/558352

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/558352/ft1_4FGL_J1330.2+7002_daily_bin1759.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/558352/ft2_4FGL_J1330.2+7002_daily_bin1759.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/558352/ft1_4FGL_J1330.2+7002_daily_bin1759.fits outfile=/scratch/kocevski/558352/ft1_filteredMKT_4FGL_J1330.2+7002_daily_bin1759.fits ra=202.573 dec=70.0406 rad=12.0 tmin=695260801.0 tmax=695520001.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 2.76
user 2.52
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/558352/ft2_4FGL_J1330.2+7002_daily_bin1759.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/558352/ft1_filteredMKT_4FGL_J1330.2+7002_daily_bin1759.fits evtable="EVENTS" outfile="/scratch/kocevski/558352/ft1_filtered_4FGL_J1330.2+7002_daily_bin1759.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.55
user 0.35
sys 0.15

Number of photons that the gtmktime cut: 797

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/558352/ft1_filtered_4FGL_J1330.2+7002_daily_bin1759.fits" evtable="EVENTS" scfile=/scratch/kocevski/558352/ft2_4FGL_J1330.2+7002_daily_bin1759.fits sctable="SC_DATA" outfile=/scratch/kocevski/558352/ltcube_695260801_695520001_4FGL_J1330.2+7002_daily_bin1759.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/558352/ft2_4FGL_J1330.2+7002_daily_bin1759.fits
.....................!
real 16.01
user 15.52
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/558352/ft1_filtered_4FGL_J1330.2+7002_daily_bin1759.fits evtable="EVENTS" scfile=/scratch/kocevski/558352/ft2_4FGL_J1330.2+7002_daily_bin1759.fits sctable="SC_DATA" expcube=/scratch/kocevski/558352/ltcube_695260801_695520001_4FGL_J1330.2+7002_daily_bin1759.fits outfile=/scratch/kocevski/558352/expmap_695260801_695520001_4FGL_J1330.2+7002_daily_bin1759.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/558352/ltcube_695260801_695520001_4FGL_J1330.2+7002_daily_bin1759.fits
.....................!
real 191.77
user 186.31
sys 4.65

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/558352/ft1_filtered_4FGL_J1330.2+7002_daily_bin1759.fits scfile=/scratch/kocevski/558352/ft2_4FGL_J1330.2+7002_daily_bin1759.fits outfile=/scratch/kocevski/558352/cmap_695260801_695520001_4FGL_J1330.2+7002_daily_bin1759.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/558352/ft1_filtered_4FGL_J1330.2+7002_daily_bin1759.fits scfile=/scratch/kocevski/558352/ft2_4FGL_J1330.2+7002_daily_bin1759.fits outfile=/scratch/kocevski/558352/cmap_HighResolution_695260801_695520001_4FGL_J1330.2+7002_daily_bin1759.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.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17158E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    2.1646       1.0000          .0000       .10000E+07
     3 'Prefactor '    .10051E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    56.998       1.0000          .0000       .10000E+07
     5 'Prefactor '    4.0306       1.0000          .0000       .10000E+07
     6 'norm      '    1.5962       1.0000          .0000       .10000E+07
     7 'norm      '    3.0805       1.0000          .0000       .10000E+07
     8 'Prefactor '    40.706       1.0000          .0000       .10000E+07
     9 'Prefactor '    .21312E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    11.326       1.0000          .0000       .10000E+07
    11 'Prefactor '    26.987       1.0000          .0000       .10000E+07
    12 'Prefactor '    .80652E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    .72639E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    .58667       1.0000          .0000       .10000E+07
    15 'Prefactor '    .14709E-01   1.0000          .0000       .10000E+07
    16 'Prefactor '    7.8067       1.0000          .0000       .10000E+07
    17 'Prefactor '    .28256E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .12335E-01   1.0000          .0000       .10000E+07
    19 'Prefactor '    15.763       1.0000          .0000       .10000E+07
    20 'Prefactor '    21.158       1.0000          .0000       .10000E+07
    21 'Prefactor '    .36410E-03   1.0000          .0000       .10000E+07
    22 'Normalizat'    1.5594       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .56926       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=   8535.029     FROM MIGRAD    STATUS=CONVERGED    131 CALLS     1474 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        32.092        .11772E-05** at limit **
   2  Prefactor     2.1671        2.6903       -.18805E-06   -.10489E-03
   3  Prefactor     .71038E-06    28.838        .70165E-06** at limit **
   4  Prefactor     58.478        16.237        .28498E-06   -.47183E-01
   5  Prefactor     4.1008        7.3114        .35004E-06    .23244E-01
   6  norm          1.5977        4.4541        .75684E-06    .57861E-03
   7  norm          3.0810        2.5651        .34894E-06    .44218E-03
   8  Prefactor     41.903        10.321        .12112E-06    .54317E-01
   9  Prefactor     .91654E-06    20.664        .45804E-06** at limit **
  10  Prefactor     11.420        6.3289       -.16459E-06   -.24546E-02
  11  Prefactor     26.807        2.7404        .33274E-07   -.16369E-01
  12  Prefactor      .0000        8.4961       -.59481E-07** at limit **
  13  Prefactor      .0000        7.6254        .24245E-06** at limit **
  14  Prefactor     .68338        30.645       -.10635E-05   -.11566E-01
  15  Prefactor      .0000        10.757        .69204E-06** at limit **
  16  Prefactor     9.1333        20.170        .95939E-06   -.50708E-01
  17  Prefactor     .68204E-05    45.421       -.13584E-05** at limit **
  18  Prefactor     .10401E-05    11.261        .44818E-06** at limit **
  19  Prefactor     16.314        5.1826       -.56305E-07    .19043E-01
  20  Prefactor     20.377        8.0861       -.65415E-07   -.47938E-01
  21  Prefactor      .0000        5.2659        .20756E-06** at limit **
  22  Normalizat    1.5588        .16478       -.45932E-05    .11276E-04
  23  Prefactor     .56878        .16351        .78535E-05    .29569E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 2.16707
  Prefactor  = 7.10376e-07
  Prefactor  = 58.4784
  Prefactor  = 4.10077
  norm       = 1.59766
  norm       = 3.08101
  Prefactor  = 41.9026
  Prefactor  = 9.16545e-07
  Prefactor  = 11.4202
  Prefactor  = 26.8074
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0.68338
  Prefactor  = 0
  Prefactor  = 9.13333
  Prefactor  = 6.82043e-06
  Prefactor  = 1.04011e-06
  Prefactor  = 16.3141
  Prefactor  = 20.3771
  Prefactor  = 0
  Normalizat = 1.55879
  Prefactor  = 0.568779
 **********
 **   18 **HESSE 
 **********

 FCN=   8535.029     FROM HESSE     STATUS=OK           420 CALLS     1894 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        31.039        .17231E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.1671        2.7052        .69976E-03   -1.5679    
   3  Prefactor     .71038E-06    34.904        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     58.478        41.109        .13246E-03   -1.5555    
   5  Prefactor     4.1008        20.218        .50204E-03   -1.5667    
   6  norm          1.5977        4.4676        .83914E-03   -1.5683    
   7  norm          3.0810        2.5604        .57763E-03   -1.5673    
   8  Prefactor     41.903        37.600        .15675E-03   -1.5578    
   9  Prefactor     .91654E-06    28.495        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.420        21.163        .29743E-03   -1.5640    
  11  Prefactor     26.807        23.761        .19253E-03   -1.5604    
  12  Prefactor      .0000        8.3550        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        7.6362        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .68338        46.144        .70430E-03   -1.5691    
  15  Prefactor      .0000        10.763        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.1333        56.318        .35864E-03   -1.5648    
  17  Prefactor     .68204E-05    71.980        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10401E-05    31.050        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.314        25.140        .25200E-03   -1.5627    
  20  Prefactor     20.377        35.705        .21747E-03   -1.5618    
  21  Prefactor      .0000        5.2835        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.5588        .14416        .45581E-01   -.76140    
  23  Prefactor     .56878        .14388        .70262E-01   -1.0892    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13087e-06
Minuit parameter uncertainties:
  1  4.76541e-05
  2  2.7052
  3  0.00995885
  4  41.1096
  5  18.2111
  6  4.46762
  7  2.56036
  8  37.6001
  9  0.010221
  10  21.1633
  11  23.7611
  12  5.72957e-06
  13  2.79962e-05
  14  11.2312
  15  3.32083e-05
  16  45.3603
  17  0.0443147
  18  0.0113658
  19  25.1405
  20  35.7053
  21  9.20909e-06
  22  0.144196
  23  0.143968
Done.

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

Extracting fit parameters...

4FGL J1330.2+7002
   Spectrum: PowerLaw
379    Prefactor:  2.681e+01  2.376e+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:  5.688e-01  1.440e-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.559e+00  1.442e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.44
Ra Dec: 202.573 70.041
Photon Index (Fixed Index): 1.97 +/- 0.00
Photon Flux (Fixed Index): 1.53e-08 +/- 1.35e-08
Energy Flux (Fixed Index): 1.15e-05 +/- 1.02e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8534.19003102
delta logL = 0.839330175795

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8534.10118785
delta logL = 0.92817334436

Fit tolerance = 1e-08

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

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

 FCN=   8534.101     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      231 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.911        15.345        .25930E-03   -.20931E-03
   2  Index         .89342        .51610        .35018       -.52390E-04
   3  Normalizat    1.5716        .14260        .45430E-01    .61914E-05
   4  Prefactor     .56520        .14090        .70478E-01    .52786E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.9108
  Index      = 0.893416
  Normalizat = 1.57156
  Prefactor  = 0.565205
 **********
 **   18 **HESSE 
 **********

 FCN=   8534.101     FROM HESSE     STATUS=OK            33 CALLS      264 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.911        21.731        .10372E-04   -1.5631    
   2  Index         .89342        .70560        .15934E-01   -.96372    
   3  Normalizat    1.5716        .16376        .20081E-03   -.75787    
   4  Prefactor     .56520        .16152        .31196E-03   -1.0907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.94422e-09
Minuit parameter uncertainties:
  1  21.7315
  2  0.713005
  3  0.163817
  4  0.161655
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/558352': 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) = 8534.10118616
delta logL = 0.928175034747

Extracting fit parameters...

4FGL J1330.2+7002
   Spectrum: PowerLaw
379    Prefactor:  1.491e+01  2.173e+01  0.000e+00  1.000e+06 ( 1.000e-14)
380        Index:  8.934e-01  7.130e-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:  5.652e-01  1.617e-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.572e+00  1.638e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.29
Ra Dec: 202.573 70.041
Photon Index (Free Index): 0.89 +/- 0.71
Photon Flux (Free Index): 2.68e-09 +/- 3.11e-09
Energy Flux (Free Index): 4.95e-05 +/- 6.78e-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/558352/cmap_HighResolution_695260801_695520001_4FGL_J1330.2+7002_daily_bin1759.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.53e-08', energy_flux2='4.95e-05', photon_flux_error='1.35e-08', dlogl='9.28e-01', energy_flux='1.15e-05', photon_flux2='2.68e-09', job_status='DONE', time_completed='2023-01-16 01:25:07.496554', photon_index_error2='0.71', photon_index2='0.89', ts='9.44', fit_tolerance='1e-08', GAL='0.57', photon_index_error='0.00', energy_flux_error2='6.78e-05', EG='1.56', time_epoch_completed='1673861107.5', return_code='0', job_id='558352', GAL2='0.57', EG2='1.57', return_code2='0', energy_flux_error='1.02e-05', photon_flux_error2='3.11e-09', ts2='11.29', photon_index='1.97' WHERE bin_id='1759' AND source_name='4FGL J1330.2+7002' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jan 16 01:25:07 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 558352: <4FGL_J1330.2+7002_daily_bin1759> in cluster <slac> Done

Job <4FGL_J1330.2+7002_daily_bin1759> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Jan 16 01:10:22 2023
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jan 16 01:12:32 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jan 16 01:12:32 2023
Terminated at Mon Jan 16 01:25:08 2023
Results reported at Mon Jan 16 01:25:08 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.2+7002_daily_bin1759 202.573 70.0406 695260801 695520001 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 :                                   715.58 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             306.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   755 sec.
    Turnaround time :                            886 sec.

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

