aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  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 2 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J0654.4+4514_weekly_bin519
RA = 103.606, Dec = 45.2446
tmin = 552873601, tmax = 553478401
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='856189', job_status='RUN', time_executed='2021-07-10 13:22:15.626398', time_epoch_executed='1625948535.63' WHERE source_name='4FGL J0654.4+4514' and cadence='weekly' and bin_id='519'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/856189

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/856189/ft1_4FGL_J0654.4+4514_weekly_bin519.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/856189/ft2_4FGL_J0654.4+4514_weekly_bin519.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/856189/ft1_4FGL_J0654.4+4514_weekly_bin519.fits outfile=/scratch/kocevski/856189/ft1_filteredMKT_4FGL_J0654.4+4514_weekly_bin519.fits ra=103.606 dec=45.2446 rad=12.0 tmin=552873601.0 tmax=553478401.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.86
user 5.57
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/856189/ft2_4FGL_J0654.4+4514_weekly_bin519.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/856189/ft2_4FGL_J0654.4+4514_weekly_bin519.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/856189/ft1_filteredMKT_4FGL_J0654.4+4514_weekly_bin519.fits evtable="EVENTS" outfile="/scratch/kocevski/856189/ft1_filtered_4FGL_J0654.4+4514_weekly_bin519.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.39
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/856189/ft1_filtered_4FGL_J0654.4+4514_weekly_bin519.fits" evtable="EVENTS" scfile=/scratch/kocevski/856189/ft2_4FGL_J0654.4+4514_weekly_bin519.fits sctable="SC_DATA" outfile=/scratch/kocevski/856189/ltcube_552873601_553478401_4FGL_J0654.4+4514_weekly_bin519.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/856189/ft2_4FGL_J0654.4+4514_weekly_bin519.fits
.....................!
real 32.76
user 32.14
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/856189/ft1_filtered_4FGL_J0654.4+4514_weekly_bin519.fits evtable="EVENTS" scfile=/scratch/kocevski/856189/ft2_4FGL_J0654.4+4514_weekly_bin519.fits sctable="SC_DATA" expcube=/scratch/kocevski/856189/ltcube_552873601_553478401_4FGL_J0654.4+4514_weekly_bin519.fits outfile=/scratch/kocevski/856189/expmap_552873601_553478401_4FGL_J0654.4+4514_weekly_bin519.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/856189/ltcube_552873601_553478401_4FGL_J0654.4+4514_weekly_bin519.fits
.....................!
real 190.74
user 185.17
sys 4.78

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
Extended source HB 9 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/HB9.fits is the correct path to the extended template.
Added 174 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0654.4+4514 @ 103.606 45.2446

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/856189/ft1_filtered_4FGL_J0654.4+4514_weekly_bin519.fits scfile=/scratch/kocevski/856189/ft2_4FGL_J0654.4+4514_weekly_bin519.fits outfile=/scratch/kocevski/856189/cmap_552873601_553478401_4FGL_J0654.4+4514_weekly_bin519.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=103.606 yref=45.2446 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/856189/ft1_filtered_4FGL_J0654.4+4514_weekly_bin519.fits scfile=/scratch/kocevski/856189/ft2_4FGL_J0654.4+4514_weekly_bin519.fits outfile=/scratch/kocevski/856189/cmap_HighResolution_552873601_553478401_4FGL_J0654.4+4514_weekly_bin519.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=103.606 yref=45.2446 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.61
user 0.41
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/856189/ft1_filtered_4FGL_J0654.4+4514_weekly_bin519.fits evtable="EVENTS" scfile=/scratch/kocevski/856189/ft2_4FGL_J0654.4+4514_weekly_bin519.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/856189/Model_4FGL_J0654.4+4514_weekly_bin519.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
adding source HB 9
Working on...
/scratch/kocevski/856189/ft1_filtered_4FGL_J0654.4+4514_weekly_bin519.fits.....................!
real 123.37
user 121.74
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/856189/ft1_filtered_4FGL_J0654.4+4514_weekly_bin519.fits', '/scratch/kocevski/856189/ft2_4FGL_J0654.4+4514_weekly_bin519.fits', expMap='/scratch/kocevski/856189/expmap_552873601_553478401_4FGL_J0654.4+4514_weekly_bin519.fits', expCube='/scratch/kocevski/856189/ltcube_552873601_553478401_4FGL_J0654.4+4514_weekly_bin519.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/856189/Model_4FGL_J0654.4+4514_weekly_bin519.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0654.4+4514'

4FGL J0654.4+4514
   Spectrum: LogParabola
246         norm:  2.496e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
247        alpha:  2.183e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
248         beta:  8.026e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
249           Eb:  9.087e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/856189/ft1_filtered_4FGL_J0654.4+4514_weekly_bin519.fits
Spacecraft file(s): /scratch/kocevski/856189/ft2_4FGL_J0654.4+4514_weekly_bin519.fits
Exposure map: /scratch/kocevski/856189/expmap_552873601_553478401_4FGL_J0654.4+4514_weekly_bin519.fits
Exposure cube: /scratch/kocevski/856189/ltcube_552873601_553478401_4FGL_J0654.4+4514_weekly_bin519.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/856189/Model_4FGL_J0654.4+4514_weekly_bin519.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) = 7160.03125911

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 7159.88982601

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.430       1.0000         .10000E-03   10000.    
     2 'norm      '    8.7468       1.0000         .10000E-03   10000.    
     3 'norm      '    1.1885       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .46997E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.851       1.0000         .10000E-03   10000.    
     6 'norm      '    2.1722       1.0000         .10000E-03   10000.    
     7 'norm      '    .35930       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.1005       1.0000         .10000E-03   10000.    
     9 'norm      '    3.3832       1.0000         .10000E-03   10000.    
    10 'Prefactor '    28.869       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.1443       1.0000         .10000E-03   10000.    
    12 'norm      '    .10349E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2728.1       1.0000         .10000E-03   10000.    
    14 'Prefactor '    124.95       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10101E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .59362E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    2.6222       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .22369E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .12396       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1859       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7159.878     FROM MIGRAD    STATUS=CONVERGED    198 CALLS     1645 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.763        35.306        .62859E-05   -.56327E-04
   2  norm          8.7610        3.2876       -.16170E-06   -.24471E-03
   3  norm          1.1937        3.9830        .35121E-05    .78072E-04
   4  Prefactor     .10000E-03    36.645       -.28560E-04** at limit **
   5  Prefactor     21.145        38.325       -.46108E-05   -.38223E-04
   6  norm          2.1822        3.0040       -.12171E-05   -.11202E-03
   7  norm          .46596        18.225        .41424E-05    .64684E-04
   8  Prefactor     5.6148        39.209       -.14980E-04   -.11688E-04
   9  norm          3.3905        4.1702       -.83510E-07   -.59322E-04
  10  Prefactor     28.499        16.369       -.51982E-05   -.21514E-03
  11  Prefactor     5.8289        17.140       -.67575E-05    .26428E-04
  12  norm          .10000E-03    6.5924       -.91523E-06** at limit **
  13  Prefactor     2846.2        1124.3       -.16512E-04   -.17551E-04
  14  Prefactor     134.51        89.436        .10567E-05    .65949E-05
  15  Prefactor     .10000E-03    42.965       -.32220E-06** at limit **
  16  Prefactor     .10000E-03    75.391       -.74737E-05** at limit **
  17  norm          2.5332        11.595        .25663E-06    .11928E-04
  18  Prefactor     .10000E-03    35.133       -.15313E-05** at limit **
  19  Normalizat    .11356        .29893        .15787E-03   -.60439E-04
  20  Prefactor     1.1878        .10322       -.13753E-04   -.58507E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.7628
  norm       = 8.76098
  norm       = 1.19374
  Prefactor  = 0.0001
  Prefactor  = 21.1446
  norm       = 2.18216
  norm       = 0.465958
  Prefactor  = 5.6148
  norm       = 3.39054
  Prefactor  = 28.4993
  Prefactor  = 5.82888
  norm       = 0.0001
  Prefactor  = 2846.17
  Prefactor  = 134.514
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.53322
  Prefactor  = 0.0001
  Normalizat = 0.113557
  Prefactor  = 1.18781
 **********
 **   18 **HESSE 
 **********

 FCN=   7159.878     FROM HESSE     STATUS=NOT POSDEF   345 CALLS     1990 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.763        48.816        .27325E-02   -1.4966    
   2  norm          8.7610        4.5780        .33883E-02   -1.5116    
   3  norm          1.1937        3.9497        .10453E-01   -1.5489    
   4  Prefactor     .10000E-03    20.457        .96433E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     21.145        191.57        .21929E-02   -1.4788    
   6  norm          2.1822        3.8402        .69848E-02   -1.5413    
   7  norm          .46596        14.226        .60166E-01   -1.5571    
   8  Prefactor     5.6148        42.920        .40637E-02   -1.5234    
   9  norm          3.3905        4.1659        .54995E-02   -1.5340    
  10  Prefactor     28.499        32.730        .18641E-02   -1.4640    
  11  Prefactor     5.8289        18.690        .40491E-02   -1.5225    
  12  norm          .10000E-03    5.9629        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2846.2        2116.8        .22452E-03   -.44534    
  14  Prefactor     134.51        152.22        .90024E-03   -1.3383    
  15  Prefactor     .10000E-03    39.178        .10378E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    68.259        .94780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.5332        12.138        .62965E-02   -1.5390    
  18  Prefactor     .10000E-03    31.918        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .11356        7.6520        .27340       -1.3668    
  20  Prefactor     1.1878        .58521        .34972E-01   -.86707    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.25155e-08
Minuit parameter uncertainties:
  1  48.9585
  2  4.57819
  3  3.95056
  4  8.10783e-05
  5  127.838
  6  3.84068
  7  5.15002
  8  31.0783
  9  4.16629
  10  32.7506
  11  18.7086
  12  2.37032e-05
  13  2203.31
  14  152.664
  15  5.44671e-05
  16  2.31554e-05
  17  11.0936
  18  0.000120848
  19  1.8815
  20  0.588451
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 7159.87825067

Extracting fit parameters...

4FGL J0654.4+4514
   Spectrum: LogParabola
246         norm:  4.660e-01  5.150e+00  1.000e-04  1.000e+04 ( 1.000e-12)
247        alpha:  2.183e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
248         beta:  8.026e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
249           Eb:  9.087e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
572    Prefactor:  1.188e+00  5.885e-01  0.000e+00  1.000e+01 ( 1.000e+00)
573        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
574        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
571   Normalization:  1.136e-01  1.881e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 103.606 45.245
Photon Flux Upper Limit: 1.40e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.16e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/856189/likelihoodResults_552873601_553478401_4FGL_J0654.4+4514_weekly_bin519.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): 102
logL (Free Index) = 7159.07092407
delta logL = 0.807326598618

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7158.94891169
delta logL = 0.929338982661

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12637       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .10035E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2076       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7158.949     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      345 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12642        3.4778        .53475E-02    .34536E-02
   2  alpha         5.0000        3.9221        .46268    ** at limit **
   3  Normalizat    .10000E-01    .54160E-01    .32095    ** at limit **
   4  Prefactor     1.2076        .41081E-01    .34454E-01   -.96955E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.126424
  alpha      = 5
  Normalizat = 0.01
  Prefactor  = 1.20762
 **********
 **   18 **HESSE 
 **********

 FCN=   7158.949     FROM HESSE     STATUS=OK            45 CALLS      390 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12642        .13350        .24540E-03   -1.5637    
   2  alpha         5.0000        3.1805        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .10000E-01    .40697        .24048       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2076        .87070E-01    .13761E-03   -.86097    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.16521e-11
Minuit parameter uncertainties:
  1  0.133499
  2  7.63984e-06
  3  1.07776e-05
  4  0.0870799
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/856189': 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) = 7158.94890267
delta logL = 0.929348002601

Extracting fit parameters...

4FGL J0654.4+4514
   Spectrum: LogParabola
246         norm:  1.264e-01  1.335e-01  1.000e-04  1.000e+04 ( 1.000e-12)
247        alpha:  5.000e+00  7.640e-06  0.000e+00  5.000e+00 ( 1.000e+00)
248         beta:  8.026e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
249           Eb:  9.087e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
572    Prefactor:  1.208e+00  8.708e-02  0.000e+00  1.000e+01 ( 1.000e+00)
573        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
574        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
571   Normalization:  1.000e-02  1.078e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.04
Ra Dec: 103.606 45.245
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.44e-07 +/- 1.52e-07
Energy Flux (Free Index): 1.97e-05 +/- 2.07e-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/856189/cmap_HighResolution_552873601_553478401_4FGL_J0654.4+4514_weekly_bin519.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.16e-05', comment='SUCCESS', energy_flux2='1.97e-05', dlogl='9.29e-01', photon_flux2='1.44e-07', job_status='DONE', time_completed='2021-07-10 13:35:08.402018', photon_index_error2='0.00', photon_index2='5.00', ts='0.01', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', photon_flux_upper_limit='1.40e-07', energy_flux_error2='2.07e-05', EG='0.11', time_epoch_completed='1625949308.4', return_code='102', job_id='856189', GAL2='1.21', EG2='0.01', return_code2='0', photon_flux_error2='1.52e-07', ts2='2.04', photon_index='2.18' WHERE bin_id='519' AND source_name='4FGL J0654.4+4514' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul 10 13:35:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 856189: <4FGL_J0654.4+4514_weekly_bin519> in cluster <slac> Done

Job <4FGL_J0654.4+4514_weekly_bin519> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Jul 10 13:20:52 2021
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul 10 13:22:04 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul 10 13:22:04 2021
Terminated at Sat Jul 10 13:35:09 2021
Results reported at Sat Jul 10 13:35:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0654.4+4514_weekly_bin519 103.606 45.2446 552873601 553478401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0654.4+4514 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   759.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             375.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   786 sec.
    Turnaround time :                            857 sec.

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

