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


Performing analysis on: 4FGL_J1959.1-4247_daily_bin1081
RA = 299.796, Dec = -42.7852
tmin = 519523201, tmax = 519782401
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='467832', job_status='RUN', time_executed='2021-09-24 03:19:25.686471', time_epoch_executed='1632478765.69' WHERE source_name='4FGL J1959.1-4247' and cadence='daily' and bin_id='1081'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/467832

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

Retrieving the FT1 file...

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

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

Retrieving 37 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/467832/ft1_4FGL_J1959.1-4247_daily_bin1081.fits


Retrieving the FT1 file...

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

Retrieving 37 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/467832/ft2_4FGL_J1959.1-4247_daily_bin1081.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/467832/ft1_4FGL_J1959.1-4247_daily_bin1081.fits outfile=/scratch/kocevski/467832/ft1_filteredMKT_4FGL_J1959.1-4247_daily_bin1081.fits ra=299.796 dec=-42.7852 rad=12.0 tmin=519523201.0 tmax=519782401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 2.93
user 2.72
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/467832/ft1_filtered_4FGL_J1959.1-4247_daily_bin1081.fits" evtable="EVENTS" scfile=/scratch/kocevski/467832/ft2_4FGL_J1959.1-4247_daily_bin1081.fits sctable="SC_DATA" outfile=/scratch/kocevski/467832/ltcube_519523201_519782401_4FGL_J1959.1-4247_daily_bin1081.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/467832/ft2_4FGL_J1959.1-4247_daily_bin1081.fits
.....................!
real 10.10
user 9.74
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/467832/ft1_filtered_4FGL_J1959.1-4247_daily_bin1081.fits evtable="EVENTS" scfile=/scratch/kocevski/467832/ft2_4FGL_J1959.1-4247_daily_bin1081.fits sctable="SC_DATA" expcube=/scratch/kocevski/467832/ltcube_519523201_519782401_4FGL_J1959.1-4247_daily_bin1081.fits outfile=/scratch/kocevski/467832/expmap_519523201_519782401_4FGL_J1959.1-4247_daily_bin1081.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/467832/ltcube_519523201_519782401_4FGL_J1959.1-4247_daily_bin1081.fits
.....................!
real 190.55
user 185.53
sys 4.65

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/467832/ft1_filtered_4FGL_J1959.1-4247_daily_bin1081.fits scfile=/scratch/kocevski/467832/ft2_4FGL_J1959.1-4247_daily_bin1081.fits outfile=/scratch/kocevski/467832/cmap_519523201_519782401_4FGL_J1959.1-4247_daily_bin1081.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/467832/ft1_filtered_4FGL_J1959.1-4247_daily_bin1081.fits scfile=/scratch/kocevski/467832/ft2_4FGL_J1959.1-4247_daily_bin1081.fits outfile=/scratch/kocevski/467832/cmap_HighResolution_519523201_519782401_4FGL_J1959.1-4247_daily_bin1081.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.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/467832/ft1_filtered_4FGL_J1959.1-4247_daily_bin1081.fits evtable="EVENTS" scfile=/scratch/kocevski/467832/ft2_4FGL_J1959.1-4247_daily_bin1081.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/467832/Model_4FGL_J1959.1-4247_daily_bin1081.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/467832/ft1_filtered_4FGL_J1959.1-4247_daily_bin1081.fits.....................!
real 58.26
user 56.91
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/467832/ft1_filtered_4FGL_J1959.1-4247_daily_bin1081.fits', '/scratch/kocevski/467832/ft2_4FGL_J1959.1-4247_daily_bin1081.fits', expMap='/scratch/kocevski/467832/expmap_519523201_519782401_4FGL_J1959.1-4247_daily_bin1081.fits', expCube='/scratch/kocevski/467832/ltcube_519523201_519782401_4FGL_J1959.1-4247_daily_bin1081.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/467832/Model_4FGL_J1959.1-4247_daily_bin1081.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/467832/ft1_filtered_4FGL_J1959.1-4247_daily_bin1081.fits
Spacecraft file(s): /scratch/kocevski/467832/ft2_4FGL_J1959.1-4247_daily_bin1081.fits
Exposure map: /scratch/kocevski/467832/expmap_519523201_519782401_4FGL_J1959.1-4247_daily_bin1081.fits
Exposure cube: /scratch/kocevski/467832/ltcube_519523201_519782401_4FGL_J1959.1-4247_daily_bin1081.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/467832/Model_4FGL_J1959.1-4247_daily_bin1081.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) = 6465.30012693

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .15336E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    .10187E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    103.84       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.8045       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.1714       1.0000         .10000E-03   10000.    
     7 'norm      '    6.7172       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.0433       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.6453       1.0000         .10000E-03   10000.    
    13 'Prefactor '    36.650       1.0000         .10000E-03   10000.    
    14 'norm      '    6.9596       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.977       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .96265       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .96610       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1146       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=   6465.235     FROM MIGRAD    STATUS=CONVERGED    457 CALLS     2287 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    7.2132       -.24194E-05** at limit **
   2  norm          .10000E-03    2.0193        .26313E-06** at limit **
   3  Prefactor     103.92        107.45        .73110E-04    .29958E-04
   4  Prefactor     2.8040        11.131        .15567E-06   -.19417E-03
   5  Prefactor     .10000E-03    12.957        .24588E-06** at limit **
   6  Prefactor     7.1729        14.253        .22821E-07   -.77111E-04
   7  norm          6.7188        25.256        .13294E-05   -.23816E-04
   8  Prefactor     .10000E-03    3.3620       -.38686E-07** at limit **
   9  norm          1.0432        .95656        .39299E-07   -.35177E-03
  10  norm          .10000E-03    3.1244       -.94024E-08** at limit **
  11  norm          .10000E-03    14.720       -.41496E-07** at limit **
  12  norm          2.6453        2.2843        .81642E-07   -.31736E-03
  13  Prefactor     36.650        61.527        .12925E-05   -.10191E-04
  14  norm          6.9593        4.9117        .18848E-05   -.90443E-04
  15  norm          .10000E-03    3.5866       -.46163E-07** at limit **
  16  norm          .10000E-03    9.1476       -.67991E-07** at limit **
  17  Prefactor     10.977        33.458        .85382E-06   -.15307E-04
  18  Prefactor     .10000E-03    105.71        .15824E-05** at limit **
  19  norm          .96358        1.8448       -.13258E-06   -.10096E-02
  20  Normalizat    .96622        .29954        .23602E-06   -.80040E-04
  21  Prefactor     1.1146        .11153       -.26423E-05    .64340E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100017
  norm       = 0.0001
  Prefactor  = 103.917
  Prefactor  = 2.80402
  Prefactor  = 0.0001
  Prefactor  = 7.17287
  norm       = 6.7188
  Prefactor  = 0.0001
  norm       = 1.04325
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.64525
  Prefactor  = 36.6504
  norm       = 6.95926
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 10.9768
  Prefactor  = 0.0001
  norm       = 0.963585
  Normalizat = 0.966219
  Prefactor  = 1.11459
 **********
 **   18 **HESSE 
 **********

 FCN=   6465.235     FROM HESSE     STATUS=OK           323 CALLS     2610 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    61.255        .41360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.6448        .22150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     103.92        107.26        .19730E-03   -1.3666    
   4  Prefactor     2.8040        11.081        .24292E-03   -1.5373    
   5  Prefactor     .10000E-03    12.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.1729        14.206        .14979E-03   -1.5172    
   7  norm          6.7188        25.263        .15482E-03   -1.5189    
   8  Prefactor     .10000E-03    3.3834        .14395E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.0432        .94621        .72574E-04   -1.5504    
  10  norm          .10000E-03    3.1291        .13880E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    14.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.6453        2.2744        .10903E-03   -1.5383    
  13  Prefactor     36.650        61.479        .66201E-04   -1.4496    
  14  norm          6.9593        4.9082        .14417E-03   -1.5180    
  15  norm          .10000E-03    3.5904        .14872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    9.1493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.977        33.446        .12092E-03   -1.5045    
  18  Prefactor     .10000E-03    105.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .96358        1.5605        .14457E-02   -1.5512    
  20  Normalizat    .96622        .33192        .44428E-03   -.94171    
  21  Prefactor     1.1146        .12426        .15820E-03   -.89002    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76458e-09
Minuit parameter uncertainties:
  1  0.00206609
  2  6.13958e-05
  3  107.461
  4  11.0895
  5  1.29322e-05
  6  14.2125
  7  25.303
  8  3.84989e-06
  9  0.946222
  10  3.38972e-06
  11  1.80601e-06
  12  2.27446
  13  61.586
  14  4.9085
  15  2.86758e-06
  16  2.46793e-06
  17  33.5028
  18  0.000124826
  19  1.56059
  20  0.332625
  21  0.124294
Done.

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

Extracting fit parameters...

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  1.000e-04  3.390e-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.115e+00  1.243e-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.662e-01  3.326e-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.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.50e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/467832/likelihoodResults_519523201_519782401_4FGL_J1959.1-4247_daily_bin1081.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) = 6465.2361411
delta logL = -0.00151435407952

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6465.23462684
delta logL = -9.29130692384e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10089E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2608       1.0000          .0000       5.0000    
     3 'Normalizat'    .96622       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1146       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=   6465.235     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      228 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    56.370        .13925E-01** at limit **
   2  alpha         1.8762        3.2121        .50000       -.34515E-07
   3  Normalizat    .96623        .30873E-01    .44428E-03    .39694E-03
   4  Prefactor     1.1146        .11807E-01    .15820E-03    .11342E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.87624
  Normalizat = 0.966231
  Prefactor  = 1.11459
 **********
 **   18 **HESSE 
 **********

 FCN=   6465.235     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      255 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    743.22        .14407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8762        2.6007        .20000       -.25217    
   3  Normalizat    .96623        .21004        .17771E-04   -.94170    
   4  Prefactor     1.1146        .80390E-01    .31639E-04   -.89002    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.12171e-09
Minuit parameter uncertainties:
  1  0.000115397
  2  3657.27
  3  0.21022
  4  0.0803989
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/467832': 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) = 6465.23462558
delta logL = 1.17072977446e-06

Extracting fit parameters...

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  1.000e-04  1.154e-04  1.000e-04  1.000e+04 ( 1.000e-12)
376        alpha:  1.876e+00  3.657e+03  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.115e+00  8.040e-02  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.662e-01  2.102e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/467832/cmap_HighResolution_519523201_519782401_4FGL_J1959.1-4247_daily_bin1081.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.50e-05', job_status='DONE', photon_flux_upper_limit='6.94e-08', time_completed='2021-09-24 03:30:32.508885', job_id='467832', GAL2='1.11', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1632479432.51', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='1.17e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='1081' AND source_name='4FGL J1959.1-4247' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 03:30:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 467832: <4FGL_J1959.1-4247_daily_bin1081> in cluster <slac> Done

Job <4FGL_J1959.1-4247_daily_bin1081> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 24 03:17:20 2021
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 24 03:17:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 24 03:17:23 2021
Terminated at Fri Sep 24 03:30:33 2021
Results reported at Fri Sep 24 03:30:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1959.1-4247_daily_bin1081 299.796 -42.7852 519523201 519782401 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 :                                   665.55 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             298.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   789 sec.
    Turnaround time :                            793 sec.

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

