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


Performing analysis on: 4FGL_J1959.1-4247_daily_bin1624
RA = 299.796, Dec = -42.7852
tmin = 660268801, tmax = 660528001
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='453204', job_status='RUN', time_executed='2021-12-08 06:31:59.901603', time_epoch_executed='1638973919.9' WHERE source_name='4FGL J1959.1-4247' and cadence='daily' and bin_id='1624'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/453204

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/453204/ft1_4FGL_J1959.1-4247_daily_bin1624.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/453204/ft2_4FGL_J1959.1-4247_daily_bin1624.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/453204/ft1_4FGL_J1959.1-4247_daily_bin1624.fits outfile=/scratch/kocevski/453204/ft1_filteredMKT_4FGL_J1959.1-4247_daily_bin1624.fits ra=299.796 dec=-42.7852 rad=12.0 tmin=660268801.0 tmax=660528001.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.94
user 3.68
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/453204/ft1_filtered_4FGL_J1959.1-4247_daily_bin1624.fits" evtable="EVENTS" scfile=/scratch/kocevski/453204/ft2_4FGL_J1959.1-4247_daily_bin1624.fits sctable="SC_DATA" outfile=/scratch/kocevski/453204/ltcube_660268801_660528001_4FGL_J1959.1-4247_daily_bin1624.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/453204/ft2_4FGL_J1959.1-4247_daily_bin1624.fits
.....................!
real 12.80
user 12.35
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/453204/ft1_filtered_4FGL_J1959.1-4247_daily_bin1624.fits evtable="EVENTS" scfile=/scratch/kocevski/453204/ft2_4FGL_J1959.1-4247_daily_bin1624.fits sctable="SC_DATA" expcube=/scratch/kocevski/453204/ltcube_660268801_660528001_4FGL_J1959.1-4247_daily_bin1624.fits outfile=/scratch/kocevski/453204/expmap_660268801_660528001_4FGL_J1959.1-4247_daily_bin1624.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/453204/ltcube_660268801_660528001_4FGL_J1959.1-4247_daily_bin1624.fits
.....................!
real 191.15
user 185.18
sys 5.39

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/453204/ft1_filtered_4FGL_J1959.1-4247_daily_bin1624.fits scfile=/scratch/kocevski/453204/ft2_4FGL_J1959.1-4247_daily_bin1624.fits outfile=/scratch/kocevski/453204/cmap_660268801_660528001_4FGL_J1959.1-4247_daily_bin1624.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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/453204/ft1_filtered_4FGL_J1959.1-4247_daily_bin1624.fits scfile=/scratch/kocevski/453204/ft2_4FGL_J1959.1-4247_daily_bin1624.fits outfile=/scratch/kocevski/453204/cmap_HighResolution_660268801_660528001_4FGL_J1959.1-4247_daily_bin1624.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.55
user 0.37
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/453204/ft1_filtered_4FGL_J1959.1-4247_daily_bin1624.fits evtable="EVENTS" scfile=/scratch/kocevski/453204/ft2_4FGL_J1959.1-4247_daily_bin1624.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/453204/Model_4FGL_J1959.1-4247_daily_bin1624.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/453204/ft1_filtered_4FGL_J1959.1-4247_daily_bin1624.fits.....................!
real 67.98
user 66.01
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .29111E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.1748       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .46036E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.8234       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    18.742       1.0000         .10000E-03   10000.    
    12 'norm      '    1.0445       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .67889       1.0000         .10000E-03   10000.    
    15 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.082       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .68955       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1726       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0482       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=   7427.722     FROM MIGRAD    STATUS=CONVERGED    465 CALLS     2229 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.5531       -.22579E-06** at limit **
   2  norm          1.1747        2.0024       -.17368E-06   -.70304E-03
   3  Prefactor     .10000E-03    86.382       -.82176E-05** at limit **
   4  Prefactor     .10000E-03    5.1406       -.27237E-07** at limit **
   5  Prefactor     .10000E-03    26.636        .25005E-05** at limit **
   6  Prefactor     .10052E-03    7.6800        .20573E-05** at limit **
   7  norm          .10000E-03    6.9859       -.48063E-08** at limit **
   8  Prefactor     .10000E-03    7.8043       -.27150E-07** at limit **
   9  norm          2.8232        1.3889       -.13906E-07   -.53042E-03
  10  norm          .10000E-03    3.3358        .47416E-07** at limit **
  11  norm          18.739        25.726       -.78565E-06    .25927E-04
  12  norm          1.0446        1.0668        .61843E-07    .34822E-03
  13  Prefactor     .10000E-03    42.635       -.14962E-04** at limit **
  14  norm          .68839        3.0594       -.58717E-06   -.16804E-03
  15  norm          .10000E-03    12.654        .39626E-06** at limit **
  16  norm          .10000E-03    14.801       -.81086E-06** at limit **
  17  Prefactor     20.088        46.871        .79566E-05    .12836E-04
  18  Prefactor     .10000E-03    49.624        .90540E-05** at limit **
  19  norm          .68976        1.5133       -.36861E-06   -.16839E-02
  20  Normalizat    1.1727        .29173       -.10245E-05   -.69060E-04
  21  Prefactor     1.0481        .10208        .12575E-06   -.23635E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  norm       = 1.17474
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100518
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.82316
  norm       = 0.0001
  norm       = 18.7389
  norm       = 1.04458
  Prefactor  = 0.0001
  norm       = 0.68839
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 20.0882
  Prefactor  = 0.0001
  norm       = 0.689758
  Normalizat = 1.17265
  Prefactor  = 1.04812
 **********
 **   18 **HESSE 
 **********

 FCN=   7427.722     FROM HESSE     STATUS=OK           319 CALLS     2548 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    19.287        .39280E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.1747        1.9655        .15520E-03   -1.5491    
   3  Prefactor     .10000E-03    86.060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.2478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    26.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10052E-03    60.514        .44440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    6.9871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.9524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.8232        1.3852        .68294E-04   -1.5372    
  10  norm          .10000E-03    3.3399        .15371E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          18.739        25.564        .92515E-04   -1.4842    
  12  norm          1.0446        1.0887        .87707E-04   -1.5504    
  13  Prefactor     .10000E-03    41.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .68839        11.552        .27172E-02   -1.5542    
  15  norm          .10000E-03    12.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    14.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     20.088        46.740        .89377E-04   -1.4811    
  18  Prefactor     .10000E-03    49.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .68976        1.2529        .15766E-02   -1.5542    
  20  Normalizat    1.1727        .33791        .42343E-03   -.87452    
  21  Prefactor     1.0481        .11943        .16150E-03   -.91142    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.95353e-09
Minuit parameter uncertainties:
  1  0.000256312
  2  1.96562
  3  1.13349e-05
  4  2.24478e-06
  5  9.55643e-06
  6  0.0112103
  7  1.11744e-06
  8  4.61021e-06
  9  1.38523
  10  1.20416e-06
  11  25.5791
  12  1.08867
  13  9.62601e-06
  14  5.64083
  15  3.31056e-06
  16  7.26687e-05
  17  46.825
  18  6.04589e-05
  19  1.25295
  20  0.338538
  21  0.119457
Done.

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

Extracting fit parameters...

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  1.000e-04  1.204e-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.048e+00  1.195e-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.173e+00  3.385e-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: 7.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.64e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/453204/likelihoodResults_660268801_660528001_4FGL_J1959.1-4247_daily_bin1624.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) = 7427.72381476
delta logL = -0.00142222386876

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7427.72239254
delta logL = 4.05907485401e-09

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.2668       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1726       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0481       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7427.722     FROM MIGRAD    STATUS=FAILED        80 CALLS      222 TOTAL
                     EDM=   .77E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10017E-03    653.31        .15376E-02** at limit **
   2  alpha         2.2185        3.3276        .16552        .23989E-05
   3  Normalizat    1.1726        .15895        .42343E-03   -.26712E-03
   4  Prefactor     1.0481        .58132E-01    .16150E-03   -.61274E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7427.722     FROM SIMPLEX   STATUS=UNCHANGED    159 CALLS      381 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10017E-03    653.31        .29587E-03** at limit **
   2  alpha         2.2185        3.3276        .77327E-05    .23989E-05
   3  Normalizat    1.1726        .15895        .47488E-06   -.26712E-03
   4  Prefactor     1.0481        .58132E-01    .11264E-06   -.61274E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7427.722     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      418 TOTAL
                     EDM=   .85E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.3693        .30752E-03** at limit **
   2  alpha         2.1566        3.5743        .33104E-01   -.13737E-08
   3  Normalizat    1.1727        .32107        .16937E-04   -.69807E-05
   4  Prefactor     1.0481        .11756        .32300E-04    .56315E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.1566
  Normalizat = 1.17265
  Prefactor  = 1.04813
 **********
 **   18 **HESSE 
 **********

 FCN=   7427.722     FROM HESSE     STATUS=OK            23 CALLS      441 TOTAL
                     EDM=   .93E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.3623        .61505E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1566        3.5634        .13242E-02   -.13779    
   3  Normalizat    1.1727        .32110        .33875E-05   -.87452    
   4  Prefactor     1.0481        .11757        .64601E-05   -.91142    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.26601e-13
Minuit parameter uncertainties:
  1  1.23666e-06
  2  252.111
  3  0.321642
  4  0.117603
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/453204': 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) = 7427.72239244
delta logL = 9.94841684587e-08

Extracting fit parameters...

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  1.000e-04  1.237e-06  1.000e-04  1.000e+04 ( 1.000e-12)
376        alpha:  2.157e+00  2.521e+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.048e+00  1.176e-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.173e+00  3.216e-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/453204/cmap_HighResolution_660268801_660528001_4FGL_J1959.1-4247_daily_bin1624.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.64e-05', job_status='DONE', photon_flux_upper_limit='7.34e-08', time_completed='2021-12-08 06:44:10.842447', job_id='453204', GAL2='1.05', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1638974650.84', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='9.95e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='1624' AND source_name='4FGL J1959.1-4247' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 06:44:10 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 453204: <4FGL_J1959.1-4247_daily_bin1624> in cluster <slac> Done

Job <4FGL_J1959.1-4247_daily_bin1624> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Dec  8 06:30:18 2021
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 06:31:22 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:31:22 2021
Terminated at Wed Dec  8 06:44:11 2021
Results reported at Wed Dec  8 06:44:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1959.1-4247_daily_bin1624 299.796 -42.7852 660268801 660528001 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 :                                   729.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             321.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   772 sec.
    Turnaround time :                            833 sec.

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

