/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 173 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 = 7516
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1050.1+0432_daily_bin736
RA = 162.546, Dec = 4.5377
tmin = 430099201, tmax = 430358401
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='236652', job_status='RUN', time_executed='2021-09-02 17:48:10.927800', time_epoch_executed='1630630090.93' WHERE source_name='4FGL J1050.1+0432' and cadence='daily' and bin_id='736'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/236652

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/236652/ft1_4FGL_J1050.1+0432_daily_bin736.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/236652/ft2_4FGL_J1050.1+0432_daily_bin736.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/236652/ft1_4FGL_J1050.1+0432_daily_bin736.fits outfile=/scratch/kocevski/236652/ft1_filteredMKT_4FGL_J1050.1+0432_daily_bin736.fits ra=162.546 dec=4.5377 rad=12.0 tmin=430099201.0 tmax=430358401.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 11.12
user 10.73
sys 0.33

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/236652/ft1_filtered_4FGL_J1050.1+0432_daily_bin736.fits" evtable="EVENTS" scfile=/scratch/kocevski/236652/ft2_4FGL_J1050.1+0432_daily_bin736.fits sctable="SC_DATA" outfile=/scratch/kocevski/236652/ltcube_430099201_430358401_4FGL_J1050.1+0432_daily_bin736.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/236652/ft2_4FGL_J1050.1+0432_daily_bin736.fits
.....................!
real 12.21
user 11.84
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/236652/ft1_filtered_4FGL_J1050.1+0432_daily_bin736.fits evtable="EVENTS" scfile=/scratch/kocevski/236652/ft2_4FGL_J1050.1+0432_daily_bin736.fits sctable="SC_DATA" expcube=/scratch/kocevski/236652/ltcube_430099201_430358401_4FGL_J1050.1+0432_daily_bin736.fits outfile=/scratch/kocevski/236652/expmap_430099201_430358401_4FGL_J1050.1+0432_daily_bin736.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/236652/ltcube_430099201_430358401_4FGL_J1050.1+0432_daily_bin736.fits
.....................!
real 190.98
user 185.18
sys 5.39

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/236652/ft1_filtered_4FGL_J1050.1+0432_daily_bin736.fits scfile=/scratch/kocevski/236652/ft2_4FGL_J1050.1+0432_daily_bin736.fits outfile=/scratch/kocevski/236652/cmap_430099201_430358401_4FGL_J1050.1+0432_daily_bin736.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.57
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/236652/ft1_filtered_4FGL_J1050.1+0432_daily_bin736.fits scfile=/scratch/kocevski/236652/ft2_4FGL_J1050.1+0432_daily_bin736.fits outfile=/scratch/kocevski/236652/cmap_HighResolution_430099201_430358401_4FGL_J1050.1+0432_daily_bin736.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/236652/ft1_filtered_4FGL_J1050.1+0432_daily_bin736.fits evtable="EVENTS" scfile=/scratch/kocevski/236652/ft2_4FGL_J1050.1+0432_daily_bin736.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/236652/Model_4FGL_J1050.1+0432_daily_bin736.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/236652/ft1_filtered_4FGL_J1050.1+0432_daily_bin736.fits.....................!
real 39.07
user 37.73
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.1567       1.0000         .10000E-03   10000.    
     4 'Prefactor '    26.576       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10014E-03   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 '    .10545E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.988       1.0000         .10000E-03   10000.    
    12 'Prefactor '    32.622       1.0000         .10000E-03   10000.    
    13 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.5604       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    18.473       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.0331       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0169       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2917       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=   3088.449     FROM MIGRAD    STATUS=CONVERGED    434 CALLS     2189 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.420        .11786E-04** at limit **
   2  Prefactor     .10000E-03    60.380       -.55238E-05** at limit **
   3  norm          4.1591        16.445       -.19020E-05   -.14196E-03
   4  Prefactor     26.583        18.328        .31352E-06   -.14361E-03
   5  Prefactor     .10000E-03    60.480       -.61189E-05** at limit **
   6  Prefactor     .10000E-03    39.777        .12468E-04** at limit **
   7  Prefactor     .10000E-03    10.947        .35098E-05** at limit **
   8  norm          .10000E-03    1.1386        .11182E-07** at limit **
   9  Prefactor     .10000E-03    22.308       -.68972E-05** at limit **
  10  Prefactor     .10000E-03    4.2822       -.49987E-07** at limit **
  11  Prefactor     18.990        13.302       -.40292E-06   -.48012E-03
  12  Prefactor     32.625        19.484        .40208E-06    .35085E-05
  13  norm          .10000E-03    .27617        .24129E-07** at limit **
  14  Prefactor     .10000E-03    6.0850       -.27887E-07** at limit **
  15  norm          2.5609        2.3973        .14094E-08   -.93271E-04
  16  Prefactor     .10000E-03    36.320        .15092E-05** at limit **
  17  Prefactor     .10000E-03    12.199       -.12820E-04** at limit **
  18  norm          18.473        15.644        .29005E-07    .10182E-06
  19  Prefactor     3.0330        3.0657        .36017E-07    .11809E-03
  20  Normalizat    1.0163        .32760        .12625E-07    .56922E-04
  21  Prefactor     1.2923        .26643       -.82089E-07    .68214E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.15915
  Prefactor  = 26.5826
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.9896
  Prefactor  = 32.6249
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.56089
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.4734
  Prefactor  = 3.03303
  Normalizat = 1.01627
  Prefactor  = 1.29233
 **********
 **   18 **HESSE 
 **********

 FCN=   3088.449     FROM HESSE     STATUS=OK           309 CALLS     2498 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    60.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.1591        16.468        .19769E-03   -1.5300    
   4  Prefactor     26.583        18.346        .77709E-04   -1.4676    
   5  Prefactor     .10000E-03    60.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    39.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.951        .17956E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.1519        .57877E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    22.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.3234        .11214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     18.990        13.377        .45958E-03   -1.4836    
  12  Prefactor     32.625        19.560        .70156E-04   -1.4565    
  13  norm          .10000E-03    .27914        .28500E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.1027        .13388E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.5609        2.3938        .78734E-04   -1.5388    
  16  Prefactor     .10000E-03    36.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          18.473        15.643        .93186E-04   -1.4848    
  19  Prefactor     3.0330        3.0713        .95448E-04   -1.5360    
  20  Normalizat    1.0163        .40118        .31698E-03   -.92487    
  21  Prefactor     1.2923        .32635        .24145E-03   -.83536    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.21313e-10
Minuit parameter uncertainties:
  1  1.65754e-06
  2  5.62499e-06
  3  16.4856
  4  18.3503
  5  9.44863e-06
  6  1.04829e-05
  7  3.71782e-06
  8  2.75073e-07
  9  7.64007e-05
  10  4.84207e-06
  11  13.3789
  12  19.5637
  13  6.91194e-08
  14  1.26005e-06
  15  2.39393
  16  7.27828e-06
  17  5.4504e-05
  18  15.6465
  19  3.07149
  20  0.402379
  21  0.326865
Done.

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

Extracting fit parameters...

4FGL J1050.1+0432
   Spectrum: PowerLaw
232    Prefactor:  3.262e+01  1.956e+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.292e+00  3.269e-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.016e+00  4.024e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.32
Ra Dec: 162.546 4.538
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 1.86e-07 +/- 1.11e-07
Energy Flux (Fixed Index): 4.85e-05 +/- 2.91e-05

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) = 3087.6332329
delta logL = 0.815276658883

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3087.62947561
delta logL = 0.819033947761

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.995       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4668       1.0000          .0000       10.000    
     3 'Normalizat'    .92547       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3536       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=   3087.629     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      295 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.996        20.089        .10015E-03   -.34017E-03
   2  Index         3.4667        .91270        .39844E-02   -.86615E-04
   3  Normalizat    .92581        .39481        .32983E-03    .59026E-04
   4  Prefactor     1.3533        .33051        .23674E-03    .10349E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.9958
  Index      = 3.46675
  Normalizat = 0.92581
  Prefactor  = 1.35326
 **********
 **   18 **HESSE 
 **********

 FCN=   3087.629     FROM HESSE     STATUS=OK            25 CALLS      320 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.996        17.767        .40058E-05   -1.4908    
   2  Index         3.4667        .80784        .15937E-03   -.31167    
   3  Normalizat    .92581        .39518        .13193E-04   -.95559    
   4  Prefactor     1.3533        .33045        .47348E-04   -.81737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.12025e-11
Minuit parameter uncertainties:
  1  17.7732
  2  0.811767
  3  0.396426
  4  0.33097
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/236652': 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) = 3087.62947513
delta logL = 0.819034424106

Extracting fit parameters...

4FGL J1050.1+0432
   Spectrum: PowerLaw
232    Prefactor:  1.600e+01  1.777e+01  1.000e-04  1.000e+04 ( 1.000e-12)
233        Index:  3.467e+00  8.118e-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:  1.353e+00  3.310e-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.258e-01  3.964e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.15
Ra Dec: 162.546 4.538
Photon Index (Free Index): 3.47 +/- 0.81
Photon Flux (Free Index): 2.64e-07 +/- 1.41e-07
Energy Flux (Free Index): 4.43e-05 +/- 2.40e-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/236652/cmap_HighResolution_430099201_430358401_4FGL_J1050.1+0432_daily_bin736.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.86e-07', energy_flux2='4.43e-05', photon_flux_error='1.11e-07', dlogl='8.19e-01', energy_flux='4.85e-05', photon_flux2='2.64e-07', job_status='DONE', time_completed='2021-09-02 17:56:10.739003', photon_index_error2='0.81', photon_index2='3.47', ts='4.32', fit_tolerance='1e-08', GAL='1.29', photon_index_error='0.00', energy_flux_error2='2.40e-05', EG='1.02', time_epoch_completed='1630630570.74', return_code='0', job_id='236652', GAL2='1.35', EG2='0.93', return_code2='0', energy_flux_error='2.91e-05', photon_flux_error2='1.41e-07', ts2='6.15', photon_index='2.61' WHERE bin_id='736' AND source_name='4FGL J1050.1+0432' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 17:56:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0146>
Subject: Job 236652: <4FGL_J1050.1+0432_daily_bin736> in cluster <slac> Done

Job <4FGL_J1050.1+0432_daily_bin736> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  2 17:41:47 2021
Job was executed on host(s) <bullet0146>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 17:45:09 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:45:09 2021
Terminated at Thu Sep  2 17:56:11 2021
Results reported at Thu Sep  2 17:56:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1050.1+0432_daily_bin736 162.546 4.5377 430099201 430358401 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 :                                   477.43 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             256.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   661 sec.
    Turnaround time :                            864 sec.

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

