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


Performing analysis on: 4FGL_J0650.2-1636_daily_bin1282
RA = 102.572, Dec = -16.6012
tmin = 571622401, tmax = 571881601
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='914348', job_status='RUN', time_executed='2021-08-26 07:48:58.969880', time_epoch_executed='1629989338.97' WHERE source_name='4FGL J0650.2-1636' and cadence='daily' and bin_id='1282'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/914348

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/914348/ft1_4FGL_J0650.2-1636_daily_bin1282.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/914348/ft2_4FGL_J0650.2-1636_daily_bin1282.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/914348/ft1_4FGL_J0650.2-1636_daily_bin1282.fits outfile=/scratch/kocevski/914348/ft1_filteredMKT_4FGL_J0650.2-1636_daily_bin1282.fits ra=102.572 dec=-16.6012 rad=12.0 tmin=571622401.0 tmax=571881601.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.65
user 1.91
sys 0.64

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/914348/ft2_4FGL_J0650.2-1636_daily_bin1282.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/914348/ft1_filteredMKT_4FGL_J0650.2-1636_daily_bin1282.fits evtable="EVENTS" outfile="/scratch/kocevski/914348/ft1_filtered_4FGL_J0650.2-1636_daily_bin1282.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 1.35
user 0.27
sys 0.62

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/914348/ft1_filtered_4FGL_J0650.2-1636_daily_bin1282.fits" evtable="EVENTS" scfile=/scratch/kocevski/914348/ft2_4FGL_J0650.2-1636_daily_bin1282.fits sctable="SC_DATA" outfile=/scratch/kocevski/914348/ltcube_571622401_571881601_4FGL_J0650.2-1636_daily_bin1282.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/914348/ft2_4FGL_J0650.2-1636_daily_bin1282.fits
.....................!
real 10.08
user 9.12
sys 0.84

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/914348/ft1_filtered_4FGL_J0650.2-1636_daily_bin1282.fits evtable="EVENTS" scfile=/scratch/kocevski/914348/ft2_4FGL_J0650.2-1636_daily_bin1282.fits sctable="SC_DATA" expcube=/scratch/kocevski/914348/ltcube_571622401_571881601_4FGL_J0650.2-1636_daily_bin1282.fits outfile=/scratch/kocevski/914348/expmap_571622401_571881601_4FGL_J0650.2-1636_daily_bin1282.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/914348/ltcube_571622401_571881601_4FGL_J0650.2-1636_daily_bin1282.fits
.....................!
real 142.01
user 137.69
sys 4.06

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/914348/ft1_filtered_4FGL_J0650.2-1636_daily_bin1282.fits scfile=/scratch/kocevski/914348/ft2_4FGL_J0650.2-1636_daily_bin1282.fits outfile=/scratch/kocevski/914348/cmap_571622401_571881601_4FGL_J0650.2-1636_daily_bin1282.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.93
user 0.28
sys 0.62

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/914348/ft1_filtered_4FGL_J0650.2-1636_daily_bin1282.fits scfile=/scratch/kocevski/914348/ft2_4FGL_J0650.2-1636_daily_bin1282.fits outfile=/scratch/kocevski/914348/cmap_HighResolution_571622401_571881601_4FGL_J0650.2-1636_daily_bin1282.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.91
user 0.29
sys 0.61

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10727E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.5547       1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.170       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.7063       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10304E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.305       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.6199       1.0000         .10000E-03   10000.    
    11 'norm      '    2.6546       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    42.915       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.8715       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .60523       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0049       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=   12150.45     FROM MIGRAD    STATUS=CONVERGED    420 CALLS     2042 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.7626        .69796E-06** at limit **
   2  Prefactor     1.5359        23.759        .20135E-04   -.48216E-04
   3  Prefactor     20.135        48.032        .30104E-05   -.22444E-03
   4  Prefactor     5.7146        20.870       -.73412E-05   -.13932E-03
   5  Prefactor     .10000E-03    51.190       -.11399E-06** at limit **
   6  norm          .10000E-03    2.6566       -.15742E-06** at limit **
   7  Prefactor     .10000E-03    13.914       -.39199E-06** at limit **
   8  Prefactor     12.304        7.0131        .27969E-07   -.12080E-04
   9  norm          .10000E-03    7.3597       -.42271E-06** at limit **
  10  norm          2.6199        1.4601        .98354E-09   -.19218E-04
  11  norm          2.6541        5.3438        .11930E-06    .84528E-04
  12  Prefactor     .10000E-03    1.4346       -.72727E-07** at limit **
  13  norm          42.920        15.318        .93252E-06    .11688E-02
  14  Prefactor     .10000E-03    3.5030       -.22241E-06** at limit **
  15  norm          .10000E-03    19.596       -.37681E-06** at limit **
  16  norm          .10000E-03    1.5235       -.39921E-07** at limit **
  17  Prefactor     .10000E-03    9.5607       -.31040E-06** at limit **
  18  norm          5.8716        3.0699        .24563E-07   -.14292E-03
  19  Normalizat    .60534        .36513       -.22397E-05    .18298E-03
  20  Prefactor     1.0049        .55898E-01   -.13791E-07    .85174E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.53594
  Prefactor  = 20.1352
  Prefactor  = 5.71459
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 12.3043
  norm       = 0.0001
  norm       = 2.61988
  norm       = 2.65412
  Prefactor  = 0.0001
  norm       = 42.9203
  Prefactor  = 0.000100003
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.87158
  Normalizat = 0.605338
  Prefactor  = 1.00488
 **********
 **   18 **HESSE 
 **********

 FCN=   12150.45     FROM HESSE     STATUS=OK           287 CALLS     2329 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.8112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.5359        23.657        .17073E-02   -1.5460    
   3  Prefactor     20.135        48.037        .89182E-04   -1.4810    
   4  Prefactor     5.7146        20.845        .16815E-03   -1.5230    
   5  Prefactor     .10000E-03    51.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.6691        .17532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.304        6.9969        .11420E-03   -1.5006    
   9  norm          .10000E-03    7.5427        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.6199        1.4615        .96516E-04   -1.5384    
  11  norm          2.6541        5.3082        .25019E-03   -1.5382    
  12  Prefactor     .10000E-03    1.4397        .12886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          42.920        13.919        .61195E-04   -1.4397    
  14  Prefactor     .10000E-03    12.743        .34860E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    19.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.5391        .13284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.5704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.8716        3.0687        .13498E-03   -1.5223    
  19  Normalizat    .60534        .33747        .91611E-03   -1.0776    
  20  Prefactor     1.0049        .52900E-01    .12369E-03   -.92567    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15556e-09
Minuit parameter uncertainties:
  1  0.000106837
  2  12.0611
  3  48.1293
  4  20.8718
  5  0.000283995
  6  1.54807e-05
  7  0.000347891
  8  6.99741
  9  7.30935e-05
  10  1.46153
  11  5.30916
  12  5.21066e-06
  13  13.92
  14  0.000368484
  15  0.000107172
  16  3.59884e-06
  17  7.94548e-05
  18  3.06878
  19  0.338624
  20  0.0529024
Done.

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

Extracting fit parameters...

4FGL J0650.2-1636
   Spectrum: PowerLaw
251    Prefactor:  1.000e-04  3.685e-04  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.005e+00  5.290e-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:  6.053e-01  3.386e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/914348/likelihoodResults_571622401_571881601_4FGL_J0650.2-1636_daily_bin1282.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): 102
logL (Free Index) = 12150.4490819
delta logL = -0.000372270891603

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12150.4487121
delta logL = -2.45439514401e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23296E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7063       1.0000          .0000       10.000    
     3 'Normalizat'    .60607       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0048       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=   12150.36     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      281 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20247        5.1135        .24092E-01    .37460E-02
   2  Index         4.0044        6.9975        .22871E-01    .10657E-03
   3  Normalizat    .57016        .54603E-01    .21149        .86133E-04
   4  Prefactor     1.0059        .93513E-02    .27963E-01    .49535E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.202467
  Index      = 4.00439
  Normalizat = 0.570158
  Prefactor  = 1.00595
 **********
 **   18 **HESSE 
 **********

 FCN=   12150.36     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      312 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .20247        53.300        .83863E-03   -1.5618    
   2  Index         4.0044        6.0987        .91485E-03   -.20046    
   3  Normalizat    .57016        .24604        .94081E-03   -1.0927    
   4  Prefactor     1.0059        .42143E-01    .12359E-03   -.92531    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.48502e-09
Minuit parameter uncertainties:
  1  6.57436
  2  15.6005
  3  0.246515
  4  0.0421446
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/914348': 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) = 12150.3613761
delta logL = 0.087333535017

Extracting fit parameters...

4FGL J0650.2-1636
   Spectrum: PowerLaw
251    Prefactor:  2.025e-01  6.574e+00  1.000e-04  1.000e+04 ( 1.000e-12)
252        Index:  4.004e+00  1.560e+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.006e+00  4.214e-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:  5.702e-01  2.465e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 102.572 -16.601

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/914348/cmap_HighResolution_571622401_571881601_4FGL_J0650.2-1636_daily_bin1282.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.92e-02', job_status='DONE', photon_flux_upper_limit='2.46e-07', time_completed='2021-08-26 08:01:57.773390', job_id='914348', GAL2='1.01', fit_tolerance='1e-08', EG2='0.57', EG='0.61', time_epoch_completed='1629990117.77', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='8.73e-02', ts2='0.19', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1282' AND source_name='4FGL J0650.2-1636' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 08:01:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 914348: <4FGL_J0650.2-1636_daily_bin1282> in cluster <slac> Done

Job <4FGL_J0650.2-1636_daily_bin1282> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Aug 26 07:45:24 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 07:45:25 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:45:25 2021
Terminated at Thu Aug 26 08:01:58 2021
Results reported at Thu Aug 26 08:01:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0650.2-1636_daily_bin1282 102.572 -16.6012 571622401 571881601 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.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             311.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   993 sec.
    Turnaround time :                            994 sec.

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

