/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 205 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_bin1234
RA = 102.572, Dec = -16.6012
tmin = 559180801, tmax = 559440001
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='913000', job_status='RUN', time_executed='2021-08-26 07:44:28.894077', time_epoch_executed='1629989068.89' WHERE source_name='4FGL J0650.2-1636' and cadence='daily' and bin_id='1234'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/913000

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/913000/ft1_4FGL_J0650.2-1636_daily_bin1234.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/913000/ft2_4FGL_J0650.2-1636_daily_bin1234.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/913000/ft1_4FGL_J0650.2-1636_daily_bin1234.fits outfile=/scratch/kocevski/913000/ft1_filteredMKT_4FGL_J0650.2-1636_daily_bin1234.fits ra=102.572 dec=-16.6012 rad=12.0 tmin=559180801.0 tmax=559440001.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 3.89
user 3.37
sys 0.49

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/913000/ft2_4FGL_J0650.2-1636_daily_bin1234.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/913000/ft1_filteredMKT_4FGL_J0650.2-1636_daily_bin1234.fits evtable="EVENTS" outfile="/scratch/kocevski/913000/ft1_filtered_4FGL_J0650.2-1636_daily_bin1234.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.87
user 0.34
sys 0.47

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/913000/ft1_filtered_4FGL_J0650.2-1636_daily_bin1234.fits" evtable="EVENTS" scfile=/scratch/kocevski/913000/ft2_4FGL_J0650.2-1636_daily_bin1234.fits sctable="SC_DATA" outfile=/scratch/kocevski/913000/ltcube_559180801_559440001_4FGL_J0650.2-1636_daily_bin1234.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/913000/ft2_4FGL_J0650.2-1636_daily_bin1234.fits
.....................!
real 12.58
user 11.80
sys 0.68

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/913000/ft1_filtered_4FGL_J0650.2-1636_daily_bin1234.fits evtable="EVENTS" scfile=/scratch/kocevski/913000/ft2_4FGL_J0650.2-1636_daily_bin1234.fits sctable="SC_DATA" expcube=/scratch/kocevski/913000/ltcube_559180801_559440001_4FGL_J0650.2-1636_daily_bin1234.fits outfile=/scratch/kocevski/913000/expmap_559180801_559440001_4FGL_J0650.2-1636_daily_bin1234.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/913000/ltcube_559180801_559440001_4FGL_J0650.2-1636_daily_bin1234.fits
.....................!
real 190.74
user 185.04
sys 5.27

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/913000/ft1_filtered_4FGL_J0650.2-1636_daily_bin1234.fits scfile=/scratch/kocevski/913000/ft2_4FGL_J0650.2-1636_daily_bin1234.fits outfile=/scratch/kocevski/913000/cmap_559180801_559440001_4FGL_J0650.2-1636_daily_bin1234.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.98
user 0.38
sys 0.46

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/913000/ft1_filtered_4FGL_J0650.2-1636_daily_bin1234.fits scfile=/scratch/kocevski/913000/ft2_4FGL_J0650.2-1636_daily_bin1234.fits outfile=/scratch/kocevski/913000/cmap_HighResolution_559180801_559440001_4FGL_J0650.2-1636_daily_bin1234.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.99
user 0.42
sys 0.44

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/913000/ft1_filtered_4FGL_J0650.2-1636_daily_bin1234.fits evtable="EVENTS" scfile=/scratch/kocevski/913000/ft2_4FGL_J0650.2-1636_daily_bin1234.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/913000/Model_4FGL_J0650.2-1636_daily_bin1234.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/913000/ft1_filtered_4FGL_J0650.2-1636_daily_bin1234.fits.....................!
real 98.87
user 96.71
sys 1.57

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10368E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    36.414       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.5335       1.0000         .10000E-03   10000.    
     6 'norm      '    .67072E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14936E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.8062       1.0000         .10000E-03   10000.    
    10 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10176E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.110       1.0000         .10000E-03   10000.    
    13 'norm      '    9.0543       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.9148       1.0000         .10000E-03   10000.    
    15 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3022       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .92631       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=   5208.552     FROM MIGRAD    STATUS=CONVERGED    427 CALLS     2059 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    45.490        .11069E-04** at limit **
   2  Prefactor     .10000E-03    10.243       -.10418E-06** at limit **
   3  Prefactor     .10000E-03    606.63       -.19982E-05** at limit **
   4  Prefactor     36.378        51.806        .26225E-05    .34028E-04
   5  Prefactor     4.5012        119.59        .23570E-04   -.81657E-05
   6  norm          .10002E-03    141.92       -.19397E-03** at limit **
   7  Prefactor     .10000E-03    25.534       -.39612E-06** at limit **
   8  Prefactor     .10001E-03    171.94        .74343E-04** at limit **
   9  norm          5.8035        13.245        .35806E-06    .72511E-04
  10  norm          .10000E-03    5.2279        .18383E-06** at limit **
  11  norm          .10000E-03    37.083       -.92201E-05** at limit **
  12  Prefactor     24.129        43.386       -.57586E-05    .55305E-03
  13  norm          9.0453        74.987        .41612E-07    .27981E-04
  14  Prefactor     5.9157        17.678       -.11954E-06   -.50336E-04
  15  norm          .10000E-03    1340.2       -.85596E-03** at limit **
  16  norm          .10000E-03    7.0482        .27481E-07** at limit **
  17  Prefactor     .10000E-03    29.921        .33615E-05** at limit **
  18  norm          .10000E-03    3.0695        .39460E-08** at limit **
  19  Normalizat    1.3015        .72703        .22234E-05    .10772E-03
  20  Prefactor     .92642        .86402E-01   -.56728E-06    .30834E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.3781
  Prefactor  = 4.50122
  norm       = 0.000100025
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  norm       = 5.80353
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 24.1292
  norm       = 9.04535
  Prefactor  = 5.91575
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.30146
  Prefactor  = 0.926421
 **********
 **   18 **HESSE 
 **********

 FCN=   5208.552     FROM HESSE     STATUS=OK           281 CALLS     2340 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    45.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    607.60        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     36.378        51.832        .66414E-04   -1.4501    
   5  Prefactor     4.5012        118.50        .18908E-03   -1.5284    
   6  norm          .10002E-03    142.54        .21004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    25.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    173.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.8035        13.222        .16668E-03   -1.5226    
  10  norm          .10000E-03    5.2336        .16106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    37.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     24.129        43.366        .81580E-04   -1.4725    
  13  norm          9.0453        66.900        .13320E-03   -1.5106    
  14  Prefactor     5.9157        16.681        .16512E-03   -1.5221    
  15  norm          .10000E-03    1343.8        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    7.0652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    29.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.1220        .12340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.3015        .75243        .84773E-03   -.83523    
  20  Prefactor     .92642        .90966E-01    .12726E-03   -.95224    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44003e-09
Minuit parameter uncertainties:
  1  9.76996e-05
  2  2.43054e-05
  3  0.000809219
  4  51.896
  5  46.2922
  6  0.00377392
  7  7.0702e-05
  8  0.00306531
  9  13.2285
  10  4.48347e-05
  11  0.000224883
  12  43.4228
  13  49.2762
  14  16.6946
  15  0.000606121
  16  9.33849e-06
  17  7.40965e-06
  18  2.49585e-06
  19  0.758896
  20  0.0909811
Done.

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

Extracting fit parameters...

4FGL J0650.2-1636
   Spectrum: PowerLaw
251    Prefactor:  5.916e+00  1.669e+01  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:  9.264e-01  9.098e-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.301e+00  7.589e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/913000/likelihoodResults_559180801_559440001_4FGL_J0650.2-1636_daily_bin1234.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) = 5207.90634426
delta logL = 0.6459181903

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5207.89741425
delta logL = 0.654848205935

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0174       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2758       1.0000          .0000       10.000    
     3 'Normalizat'    1.3698       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92295       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=   5207.897     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      221 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 14.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0150        9.9722       -.63484E-05   -.60839E-03
   2  Index         1.2757        .82649       -.43078E-04    .94213E-04
   3  Normalizat    1.3698        .64250       -.70339E-07    .41832E-04
   4  Prefactor     .92295        .83910E-01    .40082E-06    .53603E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.01502
  Index      = 1.27572
  Normalizat = 1.36983
  Prefactor  = 0.922946
 **********
 **   18 **HESSE 
 **********

 FCN=   5207.897     FROM HESSE     STATUS=OK            29 CALLS      250 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0150        9.2333        .17952E-03   -1.5260    
   2  Index         1.2757        .76593        .94703E-02   -.84032    
   3  Normalizat    1.3698        .67361        .82895E-03   -.81505    
   4  Prefactor     .92295        .88808E-01    .12743E-03   -.95344    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.08715e-10
Minuit parameter uncertainties:
  1  9.2359
  2  0.772825
  3  0.67803
  4  0.0888219
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/913000': 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) = 5207.89741422
delta logL = 0.654848236318

Extracting fit parameters...

4FGL J0650.2-1636
   Spectrum: PowerLaw
251    Prefactor:  5.015e+00  9.236e+00  1.000e-04  1.000e+04 ( 1.000e-12)
252        Index:  1.276e+00  7.728e-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:  9.229e-01  8.882e-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.370e+00  6.780e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.63
Ra Dec: 102.572 -16.601
Photon Index (Free Index): 1.28 +/- 0.77
Photon Flux (Free Index): 2.86e-08 +/- 5.06e-08
Energy Flux (Free Index): 1.89e-04 +/- 3.17e-04

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/913000/cmap_HighResolution_559180801_559440001_4FGL_J0650.2-1636_daily_bin1234.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.51e-02', comment='SUCCESS', energy_flux2='1.89e-04', dlogl='6.55e-01', photon_flux2='2.86e-08', job_status='DONE', time_completed='2021-08-26 07:56:14.522889', photon_index_error2='0.77', photon_index2='1.28', ts='0.32', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='7.05e-07', energy_flux_error2='3.17e-04', EG='1.30', time_epoch_completed='1629989774.52', return_code='0', job_id='913000', GAL2='0.92', EG2='1.37', return_code2='0', photon_flux_error2='5.06e-08', ts2='1.63', photon_index='2.59' WHERE bin_id='1234' AND source_name='4FGL J0650.2-1636' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 07:56:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 913000: <4FGL_J0650.2-1636_daily_bin1234> in cluster <slac> Done

Job <4FGL_J0650.2-1636_daily_bin1234> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Aug 26 07:40:40 2021
Job was executed on host(s) <bullet0030>, 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:56:15 2021
Results reported at Thu Aug 26 07:56:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0650.2-1636_daily_bin1234 102.572 -16.6012 559180801 559440001 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 :                                   573.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             267.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            935 sec.

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

