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


Performing analysis on: 4FGL_J1012.7+2439_daily_bin1718
RA = 153.199, Dec = 24.6638
tmin = 684633601, tmax = 684892801
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='90406', job_status='RUN', time_executed='2022-09-16 15:11:50.406712', time_epoch_executed='1663366310.41' WHERE source_name='4FGL J1012.7+2439' and cadence='daily' and bin_id='1718'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/90406

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/90406/ft1_4FGL_J1012.7+2439_daily_bin1718.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/90406/ft2_4FGL_J1012.7+2439_daily_bin1718.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/90406/ft1_4FGL_J1012.7+2439_daily_bin1718.fits outfile=/scratch/kocevski/90406/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin1718.fits ra=153.199 dec=24.6638 rad=12.0 tmin=684633601.0 tmax=684892801.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 3.23
user 3.01
sys 0.20

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

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

Number of photons that the gtmktime cut: 266

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/90406/ft1_filtered_4FGL_J1012.7+2439_daily_bin1718.fits" evtable="EVENTS" scfile=/scratch/kocevski/90406/ft2_4FGL_J1012.7+2439_daily_bin1718.fits sctable="SC_DATA" outfile=/scratch/kocevski/90406/ltcube_684633601_684892801_4FGL_J1012.7+2439_daily_bin1718.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/90406/ft2_4FGL_J1012.7+2439_daily_bin1718.fits
.....................!
real 16.56
user 16.15
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/90406/ft1_filtered_4FGL_J1012.7+2439_daily_bin1718.fits evtable="EVENTS" scfile=/scratch/kocevski/90406/ft2_4FGL_J1012.7+2439_daily_bin1718.fits sctable="SC_DATA" expcube=/scratch/kocevski/90406/ltcube_684633601_684892801_4FGL_J1012.7+2439_daily_bin1718.fits outfile=/scratch/kocevski/90406/expmap_684633601_684892801_4FGL_J1012.7+2439_daily_bin1718.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/90406/ltcube_684633601_684892801_4FGL_J1012.7+2439_daily_bin1718.fits
.....................!
real 192.70
user 186.39
sys 5.77

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/90406/ft1_filtered_4FGL_J1012.7+2439_daily_bin1718.fits scfile=/scratch/kocevski/90406/ft2_4FGL_J1012.7+2439_daily_bin1718.fits outfile=/scratch/kocevski/90406/cmap_684633601_684892801_4FGL_J1012.7+2439_daily_bin1718.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.59
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/90406/ft1_filtered_4FGL_J1012.7+2439_daily_bin1718.fits scfile=/scratch/kocevski/90406/ft2_4FGL_J1012.7+2439_daily_bin1718.fits outfile=/scratch/kocevski/90406/cmap_HighResolution_684633601_684892801_4FGL_J1012.7+2439_daily_bin1718.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.57
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/90406/ft1_filtered_4FGL_J1012.7+2439_daily_bin1718.fits evtable="EVENTS" scfile=/scratch/kocevski/90406/ft2_4FGL_J1012.7+2439_daily_bin1718.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/90406/Model_4FGL_J1012.7+2439_daily_bin1718.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/90406/ft1_filtered_4FGL_J1012.7+2439_daily_bin1718.fits.....................!
real 34.58
user 33.27
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17146E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    21.563       1.0000          .0000       .10000E+07
     3 'Prefactor '    28.240       1.0000          .0000       .10000E+07
     4 'Prefactor '    .12241E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    .28497E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    4.2158       1.0000          .0000       .10000E+07
     7 'norm      '    .29338E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .55582E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    .39930       1.0000          .0000       .10000E+07
    10 'Prefactor '    .29950E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    .14303       1.0000          .0000       .10000E+07
    12 'Prefactor '    34.028       1.0000          .0000       .10000E+07
    13 'Prefactor '    .18097E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    15.146       1.0000          .0000       .10000E+07
    15 'Prefactor '    56.406       1.0000          .0000       .10000E+07
    16 'Prefactor '    .33474E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .70270E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .64363E-01   1.0000          .0000       .10000E+07
    19 'Normalizat'    .77796       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.5698       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=   3107.930     FROM MIGRAD    STATUS=CONVERGED    148 CALLS     1597 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11102E-09    6.2160       -.43498E-06** at limit **
   2  Prefactor     21.455        6.5992        .22229E-05    .15113E-01
   3  Prefactor     28.404        38.171       -.13336E-04    .37486E-01
   4  Prefactor     .11102E-08    9.2374        .23158E-05** at limit **
   5  Prefactor     .77716E-09    6.6009        .18545E-05** at limit **
   6  Prefactor     4.2163        4.0561        .47251E-08   -.33228E-02
   7  norm          .15543E-08    11.935        .53154E-06** at limit **
   8  Prefactor     .39413E-08    43.094        .29387E-05** at limit **
   9  Prefactor     .33830E-05    97.705       -.24012E-05** at limit **
  10  Prefactor     .30875E-01    15.612        .24332E-06** at limit **
  11  Prefactor     .38858E-09    54.613        .37193E-05** at limit **
  12  Prefactor     34.050        9.7943       -.28913E-05   -.10619    
  13  Prefactor     .16653E-09    2.5265       -.81919E-06** at limit **
  14  Prefactor     15.133        7.7218       -.29895E-05   -.65967E-01
  15  Prefactor     55.356        98.527       -.63745E-05    .46683E-02
  16  Prefactor     .30975E-07    18.950       -.54381E-06** at limit **
  17  Prefactor     .40523E-08    14.544        .53709E-06** at limit **
  18  Prefactor     .72164E-08    41.796       -.45536E-05** at limit **
  19  Normalizat    .77975        .31363        .46066E-04   -.21233E-03
  20  Prefactor     1.5689        .32546        .43674E-05   -.23571E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11022e-10
  Prefactor  = 21.4552
  Prefactor  = 28.4043
  Prefactor  = 1.11022e-09
  Prefactor  = 7.77156e-10
  Prefactor  = 4.21634
  norm       = 1.55431e-09
  Prefactor  = 3.94129e-09
  Prefactor  = 3.38302e-06
  Prefactor  = 0.0308747
  Prefactor  = 3.88578e-10
  Prefactor  = 34.0498
  Prefactor  = 1.66533e-10
  Prefactor  = 15.1333
  Prefactor  = 55.3558
  Prefactor  = 3.09752e-08
  Prefactor  = 4.05231e-09
  Prefactor  = 7.21645e-09
  Normalizat = 0.779747
  Prefactor  = 1.56888
 **********
 **   18 **HESSE 
 **********

 FCN=   3107.930     FROM HESSE     STATUS=OK           343 CALLS     1940 TOTAL
                     EDM=   .51E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11102E-09    6.1726        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     21.455        42.224        .21541E-03   -1.5615    
   3  Prefactor     28.404        42.326        .18821E-03   -1.5601    
   4  Prefactor     .11102E-08    9.2149        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .77716E-09    6.5963        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.2163        4.0654        .49055E-03   -1.5667    
   7  norm          .15543E-08    11.917        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .39413E-08    4.6106        .76967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .33830E-05    108.15        .89568E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .30875E-01    5.0207        .88029E-02   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .38858E-09    54.611        .12893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     34.050        28.731        .17145E-03   -1.5591    
  13  Prefactor     .16653E-09    2.5245        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.133        28.115        .25710E-03   -1.5630    
  15  Prefactor     55.356        99.115        .13316E-03   -1.5559    
  16  Prefactor     .30975E-07    19.172        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .40523E-08    14.550        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .72164E-08    41.807        .15008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .77975        .28454        .69650E-01   -1.0082    
  20  Prefactor     1.5689        .27703        .53754E-01   -.75628    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.06182e-07
Minuit parameter uncertainties:
  1  5.84259e-05
  2  42.2246
  3  42.3266
  4  0.000201269
  5  0.000144448
  6  4.06537
  7  0.000271567
  8  0.000269448
  9  0.0382568
  10  0.787433
  11  0.000295479
  12  28.7308
  13  4.34577e-05
  14  28.1157
  15  99.1184
  16  0.0015417
  17  0.000485493
  18  0.001098
  19  0.285081
  20  0.277297
Done.

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

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  1.554e-09  2.716e-04  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.569e+00  2.773e-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.797e-01  2.851e-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.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.69e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/90406/likelihoodResults_684633601_684892801_4FGL_J1012.7+2439_daily_bin1718.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): 102
logL (Free Index) = 3107.97131895
delta logL = -0.0411776380356

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3107.35771249
delta logL = 0.572428822807

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .71709       1.0000          .0000       .10000E+07
     2 'alpha     '    4.9040       1.0000          .0000       5.0000    
     3 'Normalizat'    .67016       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.6357       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=   3107.358     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      235 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .72569        .83544        .59332E-03   -.54704E-02
   2  alpha         4.8967        3.4467        .48627       -.52028E-04
   3  Normalizat    .67027        .27546        .74519E-01   -.18121E-04
   4  Prefactor     1.6356        .28094        .52801E-01   -.24321E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.725693
  alpha      = 4.89669
  Normalizat = 0.670267
  Prefactor  = 1.6356
 **********
 **   18 **HESSE 
 **********

 FCN=   3107.358     FROM HESSE     STATUS=OK            33 CALLS      268 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .72569        2.0434        .47843E-05   -1.5691    
   2  alpha         4.8967        4.8613        .55844E-01    1.2823    
   3  Normalizat    .67027        .32127        .32988E-03   -1.0508    
   4  Prefactor     1.6356        .32952        .23342E-03   -.73810    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36409e-10
Minuit parameter uncertainties:
  1  2.04337
  2  1.76223
  3  0.322176
  4  0.329957
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/90406': 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) = 3107.35770643
delta logL = 0.572434881663

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  7.257e-01  2.043e+00  0.000e+00  1.000e+06 ( 1.000e-12)
208        alpha:  4.897e+00  1.762e+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.636e+00  3.300e-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.703e-01  3.222e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.25
Ra Dec: 153.199 24.664
Photon Index (Free Index): 4.90 +/- 1.76
Photon Flux (Free Index): 1.00e-07 +/- 1.09e-07
Energy Flux (Free Index): 1.39e-05 +/- 1.51e-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/90406/cmap_HighResolution_684633601_684892801_4FGL_J1012.7+2439_daily_bin1718.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.69e-05', comment='SUCCESS', energy_flux2='1.39e-05', dlogl='5.72e-01', photon_flux2='1.00e-07', job_status='DONE', time_completed='2022-09-16 15:19:08.106638', photon_index_error2='1.76', photon_index2='4.90', ts='-0.00', fit_tolerance='1e-08', GAL='1.57', photon_index_error='0.00', photon_flux_upper_limit='1.19e-07', energy_flux_error2='1.51e-05', EG='0.78', time_epoch_completed='1663366748.11', return_code='0', job_id='90406', GAL2='1.64', EG2='0.67', return_code2='0', photon_flux_error2='1.09e-07', ts2='1.25', photon_index='2.17' WHERE bin_id='1718' AND source_name='4FGL J1012.7+2439' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 15:19:08 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0162>
Subject: Job 90406: <4FGL_J1012.7+2439_daily_bin1718> in cluster <slac> Done

Job <4FGL_J1012.7+2439_daily_bin1718> 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) <bullet0162>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 15:11:22 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:22 2022
Terminated at Fri Sep 16 15:19:08 2022
Results reported at Fri Sep 16 15:19:08 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1012.7+2439_daily_bin1718 153.199 24.6638 684633601 684892801 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 :                                   439.46 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             285.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   466 sec.
    Turnaround time :                            519 sec.

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

