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


Performing analysis on: 4FGL_J0011.4+0057_weekly_bin762
RA = 2.8551, Dec = 0.9646
tmin = 699840001, tmax = 700444801
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='955089', job_status='RUN', time_executed='2023-03-14 00:25:57.707270', time_epoch_executed='1678778757.71' WHERE source_name='4FGL J0011.4+0057' and cadence='weekly' and bin_id='762'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/955089

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/955089/ft1_4FGL_J0011.4+0057_weekly_bin762.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/955089/ft2_4FGL_J0011.4+0057_weekly_bin762.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/955089/ft1_4FGL_J0011.4+0057_weekly_bin762.fits outfile=/scratch/kocevski/955089/ft1_filteredMKT_4FGL_J0011.4+0057_weekly_bin762.fits ra=2.8551 dec=0.9646 rad=12.0 tmin=699840001.0 tmax=700444801.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 8.12
user 7.81
sys 0.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/955089/ft2_4FGL_J0011.4+0057_weekly_bin762.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/955089/ft2_4FGL_J0011.4+0057_weekly_bin762.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/955089/ft1_filteredMKT_4FGL_J0011.4+0057_weekly_bin762.fits evtable="EVENTS" outfile="/scratch/kocevski/955089/ft1_filtered_4FGL_J0011.4+0057_weekly_bin762.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: 1229

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/955089/ft1_filtered_4FGL_J0011.4+0057_weekly_bin762.fits" evtable="EVENTS" scfile=/scratch/kocevski/955089/ft2_4FGL_J0011.4+0057_weekly_bin762.fits sctable="SC_DATA" outfile=/scratch/kocevski/955089/ltcube_699840001_700444801_4FGL_J0011.4+0057_weekly_bin762.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/955089/ft2_4FGL_J0011.4+0057_weekly_bin762.fits
.....................!
real 26.00
user 25.59
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/955089/ft1_filtered_4FGL_J0011.4+0057_weekly_bin762.fits evtable="EVENTS" scfile=/scratch/kocevski/955089/ft2_4FGL_J0011.4+0057_weekly_bin762.fits sctable="SC_DATA" expcube=/scratch/kocevski/955089/ltcube_699840001_700444801_4FGL_J0011.4+0057_weekly_bin762.fits outfile=/scratch/kocevski/955089/expmap_699840001_700444801_4FGL_J0011.4+0057_weekly_bin762.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/955089/ltcube_699840001_700444801_4FGL_J0011.4+0057_weekly_bin762.fits
.....................!
real 193.99
user 188.34
sys 5.32

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 169 point sources and 0 extended sources

Setting source of interest to:
4FGL J0011.4+0057 @ 2.8551 0.9646

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/955089/ft1_filtered_4FGL_J0011.4+0057_weekly_bin762.fits scfile=/scratch/kocevski/955089/ft2_4FGL_J0011.4+0057_weekly_bin762.fits outfile=/scratch/kocevski/955089/cmap_699840001_700444801_4FGL_J0011.4+0057_weekly_bin762.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=2.8551 yref=0.9646 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.58
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/955089/ft1_filtered_4FGL_J0011.4+0057_weekly_bin762.fits scfile=/scratch/kocevski/955089/ft2_4FGL_J0011.4+0057_weekly_bin762.fits outfile=/scratch/kocevski/955089/cmap_HighResolution_699840001_700444801_4FGL_J0011.4+0057_weekly_bin762.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=2.8551 yref=0.9646 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.57
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/955089/ft1_filtered_4FGL_J0011.4+0057_weekly_bin762.fits evtable="EVENTS" scfile=/scratch/kocevski/955089/ft2_4FGL_J0011.4+0057_weekly_bin762.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/955089/Model_4FGL_J0011.4+0057_weekly_bin762.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/955089/ft1_filtered_4FGL_J0011.4+0057_weekly_bin762.fits.....................!
real 127.84
user 126.41
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/955089/ft1_filtered_4FGL_J0011.4+0057_weekly_bin762.fits', '/scratch/kocevski/955089/ft2_4FGL_J0011.4+0057_weekly_bin762.fits', expMap='/scratch/kocevski/955089/expmap_699840001_700444801_4FGL_J0011.4+0057_weekly_bin762.fits', expCube='/scratch/kocevski/955089/ltcube_699840001_700444801_4FGL_J0011.4+0057_weekly_bin762.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/955089/Model_4FGL_J0011.4+0057_weekly_bin762.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0011.4+0057'

4FGL J0011.4+0057
   Spectrum: PowerLaw
51     Prefactor:  3.882e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
52         Index:  2.334e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
53         Scale:  1.182e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/955089/ft1_filtered_4FGL_J0011.4+0057_weekly_bin762.fits
Spacecraft file(s): /scratch/kocevski/955089/ft2_4FGL_J0011.4+0057_weekly_bin762.fits
Exposure map: /scratch/kocevski/955089/expmap_699840001_700444801_4FGL_J0011.4+0057_weekly_bin762.fits
Exposure cube: /scratch/kocevski/955089/ltcube_699840001_700444801_4FGL_J0011.4+0057_weekly_bin762.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/955089/Model_4FGL_J0011.4+0057_weekly_bin762.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) = 13741.1636429

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .38586E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    19.344       1.0000          .0000       .10000E+07
     3 'Prefactor '    4.6030       1.0000          .0000       .10000E+07
     4 'norm      '    .22863E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    .11031E-03   1.0000          .0000       .10000E+07
     6 'norm      '    .48783E-06   1.0000          .0000       .10000E+07
     7 'norm      '    2.4036       1.0000          .0000       .10000E+07
     8 'Prefactor '    .93327       1.0000          .0000       .10000E+07
     9 'norm      '    7.8967       1.0000          .0000       .10000E+07
    10 'Prefactor '    5.0662       1.0000          .0000       .10000E+07
    11 'Prefactor '    2.2859       1.0000          .0000       .10000E+07
    12 'Prefactor '    .56186E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    .49828E-03   1.0000          .0000       .10000E+07
    14 'norm      '    18.024       1.0000          .0000       .10000E+07
    15 'Prefactor '    6.9761       1.0000          .0000       .10000E+07
    16 'Prefactor '    .50637E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .75443E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .25645E-04   1.0000          .0000       .10000E+07
    19 'Normalizat'    1.2041       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .95991       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13741.14     FROM MIGRAD    STATUS=CONVERGED    124 CALLS     1202 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.4264        .34438E-07** at limit **
   2  Prefactor     19.339        3.3180       -.18719E-07    .15142    
   3  Prefactor     4.6081        3.2528        .26716E-07    .46328E-02
   4  norm          .11380E-07    4.2674       -.57235E-07** at limit **
   5  Prefactor     .45908E-07    20.383        .97060E-07** at limit **
   6  norm           .0000        .70441       -.15402E-07** at limit **
   7  norm          2.3943        2.4224       -.21692E-07   -.26666E-02
   8  Prefactor     .93983        .53124       -.39728E-08    .10663E-01
   9  norm          7.9096        7.6986       -.57517E-07   -.14684E-02
  10  Prefactor     5.0656        2.1249       -.36782E-07   -.13976E-01
  11  Prefactor     2.2887        2.6379       -.88120E-07   -.95148E-02
  12  Prefactor     .75828E-07    3.4828       -.44535E-07** at limit **
  13  Prefactor     .49960E-09    5.3984        .35076E-08** at limit **
  14  norm          18.415        1.9226       -.23749E-09    .11718E-02
  15  Prefactor     6.9643        3.8833        .23843E-08    .29000E-02
  16  Prefactor     .38691E-07    15.078        .11114E-07** at limit **
  17  Prefactor     .36915E-07    8.5598       -.83516E-08** at limit **
  18  Prefactor     .22204E-09    3.5034        .17620E-07** at limit **
  19  Normalizat    1.2040        .15896        .16959E-06    .58794E-04
  20  Prefactor     .95984        .11430        .43095E-06    .17735E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 19.3394
  Prefactor  = 4.60809
  norm       = 1.13798e-08
  Prefactor  = 4.59077e-08
  norm       = 0
  norm       = 2.39431
  Prefactor  = 0.939833
  norm       = 7.90962
  Prefactor  = 5.06565
  Prefactor  = 2.28873
  Prefactor  = 7.58282e-08
  Prefactor  = 4.996e-10
  norm       = 18.4153
  Prefactor  = 6.96433
  Prefactor  = 3.86913e-08
  Prefactor  = 3.69149e-08
  Prefactor  = 2.22045e-10
  Normalizat = 1.20404
  Prefactor  = 0.95984
 **********
 **   18 **HESSE 
 **********

 FCN=   13741.14     FROM HESSE     STATUS=OK           339 CALLS     1541 TOTAL
                     EDM=   .57E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.4260        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.339        12.983        .22744E-03   -1.5620    
   3  Prefactor     4.6081        3.2610        .46891E-03   -1.5665    
   4  norm          .11380E-07    1.0881        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .45908E-07    20.477        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        .70472        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.3943        2.4543        .66015E-03   -1.5677    
   8  Prefactor     .93983        11.580        .43487E-03   -1.5689    
   9  norm          7.9096        7.7120        .35658E-03   -1.5652    
  10  Prefactor     5.0656        2.1201        .44649E-03   -1.5663    
  11  Prefactor     2.2887        2.6551        .67873E-03   -1.5678    
  12  Prefactor     .75828E-07    13.777        .15302E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .49960E-09    5.4118        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          18.415        18.724        .23564E-03   -1.5622    
  15  Prefactor     6.9643        4.5365        .37959E-03   -1.5655    
  16  Prefactor     .38691E-07    15.402        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .36915E-07    8.7418        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .22204E-09    3.5273        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2040        .14097        .63634E-01   -.86478    
  20  Prefactor     .95984        .99484E-01    .45764E-01   -.94080    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.71039e-07
Minuit parameter uncertainties:
  1  1.2272e-06
  2  12.9828
  3  3.26101
  4  0.000222509
  5  0.00193927
  6  3.95469e-06
  7  2.45425
  8  6.59802
  9  7.71197
  10  2.12012
  11  2.65515
  12  0.00204429
  13  0.000101072
  14  18.7242
  15  4.53652
  16  0.00154364
  17  0.00113624
  18  5.67569e-05
  19  0.141016
  20  0.0995027
Done.

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

Extracting fit parameters...

4FGL J0011.4+0057
   Spectrum: PowerLaw
51     Prefactor:  1.934e+01  1.298e+01  0.000e+00  1.000e+06 ( 1.000e-13)
52         Index:  2.334e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
53         Scale:  1.182e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  9.598e-01  9.950e-02  0.000e+00  1.000e+01 ( 1.000e+00)
547        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
548        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  1.204e+00  1.410e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.67
Ra Dec: 2.855 0.965
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 4.62e-08 +/- 3.10e-08
Energy Flux (Fixed Index): 1.66e-05 +/- 1.12e-05

TS (Fixed Index): 3.67
Ra Dec: 2.855 0.965
Photon Flux Upper Limit: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/955089/likelihoodResults_699840001_700444801_4FGL_J0011.4+0057_weekly_bin762.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) = 13740.5457814
delta logL = 0.590302585459

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 13740.5157414
delta logL = 0.620342631715

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5836       1.0000          .0000       .10000E+07
     2 'Index     '    3.4001       1.0000          .0000       10.000    
     3 'Normalizat'    1.1490       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99023       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13740.52     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      270 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5517        35.664        .46992E-03   -.35787E-02
   2  Index         3.4038        2.3345        .10767        .15326E-03
   3  Normalizat    1.1492        .52429E-01    .64927E-01   -.20134E-03
   4  Prefactor     .99015        .36008E-01    .46145E-01   -.37616E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.55169
  Index      = 3.40379
  Normalizat = 1.14925
  Prefactor  = 0.990147
 **********
 **   18 **HESSE 
 **********

 FCN=   13740.52     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      301 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5517        59.274        .12399E-04   -1.5665    
   2  Index         3.4038        3.3905        .53341E-02   -.32493    
   3  Normalizat    1.1492        .16168        .28722E-03   -.88186    
   4  Prefactor     .99015        .11803        .22959E-03   -.93059    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.69775e-09
Minuit parameter uncertainties:
  1  32.8514
  2  3.77842
  3  0.161754
  4  0.118058
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/955089': 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): 102
logL (Free Index) = 13740.5157338
delta logL = 0.620350236528

Extracting fit parameters...

4FGL J0011.4+0057
   Spectrum: PowerLaw
51     Prefactor:  4.552e+00  3.285e+01  0.000e+00  1.000e+06 ( 1.000e-13)
52         Index:  3.404e+00  3.778e+00  0.000e+00  1.000e+01 (-1.000e+00)
53         Scale:  1.182e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  9.901e-01  1.181e-01  0.000e+00  1.000e+01 ( 1.000e+00)
547        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
548        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  1.149e+00  1.618e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.14
Ra Dec: 2.855 0.965
Photon Index (Free Index): 3.40 +/- 3.78
Photon Flux (Free Index): 8.49e-08 +/- 6.49e-08
Energy Flux (Free Index): 1.45e-05 +/- 1.11e-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/955089/cmap_HighResolution_699840001_700444801_4FGL_J0011.4+0057_weekly_bin762.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.97e-03', comment='SUCCESS', photon_flux='4.62e-08', energy_flux2='1.45e-05', photon_flux_error='3.10e-08', dlogl='6.20e-01', energy_flux='1.66e-05', photon_flux2='8.49e-08', job_status='DONE', time_completed='2023-03-14 00:40:17.966580', photon_index_error2='3.78', photon_index2='3.40', ts='3.67', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.04e-07', energy_flux_error2='1.11e-05', EG='1.20', time_epoch_completed='1678779617.97', return_code='0', job_id='955089', GAL2='0.99', EG2='1.15', return_code2='102', energy_flux_error='1.12e-05', photon_flux_error2='6.49e-08', ts2='5.14', photon_index='2.33' WHERE bin_id='762' AND source_name='4FGL J0011.4+0057' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Mar 14 00:40:17 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0012>
Subject: Job 955089: <4FGL_J0011.4+0057_weekly_bin762> in cluster <slac> Done

Job <4FGL_J0011.4+0057_weekly_bin762> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Mar 14 00:25:26 2023
Job was executed on host(s) <bullet0012>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar 14 00:25:27 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar 14 00:25:27 2023
Terminated at Tue Mar 14 00:40:18 2023
Results reported at Tue Mar 14 00:40:18 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0011.4+0057_weekly_bin762 2.8551 0.9646 699840001 700444801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0011.4+0057 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   829.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             333.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            892 sec.

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

