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


Performing analysis on: 4FGL_J1959.1-4247_daily_bin1245
RA = 299.796, Dec = -42.7852
tmin = 562032001, tmax = 562291201
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='468069', job_status='RUN', time_executed='2021-09-24 03:18:23.058384', time_epoch_executed='1632478703.06' WHERE source_name='4FGL J1959.1-4247' and cadence='daily' and bin_id='1245'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/468069

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/468069/ft1_4FGL_J1959.1-4247_daily_bin1245.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/468069/ft2_4FGL_J1959.1-4247_daily_bin1245.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/468069/ft1_4FGL_J1959.1-4247_daily_bin1245.fits outfile=/scratch/kocevski/468069/ft1_filteredMKT_4FGL_J1959.1-4247_daily_bin1245.fits ra=299.796 dec=-42.7852 rad=12.0 tmin=562032001.0 tmax=562291201.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.58
user 3.35
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/468069/ft2_4FGL_J1959.1-4247_daily_bin1245.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/468069/ft1_filteredMKT_4FGL_J1959.1-4247_daily_bin1245.fits evtable="EVENTS" outfile="/scratch/kocevski/468069/ft1_filtered_4FGL_J1959.1-4247_daily_bin1245.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.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/468069/ft1_filtered_4FGL_J1959.1-4247_daily_bin1245.fits" evtable="EVENTS" scfile=/scratch/kocevski/468069/ft2_4FGL_J1959.1-4247_daily_bin1245.fits sctable="SC_DATA" outfile=/scratch/kocevski/468069/ltcube_562032001_562291201_4FGL_J1959.1-4247_daily_bin1245.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/468069/ft2_4FGL_J1959.1-4247_daily_bin1245.fits
.....................!
real 12.28
user 11.82
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/468069/ft1_filtered_4FGL_J1959.1-4247_daily_bin1245.fits evtable="EVENTS" scfile=/scratch/kocevski/468069/ft2_4FGL_J1959.1-4247_daily_bin1245.fits sctable="SC_DATA" expcube=/scratch/kocevski/468069/ltcube_562032001_562291201_4FGL_J1959.1-4247_daily_bin1245.fits outfile=/scratch/kocevski/468069/expmap_562032001_562291201_4FGL_J1959.1-4247_daily_bin1245.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/468069/ltcube_562032001_562291201_4FGL_J1959.1-4247_daily_bin1245.fits
.....................!
real 191.07
user 185.45
sys 5.24

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/468069/ft1_filtered_4FGL_J1959.1-4247_daily_bin1245.fits scfile=/scratch/kocevski/468069/ft2_4FGL_J1959.1-4247_daily_bin1245.fits outfile=/scratch/kocevski/468069/cmap_562032001_562291201_4FGL_J1959.1-4247_daily_bin1245.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/468069/ft1_filtered_4FGL_J1959.1-4247_daily_bin1245.fits scfile=/scratch/kocevski/468069/ft2_4FGL_J1959.1-4247_daily_bin1245.fits outfile=/scratch/kocevski/468069/cmap_HighResolution_562032001_562291201_4FGL_J1959.1-4247_daily_bin1245.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/468069/ft1_filtered_4FGL_J1959.1-4247_daily_bin1245.fits evtable="EVENTS" scfile=/scratch/kocevski/468069/ft2_4FGL_J1959.1-4247_daily_bin1245.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/468069/Model_4FGL_J1959.1-4247_daily_bin1245.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/468069/ft1_filtered_4FGL_J1959.1-4247_daily_bin1245.fits.....................!
real 76.52
user 75.06
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9739       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.908       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.8603       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12303E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.8255       1.0000         .10000E-03   10000.    
    10 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.6999       1.0000         .10000E-03   10000.    
    12 'norm      '    3.3011       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .22400E-02   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 '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    10.096       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .67120       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1008       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=   9483.325     FROM MIGRAD    STATUS=CONVERGED    483 CALLS     2255 TOTAL
                     EDM=   .15E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9903        7.2677        .11329E-05    .73040E-04
   2  norm          .10000E-03    .48447       -.38693E-07** at limit **
   3  Prefactor     26.053        58.330       -.52375E-06   -.48433E-05
   4  Prefactor     .10000E-03    1.6362       -.13469E-06** at limit **
   5  Prefactor     .10000E-03    24.800       -.55399E-06** at limit **
   6  Prefactor     8.8854        7.8532        .12793E-06   -.15900E-04
   7  norm          .10000E-03    6.5769       -.45698E-07** at limit **
   8  Prefactor     .10000E-03    2.6190       -.11840E-06** at limit **
   9  norm          2.8274        1.0334       -.36606E-08   -.15535E-03
  10  norm          .10000E-03    2.0910       -.10792E-06** at limit **
  11  norm          6.7235        10.402        .65578E-08   -.21801E-05
  12  norm          3.3061        1.8654       -.11991E-07   -.31735E-04
  13  Prefactor     .10000E-03    15.581       -.19566E-06** at limit **
  14  norm          .10000E-03    .66395       -.60733E-07** at limit **
  15  norm          1.0643        25.179        .30118E-05    .30217E-04
  16  norm          .10000E-03    13.047       -.20347E-06** at limit **
  17  Prefactor     .10000E-03    7.6438       -.11453E-06** at limit **
  18  Prefactor     .10000E-03    20.045       -.12322E-06** at limit **
  19  norm          10.106        2.7909       -.60063E-07    .56300E-06
  20  Normalizat    .66922        .26106        .59297E-05   -.13365E-04
  21  Prefactor     1.1004        .99591E-01   -.19537E-05    .59585E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.99029
  norm       = 0.0001
  Prefactor  = 26.0528
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.88537
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.82737
  norm       = 0.0001
  norm       = 6.72351
  norm       = 3.30615
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.06426
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.1061
  Normalizat = 0.669218
  Prefactor  = 1.10041
 **********
 **   18 **HESSE 
 **********

 FCN=   9483.325     FROM HESSE     STATUS=OK           317 CALLS     2572 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9903        7.2776        .20233E-03   -1.5308    
   2  norm          .10000E-03    .48571        .66192E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     26.053        58.243        .78702E-04   -1.4687    
   4  Prefactor     .10000E-03    1.6429        .12170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    24.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.8854        7.8400        .13466E-03   -1.5112    
   7  norm          .10000E-03    6.5810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.8175        .30348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.8274        1.0329        .24195E-04   -1.5372    
  10  norm          .10000E-03    2.0954        .13755E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.7235        10.387        .15502E-03   -1.5189    
  12  norm          3.3061        1.8618        .96431E-04   -1.5344    
  13  Prefactor     .10000E-03    15.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .66559        .77516E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.0643        25.891        .40249E-03   -1.5502    
  16  norm          .10000E-03    13.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.6544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    20.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          10.106        2.7879        .81027E-04   -1.5072    
  20  Normalizat    .66922        .26089        .48318E-03   -1.0512    
  21  Prefactor     1.1004        .10026        .14816E-03   -.89453    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.1727e-11
Minuit parameter uncertainties:
  1  7.27924
  2  3.05709e-07
  3  58.3702
  4  3.52454e-06
  5  4.15535e-05
  6  7.84094
  7  1.58553e-07
  8  1.49076e-05
  9  1.0329
  10  3.43325e-06
  11  10.3902
  12  1.8618
  13  2.11745e-05
  14  1.20899e-06
  15  10.503
  16  9.12813e-06
  17  7.19007e-06
  18  1.11752e-05
  19  2.78791
  20  0.261371
  21  0.100275
Done.

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

Extracting fit parameters...

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  1.000e-04  3.433e-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.100e+00  1.003e-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:  6.692e-01  2.614e-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: 4.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.72e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/468069/likelihoodResults_562032001_562291201_4FGL_J1959.1-4247_daily_bin1245.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) = 9483.32712124
delta logL = -0.00226433449279

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9483.32485685
delta logL = 5.63177309232e-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.2620       1.0000          .0000       5.0000    
     3 'Normalizat'    .66921       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1004       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=   9483.325     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      239 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    100.35        .13788E-01** at limit **
   2  alpha         1.9355        2.8680        .16556       -.23210E-07
   3  Normalizat    .66922        .39898E-01    .48318E-03    .16659E-04
   4  Prefactor     1.1004        .15493E-01    .14816E-03    .62919E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.93549
  Normalizat = 0.669219
  Prefactor  = 1.10041
 **********
 **   18 **HESSE 
 **********

 FCN=   9483.325     FROM HESSE     STATUS=OK            23 CALLS      262 TOTAL
                     EDM=   .46E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.2168        .14131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9355        2.8893        .66223E-02   -.22777    
   3  Normalizat    .66922        .25057        .19327E-04   -1.0512    
   4  Prefactor     1.1004        .97445E-01    .59266E-05   -.89453    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.5835e-12
Minuit parameter uncertainties:
  1  1.74473e-06
  2  204.645
  3  0.250993
  4  0.0974611
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/468069': 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) = 9483.32485563
delta logL = 1.27029124997e-06

Extracting fit parameters...

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  1.000e-04  1.745e-06  1.000e-04  1.000e+04 ( 1.000e-12)
376        alpha:  1.935e+00  2.046e+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.100e+00  9.746e-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:  6.692e-01  2.510e-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/468069/cmap_HighResolution_562032001_562291201_4FGL_J1959.1-4247_daily_bin1245.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.72e-05', job_status='DONE', photon_flux_upper_limit='4.77e-08', time_completed='2021-09-24 03:32:32.120895', job_id='468069', GAL2='1.10', fit_tolerance='1e-08', EG2='0.67', EG='0.67', time_epoch_completed='1632479552.12', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='1.27e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='1245' AND source_name='4FGL J1959.1-4247' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 03:32:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 468069: <4FGL_J1959.1-4247_daily_bin1245> in cluster <slac> Done

Job <4FGL_J1959.1-4247_daily_bin1245> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 24 03:17:37 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 24 03:17:40 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:40 2021
Terminated at Fri Sep 24 03:32:32 2021
Results reported at Fri Sep 24 03:32:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1959.1-4247_daily_bin1245 299.796 -42.7852 562032001 562291201 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 :                                   847.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             332.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            895 sec.

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

