/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 218 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 = 7478
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1613.6+3411_daily_bin36
RA = 243.421, Dec = 34.1982
tmin = 248659201, tmax = 248918401
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='179531', job_status='RUN', time_executed='2021-09-13 17:14:49.072542', time_epoch_executed='1631578489.07' WHERE source_name='4FGL J1613.6+3411' and cadence='daily' and bin_id='36'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/179531

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/179531/ft1_4FGL_J1613.6+3411_daily_bin36.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/179531/ft2_4FGL_J1613.6+3411_daily_bin36.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/179531/ft1_4FGL_J1613.6+3411_daily_bin36.fits outfile=/scratch/kocevski/179531/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin36.fits ra=243.421 dec=34.1982 rad=12.0 tmin=248659201.0 tmax=248918401.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 1.42
user 1.25
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/179531/ft1_filtered_4FGL_J1613.6+3411_daily_bin36.fits" evtable="EVENTS" scfile=/scratch/kocevski/179531/ft2_4FGL_J1613.6+3411_daily_bin36.fits sctable="SC_DATA" outfile=/scratch/kocevski/179531/ltcube_248659201_248918401_4FGL_J1613.6+3411_daily_bin36.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/179531/ft2_4FGL_J1613.6+3411_daily_bin36.fits
.....................!
real 16.01
user 15.57
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/179531/ft1_filtered_4FGL_J1613.6+3411_daily_bin36.fits evtable="EVENTS" scfile=/scratch/kocevski/179531/ft2_4FGL_J1613.6+3411_daily_bin36.fits sctable="SC_DATA" expcube=/scratch/kocevski/179531/ltcube_248659201_248918401_4FGL_J1613.6+3411_daily_bin36.fits outfile=/scratch/kocevski/179531/expmap_248659201_248918401_4FGL_J1613.6+3411_daily_bin36.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/179531/ltcube_248659201_248918401_4FGL_J1613.6+3411_daily_bin36.fits
.....................!
real 191.29
user 185.71
sys 5.14

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/179531/ft1_filtered_4FGL_J1613.6+3411_daily_bin36.fits scfile=/scratch/kocevski/179531/ft2_4FGL_J1613.6+3411_daily_bin36.fits outfile=/scratch/kocevski/179531/cmap_248659201_248918401_4FGL_J1613.6+3411_daily_bin36.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/179531/ft1_filtered_4FGL_J1613.6+3411_daily_bin36.fits scfile=/scratch/kocevski/179531/ft2_4FGL_J1613.6+3411_daily_bin36.fits outfile=/scratch/kocevski/179531/cmap_HighResolution_248659201_248918401_4FGL_J1613.6+3411_daily_bin36.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/179531/ft1_filtered_4FGL_J1613.6+3411_daily_bin36.fits evtable="EVENTS" scfile=/scratch/kocevski/179531/ft2_4FGL_J1613.6+3411_daily_bin36.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/179531/Model_4FGL_J1613.6+3411_daily_bin36.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/179531/ft1_filtered_4FGL_J1613.6+3411_daily_bin36.fits.....................!
real 47.69
user 46.32
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.9778       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.3465       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    24.671       1.0000         .10000E-03   10000.    
     6 'norm      '    .10470E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.7440       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.9628       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .29794E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .37935       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.5318       1.0000         .10000E-03   10000.    
    12 'norm      '    .62963       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.009       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.7569       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.2477       1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.549       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.2907       1.0000         .10000E-03   10000.    
    20 'norm      '    .78136       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .83294       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0349       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=   5839.713     FROM MIGRAD    STATUS=CONVERGED    496 CALLS     2105 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    63.261        .77868E-06** at limit **
   2  norm          5.9837        2.0986        .40784E-06    .49285E-03
   3  Prefactor     1.3166        13.862       -.73783E-05    .26233E-03
   4  Prefactor     .10000E-03    28.175       -.13597E-06** at limit **
   5  Prefactor     24.672        18.538        .77124E-07   -.70668E-04
   6  norm          .10000E-03    4.8077       -.14456E-07** at limit **
   7  Prefactor     2.7453        2.6550        .13053E-07   -.15125E-03
   8  Prefactor     9.9603        15.823       -.60981E-06   -.21342E-03
   9  Prefactor     .10004E-03    9.7488       -.17402E-06** at limit **
  10  Prefactor     .37936        2.5184       -.14536E-05   -.10243E-02
  11  Prefactor     2.5310        3.7299       -.25444E-06   -.29255E-03
  12  norm          .62955        .23079       -.51657E-08   -.36446E-03
  13  norm          .10000E-03    4.7541       -.17294E-07** at limit **
  14  Prefactor     10.005        27.062        .56435E-06   -.80567E-04
  15  norm          .10000E-03    14.445        .63393E-06** at limit **
  16  Prefactor     1.7571        2.2244        .63550E-07   -.49391E-03
  17  Prefactor     1.2473        2.2123       -.13262E-06   -.56465E-03
  18  Prefactor     17.544        14.502       -.11887E-05    .71473E-03
  19  Prefactor     5.2903        3.5528        .36568E-07   -.27660E-03
  20  norm          .78103        1.4428       -.90497E-07   -.70563E-03
  21  Normalizat    .83307        .20629        .10078E-05    .46910E-04
  22  Prefactor     1.0350        .15429        .15325E-06    .58162E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 5.98367
  Prefactor  = 1.31664
  Prefactor  = 0.0001
  Prefactor  = 24.6718
  norm       = 0.0001
  Prefactor  = 2.74528
  Prefactor  = 9.96026
  Prefactor  = 0.000100037
  Prefactor  = 0.379361
  Prefactor  = 2.53099
  norm       = 0.62955
  norm       = 0.0001
  Prefactor  = 10.0055
  norm       = 0.000100001
  Prefactor  = 1.75713
  Prefactor  = 1.24725
  Prefactor  = 17.5443
  Prefactor  = 5.29027
  norm       = 0.781033
  Normalizat = 0.833066
  Prefactor  = 1.035
 **********
 **   18 **HESSE 
 **********

 FCN=   5839.713     FROM HESSE     STATUS=OK           358 CALLS     2463 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    63.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.9837        2.0911        .55473E-04   -1.5219    
   3  Prefactor     1.3166        15.586        .37731E-03   -1.5478    
   4  Prefactor     .10000E-03    28.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     24.672        18.542        .80648E-04   -1.4714    
   6  norm          .10000E-03    4.8093        .16357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.7453        2.6445        .11727E-03   -1.5377    
   8  Prefactor     9.9603        16.004        .63476E-03   -1.5077    
   9  Prefactor     .10004E-03    14.764        .69625E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .37936        3.3319        .26628E-03   -1.5585    
  11  Prefactor     2.5310        3.7323        .16861E-03   -1.5390    
  12  norm          .62955        .23398        .17761E-04   -1.5549    
  13  norm          .10000E-03    4.7542        .16273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.005        27.557        .12666E-03   -1.5075    
  15  norm          .10000E-03    14.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.7571        2.1997        .75988E-04   -1.5443    
  17  Prefactor     1.2473        2.1346        .89785E-04   -1.5485    
  18  Prefactor     17.544        14.374        .95608E-04   -1.4870    
  19  Prefactor     5.2903        3.5323        .11148E-03   -1.5248    
  20  norm          .78103        1.2036        .11894E-02   -1.5531    
  21  Normalizat    .83307        .24361        .29908E-03   -.98854    
  22  Prefactor     1.0350        .18230        .21123E-03   -.91572    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.74898e-09
Minuit parameter uncertainties:
  1  0.000511217
  2  2.09116
  3  9.06252
  4  0.000179791
  5  18.5466
  6  1.51988e-07
  7  2.64464
  8  16.0104
  9  0.00146971
  10  2.24841
  11  3.73262
  12  0.233983
  13  3.03814e-06
  14  27.5916
  15  0.00018971
  16  2.19984
  17  2.13468
  18  14.3771
  19  3.53246
  20  1.20363
  21  0.243933
  22  0.182406
Done.

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

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  3.794e-01  2.248e+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

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  1.035e+00  1.824e-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.331e-01  2.439e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/179531/likelihoodResults_248659201_248918401_4FGL_J1613.6+3411_daily_bin36.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) = 5839.45461469
delta logL = 0.258017349164

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5839.36092134
delta logL = 0.351710691179

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .90497E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    4.9210       1.0000          .0000       10.000    
     3 'Normalizat'    .75890       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0709       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.

 FCN=   5839.361     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      233 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .90348E-01    1.5593        .57818E-02    .33813E-02
   2  Index         4.9219        3.2952        .13283        .12996E-03
   3  Normalizat    .75893        .37651E-01    .70578E-01    .17632E-04
   4  Prefactor     1.0708        .29457E-01    .38817E-01   -.66669E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0903478
  Index      = 4.92191
  Normalizat = 0.758928
  Prefactor  = 1.07084
 **********
 **   18 **HESSE 
 **********

 FCN=   5839.361     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      266 TOTAL
                     EDM=   .94E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .90348E-01    5.7320        .25948E-04   -1.5648    
   2  Index         4.9219        7.3743        .74764E-02   -.15619E-01
   3  Normalizat    .75893        .19207        .31233E-03   -1.0161    
   4  Prefactor     1.0708        .14412        .20811E-03   -.90404    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.36596e-07
Minuit parameter uncertainties:
  1  1.43862
  2  9.09533
  3  0.192237
  4  0.144172
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/179531': 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) = 5839.36092129
delta logL = 0.351710747813

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  9.035e-02  1.439e+00  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  4.922e+00  9.095e+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:  1.071e+00  1.442e-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:  7.589e-01  1.922e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
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/179531/cmap_HighResolution_248659201_248918401_4FGL_J1613.6+3411_daily_bin36.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.29e-03', job_status='DONE', photon_flux_upper_limit='8.12e-08', time_completed='2021-09-13 17:25:17.638841', job_id='179531', GAL2='1.07', fit_tolerance='1e-08', EG2='0.76', EG='0.83', time_epoch_completed='1631579117.64', return_code2='102', ts='0.03', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='3.52e-01', ts2='0.83', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='36' AND source_name='4FGL J1613.6+3411' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 17:25:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0196>
Subject: Job 179531: <4FGL_J1613.6+3411_daily_bin36> in cluster <slac> Done

Job <4FGL_J1613.6+3411_daily_bin36> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep 13 17:10:19 2021
Job was executed on host(s) <bullet0196>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 17:11:01 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:11:01 2021
Terminated at Mon Sep 13 17:25:18 2021
Results reported at Mon Sep 13 17:25:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1613.6+3411_daily_bin36 243.421 34.1982 248659201 248918401 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 :                                   628.52 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   857 sec.
    Turnaround time :                            899 sec.

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

