/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 112 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_J0659.6-2742_daily_bin1234
RA = 104.907, Dec = -27.7013
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='984502', job_status='RUN', time_executed='2021-08-26 11:28:17.988048', time_epoch_executed='1630002497.99' WHERE source_name='4FGL J0659.6-2742' and cadence='daily' and bin_id='1234'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/984502

Creating custom pfile directory:
/scratch/kocevski/984502/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/984502/ft1_4FGL_J0659.6-2742_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/984502/ft2_4FGL_J0659.6-2742_daily_bin1234.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/984502/ft1_4FGL_J0659.6-2742_daily_bin1234.fits outfile=/scratch/kocevski/984502/ft1_filteredMKT_4FGL_J0659.6-2742_daily_bin1234.fits ra=104.907 dec=-27.7013 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 7.01
user 3.32
sys 3.59

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/984502/ft2_4FGL_J0659.6-2742_daily_bin1234.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/984502/ft2_4FGL_J0659.6-2742_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/984502/ft1_filteredMKT_4FGL_J0659.6-2742_daily_bin1234.fits evtable="EVENTS" outfile="/scratch/kocevski/984502/ft1_filtered_4FGL_J0659.6-2742_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 3.96
user 0.32
sys 3.58

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/984502/ft1_filtered_4FGL_J0659.6-2742_daily_bin1234.fits" evtable="EVENTS" scfile=/scratch/kocevski/984502/ft2_4FGL_J0659.6-2742_daily_bin1234.fits sctable="SC_DATA" outfile=/scratch/kocevski/984502/ltcube_559180801_559440001_4FGL_J0659.6-2742_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/984502/ft2_4FGL_J0659.6-2742_daily_bin1234.fits
.....................!
real 15.56
user 11.29
sys 4.13

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/984502/ft1_filtered_4FGL_J0659.6-2742_daily_bin1234.fits evtable="EVENTS" scfile=/scratch/kocevski/984502/ft2_4FGL_J0659.6-2742_daily_bin1234.fits sctable="SC_DATA" expcube=/scratch/kocevski/984502/ltcube_559180801_559440001_4FGL_J0659.6-2742_daily_bin1234.fits outfile=/scratch/kocevski/984502/expmap_559180801_559440001_4FGL_J0659.6-2742_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/984502/ltcube_559180801_559440001_4FGL_J0659.6-2742_daily_bin1234.fits
.....................!
real 195.41
user 185.32
sys 8.78

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
Added 163 point sources and 0 extended sources

Setting source of interest to:
4FGL J0659.6-2742 @ 104.907 -27.7013

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/984502/ft1_filtered_4FGL_J0659.6-2742_daily_bin1234.fits scfile=/scratch/kocevski/984502/ft2_4FGL_J0659.6-2742_daily_bin1234.fits outfile=/scratch/kocevski/984502/cmap_559180801_559440001_4FGL_J0659.6-2742_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=104.907 yref=-27.7013 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 3.88
user 0.34
sys 3.51

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/984502/ft1_filtered_4FGL_J0659.6-2742_daily_bin1234.fits scfile=/scratch/kocevski/984502/ft2_4FGL_J0659.6-2742_daily_bin1234.fits outfile=/scratch/kocevski/984502/cmap_HighResolution_559180801_559440001_4FGL_J0659.6-2742_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=104.907 yref=-27.7013 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 3.87
user 0.40
sys 3.43

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/984502/ft1_filtered_4FGL_J0659.6-2742_daily_bin1234.fits evtable="EVENTS" scfile=/scratch/kocevski/984502/ft2_4FGL_J0659.6-2742_daily_bin1234.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/984502/Model_4FGL_J0659.6-2742_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
Working on...
/scratch/kocevski/984502/ft1_filtered_4FGL_J0659.6-2742_daily_bin1234.fits.........................!
real 31.68
user 25.65
sys 5.61

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/984502/ft1_filtered_4FGL_J0659.6-2742_daily_bin1234.fits', '/scratch/kocevski/984502/ft2_4FGL_J0659.6-2742_daily_bin1234.fits', expMap='/scratch/kocevski/984502/expmap_559180801_559440001_4FGL_J0659.6-2742_daily_bin1234.fits', expCube='/scratch/kocevski/984502/ltcube_559180801_559440001_4FGL_J0659.6-2742_daily_bin1234.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/984502/Model_4FGL_J0659.6-2742_daily_bin1234.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0659.6-2742'

4FGL J0659.6-2742
   Spectrum: LogParabola
279         norm:  9.372e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
280        alpha:  2.357e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
281         beta:  3.057e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  9.312e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/984502/ft1_filtered_4FGL_J0659.6-2742_daily_bin1234.fits
Spacecraft file(s): /scratch/kocevski/984502/ft2_4FGL_J0659.6-2742_daily_bin1234.fits
Exposure map: /scratch/kocevski/984502/expmap_559180801_559440001_4FGL_J0659.6-2742_daily_bin1234.fits
Exposure cube: /scratch/kocevski/984502/ltcube_559180801_559440001_4FGL_J0659.6-2742_daily_bin1234.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/984502/Model_4FGL_J0659.6-2742_daily_bin1234.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 869.646213026

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 867.686485544

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    553.99       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .55774E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .92142E-01   1.0000         .10000E-03   10000.    
     4 'norm      '    .10699E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10829E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .96055E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    2.1692       1.0000         .10000E-03   10000.    
     9 'Prefactor '    931.45       1.0000         .10000E-03   10000.    
    10 'norm      '    11.619       1.0000         .10000E-03   10000.    
    11 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .12082E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    30.401       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.0473       1.0000         .10000E-03   10000.    
    15 'norm      '    32.657       1.0000         .10000E-03   10000.    
    16 'norm      '    1.2484       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .16104E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.502       1.0000         .10000E-03   10000.    
    19 'norm      '    .99535       1.0000         .10000E-03   10000.    
    20 'norm      '    .13484E-01   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    8.7409       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.0787       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.8299       1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.9760       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .30718       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .92097       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   867.6706     FROM MIGRAD    STATUS=CONVERGED    177 CALLS      671 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     554.53        3.4028        .87779E-07    .48563E-02
   2  Prefactor     .10001E-03    311.65        .14537E-04** at limit **
   3  Prefactor     .10959E-03    488.85        .10693E-04** at limit **
   4  norm          .10000E-03    40.235        .37777E-06** at limit **
   5  Prefactor     .10000E-03    33.059        .18892E-05** at limit **
   6  Prefactor     .10000E-03    40.449        .91326E-05** at limit **
   7  Prefactor     .10261E-03    375.36        .78755E-05** at limit **
   8  norm          .15475E-03    936.41        .60434E-04** at limit **
   9  Prefactor     933.40        12.544        .34384E-06   -.72428E-01
  10  norm          11.594        17.394        .30071E-05   -.25298E-03
  11  norm          .10000E-03    5.1016        .23800E-06** at limit **
  12  norm          .10000E-03    43.484       -.36679E-05** at limit **
  13  Prefactor     30.260        4.9137       -.16021E-06   -.35179E-02
  14  Prefactor     1.0473        1.2417         .0000         .0000    
  15  norm          .37565E-03    1169.3       -.49528E-04** at limit **
  16  norm          .16256E-01    77.477        .94271E-05    .19751E-02
  17  Prefactor     .23241E-02    5.5318        .18700E-05** at limit **
  18  Prefactor     20.803        16.357        .24067E-05   -.58745E-03
  19  norm          .15219E-03    1184.6        .34060E-04** at limit **
  20  norm          .10109E-03    16.774        .39511E-05** at limit **
  21  norm          .10000E-03    7.7560        .56366E-06** at limit **
  22  norm          8.7409        1.0016         .0000         .0000    
  23  Prefactor     4.0787        1.0077         .0000         .0000    
  24  Prefactor     1.8299        1.0433         .0000         .0000    
  25  Prefactor     6.9760        1.0026         .0000         .0000    
  26  Normalizat    .31791        1.2805        .33621E-04    .32960E-05
  27  Prefactor     .92129        .21963       -.25867E-05    .25761E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 554.525
  Prefactor  = 0.000100008
  Prefactor  = 0.000109586
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000102606
  norm       = 0.000154749
  Prefactor  = 933.398
  norm       = 11.594
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 30.2599
  Prefactor  = 1.04735
  norm       = 0.000375648
  norm       = 0.0162555
  Prefactor  = 0.00232414
  Prefactor  = 20.8027
  norm       = 0.000152193
  norm       = 0.000101087
  norm       = 0.0001
  norm       = 8.74095
  Prefactor  = 4.07871
  Prefactor  = 1.82986
  Prefactor  = 6.97605
  Normalizat = 0.317913
  Prefactor  = 0.921289
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   867.6706     FROM HESSE     STATUS=FAILED        61 CALLS      732 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     554.53        410.04        .43715E-03   -1.0954    
   2  Prefactor     .10001E-03    313.81        .92982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10959E-03    495.86        .94737E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    40.038        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    32.970        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    40.346        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10261E-03    378.43        .94924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .15475E-03    926.32        .69902E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     933.40        1541.6        .34407E-03   -.94984    
  10  norm          11.594        16.666        .29381E-02   -1.5027    
  11  norm          .10000E-03    5.0891        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    43.429        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     30.260        39.478        .18167E-02   -1.4607    
  14  Prefactor     587.24        585.82         .0000       -1.5503    
  15  norm          .37565E-03    .76823E-02   -.49528E-04   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .16256E-01    .25059        .94271E-05   -1.5733    
  17  Prefactor     .23241E-02    .26046        .18700E-05   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     20.803        1.0076        .24067E-05   -1.4795    
  19  norm          .15219E-03    .43225        .34060E-04   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10109E-03    .20658        .39511E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .20571        .56366E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          8.7409        1.0016         .0000       -1.5117    
  23  Prefactor     4.0787        1.0077         .0000       -1.5304    
  24  Prefactor     1.8299        1.0433         .0000       -1.5437    
  25  Prefactor     6.9760        1.0026         .0000       -1.5180    
  26  Normalizat    .31791        .62061        .33621E-04   -1.2178    
  27  Prefactor     .92129        1.2650       -.25867E-05   -.95401    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 8.86871e-10
Minuit parameter uncertainties:
  1  412.262
  2  0.00314389
  3  0.139053
  4  0.00062639
  5  0.000112196
  6  5.33766e-05
  7  0.0632076
  8  0.457661
  9  1624.72
  10  16.6727
  11  5.27187e-07
  12  0.000467413
  13  39.5116
  14  1.24178
  15  0.00291041
  16  0.127255
  17  0.0481371
  18  1.0076
  19  0.00949966
  20  0.000947792
  21  1.23465e-07
  22  1.00164
  23  1.00772
  24  1.04329
  25  1.00259
  26  0.634813
  27  1.30929
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 867.670603607

Extracting fit parameters...

4FGL J0659.6-2742
   Spectrum: LogParabola
279         norm:  1.011e-04  9.478e-04  1.000e-04  1.000e+04 ( 1.000e-13)
280        alpha:  2.357e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
281         beta:  3.057e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  9.312e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
550    Prefactor:  9.213e-01  1.309e+00  0.000e+00  1.000e+01 ( 1.000e+00)
551        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
552        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
549   Normalization:  3.179e-01  6.348e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 104.907 -27.701
Photon Flux Upper Limit: 1.71e-06 ph cm-2 s-1
Energy Flux Upper Limit: 7.00e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/984502/likelihoodResults_559180801_559440001_4FGL_J0659.6-2742_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) = 867.670611475
delta logL = -7.86861312463e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 867.670611475
delta logL = -7.86815985521e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96356E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3569       1.0000          .0000       5.0000    
     3 'Normalizat'    .31791       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92129       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   867.6706     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      207 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10003E-03    480.90        .90713E-02** at limit **
   2  alpha         2.3647        3.5193        .41237       -.65666E-07
   3  Normalizat    .31791        1.1098        .31128        .41120E-05
   4  Prefactor     .92129        .23480        .31951E-01   -.91668E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100025
  alpha      = 2.36473
  Normalizat = 0.317913
  Prefactor  = 0.921288
 **********
 **   18 **HESSE 
 **********

 FCN=   867.6706     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10003E-03    480.77        .18143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3647        3.5192        .16495       -.54134E-01
   3  Normalizat    .31791        .96714        .13355E-01   -1.2178    
   4  Prefactor     .92129        .19518        .14120E-03   -.95401    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.66477e-11
Minuit parameter uncertainties:
  1  0.00705651
  2  2.49634
  3  1.02656
  4  0.195331
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/984502': 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) = 867.670603606
delta logL = 1.07161213236e-09

Extracting fit parameters...

4FGL J0659.6-2742
   Spectrum: LogParabola
279         norm:  1.000e-04  7.057e-03  1.000e-04  1.000e+04 ( 1.000e-13)
280        alpha:  2.365e+00  2.496e+00  0.000e+00  5.000e+00 ( 1.000e+00)
281         beta:  3.057e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  9.312e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
550    Prefactor:  9.213e-01  1.953e-01  0.000e+00  1.000e+01 ( 1.000e+00)
551        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
552        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
549   Normalization:  3.179e-01  1.027e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 104.907 -27.701

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/984502/cmap_HighResolution_559180801_559440001_4FGL_J0659.6-2742_daily_bin1234.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.00e-04', job_status='DONE', photon_flux_upper_limit='1.71e-06', time_completed='2021-08-26 11:34:48.181560', job_id='984502', GAL2='0.92', fit_tolerance='1e-08', EG2='0.32', EG='0.32', time_epoch_completed='1630002888.18', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.92', dlogl='1.07e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.36' WHERE bin_id='1234' AND source_name='4FGL J0659.6-2742' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 11:34:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 984502: <4FGL_J0659.6-2742_daily_bin1234> in cluster <slac> Done

Job <4FGL_J0659.6-2742_daily_bin1234> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Aug 26 11:25:18 2021
Job was executed on host(s) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 11:25:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 26 11:25:19 2021
Terminated at Thu Aug 26 11:34:49 2021
Results reported at Thu Aug 26 11:34:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0659.6-2742_daily_bin1234 104.907 -27.7013 559180801 559440001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0659.6-2742 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   441.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             338.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   569 sec.
    Turnaround time :                            571 sec.

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

