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


Performing analysis on: 4FGL_J0650.2-1636_daily_bin1177
RA = 102.572, Dec = -16.6012
tmin = 544406401, tmax = 544665601
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='912919', job_status='RUN', time_executed='2021-08-26 07:42:34.758802', time_epoch_executed='1629988954.76' WHERE source_name='4FGL J0650.2-1636' and cadence='daily' and bin_id='1177'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/912919

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

Retrieving the FT1 file...

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

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

Retrieving 36 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/912919/ft1_4FGL_J0650.2-1636_daily_bin1177.fits


Retrieving the FT1 file...

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

Retrieving 36 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/912919/ft2_4FGL_J0650.2-1636_daily_bin1177.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/912919/ft1_4FGL_J0650.2-1636_daily_bin1177.fits outfile=/scratch/kocevski/912919/ft1_filteredMKT_4FGL_J0650.2-1636_daily_bin1177.fits ra=102.572 dec=-16.6012 rad=12.0 tmin=544406401.0 tmax=544665601.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 8.12
user 7.44
sys 0.64

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/912919/ft2_4FGL_J0650.2-1636_daily_bin1177.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/912919/ft1_filteredMKT_4FGL_J0650.2-1636_daily_bin1177.fits evtable="EVENTS" outfile="/scratch/kocevski/912919/ft1_filtered_4FGL_J0650.2-1636_daily_bin1177.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.84
user 0.31
sys 0.50

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/912919/ft1_filtered_4FGL_J0650.2-1636_daily_bin1177.fits" evtable="EVENTS" scfile=/scratch/kocevski/912919/ft2_4FGL_J0650.2-1636_daily_bin1177.fits sctable="SC_DATA" outfile=/scratch/kocevski/912919/ltcube_544406401_544665601_4FGL_J0650.2-1636_daily_bin1177.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/912919/ft2_4FGL_J0650.2-1636_daily_bin1177.fits
.....................!
real 8.03
user 7.29
sys 0.71

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/912919/ft1_filtered_4FGL_J0650.2-1636_daily_bin1177.fits evtable="EVENTS" scfile=/scratch/kocevski/912919/ft2_4FGL_J0650.2-1636_daily_bin1177.fits sctable="SC_DATA" expcube=/scratch/kocevski/912919/ltcube_544406401_544665601_4FGL_J0650.2-1636_daily_bin1177.fits outfile=/scratch/kocevski/912919/expmap_544406401_544665601_4FGL_J0650.2-1636_daily_bin1177.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/912919/ltcube_544406401_544665601_4FGL_J0650.2-1636_daily_bin1177.fits
.....................!
real 191.83
user 186.50
sys 4.95

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/912919/ft1_filtered_4FGL_J0650.2-1636_daily_bin1177.fits scfile=/scratch/kocevski/912919/ft2_4FGL_J0650.2-1636_daily_bin1177.fits outfile=/scratch/kocevski/912919/cmap_544406401_544665601_4FGL_J0650.2-1636_daily_bin1177.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.80
user 0.35
sys 0.43

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/912919/ft1_filtered_4FGL_J0650.2-1636_daily_bin1177.fits scfile=/scratch/kocevski/912919/ft2_4FGL_J0650.2-1636_daily_bin1177.fits outfile=/scratch/kocevski/912919/cmap_HighResolution_544406401_544665601_4FGL_J0650.2-1636_daily_bin1177.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.87
user 0.35
sys 0.51

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/912919/ft1_filtered_4FGL_J0650.2-1636_daily_bin1177.fits evtable="EVENTS" scfile=/scratch/kocevski/912919/ft2_4FGL_J0650.2-1636_daily_bin1177.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/912919/Model_4FGL_J0650.2-1636_daily_bin1177.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/912919/ft1_filtered_4FGL_J0650.2-1636_daily_bin1177.fits.....................!
real 57.50
user 55.54
sys 1.70

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5042       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .20862E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10068E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    161.17       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .20586E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.2349       1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .27701E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    59.527       1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.838       1.0000         .10000E-03   10000.    
    15 'norm      '    .10107E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10132E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    7.6288       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .78628       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .99820       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=   2890.970     FROM MIGRAD    STATUS=CONVERGED    441 CALLS     2388 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4254        183.93        .45167E-05   -.12827E-04
   2  Prefactor     .10000E-03    27.048       -.65313E-06** at limit **
   3  Prefactor     .10000E-03    599.21       -.38097E-05** at limit **
   4  Prefactor     .10000E-03    21.364       -.91726E-07** at limit **
   5  Prefactor     .10000E-03    42.748        .14485E-06** at limit **
   6  norm          .10000E-03    9.7284        .70401E-06** at limit **
   7  Prefactor     161.25        77.647       -.19534E-05   -.21811E-03
   8  Prefactor     .10000E-03    6.9652        .19897E-06** at limit **
   9  norm          .10000E-03    59.465        .70889E-06** at limit **
  10  norm          1.2394        3.9103       -.11901E-05   -.14770E-02
  11  norm          .10000E-03    10.845        .26495E-06** at limit **
  12  Prefactor     .48392E-03    37.426        .79749E-05** at limit **
  13  norm          59.533        40.919       -.12084E-06   -.10238E-03
  14  Prefactor     21.835        17.903        .18783E-06   -.13413E-03
  15  norm          .10000E-03    125.52        .56620E-06** at limit **
  16  norm          .10000E-03    5.9937        .17750E-07** at limit **
  17  Prefactor     .10000E-03    17.386       -.27646E-08** at limit **
  18  norm          7.6290        5.9867        .98466E-07    .53435E-04
  19  Normalizat    .78736        .79053       -.14622E-04   -.19852E-03
  20  Prefactor     .99811        .11419        .69137E-06   -.48690E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.42544
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 161.248
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.23938
  norm       = 0.0001
  Prefactor  = 0.000483916
  norm       = 59.5326
  Prefactor  = 21.8349
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 7.62905
  Normalizat = 0.787362
  Prefactor  = 0.998107
 **********
 **   18 **HESSE 
 **********

 FCN=   2890.970     FROM HESSE     STATUS=OK           293 CALLS     2681 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4254        186.05        .25823E-03   -1.5396    
   2  Prefactor     .10000E-03    27.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    594.05        .20191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    21.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    42.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    9.7203        .16361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     161.25        76.289        .15883E-03   -1.3161    
   8  Prefactor     .10000E-03    6.9668        .13859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    61.941        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.2394        4.4664        .17295E-03   -1.5485    
  11  norm          .10000E-03    10.845        .17293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .48392E-03    49.611        .59509E-01   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          59.533        40.864        .52001E-04   -1.4163    
  14  Prefactor     21.835        17.848        .85711E-04   -1.4773    
  15  norm          .10000E-03    125.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    6.0326        .12854E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          7.6290        5.9894        .11304E-03   -1.5155    
  19  Normalizat    .78736        .82284        .91732E-03   -1.0054    
  20  Prefactor     .99811        .11380        .13349E-03   -.92793    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.28089e-09
Minuit parameter uncertainties:
  1  42.6222
  2  6.20028e-05
  3  0.00252126
  4  4.33053e-05
  5  0.000130145
  6  1.2939e-05
  7  76.3354
  8  3.32132e-06
  9  5.50403e-05
  10  4.46757
  11  1.04249e-05
  12  0.276246
  13  40.8828
  14  17.8526
  15  0.000573932
  16  1.28261e-05
  17  2.08054e-07
  18  5.98984
  19  0.836394
  20  0.113831
Done.

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

Extracting fit parameters...

4FGL J0650.2-1636
   Spectrum: PowerLaw
251    Prefactor:  2.183e+01  1.785e+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.981e-01  1.138e-01  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.874e-01  8.364e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.12
Ra Dec: 102.572 -16.601
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 5.14e-07 +/- 4.20e-07
Energy Flux (Fixed Index): 1.36e-04 +/- 1.11e-04

TS (Fixed Index): 3.12
Ra Dec: 102.572 -16.601
Photon Flux Upper Limit: 1.25e-06 ph cm-2 s-1
Energy Flux Upper Limit: 9.75e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/912919/likelihoodResults_544406401_544665601_4FGL_J0650.2-1636_daily_bin1177.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) = 2889.66271812
delta logL = 1.30759862871

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2889.60262938
delta logL = 1.36768737272

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .54704       1.0000         .10000E-03   10000.    
     2 'Index     '    4.9402       1.0000          .0000       10.000    
     3 'Normalizat'    .45998       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0279       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=   2889.603     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      283 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .54064        4.7537        .42750E-02    .42403E-03
   2  Index         4.9459        2.6379        .56469E-01    .91521E-04
   3  Normalizat    .46096        .33022        .26116        .25364E-04
   4  Prefactor     1.0278        .54182E-01    .29781E-01   -.49958E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.540637
  Index      = 4.94589
  Normalizat = 0.460965
  Prefactor  = 1.02776
 **********
 **   18 **HESSE 
 **********

 FCN=   2889.603     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      316 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .54064        6.7858        .19023E-04   -1.5561    
   2  Index         4.9459        3.1812        .24213E-02   -.10823E-01
   3  Normalizat    .46096        .63656        .11556E-02   -1.1426    
   4  Prefactor     1.0278        .10565        .13162E-03   -.91810    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.21393e-11
Minuit parameter uncertainties:
  1  3.83094
  2  3.44809
  3  0.646998
  4  0.105674
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/912919': 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) = 2889.60262331
delta logL = 1.36769344179

Extracting fit parameters...

4FGL J0650.2-1636
   Spectrum: PowerLaw
251    Prefactor:  5.406e-01  3.831e+00  1.000e-04  1.000e+04 ( 1.000e-12)
252        Index:  4.946e+00  3.448e+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:  1.028e+00  1.057e-01  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:  4.610e-01  6.470e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.58
Ra Dec: 102.572 -16.601
Photon Index (Free Index): 4.95 +/- 3.45
Photon Flux (Free Index): 1.12e-06 +/- 5.76e-07
Energy Flux (Free Index): 1.50e-04 +/- 9.32e-05

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/912919/cmap_HighResolution_544406401_544665601_4FGL_J0650.2-1636_daily_bin1177.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.75e-02', comment='SUCCESS', photon_flux='5.14e-07', energy_flux2='1.50e-04', photon_flux_error='4.20e-07', dlogl='1.37e+00', energy_flux='1.36e-04', photon_flux2='1.12e-06', job_status='DONE', time_completed='2021-08-26 07:50:45.435640', photon_index_error2='3.45', photon_index2='4.95', ts='3.12', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.25e-06', energy_flux_error2='9.32e-05', EG='0.79', time_epoch_completed='1629989445.44', return_code='0', job_id='912919', GAL2='1.03', EG2='0.46', return_code2='102', energy_flux_error='1.11e-04', photon_flux_error2='5.76e-07', ts2='6.58', photon_index='2.59' WHERE bin_id='1177' AND source_name='4FGL J0650.2-1636' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 07:50:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 912919: <4FGL_J0650.2-1636_daily_bin1177> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0650.2-1636_daily_bin1177 102.572 -16.6012 544406401 544665601 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 :                                   488.06 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             283.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   611 sec.
    Turnaround time :                            613 sec.

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

