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


Performing analysis on: 4FGL_J1959.1-4247_daily_bin1610
RA = 299.796, Dec = -42.7852
tmin = 656640001, tmax = 656899201
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='453182', job_status='RUN', time_executed='2021-12-08 06:31:52.496630', time_epoch_executed='1638973912.5' WHERE source_name='4FGL J1959.1-4247' and cadence='daily' and bin_id='1610'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/453182

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/453182/ft1_4FGL_J1959.1-4247_daily_bin1610.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/453182/ft2_4FGL_J1959.1-4247_daily_bin1610.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/453182/ft1_4FGL_J1959.1-4247_daily_bin1610.fits outfile=/scratch/kocevski/453182/ft1_filteredMKT_4FGL_J1959.1-4247_daily_bin1610.fits ra=299.796 dec=-42.7852 rad=12.0 tmin=656640001.0 tmax=656899201.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.66
user 3.40
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/453182/ft2_4FGL_J1959.1-4247_daily_bin1610.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/453182/ft1_filteredMKT_4FGL_J1959.1-4247_daily_bin1610.fits evtable="EVENTS" outfile="/scratch/kocevski/453182/ft1_filtered_4FGL_J1959.1-4247_daily_bin1610.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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/453182/ft1_filtered_4FGL_J1959.1-4247_daily_bin1610.fits" evtable="EVENTS" scfile=/scratch/kocevski/453182/ft2_4FGL_J1959.1-4247_daily_bin1610.fits sctable="SC_DATA" outfile=/scratch/kocevski/453182/ltcube_656640001_656899201_4FGL_J1959.1-4247_daily_bin1610.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/453182/ft2_4FGL_J1959.1-4247_daily_bin1610.fits
.....................!
real 12.62
user 12.19
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/453182/ft1_filtered_4FGL_J1959.1-4247_daily_bin1610.fits evtable="EVENTS" scfile=/scratch/kocevski/453182/ft2_4FGL_J1959.1-4247_daily_bin1610.fits sctable="SC_DATA" expcube=/scratch/kocevski/453182/ltcube_656640001_656899201_4FGL_J1959.1-4247_daily_bin1610.fits outfile=/scratch/kocevski/453182/expmap_656640001_656899201_4FGL_J1959.1-4247_daily_bin1610.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/453182/ltcube_656640001_656899201_4FGL_J1959.1-4247_daily_bin1610.fits
.....................!
real 191.96
user 185.45
sys 5.26

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/453182/ft1_filtered_4FGL_J1959.1-4247_daily_bin1610.fits scfile=/scratch/kocevski/453182/ft2_4FGL_J1959.1-4247_daily_bin1610.fits outfile=/scratch/kocevski/453182/cmap_656640001_656899201_4FGL_J1959.1-4247_daily_bin1610.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/453182/ft1_filtered_4FGL_J1959.1-4247_daily_bin1610.fits scfile=/scratch/kocevski/453182/ft2_4FGL_J1959.1-4247_daily_bin1610.fits outfile=/scratch/kocevski/453182/cmap_HighResolution_656640001_656899201_4FGL_J1959.1-4247_daily_bin1610.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/453182/ft1_filtered_4FGL_J1959.1-4247_daily_bin1610.fits evtable="EVENTS" scfile=/scratch/kocevski/453182/ft2_4FGL_J1959.1-4247_daily_bin1610.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/453182/Model_4FGL_J1959.1-4247_daily_bin1610.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/453182/ft1_filtered_4FGL_J1959.1-4247_daily_bin1610.fits.....................!
real 72.11
user 70.41
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10215E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.099       1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.523       1.0000         .10000E-03   10000.    
     7 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.7773       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      '    1.7641       1.0000         .10000E-03   10000.    
    13 'Prefactor '    30.159       1.0000         .10000E-03   10000.    
    14 'norm      '    2.2179       1.0000         .10000E-03   10000.    
    15 'norm      '    10.907       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.4911       1.0000         .10000E-03   10000.    
    19 'norm      '    .10121E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3357       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .91318       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=   8292.059     FROM MIGRAD    STATUS=CONVERGED    448 CALLS     2222 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.3259       -.31940E-07** at limit **
   2  norm          .10000E-03    .79109       -.34948E-07** at limit **
   3  Prefactor     .10000E-03    173.64        .14408E-05** at limit **
   4  Prefactor     .10000E-03    6.1833        .17849E-06** at limit **
   5  Prefactor     23.099        19.435       -.36399E-06    .43985E-05
   6  Prefactor     15.519        13.752        .43018E-05   -.23349E-04
   7  norm          .10000E-03    8.0048        .36573E-06** at limit **
   8  Prefactor     .10000E-03    3.5957       -.40849E-07** at limit **
   9  norm          3.7772        1.3930        .68856E-07   -.93794E-06
  10  norm          .10000E-03    2.9081       -.38531E-07** at limit **
  11  norm          .10000E-03    4.9410       -.84019E-07** at limit **
  12  norm          1.7643        1.5708       -.16596E-06   -.27653E-03
  13  Prefactor     30.125        60.607       -.44665E-04    .70269E-05
  14  norm          2.2179        2.3698       -.70490E-07   -.98864E-04
  15  norm          10.907        12.649       -.12635E-05   -.10610E-02
  16  norm          .10000E-03    7.0441       -.68227E-06** at limit **
  17  Prefactor     .10000E-03    18.844        .12823E-06** at limit **
  18  Prefactor     5.4705        192.84       -.66892E-04    .11767E-05
  19  norm          .10000E-03    .79940       -.28443E-07** at limit **
  20  Normalizat    1.3357        .24325        .47212E-05   -.64757E-04
  21  Prefactor     .91314        .87604E-01   -.10267E-06    .27805E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.0986
  Prefactor  = 15.519
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.77715
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.76426
  Prefactor  = 30.1246
  norm       = 2.21785
  norm       = 10.9071
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.47049
  norm       = 0.0001
  Normalizat = 1.33574
  Prefactor  = 0.913138
 **********
 **   18 **HESSE 
 **********

 FCN=   8292.059     FROM HESSE     STATUS=OK           315 CALLS     2537 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.3307        .13562E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .79565        .79087E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    174.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.2732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     23.099        19.434        .83343E-04   -1.4746    
   6  Prefactor     15.519        13.725        .10166E-03   -1.4920    
   7  norm          .10000E-03    8.0077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.6442        .16858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.7772        1.3910        .62073E-04   -1.5319    
  10  norm          .10000E-03    2.9147        .15164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.9451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.7643        1.5618        .10435E-03   -1.5442    
  13  Prefactor     30.125        60.299        .72957E-04   -1.4610    
  14  norm          2.2179        2.3636        .14090E-03   -1.5410    
  15  norm          10.907        12.764        .60655E-03   -1.5047    
  16  norm          .10000E-03    7.0472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    18.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.4705        194.21        .17147E-03   -1.5240    
  19  norm          .10000E-03    1.3908        .15779E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.3357        .28204        .37564E-03   -.82506    
  21  Prefactor     .91314        .10266        .16477E-03   -.95684    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92106e-09
Minuit parameter uncertainties:
  1  3.95401e-06
  2  3.9509e-06
  3  0.00048044
  4  5.10238e-05
  5  19.4397
  6  13.728
  7  1.52922e-05
  8  6.34709e-06
  9  1.39096
  10  5.79853e-06
  11  4.67974e-06
  12  1.5618
  13  60.4213
  14  2.36368
  15  12.7669
  16  1.01586e-05
  17  0.000103501
  18  65.4197
  19  3.65115e-06
  20  0.282371
  21  0.102678
Done.

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

Extracting fit parameters...

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  1.000e-04  5.799e-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:  9.131e-01  1.027e-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:  1.336e+00  2.824e-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.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.21e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/453182/likelihoodResults_656640001_656899201_4FGL_J1959.1-4247_daily_bin1610.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) = 8292.06034885
delta logL = -0.00163223828349

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8292.0587166
delta logL = 1.07556843432e-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.2737       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3357       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91314       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=   8291.538     FROM MIGRAD    STATUS=CONVERGED    135 CALLS      283 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .32788        1.0621        .12009E-01    .30886E-02
   2  alpha         5.0000        4.6636        .16547    ** at limit **
   3  Normalizat    1.2551        .33871        .37564E-03    .10169E-04
   4  Prefactor     .92999        .10981        .16477E-03   -.37561E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.327884
  alpha      = 5
  Normalizat = 1.25505
  Prefactor  = 0.929995
 **********
 **   18 **HESSE 
 **********

 FCN=   8291.538     FROM HESSE     STATUS=OK            27 CALLS      310 TOTAL
                     EDM=   .72E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .32788        .35842        .55552E-03   -1.5593    
   2  alpha         5.0000        .89809        .66186E-02    7.8540    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.2551        .28431        .15026E-04   -.84918    
   4  Prefactor     .92999        .10371        .32955E-04   -.95101    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.22752e-11
Minuit parameter uncertainties:
  1  0.358419
  2  1.01517e-05
  3  0.284663
  4  0.103727
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/453182': 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) = 8291.53808638
delta logL = 0.520630235531

Extracting fit parameters...

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  3.279e-01  3.584e-01  1.000e-04  1.000e+04 ( 1.000e-12)
376        alpha:  5.000e+00  1.015e-05  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:  9.300e-01  1.037e-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:  1.255e+00  2.847e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.11
Ra Dec: 299.796 -42.785
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 6.60e-08 +/- 7.18e-08
Energy Flux (Free Index): 9.12e-06 +/- 9.95e-06

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/453182/cmap_HighResolution_656640001_656899201_4FGL_J1959.1-4247_daily_bin1610.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.21e-05', comment='SUCCESS', energy_flux2='9.12e-06', dlogl='5.21e-01', photon_flux2='6.60e-08', job_status='DONE', time_completed='2021-12-08 06:44:45.118364', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='6.14e-08', energy_flux_error2='9.95e-06', EG='1.34', time_epoch_completed='1638974685.12', return_code='0', job_id='453182', GAL2='0.93', EG2='1.26', return_code2='0', photon_flux_error2='7.18e-08', ts2='1.11', photon_index='2.27' WHERE bin_id='1610' AND source_name='4FGL J1959.1-4247' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 06:44:45 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 453182: <4FGL_J1959.1-4247_daily_bin1610> in cluster <slac> Done

Job <4FGL_J1959.1-4247_daily_bin1610> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Dec  8 06:30:17 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 06:30:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 06:30:58 2021
Terminated at Wed Dec  8 06:44:45 2021
Results reported at Wed Dec  8 06:44:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1959.1-4247_daily_bin1610 299.796 -42.7852 656640001 656899201 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 :                                   769.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             333.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            868 sec.

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

