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


Performing analysis on: 4FGL_J1050.1+0432_daily_bin196
RA = 162.546, Dec = 4.5377
tmin = 290131201, tmax = 290390401
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='234588', job_status='RUN', time_executed='2021-09-02 17:41:23.021683', time_epoch_executed='1630629683.02' WHERE source_name='4FGL J1050.1+0432' and cadence='daily' and bin_id='196'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/234588

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/234588/ft1_4FGL_J1050.1+0432_daily_bin196.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/234588/ft2_4FGL_J1050.1+0432_daily_bin196.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/234588/ft1_4FGL_J1050.1+0432_daily_bin196.fits outfile=/scratch/kocevski/234588/ft1_filteredMKT_4FGL_J1050.1+0432_daily_bin196.fits ra=162.546 dec=4.5377 rad=12.0 tmin=290131201.0 tmax=290390401.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.40
user 3.18
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/234588/ft2_4FGL_J1050.1+0432_daily_bin196.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/234588/ft1_filteredMKT_4FGL_J1050.1+0432_daily_bin196.fits evtable="EVENTS" outfile="/scratch/kocevski/234588/ft1_filtered_4FGL_J1050.1+0432_daily_bin196.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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/234588/ft1_filtered_4FGL_J1050.1+0432_daily_bin196.fits" evtable="EVENTS" scfile=/scratch/kocevski/234588/ft2_4FGL_J1050.1+0432_daily_bin196.fits sctable="SC_DATA" outfile=/scratch/kocevski/234588/ltcube_290131201_290390401_4FGL_J1050.1+0432_daily_bin196.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/234588/ft2_4FGL_J1050.1+0432_daily_bin196.fits
.....................!
real 12.85
user 12.43
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/234588/ft1_filtered_4FGL_J1050.1+0432_daily_bin196.fits evtable="EVENTS" scfile=/scratch/kocevski/234588/ft2_4FGL_J1050.1+0432_daily_bin196.fits sctable="SC_DATA" expcube=/scratch/kocevski/234588/ltcube_290131201_290390401_4FGL_J1050.1+0432_daily_bin196.fits outfile=/scratch/kocevski/234588/expmap_290131201_290390401_4FGL_J1050.1+0432_daily_bin196.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/234588/ltcube_290131201_290390401_4FGL_J1050.1+0432_daily_bin196.fits
.....................!
real 190.78
user 185.33
sys 4.99

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/234588/ft1_filtered_4FGL_J1050.1+0432_daily_bin196.fits scfile=/scratch/kocevski/234588/ft2_4FGL_J1050.1+0432_daily_bin196.fits outfile=/scratch/kocevski/234588/cmap_290131201_290390401_4FGL_J1050.1+0432_daily_bin196.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/234588/ft1_filtered_4FGL_J1050.1+0432_daily_bin196.fits scfile=/scratch/kocevski/234588/ft2_4FGL_J1050.1+0432_daily_bin196.fits outfile=/scratch/kocevski/234588/cmap_HighResolution_290131201_290390401_4FGL_J1050.1+0432_daily_bin196.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.55
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/234588/ft1_filtered_4FGL_J1050.1+0432_daily_bin196.fits', '/scratch/kocevski/234588/ft2_4FGL_J1050.1+0432_daily_bin196.fits', expMap='/scratch/kocevski/234588/expmap_290131201_290390401_4FGL_J1050.1+0432_daily_bin196.fits', expCube='/scratch/kocevski/234588/ltcube_290131201_290390401_4FGL_J1050.1+0432_daily_bin196.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/234588/Model_4FGL_J1050.1+0432_daily_bin196.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/234588/ft1_filtered_4FGL_J1050.1+0432_daily_bin196.fits
Spacecraft file(s): /scratch/kocevski/234588/ft2_4FGL_J1050.1+0432_daily_bin196.fits
Exposure map: /scratch/kocevski/234588/expmap_290131201_290390401_4FGL_J1050.1+0432_daily_bin196.fits
Exposure cube: /scratch/kocevski/234588/ltcube_290131201_290390401_4FGL_J1050.1+0432_daily_bin196.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/234588/Model_4FGL_J1050.1+0432_daily_bin196.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) = 5831.34752536

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.662       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11920E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.437       1.0000         .10000E-03   10000.    
     8 'norm      '    .84950       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .56540E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.6707       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.261       1.0000         .10000E-03   10000.    
    13 'norm      '    1.5650       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.0191       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    28.025       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.5683       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.2569       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0599       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1022       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=   5831.335     FROM MIGRAD    STATUS=CONVERGED    447 CALLS     2217 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.661        15.939       -.60070E-06   -.77481E-04
   2  Prefactor     .10000E-03    49.065        .49446E-06** at limit **
   3  norm          .10000E-03    10.081        .50923E-07** at limit **
   4  Prefactor     .10000E-03    8.5393        .11597E-06** at limit **
   5  Prefactor     .10000E-03    29.590       -.14172E-06** at limit **
   6  Prefactor     .10001E-03    283.59       -.25487E-05** at limit **
   7  Prefactor     14.441        18.770       -.51635E-05   -.11948E-03
   8  norm          .84996        1.2772        .24967E-06    .11960E-03
   9  Prefactor     .10005E-03    7.1345        .23529E-05** at limit **
  10  Prefactor     .10000E-03    1.9253       -.99236E-07** at limit **
  11  Prefactor     4.6698        5.8280        .30451E-06    .29736E-04
  12  Prefactor     10.263        10.489        .22514E-05    .18826E-04
  13  norm          1.5653        1.1166        .40742E-07   -.44020E-03
  14  Prefactor     8.0143        18.285       -.75955E-06   -.46492E-04
  15  norm          .10000E-03    .40875        .12413E-07** at limit **
  16  Prefactor     28.020        21.310       -.39976E-07   -.32680E-04
  17  Prefactor     .10000E-03    2.9454        .35934E-07** at limit **
  18  norm          2.5681        9.7856        .10992E-05    .79555E-05
  19  Prefactor     7.2568        3.3385        .41752E-07   -.20924E-04
  20  Normalizat    1.0598        .21472       -.15698E-05   -.29391E-03
  21  Prefactor     1.1022        .17290        .59423E-07   -.39498E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.6613
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 14.4409
  norm       = 0.849962
  Prefactor  = 0.000100051
  Prefactor  = 0.0001
  Prefactor  = 4.66977
  Prefactor  = 10.2626
  norm       = 1.56533
  Prefactor  = 8.01433
  norm       = 0.0001
  Prefactor  = 28.0197
  Prefactor  = 0.0001
  norm       = 2.56815
  Prefactor  = 7.25675
  Normalizat = 1.05984
  Prefactor  = 1.10221
 **********
 **   18 **HESSE 
 **********

 FCN=   5831.335     FROM HESSE     STATUS=OK           319 CALLS     2536 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.661        15.927        .77584E-04   -1.4675    
   2  Prefactor     .10000E-03    49.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    10.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.5772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    29.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    283.40        .20643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.441        18.776        .10541E-03   -1.4948    
   8  norm          .84996        1.1251        .10098E-02   -1.5524    
   9  Prefactor     .10005E-03    20.691        .36359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.9570        .10335E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.6698        5.8272        .18621E-03   -1.5276    
  12  Prefactor     10.263        10.506        .62543E-03   -1.5067    
  13  norm          1.5653        1.1749        .46246E-04   -1.5458    
  14  Prefactor     8.0143        19.368        .14159E-03   -1.5142    
  15  norm          .10000E-03    .41398        .47642E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     28.020        21.321        .75678E-04   -1.4649    
  17  Prefactor     .10000E-03    2.9850        .12797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.5681        9.7723        .25471E-03   -1.5387    
  19  Prefactor     7.2568        3.3389        .91803E-04   -1.5169    
  20  Normalizat    1.0598        .25492        .28810E-03   -.91052    
  21  Prefactor     1.1022        .20611        .23849E-03   -.89396    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70848e-09
Minuit parameter uncertainties:
  1  15.9294
  2  0.000281612
  3  4.04221e-05
  4  0.000103245
  5  3.73151e-06
  6  0.00297863
  7  18.7834
  8  1.12512
  9  0.00206485
  10  3.31418e-06
  11  5.82788
  12  10.5082
  13  1.17493
  14  19.3834
  15  5.19334e-07
  16  21.3266
  17  3.75106e-06
  18  9.77836
  19  3.33901
  20  0.255213
  21  0.206254
Done.

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

Extracting fit parameters...

4FGL J1050.1+0432
   Spectrum: PowerLaw
232    Prefactor:  1.026e+01  1.051e+01  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.102e+00  2.063e-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.060e+00  2.552e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.32
Ra Dec: 162.546 4.538
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 5.85e-08 +/- 5.98e-08
Energy Flux (Fixed Index): 1.52e-05 +/- 1.56e-05

TS (Fixed Index): 1.32
Ra Dec: 162.546 4.538
Photon Flux Upper Limit: 1.77e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.38e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/234588/likelihoodResults_290131201_290390401_4FGL_J1050.1+0432_daily_bin196.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) = 5830.48155708
delta logL = 0.853238198547

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5830.47630516
delta logL = 0.858490112772

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5972       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8146       1.0000          .0000       10.000    
     3 'Normalizat'    .98922       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1421       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.

 FCN=   5830.476     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      265 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6003        57.201        .46932E-02    .49374E-03
   2  Index         3.8148        3.7250        .15913        .13141E-03
   3  Normalizat    .98918        .72843E-01    .67037E-01    .10261E-04
   4  Prefactor     1.1421        .60393E-01    .53087E-01   -.26633E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.60034
  Index      = 3.8148
  Normalizat = 0.989183
  Prefactor  = 1.14214
 **********
 **   18 **HESSE 
 **********

 FCN=   5830.476     FROM HESSE     STATUS=OK            33 CALLS      298 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6003        10.326        .10236E-03   -1.5279    
   2  Index         3.8148        1.5839        .58997E-02   -.23932    
   3  Normalizat    .98918        .25258        .29653E-03   -.93394    
   4  Prefactor     1.1421        .20907        .23471E-03   -.88131    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.39529e-11
Minuit parameter uncertainties:
  1  10.3303
  2  1.61341
  3  0.252886
  4  0.209222
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/234588': 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) = 5830.47630407
delta logL = 0.858491206537

Extracting fit parameters...

4FGL J1050.1+0432
   Spectrum: PowerLaw
232    Prefactor:  4.600e+00  1.033e+01  1.000e-04  1.000e+04 ( 1.000e-12)
233        Index:  3.815e+00  1.613e+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.142e+00  2.092e-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:  9.892e-01  2.529e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.20
Ra Dec: 162.546 4.538
Photon Index (Free Index): 3.81 +/- 1.61
Photon Flux (Free Index): 1.22e-07 +/- 8.28e-08
Energy Flux (Free Index): 1.88e-05 +/- 1.35e-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/234588/cmap_HighResolution_290131201_290390401_4FGL_J1050.1+0432_daily_bin196.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.38e-02', comment='SUCCESS', photon_flux='5.85e-08', energy_flux2='1.88e-05', photon_flux_error='5.98e-08', dlogl='8.58e-01', energy_flux='1.52e-05', photon_flux2='1.22e-07', job_status='DONE', time_completed='2021-09-02 17:51:23.203974', photon_index_error2='1.61', photon_index2='3.81', ts='1.32', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='1.77e-07', energy_flux_error2='1.35e-05', EG='1.06', time_epoch_completed='1630630283.2', return_code='0', job_id='234588', GAL2='1.14', EG2='0.99', return_code2='0', energy_flux_error='1.56e-05', photon_flux_error2='8.28e-08', ts2='3.20', photon_index='2.61' WHERE bin_id='196' AND source_name='4FGL J1050.1+0432' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 17:51:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 234588: <4FGL_J1050.1+0432_daily_bin196> in cluster <slac> Done

Job <4FGL_J1050.1+0432_daily_bin196> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Thu Sep  2 17:36:18 2021
Job was executed on host(s) <bullet0042>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 17:38:51 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:38:51 2021
Terminated at Thu Sep  2 17:51:24 2021
Results reported at Thu Sep  2 17:51:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1050.1+0432_daily_bin196 162.546 4.5377 290131201 290390401 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 :                                   598.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   752 sec.
    Turnaround time :                            906 sec.

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

