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


Performing analysis on: 4FGL_J1012.7+2439_daily_bin1745
RA = 153.199, Dec = 24.6638
tmin = 691632001, tmax = 691891201
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='642949', job_status='RUN', time_executed='2022-12-05 00:25:43.380373', time_epoch_executed='1670228743.38' WHERE source_name='4FGL J1012.7+2439' and cadence='daily' and bin_id='1745'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/642949

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/642949/ft1_4FGL_J1012.7+2439_daily_bin1745.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/642949/ft2_4FGL_J1012.7+2439_daily_bin1745.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/642949/ft1_4FGL_J1012.7+2439_daily_bin1745.fits outfile=/scratch/kocevski/642949/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin1745.fits ra=153.199 dec=24.6638 rad=12.0 tmin=691632001.0 tmax=691891201.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.37
user 2.15
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/642949/ft2_4FGL_J1012.7+2439_daily_bin1745.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/642949/ft2_4FGL_J1012.7+2439_daily_bin1745.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/642949/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin1745.fits evtable="EVENTS" outfile="/scratch/kocevski/642949/ft1_filtered_4FGL_J1012.7+2439_daily_bin1745.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.49
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 599

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/642949/ft1_filtered_4FGL_J1012.7+2439_daily_bin1745.fits" evtable="EVENTS" scfile=/scratch/kocevski/642949/ft2_4FGL_J1012.7+2439_daily_bin1745.fits sctable="SC_DATA" outfile=/scratch/kocevski/642949/ltcube_691632001_691891201_4FGL_J1012.7+2439_daily_bin1745.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/642949/ft2_4FGL_J1012.7+2439_daily_bin1745.fits
.....................!
real 12.17
user 11.83
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/642949/ft1_filtered_4FGL_J1012.7+2439_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/642949/ft2_4FGL_J1012.7+2439_daily_bin1745.fits sctable="SC_DATA" expcube=/scratch/kocevski/642949/ltcube_691632001_691891201_4FGL_J1012.7+2439_daily_bin1745.fits outfile=/scratch/kocevski/642949/expmap_691632001_691891201_4FGL_J1012.7+2439_daily_bin1745.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/642949/ltcube_691632001_691891201_4FGL_J1012.7+2439_daily_bin1745.fits
.....................!
real 190.57
user 185.58
sys 4.63

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

Setting source of interest to:
4FGL J1012.7+2439 @ 153.199 24.6638

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/642949/ft1_filtered_4FGL_J1012.7+2439_daily_bin1745.fits scfile=/scratch/kocevski/642949/ft2_4FGL_J1012.7+2439_daily_bin1745.fits outfile=/scratch/kocevski/642949/cmap_691632001_691891201_4FGL_J1012.7+2439_daily_bin1745.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=153.199 yref=24.6638 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/642949/ft1_filtered_4FGL_J1012.7+2439_daily_bin1745.fits scfile=/scratch/kocevski/642949/ft2_4FGL_J1012.7+2439_daily_bin1745.fits outfile=/scratch/kocevski/642949/cmap_HighResolution_691632001_691891201_4FGL_J1012.7+2439_daily_bin1745.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=153.199 yref=24.6638 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/642949/ft1_filtered_4FGL_J1012.7+2439_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/642949/ft2_4FGL_J1012.7+2439_daily_bin1745.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/642949/Model_4FGL_J1012.7+2439_daily_bin1745.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/642949/ft1_filtered_4FGL_J1012.7+2439_daily_bin1745.fits.....................!
real 59.52
user 58.11
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/642949/ft1_filtered_4FGL_J1012.7+2439_daily_bin1745.fits', '/scratch/kocevski/642949/ft2_4FGL_J1012.7+2439_daily_bin1745.fits', expMap='/scratch/kocevski/642949/expmap_691632001_691891201_4FGL_J1012.7+2439_daily_bin1745.fits', expCube='/scratch/kocevski/642949/ltcube_691632001_691891201_4FGL_J1012.7+2439_daily_bin1745.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/642949/Model_4FGL_J1012.7+2439_daily_bin1745.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1012.7+2439'

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  8.685e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
208        alpha:  2.169e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
209         beta:  1.367e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
210           Eb:  6.187e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/642949/ft1_filtered_4FGL_J1012.7+2439_daily_bin1745.fits
Spacecraft file(s): /scratch/kocevski/642949/ft2_4FGL_J1012.7+2439_daily_bin1745.fits
Exposure map: /scratch/kocevski/642949/expmap_691632001_691891201_4FGL_J1012.7+2439_daily_bin1745.fits
Exposure cube: /scratch/kocevski/642949/ltcube_691632001_691891201_4FGL_J1012.7+2439_daily_bin1745.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/642949/Model_4FGL_J1012.7+2439_daily_bin1745.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) = 6882.69268475

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .69215       1.0000          .0000       .10000E+07
     2 'Prefactor '    .34661E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    .11836       1.0000          .0000       .10000E+07
     4 'Prefactor '    .84210E-07   1.0000          .0000       .10000E+07
     5 'Prefactor '    .97144E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .53127       1.0000          .0000       .10000E+07
     7 'norm      '    4.0479       1.0000          .0000       .10000E+07
     8 'Prefactor '    1.7211       1.0000          .0000       .10000E+07
     9 'Prefactor '    .25043E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    8.6269       1.0000          .0000       .10000E+07
    11 'Prefactor '    .15930E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    6.7398       1.0000          .0000       .10000E+07
    13 'Prefactor '    .64837E-07   1.0000          .0000       .10000E+07
    14 'Prefactor '    11.390       1.0000          .0000       .10000E+07
    15 'Prefactor '    .62822E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .14155E-07   1.0000          .0000       .10000E+07
    17 'Prefactor '    1.9842       1.0000          .0000       .10000E+07
    18 'Prefactor '    .20631       1.0000          .0000       .10000E+07
    19 'Normalizat'    .71715       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2131       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6882.630     FROM MIGRAD    STATUS=CONVERGED    178 CALLS     1259 TOTAL
                     EDM=   .24E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .69988        4.7469        .38845E-06   -.82260E-03
   2  Prefactor      .0000        37.573        .29344E-06** at limit **
   3  Prefactor      .0000        107.65        .17455E-07** at limit **
   4  Prefactor      .0000        3.8249       -.10781E-06** at limit **
   5  Prefactor      .0000        5.6591       -.51543E-07** at limit **
   6  Prefactor     .53237        2.1693        .11189E-06   -.74548E-03
   7  norm          4.0353        4.7208        .46923E-07   -.39128E-03
   8  Prefactor     1.7158        2.2174       -.69323E-07    .54345E-03
   9  Prefactor      .0000        80.359       -.18011E-06** at limit **
  10  Prefactor     8.6661        4.6078        .32206E-07   -.57495E-03
  11  Prefactor     .11102E-09    42.430        .62694E-06** at limit **
  12  Prefactor     6.7315        5.6343       -.55050E-07    .40785E-03
  13  Prefactor      .0000        .69846       -.61804E-08** at limit **
  14  Prefactor     11.411        7.5083       -.18577E-06    .12314E-02
  15  Prefactor      .0000        12.285        .20101E-06** at limit **
  16  Prefactor      .0000        4.1764       -.10379E-06** at limit **
  17  Prefactor     1.9866        7.7565       -.16108E-06    .15482E-03
  18  Prefactor     .38858E-09    73.146        .10065E-05** at limit **
  19  Normalizat    .71713        .17321        .37554E-05   -.73532E-04
  20  Prefactor     1.2133        .17886       -.13519E-05   -.64254E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.699879
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0.532373
  norm       = 4.03534
  Prefactor  = 1.71581
  Prefactor  = 0
  Prefactor  = 8.6661
  Prefactor  = 1.11022e-10
  Prefactor  = 6.73148
  Prefactor  = 0
  Prefactor  = 11.4105
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 1.98662
  Prefactor  = 3.88578e-10
  Normalizat = 0.71713
  Prefactor  = 1.21334
 **********
 **   18 **HESSE 
 **********

 FCN=   6882.630     FROM HESSE     STATUS=OK           337 CALLS     1596 TOTAL
                     EDM=   .78E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .69988        4.7577        .61348E-03   -1.5691    
   2  Prefactor      .0000        37.502        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        19.397        .13460E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        3.8183        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        5.6261        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .53237        2.1785        .75625E-03   -1.5693    
   7  norm          4.0353        4.7335        .50093E-03   -1.5668    
   8  Prefactor     1.7158        2.2306        .80040E-03   -1.5682    
   9  Prefactor      .0000        80.406        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.6661        4.6167        .34104E-03   -1.5649    
  11  Prefactor     .11102E-09    42.405        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.7315        5.6463        .38626E-03   -1.5656    
  13  Prefactor      .0000        .69421        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.411        7.8299        .29659E-03   -1.5640    
  15  Prefactor      .0000        12.271        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        4.1858        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.9866        7.7513        .73542E-03   -1.5680    
  18  Prefactor     .38858E-09    8.8193        .88527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .71713        .15343        .42519E-01   -1.0322    
  20  Prefactor     1.2133        .15666        .34328E-01   -.85922    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.80767e-07
Minuit parameter uncertainties:
  1  3.64957
  2  5.68224e-05
  3  1.62459e-05
  4  7.5611e-06
  5  1.1636e-06
  6  2.15384
  7  4.73346
  8  2.23058
  9  2.30616e-05
  10  4.61674
  11  0.000141131
  12  5.64631
  13  1.11579e-07
  14  7.82991
  15  3.11646e-05
  16  5.46133e-06
  17  7.75129
  18  0.00011599
  19  0.153522
  20  0.156724
Done.

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

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  4.035e+00  4.733e+00  0.000e+00  1.000e+06 ( 1.000e-12)
208        alpha:  2.169e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
209         beta:  1.367e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
210           Eb:  6.187e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  1.213e+00  1.567e-01  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
517   Normalization:  7.171e-01  1.535e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.22
Ra Dec: 153.199 24.664
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 1.45e-08 +/- 1.71e-08
Energy Flux (Fixed Index): 5.73e-06 +/- 6.72e-06

TS (Fixed Index): 1.22
Ra Dec: 153.199 24.664
Photon Flux Upper Limit: 6.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.42e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/642949/likelihoodResults_691632001_691891201_4FGL_J1012.7+2439_daily_bin1745.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) = 6882.42028193
delta logL = 0.210044380065

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6882.4039996
delta logL = 0.226326701591

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2658       1.0000          .0000       .10000E+07
     2 'alpha     '    1.4747       1.0000          .0000       5.0000    
     3 'Normalizat'    .72714       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2068       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6882.404     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      205 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2678        3.5492        .56012E-03    .12041E-02
   2  alpha         1.4726        .64382        .46712       -.41536E-04
   3  Normalizat    .72698        .14617        .42652E-01    .25188E-04
   4  Prefactor     1.2070        .15625        .34471E-01   -.18567E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.26778
  alpha      = 1.47265
  Normalizat = 0.726977
  Prefactor  = 1.20695
 **********
 **   18 **HESSE 
 **********

 FCN=   6882.404     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .75E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2678        4.0785        .15858E-04   -1.5672    
   2  alpha         1.4726        .84586        .23131E-01   -.42349    
   3  Normalizat    .72698        .16654        .25554E-03   -1.0284    
   4  Prefactor     1.2070        .17827        .21626E-03   -.86118    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.52878e-12
Minuit parameter uncertainties:
  1  4.07846
  2  0.866595
  3  0.166655
  4  0.178361
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/642949': 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) = 6882.4039945
delta logL = 0.226331804008

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  3.268e+00  4.078e+00  0.000e+00  1.000e+06 ( 1.000e-12)
208        alpha:  1.473e+00  8.666e-01  0.000e+00  5.000e+00 ( 1.000e+00)
209         beta:  1.367e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
210           Eb:  6.187e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  1.207e+00  1.784e-01  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
517   Normalization:  7.270e-01  1.667e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.68
Ra Dec: 153.199 24.664
Photon Index (Free Index): 1.47 +/- 0.87
Photon Flux (Free Index): 7.57e-09 +/- 1.04e-08
Energy Flux (Free Index): 9.23e-06 +/- 1.34e-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/642949/cmap_HighResolution_691632001_691891201_4FGL_J1012.7+2439_daily_bin1745.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.42e-05', comment='SUCCESS', photon_flux='1.45e-08', energy_flux2='9.23e-06', photon_flux_error='1.71e-08', dlogl='2.26e-01', energy_flux='5.73e-06', photon_flux2='7.57e-09', job_status='DONE', time_completed='2022-12-05 00:34:37.646479', photon_index_error2='0.87', photon_index2='1.47', ts='1.22', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', photon_flux_upper_limit='6.14e-08', energy_flux_error2='1.34e-05', EG='0.72', time_epoch_completed='1670229277.65', return_code='0', job_id='642949', GAL2='1.21', EG2='0.73', return_code2='0', energy_flux_error='6.72e-06', photon_flux_error2='1.04e-08', ts2='1.68', photon_index='2.17' WHERE bin_id='1745' AND source_name='4FGL J1012.7+2439' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec  5 00:34:37 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 642949: <4FGL_J1012.7+2439_daily_bin1745> in cluster <slac> Done

Job <4FGL_J1012.7+2439_daily_bin1745> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Dec  5 00:25:21 2022
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec  5 00:25:22 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec  5 00:25:22 2022
Terminated at Mon Dec  5 00:34:38 2022
Results reported at Mon Dec  5 00:34:38 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1012.7+2439_daily_bin1745 153.199 24.6638 691632001 691891201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1012.7+2439 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   536.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             385.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   555 sec.
    Turnaround time :                            557 sec.

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

