/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 127 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 = 7476
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1959.1-4247_daily_bin299
RA = 299.796, Dec = -42.7852
tmin = 316828801, tmax = 317088001
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='462334', job_status='RUN', time_executed='2021-09-24 02:59:36.339743', time_epoch_executed='1632477576.34' WHERE source_name='4FGL J1959.1-4247' and cadence='daily' and bin_id='299'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/462334

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/462334/ft1_4FGL_J1959.1-4247_daily_bin299.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/462334/ft2_4FGL_J1959.1-4247_daily_bin299.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/462334/ft1_4FGL_J1959.1-4247_daily_bin299.fits outfile=/scratch/kocevski/462334/ft1_filteredMKT_4FGL_J1959.1-4247_daily_bin299.fits ra=299.796 dec=-42.7852 rad=12.0 tmin=316828801.0 tmax=317088001.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.48
user 3.26
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/462334/ft1_filtered_4FGL_J1959.1-4247_daily_bin299.fits" evtable="EVENTS" scfile=/scratch/kocevski/462334/ft2_4FGL_J1959.1-4247_daily_bin299.fits sctable="SC_DATA" outfile=/scratch/kocevski/462334/ltcube_316828801_317088001_4FGL_J1959.1-4247_daily_bin299.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/462334/ft2_4FGL_J1959.1-4247_daily_bin299.fits
.....................!
real 12.07
user 11.71
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/462334/ft1_filtered_4FGL_J1959.1-4247_daily_bin299.fits evtable="EVENTS" scfile=/scratch/kocevski/462334/ft2_4FGL_J1959.1-4247_daily_bin299.fits sctable="SC_DATA" expcube=/scratch/kocevski/462334/ltcube_316828801_317088001_4FGL_J1959.1-4247_daily_bin299.fits outfile=/scratch/kocevski/462334/expmap_316828801_317088001_4FGL_J1959.1-4247_daily_bin299.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/462334/ltcube_316828801_317088001_4FGL_J1959.1-4247_daily_bin299.fits
.....................!
real 192.68
user 187.26
sys 5.09

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/462334/ft1_filtered_4FGL_J1959.1-4247_daily_bin299.fits scfile=/scratch/kocevski/462334/ft2_4FGL_J1959.1-4247_daily_bin299.fits outfile=/scratch/kocevski/462334/cmap_316828801_317088001_4FGL_J1959.1-4247_daily_bin299.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/462334/ft1_filtered_4FGL_J1959.1-4247_daily_bin299.fits scfile=/scratch/kocevski/462334/ft2_4FGL_J1959.1-4247_daily_bin299.fits outfile=/scratch/kocevski/462334/cmap_HighResolution_316828801_317088001_4FGL_J1959.1-4247_daily_bin299.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=299.796 yref=-42.7852 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/462334/ft1_filtered_4FGL_J1959.1-4247_daily_bin299.fits evtable="EVENTS" scfile=/scratch/kocevski/462334/ft2_4FGL_J1959.1-4247_daily_bin299.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/462334/Model_4FGL_J1959.1-4247_daily_bin299.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/462334/ft1_filtered_4FGL_J1959.1-4247_daily_bin299.fits.....................!
real 73.56
user 72.32
sys 1.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .17226E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.9320       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.4377       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.3967       1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10716E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    16.015       1.0000         .10000E-03   10000.    
    12 'norm      '    1.9584       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .24983E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    .49548       1.0000         .10000E-03   10000.    
    15 'norm      '    24.179       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.5152       1.0000         .10000E-03   10000.    
    19 'norm      '    3.8413       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.7470       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .98266       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=   8226.554     FROM MIGRAD    STATUS=CONVERGED    481 CALLS     2247 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.9458        .10036E-06** at limit **
   2  norm          .10000E-03    1.6565        .29677E-06** at limit **
   3  Prefactor     .10000E-03    83.978        .45067E-06** at limit **
   4  Prefactor     4.9331        7.7805        .61130E-05    .58585E-04
   5  Prefactor     4.4386        17.126       -.98035E-06   -.11271E-04
   6  Prefactor     6.3965        15.821       -.63515E-06   -.33080E-04
   7  norm          .10000E-03    10.980        .20151E-06** at limit **
   8  Prefactor     .10000E-03    3.7010        .24355E-06** at limit **
   9  norm          .10000E-03    .58358        .34356E-06** at limit **
  10  norm          .10000E-03    6.8682        .69165E-08** at limit **
  11  norm          16.015        28.358       -.92888E-06   -.84837E-04
  12  norm          1.9585        1.5048        .11877E-07   -.54589E-04
  13  Prefactor     .10004E-03    447.69        .19615E-04** at limit **
  14  norm          .49240        2.9568        .58316E-06   -.16558E-03
  15  norm          24.175        18.676        .32851E-06   -.58034E-04
  16  norm          .10000E-03    11.897       -.36209E-06** at limit **
  17  Prefactor     .10000E-03    20.409       -.12426E-05** at limit **
  18  Prefactor     2.2668        674.51       -.39613E-04   -.27557E-04
  19  norm          3.8415        2.4438       -.78725E-07    .75924E-06
  20  Normalizat    1.7469        .28943        .17104E-05   -.28074E-03
  21  Prefactor     .98260        .98792E-01   -.16027E-05   -.23802E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 4.93313
  Prefactor  = 4.43863
  Prefactor  = 6.39651
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 16.0154
  norm       = 1.95849
  Prefactor  = 0.000100038
  norm       = 0.492401
  norm       = 24.1752
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.26681
  norm       = 3.84147
  Normalizat = 1.74694
  Prefactor  = 0.982599
 **********
 **   18 **HESSE 
 **********

 FCN=   8226.554     FROM HESSE     STATUS=OK           321 CALLS     2568 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.9525        .15203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    5.6962        .22625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    84.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.9331        7.8972        .90551E-03   -1.5264    
   5  Prefactor     4.4386        17.117        .19116E-03   -1.5287    
   6  Prefactor     6.3965        15.767        .15870E-03   -1.5202    
   7  norm          .10000E-03    10.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.7368        .17039E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.2846        .13186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    6.8972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          16.015        28.227        .10008E-03   -1.4907    
  12  norm          1.9585        1.5004        .94914E-04   -1.5428    
  13  Prefactor     .10004E-03    470.39        .40037E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .49240        6.1061        .29186E-02   -1.5568    
  15  norm          24.175        18.685        .81464E-04   -1.4724    
  16  norm          .10000E-03    11.917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    20.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.2668        731.14        .25762E-02   -1.5407    
  19  norm          3.8415        2.4474        .10896E-03   -1.5316    
  20  Normalizat    1.7469        .33810        .39131E-03   -.71057    
  21  Prefactor     .98260        .11505        .17747E-03   -.93312    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.88277e-08
Minuit parameter uncertainties:
  1  3.61373e-06
  2  0.000107384
  3  6.53649e-05
  4  7.89889
  5  17.136
  6  15.7771
  7  7.8659e-06
  8  5.6572e-06
  9  0.000110105
  10  1.78074e-06
  11  28.2509
  12  1.50043
  13  0.00850054
  14  3.46802
  15  18.6892
  16  8.37487e-06
  17  2.45191e-05
  18  82.4557
  19  2.44744
  20  0.338554
  21  0.115078
Done.

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

Extracting fit parameters...

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  1.000e-04  1.781e-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.826e-01  1.151e-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.747e+00  3.386e-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: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.67e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/462334/likelihoodResults_316828801_317088001_4FGL_J1959.1-4247_daily_bin299.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) = 8226.55477189
delta logL = -0.000691012377501

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8226.50800447
delta logL = 0.0460764151521

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .55264       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.2359       1.0000          .0000       5.0000    
     3 'Normalizat'    1.7116       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98863       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8226.508     FROM MIGRAD    STATUS=FAILED       102 CALLS      333 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .54945        235.31        .16150E-02    .60228E-02
   2  alpha         4.2381        2.7931        .90860E-01    .25959E-03
   3  Normalizat    1.7117        .19678        .39449E-03   -.25130E-04
   4  Prefactor     .98861        .63570E-01    .17699E-03   -.41907E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8226.508     FROM SIMPLEX   STATUS=UNCHANGED     93 CALLS      426 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .54945        235.31        .17216E-03    .60228E-02
   2  alpha         4.2381        2.7931        .54063E-02    .25959E-03
   3  Normalizat    1.7117        .19678        .18331E-03   -.25130E-04
   4  Prefactor     .98861        .63570E-01    .34208E-04   -.41907E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8226.508     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      462 TOTAL
                     EDM=   .32E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .54945        9.2157        .32300E-03   -.39350E-04
   2  alpha         4.2381        4.6044        .18172E-01   -.13476E-05
   3  Normalizat    1.7117        .33891        .15780E-04   -.25072E-04
   4  Prefactor     .98861        .11541        .35397E-04   -.42010E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.549448
  alpha      = 4.23809
  Normalizat = 1.71174
  Prefactor  = 0.988613
 **********
 **   18 **HESSE 
 **********

 FCN=   8226.508     FROM HESSE     STATUS=OK            27 CALLS      489 TOTAL
                     EDM=   .37E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .54945        4.2271        .12920E-04   -1.5560    
   2  alpha         4.2381        4.3627        .72688E-03    .76875    
   3  Normalizat    1.7117        .33870        .31559E-05   -.71990    
   4  Prefactor     .98861        .11554        .70794E-05   -.93110    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.72446e-12
Minuit parameter uncertainties:
  1  3.04801
  2  3.03266
  3  0.339157
  4  0.115573
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/462334': 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) = 8226.5080038
delta logL = 0.0460770848767

Extracting fit parameters...

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  5.494e-01  3.048e+00  1.000e-04  1.000e+04 ( 1.000e-12)
376        alpha:  4.238e+00  3.033e+00  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.886e-01  1.156e-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.712e+00  3.392e-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/462334/cmap_HighResolution_316828801_317088001_4FGL_J1959.1-4247_daily_bin299.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.67e-05', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2021-09-24 03:12:44.446734', job_id='462334', GAL2='0.99', fit_tolerance='1e-08', EG2='1.71', EG='1.75', time_epoch_completed='1632478364.45', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='4.61e-02', ts2='0.10', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='299' AND source_name='4FGL J1959.1-4247' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 03:12:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 462334: <4FGL_J1959.1-4247_daily_bin299> in cluster <slac> Done

Job <4FGL_J1959.1-4247_daily_bin299> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 24 02:57:18 2021
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 24 02:57:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 24 02:57:21 2021
Terminated at Fri Sep 24 03:12:45 2021
Results reported at Fri Sep 24 03:12:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1959.1-4247_daily_bin299 299.796 -42.7852 316828801 317088001 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 :                                   788.11 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             310.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   923 sec.
    Turnaround time :                            927 sec.

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

