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


Performing analysis on: 4FGL_J1012.7+2439_daily_bin1717
RA = 153.199, Dec = 24.6638
tmin = 684374401, tmax = 684633601
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='90405', job_status='RUN', time_executed='2022-09-16 15:12:08.991757', time_epoch_executed='1663366328.99' WHERE source_name='4FGL J1012.7+2439' and cadence='daily' and bin_id='1717'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/90405

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/90405/ft1_4FGL_J1012.7+2439_daily_bin1717.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/90405/ft2_4FGL_J1012.7+2439_daily_bin1717.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/90405/ft1_4FGL_J1012.7+2439_daily_bin1717.fits outfile=/scratch/kocevski/90405/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin1717.fits ra=153.199 dec=24.6638 rad=12.0 tmin=684374401.0 tmax=684633601.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 5.08
user 4.76
sys 0.23

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

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

Number of photons that the gtmktime cut: 531

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/90405/ft1_filtered_4FGL_J1012.7+2439_daily_bin1717.fits" evtable="EVENTS" scfile=/scratch/kocevski/90405/ft2_4FGL_J1012.7+2439_daily_bin1717.fits sctable="SC_DATA" outfile=/scratch/kocevski/90405/ltcube_684374401_684633601_4FGL_J1012.7+2439_daily_bin1717.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/90405/ft2_4FGL_J1012.7+2439_daily_bin1717.fits
.....................!
real 14.94
user 14.45
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/90405/ft1_filtered_4FGL_J1012.7+2439_daily_bin1717.fits evtable="EVENTS" scfile=/scratch/kocevski/90405/ft2_4FGL_J1012.7+2439_daily_bin1717.fits sctable="SC_DATA" expcube=/scratch/kocevski/90405/ltcube_684374401_684633601_4FGL_J1012.7+2439_daily_bin1717.fits outfile=/scratch/kocevski/90405/expmap_684374401_684633601_4FGL_J1012.7+2439_daily_bin1717.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/90405/ltcube_684374401_684633601_4FGL_J1012.7+2439_daily_bin1717.fits
.....................!
real 194.03
user 186.74
sys 4.95

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/90405/ft1_filtered_4FGL_J1012.7+2439_daily_bin1717.fits scfile=/scratch/kocevski/90405/ft2_4FGL_J1012.7+2439_daily_bin1717.fits outfile=/scratch/kocevski/90405/cmap_684374401_684633601_4FGL_J1012.7+2439_daily_bin1717.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.38
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/90405/ft1_filtered_4FGL_J1012.7+2439_daily_bin1717.fits evtable="EVENTS" scfile=/scratch/kocevski/90405/ft2_4FGL_J1012.7+2439_daily_bin1717.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/90405/Model_4FGL_J1012.7+2439_daily_bin1717.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/90405/ft1_filtered_4FGL_J1012.7+2439_daily_bin1717.fits.....................!
real 54.67
user 52.78
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14371E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .10910E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    72.130       1.0000          .0000       .10000E+07
     4 'Prefactor '    4.2592       1.0000          .0000       .10000E+07
     5 'Prefactor '    1.9273       1.0000          .0000       .10000E+07
     6 'Prefactor '    .49405E-06   1.0000          .0000       .10000E+07
     7 'norm      '    26.883       1.0000          .0000       .10000E+07
     8 'Prefactor '    .22954E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    30.496       1.0000          .0000       .10000E+07
    10 'Prefactor '    .78535E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .30908       1.0000          .0000       .10000E+07
    12 'Prefactor '    19.908       1.0000          .0000       .10000E+07
    13 'Prefactor '    .88531E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    12.115       1.0000          .0000       .10000E+07
    15 'Prefactor '    .20919E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .12956E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .43299E-07   1.0000          .0000       .10000E+07
    18 'Prefactor '    .10334E-02   1.0000          .0000       .10000E+07
    19 'Normalizat'    1.4021       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .80339       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=   5747.780     FROM MIGRAD    STATUS=CONVERGED    124 CALLS     1606 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .14433E-08    3.4794        .28316E-06** at limit **
   2  Prefactor     .50848E-07    11.942        .31968E-07** at limit **
   3  Prefactor     72.287        5.5312        .42442E-06   -.23736    
   4  Prefactor     4.2282        4.9298       -.53366E-07   -.14774E-02
   5  Prefactor     1.9291        4.3034       -.30257E-07   -.27209E-03
   6  Prefactor      .0000        .66733        .56593E-08** at limit **
   7  norm          26.890        4.8791       -.91587E-06   -.37438E-01
   8  Prefactor      .0000        2.0532        .53630E-07** at limit **
   9  Prefactor     30.514        2.1338       -.14935E-06    .36032E-01
  10  Prefactor      .0000        2.2555        .67119E-07** at limit **
  11  Prefactor     .25685E-06    3.4396        .26005E-05** at limit **
  12  Prefactor     19.887        7.9430       -.16662E-05   -.89625E-01
  13  Prefactor     .33079E-01    22.290       -.85400E-06** at limit **
  14  Prefactor     12.076        2.5688       -.43605E-06   -.48969E-01
  15  Prefactor     .32518E-06    5.4954       -.15582E-05** at limit **
  16  Prefactor     .17819E-07    6.7121       -.17266E-06** at limit **
  17  Prefactor     .69389E-08    5.3518       -.36572E-06** at limit **
  18  Prefactor     .23070E-06    5.9285        .15267E-05** at limit **
  19  Normalizat    1.4024        .21976        .97961E-05   -.16746E-03
  20  Prefactor     .80333        .22450       -.10153E-05   -.10202E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.44329e-09
  Prefactor  = 5.08482e-08
  Prefactor  = 72.2874
  Prefactor  = 4.2282
  Prefactor  = 1.92914
  Prefactor  = 0
  norm       = 26.8897
  Prefactor  = 0
  Prefactor  = 30.5142
  Prefactor  = 0
  Prefactor  = 2.5685e-07
  Prefactor  = 19.8865
  Prefactor  = 0.0330789
  Prefactor  = 12.0764
  Prefactor  = 3.25184e-07
  Prefactor  = 1.78191e-08
  Prefactor  = 6.93889e-09
  Prefactor  = 2.30704e-07
  Normalizat = 1.40236
  Prefactor  = 0.803325
 **********
 **   18 **HESSE 
 **********

 FCN=   5747.780     FROM HESSE     STATUS=OK           331 CALLS     1937 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .14433E-08    3.4950        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .50848E-07    12.555        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     72.287        49.463        .11775E-03   -1.5538    
   4  Prefactor     4.2282        4.9339        .48797E-03   -1.5667    
   5  Prefactor     1.9291        4.3387        .74798E-03   -1.5680    
   6  Prefactor      .0000        .66594        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          26.890        10.558        .19291E-03   -1.5604    
   8  Prefactor      .0000        2.0274        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     30.514        45.258        .18111E-03   -1.5597    
  10  Prefactor      .0000        2.2499        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .25685E-06    46.645        .10088E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     19.887        10.437        .22419E-03   -1.5619    
  13  Prefactor     .33079E-01    1.3650        .42118E-02   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.076        10.790        .28755E-03   -1.5638    
  15  Prefactor     .32518E-06    10.377        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .17819E-07    7.0415        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .69389E-08    5.4092        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .23070E-06    9.2672        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.4024        .18860        .51199E-01   -.80561    
  20  Prefactor     .80333        .19113        .67689E-01   -.99606    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.16287e-06
Minuit parameter uncertainties:
  1  0.000141942
  2  0.00159779
  3  49.4635
  4  4.93389
  5  4.3387
  6  1.03545e-06
  7  10.5584
  8  1.04993e-05
  9  45.2588
  10  2.07308e-06
  11  0.00692268
  12  10.437
  13  0.424989
  14  10.7903
  15  0.00367391
  16  0.00070851
  17  0.000386996
  18  0.0029245
  19  0.188696
  20  0.191283
Done.

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

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  2.689e+01  1.056e+01  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:  8.033e-01  1.913e-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:  1.402e+00  1.887e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 20.56
Ra Dec: 153.199 24.664
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 9.69e-08 +/- 3.80e-08
Energy Flux (Fixed Index): 3.82e-05 +/- 1.50e-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) = 5746.19546702
delta logL = 1.58489557473

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5746.11945126
delta logL = 1.66091133489

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    21.878       1.0000          .0000       .10000E+07
     2 'alpha     '    1.3763       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4443       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78480       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=   5746.119     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      223 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          21.862        9.7975        .21385E-03   -.58837E-03
   2  alpha         1.3760        .30893        .22889       -.43780E-04
   3  Normalizat    1.4441        .18407        .50634E-01   -.15236E-06
   4  Prefactor     .78482        .19111        .68456E-01    .18695E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 21.8617
  alpha      = 1.37604
  Normalizat = 1.44412
  Prefactor  = 0.784818
 **********
 **   18 **HESSE 
 **********

 FCN=   5746.119     FROM HESSE     STATUS=OK            31 CALLS      254 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          21.862        12.774        .42771E-04   -1.5614    
   2  alpha         1.3760        .41887        .97144E-02   -.46630    
   3  Normalizat    1.4441        .21686        .22385E-03   -.79361    
   4  Prefactor     .78482        .22467        .30288E-03   -1.0029    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77666e-12
Minuit parameter uncertainties:
  1  12.7736
  2  0.421366
  3  0.216995
  4  0.224934
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/90405': 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) = 5746.11944947
delta logL = 1.66091312873

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  2.186e+01  1.277e+01  0.000e+00  1.000e+06 ( 1.000e-12)
208        alpha:  1.376e+00  4.214e-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:  7.848e-01  2.249e-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:  1.444e+00  2.170e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 23.93
Ra Dec: 153.199 24.664
Photon Index (Free Index): 1.38 +/- 0.42
Photon Flux (Free Index): 4.97e-08 +/- 3.09e-08
Energy Flux (Free Index): 7.46e-05 +/- 4.75e-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/90405/cmap_HighResolution_684374401_684633601_4FGL_J1012.7+2439_daily_bin1717.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.69e-08', energy_flux2='7.46e-05', photon_flux_error='3.80e-08', dlogl='1.66e+00', energy_flux='3.82e-05', photon_flux2='4.97e-08', job_status='DONE', time_completed='2022-09-16 15:20:45.823235', photon_index_error2='0.42', photon_index2='1.38', ts='20.56', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='4.75e-05', EG='1.40', time_epoch_completed='1663366845.82', return_code='0', job_id='90405', GAL2='0.78', EG2='1.44', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='3.09e-08', ts2='23.93', photon_index='2.17' WHERE bin_id='1717' AND source_name='4FGL J1012.7+2439' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 15:20:45 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 90405: <4FGL_J1012.7+2439_daily_bin1717> in cluster <slac> Done

Job <4FGL_J1012.7+2439_daily_bin1717> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 16 15:10:29 2022
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 15:11:21 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:21 2022
Terminated at Fri Sep 16 15:20:46 2022
Results reported at Fri Sep 16 15:20:46 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1012.7+2439_daily_bin1717 153.199 24.6638 684374401 684633601 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 :                                   513.47 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             311.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   567 sec.
    Turnaround time :                            617 sec.

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

