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


Performing analysis on: 4FGL_J1959.1-4247_daily_bin1334
RA = 299.796, Dec = -42.7852
tmin = 585100801, tmax = 585360001
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='469298', job_status='RUN', time_executed='2021-09-24 03:22:37.649252', time_epoch_executed='1632478957.65' WHERE source_name='4FGL J1959.1-4247' and cadence='daily' and bin_id='1334'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/469298

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/469298/ft1_4FGL_J1959.1-4247_daily_bin1334.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/469298/ft2_4FGL_J1959.1-4247_daily_bin1334.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/469298/ft1_4FGL_J1959.1-4247_daily_bin1334.fits outfile=/scratch/kocevski/469298/ft1_filteredMKT_4FGL_J1959.1-4247_daily_bin1334.fits ra=299.796 dec=-42.7852 rad=12.0 tmin=585100801.0 tmax=585360001.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.01
user 2.81
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/469298/ft2_4FGL_J1959.1-4247_daily_bin1334.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/469298/ft1_filteredMKT_4FGL_J1959.1-4247_daily_bin1334.fits evtable="EVENTS" outfile="/scratch/kocevski/469298/ft1_filtered_4FGL_J1959.1-4247_daily_bin1334.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/469298/ft1_filtered_4FGL_J1959.1-4247_daily_bin1334.fits" evtable="EVENTS" scfile=/scratch/kocevski/469298/ft2_4FGL_J1959.1-4247_daily_bin1334.fits sctable="SC_DATA" outfile=/scratch/kocevski/469298/ltcube_585100801_585360001_4FGL_J1959.1-4247_daily_bin1334.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/469298/ft2_4FGL_J1959.1-4247_daily_bin1334.fits
.....................!
real 12.31
user 11.99
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/469298/ft1_filtered_4FGL_J1959.1-4247_daily_bin1334.fits evtable="EVENTS" scfile=/scratch/kocevski/469298/ft2_4FGL_J1959.1-4247_daily_bin1334.fits sctable="SC_DATA" expcube=/scratch/kocevski/469298/ltcube_585100801_585360001_4FGL_J1959.1-4247_daily_bin1334.fits outfile=/scratch/kocevski/469298/expmap_585100801_585360001_4FGL_J1959.1-4247_daily_bin1334.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/469298/ltcube_585100801_585360001_4FGL_J1959.1-4247_daily_bin1334.fits
.....................!
real 190.10
user 185.19
sys 4.58

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/469298/ft1_filtered_4FGL_J1959.1-4247_daily_bin1334.fits scfile=/scratch/kocevski/469298/ft2_4FGL_J1959.1-4247_daily_bin1334.fits outfile=/scratch/kocevski/469298/cmap_585100801_585360001_4FGL_J1959.1-4247_daily_bin1334.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=299.796 yref=-42.7852 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/469298/ft1_filtered_4FGL_J1959.1-4247_daily_bin1334.fits scfile=/scratch/kocevski/469298/ft2_4FGL_J1959.1-4247_daily_bin1334.fits outfile=/scratch/kocevski/469298/cmap_HighResolution_585100801_585360001_4FGL_J1959.1-4247_daily_bin1334.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.56
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/469298/ft1_filtered_4FGL_J1959.1-4247_daily_bin1334.fits evtable="EVENTS" scfile=/scratch/kocevski/469298/ft2_4FGL_J1959.1-4247_daily_bin1334.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/469298/Model_4FGL_J1959.1-4247_daily_bin1334.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/469298/ft1_filtered_4FGL_J1959.1-4247_daily_bin1334.fits..........!
real 14.31
user 13.11
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/469298/ft1_filtered_4FGL_J1959.1-4247_daily_bin1334.fits', '/scratch/kocevski/469298/ft2_4FGL_J1959.1-4247_daily_bin1334.fits', expMap='/scratch/kocevski/469298/expmap_585100801_585360001_4FGL_J1959.1-4247_daily_bin1334.fits', expCube='/scratch/kocevski/469298/ltcube_585100801_585360001_4FGL_J1959.1-4247_daily_bin1334.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/469298/Model_4FGL_J1959.1-4247_daily_bin1334.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/469298/ft1_filtered_4FGL_J1959.1-4247_daily_bin1334.fits
Spacecraft file(s): /scratch/kocevski/469298/ft2_4FGL_J1959.1-4247_daily_bin1334.fits
Exposure map: /scratch/kocevski/469298/expmap_585100801_585360001_4FGL_J1959.1-4247_daily_bin1334.fits
Exposure cube: /scratch/kocevski/469298/ltcube_585100801_585360001_4FGL_J1959.1-4247_daily_bin1334.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/469298/Model_4FGL_J1959.1-4247_daily_bin1334.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 128.489608874

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 124.116474444

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .49939       1.0000         .10000E-03   10000.    
     2 'norm      '    14.181       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.9606       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .23753       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.5941       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.2630       1.0000         .10000E-03   10000.    
     7 'norm      '    1.3580       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.0793       1.0000         .10000E-03   10000.    
     9 'norm      '    1.2715       1.0000         .10000E-03   10000.    
    10 'norm      '    4.6910       1.0000         .10000E-03   10000.    
    11 'norm      '    10.293       1.0000         .10000E-03   10000.    
    12 'norm      '    710.14       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.3545       1.0000         .10000E-03   10000.    
    14 'norm      '    .34095       1.0000         .10000E-03   10000.    
    15 'norm      '    2073.1       1.0000         .10000E-03   10000.    
    16 'norm      '    137.02       1.0000         .10000E-03   10000.    
    17 'Prefactor '    164.49       1.0000         .10000E-03   10000.    
    18 'Prefactor '    68.775       1.0000         .10000E-03   10000.    
    19 'norm      '    27.154       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .12818E-01   1.0000         .10000E-01   10.000    
    21 'Prefactor '    .30805       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6700E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   123.4858     FROM MIGRAD    STATUS=CONVERGED    407 CALLS      704 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1269.6        .68043E-05** at limit **
   2  norm          .19308E-03    6159.4       -.19290E-04** at limit **
   3  Prefactor     9.9606        1.0013         .0000         .0000    
   4  Prefactor     .10002E-03    1942.6       -.42413E-04** at limit **
   5  Prefactor     .12863E-03    7438.6        .32837E-05** at limit **
   6  Prefactor     9999.8        8178.0        .31364E-03   -.48744E-03
   7  norm          2.2978        1.6549       -.33243E-06   -.95654E-05
   8  Prefactor     1.0793        1.2055         .0000         .0000    
   9  norm          9873.4        9896.3       -.42686E-03   -.44277E-02
  10  norm          9999.4        8997.4       -.37188E-03   -.11278E-02
  11  norm          9998.3        9078.1       -.45064E-03    .25126E-02
  12  norm          307.14        660.08       -.44492E-04   -.50645E-02
  13  Prefactor     6.0015        162.93       -.38282E-04    .13940E-02
  14  norm          .10000E-03    137.76        .18384E-05** at limit **
  15  norm          2679.4        640.82       -.20383E-04    .92145E-01
  16  norm          .54543        2294.3        .48666E-04    .14412E-01
  17  Prefactor     .22644E-02    623.21        .81332E-04** at limit **
  18  Prefactor     414.66        735.85        .10135E-04   -.34958E-02
  19  norm          26.820        14.685       -.26990E-05    .37260E-04
  20  Normalizat    .10000E-01    .41936        .84710E-04** at limit **
  21  Prefactor     .26630        .26516       -.18756E-06    .25518E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  norm       = 0.000193077
  Prefactor  = 9.96058
  Prefactor  = 0.000100019
  Prefactor  = 0.000128629
  Prefactor  = 9999.81
  norm       = 2.29782
  Prefactor  = 1.07934
  norm       = 9873.36
  norm       = 9999.41
  norm       = 9998.32
  norm       = 307.141
  Prefactor  = 6.00155
  norm       = 0.0001
  norm       = 2679.36
  norm       = 0.545427
  Prefactor  = 0.00226439
  Prefactor  = 414.66
  norm       = 26.8203
  Normalizat = 0.01
  Prefactor  = 0.266299
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   123.4858     FROM HESSE     STATUS=FAILED        19 CALLS      723 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1273.1        .11268E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .19308E-03    2032.6        .26590E-02   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     490.98        480.99         .0000       -1.5077    
   4  Prefactor     .10002E-03    .25743       -.42413E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .12863E-03    .17637        .32837E-05   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9999.8        .19211        .31364E-03    1.5620    
   7  norm          2.2978        1.4207       -.33243E-06   -1.5405    
   8  Prefactor     1.0793        1.2055         .0000       -1.5500    
   9  norm          9873.4        11.027       -.42686E-03    1.3453    
  10  norm          9999.4        .35728       -.37188E-03    1.5554    
  11  norm          9998.3        .40497       -.45064E-03    1.5967    
  12  norm          307.14        .67177       -.44492E-04   -1.2185    
  13  Prefactor     6.0015        .97489       -.38282E-04   -1.5218    
  14  norm          .10000E-03    .28107        .18384E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2679.4        1.0925       -.20383E-04   -.48265    
  16  norm          .54543        .63523E-01    .48666E-04   -1.5560    
  17  Prefactor     .22644E-02    .36577E-02    .81332E-04   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     414.66        2.4124        .10135E-04   -1.1607    
  19  norm          26.820        .99403       -.26990E-05   -1.4672    
  20  Normalizat    .10000E-01    .25579        .84710E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .26630        .58082       -.18756E-06   -1.2430    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.64874e-09
Minuit parameter uncertainties:
  1  0.00203994
  2  0.902474
  3  1.00126
  4  0.000138169
  5  0.00449407
  6  0.192108
  7  1.42072
  8  1.20555
  9  11.0274
  10  0.357281
  11  0.404969
  12  0.671768
  13  0.974888
  14  1.60791e-06
  15  1.09252
  16  0.0635229
  17  0.00365768
  18  2.41237
  19  0.99403
  20  4.78615e-07
  21  0.59422
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 123.485839993

Extracting fit parameters...

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  9.999e+03  3.573e-01  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:  2.663e-01  5.942e-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.000e-02  4.786e-07  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = 8.67503051438e-06

TS (Fixed Index): 0.31
Ra Dec: 299.796 -42.785
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -3.60e+02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/469298/likelihoodResults_585100801_585360001_4FGL_J1959.1-4247_daily_bin1334.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) = 122.802514264
delta logL = 0.683325729746

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 122.801973106
delta logL = 0.683866887007

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'alpha     '    5.0000       1.0000          .0000       5.0000    
 **********
 **   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.

 FCN=   122.8020     FROM MIGRAD    STATUS=CONVERGED     11 CALLS       51 TOTAL
                     EDM=   .56E-16    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    alpha       5.0000        1.0522        .23204    ** at limit **
                               ERR DEF=  .500    
Final values: 
  alpha      = 5
 **********
 **   18 **HESSE 
 **********

 FCN=   122.8020     FROM HESSE     STATUS=OK             5 CALLS       56 TOTAL
                     EDM=   .55E-16    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    alpha       5.0000        1.0364        .51678E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.51813e-17
Minuit parameter uncertainties:
  1  1.65942e-08
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/469298': 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) = 122.801973106
delta logL = 0.683866887007

Extracting fit parameters...

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  9.999e+03  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12) fixed
376        alpha:  5.000e+00  1.659e-08  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:  2.662e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
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.000e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


TS (Free Index): 1.68
Ra Dec: 299.796 -42.785
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 2.01e-03 +/- 5.33e-11
Energy Flux (Free Index): 2.78e-01 +/- 6.93e-09

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/469298/cmap_HighResolution_585100801_585360001_4FGL_J1959.1-4247_daily_bin1334.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-3.60e+02', comment='SUCCESS', energy_flux2='2.78e-01', dlogl='6.84e-01', photon_flux2='2.01e-03', job_status='DONE', time_completed='2021-09-24 03:28:05.170575', photon_index_error2='0.00', photon_index2='5.00', ts='0.31', fit_tolerance='1e-08', GAL='0.27', photon_index_error='0.00', photon_flux_upper_limit='-1.00e+00', energy_flux_error2='6.93e-09', EG='0.01', time_epoch_completed='1632479285.17', return_code='101', job_id='469298', GAL2='0.27', EG2='0.01', return_code2='0', photon_flux_error2='5.33e-11', ts2='1.68', photon_index='2.27' WHERE bin_id='1334' AND source_name='4FGL J1959.1-4247' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 03:28:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 469298: <4FGL_J1959.1-4247_daily_bin1334> in cluster <slac> Done

Job <4FGL_J1959.1-4247_daily_bin1334> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 24 03:22:25 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 24 03:22:28 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:22:28 2021
Terminated at Fri Sep 24 03:28:05 2021
Results reported at Fri Sep 24 03:28:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1959.1-4247_daily_bin1334 299.796 -42.7852 585100801 585360001 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 :                                   323.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             265.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   337 sec.
    Turnaround time :                            340 sec.

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

