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


Performing analysis on: 4FGL_J1959.1-4247_daily_bin1631
RA = 299.796, Dec = -42.7852
tmin = 662083201, tmax = 662342401
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='559932', job_status='RUN', time_executed='2021-12-28 00:31:34.189153', time_epoch_executed='1640680294.19' WHERE source_name='4FGL J1959.1-4247' and cadence='daily' and bin_id='1631'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/559932

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/559932/ft1_4FGL_J1959.1-4247_daily_bin1631.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/559932/ft2_4FGL_J1959.1-4247_daily_bin1631.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/559932/ft1_4FGL_J1959.1-4247_daily_bin1631.fits outfile=/scratch/kocevski/559932/ft1_filteredMKT_4FGL_J1959.1-4247_daily_bin1631.fits ra=299.796 dec=-42.7852 rad=12.0 tmin=662083201.0 tmax=662342401.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.92
user 3.73
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/559932/ft1_filtered_4FGL_J1959.1-4247_daily_bin1631.fits" evtable="EVENTS" scfile=/scratch/kocevski/559932/ft2_4FGL_J1959.1-4247_daily_bin1631.fits sctable="SC_DATA" outfile=/scratch/kocevski/559932/ltcube_662083201_662342401_4FGL_J1959.1-4247_daily_bin1631.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/559932/ft2_4FGL_J1959.1-4247_daily_bin1631.fits
.....................!
real 12.07
user 11.73
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/559932/ft1_filtered_4FGL_J1959.1-4247_daily_bin1631.fits evtable="EVENTS" scfile=/scratch/kocevski/559932/ft2_4FGL_J1959.1-4247_daily_bin1631.fits sctable="SC_DATA" expcube=/scratch/kocevski/559932/ltcube_662083201_662342401_4FGL_J1959.1-4247_daily_bin1631.fits outfile=/scratch/kocevski/559932/expmap_662083201_662342401_4FGL_J1959.1-4247_daily_bin1631.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/559932/ltcube_662083201_662342401_4FGL_J1959.1-4247_daily_bin1631.fits
.....................!
real 189.80
user 184.74
sys 4.74

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/559932/ft1_filtered_4FGL_J1959.1-4247_daily_bin1631.fits scfile=/scratch/kocevski/559932/ft2_4FGL_J1959.1-4247_daily_bin1631.fits outfile=/scratch/kocevski/559932/cmap_662083201_662342401_4FGL_J1959.1-4247_daily_bin1631.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.37
sys 0.15

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/559932/ft1_filtered_4FGL_J1959.1-4247_daily_bin1631.fits evtable="EVENTS" scfile=/scratch/kocevski/559932/ft2_4FGL_J1959.1-4247_daily_bin1631.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/559932/Model_4FGL_J1959.1-4247_daily_bin1631.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/559932/ft1_filtered_4FGL_J1959.1-4247_daily_bin1631.fits.....................!
real 50.65
user 49.39
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.5848       1.0000         .10000E-03   10000.    
     7 'norm      '    19.457       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.4933       1.0000         .10000E-03   10000.    
     9 'norm      '    7.6645       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10166E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.5078       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .56729       1.0000         .10000E-03   10000.    
    14 'norm      '    2.5055       1.0000         .10000E-03   10000.    
    15 'norm      '    .31454       1.0000         .10000E-03   10000.    
    16 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11215E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .21145E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .99652       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0993       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=   5591.788     FROM MIGRAD    STATUS=FAILED       819 CALLS     2610 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.6685        .15756E-02** at limit **
   2  norm          .10000E-03    1.0474        .74624E-03** at limit **
   3  Prefactor     .10000E-03    70.258        .18142E-02** at limit **
   4  Prefactor     .10000E-03    7.4012        .18142E-02** at limit **
   5  Prefactor     .10000E-03    14.056        .18142E-02** at limit **
   6  Prefactor     8.5870        11.909        .13681E-03    .18448E-04
   7  norm          19.459        20.838        .90802E-04   -.16777E-04
   8  Prefactor     6.4935        5.9138        .15750E-03    .21143E-03
   9  norm          7.6645        2.1457        .55235E-04    .44458E-03
  10  norm          .10000E-03    2.7915        .12198E-02** at limit **
  11  norm          .10000E-03    20.900        .18142E-02** at limit **
  12  norm          1.5078        1.8229        .10951E-03   -.12043E-03
  13  Prefactor     .46059        45.153        .15595        .12363E-03
  14  norm          2.5048        5.4337        .12241E-02    .49444E-03
  15  norm          .31292        71.924        .38251E-02    .86304E-03
  16  norm          .10000E-03    19.575        .18142E-02** at limit **
  17  Prefactor     .10034E-03    29.104        .13183    ** at limit **
  18  Prefactor     .10000E-03    295.28        .18142E-02** at limit **
  19  norm          .10000E-03    1.6164        .18234E-03** at limit **
  20  Normalizat    .99652        .34185        .42882E-03    .22384E-03
  21  Prefactor     1.0993        .13289        .16040E-03    .15976E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5591.788     FROM SIMPLEX   STATUS=UNCHANGED   1213 CALLS     3823 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.6685        .25208E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.0474        .10746E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    70.258        .89512E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.4012        .19841E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.056        .36910E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.5870        11.909        .59501E-06   -1.5122    
   7  norm          19.459        20.838        .57714E-06   -1.4825    
   8  Prefactor     6.4935        5.9138        .59766E-06   -1.5198    
   9  norm          7.6645        2.1457        .59282E-06   -1.5154    
  10  norm          .10000E-03    2.7915        .20876E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    20.900        .38109E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.5078        1.8229        .60579E-06   -1.5462    
  13  Prefactor     .46059        45.153        .79172E-06   -1.5572    
  14  norm          2.5048        5.4337        .61650E-06   -1.5391    
  15  norm          .31292        71.924        .79455E-06   -1.5596    
  16  norm          .10000E-03    19.575        .46516E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10034E-03    29.104        .17857E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    295.28        .17367E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.6164        .33318E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .99652        .34185        .36790E-06   -.93147    
  21  Prefactor     1.0993        .13289        .35191E-06   -.89490    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5591.788     FROM MIGRAD    STATUS=CONVERGED    322 CALLS     4145 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.6689        .31511E-03** at limit **
   2  norm          .10000E-03    1.0474        .14925E-03** at limit **
   3  Prefactor     .10000E-03    70.261        .36285E-03** at limit **
   4  Prefactor     .10000E-03    7.4040        .36285E-03** at limit **
   5  Prefactor     .10000E-03    14.056        .36285E-03** at limit **
   6  Prefactor     8.5870        11.908        .54725E-05    .83097E-06
   7  norm          19.459        20.838        .36321E-05     .0000    
   8  Prefactor     6.4935        5.9137        .62998E-05    .72184E-06
   9  norm          7.6645        2.1457        .22094E-05    .26757E-04
  10  norm          .10000E-03    2.7916        .24396E-03** at limit **
  11  norm          .10000E-03    20.905        .36285E-03** at limit **
  12  norm          1.5078        1.8228        .43803E-05    .15572E-05
  13  Prefactor     .46058        44.560        .15767        .11787E-03
  14  norm          2.5047        5.4299        .48964E-04    .17414E-04
  15  norm          .31296        73.261        .76501E-03    .29573E-05
  16  norm          .10000E-03    19.577        .36285E-03** at limit **
  17  Prefactor     .10028E-03    28.907        .13264    ** at limit **
  18  Prefactor     .10000E-03    295.36        .36285E-03** at limit **
  19  norm          .10000E-03    1.6164        .36469E-04** at limit **
  20  Normalizat    .99653        .34185        .17153E-04    .21077E-04
  21  Prefactor     1.0992        .13296        .32080E-04    .43589E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.58704
  norm       = 19.4591
  Prefactor  = 6.49351
  norm       = 7.66448
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.50784
  Prefactor  = 0.460582
  norm       = 2.50472
  norm       = 0.312964
  norm       = 0.0001
  Prefactor  = 0.000100285
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.996532
  Prefactor  = 1.09925
 **********
 **   18 **HESSE 
 **********

 FCN=   5591.788     FROM HESSE     STATUS=OK           315 CALLS     4460 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.6690        .63022E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.0474        .29850E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    70.260        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.4041        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.056        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.5870        11.900        .10945E-05   -1.5122    
   7  norm          19.459        20.838        .36321E-05   -1.4825    
   8  Prefactor     6.4935        5.9127        .12600E-05   -1.5198    
   9  norm          7.6645        2.1451        .44188E-06   -1.5154    
  10  norm          .10000E-03    2.7916        .48791E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    20.905        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.5078        1.8225        .87607E-06   -1.5462    
  13  Prefactor     .46058        44.663        .15736       -1.5572    
  14  norm          2.5047        5.4276        .19586E-05   -1.5391    
  15  norm          .31296        73.252        .30600E-04   -1.5596    
  16  norm          .10000E-03    19.577        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10028E-03    28.933        .13253       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    295.37        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.6164        .72937E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .99653        .34168        .34306E-05   -.93147    
  21  Prefactor     1.0992        .13295        .64161E-05   -.89491    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.28341e-10
Minuit parameter uncertainties:
  1  1.05264e-06
  2  8.16537e-08
  3  5.3796e-06
  4  1.21589e-06
  5  3.10045e-07
  6  11.9036
  7  20.8457
  8  5.91319
  9  2.14508
  10  4.44145e-08
  11  1.65494e-06
  12  1.82257
  13  9.07704
  14  5.4287
  15  9.58639
  16  4.34913e-06
  17  0.00574403
  18  9.25913e-07
  19  7.37818e-08
  20  0.342429
  21  0.132995
Done.

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

Extracting fit parameters...

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  1.000e-04  4.441e-08  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.099e+00  1.330e-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:  9.965e-01  3.424e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 299.796 -42.785
Photon Flux Upper Limit: 6.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.41e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/559932/likelihoodResults_662083201_662342401_4FGL_J1959.1-4247_daily_bin1631.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) = 5591.78934093
delta logL = -0.00166969509974

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5591.78767121
delta logL = 3.07209120365e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2622       1.0000          .0000       5.0000    
     3 'Normalizat'    .99654       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0992       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=   5591.788     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      229 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    155.98        .12226E-01** at limit **
   2  alpha         1.9081        3.2450        .16556        .10232E-07
   3  Normalizat    .99653        .60359E-01    .42882E-03    .20867E-03
   4  Prefactor     1.0992        .23764E-01    .16040E-03    .53117E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.9081
  Normalizat = 0.996533
  Prefactor  = 1.09925
 **********
 **   18 **HESSE 
 **********

 FCN=   5591.788     FROM HESSE     STATUS=OK            23 CALLS      252 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.9618        .12557E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9081        3.0922        .66223E-02   -.23903    
   3  Normalizat    .99653        .33502        .17153E-04   -.93147    
   4  Prefactor     1.0992        .13214        .32080E-04   -.89491    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.58159e-10
Minuit parameter uncertainties:
  1  6.01187e-05
  2  251.813
  3  0.335734
  4  0.132181
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/559932': 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) = 5591.78767023
delta logL = 1.00803299574e-06

Extracting fit parameters...

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  1.000e-04  6.012e-05  1.000e-04  1.000e+04 ( 1.000e-12)
376        alpha:  1.908e+00  2.518e+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.099e+00  1.322e-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:  9.965e-01  3.357e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/559932/cmap_HighResolution_662083201_662342401_4FGL_J1959.1-4247_daily_bin1631.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.41e-05', job_status='DONE', photon_flux_upper_limit='6.69e-08', time_completed='2021-12-28 00:44:13.278643', job_id='559932', GAL2='1.10', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1640681053.28', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='1.01e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='1631' AND source_name='4FGL J1959.1-4247' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 28 00:44:13 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 559932: <4FGL_J1959.1-4247_daily_bin1631> in cluster <slac> Done

Job <4FGL_J1959.1-4247_daily_bin1631> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Dec 28 00:30:28 2021
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 28 00:30:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 28 00:30:30 2021
Terminated at Tue Dec 28 00:44:14 2021
Results reported at Tue Dec 28 00:44:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1959.1-4247_daily_bin1631 299.796 -42.7852 662083201 662342401 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 :                                   761.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             289.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   823 sec.
    Turnaround time :                            826 sec.

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

