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


Performing analysis on: 4FGL_J1050.1+0432_daily_bin381
RA = 162.546, Dec = 4.5377
tmin = 338083201, tmax = 338342401
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='236139', job_status='RUN', time_executed='2021-09-02 17:45:57.685885', time_epoch_executed='1630629957.69' WHERE source_name='4FGL J1050.1+0432' and cadence='daily' and bin_id='381'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/236139

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/236139/ft1_4FGL_J1050.1+0432_daily_bin381.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/236139/ft2_4FGL_J1050.1+0432_daily_bin381.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/236139/ft1_4FGL_J1050.1+0432_daily_bin381.fits outfile=/scratch/kocevski/236139/ft1_filteredMKT_4FGL_J1050.1+0432_daily_bin381.fits ra=162.546 dec=4.5377 rad=12.0 tmin=338083201.0 tmax=338342401.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 6.77
user 6.37
sys 0.30

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/236139/ft1_filtered_4FGL_J1050.1+0432_daily_bin381.fits evtable="EVENTS" scfile=/scratch/kocevski/236139/ft2_4FGL_J1050.1+0432_daily_bin381.fits sctable="SC_DATA" expcube=/scratch/kocevski/236139/ltcube_338083201_338342401_4FGL_J1050.1+0432_daily_bin381.fits outfile=/scratch/kocevski/236139/expmap_338083201_338342401_4FGL_J1050.1+0432_daily_bin381.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/236139/ltcube_338083201_338342401_4FGL_J1050.1+0432_daily_bin381.fits
.....................!
real 196.64
user 188.56
sys 5.71

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/236139/ft1_filtered_4FGL_J1050.1+0432_daily_bin381.fits scfile=/scratch/kocevski/236139/ft2_4FGL_J1050.1+0432_daily_bin381.fits outfile=/scratch/kocevski/236139/cmap_338083201_338342401_4FGL_J1050.1+0432_daily_bin381.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=162.546 yref=4.5377 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.37
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10397E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.338       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .24789E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .64397       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.5340       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10235E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.7681       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .85770E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    1.3382       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.563       1.0000         .10000E-03   10000.    
    18 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.2783       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1241       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1409       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=   5723.623     FROM MIGRAD    STATUS=CONVERGED    495 CALLS     2015 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.4206        .28526E-06** at limit **
   2  Prefactor     .10000E-03    16.147        .16158E-04** at limit **
   3  norm          .10000E-03    6.8848       -.10579E-06** at limit **
   4  Prefactor     .10000E-03    16.710       -.16267E-04** at limit **
   5  Prefactor     .10000E-03    104.25        .10465E-04** at limit **
   6  Prefactor     18.298        52.725       -.49230E-05    .36649E-04
   7  Prefactor     .10013E-03    22.755        .22637E-05** at limit **
   8  norm          .64370        1.5147       -.52605E-06   -.13343E-02
   9  Prefactor     .10000E-03    4.9584        .30418E-07** at limit **
  10  Prefactor     4.5338        3.3431       -.11844E-06   -.14455E-03
  11  Prefactor     .10000E-03    3.9844        .75618E-07** at limit **
  12  Prefactor     .10000E-03    6.1298        .19353E-06** at limit **
  13  norm          1.7737        .90300       -.67968E-07   -.43937E-03
  14  Prefactor     .10005E-03    10.811        .77581E-07** at limit **
  15  norm          1.3381        1.3951       -.13098E-06   -.47993E-03
  16  Prefactor     .10000E-03    13.681       -.58573E-06** at limit **
  17  Prefactor     11.563        6.9486       -.84426E-06   -.18882E-02
  18  norm          .10000E-03    6.6453        .11586E-06** at limit **
  19  Prefactor     5.2782        3.1622       -.49291E-07   -.11764E-03
  20  Normalizat    1.1244        .21735        .66500E-06    .16974E-04
  21  Prefactor     1.1408        .17871        .32756E-06    .44334E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 18.2984
  Prefactor  = 0.000100125
  norm       = 0.643696
  Prefactor  = 0.0001
  Prefactor  = 4.53384
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.77371
  Prefactor  = 0.000100052
  norm       = 1.33807
  Prefactor  = 0.0001
  Prefactor  = 11.5625
  norm       = 0.0001
  Prefactor  = 5.27823
  Normalizat = 1.12438
  Prefactor  = 1.14076
 **********
 **   18 **HESSE 
 **********

 FCN=   5723.623     FROM HESSE     STATUS=OK           327 CALLS     2342 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.4423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    6.8888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    104.68        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.298        43.426        .93530E-04   -1.4852    
   7  Prefactor     .10013E-03    73.654        .57197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .64370        1.5021        .13629E-03   -1.5548    
   9  Prefactor     .10000E-03    5.0108        .16441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.5338        3.3243        .11349E-03   -1.5282    
  11  Prefactor     .10000E-03    4.0160        .14743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    22.261        .35311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.7737        .97811        .41263E-04   -1.5442    
  14  Prefactor     .10005E-03    28.981        .57283E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.3381        1.3823        .86869E-04   -1.5477    
  16  Prefactor     .10000E-03    13.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.563        7.1288        .58905E-03   -1.5028    
  18  norm          .10000E-03    6.6867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.2782        3.1601        .10076E-03   -1.5248    
  20  Normalizat    1.1244        .25936        .28396E-03   -.88973    
  21  Prefactor     1.1408        .21474        .23932E-03   -.88174    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.13009e-09
Minuit parameter uncertainties:
  1  9.35923e-06
  2  2.0412e-06
  3  8.14429e-06
  4  0.000195199
  5  0.000215541
  6  43.5015
  7  0.00608292
  8  1.50222
  9  3.10318e-06
  10  3.32447
  11  3.12386e-06
  12  0.000302951
  13  0.978115
  14  0.00246755
  15  1.38229
  16  5.85156e-06
  17  7.1293
  18  3.3287e-06
  19  3.16018
  20  0.259655
  21  0.214903
Done.

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

Extracting fit parameters...

4FGL J1050.1+0432
   Spectrum: PowerLaw
232    Prefactor:  1.000e-04  3.030e-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:  1.141e+00  2.149e-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.124e+00  2.597e-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.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/236139/likelihoodResults_338083201_338342401_4FGL_J1050.1+0432_daily_bin381.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) = 5723.6228002
delta logL = -0.000212605873458

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5723.62258773
delta logL = -1.35780283017e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10755E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6312       1.0000          .0000       10.000    
     3 'Normalizat'    1.1244       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1408       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=   5723.623     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      235 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    .71726        .67057E-01** at limit **
   2  Index         2.6552        6.3273        .50000       -.86357E-05
   3  Normalizat    1.1244        .19256E-02    .64194E-01    .21945E-03
   4  Prefactor     1.1408        .16404E-02    .54127E-01    .20633E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100014
  Index      = 2.6552
  Normalizat = 1.12438
  Prefactor  = 1.14076
 **********
 **   18 **HESSE 
 **********

 FCN=   5723.623     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      266 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    274.20        .35110E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6552        5.6636        .50000       -.48811    
   3  Normalizat    1.1244        .18798E-01    .28396E-03   -.88973    
   4  Prefactor     1.1408        .16023E-01    .23932E-03   -.88174    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.48577e-06
Minuit parameter uncertainties:
  1  0.00387302
  2  581.44
  3  0.0187983
  4  0.0160232
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/236139': 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) = 5723.62258749
delta logL = 1.06566403701e-07

Extracting fit parameters...

4FGL J1050.1+0432
   Spectrum: PowerLaw
232    Prefactor:  1.000e-04  3.873e-03  1.000e-04  1.000e+04 ( 1.000e-12)
233        Index:  2.655e+00  5.814e+02  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.141e+00  1.602e-02  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.124e+00  1.880e-02  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/236139/cmap_HighResolution_338083201_338342401_4FGL_J1050.1+0432_daily_bin381.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.74e-03', job_status='DONE', photon_flux_upper_limit='1.12e-07', time_completed='2021-09-02 17:56:15.819358', job_id='236139', GAL2='1.14', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1630630575.82', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='1.07e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='381' AND source_name='4FGL J1050.1+0432' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 17:56:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 236139: <4FGL_J1050.1+0432_daily_bin381> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1050.1+0432_daily_bin381 162.546 4.5377 338083201 338342401 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 :                                   608.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             248.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   848 sec.
    Turnaround time :                            903 sec.

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

