/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 17 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 = 7403
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0650.2-1636_daily_bin1192
RA = 102.572, Dec = -16.6012
tmin = 548294401, tmax = 548553601
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='912940', job_status='RUN', time_executed='2021-08-26 07:41:19.253384', time_epoch_executed='1629988879.25' WHERE source_name='4FGL J0650.2-1636' and cadence='daily' and bin_id='1192'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/912940

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/912940/ft1_4FGL_J0650.2-1636_daily_bin1192.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/912940/ft2_4FGL_J0650.2-1636_daily_bin1192.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/912940/ft1_4FGL_J0650.2-1636_daily_bin1192.fits outfile=/scratch/kocevski/912940/ft1_filteredMKT_4FGL_J0650.2-1636_daily_bin1192.fits ra=102.572 dec=-16.6012 rad=12.0 tmin=548294401.0 tmax=548553601.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.01
user 3.65
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/912940/ft2_4FGL_J0650.2-1636_daily_bin1192.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/912940/ft2_4FGL_J0650.2-1636_daily_bin1192.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/912940/ft1_filteredMKT_4FGL_J0650.2-1636_daily_bin1192.fits evtable="EVENTS" outfile="/scratch/kocevski/912940/ft1_filtered_4FGL_J0650.2-1636_daily_bin1192.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 2.26
user 0.32
sys 0.20

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/912940/ft1_filtered_4FGL_J0650.2-1636_daily_bin1192.fits" evtable="EVENTS" scfile=/scratch/kocevski/912940/ft2_4FGL_J0650.2-1636_daily_bin1192.fits sctable="SC_DATA" outfile=/scratch/kocevski/912940/ltcube_548294401_548553601_4FGL_J0650.2-1636_daily_bin1192.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/912940/ft2_4FGL_J0650.2-1636_daily_bin1192.fits
.....................!
real 12.75
user 11.76
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/912940/ft1_filtered_4FGL_J0650.2-1636_daily_bin1192.fits evtable="EVENTS" scfile=/scratch/kocevski/912940/ft2_4FGL_J0650.2-1636_daily_bin1192.fits sctable="SC_DATA" expcube=/scratch/kocevski/912940/ltcube_548294401_548553601_4FGL_J0650.2-1636_daily_bin1192.fits outfile=/scratch/kocevski/912940/expmap_548294401_548553601_4FGL_J0650.2-1636_daily_bin1192.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/912940/ltcube_548294401_548553601_4FGL_J0650.2-1636_daily_bin1192.fits
.....................!
real 191.85
user 185.59
sys 5.37

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
Extended source Rosette in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/Rosette.fits is the correct path to the extended template.
Added 157 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0650.2-1636 @ 102.572 -16.6012

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/912940/ft1_filtered_4FGL_J0650.2-1636_daily_bin1192.fits scfile=/scratch/kocevski/912940/ft2_4FGL_J0650.2-1636_daily_bin1192.fits outfile=/scratch/kocevski/912940/cmap_548294401_548553601_4FGL_J0650.2-1636_daily_bin1192.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=102.572 yref=-16.6012 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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/912940/ft1_filtered_4FGL_J0650.2-1636_daily_bin1192.fits scfile=/scratch/kocevski/912940/ft2_4FGL_J0650.2-1636_daily_bin1192.fits outfile=/scratch/kocevski/912940/cmap_HighResolution_548294401_548553601_4FGL_J0650.2-1636_daily_bin1192.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=102.572 yref=-16.6012 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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/912940/ft1_filtered_4FGL_J0650.2-1636_daily_bin1192.fits evtable="EVENTS" scfile=/scratch/kocevski/912940/ft2_4FGL_J0650.2-1636_daily_bin1192.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/912940/Model_4FGL_J0650.2-1636_daily_bin1192.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
adding source Rosette
Working on...
/scratch/kocevski/912940/ft1_filtered_4FGL_J0650.2-1636_daily_bin1192.fits.....................!
real 200.95
user 199.28
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/912940/ft1_filtered_4FGL_J0650.2-1636_daily_bin1192.fits', '/scratch/kocevski/912940/ft2_4FGL_J0650.2-1636_daily_bin1192.fits', expMap='/scratch/kocevski/912940/expmap_548294401_548553601_4FGL_J0650.2-1636_daily_bin1192.fits', expCube='/scratch/kocevski/912940/ltcube_548294401_548553601_4FGL_J0650.2-1636_daily_bin1192.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/912940/Model_4FGL_J0650.2-1636_daily_bin1192.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0650.2-1636'

4FGL J0650.2-1636
   Spectrum: PowerLaw
251    Prefactor:  1.216e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
252        Index:  2.592e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
253        Scale:  9.842e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/912940/ft1_filtered_4FGL_J0650.2-1636_daily_bin1192.fits
Spacecraft file(s): /scratch/kocevski/912940/ft2_4FGL_J0650.2-1636_daily_bin1192.fits
Exposure map: /scratch/kocevski/912940/expmap_548294401_548553601_4FGL_J0650.2-1636_daily_bin1192.fits
Exposure cube: /scratch/kocevski/912940/ltcube_548294401_548553601_4FGL_J0650.2-1636_daily_bin1192.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/912940/Model_4FGL_J0650.2-1636_daily_bin1192.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) = 12172.3809937

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.854       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    29.436       1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.4620       1.0000         .10000E-03   10000.    
     9 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .66032       1.0000         .10000E-03   10000.    
    11 'norm      '    8.2767       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12945E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.2280       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.1996       1.0000         .10000E-03   10000.    
    15 'norm      '    62.509       1.0000         .10000E-03   10000.    
    16 'norm      '    7.3685       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.1734       1.0000         .10000E-03   10000.    
    19 'Normalizat'    2.1462       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .86970       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12172.38     FROM MIGRAD    STATUS=CONVERGED    412 CALLS     2035 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.855        10.101        .93209E-07   -.81752E-05
   2  Prefactor     .10000E-03    3.3668        .22645E-07** at limit **
   3  Prefactor     .10000E-03    19.472       -.17810E-05** at limit **
   4  Prefactor     .10000E-03    6.3607       -.72534E-06** at limit **
   5  Prefactor     29.438        36.691        .79025E-06    .70445E-04
   6  norm          .10000E-03    4.4872        .53283E-07** at limit **
   7  Prefactor     .10000E-03    7.2181        .15360E-05** at limit **
   8  Prefactor     6.4641        5.3757       -.56273E-09   -.94436E-04
   9  norm          .10000E-03    2.5949       -.66777E-07** at limit **
  10  norm          .66013        1.1690        .37849E-06    .29999E-03
  11  norm          8.2749        11.327        .16192E-06   -.41983E-03
  12  Prefactor     .10007E-03    4.3309        .11050E-05** at limit **
  13  norm          1.2186        31.716        .29334E-05   -.15571E-03
  14  Prefactor     7.1813        6.3795       -.58625E-06   -.65879E-03
  15  norm          62.511        56.675        .63546E-06    .43473E-04
  16  norm          7.3682        3.8406       -.10432E-06   -.47989E-03
  17  Prefactor     .10000E-03    9.8381       -.18847E-05** at limit **
  18  norm          1.1737        2.5786        .73771E-06   -.55747E-03
  19  Normalizat    2.1461        .33230       -.30159E-06   -.21345E-03
  20  Prefactor     .86971        .50921E-01   -.84237E-07   -.41161E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.855
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 29.438
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 6.46413
  norm       = 0.0001
  norm       = 0.660129
  norm       = 8.27487
  Prefactor  = 0.000100069
  norm       = 1.21858
  Prefactor  = 7.18134
  norm       = 62.5111
  norm       = 7.3682
  Prefactor  = 0.000100002
  norm       = 1.17374
  Normalizat = 2.14608
  Prefactor  = 0.869708
 **********
 **   18 **HESSE 
 **********

 FCN=   12172.38     FROM HESSE     STATUS=OK           291 CALLS     2326 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.855        10.147        .12161E-03   -1.5049    
   2  Prefactor     .10000E-03    3.3764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    19.788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.4185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     29.438        36.749        .73845E-04   -1.4622    
   6  norm          .10000E-03    4.5284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.4498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.4641        5.3796        .15788E-03   -1.5199    
   9  norm          .10000E-03    2.6088        .17351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .66013        .94193        .16605E-02   -1.5545    
  11  norm          8.2749        10.523        .13935E-03   -1.5133    
  12  Prefactor     .10007E-03    15.333        .35882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.2186        31.115        .40610E-03   -1.5487    
  14  Prefactor     7.1813        5.9858        .14949E-03   -1.5172    
  15  norm          62.511        56.759        .50753E-04   -1.4125    
  16  norm          7.3682        3.8546        .14775E-03   -1.5165    
  17  Prefactor     .10000E-03    10.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.1737        2.6889        .26523E-03   -1.5491    
  19  Normalizat    2.1461        .34903        .58536E-03   -.60938    
  20  Prefactor     .86971        .54533E-01    .13920E-03   -.97208    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.60688e-09
Minuit parameter uncertainties:
  1  10.1488
  2  1.39445e-06
  3  0.000403698
  4  9.40152e-05
  5  36.7772
  6  1.6338e-06
  7  0.000205705
  8  5.37998
  9  7.42585e-06
  10  0.941948
  11  10.5257
  12  0.00205569
  13  12.3218
  14  5.98627
  15  56.8082
  16  3.8547
  17  0.000302691
  18  2.68919
  19  0.349456
  20  0.0545365
Done.

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

Extracting fit parameters...

4FGL J0650.2-1636
   Spectrum: PowerLaw
251    Prefactor:  7.181e+00  5.986e+00  1.000e-04  1.000e+04 ( 1.000e-12)
252        Index:  2.592e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
253        Scale:  9.842e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
529    Prefactor:  8.697e-01  5.454e-02  0.000e+00  1.000e+01 ( 1.000e+00)
530        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
531        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
528   Normalization:  2.146e+00  3.495e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.55
Ra Dec: 102.572 -16.601
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 1.69e-07 +/- 1.41e-07
Energy Flux (Fixed Index): 4.47e-05 +/- 3.73e-05

TS (Fixed Index): 2.55
Ra Dec: 102.572 -16.601
Photon Flux Upper Limit: 3.97e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.11e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/912940/likelihoodResults_548294401_548553601_4FGL_J0650.2-1636_daily_bin1192.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) = 12172.15178
delta logL = 0.227233802067

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12172.1192007
delta logL = 0.259813180592

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4708       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1876       1.0000          .0000       10.000    
     3 'Normalizat'    2.0991       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87372       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   12172.12     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      256 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4708        36.397        .54265E-02    .19813E-02
   2  Index         3.1877        2.8147        .12082        .28759E-03
   3  Normalizat    2.0991        .13310        .13293        .10926E-04
   4  Prefactor     .87371        .20575E-01    .31432E-01   -.82179E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.47082
  Index      = 3.18767
  Normalizat = 2.0991
  Prefactor  = 0.873714
 **********
 **   18 **HESSE 
 **********

 FCN=   12172.12     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      289 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4708        65.982        .12216E-03   -1.5335    
   2  Index         3.1877        6.5760        .65495E-02   -.37091    
   3  Normalizat    2.0991        .38123        .58958E-03   -.62089    
   4  Prefactor     .87371        .63427E-01    .13889E-03   -.97066    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.20104e-06
Minuit parameter uncertainties:
  1  30.3045
  2  5.03443
  3  0.381795
  4  0.0634319
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/912940': 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) = 12172.1192006
delta logL = 0.259813216391

Extracting fit parameters...

4FGL J0650.2-1636
   Spectrum: PowerLaw
251    Prefactor:  3.471e+00  3.030e+01  1.000e-04  1.000e+04 ( 1.000e-12)
252        Index:  3.188e+00  5.034e+00  0.000e+00  1.000e+01 (-1.000e+00)
253        Scale:  9.842e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
529    Prefactor:  8.737e-01  6.343e-02  0.000e+00  1.000e+01 ( 1.000e+00)
530        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
531        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
528   Normalization:  2.099e+00  3.818e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.12
Ra Dec: 102.572 -16.601
Photon Index (Free Index): 3.19 +/- 5.03
Photon Flux (Free Index): 2.33e-07 +/- 1.87e-07
Energy Flux (Free Index): 4.28e-05 +/- 6.67e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/912940/cmap_HighResolution_548294401_548553601_4FGL_J0650.2-1636_daily_bin1192.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.11e-02', comment='SUCCESS', photon_flux='1.69e-07', energy_flux2='4.28e-05', photon_flux_error='1.41e-07', dlogl='2.60e-01', energy_flux='4.47e-05', photon_flux2='2.33e-07', job_status='DONE', time_completed='2021-08-26 07:57:02.566372', photon_index_error2='5.03', photon_index2='3.19', ts='2.55', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='3.97e-07', energy_flux_error2='6.67e-05', EG='2.15', time_epoch_completed='1629989822.57', return_code='0', job_id='912940', GAL2='0.87', EG2='2.10', return_code2='102', energy_flux_error='3.73e-05', photon_flux_error2='1.87e-07', ts2='3.12', photon_index='2.59' WHERE bin_id='1192' AND source_name='4FGL J0650.2-1636' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 07:57:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 912940: <4FGL_J0650.2-1636_daily_bin1192> in cluster <slac> Done

Job <4FGL_J0650.2-1636_daily_bin1192> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Aug 26 07:40:36 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 07:40:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 26 07:40:44 2021
Terminated at Thu Aug 26 07:57:03 2021
Results reported at Thu Aug 26 07:57:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0650.2-1636_daily_bin1192 102.572 -16.6012 548294401 548553601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0650.2-1636 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   932.25 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             398.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   978 sec.
    Turnaround time :                            987 sec.

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

