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


Performing analysis on: 4FGL_J1050.1+0432_daily_bin150
RA = 162.546, Dec = 4.5377
tmin = 278208001, tmax = 278467201
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='234513', job_status='RUN', time_executed='2021-09-02 17:42:07.516318', time_epoch_executed='1630629727.52' WHERE source_name='4FGL J1050.1+0432' and cadence='daily' and bin_id='150'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/234513

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/234513/ft1_4FGL_J1050.1+0432_daily_bin150.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/234513/ft2_4FGL_J1050.1+0432_daily_bin150.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/234513/ft1_4FGL_J1050.1+0432_daily_bin150.fits outfile=/scratch/kocevski/234513/ft1_filteredMKT_4FGL_J1050.1+0432_daily_bin150.fits ra=162.546 dec=4.5377 rad=12.0 tmin=278208001.0 tmax=278467201.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 5.39
user 5.13
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/234513/ft1_filtered_4FGL_J1050.1+0432_daily_bin150.fits evtable="EVENTS" scfile=/scratch/kocevski/234513/ft2_4FGL_J1050.1+0432_daily_bin150.fits sctable="SC_DATA" expcube=/scratch/kocevski/234513/ltcube_278208001_278467201_4FGL_J1050.1+0432_daily_bin150.fits outfile=/scratch/kocevski/234513/expmap_278208001_278467201_4FGL_J1050.1+0432_daily_bin150.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/234513/ltcube_278208001_278467201_4FGL_J1050.1+0432_daily_bin150.fits
.....................!
real 190.51
user 185.44
sys 4.44

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/234513/ft1_filtered_4FGL_J1050.1+0432_daily_bin150.fits scfile=/scratch/kocevski/234513/ft2_4FGL_J1050.1+0432_daily_bin150.fits outfile=/scratch/kocevski/234513/cmap_278208001_278467201_4FGL_J1050.1+0432_daily_bin150.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.54
user 0.39
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12372E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10641E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    27.410       1.0000         .10000E-03   10000.    
     6 'Prefactor '    115.37       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .18461E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    .34566       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.751       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .25969E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.7583       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.7090       1.0000         .10000E-03   10000.    
    13 'norm      '    .69589       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .96110E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.6755       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .53834       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=   4964.136     FROM MIGRAD    STATUS=CONVERGED    832 CALLS     3073 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.7133        .13258E-02** at limit **
   2  Prefactor     .10000E-03    27.396        .18142E-02** at limit **
   3  norm          .10000E-03    5.4168        .16013E-02** at limit **
   4  Prefactor     .10000E-03    34.377        .36285E-03** at limit **
   5  Prefactor     27.385        62.522        .76520E-04   -.15799E-03
   6  Prefactor     115.38        78.197        .37457E-04   -.47834E-04
   7  Prefactor     .10086E-03    254.95        .62445E-02** at limit **
   8  norm          .34480        1.9374        .17993E-03   -.62021E-03
   9  Prefactor     12.750        10.676        .11218E-03   -.33941E-03
  10  Prefactor     .10001E-03    16.177        .17963E-02** at limit **
  11  Prefactor     5.7656        8.5560        .16738E-03   -.13116E-03
  12  Prefactor     7.7119        9.2449        .14443E-03   -.28416E-03
  13  norm          .69580        .45081        .36491E-04   -.14705E-03
  14  Prefactor     .10000E-03    3.6997        .13206E-02** at limit **
  15  norm          .10000E-03    1.3577        .12691E-02** at limit **
  16  Prefactor     .10000E-03    5.6965        .16420E-02** at limit **
  17  Prefactor     .10000E-03    10.825        .29544E-02** at limit **
  18  norm          .10000E-03    3.9116        .13600E-02** at limit **
  19  Prefactor     .11244E-03    3.7348        .28746E-01** at limit **
  20  Normalizat    1.6756        .26586        .22682E-03   -.65604E-03
  21  Prefactor     .53838        .20109        .29793E-03   -.39010E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 27.3853
  Prefactor  = 115.377
  Prefactor  = 0.000100859
  norm       = 0.344804
  Prefactor  = 12.7502
  Prefactor  = 0.000100012
  Prefactor  = 5.76563
  Prefactor  = 7.71189
  norm       = 0.695803
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000112439
  Normalizat = 1.67558
  Prefactor  = 0.538383
 **********
 **   18 **HESSE 
 **********

 FCN=   4964.136     FROM HESSE     STATUS=OK           305 CALLS     3378 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.7133        .26517E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    27.396        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    5.4168        .32025E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    34.377        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     27.385        62.498        .15304E-04   -1.4661    
   6  Prefactor     115.38        76.801        .74913E-05   -1.3556    
   7  Prefactor     .10086E-03    256.53        .24978E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .34480        1.9353        .71972E-05   -1.5591    
   9  Prefactor     12.750        10.673        .44870E-05   -1.4994    
  10  Prefactor     .10001E-03    16.429        .35926E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.7656        8.5551        .66951E-05   -1.5228    
  12  Prefactor     7.7119        9.2430        .57771E-05   -1.5152    
  13  norm          .69580        .45079        .14596E-05   -1.5541    
  14  Prefactor     .10000E-03    3.7000        .26412E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.3597        .25381E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.6965        .32840E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.884        .59087E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.9117        .27199E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .11244E-03    2.7848        .34832E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.6756        .26599        .45364E-04   -.72957    
  21  Prefactor     .53838        .20122        .11917E-04   -1.1025    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.13934e-09
Minuit parameter uncertainties:
  1  1.27463e-05
  2  0.000116294
  3  3.09512e-05
  4  0.000297306
  5  62.648
  6  76.8677
  7  0.0298187
  8  1.63361
  9  10.6749
  10  0.000875042
  11  8.55695
  12  9.24472
  13  0.450797
  14  5.39952e-06
  15  1.07899e-05
  16  1.76144e-06
  17  0.000126354
  18  3.24278e-06
  19  0.0117718
  20  0.266218
  21  0.201485
Done.

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

Extracting fit parameters...

4FGL J1050.1+0432
   Spectrum: PowerLaw
232    Prefactor:  7.712e+00  9.245e+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:  5.384e-01  2.015e-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.676e+00  2.662e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/234513/likelihoodResults_278208001_278467201_4FGL_J1050.1+0432_daily_bin150.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4962.05061102
delta logL = 2.0851175732

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4961.62973482
delta logL = 2.5059937739

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .46711E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    9.9999       1.0000          .0000       10.000    
     3 'Normalizat'    1.5087       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64703       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=   4961.630     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      447 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .46704E-03    .83097E-02    .20478E-03** at limit **
   2  Index        10.0000        6.7509        .50000    ** at limit **
   3  Normalizat    1.5083        .18074        .53313E-01   -.12843E-04
   4  Prefactor     .64720        .14194        .61964E-01    .13047E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000467042
  Index      = 10
  Normalizat = 1.50832
  Prefactor  = 0.647197
 **********
 **   18 **HESSE 
 **********

 FCN=   4961.630     FROM HESSE     STATUS=OK            35 CALLS      482 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .46704E-03    .26772E-03    .85312E-06   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        .38816        .50000        1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.5083        .26903        .23571E-03   -.77545    
   4  Prefactor     .64720        .20948        .27412E-03   -1.0563    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0765e-11
Minuit parameter uncertainties:
  1  0.000267715
  2  0.000113674
  3  0.269287
  4  0.209731
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/234513': 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) = 4961.62972983
delta logL = 2.505998765

Extracting fit parameters...

4FGL J1050.1+0432
   Spectrum: PowerLaw
232    Prefactor:  4.670e-04  2.677e-04  1.000e-04  1.000e+04 ( 1.000e-12)
233        Index:  1.000e+01  1.137e-04  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:  6.472e-01  2.097e-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.508e+00  2.693e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.43
Ra Dec: 162.546 4.538
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 1.79e-07 +/- 9.97e-08
Energy Flux (Free Index): 2.01e-05 +/- 1.12e-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/234513/cmap_HighResolution_278208001_278467201_4FGL_J1050.1+0432_daily_bin150.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.26e-02', comment='SUCCESS', energy_flux2='2.01e-05', dlogl='2.51e+00', photon_flux2='1.79e-07', job_status='DONE', time_completed='2021-09-02 17:52:42.677394', photon_index_error2='0.00', photon_index2='10.00', ts='0.96', fit_tolerance='1e-08', GAL='0.54', photon_index_error='0.00', photon_flux_upper_limit='1.61e-07', energy_flux_error2='1.12e-05', EG='1.68', time_epoch_completed='1630630362.68', return_code='0', job_id='234513', GAL2='0.65', EG2='1.51', return_code2='0', photon_flux_error2='9.97e-08', ts2='6.43', photon_index='2.61' WHERE bin_id='150' AND source_name='4FGL J1050.1+0432' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 17:52:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 234513: <4FGL_J1050.1+0432_daily_bin150> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1050.1+0432_daily_bin150 162.546 4.5377 278208001 278467201 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 :                                   633.12 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             252.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   852 sec.
    Turnaround time :                            991 sec.

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

