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


Performing analysis on: 4FGL_J1012.7+2439_daily_bin1768
RA = 153.199, Dec = 24.6638
tmin = 697593601, tmax = 697852801
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='267811', job_status='RUN', time_executed='2023-02-12 00:45:32.531502', time_epoch_executed='1676191532.53' WHERE source_name='4FGL J1012.7+2439' and cadence='daily' and bin_id='1768'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/267811

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/267811/ft1_4FGL_J1012.7+2439_daily_bin1768.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/267811/ft2_4FGL_J1012.7+2439_daily_bin1768.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/267811/ft1_4FGL_J1012.7+2439_daily_bin1768.fits outfile=/scratch/kocevski/267811/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin1768.fits ra=153.199 dec=24.6638 rad=12.0 tmin=697593601.0 tmax=697852801.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.72
user 3.49
sys 0.21

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

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

Number of photons that the gtmktime cut: 469

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/267811/ft1_filtered_4FGL_J1012.7+2439_daily_bin1768.fits" evtable="EVENTS" scfile=/scratch/kocevski/267811/ft2_4FGL_J1012.7+2439_daily_bin1768.fits sctable="SC_DATA" outfile=/scratch/kocevski/267811/ltcube_697593601_697852801_4FGL_J1012.7+2439_daily_bin1768.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/267811/ft2_4FGL_J1012.7+2439_daily_bin1768.fits
.....................!
real 16.44
user 16.02
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/267811/ft1_filtered_4FGL_J1012.7+2439_daily_bin1768.fits evtable="EVENTS" scfile=/scratch/kocevski/267811/ft2_4FGL_J1012.7+2439_daily_bin1768.fits sctable="SC_DATA" expcube=/scratch/kocevski/267811/ltcube_697593601_697852801_4FGL_J1012.7+2439_daily_bin1768.fits outfile=/scratch/kocevski/267811/expmap_697593601_697852801_4FGL_J1012.7+2439_daily_bin1768.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/267811/ltcube_697593601_697852801_4FGL_J1012.7+2439_daily_bin1768.fits
.....................!
real 191.86
user 186.78
sys 4.65

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/267811/ft1_filtered_4FGL_J1012.7+2439_daily_bin1768.fits scfile=/scratch/kocevski/267811/ft2_4FGL_J1012.7+2439_daily_bin1768.fits outfile=/scratch/kocevski/267811/cmap_697593601_697852801_4FGL_J1012.7+2439_daily_bin1768.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.40
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/267811/ft1_filtered_4FGL_J1012.7+2439_daily_bin1768.fits scfile=/scratch/kocevski/267811/ft2_4FGL_J1012.7+2439_daily_bin1768.fits outfile=/scratch/kocevski/267811/cmap_HighResolution_697593601_697852801_4FGL_J1012.7+2439_daily_bin1768.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.60
user 0.42
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/267811/ft1_filtered_4FGL_J1012.7+2439_daily_bin1768.fits evtable="EVENTS" scfile=/scratch/kocevski/267811/ft2_4FGL_J1012.7+2439_daily_bin1768.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/267811/Model_4FGL_J1012.7+2439_daily_bin1768.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/267811/ft1_filtered_4FGL_J1012.7+2439_daily_bin1768.fits.....................!
real 50.15
user 48.77
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2534       1.0000          .0000       .10000E+07
     2 'Prefactor '    .47562E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .40312E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    14.774       1.0000          .0000       .10000E+07
     5 'Prefactor '    5.5933       1.0000          .0000       .10000E+07
     6 'Prefactor '    .31105E-04   1.0000          .0000       .10000E+07
     7 'norm      '    46.305       1.0000          .0000       .10000E+07
     8 'Prefactor '    .62622       1.0000          .0000       .10000E+07
     9 'Prefactor '    21.789       1.0000          .0000       .10000E+07
    10 'Prefactor '    .24388E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    .56819E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    4.4255       1.0000          .0000       .10000E+07
    13 'Prefactor '    .31336       1.0000          .0000       .10000E+07
    14 'Prefactor '    22.442       1.0000          .0000       .10000E+07
    15 'Prefactor '    19.892       1.0000          .0000       .10000E+07
    16 'Prefactor '    7.5478       1.0000          .0000       .10000E+07
    17 'Prefactor '    .33326E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .14204E-01   1.0000          .0000       .10000E+07
    19 'Normalizat'    1.1986       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .53700       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=   5245.114     FROM MIGRAD    STATUS=CONVERGED    143 CALLS     1632 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2545        2.6147        .44225E-07    .11526E-04
   2  Prefactor     .22204E-09    9.0439       -.71936E-07** at limit **
   3  Prefactor      .0000        16.419       -.18908E-06** at limit **
   4  Prefactor     14.801        8.2247        .52572E-07    .10654E-01
   5  Prefactor     5.6246        9.2899        .39780E-06   -.40786E-02
   6  Prefactor      .0000        1.0664        .75530E-08** at limit **
   7  norm          46.282        4.4750        .44147E-07   -.19356    
   8  Prefactor     .62649        1.2908        .66746E-08    .16274E-03
   9  Prefactor     21.771        1.1196        .23285E-08    .95575E-01
  10  Prefactor      .0000        .87732        .17494E-06** at limit **
  11  Prefactor     .37859E-07    154.28       -.20003E-05** at limit **
  12  Prefactor     4.3801        5.5689        .17940E-06    .17630E-02
  13  Prefactor     .31234        1.6991       -.13637E-06    .12405E-02
  14  Prefactor     22.429        10.961       -.23940E-06   -.45628E-01
  15  Prefactor     19.932        1.1186        .68290E-08    .39513E-01
  16  Prefactor     7.5433        9.3049       -.23899E-06    .13752E-01
  17  Prefactor     .55511E-10    10.880        .10181E-05** at limit **
  18  Prefactor     .67724E-08    34.506        .28527E-06** at limit **
  19  Normalizat    1.1987        .20055       -.92999E-05    .19655E-03
  20  Prefactor     .53691        .19462       -.29227E-05    .13119E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.25454
  Prefactor  = 2.22045e-10
  Prefactor  = 0
  Prefactor  = 14.8008
  Prefactor  = 5.62455
  Prefactor  = 0
  norm       = 46.2822
  Prefactor  = 0.626492
  Prefactor  = 21.7711
  Prefactor  = 0
  Prefactor  = 3.78586e-08
  Prefactor  = 4.38011
  Prefactor  = 0.312341
  Prefactor  = 22.4286
  Prefactor  = 19.9325
  Prefactor  = 7.54326
  Prefactor  = 5.55112e-11
  Prefactor  = 6.77236e-09
  Normalizat = 1.19871
  Prefactor  = 0.536912
 **********
 **   18 **HESSE 
 **********

 FCN=   5245.114     FROM HESSE     STATUS=OK           335 CALLS     1967 TOTAL
                     EDM=   .46E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2545        2.6210        .68416E-03   -1.5678    
   2  Prefactor     .22204E-09    9.0465        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        16.377        .15950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     14.801        8.3013        .26032E-03   -1.5631    
   5  Prefactor     5.6246        9.3290        .42455E-03   -1.5661    
   6  Prefactor      .0000        1.0585        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          46.282        13.241        .14697E-03   -1.5572    
   8  Prefactor     .62649        1.3210        .66912E-03   -1.5692    
   9  Prefactor     21.771        21.528        .21429E-03   -1.5615    
  10  Prefactor      .0000        .87700        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .37859E-07    153.76        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.3801        5.6004        .47846E-03   -1.5666    
  13  Prefactor     .31234        1.7779        .10030E-02   -1.5697    
  14  Prefactor     22.429        11.639        .21114E-03   -1.5613    
  15  Prefactor     19.932        35.692        .22428E-03   -1.5619    
  16  Prefactor     7.5433        9.4799        .36480E-03   -1.5653    
  17  Prefactor     .55511E-10    10.879        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .67724E-08    34.503        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1987        .17790        .34927E-01   -.86643    
  20  Prefactor     .53691        .17109        .67294E-01   -1.1031    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.60314e-07
Minuit parameter uncertainties:
  1  2.62096
  2  8.82279e-05
  3  1.71406e-05
  4  8.30134
  5  9.32903
  6  1.05263e-06
  7  13.2405
  8  1.32099
  9  21.5276
  10  2.31835e-06
  11  0.00482482
  12  5.60045
  13  1.49039
  14  11.6386
  15  35.6926
  16  9.47991
  17  4.28097e-05
  18  0.000966594
  19  0.17799
  20  0.171255
Done.

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

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  4.628e+01  1.324e+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:  5.369e-01  1.713e-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.199e+00  1.780e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 37.19
Ra Dec: 153.199 24.664
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 1.67e-07 +/- 4.77e-08
Energy Flux (Fixed Index): 6.57e-05 +/- 1.88e-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) = 5245.0905993
delta logL = 0.0237530406584

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5245.0884174
delta logL = 0.0259349425987

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    45.729       1.0000          .0000       .10000E+07
     2 'alpha     '    2.2408       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1879       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .54384       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=   5245.088     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      221 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          45.729        20.492        .14789E-03    .31792E-01
   2  alpha         2.2407        .46468        .18753        .26887E-04
   3  Normalizat    1.1880        .17760        .35194E-01    .10170E-04
   4  Prefactor     .54363        .17391        .66904E-01    .27753E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 45.7291
  alpha      = 2.24073
  Normalizat = 1.18805
  Prefactor  = 0.54363
 **********
 **   18 **HESSE 
 **********

 FCN=   5245.088     FROM HESSE     STATUS=OK            31 CALLS      252 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          45.729        13.271        .59156E-05   -1.5573    
   2  alpha         2.2407        .31544        .79229E-02   -.10390    
   3  Normalizat    1.1880        .20061        .20810E-03   -.86973    
   4  Prefactor     .54363        .19577        .29611E-03   -1.1001    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.85925e-09
Minuit parameter uncertainties:
  1  13.271
  2  0.316289
  3  0.200743
  4  0.196012
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/267811': 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) = 5245.08841653
delta logL = 0.0259358117519

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  4.573e+01  1.327e+01  0.000e+00  1.000e+06 ( 1.000e-12)
208        alpha:  2.241e+00  3.163e-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:  5.436e-01  1.960e-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.188e+00  2.007e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 37.13
Ra Dec: 153.199 24.664
Photon Index (Free Index): 2.24 +/- 0.32
Photon Flux (Free Index): 1.76e-07 +/- 6.37e-08
Energy Flux (Free Index): 6.42e-05 +/- 1.92e-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/267811/cmap_HighResolution_697593601_697852801_4FGL_J1012.7+2439_daily_bin1768.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.67e-07', energy_flux2='6.42e-05', photon_flux_error='4.77e-08', dlogl='2.59e-02', energy_flux='6.57e-05', photon_flux2='1.76e-07', job_status='DONE', time_completed='2023-02-12 00:53:40.692326', photon_index_error2='0.32', photon_index2='2.24', ts='37.19', fit_tolerance='1e-08', GAL='0.54', photon_index_error='0.00', energy_flux_error2='1.92e-05', EG='1.20', time_epoch_completed='1676192020.69', return_code='0', job_id='267811', GAL2='0.54', EG2='1.19', return_code2='0', energy_flux_error='1.88e-05', photon_flux_error2='6.37e-08', ts2='37.13', photon_index='2.17' WHERE bin_id='1768' AND source_name='4FGL J1012.7+2439' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Feb 12 00:53:40 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 267811: <4FGL_J1012.7+2439_daily_bin1768> in cluster <slac> Done

Job <4FGL_J1012.7+2439_daily_bin1768> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Feb 12 00:40:14 2023
Job was executed on host(s) <bullet0272>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Feb 12 00:41:46 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Feb 12 00:41:46 2023
Terminated at Sun Feb 12 00:53:41 2023
Results reported at Sun Feb 12 00:53:41 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1012.7+2439_daily_bin1768 153.199 24.6638 697593601 697852801 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 :                                   489.61 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             277.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   715 sec.
    Turnaround time :                            807 sec.

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

