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


Performing analysis on: 4FGL_J1012.7+2439_weekly_bin757
RA = 153.199, Dec = 24.6638
tmin = 696816001, tmax = 697420801
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='259644', job_status='RUN', time_executed='2023-02-07 00:56:27.777097', time_epoch_executed='1675760187.78' WHERE source_name='4FGL J1012.7+2439' and cadence='weekly' and bin_id='757'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/259644

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/259644/ft1_4FGL_J1012.7+2439_weekly_bin757.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/259644/ft2_4FGL_J1012.7+2439_weekly_bin757.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/259644/ft1_4FGL_J1012.7+2439_weekly_bin757.fits outfile=/scratch/kocevski/259644/ft1_filteredMKT_4FGL_J1012.7+2439_weekly_bin757.fits ra=153.199 dec=24.6638 rad=12.0 tmin=696816001.0 tmax=697420801.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 7.65
user 7.34
sys 0.29

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

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

Number of photons that the gtmktime cut: 1240

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/259644/ft1_filtered_4FGL_J1012.7+2439_weekly_bin757.fits" evtable="EVENTS" scfile=/scratch/kocevski/259644/ft2_4FGL_J1012.7+2439_weekly_bin757.fits sctable="SC_DATA" outfile=/scratch/kocevski/259644/ltcube_696816001_697420801_4FGL_J1012.7+2439_weekly_bin757.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/259644/ft2_4FGL_J1012.7+2439_weekly_bin757.fits
.....................!
real 35.30
user 34.83
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/259644/ft1_filtered_4FGL_J1012.7+2439_weekly_bin757.fits evtable="EVENTS" scfile=/scratch/kocevski/259644/ft2_4FGL_J1012.7+2439_weekly_bin757.fits sctable="SC_DATA" expcube=/scratch/kocevski/259644/ltcube_696816001_697420801_4FGL_J1012.7+2439_weekly_bin757.fits outfile=/scratch/kocevski/259644/expmap_696816001_697420801_4FGL_J1012.7+2439_weekly_bin757.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/259644/ltcube_696816001_697420801_4FGL_J1012.7+2439_weekly_bin757.fits
.....................!
real 192.27
user 186.12
sys 5.71

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/259644/ft1_filtered_4FGL_J1012.7+2439_weekly_bin757.fits scfile=/scratch/kocevski/259644/ft2_4FGL_J1012.7+2439_weekly_bin757.fits outfile=/scratch/kocevski/259644/cmap_696816001_697420801_4FGL_J1012.7+2439_weekly_bin757.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.60
user 0.42
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/259644/ft1_filtered_4FGL_J1012.7+2439_weekly_bin757.fits scfile=/scratch/kocevski/259644/ft2_4FGL_J1012.7+2439_weekly_bin757.fits outfile=/scratch/kocevski/259644/cmap_HighResolution_696816001_697420801_4FGL_J1012.7+2439_weekly_bin757.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.59
user 0.41
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/259644/ft1_filtered_4FGL_J1012.7+2439_weekly_bin757.fits evtable="EVENTS" scfile=/scratch/kocevski/259644/ft2_4FGL_J1012.7+2439_weekly_bin757.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/259644/Model_4FGL_J1012.7+2439_weekly_bin757.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/259644/ft1_filtered_4FGL_J1012.7+2439_weekly_bin757.fits....................!
real 110.81
user 109.27
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96795E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    10.931       1.0000          .0000       .10000E+07
     3 'Prefactor '    19.016       1.0000          .0000       .10000E+07
     4 'Prefactor '    .88878       1.0000          .0000       .10000E+07
     5 'Prefactor '    12.516       1.0000          .0000       .10000E+07
     6 'Prefactor '    1.4696       1.0000          .0000       .10000E+07
     7 'norm      '    43.902       1.0000          .0000       .10000E+07
     8 'Prefactor '    .24854E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    15.634       1.0000          .0000       .10000E+07
    10 'Prefactor '    .36355E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .29961       1.0000          .0000       .10000E+07
    12 'Prefactor '    1.6362       1.0000          .0000       .10000E+07
    13 'Prefactor '    .76867       1.0000          .0000       .10000E+07
    14 'Prefactor '    14.995       1.0000          .0000       .10000E+07
    15 'Prefactor '    .20177E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .58564E-06   1.0000          .0000       .10000E+07
    17 'Prefactor '    4.4151       1.0000          .0000       .10000E+07
    18 'Prefactor '    5.3134       1.0000          .0000       .10000E+07
    19 'Normalizat'    .99262       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1475       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=   14228.76     FROM MIGRAD    STATUS=CONVERGED    104 CALLS     1465 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27756E-09    1.1370       -.14011E-07** at limit **
   2  Prefactor     10.635        4.2161       -.32908E-07    .11034E-01
   3  Prefactor     18.968        18.635       -.10715E-06    .59558E-01
   4  Prefactor     .90368        .85565        .12822E-07    .32046E-01
   5  Prefactor     12.508        5.5808        .98265E-08   -.57184E-01
   6  Prefactor     1.4703        1.0754        .40711E-08    .16240E-02
   7  norm          43.896        8.3127        .19483E-07   -.14310E-01
   8  Prefactor      .0000        2.3355        .16730E-07** at limit **
   9  Prefactor     15.504        2.8335       -.17685E-07   -.11896E-02
  10  Prefactor     .91682E-06    9.4539       -.20627E-06** at limit **
  11  Prefactor     .36827E-05    35.437       -.13261E-06** at limit **
  12  Prefactor     1.6943        4.3184       -.17960E-06   -.34340E-02
  13  Prefactor     .76793        .77263        .20296E-07    .22277E-02
  14  Prefactor     14.968        4.1417        .44495E-08    .53299E-01
  15  Prefactor     .17819E-07    7.8726        .54946E-07** at limit **
  16  Prefactor     .94369E-09    2.3620       -.12458E-06** at limit **
  17  Prefactor     4.4290        5.3420        .24981E-07    .32653E-03
  18  Prefactor     5.3589        2.6408        .45098E-08    .45312E-01
  19  Normalizat    .99285        .14397        .34519E-05    .43765E-03
  20  Prefactor     1.1474        .14464       -.11133E-06    .38706E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.77556e-10
  Prefactor  = 10.6355
  Prefactor  = 18.9682
  Prefactor  = 0.903683
  Prefactor  = 12.5077
  Prefactor  = 1.47026
  norm       = 43.8962
  Prefactor  = 0
  Prefactor  = 15.5042
  Prefactor  = 9.16822e-07
  Prefactor  = 3.68272e-06
  Prefactor  = 1.69432
  Prefactor  = 0.76793
  Prefactor  = 14.9684
  Prefactor  = 1.78191e-08
  Prefactor  = 9.4369e-10
  Prefactor  = 4.42899
  Prefactor  = 5.35886
  Normalizat = 0.992847
  Prefactor  = 1.14744
 **********
 **   18 **HESSE 
 **********

 FCN=   14228.76     FROM HESSE     STATUS=OK           345 CALLS     1810 TOTAL
                     EDM=   .21E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27756E-09    1.1355        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.635        15.612        .30279E-03   -1.5643    
   3  Prefactor     18.968        23.276        .22940E-03   -1.5621    
   4  Prefactor     .90368        6.7641        .46539E-03   -1.5689    
   5  Prefactor     12.508        6.8145        .28289E-03   -1.5637    
   6  Prefactor     1.4703        1.0774        .88624E-04   -1.5684    
   7  norm          43.896        8.6671        .15094E-03   -1.5575    
   8  Prefactor      .0000        2.3387        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.504        15.730        .25304E-03   -1.5629    
  10  Prefactor     .91682E-06    1.7649        .53030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .36827E-05    61.551        .10218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.6943        4.4571        .82602E-03   -1.5682    
  13  Prefactor     .76793        .77018        .55300E-03   -1.5690    
  14  Prefactor     14.968        7.9179        .25839E-03   -1.5631    
  15  Prefactor     .17819E-07    7.9888        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .94369E-09    2.3694        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.4290        5.3585        .47904E-03   -1.5666    
  18  Prefactor     5.3589        10.053        .43578E-03   -1.5662    
  19  Normalizat    .99285        .12530        .46074E-01   -.93270    
  20  Prefactor     1.1474        .12204        .57145E-01   -.87964    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12985e-06
Minuit parameter uncertainties:
  1  3.67143e-05
  2  15.6118
  3  23.2765
  4  4.94474
  5  6.81451
  6  1.07738
  7  8.6671
  8  1.50098e-05
  9  15.7303
  10  0.00254412
  11  0.0301118
  12  4.45713
  13  0.770185
  14  7.91791
  15  0.000754986
  16  9.32016e-05
  17  5.35855
  18  10.0532
  19  0.125341
  20  0.122068
Done.

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

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  4.390e+01  8.667e+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

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  1.147e+00  1.221e-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:  9.928e-01  1.253e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 70.81
Ra Dec: 153.199 24.664
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 1.58e-07 +/- 3.12e-08
Energy Flux (Fixed Index): 6.23e-05 +/- 1.23e-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) = 14228.6668502
delta logL = 0.0891170263567

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14228.6617857
delta logL = 0.0941814963462

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    44.106       1.0000          .0000       .10000E+07
     2 'alpha     '    2.0775       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0059       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1395       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=   14228.66     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      209 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          44.106        10.234        .15059E-03    .20319E-02
   2  alpha         2.0775        .23418        .21839       -.49019E-05
   3  Normalizat    1.0059        .12050        .46241E-01   -.85652E-04
   4  Prefactor     1.1395        .12264        .57326E-01   -.50502E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 44.1061
  alpha      = 2.07753
  Normalizat = 1.00591
  Prefactor  = 1.13949
 **********
 **   18 **HESSE 
 **********

 FCN=   14228.66     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          44.106        8.7522        .30117E-04   -1.5575    
   2  alpha         2.0775        .21079        .91341E-02   -.16980    
   3  Normalizat    1.0059        .14305        .26017E-03   -.92833    
   4  Prefactor     1.1395        .14536        .25350E-03   -.88214    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02714e-11
Minuit parameter uncertainties:
  1  8.75221
  2  0.21105
  3  0.143106
  4  0.145407
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/259644': 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) = 14228.6617857
delta logL = 0.0941814963589

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  4.411e+01  8.752e+00  0.000e+00  1.000e+06 ( 1.000e-12)
208        alpha:  2.078e+00  2.111e-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:  1.139e+00  1.454e-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.006e+00  1.431e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 70.84
Ra Dec: 153.199 24.664
Photon Index (Free Index): 2.08 +/- 0.21
Photon Flux (Free Index): 1.47e-07 +/- 3.93e-08
Energy Flux (Free Index): 6.44e-05 +/- 1.39e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/259644/cmap_HighResolution_696816001_697420801_4FGL_J1012.7+2439_weekly_bin757.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.58e-07', energy_flux2='6.44e-05', photon_flux_error='3.12e-08', dlogl='9.42e-02', energy_flux='6.23e-05', photon_flux2='1.47e-07', job_status='DONE', time_completed='2023-02-07 01:09:34.132372', photon_index_error2='0.21', photon_index2='2.08', ts='70.81', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='1.39e-05', EG='0.99', time_epoch_completed='1675760974.13', return_code='0', job_id='259644', GAL2='1.14', EG2='1.01', return_code2='0', energy_flux_error='1.23e-05', photon_flux_error2='3.93e-08', ts2='70.84', photon_index='2.17' WHERE bin_id='757' AND source_name='4FGL J1012.7+2439' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb  7 01:09:34 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0182>
Subject: Job 259644: <4FGL_J1012.7+2439_weekly_bin757> in cluster <slac> Done

Job <4FGL_J1012.7+2439_weekly_bin757> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Feb  7 00:55:20 2023
Job was executed on host(s) <bullet0182>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb  7 00:55:44 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb  7 00:55:44 2023
Terminated at Tue Feb  7 01:09:35 2023
Results reported at Tue Feb  7 01:09:35 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1012.7+2439_weekly_bin757 153.199 24.6638 696816001 697420801 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 :                                   785.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            855 sec.

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

