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


Performing analysis on: 4FGL_J1613.6+3411_daily_bin676
RA = 243.421, Dec = 34.1982
tmin = 414547201, tmax = 414806401
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='187075', job_status='RUN', time_executed='2021-09-13 17:36:54.824353', time_epoch_executed='1631579814.82' WHERE source_name='4FGL J1613.6+3411' and cadence='daily' and bin_id='676'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/187075

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/187075/ft1_4FGL_J1613.6+3411_daily_bin676.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/187075/ft2_4FGL_J1613.6+3411_daily_bin676.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/187075/ft1_4FGL_J1613.6+3411_daily_bin676.fits outfile=/scratch/kocevski/187075/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin676.fits ra=243.421 dec=34.1982 rad=12.0 tmin=414547201.0 tmax=414806401.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.85
user 4.58
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/187075/ft2_4FGL_J1613.6+3411_daily_bin676.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/187075/ft2_4FGL_J1613.6+3411_daily_bin676.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/187075/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin676.fits evtable="EVENTS" outfile="/scratch/kocevski/187075/ft1_filtered_4FGL_J1613.6+3411_daily_bin676.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.30
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/187075/ft1_filtered_4FGL_J1613.6+3411_daily_bin676.fits" evtable="EVENTS" scfile=/scratch/kocevski/187075/ft2_4FGL_J1613.6+3411_daily_bin676.fits sctable="SC_DATA" outfile=/scratch/kocevski/187075/ltcube_414547201_414806401_4FGL_J1613.6+3411_daily_bin676.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/187075/ft2_4FGL_J1613.6+3411_daily_bin676.fits
.....................!
real 14.03
user 13.63
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/187075/ft1_filtered_4FGL_J1613.6+3411_daily_bin676.fits evtable="EVENTS" scfile=/scratch/kocevski/187075/ft2_4FGL_J1613.6+3411_daily_bin676.fits sctable="SC_DATA" expcube=/scratch/kocevski/187075/ltcube_414547201_414806401_4FGL_J1613.6+3411_daily_bin676.fits outfile=/scratch/kocevski/187075/expmap_414547201_414806401_4FGL_J1613.6+3411_daily_bin676.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/187075/ltcube_414547201_414806401_4FGL_J1613.6+3411_daily_bin676.fits
.....................!
real 156.01
user 151.20
sys 4.47

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

Setting source of interest to:
4FGL J1613.6+3411 @ 243.421 34.1982

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/187075/ft1_filtered_4FGL_J1613.6+3411_daily_bin676.fits scfile=/scratch/kocevski/187075/ft2_4FGL_J1613.6+3411_daily_bin676.fits outfile=/scratch/kocevski/187075/cmap_414547201_414806401_4FGL_J1613.6+3411_daily_bin676.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=243.421 yref=34.1982 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.50
user 0.34
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/187075/ft1_filtered_4FGL_J1613.6+3411_daily_bin676.fits scfile=/scratch/kocevski/187075/ft2_4FGL_J1613.6+3411_daily_bin676.fits outfile=/scratch/kocevski/187075/cmap_HighResolution_414547201_414806401_4FGL_J1613.6+3411_daily_bin676.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=243.421 yref=34.1982 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.49
user 0.33
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/187075/ft1_filtered_4FGL_J1613.6+3411_daily_bin676.fits evtable="EVENTS" scfile=/scratch/kocevski/187075/ft2_4FGL_J1613.6+3411_daily_bin676.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/187075/Model_4FGL_J1613.6+3411_daily_bin676.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/187075/ft1_filtered_4FGL_J1613.6+3411_daily_bin676.fits.....................!
real 43.45
user 42.36
sys 1.00

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/187075/ft1_filtered_4FGL_J1613.6+3411_daily_bin676.fits', '/scratch/kocevski/187075/ft2_4FGL_J1613.6+3411_daily_bin676.fits', expMap='/scratch/kocevski/187075/expmap_414547201_414806401_4FGL_J1613.6+3411_daily_bin676.fits', expCube='/scratch/kocevski/187075/ltcube_414547201_414806401_4FGL_J1613.6+3411_daily_bin676.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/187075/Model_4FGL_J1613.6+3411_daily_bin676.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1613.6+3411'

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  2.261e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  2.437e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
278        Scale:  7.801e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/187075/ft1_filtered_4FGL_J1613.6+3411_daily_bin676.fits
Spacecraft file(s): /scratch/kocevski/187075/ft2_4FGL_J1613.6+3411_daily_bin676.fits
Exposure map: /scratch/kocevski/187075/expmap_414547201_414806401_4FGL_J1613.6+3411_daily_bin676.fits
Exposure cube: /scratch/kocevski/187075/ltcube_414547201_414806401_4FGL_J1613.6+3411_daily_bin676.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/187075/Model_4FGL_J1613.6+3411_daily_bin676.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) = 6756.30969455

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    10.758       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14023E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    61.635       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11886E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.946       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .53002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.2605       1.0000         .10000E-03   10000.    
    13 'norm      '    7.2685       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.746       1.0000         .10000E-03   10000.    
    15 'norm      '    .10150E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.8652       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .53351       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.5629       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .88169       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .88752       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+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=   6756.046     FROM MIGRAD    STATUS=CONVERGED    866 CALLS     2870 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    61.360        .18142E-02** at limit **
   2  norm          10.761        2.8844        .58587E-04    .16535E-02
   3  Prefactor     .86046E-02    21.105        .66528E-01    .41477E-03
   4  Prefactor     61.655        39.383        .25555E-03    .17668E-03
   5  Prefactor     .10000E-03    8.7843        .18142E-02** at limit **
   6  norm          .10000E-03    5.7464        .18142E-02** at limit **
   7  Prefactor     .10001E-03    10.399        .16420E-02** at limit **
   8  Prefactor     20.919        37.010        .87515E-04   -.83841E-04
   9  Prefactor     .10000E-03    2.5013        .12684E-02** at limit **
  10  Prefactor     .10000E-03    3.2306        .14266E-02** at limit **
  11  Prefactor     .10041E-03    6.7196        .42438E-01** at limit **
  12  norm          1.2605        .34839        .18121E-04    .19856E-02
  13  norm          7.2653        19.628        .14878E-03    .26592E-04
  14  Prefactor     15.714        37.784        .10094E-03    .55641E-04
  15  norm          .10000E-03    58.504        .18142E-02** at limit **
  16  Prefactor     .10000E-03    1.4960        .15004E-02** at limit **
  17  Prefactor     2.8653        1.9428        .82046E-04    .18374E-03
  18  Prefactor     .39059        111.39        .40797E-02    .16125E-03
  19  Prefactor     .10000E-03    1.0994        .84094E-03** at limit **
  20  norm          3.5624        1.9045        .80014E-04    .52571E-05
  21  Normalizat    .88214        .24165        .30177E-03   -.19666E-04
  22  Prefactor     .88768        .15949        .20880E-03    .90382E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 10.7608
  Prefactor  = 0.00860461
  Prefactor  = 61.6552
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 20.9191
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100411
  norm       = 1.26049
  norm       = 7.26535
  Prefactor  = 15.7139
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.86533
  Prefactor  = 0.39059
  Prefactor  = 0.0001
  norm       = 3.56241
  Normalizat = 0.882144
  Prefactor  = 0.887683
 **********
 **   18 **HESSE 
 **********

 FCN=   6756.046     FROM HESSE     STATUS=OK           342 CALLS     3212 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    61.361        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          10.761        2.8573        .11717E-04   -1.5052    
   3  Prefactor     .86046E-02    16.839        .75341E-01   -1.5690    
   4  Prefactor     61.655        39.322        .51110E-04   -1.4136    
   5  Prefactor     .10000E-03    8.7845        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.7466        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    10.538        .32841E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.919        36.998        .17503E-04   -1.4793    
   9  Prefactor     .10000E-03    2.5014        .25368E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.2320        .28532E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10041E-03    5.0038        .51296E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.2605        .34829        .72485E-06   -1.5483    
  13  norm          7.2653        19.604        .59511E-05   -1.5169    
  14  Prefactor     15.714        37.760        .40374E-05   -1.4915    
  15  norm          .10000E-03    58.507        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.4966        .30007E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.8653        1.9415        .32819E-05   -1.5369    
  18  Prefactor     .39059        110.14        .16319E-03   -1.5583    
  19  Prefactor     .10000E-03    1.0994        .16819E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.5624        1.9044        .32006E-05   -1.5330    
  21  Normalizat    .88214        .24147        .12071E-04   -.97090    
  22  Prefactor     .88768        .15959        .83521E-05   -.96573    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71096e-09
Minuit parameter uncertainties:
  1  0.000228025
  2  2.85736
  3  0.757067
  4  39.3384
  5  1.88991e-06
  6  3.56359e-06
  7  0.000580499
  8  37.0381
  9  5.55025e-06
  10  3.8216e-06
  11  0.00286738
  12  0.348295
  13  19.6216
  14  37.8171
  15  0.000341024
  16  2.48047e-05
  17  1.94149
  18  13.1404
  19  1.45733e-06
  20  1.90444
  21  0.241765
  22  0.159678
Done.

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

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  1.000e-04  3.822e-06  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  2.437e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
278        Scale:  7.801e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  8.877e-01  1.597e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  8.821e-01  2.418e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 243.421 34.198
Photon Flux Upper Limit: 9.18e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/187075/likelihoodResults_414547201_414806401_4FGL_J1613.6+3411_daily_bin676.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) = 6756.04771573
delta logL = -0.00147577212556

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6756.04624113
delta logL = -1.17559193313e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11267E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4720       1.0000          .0000       10.000    
     3 'Normalizat'    .88219       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88768       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+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=   6756.012     FROM MIGRAD    STATUS=FAILED       165 CALLS      319 TOTAL
                     EDM=   .32E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20378        16.372        .30070E-02   -.69951E-01
   2  Index         3.8087        2.0093        .41746        .13695E-04
   3  Normalizat    .85800        .24771E-01    .30176E-03   -.76856E-05
   4  Prefactor     .89785        .17300E-01    .20880E-03   -.53902E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6756.012     FROM SIMPLEX   STATUS=UNCHANGED     72 CALLS      391 TOTAL
                     EDM=   .97E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20378        16.372        .12204E-03   -.69951E-01
   2  Index         3.8087        2.0093        .23225E-02    .13695E-04
   3  Normalizat    .85800        .24771E-01    .84231E-04   -.76856E-05
   4  Prefactor     .89785        .17300E-01    .23308E-04   -.53902E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6756.012     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      433 TOTAL
                     EDM=   .44E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20378        1.3835        .60140E-03   -.11766E-03
   2  Index         3.8087        2.2470        .67278E-02    .32799E-05
   3  Normalizat    .85800        .24098        .12070E-04   -.37674E-06
   4  Prefactor     .89785        .16106        .83522E-05    .81670E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.203785
  Index      = 3.80874
  Normalizat = 0.857999
  Prefactor  = 0.897853
 **********
 **   18 **HESSE 
 **********

 FCN=   6756.012     FROM HESSE     STATUS=OK            27 CALLS      460 TOTAL
                     EDM=   .21E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .20378        1.5986        .24056E-04   -1.5798    
   2  Index         3.8087        2.3824        .26911E-03   -.24057    
   3  Normalizat    .85800        .24102        .24141E-05   -.97952    
   4  Prefactor     .89785        .16072        .16704E-05   -.96216    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09262e-13
Minuit parameter uncertainties:
  1  1.14128
  2  2.4901
  3  0.241326
  4  0.160808
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/187075': 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) = 6756.01199033
delta logL = 0.0342496271915

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  2.038e-01  1.141e+00  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  3.809e+00  2.490e+00  0.000e+00  1.000e+01 (-1.000e+00)
278        Scale:  7.801e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  8.979e-01  1.608e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  8.580e-01  2.413e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 243.421 34.198

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/187075/cmap_HighResolution_414547201_414806401_4FGL_J1613.6+3411_daily_bin676.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.11e-03', job_status='DONE', photon_flux_upper_limit='9.18e-08', time_completed='2021-09-13 17:47:28.371030', job_id='187075', GAL2='0.90', fit_tolerance='1e-08', EG2='0.86', EG='0.88', time_epoch_completed='1631580448.37', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='3.42e-02', ts2='0.08', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='676' AND source_name='4FGL J1613.6+3411' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 17:47:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 187075: <4FGL_J1613.6+3411_daily_bin676> in cluster <slac> Done

Job <4FGL_J1613.6+3411_daily_bin676> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 13 17:35:16 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 17:36:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 13 17:36:42 2021
Terminated at Mon Sep 13 17:47:29 2021
Results reported at Mon Sep 13 17:47:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1613.6+3411_daily_bin676 243.421 34.1982 414547201 414806401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1613.6+3411 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   629.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             283.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   646 sec.
    Turnaround time :                            733 sec.

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

