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


Performing analysis on: 4FGL_J1012.7+2439_daily_bin1752
RA = 153.199, Dec = 24.6638
tmin = 693446401, tmax = 693705601
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='259230', job_status='RUN', time_executed='2022-12-26 00:43:44.726015', time_epoch_executed='1672044224.73' WHERE source_name='4FGL J1012.7+2439' and cadence='daily' and bin_id='1752'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/259230

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/259230/ft1_4FGL_J1012.7+2439_daily_bin1752.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/259230/ft2_4FGL_J1012.7+2439_daily_bin1752.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/259230/ft1_4FGL_J1012.7+2439_daily_bin1752.fits outfile=/scratch/kocevski/259230/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin1752.fits ra=153.199 dec=24.6638 rad=12.0 tmin=693446401.0 tmax=693705601.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.53
user 3.27
sys 0.23

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

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

Number of photons that the gtmktime cut: 531

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/259230/ft1_filtered_4FGL_J1012.7+2439_daily_bin1752.fits" evtable="EVENTS" scfile=/scratch/kocevski/259230/ft2_4FGL_J1012.7+2439_daily_bin1752.fits sctable="SC_DATA" outfile=/scratch/kocevski/259230/ltcube_693446401_693705601_4FGL_J1012.7+2439_daily_bin1752.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/259230/ft2_4FGL_J1012.7+2439_daily_bin1752.fits
.....................!
real 15.29
user 14.45
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/259230/ft1_filtered_4FGL_J1012.7+2439_daily_bin1752.fits evtable="EVENTS" scfile=/scratch/kocevski/259230/ft2_4FGL_J1012.7+2439_daily_bin1752.fits sctable="SC_DATA" expcube=/scratch/kocevski/259230/ltcube_693446401_693705601_4FGL_J1012.7+2439_daily_bin1752.fits outfile=/scratch/kocevski/259230/expmap_693446401_693705601_4FGL_J1012.7+2439_daily_bin1752.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/259230/ltcube_693446401_693705601_4FGL_J1012.7+2439_daily_bin1752.fits
.....................!
real 192.12
user 186.09
sys 5.19

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/259230/ft1_filtered_4FGL_J1012.7+2439_daily_bin1752.fits scfile=/scratch/kocevski/259230/ft2_4FGL_J1012.7+2439_daily_bin1752.fits outfile=/scratch/kocevski/259230/cmap_693446401_693705601_4FGL_J1012.7+2439_daily_bin1752.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.74
user 0.39
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/259230/ft1_filtered_4FGL_J1012.7+2439_daily_bin1752.fits evtable="EVENTS" scfile=/scratch/kocevski/259230/ft2_4FGL_J1012.7+2439_daily_bin1752.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/259230/Model_4FGL_J1012.7+2439_daily_bin1752.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/259230/ft1_filtered_4FGL_J1012.7+2439_daily_bin1752.fits.....................!
real 52.99
user 51.39
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15425E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    22.909       1.0000          .0000       .10000E+07
     3 'Prefactor '    .32961       1.0000          .0000       .10000E+07
     4 'Prefactor '    .68859       1.0000          .0000       .10000E+07
     5 'Prefactor '    .36763E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    4.0474       1.0000          .0000       .10000E+07
     7 'norm      '    23.361       1.0000          .0000       .10000E+07
     8 'Prefactor '    .22650E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    .10901E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    .76369E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    .77999E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    9.9198       1.0000          .0000       .10000E+07
    13 'Prefactor '    2.4679       1.0000          .0000       .10000E+07
    14 'Prefactor '    21.655       1.0000          .0000       .10000E+07
    15 'Prefactor '    .29563E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .67777E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    .24036E-07   1.0000          .0000       .10000E+07
    18 'Prefactor '    .24523E-04   1.0000          .0000       .10000E+07
    19 'Normalizat'    1.0214       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .96492       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=   5776.162     FROM MIGRAD    STATUS=CONVERGED    138 CALLS     1226 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .38858E-09    2.2636        .94076E-09** at limit **
   2  Prefactor     22.930        1.2820        .90085E-09   -.70808E-02
   3  Prefactor     .25401E-03    34.928        .40796E-06** at limit **
   4  Prefactor     .65269        4.0570       -.10325E-06    .21588E-01
   5  Prefactor     .87153E-08    5.8661        .15454E-06** at limit **
   6  Prefactor     4.0483        2.7983        .76179E-07    .28715E-02
   7  norm          23.348        9.9845        .56602E-07    .10243    
   8  Prefactor     .34162E-06    11.024       -.23328E-07** at limit **
   9  Prefactor     .19207E-07    13.605        .49565E-06** at limit **
  10  Prefactor     .44409E-09    3.2618       -.23599E-06** at limit **
  11  Prefactor     .33142E-05    56.329        .60701E-06** at limit **
  12  Prefactor     9.9757        7.5514       -.38505E-07    .85084E-02
  13  Prefactor     2.4658        1.8013        .55308E-07    .33684E-02
  14  Prefactor     21.674        3.5528        .17418E-07    .81832E-02
  15  Prefactor     .87430E-07    21.437       -.11363E-06** at limit **
  16  Prefactor     .55511E-09    2.6761       -.94413E-07** at limit **
  17  Prefactor     .55511E-08    4.0249       -.21815E-06** at limit **
  18  Prefactor     .16098E-08    3.8406        .13952E-06** at limit **
  19  Normalizat    1.0218        .19568       -.34004E-08    .59288E-04
  20  Prefactor     .96487        .20122        .13338E-06    .43638E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.88578e-10
  Prefactor  = 22.9298
  Prefactor  = 0.000254009
  Prefactor  = 0.652693
  Prefactor  = 8.71525e-09
  Prefactor  = 4.04825
  norm       = 23.3481
  Prefactor  = 3.41616e-07
  Prefactor  = 1.92069e-08
  Prefactor  = 4.44089e-10
  Prefactor  = 3.31418e-06
  Prefactor  = 9.97571
  Prefactor  = 2.46576
  Prefactor  = 21.6739
  Prefactor  = 8.74301e-08
  Prefactor  = 5.55112e-10
  Prefactor  = 5.55112e-09
  Prefactor  = 1.60982e-09
  Normalizat = 1.02177
  Prefactor  = 0.964875
 **********
 **   18 **HESSE 
 **********

 FCN=   5776.162     FROM HESSE     STATUS=OK           331 CALLS     1557 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .38858E-09    2.2547        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     22.930        25.358        .20898E-03   -1.5612    
   3  Prefactor     .25401E-03    261.30        .98142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .65269        14.794        .61639E-03   -1.5692    
   5  Prefactor     .87153E-08    5.8639        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.0483        2.8049        .50096E-03   -1.5668    
   7  norm          23.348        10.706        .20695E-03   -1.5611    
   8  Prefactor     .34162E-06    2.1889        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .19207E-07    13.638        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .44409E-09    3.2374        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .33142E-05    59.349        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.9757        8.3290        .31791E-03   -1.5645    
  13  Prefactor     2.4658        1.8073        .65065E-03   -1.5677    
  14  Prefactor     21.674        9.4678        .21495E-03   -1.5615    
  15  Prefactor     .87430E-07    21.552        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .55511E-09    2.6802        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .55511E-08    4.1344        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .16098E-08    3.9207        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0218        .17326        .43157E-01   -.92305    
  20  Prefactor     .96487        .17438        .45827E-01   -.93910    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03362e-06
Minuit parameter uncertainties:
  1  5.88536e-05
  2  25.3577
  3  0.515284
  4  6.21481
  5  0.00045273
  6  2.80486
  7  10.7061
  8  0.00172947
  9  0.00102344
  10  7.72093e-05
  11  0.0280498
  12  8.32903
  13  1.8073
  14  9.46779
  15  0.00274502
  16  7.61739e-05
  17  0.000303318
  18  0.000159243
  19  0.173353
  20  0.174478
Done.

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

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  2.335e+01  1.071e+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:  9.649e-01  1.745e-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.022e+00  1.734e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.13
Ra Dec: 153.199 24.664
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 8.41e-08 +/- 3.86e-08
Energy Flux (Fixed Index): 3.31e-05 +/- 1.52e-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) = 5775.98869811
delta logL = 0.173008028385

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5775.98781562
delta logL = 0.1738905175

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    21.840       1.0000          .0000       .10000E+07
     2 'alpha     '    2.4310       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0011       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97774       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=   5775.988     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      256 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          21.825        189.27        .21404E-03    .58851E-02
   2  alpha         2.4302        3.5701        .26449        .31721E-04
   3  Normalizat    1.0012        .16821        .46181E-01    .73794E-05
   4  Prefactor     .97780        .15341        .45988E-01    .86641E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 21.8247
  alpha      = 2.43017
  Normalizat = 1.00119
  Prefactor  = 0.977801
 **********
 **   18 **HESSE 
 **********

 FCN=   5775.988     FROM HESSE     STATUS=OK            33 CALLS      289 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          21.825        10.679        .42807E-04   -1.5615    
   2  alpha         2.4302        .45453        .10786E-01   -.27934E-01
   3  Normalizat    1.0012        .19243        .23355E-03   -.92991    
   4  Prefactor     .97780        .20169        .24999E-03   -.93473    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19417e-12
Minuit parameter uncertainties:
  1  10.6795
  2  0.457073
  3  0.192566
  4  0.201845
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/259230': 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) = 5775.98781082
delta logL = 0.173895314008

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  2.182e+01  1.068e+01  0.000e+00  1.000e+06 ( 1.000e-12)
208        alpha:  2.430e+00  4.571e-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:  9.778e-01  2.018e-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.001e+00  1.926e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.43
Ra Dec: 153.199 24.664
Photon Index (Free Index): 2.43 +/- 0.46
Photon Flux (Free Index): 1.02e-07 +/- 5.21e-08
Energy Flux (Free Index): 3.10e-05 +/- 1.41e-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/259230/cmap_HighResolution_693446401_693705601_4FGL_J1012.7+2439_daily_bin1752.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.41e-08', energy_flux2='3.10e-05', photon_flux_error='3.86e-08', dlogl='1.74e-01', energy_flux='3.31e-05', photon_flux2='1.02e-07', job_status='DONE', time_completed='2022-12-26 00:51:42.052747', photon_index_error2='0.46', photon_index2='2.43', ts='10.13', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='1.41e-05', EG='1.02', time_epoch_completed='1672044702.05', return_code='0', job_id='259230', GAL2='0.98', EG2='1.00', return_code2='0', energy_flux_error='1.52e-05', photon_flux_error2='5.21e-08', ts2='10.43', photon_index='2.17' WHERE bin_id='1752' AND source_name='4FGL J1012.7+2439' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec 26 00:51:42 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 259230: <4FGL_J1012.7+2439_daily_bin1752> in cluster <slac> Done

Job <4FGL_J1012.7+2439_daily_bin1752> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Dec 26 00:40:22 2022
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec 26 00:41:54 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec 26 00:41:54 2022
Terminated at Mon Dec 26 00:51:42 2022
Results reported at Mon Dec 26 00:51:42 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1012.7+2439_daily_bin1752 153.199 24.6638 693446401 693705601 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 :                                   478.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   588 sec.
    Turnaround time :                            680 sec.

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

