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


Performing analysis on: 4FGL_J1012.7+2439_daily_bin1708
RA = 153.199, Dec = 24.6638
tmin = 682041601, tmax = 682300801
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='90390', job_status='RUN', time_executed='2022-09-16 15:11:49.281394', time_epoch_executed='1663366309.28' WHERE source_name='4FGL J1012.7+2439' and cadence='daily' and bin_id='1708'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/90390

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/90390/ft1_4FGL_J1012.7+2439_daily_bin1708.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/90390/ft2_4FGL_J1012.7+2439_daily_bin1708.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/90390/ft1_4FGL_J1012.7+2439_daily_bin1708.fits outfile=/scratch/kocevski/90390/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin1708.fits ra=153.199 dec=24.6638 rad=12.0 tmin=682041601.0 tmax=682300801.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.00
user 3.73
sys 0.25

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

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

Number of photons that the gtmktime cut: 532

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/90390/ft1_filtered_4FGL_J1012.7+2439_daily_bin1708.fits" evtable="EVENTS" scfile=/scratch/kocevski/90390/ft2_4FGL_J1012.7+2439_daily_bin1708.fits sctable="SC_DATA" outfile=/scratch/kocevski/90390/ltcube_682041601_682300801_4FGL_J1012.7+2439_daily_bin1708.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/90390/ft2_4FGL_J1012.7+2439_daily_bin1708.fits
.....................!
real 13.69
user 13.30
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/90390/ft1_filtered_4FGL_J1012.7+2439_daily_bin1708.fits evtable="EVENTS" scfile=/scratch/kocevski/90390/ft2_4FGL_J1012.7+2439_daily_bin1708.fits sctable="SC_DATA" expcube=/scratch/kocevski/90390/ltcube_682041601_682300801_4FGL_J1012.7+2439_daily_bin1708.fits outfile=/scratch/kocevski/90390/expmap_682041601_682300801_4FGL_J1012.7+2439_daily_bin1708.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/90390/ltcube_682041601_682300801_4FGL_J1012.7+2439_daily_bin1708.fits
.....................!
real 194.06
user 187.58
sys 6.11

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/90390/ft1_filtered_4FGL_J1012.7+2439_daily_bin1708.fits scfile=/scratch/kocevski/90390/ft2_4FGL_J1012.7+2439_daily_bin1708.fits outfile=/scratch/kocevski/90390/cmap_682041601_682300801_4FGL_J1012.7+2439_daily_bin1708.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/90390/ft1_filtered_4FGL_J1012.7+2439_daily_bin1708.fits scfile=/scratch/kocevski/90390/ft2_4FGL_J1012.7+2439_daily_bin1708.fits outfile=/scratch/kocevski/90390/cmap_HighResolution_682041601_682300801_4FGL_J1012.7+2439_daily_bin1708.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.56
user 0.39
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/90390/ft1_filtered_4FGL_J1012.7+2439_daily_bin1708.fits', '/scratch/kocevski/90390/ft2_4FGL_J1012.7+2439_daily_bin1708.fits', expMap='/scratch/kocevski/90390/expmap_682041601_682300801_4FGL_J1012.7+2439_daily_bin1708.fits', expCube='/scratch/kocevski/90390/ltcube_682041601_682300801_4FGL_J1012.7+2439_daily_bin1708.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/90390/Model_4FGL_J1012.7+2439_daily_bin1708.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/90390/ft1_filtered_4FGL_J1012.7+2439_daily_bin1708.fits
Spacecraft file(s): /scratch/kocevski/90390/ft2_4FGL_J1012.7+2439_daily_bin1708.fits
Exposure map: /scratch/kocevski/90390/expmap_682041601_682300801_4FGL_J1012.7+2439_daily_bin1708.fits
Exposure cube: /scratch/kocevski/90390/ltcube_682041601_682300801_4FGL_J1012.7+2439_daily_bin1708.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/90390/Model_4FGL_J1012.7+2439_daily_bin1708.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) = 6059.15933811

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26005E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    .47275E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    40.992       1.0000          .0000       .10000E+07
     4 'Prefactor '    11.401       1.0000          .0000       .10000E+07
     5 'Prefactor '    .15535E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .15408E-05   1.0000          .0000       .10000E+07
     7 'norm      '    16.617       1.0000          .0000       .10000E+07
     8 'Prefactor '    1.7662       1.0000          .0000       .10000E+07
     9 'Prefactor '    21.192       1.0000          .0000       .10000E+07
    10 'Prefactor '    5.4375       1.0000          .0000       .10000E+07
    11 'Prefactor '    .16660       1.0000          .0000       .10000E+07
    12 'Prefactor '    5.7075       1.0000          .0000       .10000E+07
    13 'Prefactor '    .34486       1.0000          .0000       .10000E+07
    14 'Prefactor '    8.0292       1.0000          .0000       .10000E+07
    15 'Prefactor '    .15526E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .58176E-07   1.0000          .0000       .10000E+07
    17 'Prefactor '    .70401E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .53093E-02   1.0000          .0000       .10000E+07
    19 'Normalizat'    .65329       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.6349       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=   6059.158     FROM MIGRAD    STATUS=CONVERGED    133 CALLS     2228 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.4339       -.93300E-06** at limit **
   2  Prefactor     .10605E-05    17.280        .29577E-07** at limit **
   3  Prefactor     41.151        16.916        .11984E-05   -.19754    
   4  Prefactor     11.391        7.5550        .59035E-06    .25673E-01
   5  Prefactor     .33307E-09    3.1056       -.87400E-06** at limit **
   6  Prefactor      .0000        1.0605        .55636E-07** at limit **
   7  norm          16.614        2.4262        .17573E-06    .18093E-01
   8  Prefactor     1.7661        4.3534        .55771E-06    .71925E-03
   9  Prefactor     21.188        1.6221       -.11081E-06   -.22232E-02
  10  Prefactor     5.4332        6.6814        .15751E-06   -.16350E-02
  11  Prefactor     .16185E-05    2.5340        .52637E-06** at limit **
  12  Prefactor     5.7299        5.3192        .75287E-06    .38001E-02
  13  Prefactor     .34502        3.3931        .43233E-06    .10277E-02
  14  Prefactor     8.0090        3.4251       -.21292E-06   -.39779E-01
  15  Prefactor     .25338E-05    12.955        .33591E-05** at limit **
  16  Prefactor     .71609E-08    5.1529       -.29405E-06** at limit **
  17  Prefactor     .16653E-09    4.2582       -.36137E-06** at limit **
  18  Prefactor     .56488E-06    12.536       -.71826E-06** at limit **
  19  Normalizat    .65324        .21584        .12756E-05   -.12040E-04
  20  Prefactor     1.6350        .22851       -.54841E-05   -.24579E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 1.06054e-06
  Prefactor  = 41.1507
  Prefactor  = 11.391
  Prefactor  = 3.33067e-10
  Prefactor  = 0
  norm       = 16.6144
  Prefactor  = 1.76608
  Prefactor  = 21.1883
  Prefactor  = 5.4332
  Prefactor  = 1.61848e-06
  Prefactor  = 5.72986
  Prefactor  = 0.345023
  Prefactor  = 8.00896
  Prefactor  = 2.53381e-06
  Prefactor  = 7.16094e-09
  Prefactor  = 1.66533e-10
  Prefactor  = 5.64881e-07
  Normalizat = 0.653241
  Prefactor  = 1.63504
 **********
 **   18 **HESSE 
 **********

 FCN=   6059.158     FROM HESSE     STATUS=OK           337 CALLS     2565 TOTAL
                     EDM=   .21E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.4157        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10605E-05    17.916        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     41.151        42.884        .15620E-03   -1.5580    
   4  Prefactor     11.391        8.0409        .29645E-03   -1.5640    
   5  Prefactor     .33307E-09    3.1106        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        1.0563        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          16.614        9.0773        .24542E-03   -1.5626    
   8  Prefactor     1.7661        4.5507        .78786E-03   -1.5681    
   9  Prefactor     21.188        22.457        .21729E-03   -1.5616    
  10  Prefactor     5.4332        6.9514        .43068E-03   -1.5661    
  11  Prefactor     .16185E-05    42.459        .12403E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.7299        5.3832        .42021E-03   -1.5660    
  13  Prefactor     .34502        1.9282        .34273E-02   -1.5696    
  14  Prefactor     8.0090        10.445        .35360E-03   -1.5651    
  15  Prefactor     .25338E-05    14.886        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .71609E-08    5.4525        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .16653E-09    4.4486        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .56488E-06    12.996        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .65324        .19047        .71841E-01   -1.0577    
  20  Prefactor     1.6350        .19691        .52067E-01   -.73825    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12523e-06
Minuit parameter uncertainties:
  1  3.75105e-06
  2  0.00871817
  3  42.8843
  4  8.04096
  5  6.27985e-05
  6  3.15998e-06
  7  9.07736
  8  4.5507
  9  22.4566
  10  6.95146
  11  0.0165796
  12  5.38321
  13  1.6313
  14  10.4445
  15  0.0122832
  16  0.000395361
  17  5.08832e-05
  18  0.00541877
  19  0.19066
  20  0.197005
Done.

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

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  1.661e+01  9.077e+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.635e+00  1.970e-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:  6.532e-01  1.907e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.95
Ra Dec: 153.199 24.664
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 5.99e-08 +/- 3.27e-08
Energy Flux (Fixed Index): 2.36e-05 +/- 1.29e-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) = 6057.79859601
delta logL = 1.3591426911

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6057.67690089
delta logL = 1.48083781135

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.742       1.0000          .0000       .10000E+07
     2 'alpha     '    1.3123       1.0000          .0000       5.0000    
     3 'Normalizat'    .68315       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.6219       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=   6057.677     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      218 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.742        7.0049        .29210E-03   -.65598E-01
   2  alpha         1.3121        .35298        .27603       -.38601E-04
   3  Normalizat    .68320        .17866        .70404E-01    .22942E-04
   4  Prefactor     1.6219        .19511        .52247E-01    .76785E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 11.7421
  alpha      = 1.31212
  Normalizat = 0.683201
  Prefactor  = 1.62186
 **********
 **   18 **HESSE 
 **********

 FCN=   6057.677     FROM HESSE     STATUS=OK            31 CALLS      249 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.742        8.7673        .11684E-04   -1.5639    
   2  alpha         1.3121        .46125        .11655E-01   -.49514    
   3  Normalizat    .68320        .20778        .31160E-03   -1.0456    
   4  Prefactor     1.6219        .22755        .23097E-03   -.74182    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.82637e-08
Minuit parameter uncertainties:
  1  8.76733
  2  0.464697
  3  0.208017
  4  0.2277
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/90390': 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) = 6057.67690077
delta logL = 1.48083793454

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  1.174e+01  8.767e+00  0.000e+00  1.000e+06 ( 1.000e-12)
208        alpha:  1.312e+00  4.647e-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.622e+00  2.277e-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:  6.832e-01  2.080e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.96
Ra Dec: 153.199 24.664
Photon Index (Free Index): 1.31 +/- 0.46
Photon Flux (Free Index): 2.66e-08 +/- 2.00e-08
Energy Flux (Free Index): 4.60e-05 +/- 3.66e-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/90390/cmap_HighResolution_682041601_682300801_4FGL_J1012.7+2439_daily_bin1708.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.99e-08', energy_flux2='4.60e-05', photon_flux_error='3.27e-08', dlogl='1.48e+00', energy_flux='2.36e-05', photon_flux2='2.66e-08', job_status='DONE', time_completed='2022-09-16 15:20:55.225760', photon_index_error2='0.46', photon_index2='1.31', ts='10.95', fit_tolerance='1e-08', GAL='1.64', photon_index_error='0.00', energy_flux_error2='3.66e-05', EG='0.65', time_epoch_completed='1663366855.23', return_code='0', job_id='90390', GAL2='1.62', EG2='0.68', return_code2='0', energy_flux_error='1.29e-05', photon_flux_error2='2.00e-08', ts2='13.96', photon_index='2.17' WHERE bin_id='1708' AND source_name='4FGL J1012.7+2439' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 15:20:55 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 90390: <4FGL_J1012.7+2439_daily_bin1708> in cluster <slac> Done

Job <4FGL_J1012.7+2439_daily_bin1708> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 16 15:10:28 2022
Job was executed on host(s) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 15:11:06 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 15:11:06 2022
Terminated at Fri Sep 16 15:20:56 2022
Results reported at Fri Sep 16 15:20:56 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1012.7+2439_daily_bin1708 153.199 24.6638 682041601 682300801 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 :                                   548.12 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             319.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   589 sec.
    Turnaround time :                            628 sec.

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

