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


Performing analysis on: 4FGL_J1012.7+2439_weekly_bin754
RA = 153.199, Dec = 24.6638
tmin = 695001601, tmax = 695606401
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='950987', job_status='RUN', time_executed='2023-01-17 00:59:28.554822', time_epoch_executed='1673945968.55' WHERE source_name='4FGL J1012.7+2439' and cadence='weekly' and bin_id='754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/950987

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/950987/ft1_4FGL_J1012.7+2439_weekly_bin754.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/950987/ft2_4FGL_J1012.7+2439_weekly_bin754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/950987/ft1_4FGL_J1012.7+2439_weekly_bin754.fits outfile=/scratch/kocevski/950987/ft1_filteredMKT_4FGL_J1012.7+2439_weekly_bin754.fits ra=153.199 dec=24.6638 rad=12.0 tmin=695001601.0 tmax=695606401.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 5.63
user 5.33
sys 0.26

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

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

Number of photons that the gtmktime cut: 435

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/950987/ft1_filtered_4FGL_J1012.7+2439_weekly_bin754.fits" evtable="EVENTS" scfile=/scratch/kocevski/950987/ft2_4FGL_J1012.7+2439_weekly_bin754.fits sctable="SC_DATA" outfile=/scratch/kocevski/950987/ltcube_695001601_695606401_4FGL_J1012.7+2439_weekly_bin754.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/950987/ft2_4FGL_J1012.7+2439_weekly_bin754.fits
.....................!
real 34.45
user 33.95
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/950987/ft1_filtered_4FGL_J1012.7+2439_weekly_bin754.fits evtable="EVENTS" scfile=/scratch/kocevski/950987/ft2_4FGL_J1012.7+2439_weekly_bin754.fits sctable="SC_DATA" expcube=/scratch/kocevski/950987/ltcube_695001601_695606401_4FGL_J1012.7+2439_weekly_bin754.fits outfile=/scratch/kocevski/950987/expmap_695001601_695606401_4FGL_J1012.7+2439_weekly_bin754.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/950987/ltcube_695001601_695606401_4FGL_J1012.7+2439_weekly_bin754.fits
.....................!
real 192.10
user 186.03
sys 5.60

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/950987/ft1_filtered_4FGL_J1012.7+2439_weekly_bin754.fits scfile=/scratch/kocevski/950987/ft2_4FGL_J1012.7+2439_weekly_bin754.fits outfile=/scratch/kocevski/950987/cmap_695001601_695606401_4FGL_J1012.7+2439_weekly_bin754.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.41
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14565E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    25.201       1.0000          .0000       .10000E+07
     3 'Prefactor '    29.056       1.0000          .0000       .10000E+07
     4 'Prefactor '    8.1721       1.0000          .0000       .10000E+07
     5 'Prefactor '    .20332E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    1.1322       1.0000          .0000       .10000E+07
     7 'norm      '    1.2383       1.0000          .0000       .10000E+07
     8 'Prefactor '    5.6300       1.0000          .0000       .10000E+07
     9 'Prefactor '    .88615E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    2.2277       1.0000          .0000       .10000E+07
    11 'Prefactor '    51.282       1.0000          .0000       .10000E+07
    12 'Prefactor '    4.9303       1.0000          .0000       .10000E+07
    13 'Prefactor '    .10181E-05   1.0000          .0000       .10000E+07
    14 'Prefactor '    22.673       1.0000          .0000       .10000E+07
    15 'Prefactor '    .32830E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .17597E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .21121E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .46517E-05   1.0000          .0000       .10000E+07
    19 'Normalizat'    .53256       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.6423       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=   5141.621     FROM MIGRAD    STATUS=CONVERGED    158 CALLS     1577 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .39187E-05    61.320        .86792E-06** at limit **
   2  Prefactor     25.230        7.3435       -.22545E-06    .31133E-01
   3  Prefactor     29.084        2.9841        .52905E-07    .31130E-01
   4  Prefactor     8.0864        10.165        .50711E-08   -.13731E-02
   5  Prefactor     .10128E-03    224.47        .49605E-05** at limit **
   6  Prefactor     1.1325        2.0460       -.49270E-07   -.78964E-03
   7  norm          1.3240        13.799        .71771E-06   -.61119E-04
   8  Prefactor     5.5878        6.4858       -.87857E-08   -.25869E-02
   9  Prefactor     .12376E-05    36.030       -.31513E-06** at limit **
  10  Prefactor     2.2445        5.6231       -.66772E-07   -.73978E-03
  11  Prefactor     50.357        14.594        .36842E-06   -.31036    
  12  Prefactor     4.8500        7.8607        .71809E-07   -.56590E-03
  13  Prefactor      .0000        1.4346       -.14589E-06** at limit **
  14  Prefactor     22.468        11.460        .41393E-07   -.17056E-02
  15  Prefactor     .38858E-09    9.4373        .22270E-06** at limit **
  16  Prefactor      .0000        2.9733        .19933E-06** at limit **
  17  Prefactor      .0000        3.2252        .18013E-07** at limit **
  18  Prefactor     .59952E-08    31.417        .19559E-06** at limit **
  19  Normalizat    .53514        .24735        .14857E-05   -.85170E-04
  20  Prefactor     1.6411        .24802       -.50160E-05   -.10907E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.9187e-06
  Prefactor  = 25.2302
  Prefactor  = 29.084
  Prefactor  = 8.08644
  Prefactor  = 0.000101277
  Prefactor  = 1.13248
  norm       = 1.32403
  Prefactor  = 5.58781
  Prefactor  = 1.23757e-06
  Prefactor  = 2.24446
  Prefactor  = 50.3571
  Prefactor  = 4.85002
  Prefactor  = 0
  Prefactor  = 22.4682
  Prefactor  = 3.88578e-10
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 5.9952e-09
  Normalizat = 0.53514
  Prefactor  = 1.64109
 **********
 **   18 **HESSE 
 **********

 FCN=   5141.621     FROM HESSE     STATUS=OK           343 CALLS     1920 TOTAL
                     EDM=   .57E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .39187E-05    61.657        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     25.230        57.145        .19924E-03   -1.5608    
   3  Prefactor     29.084        69.039        .18555E-03   -1.5600    
   4  Prefactor     8.0864        10.282        .35047E-03   -1.5651    
   5  Prefactor     .10128E-03    21.266        .70253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.1325        2.4943        .31146E-02   -1.5687    
   7  norm          1.3240        13.868        .10079E-02   -1.5685    
   8  Prefactor     5.5878        6.7612        .42314E-03   -1.5661    
   9  Prefactor     .12376E-05    36.206        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.2445        5.7756        .68856E-03   -1.5678    
  11  Prefactor     50.357        45.955        .13965E-03   -1.5566    
  12  Prefactor     4.8500        7.9581        .45273E-03   -1.5664    
  13  Prefactor      .0000        1.4283        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     22.468        11.572        .21007E-03   -1.5613    
  15  Prefactor     .38858E-09    9.4784        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        2.9946        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        3.2433        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .59952E-08    31.554        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .53514        .22452        .79269E-01   -1.1081    
  20  Prefactor     1.6411        .21764        .51193E-01   -.73661    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.66459e-06
Minuit parameter uncertainties:
  1  0.0310884
  2  57.1462
  3  69.0409
  4  10.2824
  5  0.0928168
  6  2.49431
  7  8.57011
  8  6.7612
  9  0.0133876
  10  5.77559
  11  45.9553
  12  7.95808
  13  4.02549e-06
  14  11.5715
  15  0.000121207
  16  8.00961e-06
  17  5.23552e-06
  18  0.00087081
  19  0.224905
  20  0.217769
Done.

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

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  1.324e+00  8.570e+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.641e+00  2.178e-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:  5.351e-01  2.249e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.03
Ra Dec: 153.199 24.664
Photon Flux Upper Limit: 9.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.57e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/950987/likelihoodResults_695001601_695606401_4FGL_J1012.7+2439_weekly_bin754.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5141.61961447
delta logL = 0.00121415196918

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5141.61959475
delta logL = 0.00123387585154

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3359       1.0000          .0000       .10000E+07
     2 'alpha     '    2.2950       1.0000          .0000       5.0000    
     3 'Normalizat'    .53461       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.6414       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5141.620     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      278 TOTAL
                     EDM=   .32E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3500        15.249        .18976E-03    .23360E-03
   2  alpha         2.2995        3.5734        .63982E-01    .98723E-06
   3  Normalizat    .53460        .22743        .35122E-03   -.44669E-05
   4  Prefactor     1.6413        .24534        .22628E-03    .30145E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 1.35002
  alpha      = 2.29952
  Normalizat = 0.5346
  Prefactor  = 1.64131
 **********
 **   18 **HESSE 
 **********

 FCN=   5141.620     FROM HESSE     STATUS=OK            27 CALLS      305 TOTAL
                     EDM=   .51E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3500        13.113        .75902E-05   -1.5685    
   2  alpha         2.2995        3.5360        .25593E-02   -.80280E-01
   3  Normalizat    .53460        .22752        .14049E-04   -1.1084    
   4  Prefactor     1.6413        .24512        .90513E-05   -.73655    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.13295e-13
Minuit parameter uncertainties:
  1  8.41486
  2  2.64293
  3  0.227922
  4  0.2453
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/950987': 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) = 5141.61959148
delta logL = 0.00123714865276

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  1.350e+00  8.415e+00  0.000e+00  1.000e+06 ( 1.000e-12)
208        alpha:  2.300e+00  2.643e+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.641e+00  2.453e-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:  5.346e-01  2.279e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
Ra Dec: 153.199 24.664

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/950987/cmap_HighResolution_695001601_695606401_4FGL_J1012.7+2439_weekly_bin754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.57e-05', job_status='DONE', photon_flux_upper_limit='9.06e-08', time_completed='2023-01-17 01:08:25.404043', job_id='950987', GAL2='1.64', fit_tolerance='1e-08', EG2='0.53', EG='0.54', time_epoch_completed='1673946505.4', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='1.64', dlogl='1.24e-03', ts2='0.03', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='754' AND source_name='4FGL J1012.7+2439' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jan 17 01:08:25 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 950987: <4FGL_J1012.7+2439_weekly_bin754> in cluster <slac> Done

Job <4FGL_J1012.7+2439_weekly_bin754> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Jan 17 00:55:22 2023
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan 17 00:55:30 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan 17 00:55:30 2023
Terminated at Tue Jan 17 01:08:26 2023
Results reported at Tue Jan 17 01:08:26 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1012.7+2439_weekly_bin754 153.199 24.6638 695001601 695606401 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 :                                   538.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   775 sec.
    Turnaround time :                            784 sec.

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

