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


Performing analysis on: 4FGL_J1050.1+0432_daily_bin543
RA = 162.546, Dec = 4.5377
tmin = 380073601, tmax = 380332801
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='236376', job_status='RUN', time_executed='2021-09-02 17:46:37.374110', time_epoch_executed='1630629997.37' WHERE source_name='4FGL J1050.1+0432' and cadence='daily' and bin_id='543'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/236376

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/236376/ft1_4FGL_J1050.1+0432_daily_bin543.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/236376/ft2_4FGL_J1050.1+0432_daily_bin543.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/236376/ft1_4FGL_J1050.1+0432_daily_bin543.fits outfile=/scratch/kocevski/236376/ft1_filteredMKT_4FGL_J1050.1+0432_daily_bin543.fits ra=162.546 dec=4.5377 rad=12.0 tmin=380073601.0 tmax=380332801.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.51
user 4.29
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/236376/ft1_filtered_4FGL_J1050.1+0432_daily_bin543.fits evtable="EVENTS" scfile=/scratch/kocevski/236376/ft2_4FGL_J1050.1+0432_daily_bin543.fits sctable="SC_DATA" expcube=/scratch/kocevski/236376/ltcube_380073601_380332801_4FGL_J1050.1+0432_daily_bin543.fits outfile=/scratch/kocevski/236376/expmap_380073601_380332801_4FGL_J1050.1+0432_daily_bin543.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/236376/ltcube_380073601_380332801_4FGL_J1050.1+0432_daily_bin543.fits
.....................!
real 192.01
user 186.17
sys 5.22

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/236376/ft1_filtered_4FGL_J1050.1+0432_daily_bin543.fits scfile=/scratch/kocevski/236376/ft2_4FGL_J1050.1+0432_daily_bin543.fits outfile=/scratch/kocevski/236376/cmap_380073601_380332801_4FGL_J1050.1+0432_daily_bin543.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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/236376/ft1_filtered_4FGL_J1050.1+0432_daily_bin543.fits scfile=/scratch/kocevski/236376/ft2_4FGL_J1050.1+0432_daily_bin543.fits outfile=/scratch/kocevski/236376/cmap_HighResolution_380073601_380332801_4FGL_J1050.1+0432_daily_bin543.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=162.546 yref=4.5377 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.42
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .26259E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.2097       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.1617       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.715       1.0000         .10000E-03   10000.    
     8 'norm      '    .99947       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.3881       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.9919       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.6860       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.5027       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.2224       1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.765       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.2751       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .96651       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0742       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=   5918.595     FROM MIGRAD    STATUS=CONVERGED    431 CALLS     1904 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.2185        .65288E-06** at limit **
   2  Prefactor     .10028E-03    199.25        .27219E-05** at limit **
   3  norm          .10000E-03    6.3410        .34815E-06** at limit **
   4  Prefactor     9.2133        10.689        .58554E-06    .42665E-04
   5  Prefactor     8.1870        60.718       -.51500E-05    .33843E-04
   6  Prefactor     .10000E-03    21.068        .10485E-06** at limit **
   7  Prefactor     12.712        13.270        .46685E-06   -.33839E-05
   8  norm          .99942        1.0925       -.14012E-06   -.91056E-03
   9  Prefactor     5.3889        6.8963        .17778E-05   -.34037E-03
  10  Prefactor     2.9915        3.3952        .46594E-06    .61693E-04
  11  Prefactor     1.6860        7.4950        .15034E-04   -.19853E-04
  12  Prefactor     2.5036        7.1906        .98816E-06    .50092E-05
  13  norm          .10000E-03    .17657       -.30938E-07** at limit **
  14  Prefactor     .10000E-03    2.3819       -.38238E-07** at limit **
  15  norm          1.2220        1.3190       -.95284E-07    .11007E-03
  16  Prefactor     22.772        19.493       -.97975E-07    .80355E-04
  17  Prefactor     .10000E-03    1.9736       -.86339E-07** at limit **
  18  norm          .10000E-03    4.8508       -.74712E-07** at limit **
  19  Prefactor     3.2748        3.2185        .42359E-06    .38570E-04
  20  Normalizat    .96650        .20475       -.56491E-05   -.31164E-03
  21  Prefactor     1.0743        .16097        .15432E-05   -.37651E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100282
  norm       = 0.0001
  Prefactor  = 9.21326
  Prefactor  = 8.18704
  Prefactor  = 0.0001
  Prefactor  = 12.7122
  norm       = 0.999424
  Prefactor  = 5.38889
  Prefactor  = 2.99154
  Prefactor  = 1.68599
  Prefactor  = 2.5036
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.22203
  Prefactor  = 22.772
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.27484
  Normalizat = 0.966501
  Prefactor  = 1.07425
 **********
 **   18 **HESSE 
 **********

 FCN=   5918.595     FROM HESSE     STATUS=OK           319 CALLS     2223 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.2502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10028E-03    205.36        .42890E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    6.3451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.2133        10.670        .13206E-03   -1.5101    
   5  Prefactor     8.1870        61.051        .14034E-03   -1.5136    
   6  Prefactor     .10000E-03    21.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.712        13.267        .11234E-03   -1.4995    
   8  norm          .99942        1.0734        .80553E-04   -1.5508    
   9  Prefactor     5.3889        6.8836        .86562E-03   -1.5244    
  10  Prefactor     2.9915        3.3760        .14128E-03   -1.5362    
  11  Prefactor     1.6860        7.5168        .16215E-02   -1.5448    
  12  Prefactor     2.5036        7.1346        .25832E-03   -1.5392    
  13  norm          .10000E-03    .37297        .62579E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.3885        .11593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.2220        1.2906        .86365E-04   -1.5487    
  16  Prefactor     22.772        19.500        .83951E-04   -1.4753    
  17  Prefactor     .10000E-03    1.9818        .10553E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.8693        .16547E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.2748        3.2122        .12953E-03   -1.5346    
  20  Normalizat    .96650        .22991        .27545E-03   -.94161    
  21  Prefactor     1.0743        .18264        .22211E-03   -.90294    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.05502e-09
Minuit parameter uncertainties:
  1  8.43982e-05
  2  0.0152696
  3  7.31631e-05
  4  10.6722
  5  44.7774
  6  8.23732e-05
  7  13.2696
  8  1.07343
  9  6.88461
  10  3.37626
  11  7.12118
  12  7.13703
  13  2.16542e-06
  14  1.74205e-06
  15  1.29068
  16  19.5051
  17  5.27208e-06
  18  9.73754e-06
  19  3.21239
  20  0.230143
  21  0.182742
Done.

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

Extracting fit parameters...

4FGL J1050.1+0432
   Spectrum: PowerLaw
232    Prefactor:  2.504e+00  7.137e+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

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  1.074e+00  1.827e-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.665e-01  2.301e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.15
Ra Dec: 162.546 4.538
Photon Flux Upper Limit: 1.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/236376/likelihoodResults_380073601_380332801_4FGL_J1050.1+0432_daily_bin543.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) = 5918.59463563
delta logL = 0.000218736147872

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5918.59458873
delta logL = 0.00026563011761

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4671       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6379       1.0000          .0000       10.000    
     3 'Normalizat'    .96604       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0745       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=   5918.595     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      280 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4694        7.3723        .13017E-02   -.37366E-03
   2  Index         2.6398        1.4896        .12920E-01   -.95602E-04
   3  Normalizat    .96610        .21503        .27551E-03   -.22621E-03
   4  Prefactor     1.0745        .18134        .22209E-03   -.49910E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.4694
  Index      = 2.63979
  Normalizat = 0.966103
  Prefactor  = 1.07447
 **********
 **   18 **HESSE 
 **********

 FCN=   5918.595     FROM HESSE     STATUS=OK            23 CALLS      303 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4694        7.1458        .52069E-04   -1.5394    
   2  Index         2.6398        1.4465        .51682E-03   -.49161    
   3  Normalizat    .96610        .21525        .11020E-04   -.94175    
   4  Prefactor     1.0745        .18145        .88836E-05   -.90287    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15545e-09
Minuit parameter uncertainties:
  1  7.14829
  2  1.47381
  3  0.215443
  4  0.181557
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/236376': 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) = 5918.59458723
delta logL = 0.000267136310867

Extracting fit parameters...

4FGL J1050.1+0432
   Spectrum: PowerLaw
232    Prefactor:  2.469e+00  7.148e+00  1.000e-04  1.000e+04 ( 1.000e-12)
233        Index:  2.640e+00  1.474e+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.074e+00  1.816e-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.661e-01  2.154e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.15
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/236376/cmap_HighResolution_380073601_380332801_4FGL_J1050.1+0432_daily_bin543.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.99e-03', job_status='DONE', photon_flux_upper_limit='1.15e-07', time_completed='2021-09-02 17:56:29.256235', job_id='236376', GAL2='1.07', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1630630589.26', return_code2='0', ts='0.15', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='2.67e-04', ts2='0.15', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='543' AND source_name='4FGL J1050.1+0432' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 17:56:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 236376: <4FGL_J1050.1+0432_daily_bin543> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1050.1+0432_daily_bin543 162.546 4.5377 380073601 380332801 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 :                                   588.27 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             280.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   764 sec.
    Turnaround time :                            901 sec.

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

