/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 147 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 = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1050.1+0432_daily_bin959
RA = 162.546, Dec = 4.5377
tmin = 487900801, tmax = 488160001
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='237917', job_status='RUN', time_executed='2021-09-02 17:51:53.241640', time_epoch_executed='1630630313.24' WHERE source_name='4FGL J1050.1+0432' and cadence='daily' and bin_id='959'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/237917

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/237917/ft1_4FGL_J1050.1+0432_daily_bin959.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/237917/ft2_4FGL_J1050.1+0432_daily_bin959.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/237917/ft1_4FGL_J1050.1+0432_daily_bin959.fits outfile=/scratch/kocevski/237917/ft1_filteredMKT_4FGL_J1050.1+0432_daily_bin959.fits ra=162.546 dec=4.5377 rad=12.0 tmin=487900801.0 tmax=488160001.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.20
user 5.80
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/237917/ft1_filtered_4FGL_J1050.1+0432_daily_bin959.fits" evtable="EVENTS" scfile=/scratch/kocevski/237917/ft2_4FGL_J1050.1+0432_daily_bin959.fits sctable="SC_DATA" outfile=/scratch/kocevski/237917/ltcube_487900801_488160001_4FGL_J1050.1+0432_daily_bin959.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/237917/ft2_4FGL_J1050.1+0432_daily_bin959.fits
.....................!
real 16.54
user 16.15
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/237917/ft1_filtered_4FGL_J1050.1+0432_daily_bin959.fits evtable="EVENTS" scfile=/scratch/kocevski/237917/ft2_4FGL_J1050.1+0432_daily_bin959.fits sctable="SC_DATA" expcube=/scratch/kocevski/237917/ltcube_487900801_488160001_4FGL_J1050.1+0432_daily_bin959.fits outfile=/scratch/kocevski/237917/expmap_487900801_488160001_4FGL_J1050.1+0432_daily_bin959.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/237917/ltcube_487900801_488160001_4FGL_J1050.1+0432_daily_bin959.fits
.....................!
real 192.22
user 187.15
sys 3.48

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/237917/ft1_filtered_4FGL_J1050.1+0432_daily_bin959.fits scfile=/scratch/kocevski/237917/ft2_4FGL_J1050.1+0432_daily_bin959.fits outfile=/scratch/kocevski/237917/cmap_487900801_488160001_4FGL_J1050.1+0432_daily_bin959.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.58
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/237917/ft1_filtered_4FGL_J1050.1+0432_daily_bin959.fits scfile=/scratch/kocevski/237917/ft2_4FGL_J1050.1+0432_daily_bin959.fits outfile=/scratch/kocevski/237917/cmap_HighResolution_487900801_488160001_4FGL_J1050.1+0432_daily_bin959.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.58
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.4936       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11389E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    29.599       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10364E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.0252       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.9423       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .83367       1.0000         .10000E-03   10000.    
    11 'Prefactor '    33.860       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.413       1.0000         .10000E-03   10000.    
    13 'norm      '    1.9213       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.015       1.0000         .10000E-03   10000.    
    15 'norm      '    .44924       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.8331       1.0000         .10000E-03   10000.    
    18 'norm      '    7.7206       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.1332       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1621       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0300       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=   4624.633     FROM MIGRAD    STATUS=CONVERGED    437 CALLS     2178 TOTAL
                     EDM=   .99E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.0928       -.31986E-06** at limit **
   2  Prefactor     .10000E-03    29.293        .24927E-06** at limit **
   3  norm          1.3902        46.395        .10924E-05   -.33409E-04
   4  Prefactor     .10000E-03    6.7881       -.59801E-06** at limit **
   5  Prefactor     29.573        64.792       -.18761E-05   -.84233E-04
   6  Prefactor     .10000E-03    35.907       -.51942E-06** at limit **
   7  Prefactor     .10000E-03    15.306       -.93722E-06** at limit **
   8  norm          2.0251        1.5873       -.16394E-07   -.60228E-04
   9  Prefactor     9.9439        9.3315        .14172E-05   -.15596E-03
  10  Prefactor     .83716        3.2586        .11562E-05   -.21083E-04
  11  Prefactor     33.862        12.007       -.11946E-06   -.10136E-03
  12  Prefactor     11.411        12.952       -.32944E-06   -.91006E-04
  13  norm          1.9215        .99195        .24138E-07   -.11523E-03
  14  Prefactor     14.016        13.235        .48189E-07   -.22577E-04
  15  norm          .45033        1.5426        .81405E-06   -.56082E-04
  16  Prefactor     .10000E-03    14.220        .48711E-06** at limit **
  17  Prefactor     3.8303        9.1498        .63501E-06   -.24983E-04
  18  norm          7.7221        13.818       -.49541E-07   -.44174E-04
  19  Prefactor     8.1334        4.2863        .22248E-07   -.33638E-05
  20  Normalizat    1.1615        .26998        .17041E-06   -.10493E-03
  21  Prefactor     1.0304        .21060       -.13872E-05   -.35793E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.3902
  Prefactor  = 0.0001
  Prefactor  = 29.5726
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.02513
  Prefactor  = 9.9439
  Prefactor  = 0.837156
  Prefactor  = 33.8623
  Prefactor  = 11.4107
  norm       = 1.92147
  Prefactor  = 14.0163
  norm       = 0.450335
  Prefactor  = 0.0001
  Prefactor  = 3.83032
  norm       = 7.72209
  Prefactor  = 8.13343
  Normalizat = 1.16152
  Prefactor  = 1.03041
 **********
 **   18 **HESSE 
 **********

 FCN=   4624.633     FROM HESSE     STATUS=OK           323 CALLS     2501 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.1280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    29.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.3902        46.230        .35066E-03   -1.5472    
   4  Prefactor     .10000E-03    6.7980        .17254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     29.573        64.868        .73643E-04   -1.4620    
   6  Prefactor     .10000E-03    35.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.0251        1.5860        .72643E-04   -1.5423    
   9  Prefactor     9.9439        9.3429        .63541E-03   -1.5077    
  10  Prefactor     .83716        3.2067        .22508E-03   -1.5525    
  11  Prefactor     33.862        12.061        .68865E-04   -1.4543    
  12  Prefactor     11.411        12.872        .11859E-03   -1.5032    
  13  norm          1.9215        .99728        .42407E-04   -1.5431    
  14  Prefactor     14.016        13.378        .10699E-03   -1.4959    
  15  norm          .45033        1.5295        .14682E-03   -1.5574    
  16  Prefactor     .10000E-03    14.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.8303        9.1624        .20614E-03   -1.5317    
  18  norm          7.7221        13.829        .14432E-03   -1.5152    
  19  Prefactor     8.1334        4.2895        .98858E-04   -1.5138    
  20  Normalizat    1.1615        .31852        .28860E-03   -.87800    
  21  Prefactor     1.0304        .24533        .25538E-03   -.91722    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99154e-10
Minuit parameter uncertainties:
  1  9.17323e-06
  2  0.000120719
  3  16.0466
  4  1.71844e-05
  5  65.0228
  6  0.000122974
  7  0.00014368
  8  1.58605
  9  9.34426
  10  3.20735
  11  12.0621
  12  12.8752
  13  0.997293
  14  13.3804
  15  1.5296
  16  0.000135383
  17  9.16575
  18  13.835
  19  4.28969
  20  0.319056
  21  0.245595
Done.

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

Extracting fit parameters...

4FGL J1050.1+0432
   Spectrum: PowerLaw
232    Prefactor:  1.141e+01  1.288e+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.030e+00  2.456e-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.162e+00  3.191e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.06
Ra Dec: 162.546 4.538
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 6.50e-08 +/- 7.33e-08
Energy Flux (Fixed Index): 1.70e-05 +/- 1.91e-05

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

Saving results to:
/scratch/kocevski/237917/likelihoodResults_487900801_488160001_4FGL_J1050.1+0432_daily_bin959.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) = 4623.0987454
delta logL = 1.53399432595

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4623.08583191
delta logL = 1.54690781657

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9022       1.0000         .10000E-03   10000.    
     2 'Index     '    4.6485       1.0000          .0000       10.000    
     3 'Normalizat'    1.0391       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1038       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=   4623.086     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      285 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9019        30.725        .30154E-04   -.29413E-02
   2  Index         4.6490        7.1075        .45385E-02   -.37569E-03
   3  Normalizat    1.0391        .27827        .30200E-03   -.38457E-03
   4  Prefactor     1.1038        .23312        .24783E-03   -.36162E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.90188
  Index      = 4.64904
  Normalizat = 1.03906
  Prefactor  = 1.10378
 **********
 **   18 **HESSE 
 **********

 FCN=   4623.086     FROM HESSE     STATUS=OK            23 CALLS      308 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9019        5.1554        .60307E-05   -1.5432    
   2  Index         4.6490        1.7762        .18154E-03   -.70250E-01
   3  Normalizat    1.0391        .29749        .60401E-04   -.91733    
   4  Prefactor     1.1038        .24618        .49566E-04   -.89346    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92485e-09
Minuit parameter uncertainties:
  1  5.15658
  2  1.81608
  3  0.297964
  4  0.246432
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/237917': 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) = 4623.08583109
delta logL = 1.54690863792

Extracting fit parameters...

4FGL J1050.1+0432
   Spectrum: PowerLaw
232    Prefactor:  1.902e+00  5.157e+00  1.000e-04  1.000e+04 ( 1.000e-12)
233        Index:  4.649e+00  1.816e+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.104e+00  2.464e-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.039e+00  2.980e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.47
Ra Dec: 162.546 4.538
Photon Index (Free Index): 4.65 +/- 1.82
Photon Flux (Free Index): 1.65e-07 +/- 9.59e-08
Energy Flux (Free Index): 2.27e-05 +/- 1.39e-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/237917/cmap_HighResolution_487900801_488160001_4FGL_J1050.1+0432_daily_bin959.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.62e-02', comment='SUCCESS', photon_flux='6.50e-08', energy_flux2='2.27e-05', photon_flux_error='7.33e-08', dlogl='1.55e+00', energy_flux='1.70e-05', photon_flux2='1.65e-07', job_status='DONE', time_completed='2021-09-02 18:01:19.836356', photon_index_error2='1.82', photon_index2='4.65', ts='1.06', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='2.07e-07', energy_flux_error2='1.39e-05', EG='1.16', time_epoch_completed='1630630879.84', return_code='0', job_id='237917', GAL2='1.10', EG2='1.04', return_code2='0', energy_flux_error='1.91e-05', photon_flux_error2='9.59e-08', ts2='4.47', photon_index='2.61' WHERE bin_id='959' AND source_name='4FGL J1050.1+0432' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:01:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0006>
Subject: Job 237917: <4FGL_J1050.1+0432_daily_bin959> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1050.1+0432_daily_bin959 162.546 4.5377 487900801 488160001 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 :                                   563.45 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             238.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   744 sec.
    Turnaround time :                            902 sec.

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

