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


Performing analysis on: 4FGL_J1049.8+1429_weekly_bin611
RA = 162.467, Dec = 14.4835
tmin = 608515201, tmax = 609120001
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='570581', job_status='RUN', time_executed='2021-07-17 10:16:49.904014', time_epoch_executed='1626542209.9' WHERE source_name='4FGL J1049.8+1429' and cadence='weekly' and bin_id='611'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/570581

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/570581/ft1_4FGL_J1049.8+1429_weekly_bin611.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/570581/ft2_4FGL_J1049.8+1429_weekly_bin611.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/570581/ft1_4FGL_J1049.8+1429_weekly_bin611.fits outfile=/scratch/kocevski/570581/ft1_filteredMKT_4FGL_J1049.8+1429_weekly_bin611.fits ra=162.467 dec=14.4835 rad=12.0 tmin=608515201.0 tmax=609120001.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 6.31
user 5.99
sys 0.28

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/570581/ft2_4FGL_J1049.8+1429_weekly_bin611.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/570581/ft2_4FGL_J1049.8+1429_weekly_bin611.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/570581/ft1_filteredMKT_4FGL_J1049.8+1429_weekly_bin611.fits evtable="EVENTS" outfile="/scratch/kocevski/570581/ft1_filtered_4FGL_J1049.8+1429_weekly_bin611.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.52
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/570581/ft1_filtered_4FGL_J1049.8+1429_weekly_bin611.fits" evtable="EVENTS" scfile=/scratch/kocevski/570581/ft2_4FGL_J1049.8+1429_weekly_bin611.fits sctable="SC_DATA" outfile=/scratch/kocevski/570581/ltcube_608515201_609120001_4FGL_J1049.8+1429_weekly_bin611.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/570581/ft2_4FGL_J1049.8+1429_weekly_bin611.fits
.....................!
real 28.21
user 27.68
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/570581/ft1_filtered_4FGL_J1049.8+1429_weekly_bin611.fits evtable="EVENTS" scfile=/scratch/kocevski/570581/ft2_4FGL_J1049.8+1429_weekly_bin611.fits sctable="SC_DATA" expcube=/scratch/kocevski/570581/ltcube_608515201_609120001_4FGL_J1049.8+1429_weekly_bin611.fits outfile=/scratch/kocevski/570581/expmap_608515201_609120001_4FGL_J1049.8+1429_weekly_bin611.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/570581/ltcube_608515201_609120001_4FGL_J1049.8+1429_weekly_bin611.fits
.....................!
real 156.50
user 152.38
sys 3.63

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

Setting source of interest to:
4FGL J1049.8+1429 @ 162.467 14.4835

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/570581/ft1_filtered_4FGL_J1049.8+1429_weekly_bin611.fits scfile=/scratch/kocevski/570581/ft2_4FGL_J1049.8+1429_weekly_bin611.fits outfile=/scratch/kocevski/570581/cmap_608515201_609120001_4FGL_J1049.8+1429_weekly_bin611.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=162.467 yref=14.4835 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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/570581/ft1_filtered_4FGL_J1049.8+1429_weekly_bin611.fits scfile=/scratch/kocevski/570581/ft2_4FGL_J1049.8+1429_weekly_bin611.fits outfile=/scratch/kocevski/570581/cmap_HighResolution_608515201_609120001_4FGL_J1049.8+1429_weekly_bin611.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=162.467 yref=14.4835 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.52
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/570581/ft1_filtered_4FGL_J1049.8+1429_weekly_bin611.fits evtable="EVENTS" scfile=/scratch/kocevski/570581/ft2_4FGL_J1049.8+1429_weekly_bin611.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/570581/Model_4FGL_J1049.8+1429_weekly_bin611.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/570581/ft1_filtered_4FGL_J1049.8+1429_weekly_bin611.fits.....................!
real 101.40
user 99.89
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/570581/ft1_filtered_4FGL_J1049.8+1429_weekly_bin611.fits', '/scratch/kocevski/570581/ft2_4FGL_J1049.8+1429_weekly_bin611.fits', expMap='/scratch/kocevski/570581/expmap_608515201_609120001_4FGL_J1049.8+1429_weekly_bin611.fits', expCube='/scratch/kocevski/570581/ltcube_608515201_609120001_4FGL_J1049.8+1429_weekly_bin611.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/570581/Model_4FGL_J1049.8+1429_weekly_bin611.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1049.8+1429'

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  4.091e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
222        Index:  2.592e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
223        Scale:  5.785e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/570581/ft1_filtered_4FGL_J1049.8+1429_weekly_bin611.fits
Spacecraft file(s): /scratch/kocevski/570581/ft2_4FGL_J1049.8+1429_weekly_bin611.fits
Exposure map: /scratch/kocevski/570581/expmap_608515201_609120001_4FGL_J1049.8+1429_weekly_bin611.fits
Exposure cube: /scratch/kocevski/570581/ltcube_608515201_609120001_4FGL_J1049.8+1429_weekly_bin611.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/570581/Model_4FGL_J1049.8+1429_weekly_bin611.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) = 15720.8722834

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.556       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .34337       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.8130       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.2529       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.4203       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .17741E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    .54269       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.658       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.2424       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.862       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1252       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .93689       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15720.74     FROM MIGRAD    STATUS=CONVERGED    723 CALLS     2126 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.814        .18142E-02** at limit **
   2  Prefactor     10.556        10.450        .12332E-03   -.66377E-05
   3  Prefactor     .10000E-03    16.732        .18142E-02** at limit **
   4  Prefactor     .41629        46.513        .62653E-02    .44936E-03
   5  Prefactor     9.8122        3.8899        .12792E-03   -.16939E-03
   6  Prefactor     .10000E-03    1.3679        .28083E-03** at limit **
   7  Prefactor     .10000E-03    .32106        .13632E-03** at limit **
   8  Prefactor     2.2531        3.9008        .27373E-03   -.33184E-03
   9  Prefactor     .10000E-03    6.4637        .36285E-03** at limit **
  10  Prefactor     5.4227        4.3017        .17260E-03   -.42787E-03
  11  Prefactor     .10000E-03    2.1047        .17678E-02** at limit **
  12  Prefactor     .10006E-03    35.441        .40061E-02** at limit **
  13  norm          .54164        .66729        .11954E-02    .17331E-02
  14  Prefactor     14.659        13.333        .10461E-03   -.85851E-04
  15  Prefactor     .10000E-03    2.3513        .18142E-02** at limit **
  16  norm          1.2411        8.8365        .40209E-03   -.80298E-04
  17  Prefactor     14.862        7.8047        .10390E-03   -.51429E-04
  18  Prefactor     .10000E-03    37.855        .18142E-02** at limit **
  19  Normalizat    1.1254        .13060        .23526E-03   -.54536E-03
  20  Prefactor     .93676        .12009        .24911E-03   -.24443E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.5558
  Prefactor  = 0.0001
  Prefactor  = 0.41629
  Prefactor  = 9.81218
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.25312
  Prefactor  = 0.0001
  Prefactor  = 5.42266
  Prefactor  = 0.0001
  Prefactor  = 0.000100061
  norm       = 0.541639
  Prefactor  = 14.6586
  Prefactor  = 0.0001
  norm       = 1.2411
  Prefactor  = 14.8624
  Prefactor  = 0.000100001
  Normalizat = 1.12541
  Prefactor  = 0.936758
 **********
 **   18 **HESSE 
 **********

 FCN=   15720.74     FROM HESSE     STATUS=OK           275 CALLS     2401 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.823        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.556        10.450        .49327E-05   -1.5058    
   3  Prefactor     .10000E-03    16.732        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .41629        48.282        .25061E-03   -1.5579    
   5  Prefactor     9.8122        3.8894        .51168E-05   -1.5081    
   6  Prefactor     .10000E-03    1.3680        .56166E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    .32106        .27264E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.2531        3.8990        .10949E-04   -1.5408    
   9  Prefactor     .10000E-03    6.4640        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.4227        4.2962        .69040E-05   -1.5242    
  11  Prefactor     .10000E-03    2.1053        .35357E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10006E-03    36.706        .16024E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .54164        .66600        .47815E-04   -1.5561    
  14  Prefactor     14.659        13.329        .41846E-05   -1.4942    
  15  Prefactor     .10000E-03    2.3530        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.2411        8.8255        .16084E-04   -1.5485    
  17  Prefactor     14.862        7.8039        .41558E-05   -1.4937    
  18  Prefactor     .10000E-03    37.875        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1254        .13061        .47051E-04   -.88940    
  20  Prefactor     .93676        .12014        .99644E-05   -.94868    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.26688e-09
Minuit parameter uncertainties:
  1  7.29105e-05
  2  10.4514
  3  2.78175e-05
  4  8.97277
  5  3.88948
  6  6.87657e-06
  7  1.84532e-06
  8  3.89946
  9  2.59797e-05
  10  4.29644
  11  9.45785e-07
  12  0.00298836
  13  0.66601
  14  13.3317
  15  6.27231e-06
  16  6.62026
  17  7.80445
  18  0.000447485
  19  0.130648
  20  0.120174
Done.

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

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  2.253e+00  3.899e+00  1.000e-04  1.000e+04 ( 1.000e-12)
222        Index:  2.592e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
223        Scale:  5.785e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
525    Prefactor:  9.368e-01  1.202e-01  0.000e+00  1.000e+01 ( 1.000e+00)
526        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
527        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
524   Normalization:  1.125e+00  1.306e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.38
Ra Dec: 162.467 14.483
Photon Flux Upper Limit: 6.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.82e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/570581/likelihoodResults_608515201_609120001_4FGL_J1049.8+1429_weekly_bin611.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) = 15719.3397296
delta logL = 1.40023382617

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15718.8916921
delta logL = 1.8482713845

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12297E-03   1.0000         .10000E-03   10000.    
     2 'Index     '   10.0000       1.0000          .0000       10.000    
     3 'Normalizat'    1.0648       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98216       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   15718.89     FROM MIGRAD    STATUS=FAILED       137 CALLS      510 TOTAL
                     EDM=   .68E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12293E-03    .82727E-04    .13028E-04** at limit **
   2  Index        10.0000        .53755        .47842    ** at limit **
   3  Normalizat    1.0648        .12937        .24080E-03    .35031E-04
   4  Prefactor     .98222        .12347        .24411E-03    .18629E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   15718.89     FROM SIMPLEX   STATUS=UNCHANGED    111 CALLS      621 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12293E-03    .82727E-04    .18116E-07   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        .53755        .95488E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0648        .12937        .44187E-05   -.90891    
   4  Prefactor     .98222        .12347        .71692E-06   -.93325    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15718.89     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      665 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12293E-03    .79795E-04    .26056E-05** at limit **
   2  Index        10.0000        .50121        .48372    ** at limit **
   3  Normalizat    1.0648        .12946        .96320E-05   -.33049E-05
   4  Prefactor     .98222        .12359        .97644E-05   -.18629E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00012293
  Index      = 10
  Normalizat = 1.06479
  Prefactor  = 0.982219
 **********
 **   18 **HESSE 
 **********

 FCN=   15718.89     FROM HESSE     STATUS=OK            31 CALLS      696 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12293E-03    .79445E-04    .52113E-06   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        .49846        .48229        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0648        .12946        .19264E-05   -.90891    
   4  Prefactor     .98222        .12363        .19529E-05   -.93325    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.99076e-11
Minuit parameter uncertainties:
  1  7.94447e-05
  2  7.96292e-06
  3  0.129501
  4  0.123668
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/570581': 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) = 15718.8916882
delta logL = 1.84827525297

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  1.229e-04  7.944e-05  1.000e-04  1.000e+04 ( 1.000e-12)
222        Index:  1.000e+01  7.963e-06  0.000e+00  1.000e+01 (-1.000e+00)
223        Scale:  5.785e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
525    Prefactor:  9.822e-01  1.237e-01  0.000e+00  1.000e+01 ( 1.000e+00)
526        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
527        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
524   Normalization:  1.065e+00  1.295e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.35
Ra Dec: 162.467 14.483
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 5.93e-08 +/- 3.71e-08
Energy Flux (Free Index): 6.62e-06 +/- 4.17e-06

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/570581/cmap_HighResolution_608515201_609120001_4FGL_J1049.8+1429_weekly_bin611.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.82e-03', comment='SUCCESS', energy_flux2='6.62e-06', dlogl='1.85e+00', photon_flux2='5.93e-08', job_status='DONE', time_completed='2021-07-17 10:32:43.514337', photon_index_error2='0.00', photon_index2='10.00', ts='0.38', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='6.16e-08', energy_flux_error2='4.17e-06', EG='1.13', time_epoch_completed='1626543163.51', return_code='0', job_id='570581', GAL2='0.98', EG2='1.06', return_code2='0', photon_flux_error2='3.71e-08', ts2='4.35', photon_index='2.59' WHERE bin_id='611' AND source_name='4FGL J1049.8+1429' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul 17 10:32:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 570581: <4FGL_J1049.8+1429_weekly_bin611> in cluster <slac> Done

Job <4FGL_J1049.8+1429_weekly_bin611> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Jul 17 10:15:43 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul 17 10:16:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul 17 10:16:38 2021
Terminated at Sat Jul 17 10:32:44 2021
Results reported at Sat Jul 17 10:32:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1049.8+1429_weekly_bin611 162.467 14.4835 608515201 609120001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1049.8+1429 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   928.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             354.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   965 sec.
    Turnaround time :                            1021 sec.

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

