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


Performing analysis on: 4FGL_J1959.1-4247_daily_bin1642
RA = 299.796, Dec = -42.7852
tmin = 664934401, tmax = 665193601
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='444712', job_status='RUN', time_executed='2022-01-30 00:35:51.874372', time_epoch_executed='1643531751.87' WHERE source_name='4FGL J1959.1-4247' and cadence='daily' and bin_id='1642'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/444712

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/444712/ft1_4FGL_J1959.1-4247_daily_bin1642.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/444712/ft2_4FGL_J1959.1-4247_daily_bin1642.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/444712/ft1_4FGL_J1959.1-4247_daily_bin1642.fits outfile=/scratch/kocevski/444712/ft1_filteredMKT_4FGL_J1959.1-4247_daily_bin1642.fits ra=299.796 dec=-42.7852 rad=12.0 tmin=664934401.0 tmax=665193601.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.70
user 3.47
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/444712/ft2_4FGL_J1959.1-4247_daily_bin1642.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/444712/ft2_4FGL_J1959.1-4247_daily_bin1642.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/444712/ft1_filteredMKT_4FGL_J1959.1-4247_daily_bin1642.fits evtable="EVENTS" outfile="/scratch/kocevski/444712/ft1_filtered_4FGL_J1959.1-4247_daily_bin1642.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.59
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/444712/ft1_filtered_4FGL_J1959.1-4247_daily_bin1642.fits" evtable="EVENTS" scfile=/scratch/kocevski/444712/ft2_4FGL_J1959.1-4247_daily_bin1642.fits sctable="SC_DATA" outfile=/scratch/kocevski/444712/ltcube_664934401_665193601_4FGL_J1959.1-4247_daily_bin1642.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/444712/ft2_4FGL_J1959.1-4247_daily_bin1642.fits
.....................!
real 12.29
user 11.91
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/444712/ft1_filtered_4FGL_J1959.1-4247_daily_bin1642.fits evtable="EVENTS" scfile=/scratch/kocevski/444712/ft2_4FGL_J1959.1-4247_daily_bin1642.fits sctable="SC_DATA" expcube=/scratch/kocevski/444712/ltcube_664934401_665193601_4FGL_J1959.1-4247_daily_bin1642.fits outfile=/scratch/kocevski/444712/expmap_664934401_665193601_4FGL_J1959.1-4247_daily_bin1642.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/444712/ltcube_664934401_665193601_4FGL_J1959.1-4247_daily_bin1642.fits
.....................!
real 192.27
user 187.35
sys 4.57

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

Setting source of interest to:
4FGL J1959.1-4247 @ 299.796 -42.7852

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/444712/ft1_filtered_4FGL_J1959.1-4247_daily_bin1642.fits scfile=/scratch/kocevski/444712/ft2_4FGL_J1959.1-4247_daily_bin1642.fits outfile=/scratch/kocevski/444712/cmap_664934401_665193601_4FGL_J1959.1-4247_daily_bin1642.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=299.796 yref=-42.7852 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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/444712/ft1_filtered_4FGL_J1959.1-4247_daily_bin1642.fits scfile=/scratch/kocevski/444712/ft2_4FGL_J1959.1-4247_daily_bin1642.fits outfile=/scratch/kocevski/444712/cmap_HighResolution_664934401_665193601_4FGL_J1959.1-4247_daily_bin1642.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=299.796 yref=-42.7852 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.54
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/444712/ft1_filtered_4FGL_J1959.1-4247_daily_bin1642.fits evtable="EVENTS" scfile=/scratch/kocevski/444712/ft2_4FGL_J1959.1-4247_daily_bin1642.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/444712/Model_4FGL_J1959.1-4247_daily_bin1642.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/444712/ft1_filtered_4FGL_J1959.1-4247_daily_bin1642.fits....................!
real 73.70
user 72.40
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/444712/ft1_filtered_4FGL_J1959.1-4247_daily_bin1642.fits', '/scratch/kocevski/444712/ft2_4FGL_J1959.1-4247_daily_bin1642.fits', expMap='/scratch/kocevski/444712/expmap_664934401_665193601_4FGL_J1959.1-4247_daily_bin1642.fits', expCube='/scratch/kocevski/444712/ltcube_664934401_665193601_4FGL_J1959.1-4247_daily_bin1642.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/444712/Model_4FGL_J1959.1-4247_daily_bin1642.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1959.1-4247'

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  3.377e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
376        alpha:  2.270e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
377         beta:  1.642e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
378           Eb:  6.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/444712/ft1_filtered_4FGL_J1959.1-4247_daily_bin1642.fits
Spacecraft file(s): /scratch/kocevski/444712/ft2_4FGL_J1959.1-4247_daily_bin1642.fits
Exposure map: /scratch/kocevski/444712/expmap_664934401_665193601_4FGL_J1959.1-4247_daily_bin1642.fits
Exposure cube: /scratch/kocevski/444712/ltcube_664934401_665193601_4FGL_J1959.1-4247_daily_bin1642.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/444712/Model_4FGL_J1959.1-4247_daily_bin1642.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) = 8154.71885303

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.0776       1.0000         .10000E-03   10000.    
     3 'Prefactor '    161.71       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .16706E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.145       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.5442       1.0000         .10000E-03   10000.    
     9 'norm      '    17.588       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    18.815       1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .14257E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    47.228       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    199.99       1.0000         .10000E-03   10000.    
    19 'norm      '    .46703E-02   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .92918       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0821       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6700E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8154.710     FROM MIGRAD    STATUS=CONVERGED    457 CALLS     2248 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.1890        .53857E-07** at limit **
   2  norm          4.0777        2.6708        .75151E-08   -.10434E-04
   3  Prefactor     161.70        112.94       -.45389E-05   -.33799E-03
   4  Prefactor     .10000E-03    2.9635       -.79550E-07** at limit **
   5  Prefactor     .10001E-03    142.13       -.29579E-05** at limit **
   6  Prefactor     11.145        15.931        .28956E-06   -.45430E-04
   7  norm          .10000E-03    6.7169       -.81925E-07** at limit **
   8  Prefactor     8.5449        7.0891        .17696E-05   -.98207E-03
   9  norm          17.588        2.5017        .83858E-08   -.12316E-03
  10  norm          .10000E-03    2.8478       -.90662E-07** at limit **
  11  norm          18.815        16.669        .80974E-07   -.25872E-04
  12  norm          .10000E-03    .72691       -.23732E-07** at limit **
  13  Prefactor     .10001E-03    56.974       -.29396E-05** at limit **
  14  norm          .10000E-03    2.0172       -.19960E-07** at limit **
  15  norm          .10131E-03    11.913        .32269E-05** at limit **
  16  norm          47.232        30.397        .26006E-06    .80849E-04
  17  Prefactor     .10000E-03    46.159        .50717E-06** at limit **
  18  Prefactor     200.01        112.32        .41861E-05    .32913E-03
  19  norm          .26054E-02    .84429        .65866E-07   -.18204E-03
  20  Normalizat    .92903        .29334       -.17698E-05   -.27102E-03
  21  Prefactor     1.0821        .10643       -.47527E-07   -.79778E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 4.07765
  Prefactor  = 161.697
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 11.1452
  norm       = 0.0001
  Prefactor  = 8.54487
  norm       = 17.5884
  norm       = 0.0001
  norm       = 18.815
  norm       = 0.0001
  Prefactor  = 0.000100008
  norm       = 0.0001
  norm       = 0.00010131
  norm       = 47.2322
  Prefactor  = 0.0001
  Prefactor  = 200.006
  norm       = 0.00260538
  Normalizat = 0.929029
  Prefactor  = 1.08208
 **********
 **   18 **HESSE 
 **********

 FCN=   8154.710     FROM HESSE     STATUS=OK           321 CALLS     2569 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.1920        .13051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.0777        2.6763        .11571E-03   -1.5304    
   3  Prefactor     161.70        117.67        .31712E-04   -1.3158    
   4  Prefactor     .10000E-03    2.9689        .15178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    147.27        .36425E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.145        15.925        .12001E-03   -1.5040    
   7  norm          .10000E-03    6.7178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.5449        8.2326        .68569E-03   -1.5123    
   9  norm          17.588        2.5029        .51409E-04   -1.4869    
  10  norm          .10000E-03    2.8516        .14883E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          18.815        16.669        .92335E-04   -1.4840    
  12  norm          .10000E-03    .74033        .75162E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    57.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.0475        .12522E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10131E-03    88.397        .52126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          47.232        30.381        .58346E-04   -1.4332    
  17  Prefactor     .10000E-03    46.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     200.01        116.78        .14286E-03   -1.2870    
  19  norm          .26054E-02    1.3056        .31138E-01   -1.5698    
  20  Normalizat    .92903        .32460        .50086E-03   -.95447    
  21  Prefactor     1.0821        .12002        .17111E-03   -.90042    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60025e-08
Minuit parameter uncertainties:
  1  7.41549e-06
  2  2.6764
  3  117.846
  4  5.17092e-06
  5  0.00175449
  6  15.9308
  7  1.27247e-05
  8  8.2337
  9  2.50288
  10  8.28759e-06
  11  16.673
  12  3.96925e-07
  13  0.00132694
  14  1.6425e-06
  15  0.0215563
  16  30.3909
  17  0.000117286
  18  116.912
  19  0.11439
  20  0.325287
  21  0.120048
Done.

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

Extracting fit parameters...

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  1.000e-04  8.288e-06  1.000e-04  1.000e+04 ( 1.000e-12)
376        alpha:  2.270e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
377         beta:  1.642e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
378           Eb:  6.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
667    Prefactor:  1.082e+00  1.200e-01  0.000e+00  1.000e+01 ( 1.000e+00)
668        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
669        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
666   Normalization:  9.290e-01  3.253e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 299.796 -42.785
Photon Flux Upper Limit: 6.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.33e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/444712/likelihoodResults_664934401_665193601_4FGL_J1959.1-4247_daily_bin1642.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) = 8154.71169826
delta logL = -0.00165140689387

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8154.7100468
delta logL = 5.05078787683e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8154.710     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      234 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    117.04        .14928E-01** at limit **
   2  alpha         1.9512        3.8188        .16557        .61799E-09
   3  Normalizat    .92903        .47579E-01    .50086E-03    .12007E-04
   4  Prefactor     1.0821        .17554E-01    .17110E-03    .38935E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.95117
  Normalizat = 0.929031
  Prefactor  = 1.08208
 **********
 **   18 **HESSE 
 **********

 FCN=   8154.710     FROM HESSE     STATUS=OK            23 CALLS      257 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.0306        .15313E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9512        3.6731        .66227E-02   -.22133    
   3  Normalizat    .92903        .31705        .20034E-04   -.95447    
   4  Prefactor     1.0821        .11718        .68442E-05   -.90041    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33319e-10
Minuit parameter uncertainties:
  1  6.97105e-05
  2  223.626
  3  0.317689
  4  0.117204
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/444712': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8154.71004585
delta logL = 9.9679982668e-07

Extracting fit parameters...

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  1.000e-04  6.971e-05  1.000e-04  1.000e+04 ( 1.000e-12)
376        alpha:  1.951e+00  2.236e+02  0.000e+00  5.000e+00 ( 1.000e+00)
377         beta:  1.642e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
378           Eb:  6.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
667    Prefactor:  1.082e+00  1.172e-01  0.000e+00  1.000e+01 ( 1.000e+00)
668        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
669        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
666   Normalization:  9.290e-01  3.177e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 299.796 -42.785

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/444712/cmap_HighResolution_664934401_665193601_4FGL_J1959.1-4247_daily_bin1642.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.33e-05', job_status='DONE', photon_flux_upper_limit='6.47e-08', time_completed='2022-01-30 00:48:27.872795', job_id='444712', GAL2='1.08', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1643532507.87', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='9.97e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='1642' AND source_name='4FGL J1959.1-4247' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan 30 00:48:27 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0006>
Subject: Job 444712: <4FGL_J1959.1-4247_daily_bin1642> in cluster <slac> Done

Job <4FGL_J1959.1-4247_daily_bin1642> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Jan 30 00:35:33 2022
Job was executed on host(s) <bullet0006>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan 30 00:35:35 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan 30 00:35:35 2022
Terminated at Sun Jan 30 00:48:28 2022
Results reported at Sun Jan 30 00:48:28 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1959.1-4247_daily_bin1642 299.796 -42.7852 664934401 665193601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1959.1-4247 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   758.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             336.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   773 sec.
    Turnaround time :                            775 sec.

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

