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


Performing analysis on: 4FGL_J1706.9+4543_daily_bin1180
RA = 256.743, Dec = 45.7248
tmin = 545184001, tmax = 545443201
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='401799', job_status='RUN', time_executed='2021-09-16 16:20:52.604074', time_epoch_executed='1631834452.6' WHERE source_name='4FGL J1706.9+4543' and cadence='daily' and bin_id='1180'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/401799

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/401799/ft1_4FGL_J1706.9+4543_daily_bin1180.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/401799/ft2_4FGL_J1706.9+4543_daily_bin1180.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/401799/ft1_4FGL_J1706.9+4543_daily_bin1180.fits outfile=/scratch/kocevski/401799/ft1_filteredMKT_4FGL_J1706.9+4543_daily_bin1180.fits ra=256.743 dec=45.7248 rad=12.0 tmin=545184001.0 tmax=545443201.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 4.04
user 3.81
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/401799/ft2_4FGL_J1706.9+4543_daily_bin1180.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/401799/ft2_4FGL_J1706.9+4543_daily_bin1180.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/401799/ft1_filteredMKT_4FGL_J1706.9+4543_daily_bin1180.fits evtable="EVENTS" outfile="/scratch/kocevski/401799/ft1_filtered_4FGL_J1706.9+4543_daily_bin1180.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.54
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/401799/ft1_filtered_4FGL_J1706.9+4543_daily_bin1180.fits" evtable="EVENTS" scfile=/scratch/kocevski/401799/ft2_4FGL_J1706.9+4543_daily_bin1180.fits sctable="SC_DATA" outfile=/scratch/kocevski/401799/ltcube_545184001_545443201_4FGL_J1706.9+4543_daily_bin1180.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/401799/ft2_4FGL_J1706.9+4543_daily_bin1180.fits
.....................!
real 13.80
user 13.42
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/401799/ft1_filtered_4FGL_J1706.9+4543_daily_bin1180.fits evtable="EVENTS" scfile=/scratch/kocevski/401799/ft2_4FGL_J1706.9+4543_daily_bin1180.fits sctable="SC_DATA" expcube=/scratch/kocevski/401799/ltcube_545184001_545443201_4FGL_J1706.9+4543_daily_bin1180.fits outfile=/scratch/kocevski/401799/expmap_545184001_545443201_4FGL_J1706.9+4543_daily_bin1180.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/401799/ltcube_545184001_545443201_4FGL_J1706.9+4543_daily_bin1180.fits
.....................!
real 193.56
user 188.04
sys 5.02

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 212 point sources and 0 extended sources

Setting source of interest to:
4FGL J1706.9+4543 @ 256.743 45.7248

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/401799/ft1_filtered_4FGL_J1706.9+4543_daily_bin1180.fits scfile=/scratch/kocevski/401799/ft2_4FGL_J1706.9+4543_daily_bin1180.fits outfile=/scratch/kocevski/401799/cmap_545184001_545443201_4FGL_J1706.9+4543_daily_bin1180.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=256.743 yref=45.7248 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/401799/ft1_filtered_4FGL_J1706.9+4543_daily_bin1180.fits scfile=/scratch/kocevski/401799/ft2_4FGL_J1706.9+4543_daily_bin1180.fits outfile=/scratch/kocevski/401799/cmap_HighResolution_545184001_545443201_4FGL_J1706.9+4543_daily_bin1180.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=256.743 yref=45.7248 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/401799/ft1_filtered_4FGL_J1706.9+4543_daily_bin1180.fits evtable="EVENTS" scfile=/scratch/kocevski/401799/ft2_4FGL_J1706.9+4543_daily_bin1180.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/401799/Model_4FGL_J1706.9+4543_daily_bin1180.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/401799/ft1_filtered_4FGL_J1706.9+4543_daily_bin1180.fits.........................!
real 18.09
user 16.80
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/401799/ft1_filtered_4FGL_J1706.9+4543_daily_bin1180.fits', '/scratch/kocevski/401799/ft2_4FGL_J1706.9+4543_daily_bin1180.fits', expMap='/scratch/kocevski/401799/expmap_545184001_545443201_4FGL_J1706.9+4543_daily_bin1180.fits', expCube='/scratch/kocevski/401799/ltcube_545184001_545443201_4FGL_J1706.9+4543_daily_bin1180.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/401799/Model_4FGL_J1706.9+4543_daily_bin1180.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1706.9+4543'

4FGL J1706.9+4543
   Spectrum: PowerLaw
350    Prefactor:  1.137e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
351        Index:  2.819e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
352        Scale:  5.400e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/401799/ft1_filtered_4FGL_J1706.9+4543_daily_bin1180.fits
Spacecraft file(s): /scratch/kocevski/401799/ft2_4FGL_J1706.9+4543_daily_bin1180.fits
Exposure map: /scratch/kocevski/401799/expmap_545184001_545443201_4FGL_J1706.9+4543_daily_bin1180.fits
Exposure cube: /scratch/kocevski/401799/ltcube_545184001_545443201_4FGL_J1706.9+4543_daily_bin1180.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/401799/Model_4FGL_J1706.9+4543_daily_bin1180.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) = 615.575873487

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3380       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .74459E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .61078E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .41013E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    7.7855       1.0000         .10000E-03   10000.    
     7 'norm      '    1.3071       1.0000         .10000E-03   10000.    
     8 'norm      '    .18923E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    50.580       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .29694E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    1.0226       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.9589       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .70204E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.1751       1.0000         .10000E-03   10000.    
    17 'norm      '    .10207E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10096E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .17350E-01   1.0000         .10000E-03   10000.    
    20 'norm      '    3.6874       1.0000         .10000E-03   10000.    
    21 'norm      '    .42303E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    .24357E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.8498       1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.6363       1.0000         .10000E-03   10000.    
    25 'norm      '    .27698       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .14000E-01   1.0000         .10000E-03   10000.    
    27 'norm      '    3.6247       1.0000         .10000E-03   10000.    
    28 'Prefactor '    5.3702       1.0000         .10000E-03   10000.    
    29 'Prefactor '    5.8055       1.0000         .10000E-03   10000.    
    30 'Prefactor '    8.6567       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .81722       1.0000         .10000E-03   10000.    
    32 'Prefactor '    78.613       1.0000         .10000E-03   10000.    
    33 'norm      '    9.0220       1.0000         .10000E-03   10000.    
    34 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    35 'Prefactor '    1.3406       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6890E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   613.6498     FROM MIGRAD    STATUS=CONVERGED    365 CALLS      774 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12529E-03    972.39        .94780E-02** at limit **
   2  Prefactor     .10000E-03    43.890        .92992E-02** at limit **
   3  Prefactor     .10000E-03    135.02        .93240E-02** at limit **
   4  Prefactor     .10002E-03    444.37        .92261E-02** at limit **
   5  Prefactor     .10000E-03    13.338        .90712E-02** at limit **
   6  norm          .33357E-01    6440.1        .35928E-02    .28231E-02
   7  norm          1.3205        .49409        .23547E-02    .26751E-01
   8  norm          .10000E-03    36.840        .90712E-02** at limit **
   9  Prefactor     50.379        55.340        .14097E-02    .51223E-03
  10  Prefactor     .10000E-03    17.252        .99197E-02** at limit **
  11  norm          .10000E-03    87.469        .12722E-01** at limit **
  12  Prefactor     .10000E-03    2.6434        .90712E-02** at limit **
  13  Prefactor     5.0326        4.1953        .45150E-02    .74479E-01
  14  Prefactor     .10000E-03    69.124        .93475E-02** at limit **
  15  Prefactor     .10000E-03    8.4805        .90712E-02** at limit **
  16  Prefactor     5.1751        1.0047         .0000         .0000    
  17  norm          .10000E-03    .20571       -.38749E-06** at limit **
  18  norm          .10000E-03    .20571        .77547E-07** at limit **
  19  Prefactor     .10000E-03    .20746       -.44416E-06** at limit **
  20  norm          3.7591        1.0193        .22721E-06    .57116E-04
  21  norm          .10000E-03    .23581       -.21682E-05** at limit **
  22  norm          .10000E-03    .20571       -.11179E-06** at limit **
  23  Prefactor     1.8498        1.0422         .0000         .0000    
  24  Prefactor     54.810        2.3828       -.86583E-05    .33499E-02
  25  norm          .10000E-03    .26644        .53206E-07** at limit **
  26  Prefactor     .10002E-03    .20670       -.14517E-05** at limit **
  27  norm          3.6247        1.0098         .0000         .0000    
  28  Prefactor     .35086E-01    .81092E-01   -.14350E-04    .56632E-02
  29  Prefactor     5.8055        1.0038         .0000         .0000    
  30  Prefactor     8.6567        1.0017         .0000         .0000    
  31  Prefactor     .10000E-03    .39086       -.55832E-05** at limit **
  32  Prefactor     106.04        1.1598        .10786E-04    .49343E-02
  33  norm          4.8316        .73308        .10137E-04    .30086E-02
  34  Normalizat    .10000E-01    .25505        .17325E-05** at limit **
  35  Prefactor     1.2950        1.0542       -.15890E-05   -.28691E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000125294
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100019
  Prefactor  = 0.0001
  norm       = 0.033357
  norm       = 1.32047
  norm       = 0.0001
  Prefactor  = 50.3788
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 5.03259
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 5.17505
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.7591
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 1.84976
  Prefactor  = 54.8099
  norm       = 0.0001
  Prefactor  = 0.000100022
  norm       = 3.62474
  Prefactor  = 0.0350858
  Prefactor  = 5.80546
  Prefactor  = 8.65668
  Prefactor  = 0.000100003
  Prefactor  = 106.037
  norm       = 4.83163
  Normalizat = 0.01
  Prefactor  = 1.29505
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   613.6498     FROM HESSE     STATUS=FAILED        41 CALLS      815 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12529E-03    972.39        .94780E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    43.890        .92992E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    135.02        .93240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10002E-03    444.37        .92261E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.338        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .33357E-01    6440.1        .35928E-02   -1.5671    
   7  norm          1.3205        .49409        .23547E-02   -1.5478    
   8  norm          .10000E-03    36.840        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     50.379        55.340        .14097E-02   -1.4287    
  10  Prefactor     .10000E-03    17.252        .99197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    87.469        .12722E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.6434        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.0326        4.1953        .45150E-02   -1.5259    
  14  Prefactor     .10000E-03    69.124        .93475E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.4805        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     529.77        524.55         .0000       -1.5253    
  17  norm          .10000E-03    .20571       -.38749E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .20571        .77547E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .20746       -.44416E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.7591        1.0193        .22721E-06   -1.5320    
  21  norm          .10000E-03    .23581       -.21682E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .20571       -.11179E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.8498        1.0422         .0000       -1.5436    
  24  Prefactor     54.810        2.3828       -.86583E-05   -1.4226    
  25  norm          .10000E-03    .26644        .53206E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10002E-03    .20670       -.14517E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          3.6247        1.0098         .0000       -1.5327    
  28  Prefactor     .35086E-01    .81092E-01   -.14350E-04   -1.5671    
  29  Prefactor     5.8055        1.0038         .0000       -1.5226    
  30  Prefactor     8.6567        1.0017         .0000       -1.5119    
  31  Prefactor     .10000E-03    .39086       -.55832E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     106.04        1.1598        .10786E-04   -1.3645    
  33  norm          4.8316        .73308        .10137E-04   -1.5268    
  34  Normalizat    .10000E-01    .25505        .17325E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Prefactor     1.2950        1.0542       -.15890E-05   -.83454    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 8.53018e-10
Minuit parameter uncertainties:
  1  0.318981
  2  3.8755e-06
  3  0.00119699
  4  0.00582107
  5  2.04091e-05
  6  20.7285
  7  0.494089
  8  3.89305e-05
  9  55.3964
  10  8.62136e-06
  11  0.000476955
  12  4.30383e-07
  13  4.19557
  14  0.000450984
  15  1.09913e-05
  16  1.00474
  17  4.34307e-06
  18  8.68742e-07
  19  1.85907e-05
  20  1.01926
  21  3.1523e-05
  22  1.30523e-06
  23  1.04221
  24  2.38276
  25  5.24836e-07
  26  0.000135324
  27  1.00984
  28  0.0810919
  29  1.00376
  30  1.00168
  31  6.90075e-05
  32  1.15982
  33  0.733083
  34  6.91311e-07
  35  1.07231
Done.

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

Extracting fit parameters...

4FGL J1706.9+4543
   Spectrum: PowerLaw
350    Prefactor:  1.000e-04  1.859e-05  1.000e-04  1.000e+04 ( 1.000e-12)
351        Index:  2.819e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
352        Scale:  5.400e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
686    Prefactor:  1.295e+00  1.072e+00  0.000e+00  1.000e+01 ( 1.000e+00)
687        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
688        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
685   Normalization:  1.000e-02  6.913e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 256.743 45.725
Photon Flux Upper Limit: 1.92e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.52e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/401799/likelihoodResults_545184001_545443201_4FGL_J1706.9+4543_daily_bin1180.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) = 613.649868481
delta logL = -6.69197063417e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 613.649802562
delta logL = -1.00115505575e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11731E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.5870       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2951       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6890E+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=   613.6498     FROM MIGRAD    STATUS=CONVERGED    111 CALLS      299 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    389.91        .14429E-01** at limit **
   2  Index         2.3591        8.4300        .50000        .14597E-06
   3  Normalizat    .10000E-01    .36226E-02    .85747E-02** at limit **
   4  Prefactor     1.2950        .29076E-01    .21499E-03   -.12447E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010001
  Index      = 2.35909
  Normalizat = 0.01
  Prefactor  = 1.29505
 **********
 **   18 **HESSE 
 **********

 FCN=   613.6498     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      328 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    2252.7        .22153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3591        8.2316        .50000       -.55646    
   3  Normalizat    .10000E-01    .23561E-01    .17149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2950        .74158E-01    .85995E-05   -.83454    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.16634e-09
Minuit parameter uncertainties:
  1  0.0099311
  2  3355.15
  3  3.19005e-07
  4  0.0741643
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/401799': 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): 102
logL (Free Index) = 613.649801451
delta logL = 1.10199266601e-07

Extracting fit parameters...

4FGL J1706.9+4543
   Spectrum: PowerLaw
350    Prefactor:  1.000e-04  9.931e-03  1.000e-04  1.000e+04 ( 1.000e-12)
351        Index:  2.359e+00  3.355e+03  0.000e+00  1.000e+01 (-1.000e+00)
352        Scale:  5.400e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
686    Prefactor:  1.295e+00  7.416e-02  0.000e+00  1.000e+01 ( 1.000e+00)
687        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
688        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
685   Normalization:  1.000e-02  3.190e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 256.743 45.725

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/401799/cmap_HighResolution_545184001_545443201_4FGL_J1706.9+4543_daily_bin1180.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.52e-01', job_status='DONE', photon_flux_upper_limit='1.92e-06', time_completed='2021-09-16 16:26:47.298576', job_id='401799', GAL2='1.30', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631834807.3', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='1.30', dlogl='1.10e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='1180' AND source_name='4FGL J1706.9+4543' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 16:26:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0191>
Subject: Job 401799: <4FGL_J1706.9+4543_daily_bin1180> in cluster <slac> Done

Job <4FGL_J1706.9+4543_daily_bin1180> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 16 16:20:20 2021
Job was executed on host(s) <bullet0191>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 16 16:20:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 16 16:20:43 2021
Terminated at Thu Sep 16 16:26:47 2021
Results reported at Thu Sep 16 16:26:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1706.9+4543_daily_bin1180 256.743 45.7248 545184001 545443201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1706.9+4543 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   353.45 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             327.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   366 sec.
    Turnaround time :                            387 sec.

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

