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


Performing analysis on: 4FGL_J0136.5+3906_daily_bin1604
RA = 24.1423, Dec = 39.1
tmin = 655084801, tmax = 655344001
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='4190', job_status='RUN', time_executed='2021-10-08 00:04:38.846749', time_epoch_executed='1633676678.85' WHERE source_name='4FGL J0136.5+3906' and cadence='daily' and bin_id='1604'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/4190

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/4190/ft1_4FGL_J0136.5+3906_daily_bin1604.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/4190/ft2_4FGL_J0136.5+3906_daily_bin1604.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/4190/ft1_4FGL_J0136.5+3906_daily_bin1604.fits outfile=/scratch/kocevski/4190/ft1_filteredMKT_4FGL_J0136.5+3906_daily_bin1604.fits ra=24.1423 dec=39.1 rad=12.0 tmin=655084801.0 tmax=655344001.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 2.97
user 2.73
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/4190/ft2_4FGL_J0136.5+3906_daily_bin1604.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/4190/ft2_4FGL_J0136.5+3906_daily_bin1604.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/4190/ft1_filteredMKT_4FGL_J0136.5+3906_daily_bin1604.fits evtable="EVENTS" outfile="/scratch/kocevski/4190/ft1_filtered_4FGL_J0136.5+3906_daily_bin1604.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/4190/ft1_filtered_4FGL_J0136.5+3906_daily_bin1604.fits" evtable="EVENTS" scfile=/scratch/kocevski/4190/ft2_4FGL_J0136.5+3906_daily_bin1604.fits sctable="SC_DATA" outfile=/scratch/kocevski/4190/ltcube_655084801_655344001_4FGL_J0136.5+3906_daily_bin1604.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/4190/ft2_4FGL_J0136.5+3906_daily_bin1604.fits
.....................!
real 14.54
user 14.16
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/4190/ft1_filtered_4FGL_J0136.5+3906_daily_bin1604.fits evtable="EVENTS" scfile=/scratch/kocevski/4190/ft2_4FGL_J0136.5+3906_daily_bin1604.fits sctable="SC_DATA" expcube=/scratch/kocevski/4190/ltcube_655084801_655344001_4FGL_J0136.5+3906_daily_bin1604.fits outfile=/scratch/kocevski/4190/expmap_655084801_655344001_4FGL_J0136.5+3906_daily_bin1604.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/4190/ltcube_655084801_655344001_4FGL_J0136.5+3906_daily_bin1604.fits
.....................!
real 193.07
user 187.52
sys 5.13

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

Setting source of interest to:
4FGL J0136.5+3906 @ 24.1423 39.1

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/4190/ft1_filtered_4FGL_J0136.5+3906_daily_bin1604.fits scfile=/scratch/kocevski/4190/ft2_4FGL_J0136.5+3906_daily_bin1604.fits outfile=/scratch/kocevski/4190/cmap_655084801_655344001_4FGL_J0136.5+3906_daily_bin1604.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=24.1423 yref=39.1 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.56
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/4190/ft1_filtered_4FGL_J0136.5+3906_daily_bin1604.fits scfile=/scratch/kocevski/4190/ft2_4FGL_J0136.5+3906_daily_bin1604.fits outfile=/scratch/kocevski/4190/cmap_HighResolution_655084801_655344001_4FGL_J0136.5+3906_daily_bin1604.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=24.1423 yref=39.1 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/4190/ft1_filtered_4FGL_J0136.5+3906_daily_bin1604.fits evtable="EVENTS" scfile=/scratch/kocevski/4190/ft2_4FGL_J0136.5+3906_daily_bin1604.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/4190/Model_4FGL_J0136.5+3906_daily_bin1604.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/4190/ft1_filtered_4FGL_J0136.5+3906_daily_bin1604.fits..........................!
real 19.88
user 18.25
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/4190/ft1_filtered_4FGL_J0136.5+3906_daily_bin1604.fits', '/scratch/kocevski/4190/ft2_4FGL_J0136.5+3906_daily_bin1604.fits', expMap='/scratch/kocevski/4190/expmap_655084801_655344001_4FGL_J0136.5+3906_daily_bin1604.fits', expCube='/scratch/kocevski/4190/ltcube_655084801_655344001_4FGL_J0136.5+3906_daily_bin1604.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/4190/Model_4FGL_J0136.5+3906_daily_bin1604.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0136.5+3906'

4FGL J0136.5+3906
   Spectrum: LogParabola
252         norm:  1.177e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  1.561e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
254         beta:  8.196e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
255           Eb:  1.870e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/4190/ft1_filtered_4FGL_J0136.5+3906_daily_bin1604.fits
Spacecraft file(s): /scratch/kocevski/4190/ft2_4FGL_J0136.5+3906_daily_bin1604.fits
Exposure map: /scratch/kocevski/4190/expmap_655084801_655344001_4FGL_J0136.5+3906_daily_bin1604.fits
Exposure cube: /scratch/kocevski/4190/ltcube_655084801_655344001_4FGL_J0136.5+3906_daily_bin1604.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/4190/Model_4FGL_J0136.5+3906_daily_bin1604.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) = 638.444337746

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9999.9       1.0000         .10000E-03   10000.    
     2 'norm      '    10.026       1.0000         .10000E-03   10000.    
     3 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9999.9       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .30500E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .51737E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .69875E-03   1.0000         .10000E-03   10000.    
     8 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11837E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .92502E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .17291E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    60.849       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11244E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10248E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .15344E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10674E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .91960       1.0000         .10000E-03   10000.    
    24 'norm      '    .91086       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1472       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5480E+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=   636.8784     FROM MIGRAD    STATUS=CONVERGED   1359 CALLS     4481 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        9770.2        .19233E-02** at limit **
   2  norm         10000.0        7070.8        .63275E-01** at limit **
   3  Prefactor    10000.0        6865.0        .19284E-02** at limit **
   4  Prefactor    10000.0        8324.0        .18745E-02** at limit **
   5  Prefactor     .10000E-03    7853.1        .19810E-02** at limit **
   6  Prefactor     .10002E-03    8176.2        .21140E-02** at limit **
   7  Prefactor     .10000E-03    6324.1        .20981E-02** at limit **
   8  norm         10000.0        8645.5        .18142E-02** at limit **
   9  norm          .10000E-03    43.196        .16215E-02** at limit **
  10  Prefactor     .10000E-03    505.17        .18142E-02** at limit **
  11  Prefactor     .10012E-03    966.43        .20813E-02** at limit **
  12  Prefactor     .10002E-03    1027.3        .20355E-02** at limit **
  13  norm          .10000E-03    23.499        .11921E-02** at limit **
  14  norm          .10000E-03    3.0740        .43051E-03** at limit **
  15  Prefactor     60.827        182.30        .51437E-04    .37259E-04
  16  Prefactor     .10000E-03    63.073        .36285E-03** at limit **
  17  Prefactor     .10002E-03    411.07        .18142E-02** at limit **
  18  Prefactor     .10000E-03    373.29        .18142E-02** at limit **
  19  norm          .10000E-03    24.257        .12123E-02** at limit **
  20  Prefactor     .10000E-03    209.17        .18142E-02** at limit **
  21  norm          .10000E-03    70.478        .16375E-02** at limit **
  22  Prefactor     .10000E-03    34.772        .14528E-02** at limit **
  23  norm          .92013        1.8903        .46652E-04   -.41549E-04
  24  norm          .91077        .84081        .20690E-04    .33682E-03
  25  Prefactor     .10000E-03    4.3460        .51385E-03** at limit **
  26  norm          .10000E-03    4.3955        .51677E-03** at limit **
  27  Prefactor     .10000E-03    31.654        .13878E-02** at limit **
  28  Normalizat    .10000E-01    .34118        .85715E-02** at limit **
  29  Prefactor     1.1471        .23285        .15248E-03    .81159E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.000100016
  Prefactor  = 0.0001
  norm       = 10000
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100125
  Prefactor  = 0.000100018
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 60.8271
  Prefactor  = 0.000100004
  Prefactor  = 0.000100018
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.92013
  norm       = 0.910769
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.1471
 **********
 **   18 **HESSE 
 **********

 FCN=   636.8784     FROM HESSE     STATUS=OK           523 CALLS     5004 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        9772.8        .38466E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm         10000.0        7091.0        .12655E-01    1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor    10000.0        6864.8        .38568E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor    10000.0        8349.1        .37490E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7853.1        .39621E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10002E-03    8176.2        .42281E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6324.1        .41961E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm         10000.0        8645.5        .36285E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    43.196        .32430E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    505.17        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10012E-03    966.54        .41626E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10002E-03    1027.3        .40711E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    23.500        .23842E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.0741        .86102E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     60.827        182.31        .10287E-04   -1.4147    
  16  Prefactor     .10000E-03    63.074        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10002E-03    411.08        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    373.31        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    24.259        .24247E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    209.34        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    70.665        .32751E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    34.774        .29057E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .92013        1.8874        .18661E-05   -1.5516    
  24  norm          .91077        .84083        .82761E-06   -1.5517    
  25  Prefactor     .10000E-03    4.3460        .10277E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    4.3955        .10335E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    31.654        .27757E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .10000E-01    .34120        .17143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     1.1471        .23284        .30495E-04   -.87975    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.00311e-10
Minuit parameter uncertainties:
  1  0.481429
  2  26.8598
  3  0.011525
  4  0.924813
  5  0.00263115
  6  0.0230488
  7  0.000280017
  8  0.00437665
  9  1.47641e-05
  10  0.00119286
  11  0.022312
  12  0.00884343
  13  0.000126619
  14  1.29052e-06
  15  184.022
  16  0.000979355
  17  0.00541241
  18  0.00157979
  19  6.23067e-06
  20  0.00140599
  21  0.000430786
  22  7.40706e-06
  23  1.88757
  24  0.840844
  25  2.4279e-06
  26  2.12918e-06
  27  6.18963e-06
  28  7.54932e-06
  29  0.233046
Done.

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

Extracting fit parameters...

4FGL J0136.5+3906
   Spectrum: LogParabola
252         norm:  1.000e-04  1.266e-04  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  1.561e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
254         beta:  8.196e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
255           Eb:  1.870e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
545    Prefactor:  1.147e+00  2.330e-01  0.000e+00  1.000e+01 ( 1.000e+00)
546        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
547        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
544   Normalization:  1.000e-02  7.549e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 24.142 39.100
Photon Flux Upper Limit: 8.80e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/4190/likelihoodResults_655084801_655344001_4FGL_J0136.5+3906_daily_bin1604.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) = 636.87862133
delta logL = -0.000203530354611

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 636.878419725
delta logL = -1.92505081031e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1566       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1469       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5480E+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=   636.8784     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      291 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    149.04        .97921E-02** at limit **
   2  alpha         1.6449        3.2100        .50000        .22729E-06
   3  Normalizat    .10000E-01    .44257E-02    .85711E-02** at limit **
   4  Prefactor     1.1471        .22322E-01    .15248E-03   -.99355E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.64485
  Normalizat = 0.01
  Prefactor  = 1.1471
 **********
 **   18 **HESSE 
 **********

 FCN=   636.8784     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      318 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1095.0        .11982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6449        3.9173        .50000       -.34911    
   3  Normalizat    .10000E-01    .36367E-01    .17142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1471        .64012E-01    .30495E-04   -.87975    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.52309e-08
Minuit parameter uncertainties:
  1  0.00026153
  2  1883.28
  3  9.46561e-08
  4  0.0640158
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/4190': 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) = 636.878417774
delta logL = 2.57432475337e-08

Extracting fit parameters...

4FGL J0136.5+3906
   Spectrum: LogParabola
252         norm:  1.000e-04  2.615e-04  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  1.645e+00  1.883e+03  0.000e+00  5.000e+00 ( 1.000e+00)
254         beta:  8.196e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
255           Eb:  1.870e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
545    Prefactor:  1.147e+00  6.402e-02  0.000e+00  1.000e+01 ( 1.000e+00)
546        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
547        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
544   Normalization:  1.000e-02  9.466e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 24.142 39.100

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/4190/cmap_HighResolution_655084801_655344001_4FGL_J0136.5+3906_daily_bin1604.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.86e-03', job_status='DONE', photon_flux_upper_limit='8.80e-07', time_completed='2021-10-08 00:10:53.003676', job_id='4190', GAL2='1.15', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1633677053.0', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='2.57e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.56' WHERE bin_id='1604' AND source_name='4FGL J0136.5+3906' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Oct  8 00:10:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 4190: <4FGL_J0136.5+3906_daily_bin1604> in cluster <slac> Done

Job <4FGL_J0136.5+3906_daily_bin1604> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Fri Oct  8 00:00:35 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Oct  8 00:01:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Oct  8 00:01:50 2021
Terminated at Fri Oct  8 00:10:53 2021
Results reported at Fri Oct  8 00:10:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0136.5+3906_daily_bin1604 24.1423 39.1 655084801 655344001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0136.5+3906 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   373.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             248.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   543 sec.
    Turnaround time :                            618 sec.

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

