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 205 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_J1012.7+2439_daily_bin1759
RA = 153.199, Dec = 24.6638
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='554398', job_status='RUN', time_executed='2023-01-16 01:03:17.826455', time_epoch_executed='1673859797.83' WHERE source_name='4FGL J1012.7+2439' and cadence='daily' and bin_id='1759'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/554398

Creating custom pfile directory:
/scratch/kocevski/554398/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/554398/ft1_4FGL_J1012.7+2439_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/554398/ft2_4FGL_J1012.7+2439_daily_bin1759.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/554398/ft1_4FGL_J1012.7+2439_daily_bin1759.fits outfile=/scratch/kocevski/554398/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin1759.fits ra=153.199 dec=24.6638 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.73
user 2.51
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/554398/ft2_4FGL_J1012.7+2439_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/554398/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin1759.fits evtable="EVENTS" outfile="/scratch/kocevski/554398/ft1_filtered_4FGL_J1012.7+2439_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.52
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 131

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/554398/ft1_filtered_4FGL_J1012.7+2439_daily_bin1759.fits" evtable="EVENTS" scfile=/scratch/kocevski/554398/ft2_4FGL_J1012.7+2439_daily_bin1759.fits sctable="SC_DATA" outfile=/scratch/kocevski/554398/ltcube_695260801_695520001_4FGL_J1012.7+2439_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/554398/ft2_4FGL_J1012.7+2439_daily_bin1759.fits
.....................!
real 15.50
user 15.11
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/554398/ft1_filtered_4FGL_J1012.7+2439_daily_bin1759.fits evtable="EVENTS" scfile=/scratch/kocevski/554398/ft2_4FGL_J1012.7+2439_daily_bin1759.fits sctable="SC_DATA" expcube=/scratch/kocevski/554398/ltcube_695260801_695520001_4FGL_J1012.7+2439_daily_bin1759.fits outfile=/scratch/kocevski/554398/expmap_695260801_695520001_4FGL_J1012.7+2439_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/554398/ltcube_695260801_695520001_4FGL_J1012.7+2439_daily_bin1759.fits
.....................!
real 191.26
user 185.70
sys 5.16

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/554398/ft1_filtered_4FGL_J1012.7+2439_daily_bin1759.fits scfile=/scratch/kocevski/554398/ft2_4FGL_J1012.7+2439_daily_bin1759.fits outfile=/scratch/kocevski/554398/cmap_695260801_695520001_4FGL_J1012.7+2439_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=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.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/554398/ft1_filtered_4FGL_J1012.7+2439_daily_bin1759.fits scfile=/scratch/kocevski/554398/ft2_4FGL_J1012.7+2439_daily_bin1759.fits outfile=/scratch/kocevski/554398/cmap_HighResolution_695260801_695520001_4FGL_J1012.7+2439_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=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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/554398/ft1_filtered_4FGL_J1012.7+2439_daily_bin1759.fits evtable="EVENTS" scfile=/scratch/kocevski/554398/ft2_4FGL_J1012.7+2439_daily_bin1759.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/554398/Model_4FGL_J1012.7+2439_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/554398/ft1_filtered_4FGL_J1012.7+2439_daily_bin1759.fits......................!
real 24.91
user 23.58
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .40264E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    .24828E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .99788E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    .28036E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    50.067       1.0000          .0000       .10000E+07
     6 'Prefactor '    .95345E-05   1.0000          .0000       .10000E+07
     7 'norm      '    .19146E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .69555E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .29337       1.0000          .0000       .10000E+07
    10 'Prefactor '    .31763E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    105.65       1.0000          .0000       .10000E+07
    12 'Prefactor '    .36792E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .10064E-05   1.0000          .0000       .10000E+07
    14 'Prefactor '    23.031       1.0000          .0000       .10000E+07
    15 'Prefactor '    .90649E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .68505E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .30914E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .17116E-01   1.0000          .0000       .10000E+07
    19 'Normalizat'    .32752       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.4842       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=   1602.328     FROM MIGRAD    STATUS=CONVERGED    213 CALLS     1276 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .98388E-06    35.668       -.17723E-06** at limit **
   2  Prefactor     .22751E-05    71.436        .37407E-06** at limit **
   3  Prefactor     .28366E-06    139.68        .67852E-06** at limit **
   4  Prefactor     .66613E-09    13.151        .28481E-06** at limit **
   5  Prefactor     51.230        16.878       -.82593E-07    .11017    
   6  Prefactor      .0000        3.5863       -.51482E-07** at limit **
   7  norm          .11102E-09    11.317       -.38425E-06** at limit **
   8  Prefactor     .10242E-05    41.518        .29159E-06** at limit **
   9  Prefactor     .86042E-08    122.01       -.17666E-06** at limit **
  10  Prefactor     .55511E-10    9.0425        .53245E-06** at limit **
  11  Prefactor     121.88        111.39        .30979E-06   -.11330E-02
  12  Prefactor      .0000        9.0961       -.21077E-06** at limit **
  13  Prefactor      .0000        3.1849       -.17204E-06** at limit **
  14  Prefactor     23.210        17.245        .56667E-07    .57457E-02
  15  Prefactor     .92593E-07    33.223        .18185E-06** at limit **
  16  Prefactor      .0000        7.4583        .19906E-06** at limit **
  17  Prefactor      .0000        6.5732       -.19175E-06** at limit **
  18  Prefactor      .0000        16.990       -.39634E-06** at limit **
  19  Normalizat    .31390        .39395       -.37840E-04   -.47140E-05
  20  Prefactor     1.4911        .40849        .25215E-04   -.16423E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.8388e-07
  Prefactor  = 2.27507e-06
  Prefactor  = 2.83662e-07
  Prefactor  = 6.66134e-10
  Prefactor  = 51.2303
  Prefactor  = 0
  norm       = 1.11022e-10
  Prefactor  = 1.02424e-06
  Prefactor  = 8.60423e-09
  Prefactor  = 5.55112e-11
  Prefactor  = 121.878
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 23.21
  Prefactor  = 9.25926e-08
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Normalizat = 0.313902
  Prefactor  = 1.49114
 **********
 **   18 **HESSE 
 **********

 FCN=   1602.328     FROM HESSE     STATUS=OK           321 CALLS     1597 TOTAL
                     EDM=   .42E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .98388E-06    37.882        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .22751E-05    76.917        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .28366E-06    140.32        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .66613E-09    13.175        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     51.230        37.754        .14134E-03   -1.5565    
   6  Prefactor      .0000        3.5760        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .11102E-09    11.326        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10242E-05    43.315        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .86042E-08    121.81        .10306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .55511E-10    9.0064        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     121.88        111.80        .97294E-04   -1.5487    
  12  Prefactor      .0000        9.0726        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        3.1834        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     23.210        17.486        .20843E-03   -1.5612    
  15  Prefactor     .92593E-07    33.398        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        7.4611        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        6.5891        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        16.925        .17234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .31390        .38201        .89769E-01   -1.2202    
  20  Prefactor     1.4911        .38460        .45892E-01   -.77788    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.16381e-07
Minuit parameter uncertainties:
  1  0.0122102
  2  0.0264572
  3  0.0126178
  4  0.000188741
  5  37.7542
  6  1.29244e-06
  7  7.40294e-05
  8  0.0133214
  9  0.00204901
  10  4.92166e-05
  11  111.802
  12  1.98632e-05
  13  3.37606e-07
  14  17.4861
  15  0.00351709
  16  1.71797e-05
  17  5.81035e-08
  18  1.50703e-05
  19  0.385241
  20  0.385349
Done.

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

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  1.110e-10  7.403e-05  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.491e+00  3.853e-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:  3.139e-01  3.852e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 153.199 24.664
Photon Flux Upper Limit: 1.81e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.14e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/554398/likelihoodResults_695260801_695520001_4FGL_J1012.7+2439_daily_bin1759.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) = 1602.37049133
delta logL = -0.0422765858414

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1602.32821479
delta logL = -4.48974333267e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .66613E-09   1.0000          .0000       .10000E+07
     2 'alpha     '    3.6475       1.0000          .0000       5.0000    
     3 'Normalizat'    .31387       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4911       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   1602.328     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      214 TOTAL
                     EDM=   .88E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        6.2481        .42118E-03** at limit **
   2  alpha         1.2850        1.0227       -.11700E-03     .0000    
   3  Normalizat    .31390        .61827       -.42373E-04   -.59607E-04
   4  Prefactor     1.4911        1.0496        .21226E-04   -.18469E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 1.28498
  Normalizat = 0.313898
  Prefactor  = 1.49115
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   1602.328     FROM HESSE     STATUS=FAILED         9 CALLS      223 TOTAL
                     EDM=   .88E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        6.2481        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .37298        1.0533       -.11700E-03   -.50752    
   3  Normalizat    .31390        .61827       -.42373E-04   -1.2202    
   4  Prefactor     1.4911        1.0496        .21226E-04   -.77788    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 8.79941e-11
Minuit parameter uncertainties:
  1  1.95386e-05
  2  1.06432
  3  0.632497
  4  1.06542
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/554398': 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): 101
logL (Free Index) = 1602.32821474
delta logL = -6.04813976679e-11

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  0.000e+00  1.954e-05  0.000e+00  1.000e+06 ( 1.000e-12)
208        alpha:  1.285e+00  1.064e+00  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.491e+00  1.065e+00  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:  3.139e-01  6.325e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 153.199 24.664

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/554398/cmap_HighResolution_695260801_695520001_4FGL_J1012.7+2439_daily_bin1759.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.14e-05', job_status='DONE', photon_flux_upper_limit='1.81e-07', time_completed='2023-01-16 01:09:24.449011', job_id='554398', GAL2='1.49', fit_tolerance='1e-08', EG2='0.31', EG='0.31', time_epoch_completed='1673860164.45', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.49', dlogl='-6.05e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='1759' AND source_name='4FGL J1012.7+2439' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jan 16 01:09:24 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 554398: <4FGL_J1012.7+2439_daily_bin1759> in cluster <slac> Done

Job <4FGL_J1012.7+2439_daily_bin1759> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Jan 16 00:55:41 2023
Job was executed on host(s) <bullet0149>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jan 16 00:59:42 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jan 16 00:59:42 2023
Terminated at Mon Jan 16 01:09:25 2023
Results reported at Mon Jan 16 01:09:25 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1012.7+2439_daily_bin1759 153.199 24.6638 695260801 695520001 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 :                                   369.53 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             227.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   582 sec.
    Turnaround time :                            824 sec.

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

