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


Performing analysis on: 4FGL_J1051.6+2109_daily_bin1389
RA = 162.913, Dec = 21.1651
tmin = 599356801, tmax = 599616001
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='258085', job_status='RUN', time_executed='2021-09-02 18:49:31.946316', time_epoch_executed='1630633771.95' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='1389'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/258085

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/258085/ft1_4FGL_J1051.6+2109_daily_bin1389.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/258085/ft2_4FGL_J1051.6+2109_daily_bin1389.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/258085/ft1_4FGL_J1051.6+2109_daily_bin1389.fits outfile=/scratch/kocevski/258085/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin1389.fits ra=162.913 dec=21.1651 rad=12.0 tmin=599356801.0 tmax=599616001.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 2.73
user 2.49
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/258085/ft2_4FGL_J1051.6+2109_daily_bin1389.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/258085/ft2_4FGL_J1051.6+2109_daily_bin1389.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/258085/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin1389.fits evtable="EVENTS" outfile="/scratch/kocevski/258085/ft1_filtered_4FGL_J1051.6+2109_daily_bin1389.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/258085/ft1_filtered_4FGL_J1051.6+2109_daily_bin1389.fits" evtable="EVENTS" scfile=/scratch/kocevski/258085/ft2_4FGL_J1051.6+2109_daily_bin1389.fits sctable="SC_DATA" outfile=/scratch/kocevski/258085/ltcube_599356801_599616001_4FGL_J1051.6+2109_daily_bin1389.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/258085/ft2_4FGL_J1051.6+2109_daily_bin1389.fits
.....................!
real 16.56
user 16.11
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/258085/ft1_filtered_4FGL_J1051.6+2109_daily_bin1389.fits evtable="EVENTS" scfile=/scratch/kocevski/258085/ft2_4FGL_J1051.6+2109_daily_bin1389.fits sctable="SC_DATA" expcube=/scratch/kocevski/258085/ltcube_599356801_599616001_4FGL_J1051.6+2109_daily_bin1389.fits outfile=/scratch/kocevski/258085/expmap_599356801_599616001_4FGL_J1051.6+2109_daily_bin1389.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/258085/ltcube_599356801_599616001_4FGL_J1051.6+2109_daily_bin1389.fits
.....................!
real 193.69
user 187.09
sys 5.53

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

Setting source of interest to:
4FGL J1051.6+2109 @ 162.913 21.1651

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/258085/ft1_filtered_4FGL_J1051.6+2109_daily_bin1389.fits scfile=/scratch/kocevski/258085/ft2_4FGL_J1051.6+2109_daily_bin1389.fits outfile=/scratch/kocevski/258085/cmap_599356801_599616001_4FGL_J1051.6+2109_daily_bin1389.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.913 yref=21.1651 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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/258085/ft1_filtered_4FGL_J1051.6+2109_daily_bin1389.fits scfile=/scratch/kocevski/258085/ft2_4FGL_J1051.6+2109_daily_bin1389.fits outfile=/scratch/kocevski/258085/cmap_HighResolution_599356801_599616001_4FGL_J1051.6+2109_daily_bin1389.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.913 yref=21.1651 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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/258085/ft1_filtered_4FGL_J1051.6+2109_daily_bin1389.fits evtable="EVENTS" scfile=/scratch/kocevski/258085/ft2_4FGL_J1051.6+2109_daily_bin1389.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/258085/Model_4FGL_J1051.6+2109_daily_bin1389.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/258085/ft1_filtered_4FGL_J1051.6+2109_daily_bin1389.fits.....................!
real 49.66
user 48.19
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/258085/ft1_filtered_4FGL_J1051.6+2109_daily_bin1389.fits', '/scratch/kocevski/258085/ft2_4FGL_J1051.6+2109_daily_bin1389.fits', expMap='/scratch/kocevski/258085/expmap_599356801_599616001_4FGL_J1051.6+2109_daily_bin1389.fits', expCube='/scratch/kocevski/258085/ltcube_599356801_599616001_4FGL_J1051.6+2109_daily_bin1389.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/258085/Model_4FGL_J1051.6+2109_daily_bin1389.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1051.6+2109'

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.594e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  2.771e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
246        Scale:  5.065e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/258085/ft1_filtered_4FGL_J1051.6+2109_daily_bin1389.fits
Spacecraft file(s): /scratch/kocevski/258085/ft2_4FGL_J1051.6+2109_daily_bin1389.fits
Exposure map: /scratch/kocevski/258085/expmap_599356801_599616001_4FGL_J1051.6+2109_daily_bin1389.fits
Exposure cube: /scratch/kocevski/258085/ltcube_599356801_599616001_4FGL_J1051.6+2109_daily_bin1389.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/258085/Model_4FGL_J1051.6+2109_daily_bin1389.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) = 5225.52518819

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    20.235       1.0000         .10000E-03   10000.    
     2 'Prefactor '    59.005       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10264E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .25213       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.343       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.6427       1.0000         .10000E-03   10000.    
    12 'norm      '    .10083E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .18780E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12532E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.1461       1.0000         .10000E-03   10000.    
    16 'norm      '    1.4236       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.3572       1.0000         .10000E-03   10000.    
    18 'Prefactor '    36.666       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1777       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .89427       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5225.513     FROM MIGRAD    STATUS=CONVERGED    431 CALLS     2074 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          20.237        13.060        .23233E-06    .45007E-04
   2  Prefactor     59.111        68.295       -.15627E-04    .50498E-04
   3  Prefactor     .10000E-03    20.517        .16042E-06** at limit **
   4  Prefactor     .10000E-03    6.0000        .88126E-07** at limit **
   5  Prefactor     .25412        2.0546        .59916E-06   -.17151E-03
   6  Prefactor     .10000E-03    4.5366       -.40042E-06** at limit **
   7  Prefactor     .10000E-03    5.0282        .24872E-07** at limit **
   8  Prefactor     .10000E-03    8.3129       -.57473E-06** at limit **
   9  Prefactor     22.342        12.295       -.10392E-06    .12360E-03
  10  Prefactor     .10000E-03    7.1659        .34381E-06** at limit **
  11  Prefactor     4.6435        10.064        .16363E-05    .56688E-04
  12  norm          .10000E-03    .70689       -.54625E-06** at limit **
  13  Prefactor     .10000E-03    1.5828       -.12344E-05** at limit **
  14  Prefactor     .10000E-03    5.8248       -.54244E-06** at limit **
  15  norm          5.1462        6.3371        .32477E-06    .83608E-04
  16  norm          1.4266        13.987        .18606E-04    .30070E-04
  17  Prefactor     8.3555        8.7629        .15591E-06    .19277E-03
  18  Prefactor     36.675        42.563       -.11456E-05    .37621E-04
  19  Normalizat    1.1776        .19265       -.85763E-06    .77491E-03
  20  Prefactor     .89412        .19801        .23747E-05    .52779E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 20.2367
  Prefactor  = 59.1108
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.254116
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.3425
  Prefactor  = 0.0001
  Prefactor  = 4.64351
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 5.14615
  norm       = 1.42663
  Prefactor  = 8.35546
  Prefactor  = 36.6751
  Normalizat = 1.17763
  Prefactor  = 0.894117
 **********
 **   18 **HESSE 
 **********

 FCN=   5225.513     FROM HESSE     STATUS=OK           295 CALLS     2369 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          20.237        13.050        .89040E-04   -1.4808    
   2  Prefactor     59.111        68.268        .26115E-03   -1.4169    
   3  Prefactor     .10000E-03    20.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.0613        .17279E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .25412        4.2394        .19400E-02   -1.5607    
   6  Prefactor     .10000E-03    4.5870        .15032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.0664        .15808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.3145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     22.342        12.247        .84739E-04   -1.4762    
  10  Prefactor     .10000E-03    7.1887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.6435        10.040        .93392E-03   -1.5277    
  12  norm          .10000E-03    1.3318        .11736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.019        .17104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    34.438        .33252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.1462        6.3299        .88611E-03   -1.5254    
  16  norm          1.4266        14.025        .18121E-02   -1.5469    
  17  Prefactor     8.3555        8.6583        .13867E-03   -1.5130    
  18  Prefactor     36.675        42.548        .66186E-04   -1.4496    
  19  Normalizat    1.1776        .22353        .22688E-03   -.87297    
  20  Prefactor     .89412        .23403        .27238E-03   -.96347    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63869e-08
Minuit parameter uncertainties:
  1  13.0516
  2  68.3583
  3  2.02646e-05
  4  4.08543e-05
  5  2.07562
  6  2.78636e-05
  7  1.2902e-05
  8  3.37784e-06
  9  12.2488
  10  2.71733e-05
  11  10.044
  12  5.54985e-06
  13  0.000417403
  14  0.000260652
  15  6.33067
  16  8.94866
  17  8.65961
  18  42.5833
  19  0.223706
  20  0.234293
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.000e-04  1.290e-05  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  2.771e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
246        Scale:  5.065e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  8.941e-01  2.343e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  1.178e+00  2.237e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 162.913 21.165
Photon Flux Upper Limit: 8.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.51e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/258085/likelihoodResults_599356801_599616001_4FGL_J1051.6+2109_daily_bin1389.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) = 5225.51388977
delta logL = -0.000939967500926

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5225.51294996
delta logL = -1.61989191838e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7530       1.0000          .0000       10.000    
     3 'Normalizat'    1.1776       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89422       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+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=   5225.513     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      258 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    52.483        .16019E-01** at limit **
   2  Index         2.2071        8.8942        .50000       -.12458E-06
   3  Normalizat    1.1776        .13355E-01    .22688E-03   -.15088E-03
   4  Prefactor     .89412        .14254E-01    .27239E-03   -.12175E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.20709
  Normalizat = 1.17763
  Prefactor  = 0.894117
 **********
 **   18 **HESSE 
 **********

 FCN=   5225.513     FROM HESSE     STATUS=OK            29 CALLS      287 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    42.548        .35608E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2071        6.0313        .50000       -.59267    
   3  Normalizat    1.1776        .21818        .45376E-04   -.87297    
   4  Prefactor     .89412        .23280        .10895E-04   -.96347    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.59453e-10
Minuit parameter uncertainties:
  1  0.000247993
  2  291.694
  3  0.218348
  4  0.233055
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/258085': 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) = 5225.51294753
delta logL = 2.26796873903e-06

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.000e-04  2.480e-04  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  2.207e+00  2.917e+02  0.000e+00  1.000e+01 (-1.000e+00)
246        Scale:  5.065e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  8.941e-01  2.331e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  1.178e+00  2.183e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 162.913 21.165

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/258085/cmap_HighResolution_599356801_599616001_4FGL_J1051.6+2109_daily_bin1389.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.51e-03', job_status='DONE', photon_flux_upper_limit='8.24e-08', time_completed='2021-09-02 19:00:24.751626', job_id='258085', GAL2='0.89', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1630634424.75', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='2.27e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.77' WHERE bin_id='1389' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 19:00:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0133>
Subject: Job 258085: <4FGL_J1051.6+2109_daily_bin1389> in cluster <slac> Done

Job <4FGL_J1051.6+2109_daily_bin1389> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  2 18:46:18 2021
Job was executed on host(s) <bullet0133>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 18:47:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 18:47:25 2021
Terminated at Thu Sep  2 19:00:25 2021
Results reported at Thu Sep  2 19:00:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin1389 162.913 21.1651 599356801 599616001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1051.6+2109 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   575.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             300.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            847 sec.

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

