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


Performing analysis on: 4FGL_J1051.6+2109_daily_bin1039
RA = 162.913, Dec = 21.1651
tmin = 508636801, tmax = 508896001
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='256552', job_status='RUN', time_executed='2021-09-02 18:44:27.170587', time_epoch_executed='1630633467.17' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='1039'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/256552

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/256552/ft1_4FGL_J1051.6+2109_daily_bin1039.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/256552/ft2_4FGL_J1051.6+2109_daily_bin1039.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/256552/ft1_4FGL_J1051.6+2109_daily_bin1039.fits outfile=/scratch/kocevski/256552/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin1039.fits ra=162.913 dec=21.1651 rad=12.0 tmin=508636801.0 tmax=508896001.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 3.82
user 3.55
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/256552/ft1_filtered_4FGL_J1051.6+2109_daily_bin1039.fits" evtable="EVENTS" scfile=/scratch/kocevski/256552/ft2_4FGL_J1051.6+2109_daily_bin1039.fits sctable="SC_DATA" outfile=/scratch/kocevski/256552/ltcube_508636801_508896001_4FGL_J1051.6+2109_daily_bin1039.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/256552/ft2_4FGL_J1051.6+2109_daily_bin1039.fits
.....................!
real 16.65
user 16.24
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/256552/ft1_filtered_4FGL_J1051.6+2109_daily_bin1039.fits evtable="EVENTS" scfile=/scratch/kocevski/256552/ft2_4FGL_J1051.6+2109_daily_bin1039.fits sctable="SC_DATA" expcube=/scratch/kocevski/256552/ltcube_508636801_508896001_4FGL_J1051.6+2109_daily_bin1039.fits outfile=/scratch/kocevski/256552/expmap_508636801_508896001_4FGL_J1051.6+2109_daily_bin1039.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/256552/ltcube_508636801_508896001_4FGL_J1051.6+2109_daily_bin1039.fits
.....................!
real 192.34
user 187.42
sys 4.40

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/256552/ft1_filtered_4FGL_J1051.6+2109_daily_bin1039.fits scfile=/scratch/kocevski/256552/ft2_4FGL_J1051.6+2109_daily_bin1039.fits outfile=/scratch/kocevski/256552/cmap_508636801_508896001_4FGL_J1051.6+2109_daily_bin1039.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.57
user 0.42
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/256552/ft1_filtered_4FGL_J1051.6+2109_daily_bin1039.fits scfile=/scratch/kocevski/256552/ft2_4FGL_J1051.6+2109_daily_bin1039.fits outfile=/scratch/kocevski/256552/cmap_HighResolution_508636801_508896001_4FGL_J1051.6+2109_daily_bin1039.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.58
user 0.42
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/256552/ft1_filtered_4FGL_J1051.6+2109_daily_bin1039.fits', '/scratch/kocevski/256552/ft2_4FGL_J1051.6+2109_daily_bin1039.fits', expMap='/scratch/kocevski/256552/expmap_508636801_508896001_4FGL_J1051.6+2109_daily_bin1039.fits', expCube='/scratch/kocevski/256552/ltcube_508636801_508896001_4FGL_J1051.6+2109_daily_bin1039.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/256552/Model_4FGL_J1051.6+2109_daily_bin1039.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/256552/ft1_filtered_4FGL_J1051.6+2109_daily_bin1039.fits
Spacecraft file(s): /scratch/kocevski/256552/ft2_4FGL_J1051.6+2109_daily_bin1039.fits
Exposure map: /scratch/kocevski/256552/expmap_508636801_508896001_4FGL_J1051.6+2109_daily_bin1039.fits
Exposure cube: /scratch/kocevski/256552/ltcube_508636801_508896001_4FGL_J1051.6+2109_daily_bin1039.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/256552/Model_4FGL_J1051.6+2109_daily_bin1039.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) = 5906.07806613

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    24.390       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    105.84       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.700       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12399E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.3259       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.0110       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.6591       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .84750       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    21.004       1.0000         .10000E-03   10000.    
    16 'norm      '    .27511E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10457E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3515       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .82344       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=   5906.076     FROM MIGRAD    STATUS=CONVERGED    431 CALLS     2082 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          24.395        12.405        .11237E-06   -.83679E-05
   2  Prefactor     .10000E-03    47.103       -.28807E-06** at limit **
   3  Prefactor     105.87        76.626        .18774E-05   -.31362E-05
   4  Prefactor     20.693        9.6314        .66209E-06    .22307E-03
   5  Prefactor     .10000E-03    2.0901       -.21274E-05** at limit **
   6  Prefactor     .10000E-03    4.6561        .19498E-06** at limit **
   7  Prefactor     5.3281        10.611       -.15679E-05   -.84818E-04
   8  Prefactor     .10000E-03    100.37        .25390E-05** at limit **
   9  Prefactor     8.0081        9.1881        .34503E-07    .13566E-04
  10  Prefactor     .10000E-03    3.6194       -.29523E-06** at limit **
  11  Prefactor     .10000E-03    6.7396       -.66085E-06** at limit **
  12  norm          1.6602        1.4699       -.11823E-06   -.34114E-03
  13  Prefactor     .84776        1.9119        .96128E-06   -.84824E-04
  14  Prefactor     .10000E-03    2.2514        .77920E-07** at limit **
  15  norm          21.012        14.451        .33336E-07   -.14737E-04
  16  norm          .10000E-03    224.61       -.93291E-05** at limit **
  17  Prefactor     .10000E-03    8.3276        .43044E-06** at limit **
  18  Prefactor     .10000E-03    29.974        .14071E-06** at limit **
  19  Normalizat    1.3508        .21372        .29699E-05   -.43032E-03
  20  Prefactor     .82368        .21108       -.64303E-05   -.82554E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 24.395
  Prefactor  = 0.0001
  Prefactor  = 105.87
  Prefactor  = 20.6934
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.32813
  Prefactor  = 0.0001
  Prefactor  = 8.00814
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.6602
  Prefactor  = 0.847764
  Prefactor  = 0.0001
  norm       = 21.0121
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.35075
  Prefactor  = 0.823685
 **********
 **   18 **HESSE 
 **********

 FCN=   5906.076     FROM HESSE     STATUS=OK           303 CALLS     2385 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          24.395        12.415        .81111E-04   -1.4720    
   2  Prefactor     .10000E-03    47.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     105.87        76.673        .19544E-03   -1.3646    
   4  Prefactor     20.693        9.7443        .88034E-04   -1.4798    
   5  Prefactor     .10000E-03    2.1550        .21504E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.7392        .16196E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.3281        10.517        .17415E-03   -1.5246    
   8  Prefactor     .10000E-03    101.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.0081        9.1581        .14166E-03   -1.5142    
  10  Prefactor     .10000E-03    3.6236        .14281E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.7452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.6602        1.4562        .83233E-04   -1.5450    
  13  Prefactor     .84776        1.9125        .17119E-02   -1.5524    
  14  Prefactor     .10000E-03    2.2547        .11262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          21.012        14.464        .87396E-04   -1.4791    
  16  norm          .10000E-03    18.303        .70189E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.3872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    29.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.3508        .23927        .23768E-03   -.82064    
  20  Prefactor     .82368        .22738        .29860E-03   -.98861    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.76596e-09
Minuit parameter uncertainties:
  1  12.416
  2  0.000119391
  3  76.7447
  4  9.74502
  5  3.22217e-05
  6  2.23222e-05
  7  10.5203
  8  0.000235878
  9  9.15967
  10  6.89584e-06
  11  1.47174e-05
  12  1.45619
  13  1.91266
  14  3.44451e-06
  15  14.4666
  16  0.00023885
  17  3.25603e-05
  18  3.7157e-05
  19  0.239471
  20  0.227637
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  5.328e+00  1.052e+01  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.237e-01  2.276e-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.351e+00  2.395e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.33
Ra Dec: 162.913 21.165
Photon Flux Upper Limit: 1.37e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.09e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/256552/likelihoodResults_508636801_508896001_4FGL_J1051.6+2109_daily_bin1039.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) = 5905.7280774
delta logL = 0.347423262008

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5905.72578334
delta logL = 0.349717315237

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9762       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9962       1.0000          .0000       10.000    
     3 'Normalizat'    1.3076       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85343       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=   5905.726     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      281 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9760        14.471        .13231E-03   -.10469E-02
   2  Index         3.9970        3.0907        .88690E-02   -.13417E-03
   3  Normalizat    1.3075        .23361        .24080E-03   -.43404E-03
   4  Prefactor     .85346        .23104        .29390E-03   -.25457E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.97596
  Index      = 3.99697
  Normalizat = 1.30752
  Prefactor  = 0.853459
 **********
 **   18 **HESSE 
 **********

 FCN=   5905.726     FROM HESSE     STATUS=OK            25 CALLS      306 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9760        6.9983        .52922E-05   -1.5363    
   2  Index         3.9970        1.7412        .35476E-03   -.20198    
   3  Normalizat    1.3075        .23395        .48161E-04   -.83342    
   4  Prefactor     .85346        .23065        .11756E-04   -.97787    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.61584e-10
Minuit parameter uncertainties:
  1  7.00021
  2  1.78015
  3  0.234138
  4  0.230914
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/256552': 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) = 5905.72578296
delta logL = 0.349717695731

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  2.976e+00  7.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  3.997e+00  1.780e+00  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.535e-01  2.309e-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.308e+00  2.341e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.09
Ra Dec: 162.913 21.165
Photon Index (Free Index): 4.00 +/- 1.78
Photon Flux (Free Index): 6.52e-08 +/- 7.17e-08
Energy Flux (Free Index): 9.77e-06 +/- 1.06e-05

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/256552/cmap_HighResolution_508636801_508896001_4FGL_J1051.6+2109_daily_bin1039.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-02', comment='SUCCESS', energy_flux2='9.77e-06', dlogl='3.50e-01', photon_flux2='6.52e-08', job_status='DONE', time_completed='2021-09-02 18:54:47.431754', photon_index_error2='1.78', photon_index2='4.00', ts='0.33', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='1.37e-07', energy_flux_error2='1.06e-05', EG='1.35', time_epoch_completed='1630634087.43', return_code='0', job_id='256552', GAL2='0.85', EG2='1.31', return_code2='0', photon_flux_error2='7.17e-08', ts2='1.09', photon_index='2.77' WHERE bin_id='1039' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:54:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0170>
Subject: Job 256552: <4FGL_J1051.6+2109_daily_bin1039> in cluster <slac> Done

Job <4FGL_J1051.6+2109_daily_bin1039> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  2 18:41:41 2021
Job was executed on host(s) <bullet0170>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 18:43:12 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:43:12 2021
Terminated at Thu Sep  2 18:54:48 2021
Results reported at Thu Sep  2 18:54:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin1039 162.913 21.1651 508636801 508896001 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 :                                   611.55 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             309.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   695 sec.
    Turnaround time :                            787 sec.

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

