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


Performing analysis on: 4FGL_J1613.6+3411_daily_bin1311
RA = 243.421, Dec = 34.1982
tmin = 579139201, tmax = 579398401
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='191662', job_status='RUN', time_executed='2021-09-13 17:55:02.582823', time_epoch_executed='1631580902.58' WHERE source_name='4FGL J1613.6+3411' and cadence='daily' and bin_id='1311'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191662

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191662/ft1_4FGL_J1613.6+3411_daily_bin1311.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191662/ft2_4FGL_J1613.6+3411_daily_bin1311.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191662/ft1_4FGL_J1613.6+3411_daily_bin1311.fits outfile=/scratch/kocevski/191662/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin1311.fits ra=243.421 dec=34.1982 rad=12.0 tmin=579139201.0 tmax=579398401.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.55
user 3.31
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/191662/ft2_4FGL_J1613.6+3411_daily_bin1311.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/191662/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin1311.fits evtable="EVENTS" outfile="/scratch/kocevski/191662/ft1_filtered_4FGL_J1613.6+3411_daily_bin1311.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.51
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/191662/ft1_filtered_4FGL_J1613.6+3411_daily_bin1311.fits" evtable="EVENTS" scfile=/scratch/kocevski/191662/ft2_4FGL_J1613.6+3411_daily_bin1311.fits sctable="SC_DATA" outfile=/scratch/kocevski/191662/ltcube_579139201_579398401_4FGL_J1613.6+3411_daily_bin1311.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/191662/ft2_4FGL_J1613.6+3411_daily_bin1311.fits
.....................!
real 13.85
user 13.45
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191662/ft1_filtered_4FGL_J1613.6+3411_daily_bin1311.fits evtable="EVENTS" scfile=/scratch/kocevski/191662/ft2_4FGL_J1613.6+3411_daily_bin1311.fits sctable="SC_DATA" expcube=/scratch/kocevski/191662/ltcube_579139201_579398401_4FGL_J1613.6+3411_daily_bin1311.fits outfile=/scratch/kocevski/191662/expmap_579139201_579398401_4FGL_J1613.6+3411_daily_bin1311.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/191662/ltcube_579139201_579398401_4FGL_J1613.6+3411_daily_bin1311.fits
.....................!
real 192.46
user 186.55
sys 5.36

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/191662/ft1_filtered_4FGL_J1613.6+3411_daily_bin1311.fits scfile=/scratch/kocevski/191662/ft2_4FGL_J1613.6+3411_daily_bin1311.fits outfile=/scratch/kocevski/191662/cmap_579139201_579398401_4FGL_J1613.6+3411_daily_bin1311.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/191662/ft1_filtered_4FGL_J1613.6+3411_daily_bin1311.fits scfile=/scratch/kocevski/191662/ft2_4FGL_J1613.6+3411_daily_bin1311.fits outfile=/scratch/kocevski/191662/cmap_HighResolution_579139201_579398401_4FGL_J1613.6+3411_daily_bin1311.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.55
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/191662/ft1_filtered_4FGL_J1613.6+3411_daily_bin1311.fits', '/scratch/kocevski/191662/ft2_4FGL_J1613.6+3411_daily_bin1311.fits', expMap='/scratch/kocevski/191662/expmap_579139201_579398401_4FGL_J1613.6+3411_daily_bin1311.fits', expCube='/scratch/kocevski/191662/ltcube_579139201_579398401_4FGL_J1613.6+3411_daily_bin1311.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/191662/Model_4FGL_J1613.6+3411_daily_bin1311.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/191662/ft1_filtered_4FGL_J1613.6+3411_daily_bin1311.fits
Spacecraft file(s): /scratch/kocevski/191662/ft2_4FGL_J1613.6+3411_daily_bin1311.fits
Exposure map: /scratch/kocevski/191662/expmap_579139201_579398401_4FGL_J1613.6+3411_daily_bin1311.fits
Exposure cube: /scratch/kocevski/191662/ltcube_579139201_579398401_4FGL_J1613.6+3411_daily_bin1311.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/191662/Model_4FGL_J1613.6+3411_daily_bin1311.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) = 5940.45973884

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    59.621       1.0000         .10000E-03   10000.    
     2 'norm      '    1.7469       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   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 '    .10156E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.519       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10357       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    10.085       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.5084       1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.280       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .65624       1.0000         .10000E-03   10000.    
    20 'norm      '    3.3939       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3618       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .65390       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.

 FCN=   5940.447     FROM MIGRAD    STATUS=CONVERGED    474 CALLS     2390 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     59.620        74.060       -.90976E-07   -.10027E-04
   2  norm          1.7463        1.1816       -.59690E-07   -.34229E-03
   3  Prefactor     .10000E-03    7.2055       -.27216E-06** at limit **
   4  Prefactor     .10000E-03    15.819       -.26749E-06** at limit **
   5  Prefactor     .10000E-03    6.0729        .74631E-07** at limit **
   6  norm          .10000E-03    4.8394       -.60476E-07** at limit **
   7  Prefactor     .10003E-03    2.0146        .11559E-05** at limit **
   8  Prefactor     .10000E-03    15.560       -.14006E-06** at limit **
   9  Prefactor     12.519        14.021        .58378E-07   -.43862E-04
  10  Prefactor     .10000E-03    1.8065        .14672E-07** at limit **
  11  Prefactor     .10000E-03    1.3403       -.63521E-07** at limit **
  12  norm          .10357        .10774        .84377E-07    .44820E-02
  13  norm          .10000E-03    8.3730       -.31762E-06** at limit **
  14  Prefactor     .10000E-03    12.004        .59339E-06** at limit **
  15  norm          10.076        41.021       -.42873E-06    .22426E-04
  16  Prefactor     .10000E-03    .72721       -.64118E-06** at limit **
  17  Prefactor     4.5074        1.3742        .25308E-06    .40056E-02
  18  Prefactor     20.278        17.377       -.23021E-07   -.42496E-04
  19  Prefactor     .65598        2.5857        .70287E-06   -.13105E-03
  20  norm          3.3939        1.7634       -.12722E-07    .25326E-03
  21  Normalizat    1.3618        .18847       -.87704E-07   -.45768E-04
  22  Prefactor     .65389        .14147        .70899E-07   -.70093E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 59.6195
  norm       = 1.74625
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100026
  Prefactor  = 0.0001
  Prefactor  = 12.5189
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.103572
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 10.0757
  Prefactor  = 0.0001
  Prefactor  = 4.50744
  Prefactor  = 20.2781
  Prefactor  = 0.655976
  norm       = 3.39389
  Normalizat = 1.36183
  Prefactor  = 0.653892
 **********
 **   18 **HESSE 
 **********

 FCN=   5940.447     FROM HESSE     STATUS=OK           344 CALLS     2734 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     59.620        74.169        .51960E-04   -1.4162    
   2  norm          1.7463        1.1754        .66214E-04   -1.5444    
   3  Prefactor     .10000E-03    7.2918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.0777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.8480        .16563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10003E-03    5.7120        .16967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.519        14.027        .11321E-03   -1.5000    
  10  Prefactor     .10000E-03    1.8507        .20219E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.3580        .87096E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10357        .10247        .24329E-03   -1.5644    
  13  norm          .10000E-03    8.3854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.076        40.212        .12618E-03   -1.5073    
  16  Prefactor     .10000E-03    2.2501        .11500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.5074        1.4262        .46746E-04   -1.5283    
  18  Prefactor     20.278        17.381        .88941E-04   -1.4807    
  19  Prefactor     .65598        3.6858        .21270E-02   -1.5546    
  20  norm          3.3939        1.7615        .71154E-04   -1.5339    
  21  Normalizat    1.3618        .21877        .22949E-03   -.81739    
  22  Prefactor     .65389        .16510        .24389E-03   -1.0536    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.36081e-08
Minuit parameter uncertainties:
  1  74.284
  2  1.17538
  3  6.10078e-05
  4  0.000102476
  5  1.80706e-05
  6  1.39463e-05
  7  0.000764539
  8  5.74957e-05
  9  14.0308
  10  1.45123e-06
  11  1.90134e-06
  12  0.102474
  13  4.98996e-05
  14  0.000178355
  15  40.3045
  16  3.83515e-05
  17  1.42618
  18  17.3853
  19  3.1099
  20  1.76154
  21  0.21892
  22  0.165223
Done.

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

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  1.000e-04  1.451e-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:  6.539e-01  1.652e-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:  1.362e+00  2.189e-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: 6.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/191662/likelihoodResults_579139201_579398401_4FGL_J1613.6+3411_daily_bin1311.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) = 5940.4492346
delta logL = -0.00256882216763

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5940.44666574
delta logL = 3.90455170418e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4243       1.0000          .0000       10.000    
     3 'Normalizat'    1.3619       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65391       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=   5940.447     FROM MIGRAD    STATUS=FAILED        85 CALLS      238 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10090E-03    46.104        .10184E-02** at limit **
   2  Index         2.3695        5.6870        .50000        .47484E-04
   3  Normalizat    1.3618        .23459E-01    .22949E-03   -.69206E-04
   4  Prefactor     .65389        .18033E-01    .24389E-03   -.27129E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5940.447     FROM SIMPLEX   STATUS=UNCHANGED    134 CALLS      372 TOTAL
                     EDM=   .93E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10090E-03    46.104        .22404E-03** at limit **
   2  Index         2.3695        5.6870        .23915E-03    .47484E-04
   3  Normalizat    1.3618        .23459E-01    .35505E-05   -.69206E-04
   4  Prefactor     .65389        .18033E-01    .41766E-05   -.27129E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5940.447     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      414 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    275.54        .20368E-03** at limit **
   2  Index         2.1572        6.0786        .50000        .39927E-07
   3  Normalizat    1.3618        .68468E-01    .45898E-04    .45517E-03
   4  Prefactor     .65389        .52616E-01    .97557E-05    .44796E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.15721
  Normalizat = 1.36183
  Prefactor  = 0.653893
 **********
 **   18 **HESSE 
 **********

 FCN=   5940.447     FROM HESSE     STATUS=OK            29 CALLS      443 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.7425        .40736E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1572        5.0702        .50000       -.60475    
   3  Normalizat    1.3618        .21191        .91795E-05   -.81739    
   4  Prefactor     .65389        .16287        .19511E-05   -1.0536    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17702e-10
Minuit parameter uncertainties:
  1  2.70433e-06
  2  77.3934
  3  0.212042
  4  0.162988
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191662': 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) = 5940.44666375
delta logL = 2.03559375223e-06

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  1.000e-04  2.704e-06  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  2.157e+00  7.739e+01  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:  6.539e-01  1.630e-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:  1.362e+00  2.120e-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/191662/cmap_HighResolution_579139201_579398401_4FGL_J1613.6+3411_daily_bin1311.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.97e-03', job_status='DONE', photon_flux_upper_limit='6.42e-08', time_completed='2021-09-13 18:06:29.645363', job_id='191662', GAL2='0.65', fit_tolerance='1e-08', EG2='1.36', EG='1.36', time_epoch_completed='1631581589.65', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='2.04e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='1311' AND source_name='4FGL J1613.6+3411' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 18:06:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 191662: <4FGL_J1613.6+3411_daily_bin1311> in cluster <slac> Done

Job <4FGL_J1613.6+3411_daily_bin1311> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep 13 17:50:55 2021
Job was executed on host(s) <bullet0163>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 17:51:55 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:51:55 2021
Terminated at Mon Sep 13 18:06:30 2021
Results reported at Mon Sep 13 18:06:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1613.6+3411_daily_bin1311 243.421 34.1982 579139201 579398401 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 :                                   683.38 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             272.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   874 sec.
    Turnaround time :                            935 sec.

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

