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


Performing analysis on: 4FGL_J0650.2-1636_daily_bin1230
RA = 102.572, Dec = -16.6012
tmin = 558144001, tmax = 558403201
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='912994', job_status='RUN', time_executed='2021-08-26 07:41:20.114228', time_epoch_executed='1629988880.11' WHERE source_name='4FGL J0650.2-1636' and cadence='daily' and bin_id='1230'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/912994

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/912994/ft1_4FGL_J0650.2-1636_daily_bin1230.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/912994/ft2_4FGL_J0650.2-1636_daily_bin1230.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/912994/ft1_4FGL_J0650.2-1636_daily_bin1230.fits outfile=/scratch/kocevski/912994/ft1_filteredMKT_4FGL_J0650.2-1636_daily_bin1230.fits ra=102.572 dec=-16.6012 rad=12.0 tmin=558144001.0 tmax=558403201.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 5.77
user 4.00
sys 0.50

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/912994/ft1_filtered_4FGL_J0650.2-1636_daily_bin1230.fits" evtable="EVENTS" scfile=/scratch/kocevski/912994/ft2_4FGL_J0650.2-1636_daily_bin1230.fits sctable="SC_DATA" outfile=/scratch/kocevski/912994/ltcube_558144001_558403201_4FGL_J0650.2-1636_daily_bin1230.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/912994/ft2_4FGL_J0650.2-1636_daily_bin1230.fits
.....................!
real 12.17
user 11.16
sys 0.64

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/912994/ft1_filtered_4FGL_J0650.2-1636_daily_bin1230.fits evtable="EVENTS" scfile=/scratch/kocevski/912994/ft2_4FGL_J0650.2-1636_daily_bin1230.fits sctable="SC_DATA" expcube=/scratch/kocevski/912994/ltcube_558144001_558403201_4FGL_J0650.2-1636_daily_bin1230.fits outfile=/scratch/kocevski/912994/expmap_558144001_558403201_4FGL_J0650.2-1636_daily_bin1230.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/912994/ltcube_558144001_558403201_4FGL_J0650.2-1636_daily_bin1230.fits
.....................!
real 191.66
user 185.54
sys 4.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/912994/ft1_filtered_4FGL_J0650.2-1636_daily_bin1230.fits scfile=/scratch/kocevski/912994/ft2_4FGL_J0650.2-1636_daily_bin1230.fits outfile=/scratch/kocevski/912994/cmap_558144001_558403201_4FGL_J0650.2-1636_daily_bin1230.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.84
user 0.38
sys 0.42

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/912994/ft1_filtered_4FGL_J0650.2-1636_daily_bin1230.fits scfile=/scratch/kocevski/912994/ft2_4FGL_J0650.2-1636_daily_bin1230.fits outfile=/scratch/kocevski/912994/cmap_HighResolution_558144001_558403201_4FGL_J0650.2-1636_daily_bin1230.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.84
user 0.38
sys 0.44

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/912994/ft1_filtered_4FGL_J0650.2-1636_daily_bin1230.fits evtable="EVENTS" scfile=/scratch/kocevski/912994/ft2_4FGL_J0650.2-1636_daily_bin1230.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/912994/Model_4FGL_J0650.2-1636_daily_bin1230.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/912994/ft1_filtered_4FGL_J0650.2-1636_daily_bin1230.fits.....................!
real 132.38
user 129.89
sys 1.55

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/912994/ft1_filtered_4FGL_J0650.2-1636_daily_bin1230.fits', '/scratch/kocevski/912994/ft2_4FGL_J0650.2-1636_daily_bin1230.fits', expMap='/scratch/kocevski/912994/expmap_558144001_558403201_4FGL_J0650.2-1636_daily_bin1230.fits', expCube='/scratch/kocevski/912994/ltcube_558144001_558403201_4FGL_J0650.2-1636_daily_bin1230.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/912994/Model_4FGL_J0650.2-1636_daily_bin1230.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/912994/ft1_filtered_4FGL_J0650.2-1636_daily_bin1230.fits
Spacecraft file(s): /scratch/kocevski/912994/ft2_4FGL_J0650.2-1636_daily_bin1230.fits
Exposure map: /scratch/kocevski/912994/expmap_558144001_558403201_4FGL_J0650.2-1636_daily_bin1230.fits
Exposure cube: /scratch/kocevski/912994/ltcube_558144001_558403201_4FGL_J0650.2-1636_daily_bin1230.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/912994/Model_4FGL_J0650.2-1636_daily_bin1230.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) = 8155.23051675

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.183       1.0000         .10000E-03   10000.    
     2 'Prefactor '    24.491       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 '    2.8558       1.0000         .10000E-03   10000.    
     6 'norm      '    9.6590       1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.173       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.631       1.0000         .10000E-03   10000.    
     9 'norm      '    11.882       1.0000         .10000E-03   10000.    
    10 'norm      '    4.3866       1.0000         .10000E-03   10000.    
    11 'norm      '    26.314       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.144       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.294       1.0000         .10000E-03   10000.    
    15 'norm      '    36.001       1.0000         .10000E-03   10000.    
    16 'norm      '    3.8749       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.1578       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .73612E-01   1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0525       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8155.010     FROM MIGRAD    STATUS=CONVERGED    712 CALLS     2655 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.188        22.201        .89155E-04    .16717E-03
   2  Prefactor     24.492        24.172        .80943E-04    .95930E-04
   3  Prefactor     .10000E-03    47.936        .18142E-02** at limit **
   4  Prefactor     .10000E-03    15.693        .18142E-02** at limit **
   5  Prefactor     2.8772        583.29        .24058E-03    .33552E-04
   6  norm          9.6596        8.2531        .12894E-03    .19353E-03
   7  Prefactor     21.173        25.555        .87047E-04    .97823E-04
   8  Prefactor     10.632        7.8114        .12288E-03    .15626E-03
   9  norm          11.882        10.784        .11621E-03    .15085E-03
  10  norm          4.3865        2.3661        .95415E-04    .17860E-03
  11  norm          26.315        26.494        .78094E-04    .16144E-03
  12  Prefactor     10.145        12.736        .62903E-03    .16017E-03
  13  norm          .10000E-03    10.307        .18142E-02** at limit **
  14  Prefactor     13.294        7.9583        .10986E-03    .22642E-03
  15  norm          36.013        58.765        .66792E-04    .10798E-03
  16  norm          3.8747        5.0866        .10249E-02   -.71122E-03
  17  Prefactor     .10000E-03    21.632        .18142E-02** at limit **
  18  norm          1.1577        2.0465        .17088E-03    .72051E-04
  19  Normalizat    .73202E-01    1.1891        .17507E-01    .86754E-04
  20  Prefactor     1.0526        .74586E-01    .12607E-03    .12927E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.1877
  Prefactor  = 24.4916
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.87717
  norm       = 9.65963
  Prefactor  = 21.1728
  Prefactor  = 10.6316
  norm       = 11.8824
  norm       = 4.3865
  norm       = 26.315
  Prefactor  = 10.1449
  norm       = 0.0001
  Prefactor  = 13.2935
  norm       = 36.013
  norm       = 3.87467
  Prefactor  = 0.0001
  norm       = 1.15765
  Normalizat = 0.0732017
  Prefactor  = 1.05257
 **********
 **   18 **HESSE 
 **********

 FCN=   8155.010     FROM HESSE     STATUS=OK           273 CALLS     2928 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.188        21.734        .35662E-05   -1.4809    
   2  Prefactor     24.492        23.933        .32377E-05   -1.4718    
   3  Prefactor     .10000E-03    47.937        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.694        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.8772        577.01        .96230E-05   -1.5369    
   6  norm          9.6596        8.2123        .51576E-05   -1.5086    
   7  Prefactor     21.173        25.406        .34819E-05   -1.4787    
   8  Prefactor     10.632        7.8007        .49153E-05   -1.5056    
   9  norm          11.882        10.740        .46486E-05   -1.5018    
  10  norm          4.3865        2.3647        .38166E-05   -1.5289    
  11  norm          26.315        26.474        .31238E-05   -1.4682    
  12  Prefactor     10.145        12.359        .25161E-04   -1.5071    
  13  norm          .10000E-03    10.309        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.294        7.8821        .43944E-05   -1.4979    
  15  norm          36.013        58.448        .13358E-04   -1.4507    
  16  norm          3.8747        5.0793        .40997E-04   -1.5314    
  17  Prefactor     .10000E-03    21.633        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.1577        2.0462        .68353E-05   -1.5493    
  19  Normalizat    .73202E-01    .89942        .70027E-03   -1.4115    
  20  Prefactor     1.0526        .67493E-01    .25214E-04   -.90997    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32946e-09
Minuit parameter uncertainties:
  1  21.7429
  2  23.9426
  3  4.6827e-06
  4  2.76717e-06
  5  82.306
  6  8.21328
  7  25.4189
  8  7.80149
  9  10.7416
  10  2.36471
  11  26.4859
  12  12.3622
  13  5.54519e-05
  14  7.8827
  15  58.5415
  16  5.0799
  17  5.02215e-05
  18  2.04635
  19  0.485955
  20  0.0674983
Done.

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

Extracting fit parameters...

4FGL J0650.2-1636
   Spectrum: PowerLaw
251    Prefactor:  1.329e+01  7.883e+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:  1.053e+00  6.750e-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:  7.320e-02  4.860e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.07
Ra Dec: 102.572 -16.601
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 3.13e-07 +/- 1.86e-07
Energy Flux (Fixed Index): 8.28e-05 +/- 4.91e-05

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) = 8154.54616153
delta logL = 0.464038210522

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8154.51337239
delta logL = 0.496827347582

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.2487       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1378       1.0000          .0000       10.000    
     3 'Normalizat'    .10012E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0558       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=   8154.513     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      294 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2424        55.493        .37245E-02    .49767E-03
   2  Index         3.1381        2.5572        .12030        .23057E-03
   3  Normalizat    .10000E-01    .58928E-01    .50000    ** at limit **
   4  Prefactor     1.0558        .27809E-01    .28472E-01    .62486E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.24244
  Index      = 3.13808
  Normalizat = 0.01
  Prefactor  = 1.05578
 **********
 **   18 **HESSE 
 **********

 FCN=   8154.513     FROM HESSE     STATUS=OK            37 CALLS      331 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2424        9.7225        .11558E-03   -1.5170    
   2  Index         3.1381        .77462        .45058E-02   -.38158    
   3  Normalizat    .10000E-01    .22857        .50000       -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0558        .59901E-01    .12584E-03   -.90893    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.9679e-10
Minuit parameter uncertainties:
  1  9.72467
  2  0.778261
  3  8.15423e-05
  4  0.0599044
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/912994': 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) = 8154.51337052
delta logL = 0.496829220717

Extracting fit parameters...

4FGL J0650.2-1636
   Spectrum: PowerLaw
251    Prefactor:  7.242e+00  9.725e+00  1.000e-04  1.000e+04 ( 1.000e-12)
252        Index:  3.138e+00  7.783e-01  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:  1.056e+00  5.990e-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:  1.000e-02  8.154e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.20
Ra Dec: 102.572 -16.601
Photon Index (Free Index): 3.14 +/- 0.78
Photon Flux (Free Index): 4.44e-07 +/- 2.41e-07
Energy Flux (Free Index): 8.32e-05 +/- 4.45e-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/912994/cmap_HighResolution_558144001_558403201_4FGL_J0650.2-1636_daily_bin1230.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.13e-07', energy_flux2='8.32e-05', photon_flux_error='1.86e-07', dlogl='4.97e-01', energy_flux='8.28e-05', photon_flux2='4.44e-07', job_status='DONE', time_completed='2021-08-26 07:53:13.969087', photon_index_error2='0.78', photon_index2='3.14', ts='4.07', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='4.45e-05', EG='0.07', time_epoch_completed='1629989593.97', return_code='0', job_id='912994', GAL2='1.06', EG2='0.01', return_code2='0', energy_flux_error='4.91e-05', photon_flux_error2='2.41e-07', ts2='5.20', photon_index='2.59' WHERE bin_id='1230' AND source_name='4FGL J0650.2-1636' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 07:53:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0150>
Subject: Job 912994: <4FGL_J0650.2-1636_daily_bin1230> in cluster <slac> Done

Job <4FGL_J0650.2-1636_daily_bin1230> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Aug 26 07:40:39 2021
Job was executed on host(s) <bullet0150>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 07:40:50 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:50 2021
Terminated at Thu Aug 26 07:53:14 2021
Results reported at Thu Aug 26 07:53:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0650.2-1636_daily_bin1230 102.572 -16.6012 558144001 558403201 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 :                                   704.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             368.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   744 sec.
    Turnaround time :                            755 sec.

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

