/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 5 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 = 7401
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1050.1+0432_daily_bin19
RA = 162.546, Dec = 4.5377
tmin = 244252801, tmax = 244512001
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='233365', job_status='RUN', time_executed='2021-09-02 17:37:03.367415', time_epoch_executed='1630629423.37' WHERE source_name='4FGL J1050.1+0432' and cadence='daily' and bin_id='19'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/233365

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/233365/ft1_4FGL_J1050.1+0432_daily_bin19.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/233365/ft2_4FGL_J1050.1+0432_daily_bin19.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/233365/ft1_4FGL_J1050.1+0432_daily_bin19.fits outfile=/scratch/kocevski/233365/ft1_filteredMKT_4FGL_J1050.1+0432_daily_bin19.fits ra=162.546 dec=4.5377 rad=12.0 tmin=244252801.0 tmax=244512001.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 2.43
user 2.23
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/233365/ft1_filtered_4FGL_J1050.1+0432_daily_bin19.fits evtable="EVENTS" scfile=/scratch/kocevski/233365/ft2_4FGL_J1050.1+0432_daily_bin19.fits sctable="SC_DATA" expcube=/scratch/kocevski/233365/ltcube_244252801_244512001_4FGL_J1050.1+0432_daily_bin19.fits outfile=/scratch/kocevski/233365/expmap_244252801_244512001_4FGL_J1050.1+0432_daily_bin19.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/233365/ltcube_244252801_244512001_4FGL_J1050.1+0432_daily_bin19.fits
.....................!
real 194.29
user 188.71
sys 5.07

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/233365/ft1_filtered_4FGL_J1050.1+0432_daily_bin19.fits scfile=/scratch/kocevski/233365/ft2_4FGL_J1050.1+0432_daily_bin19.fits outfile=/scratch/kocevski/233365/cmap_244252801_244512001_4FGL_J1050.1+0432_daily_bin19.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/233365/ft1_filtered_4FGL_J1050.1+0432_daily_bin19.fits scfile=/scratch/kocevski/233365/ft2_4FGL_J1050.1+0432_daily_bin19.fits outfile=/scratch/kocevski/233365/cmap_HighResolution_244252801_244512001_4FGL_J1050.1+0432_daily_bin19.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.80
user 0.41
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.406       1.0000         .10000E-03   10000.    
     2 'Prefactor '    47.063       1.0000         .10000E-03   10000.    
     3 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    51.815       1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.084       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .95375E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12048E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .28119       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10412E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.0177       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.3520       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.799       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .12015E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.3762       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .99144       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1758       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=   6906.964     FROM MIGRAD    STATUS=CONVERGED    474 CALLS     2301 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.413        14.597        .11774E-06   -.35630E-04
   2  Prefactor     47.098        44.671        .22037E-05    .11670E-03
   3  norm          .10000E-03    7.6514        .13268E-06** at limit **
   4  Prefactor     51.757        16.124       -.19909E-05    .43486E-04
   5  Prefactor     16.062        58.568       -.56703E-05   -.33595E-04
   6  Prefactor     .10002E-03    561.96       -.12281E-04** at limit **
   7  Prefactor     .10000E-03    22.730        .52617E-06** at limit **
   8  norm          .28034        .96929        .52411E-06   -.20419E-03
   9  Prefactor     .10000E-03    4.1265       -.12177E-06** at limit **
  10  Prefactor     .10000E-03    1.8139        .26489E-07** at limit **
  11  Prefactor     .10000E-03    2.8606       -.16350E-07** at limit **
  12  Prefactor     .10000E-03    8.0246        .20062E-06** at limit **
  13  norm          1.0177        .66351        .42211E-07    .44659E-04
  14  Prefactor     7.3523        8.3436        .73797E-07   -.16824E-05
  15  norm          .10000E-03    .37284        .50602E-09** at limit **
  16  Prefactor     12.807        20.384        .42399E-06   -.21317E-04
  17  Prefactor     .10000E-03    5.0109        .74962E-08** at limit **
  18  norm          .10002E-03    4.6505        .11458E-05** at limit **
  19  Prefactor     3.3763        2.4346        .55731E-07   -.81188E-05
  20  Normalizat    .99131        .19616       -.68662E-06   -.22163E-03
  21  Prefactor     1.1758        .16320       -.53437E-06   -.24166E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.4126
  Prefactor  = 47.0983
  norm       = 0.0001
  Prefactor  = 51.7575
  Prefactor  = 16.0624
  Prefactor  = 0.000100016
  Prefactor  = 0.000100001
  norm       = 0.280343
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.0177
  Prefactor  = 7.35234
  norm       = 0.0001
  Prefactor  = 12.8066
  Prefactor  = 0.0001
  norm       = 0.000100017
  Prefactor  = 3.37632
  Normalizat = 0.991315
  Prefactor  = 1.17584
 **********
 **   18 **HESSE 
 **********

 FCN=   6906.964     FROM HESSE     STATUS=OK           321 CALLS     2622 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.413        14.589        .79474E-04   -1.4699    
   2  Prefactor     47.098        44.876        .58448E-04   -1.4334    
   3  norm          .10000E-03    7.6625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     51.757        16.135        .55716E-04   -1.4268    
   5  Prefactor     16.062        58.613        .99868E-04   -1.4906    
   6  Prefactor     .10002E-03    564.01        .41586E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    22.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .28034        1.2225        .13995E-02   -1.5602    
   9  Prefactor     .10000E-03    10.167        .31889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.8498        .10920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.8815        .13723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.2198        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.0177        .66439        .45733E-04   -1.5506    
  14  Prefactor     7.3523        8.5550        .14792E-03   -1.5166    
  15  norm          .10000E-03    .38029        .49517E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.807        20.380        .11197E-03   -1.4992    
  17  Prefactor     .10000E-03    5.2173        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10002E-03    17.069        .33992E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.3763        2.4360        .10641E-03   -1.5340    
  20  Normalizat    .99131        .22937        .28874E-03   -.93322    
  21  Prefactor     1.1758        .19288        .23125E-03   -.87078    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.23678e-08
Minuit parameter uncertainties:
  1  14.5911
  2  44.9085
  3  3.06481e-05
  4  16.1359
  5  58.8245
  6  0.0060827
  7  0.000252006
  8  1.17066
  9  3.85238e-05
  10  9.54767e-06
  11  3.53104e-06
  12  3.24939e-05
  13  0.664392
  14  8.55638
  15  5.73497e-07
  16  20.3911
  17  1.18503e-05
  18  0.00106386
  19  2.43608
  20  0.229598
  21  0.193
Done.

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

Extracting fit parameters...

4FGL J1050.1+0432
   Spectrum: PowerLaw
232    Prefactor:  1.000e-04  3.249e-05  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.176e+00  1.930e-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.913e-01  2.296e-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: 9.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.05e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/233365/likelihoodResults_244252801_244512001_4FGL_J1050.1+0432_daily_bin19.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) = 6906.96477019
delta logL = -0.000580445963351

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6906.96418978
delta logL = -2.92548065772e-08

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 'Index     '    2.6138       1.0000          .0000       10.000    
     3 'Normalizat'    .99133       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1759       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=   6906.964     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      258 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1874.8        .36285E-02** at limit **
   2  Index         3.2695        6.6633        .20000E-01    .21600E-07
   3  Normalizat    .99132        .13532        .28874E-03   -.10658E-03
   4  Prefactor     1.1758        .11132        .23125E-03   -.18917E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.26951
  Normalizat = 0.991315
  Prefactor  = 1.17584
 **********
 **   18 **HESSE 
 **********

 FCN=   6906.964     FROM HESSE     STATUS=OK            23 CALLS      281 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.3021        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.2695        6.6068        .80000E-03   -.35341    
   3  Normalizat    .99132        .22050        .11550E-04   -.93322    
   4  Prefactor     1.1758        .19139        .46250E-04   -.87078    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.35696e-11
Minuit parameter uncertainties:
  1  6.96732e-05
  2  535.548
  3  0.220706
  4  0.191504
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/233365': 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) = 6906.96418904
delta logL = 7.10437234375e-07

Extracting fit parameters...

4FGL J1050.1+0432
   Spectrum: PowerLaw
232    Prefactor:  1.000e-04  6.967e-05  1.000e-04  1.000e+04 ( 1.000e-12)
233        Index:  3.270e+00  5.355e+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.176e+00  1.915e-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.913e-01  2.207e-01  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/233365/cmap_HighResolution_244252801_244512001_4FGL_J1050.1+0432_daily_bin19.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.05e-03', job_status='DONE', photon_flux_upper_limit='9.00e-08', time_completed='2021-09-02 17:48:21.565684', job_id='233365', GAL2='1.18', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1630630101.57', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='7.10e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='19' AND source_name='4FGL J1050.1+0432' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 17:48:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 233365: <4FGL_J1050.1+0432_daily_bin19> in cluster <slac> Done

Job <4FGL_J1050.1+0432_daily_bin19> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Thu Sep  2 17:32:14 2021
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 17:36:49 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:36:49 2021
Terminated at Thu Sep  2 17:48:22 2021
Results reported at Thu Sep  2 17:48:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1050.1+0432_daily_bin19 162.546 4.5377 244252801 244512001 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 :                                   676.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             344.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   693 sec.
    Turnaround time :                            968 sec.

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

