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


Performing analysis on: 4FGL_J1050.1+0432_daily_bin197
RA = 162.546, Dec = 4.5377
tmin = 290390401, tmax = 290649601
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='234589', job_status='RUN', time_executed='2021-09-02 17:41:50.629215', time_epoch_executed='1630629710.63' WHERE source_name='4FGL J1050.1+0432' and cadence='daily' and bin_id='197'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/234589

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/234589/ft1_4FGL_J1050.1+0432_daily_bin197.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/234589/ft2_4FGL_J1050.1+0432_daily_bin197.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/234589/ft1_4FGL_J1050.1+0432_daily_bin197.fits outfile=/scratch/kocevski/234589/ft1_filteredMKT_4FGL_J1050.1+0432_daily_bin197.fits ra=162.546 dec=4.5377 rad=12.0 tmin=290390401.0 tmax=290649601.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.57
user 3.32
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/234589/ft2_4FGL_J1050.1+0432_daily_bin197.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/234589/ft1_filteredMKT_4FGL_J1050.1+0432_daily_bin197.fits evtable="EVENTS" outfile="/scratch/kocevski/234589/ft1_filtered_4FGL_J1050.1+0432_daily_bin197.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.37
sys 0.13

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/234589/ft1_filtered_4FGL_J1050.1+0432_daily_bin197.fits evtable="EVENTS" scfile=/scratch/kocevski/234589/ft2_4FGL_J1050.1+0432_daily_bin197.fits sctable="SC_DATA" expcube=/scratch/kocevski/234589/ltcube_290390401_290649601_4FGL_J1050.1+0432_daily_bin197.fits outfile=/scratch/kocevski/234589/expmap_290390401_290649601_4FGL_J1050.1+0432_daily_bin197.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/234589/ltcube_290390401_290649601_4FGL_J1050.1+0432_daily_bin197.fits
.....................!
real 193.02
user 187.66
sys 4.60

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/234589/ft1_filtered_4FGL_J1050.1+0432_daily_bin197.fits scfile=/scratch/kocevski/234589/ft2_4FGL_J1050.1+0432_daily_bin197.fits outfile=/scratch/kocevski/234589/cmap_290390401_290649601_4FGL_J1050.1+0432_daily_bin197.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.93
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/234589/ft1_filtered_4FGL_J1050.1+0432_daily_bin197.fits scfile=/scratch/kocevski/234589/ft2_4FGL_J1050.1+0432_daily_bin197.fits outfile=/scratch/kocevski/234589/cmap_HighResolution_290390401_290649601_4FGL_J1050.1+0432_daily_bin197.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.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0390       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .17392E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.225       1.0000         .10000E-03   10000.    
     6 'Prefactor '    37.802       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.4725       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.7214       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.518       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.7498       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .22381       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2515       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .89667       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=   5218.756     FROM MIGRAD    STATUS=CONVERGED    456 CALLS     2259 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0539        16.120        .21845E-05   -.95589E-04
   2  Prefactor     .10000E-03    20.815       -.20968E-06** at limit **
   3  norm          .10000E-03    16.994       -.53230E-06** at limit **
   4  Prefactor     .10021E-03    19.493        .43712E-05** at limit **
   5  Prefactor     25.242        56.203       -.19550E-05   -.12695E-03
   6  Prefactor     37.851        73.346       -.56962E-05   -.28406E-03
   7  Prefactor     7.4853        23.313        .35239E-05   -.15853E-03
   8  norm          .10000E-03    .61416       -.78525E-07** at limit **
   9  Prefactor     .10000E-03    3.5236       -.11770E-06** at limit **
  10  Prefactor     .10000E-03    1.7878       -.10949E-06** at limit **
  11  Prefactor     .10000E-03    2.0626       -.59424E-07** at limit **
  12  Prefactor     .10000E-03    19.252       -.42089E-06** at limit **
  13  norm          1.7213        .72720        .26204E-08    .34662E-04
  14  Prefactor     .10000E-03    8.4472       -.11700E-06** at limit **
  15  norm          .10000E-03    .52197       -.12930E-06** at limit **
  16  Prefactor     17.517        17.391        .18745E-07    .13439E-04
  17  Prefactor     .10000E-03    2.7337       -.86298E-07** at limit **
  18  norm          3.7495        10.391        .24108E-05    .28993E-03
  19  Prefactor     .22221        2.4399        .12453E-05   -.10827E-03
  20  Normalizat    1.2515        .20778       -.96595E-06   -.11149E-03
  21  Prefactor     .89669        .16964        .10389E-05   -.85356E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.05392
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100207
  Prefactor  = 25.2421
  Prefactor  = 37.8514
  Prefactor  = 7.48526
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.7213
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.5173
  Prefactor  = 0.0001
  norm       = 3.7495
  Prefactor  = 0.222213
  Normalizat = 1.25155
  Prefactor  = 0.896688
 **********
 **   18 **HESSE 
 **********

 FCN=   5218.756     FROM HESSE     STATUS=OK           315 CALLS     2574 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0539        15.770        .17913E-03   -1.5258    
   2  Prefactor     .10000E-03    20.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    17.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10021E-03    53.336        .40108E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     25.242        56.205        .79758E-04   -1.4703    
   6  Prefactor     37.851        72.900        .65187E-04   -1.4477    
   7  Prefactor     7.4853        23.300        .14671E-03   -1.5161    
   8  norm          .10000E-03    .63311        .11055E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.5495        .13243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.8251        .94296E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.0726        .10132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    19.991        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.7213        .72271        .38080E-04   -1.5446    
  14  Prefactor     .10000E-03    8.5309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .73527        .10098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     17.517        17.406        .95691E-04   -1.4871    
  17  Prefactor     .10000E-03    2.7521        .11665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.7495        10.529        .10425E-02   -1.5321    
  19  Prefactor     .22221        4.2437        .19444E-02   -1.5614    
  20  Normalizat    1.2515        .24024        .24645E-03   -.85025    
  21  Prefactor     .89669        .19864        .24121E-03   -.96257    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.37125e-08
Minuit parameter uncertainties:
  1  15.783
  2  2.58809e-05
  3  0.000148423
  4  0.0066472
  5  56.3228
  6  73.0722
  7  23.3282
  8  3.72591e-06
  9  1.08736e-05
  10  7.10044e-06
  11  3.64895e-06
  12  0.000117176
  13  0.722712
  14  1.89143e-05
  15  4.21178e-06
  16  17.4107
  17  6.63523e-06
  18  10.5339
  19  1.94189
  20  0.240452
  21  0.198797
Done.

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

Extracting fit parameters...

4FGL J1050.1+0432
   Spectrum: PowerLaw
232    Prefactor:  1.000e-04  1.172e-04  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:  8.967e-01  1.988e-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.252e+00  2.405e-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.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.43e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/234589/likelihoodResults_290390401_290649601_4FGL_J1050.1+0432_daily_bin197.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) = 5218.75648136
delta logL = -0.000238760317188

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5218.75624355
delta logL = -9.5977611636e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14912E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6499       1.0000          .0000       10.000    
     3 'Normalizat'    1.2516       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89666       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=   5218.756     FROM MIGRAD    STATUS=CONVERGED    110 CALLS      270 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .31334E-03    .43502        .35737E-01** at limit **
   2  Index         3.8073        7.9616        .50000        .24769E-04
   3  Normalizat    1.2515        .21434E-02    .24645E-03    .10871E-02
   4  Prefactor     .89669        .18189E-02    .24121E-03    .70574E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000313336
  Index      = 3.80735
  Normalizat = 1.25155
  Prefactor  = 0.896687
 **********
 **   18 **HESSE 
 **********

 FCN=   5218.756     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      309 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .31334E-03    .74823        .28602E-01   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.8073        8.0959        .50000       -.24085    
   3  Normalizat    1.2515        .23052E-02    .49290E-04   -.85024    
   4  Prefactor     .89669        .19562E-02    .48242E-04   -.96257    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.13413e-08
Minuit parameter uncertainties:
  1  0.0252688
  2  21.6275
  3  0.00230517
  4  0.00195616
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/234589': 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): 102
logL (Free Index) = 5218.75623652
delta logL = 6.07837955613e-06

Extracting fit parameters...

4FGL J1050.1+0432
   Spectrum: PowerLaw
232    Prefactor:  3.133e-04  2.527e-02  1.000e-04  1.000e+04 ( 1.000e-12)
233        Index:  3.807e+00  2.163e+01  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:  8.967e-01  1.956e-03  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.252e+00  2.305e-03  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/234589/cmap_HighResolution_290390401_290649601_4FGL_J1050.1+0432_daily_bin197.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.43e-03', job_status='DONE', photon_flux_upper_limit='1.20e-07', time_completed='2021-09-02 17:51:39.011386', job_id='234589', GAL2='0.90', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1630630299.01', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='6.08e-06', ts2='0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='197' AND source_name='4FGL J1050.1+0432' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 17:51:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 234589: <4FGL_J1050.1+0432_daily_bin197> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1050.1+0432_daily_bin197 162.546 4.5377 290390401 290649601 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 :                                   586.58 sec.
    Max Memory :                                 1116 MB
    Average Memory :                             279.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   769 sec.
    Turnaround time :                            921 sec.

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

