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


Performing analysis on: 4FGL_J1050.1+0432_daily_bin199
RA = 162.546, Dec = 4.5377
tmin = 290908801, tmax = 291168001
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='234592', job_status='RUN', time_executed='2021-09-02 17:42:33.868479', time_epoch_executed='1630629753.87' WHERE source_name='4FGL J1050.1+0432' and cadence='daily' and bin_id='199'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/234592

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/234592/ft1_4FGL_J1050.1+0432_daily_bin199.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/234592/ft2_4FGL_J1050.1+0432_daily_bin199.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/234592/ft1_4FGL_J1050.1+0432_daily_bin199.fits outfile=/scratch/kocevski/234592/ft1_filteredMKT_4FGL_J1050.1+0432_daily_bin199.fits ra=162.546 dec=4.5377 rad=12.0 tmin=290908801.0 tmax=291168001.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.51
user 3.27
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/234592/ft1_filtered_4FGL_J1050.1+0432_daily_bin199.fits" evtable="EVENTS" scfile=/scratch/kocevski/234592/ft2_4FGL_J1050.1+0432_daily_bin199.fits sctable="SC_DATA" outfile=/scratch/kocevski/234592/ltcube_290908801_291168001_4FGL_J1050.1+0432_daily_bin199.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/234592/ft2_4FGL_J1050.1+0432_daily_bin199.fits
.....................!
real 16.22
user 15.79
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/234592/ft1_filtered_4FGL_J1050.1+0432_daily_bin199.fits evtable="EVENTS" scfile=/scratch/kocevski/234592/ft2_4FGL_J1050.1+0432_daily_bin199.fits sctable="SC_DATA" expcube=/scratch/kocevski/234592/ltcube_290908801_291168001_4FGL_J1050.1+0432_daily_bin199.fits outfile=/scratch/kocevski/234592/expmap_290908801_291168001_4FGL_J1050.1+0432_daily_bin199.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/234592/ltcube_290908801_291168001_4FGL_J1050.1+0432_daily_bin199.fits
.....................!
real 190.70
user 185.93
sys 4.33

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/234592/ft1_filtered_4FGL_J1050.1+0432_daily_bin199.fits scfile=/scratch/kocevski/234592/ft2_4FGL_J1050.1+0432_daily_bin199.fits outfile=/scratch/kocevski/234592/cmap_290908801_291168001_4FGL_J1050.1+0432_daily_bin199.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/234592/ft1_filtered_4FGL_J1050.1+0432_daily_bin199.fits scfile=/scratch/kocevski/234592/ft2_4FGL_J1050.1+0432_daily_bin199.fits outfile=/scratch/kocevski/234592/cmap_HighResolution_290908801_291168001_4FGL_J1050.1+0432_daily_bin199.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.6948       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10286E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.714       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10454E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .24257E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.0030       1.0000         .10000E-03   10000.    
    13 'norm      '    1.2613       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.3787       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.872       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .65081       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.3051       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=   4923.279     FROM MIGRAD    STATUS=CONVERGED    452 CALLS     1896 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.6926        15.425        .32175E-02    .38545E-04
   2  Prefactor     .10002E-03    16.098        .90712E-02** at limit **
   3  norm          .10000E-03    7.9114        .90712E-02** at limit **
   4  Prefactor     22.719        12.139        .21011E-02    .25944E-04
   5  Prefactor     .10000E-03    50.725        .90712E-02** at limit **
   6  Prefactor     .10001E-03    29.491        .90712E-02** at limit **
   7  Prefactor     .10000E-03    6.6027        .90712E-02** at limit **
   8  norm          .10000E-03    .41600        .22309E-01** at limit **
   9  Prefactor     .10000E-03    2.0327        .90712E-02** at limit **
  10  Prefactor     .10000E-03    1.4959        .90712E-02** at limit **
  11  Prefactor     .10017E-03    3.5885        .72259E-01** at limit **
  12  Prefactor     7.0033        8.1033        .37899E-02    .24968E-03
  13  norm          1.2614        .60263        .80623E-02    .11799E-03
  14  Prefactor     .10000E-03    3.3876        .90712E-02** at limit **
  15  norm          1.3782        1.1366        .92703E-03    .10219E-03
  16  Prefactor     12.873        14.719        .27911E-02    .44556E-04
  17  Prefactor     .10000E-03    2.0590        .90712E-02** at limit **
  18  norm          .10000E-03    6.2340        .90712E-02** at limit **
  19  Prefactor     .10000E-03    1.7486        .90712E-02** at limit **
  20  Normalizat    .65077        .20942        .69349E-01    .32033E-04
  21  Prefactor     1.3050        .18077        .32522E-01    .10606E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.69262
  Prefactor  = 0.000100018
  norm       = 0.0001
  Prefactor  = 22.7192
  Prefactor  = 0.000100003
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100174
  Prefactor  = 7.0033
  norm       = 1.26137
  Prefactor  = 0.0001
  norm       = 1.37823
  Prefactor  = 12.8727
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.650768
  Prefactor  = 1.30501
 **********
 **   18 **HESSE 
 **********

 FCN=   4923.279     FROM HESSE     STATUS=OK           315 CALLS     2211 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.6926        15.408        .12870E-03   -1.5085    
   2  Prefactor     .10002E-03    16.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    7.9144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     22.719        12.125        .84046E-04   -1.4754    
   5  Prefactor     .10000E-03    50.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    29.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.6053        .17606E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .55930        .88192E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.0435        .97687E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.5214        .83719E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10017E-03    21.151        .25309E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.0033        8.0874        .15160E-03   -1.5179    
  13  norm          1.2614        .59697        .35868E-04   -1.5483    
  14  Prefactor     .10000E-03    3.3944        .12604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.3782        1.1368        .37081E-04   -1.5473    
  16  Prefactor     12.873        14.714        .11165E-03   -1.4990    
  17  Prefactor     .10000E-03    2.0701        .98321E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    6.3053        .17109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.8250        .18111E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .65077        .23427        .30692E-03   -1.0587    
  21  Prefactor     1.3050        .20529        .20153E-03   -.83158    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.49034e-09
Minuit parameter uncertainties:
  1  15.4144
  2  0.00107447
  3  5.16736e-05
  4  12.1266
  5  0.000809864
  6  0.000788738
  7  8.06187e-05
  8  1.01557e-08
  9  3.09268e-08
  10  1.7077e-06
  11  0.00383489
  12  8.08863
  13  0.596968
  14  4.31687e-06
  15  1.13685
  16  14.7185
  17  3.98056e-07
  18  4.57259e-05
  19  1.10907e-07
  20  0.234633
  21  0.205418
Done.

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

Extracting fit parameters...

4FGL J1050.1+0432
   Spectrum: PowerLaw
232    Prefactor:  7.003e+00  8.089e+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

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  1.305e+00  2.054e-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:  6.508e-01  2.346e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/234592/likelihoodResults_290908801_291168001_4FGL_J1050.1+0432_daily_bin199.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) = 4923.10575933
delta logL = 0.173200841269

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4923.10275024
delta logL = 0.176209931549

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.8197       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1596       1.0000          .0000       10.000    
     3 'Normalizat'    .63437       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3147       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=   4923.103     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      238 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.8271        143.61        .45812E-02    .32455E-03
   2  Index         3.1590        6.5437        .16673        .78544E-04
   3  Normalizat    .63466        .69901E-01    .70135E-01    .40814E-04
   4  Prefactor     1.3144        .63903E-01    .32358E-01    .18269E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.82707
  Index      = 3.15901
  Normalizat = 0.634658
  Prefactor  = 1.31439
 **********
 **   18 **HESSE 
 **********

 FCN=   4923.103     FROM HESSE     STATUS=OK            33 CALLS      271 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.8271        8.2564        .14408E-03   -1.5269    
   2  Index         3.1590        1.1558        .81729E-02   -.37707    
   3  Normalizat    .63466        .22976        .31042E-03   -1.0653    
   4  Prefactor     1.3144        .20541        .20087E-03   -.82880    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24808e-11
Minuit parameter uncertainties:
  1  8.25834
  2  1.16804
  3  0.230109
  4  0.205532
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/234592': 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) = 4923.1027485
delta logL = 0.176211665022

Extracting fit parameters...

4FGL J1050.1+0432
   Spectrum: PowerLaw
232    Prefactor:  4.827e+00  8.258e+00  1.000e-04  1.000e+04 ( 1.000e-12)
233        Index:  3.159e+00  1.168e+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.314e+00  2.055e-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:  6.347e-01  2.301e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.36
Ra Dec: 162.546 4.538
Photon Index (Free Index): 3.16 +/- 1.17
Photon Flux (Free Index): 5.34e-08 +/- 5.30e-08
Energy Flux (Free Index): 9.93e-06 +/- 1.05e-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/234592/cmap_HighResolution_290908801_291168001_4FGL_J1050.1+0432_daily_bin199.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-02', comment='SUCCESS', energy_flux2='9.93e-06', dlogl='1.76e-01', photon_flux2='5.34e-08', job_status='DONE', time_completed='2021-09-02 17:51:33.633583', photon_index_error2='1.17', photon_index2='3.16', ts='0.99', fit_tolerance='1e-08', GAL='1.31', photon_index_error='0.00', photon_flux_upper_limit='1.39e-07', energy_flux_error2='1.05e-05', EG='0.65', time_epoch_completed='1630630293.63', return_code='0', job_id='234592', GAL2='1.31', EG2='0.63', return_code2='0', photon_flux_error2='5.30e-08', ts2='1.36', photon_index='2.61' WHERE bin_id='199' AND source_name='4FGL J1050.1+0432' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 17:51:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0171>
Subject: Job 234592: <4FGL_J1050.1+0432_daily_bin199> in cluster <slac> Done

Job <4FGL_J1050.1+0432_daily_bin199> 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) <bullet0171>, 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:34 2021
Results reported at Thu Sep  2 17:51:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1050.1+0432_daily_bin199 162.546 4.5377 290908801 291168001 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 :                                   537.30 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             209.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   763 sec.
    Turnaround time :                            916 sec.

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

