/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 160 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 = 7425
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1050.1+0432_daily_bin435
RA = 162.546, Dec = 4.5377
tmin = 352080001, tmax = 352339201
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='236220', job_status='RUN', time_executed='2021-09-02 17:45:46.181590', time_epoch_executed='1630629946.18' WHERE source_name='4FGL J1050.1+0432' and cadence='daily' and bin_id='435'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/236220

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/236220/ft1_4FGL_J1050.1+0432_daily_bin435.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/236220/ft2_4FGL_J1050.1+0432_daily_bin435.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/236220/ft1_4FGL_J1050.1+0432_daily_bin435.fits outfile=/scratch/kocevski/236220/ft1_filteredMKT_4FGL_J1050.1+0432_daily_bin435.fits ra=162.546 dec=4.5377 rad=12.0 tmin=352080001.0 tmax=352339201.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.46
user 3.22
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/236220/ft2_4FGL_J1050.1+0432_daily_bin435.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/236220/ft2_4FGL_J1050.1+0432_daily_bin435.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/236220/ft1_filteredMKT_4FGL_J1050.1+0432_daily_bin435.fits evtable="EVENTS" outfile="/scratch/kocevski/236220/ft1_filtered_4FGL_J1050.1+0432_daily_bin435.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.54
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/236220/ft1_filtered_4FGL_J1050.1+0432_daily_bin435.fits" evtable="EVENTS" scfile=/scratch/kocevski/236220/ft2_4FGL_J1050.1+0432_daily_bin435.fits sctable="SC_DATA" outfile=/scratch/kocevski/236220/ltcube_352080001_352339201_4FGL_J1050.1+0432_daily_bin435.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/236220/ft2_4FGL_J1050.1+0432_daily_bin435.fits
.....................!
real 14.59
user 14.17
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/236220/ft1_filtered_4FGL_J1050.1+0432_daily_bin435.fits evtable="EVENTS" scfile=/scratch/kocevski/236220/ft2_4FGL_J1050.1+0432_daily_bin435.fits sctable="SC_DATA" expcube=/scratch/kocevski/236220/ltcube_352080001_352339201_4FGL_J1050.1+0432_daily_bin435.fits outfile=/scratch/kocevski/236220/expmap_352080001_352339201_4FGL_J1050.1+0432_daily_bin435.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/236220/ltcube_352080001_352339201_4FGL_J1050.1+0432_daily_bin435.fits
.....................!
real 191.73
user 185.87
sys 5.25

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

Setting source of interest to:
4FGL J1050.1+0432 @ 162.546 4.5377

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/236220/ft1_filtered_4FGL_J1050.1+0432_daily_bin435.fits scfile=/scratch/kocevski/236220/ft2_4FGL_J1050.1+0432_daily_bin435.fits outfile=/scratch/kocevski/236220/cmap_352080001_352339201_4FGL_J1050.1+0432_daily_bin435.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.546 yref=4.5377 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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/236220/ft1_filtered_4FGL_J1050.1+0432_daily_bin435.fits scfile=/scratch/kocevski/236220/ft2_4FGL_J1050.1+0432_daily_bin435.fits outfile=/scratch/kocevski/236220/cmap_HighResolution_352080001_352339201_4FGL_J1050.1+0432_daily_bin435.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.546 yref=4.5377 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.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/236220/ft1_filtered_4FGL_J1050.1+0432_daily_bin435.fits evtable="EVENTS" scfile=/scratch/kocevski/236220/ft2_4FGL_J1050.1+0432_daily_bin435.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/236220/Model_4FGL_J1050.1+0432_daily_bin435.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/236220/ft1_filtered_4FGL_J1050.1+0432_daily_bin435.fits.....................!
real 55.23
user 53.71
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/236220/ft1_filtered_4FGL_J1050.1+0432_daily_bin435.fits', '/scratch/kocevski/236220/ft2_4FGL_J1050.1+0432_daily_bin435.fits', expMap='/scratch/kocevski/236220/expmap_352080001_352339201_4FGL_J1050.1+0432_daily_bin435.fits', expCube='/scratch/kocevski/236220/ltcube_352080001_352339201_4FGL_J1050.1+0432_daily_bin435.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/236220/Model_4FGL_J1050.1+0432_daily_bin435.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1050.1+0432'

4FGL J1050.1+0432
   Spectrum: PowerLaw
232    Prefactor:  4.184e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
233        Index:  2.606e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
234        Scale:  5.656e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/236220/ft1_filtered_4FGL_J1050.1+0432_daily_bin435.fits
Spacecraft file(s): /scratch/kocevski/236220/ft2_4FGL_J1050.1+0432_daily_bin435.fits
Exposure map: /scratch/kocevski/236220/expmap_352080001_352339201_4FGL_J1050.1+0432_daily_bin435.fits
Exposure cube: /scratch/kocevski/236220/ltcube_352080001_352339201_4FGL_J1050.1+0432_daily_bin435.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/236220/Model_4FGL_J1050.1+0432_daily_bin435.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) = 5494.55439197

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.450       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    15.933       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.1958       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10343E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10424E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.1687       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .87475       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.5114       1.0000         .10000E-03   10000.    
    15 'norm      '    .69630       1.0000         .10000E-03   10000.    
    16 'Prefactor '    32.981       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.1803       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.8028       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0070       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0249       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5470E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5494.552     FROM MIGRAD    STATUS=CONVERGED    438 CALLS     2168 TOTAL
                     EDM=   .89E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.450        14.113       -.24846E-06   -.87500E-05
   2  Prefactor     .10000E-03    28.069       -.19489E-06** at limit **
   3  norm          15.931        19.017       -.77488E-06   -.15308E-05
   4  Prefactor     8.1877        12.457        .31352E-05   -.11338E-03
   5  Prefactor     .10000E-03    68.092       -.15726E-05** at limit **
   6  Prefactor     .10000E-03    53.662        .39951E-06** at limit **
   7  Prefactor     .10000E-03    23.805       -.80363E-06** at limit **
   8  norm          .10000E-03    .70199       -.11225E-07** at limit **
   9  Prefactor     .10000E-03    8.1280        .44873E-07** at limit **
  10  Prefactor     .10000E-03    1.1813        .13713E-07** at limit **
  11  Prefactor     9.1683        8.0720        .90189E-07   -.24876E-04
  12  Prefactor     .10000E-03    11.352        .29100E-06** at limit **
  13  norm          .87482        .50956        .12975E-07   -.27073E-04
  14  Prefactor     4.5118        5.5350        .22450E-06    .25935E-03
  15  norm          .69678        1.4913        .40272E-06   -.57564E-04
  16  Prefactor     32.981        27.234        .14742E-07   -.29490E-04
  17  Prefactor     .10000E-03    1.9844        .13259E-07** at limit **
  18  norm          3.1801        12.677        .67167E-06   -.22222E-04
  19  Prefactor     6.8029        3.2496        .21951E-06   -.10977E-03
  20  Normalizat    1.0069        .21254       -.97476E-06   -.17658E-04
  21  Prefactor     1.0249        .16795       -.92155E-09   -.51146E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.4497
  Prefactor  = 0.0001
  norm       = 15.9313
  Prefactor  = 8.18765
  Prefactor  = 0.000100004
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.16833
  Prefactor  = 0.0001
  norm       = 0.874815
  Prefactor  = 4.5118
  norm       = 0.696776
  Prefactor  = 32.9809
  Prefactor  = 0.0001
  norm       = 3.18013
  Prefactor  = 6.80285
  Normalizat = 1.00694
  Prefactor  = 1.0249
 **********
 **   18 **HESSE 
 **********

 FCN=   5494.552     FROM HESSE     STATUS=OK           319 CALLS     2487 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.450        14.108        .11352E-03   -1.5002    
   2  Prefactor     .10000E-03    28.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          15.931        18.994        .10034E-03   -1.4909    
   4  Prefactor     8.1877        12.466        .70021E-03   -1.5136    
   5  Prefactor     .10000E-03    68.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    53.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    24.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .71808        .12113E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.3159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.1879        .78645E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.1683        8.0684        .13236E-03   -1.5102    
  12  Prefactor     .10000E-03    11.637        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .87482        .50917        .38082E-04   -1.5521    
  14  Prefactor     4.5118        5.5257        .18357E-03   -1.5283    
  15  norm          .69678        1.4632        .12256E-03   -1.5541    
  16  Prefactor     32.981        27.225        .69774E-04   -1.4559    
  17  Prefactor     .10000E-03    2.0001        .10197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.1801        12.650        .22724E-03   -1.5351    
  19  Prefactor     6.8029        3.2478        .44588E-03   -1.5186    
  20  Normalizat    1.0069        .24325        .27435E-03   -.92798    
  21  Prefactor     1.0249        .19331        .22826E-03   -.91904    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84783e-10
Minuit parameter uncertainties:
  1  14.1114
  2  9.94241e-05
  3  19.0014
  4  12.4699
  5  0.00106056
  6  0.000542652
  7  0.000188784
  8  1.52833e-08
  9  1.15426e-05
  10  2.67199e-07
  11  8.06932
  12  6.55493e-06
  13  0.509168
  14  5.52634
  15  1.46327
  16  27.2349
  17  1.06102e-06
  18  12.6606
  19  3.24785
  20  0.243519
  21  0.193437
Done.

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

Extracting fit parameters...

4FGL J1050.1+0432
   Spectrum: PowerLaw
232    Prefactor:  1.000e-04  6.555e-06  1.000e-04  1.000e+04 ( 1.000e-12)
233        Index:  2.606e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
234        Scale:  5.656e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  1.025e+00  1.934e-01  0.000e+00  1.000e+01 ( 1.000e+00)
545        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
546        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
543   Normalization:  1.007e+00  2.435e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 162.546 4.538
Photon Flux Upper Limit: 1.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/236220/likelihoodResults_352080001_352339201_4FGL_J1050.1+0432_daily_bin435.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) = 5494.55277998
delta logL = -0.000409996770941

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5494.55237041
delta logL = -4.24472091254e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11734E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6523       1.0000          .0000       10.000    
     3 'Normalizat'    1.0071       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0248       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5470E+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=   5494.552     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      239 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    15.220        .36285E-03** at limit **
   2  Index         2.7069        6.3469        .50000       -.40326E-04
   3  Normalizat    1.0069        .22688        .27435E-03   -.49685E-04
   4  Prefactor     1.0249        .19135        .22826E-03   -.55035E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100025
  Index      = 2.70689
  Normalizat = 1.00694
  Prefactor  = 1.0249
 **********
 **   18 **HESSE 
 **********

 FCN=   5494.552     FROM HESSE     STATUS=OK            29 CALLS      268 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    14.603        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7069        6.3426        .50000       -.47644    
   3  Normalizat    1.0069        .22710        .10974E-04   -.92798    
   4  Prefactor     1.0249        .19154        .91306E-05   -.91904    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.19524e-09
Minuit parameter uncertainties:
  1  0.00121279
  2  4.44748
  3  0.227321
  4  0.191664
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/236220': 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) = 5494.5523691
delta logL = 8.84821020009e-07

Extracting fit parameters...

4FGL J1050.1+0432
   Spectrum: PowerLaw
232    Prefactor:  1.000e-04  1.213e-03  1.000e-04  1.000e+04 ( 1.000e-12)
233        Index:  2.707e+00  4.447e+00  0.000e+00  1.000e+01 (-1.000e+00)
234        Scale:  5.656e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  1.025e+00  1.917e-01  0.000e+00  1.000e+01 ( 1.000e+00)
545        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
546        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
543   Normalization:  1.007e+00  2.273e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 162.546 4.538

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/236220/cmap_HighResolution_352080001_352339201_4FGL_J1050.1+0432_daily_bin435.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.44e-03', job_status='DONE', photon_flux_upper_limit='1.08e-07', time_completed='2021-09-02 17:55:30.635382', job_id='236220', GAL2='1.02', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1630630530.64', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='8.85e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='435' AND source_name='4FGL J1050.1+0432' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 17:55:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 236220: <4FGL_J1050.1+0432_daily_bin435> in cluster <slac> Done

Job <4FGL_J1050.1+0432_daily_bin435> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  2 17:41:18 2021
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 17:42:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 17:42:55 2021
Terminated at Thu Sep  2 17:55:31 2021
Results reported at Thu Sep  2 17:55:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1050.1+0432_daily_bin435 162.546 4.5377 352080001 352339201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1050.1+0432 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   581.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   756 sec.
    Turnaround time :                            853 sec.

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

