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


Performing analysis on: 4FGL_J1050.1+0432_daily_bin427
RA = 162.546, Dec = 4.5377
tmin = 350006401, tmax = 350265601
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='236206', job_status='RUN', time_executed='2021-09-02 17:46:16.305392', time_epoch_executed='1630629976.31' WHERE source_name='4FGL J1050.1+0432' and cadence='daily' and bin_id='427'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/236206

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/236206/ft1_4FGL_J1050.1+0432_daily_bin427.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/236206/ft2_4FGL_J1050.1+0432_daily_bin427.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/236206/ft1_4FGL_J1050.1+0432_daily_bin427.fits outfile=/scratch/kocevski/236206/ft1_filteredMKT_4FGL_J1050.1+0432_daily_bin427.fits ra=162.546 dec=4.5377 rad=12.0 tmin=350006401.0 tmax=350265601.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 4.07
user 3.77
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/236206/ft1_filtered_4FGL_J1050.1+0432_daily_bin427.fits evtable="EVENTS" scfile=/scratch/kocevski/236206/ft2_4FGL_J1050.1+0432_daily_bin427.fits sctable="SC_DATA" expcube=/scratch/kocevski/236206/ltcube_350006401_350265601_4FGL_J1050.1+0432_daily_bin427.fits outfile=/scratch/kocevski/236206/expmap_350006401_350265601_4FGL_J1050.1+0432_daily_bin427.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/236206/ltcube_350006401_350265601_4FGL_J1050.1+0432_daily_bin427.fits
.....................!
real 194.73
user 187.77
sys 5.25

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/236206/ft1_filtered_4FGL_J1050.1+0432_daily_bin427.fits scfile=/scratch/kocevski/236206/ft2_4FGL_J1050.1+0432_daily_bin427.fits outfile=/scratch/kocevski/236206/cmap_350006401_350265601_4FGL_J1050.1+0432_daily_bin427.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/236206/ft1_filtered_4FGL_J1050.1+0432_daily_bin427.fits scfile=/scratch/kocevski/236206/ft2_4FGL_J1050.1+0432_daily_bin427.fits outfile=/scratch/kocevski/236206/cmap_HighResolution_350006401_350265601_4FGL_J1050.1+0432_daily_bin427.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.586       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .16277E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    60.568       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.4520       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.6733       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.8593       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.5063       1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.831       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.5539       1.0000         .10000E-03   10000.    
    15 'norm      '    1.0947       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.4293       1.0000         .10000E-03   10000.    
    18 'norm      '    7.5790       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.2821       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .95518       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1663       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=   5765.804     FROM MIGRAD    STATUS=CONVERGED    446 CALLS     2532 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.584        14.719        .18530E-06    .48653E-04
   2  Prefactor     .10000E-03    25.986        .43224E-05** at limit **
   3  norm          .10000E-03    9.4039       -.12295E-06** at limit **
   4  Prefactor     .10000E-03    12.069       -.13488E-06** at limit **
   5  Prefactor     .10000E-03    21.198       -.14427E-05** at limit **
   6  Prefactor     60.564        67.725       -.28482E-06    .29068E-04
   7  Prefactor     .10000E-03    13.910        .47495E-06** at limit **
   8  norm          1.4519        1.3252        .10410E-07   -.83344E-04
   9  Prefactor     8.6744        7.8696        .23679E-06    .22279E-04
  10  Prefactor     8.8597        4.4363       -.37360E-07   -.10081E-04
  11  Prefactor     5.5092        6.4996        .15353E-05   -.11356E-02
  12  Prefactor     18.834        11.912        .12407E-07   -.75699E-06
  13  norm          .10000E-03    .19696        .35451E-07** at limit **
  14  Prefactor     5.5544        6.7342       -.45020E-06   -.12909E-03
  15  norm          1.0949        1.8952       -.23421E-06   -.36268E-03
  16  Prefactor     .10000E-03    21.884       -.17718E-05** at limit **
  17  Prefactor     3.4298        5.8521       -.28985E-05   -.54272E-03
  18  norm          7.5843        14.177        .72523E-06   -.30994E-03
  19  Prefactor     8.2826        3.7621        .11783E-06   -.41823E-03
  20  Normalizat    .95487        .22721        .38298E-06    .27992E-04
  21  Prefactor     1.1666        .17613       -.64708E-07    .68223E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.5845
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 60.5641
  Prefactor  = 0.0001
  norm       = 1.45193
  Prefactor  = 8.67439
  Prefactor  = 8.85972
  Prefactor  = 5.50922
  Prefactor  = 18.8344
  norm       = 0.0001
  Prefactor  = 5.55439
  norm       = 1.09492
  Prefactor  = 0.0001
  Prefactor  = 3.42977
  norm       = 7.5843
  Prefactor  = 8.28263
  Normalizat = 0.954866
  Prefactor  = 1.1666
 **********
 **   18 **HESSE 
 **********

 FCN=   5765.804     FROM HESSE     STATUS=OK           323 CALLS     2855 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.584        14.656        .90501E-04   -1.4823    
   2  Prefactor     .10000E-03    26.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    9.4163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    53.025        .40748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    21.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     60.564        55.206        .51555E-04   -1.4150    
   7  Prefactor     .10000E-03    13.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.4519        1.3071        .80188E-04   -1.5467    
   9  Prefactor     8.6744        7.8741        .13611E-03   -1.5119    
  10  Prefactor     8.8597        4.4454        .10574E-03   -1.5113    
  11  Prefactor     5.5092        8.7901        .85613E-03   -1.5238    
  12  Prefactor     18.834        11.938        .92297E-04   -1.4840    
  13  norm          .10000E-03    .23193        .64494E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.5544        6.6649        .17048E-03   -1.5237    
  15  norm          1.0949        1.8685        .12275E-03   -1.5499    
  16  Prefactor     .10000E-03    22.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.4298        6.1710        .21843E-03   -1.5338    
  18  norm          7.5843        14.890        .72835E-03   -1.5157    
  19  Prefactor     8.2826        3.7925        .48057E-03   -1.5132    
  20  Normalizat    .95487        .27543        .30694E-03   -.94558    
  21  Prefactor     1.1666        .20899        .23629E-03   -.87365    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.80992e-09
Minuit parameter uncertainties:
  1  14.6582
  2  0.000323511
  3  8.11156e-06
  4  0.00067478
  5  0.000102611
  6  55.2527
  7  2.79382e-05
  8  1.30712
  9  7.87508
  10  4.44557
  11  8.79215
  12  11.9395
  13  1.48091e-06
  14  6.66579
  15  1.8686
  16  0.000129878
  17  6.17211
  18  14.8969
  19  3.7926
  20  0.275844
  21  0.209139
Done.

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

Extracting fit parameters...

4FGL J1050.1+0432
   Spectrum: PowerLaw
232    Prefactor:  1.883e+01  1.194e+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.167e+00  2.091e-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.549e-01  2.758e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.89
Ra Dec: 162.546 4.538
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 1.07e-07 +/- 6.80e-08
Energy Flux (Fixed Index): 2.80e-05 +/- 1.77e-05

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

Saving results to:
/scratch/kocevski/236206/likelihoodResults_350006401_350265601_4FGL_J1050.1+0432_daily_bin427.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) = 5765.75552541
delta logL = 0.0485618866733

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5765.74953652
delta logL = 0.0545507778706

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.345       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9423       1.0000          .0000       10.000    
     3 'Normalizat'    .92275       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1876       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=   5765.750     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      300 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.349        20.343        .10225E-03    .65679E-03
   2  Index         2.9417        1.3926        .76604E-02    .15591E-03
   3  Normalizat    .92296        .27419        .31155E-03    .66364E-03
   4  Prefactor     1.1874        .22149        .23455E-03    .16652E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.3492
  Index      = 2.94172
  Normalizat = 0.922962
  Prefactor  = 1.18739
 **********
 **   18 **HESSE 
 **********

 FCN=   5765.750     FROM HESSE     STATUS=OK            25 CALLS      325 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.349        16.625        .40899E-05   -1.4924    
   2  Index         2.9417        1.1403        .30642E-03   -.42427    
   3  Normalizat    .92296        .26648        .62309E-04   -.95658    
   4  Prefactor     1.1874        .21621        .46910E-04   -.86720    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.7611e-09
Minuit parameter uncertainties:
  1  16.6298
  2  1.15256
  3  0.266861
  4  0.216371
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/236206': 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) = 5765.74953574
delta logL = 0.0545515579288

Extracting fit parameters...

4FGL J1050.1+0432
   Spectrum: PowerLaw
232    Prefactor:  1.535e+01  1.663e+01  1.000e-04  1.000e+04 ( 1.000e-12)
233        Index:  2.942e+00  1.153e+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.187e+00  2.164e-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.230e-01  2.669e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.08
Ra Dec: 162.546 4.538
Photon Index (Free Index): 2.94 +/- 1.15
Photon Flux (Free Index): 1.29e-07 +/- 1.00e-07
Energy Flux (Free Index): 2.66e-05 +/- 1.61e-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/236206/cmap_HighResolution_350006401_350265601_4FGL_J1050.1+0432_daily_bin427.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.84e-02', comment='SUCCESS', photon_flux='1.07e-07', energy_flux2='2.66e-05', photon_flux_error='6.80e-08', dlogl='5.46e-02', energy_flux='2.80e-05', photon_flux2='1.29e-07', job_status='DONE', time_completed='2021-09-02 17:56:46.236833', photon_index_error2='1.15', photon_index2='2.94', ts='3.89', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', photon_flux_upper_limit='2.35e-07', energy_flux_error2='1.61e-05', EG='0.95', time_epoch_completed='1630630606.24', return_code='0', job_id='236206', GAL2='1.19', EG2='0.92', return_code2='0', energy_flux_error='1.77e-05', photon_flux_error2='1.00e-07', ts2='4.08', photon_index='2.61' WHERE bin_id='427' AND source_name='4FGL J1050.1+0432' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 17:56:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 236206: <4FGL_J1050.1+0432_daily_bin427> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1050.1+0432_daily_bin427 162.546 4.5377 350006401 350265601 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 :                                   622.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            929 sec.

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

