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


Performing analysis on: 4FGL_J0136.5+3906_daily_bin1622
RA = 24.1423, Dec = 39.1
tmin = 659750401, tmax = 660009601
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='140910', job_status='RUN', time_executed='2021-12-07 12:13:22.353424', time_epoch_executed='1638908002.35' WHERE source_name='4FGL J0136.5+3906' and cadence='daily' and bin_id='1622'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/140910

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/140910/ft1_4FGL_J0136.5+3906_daily_bin1622.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/140910/ft2_4FGL_J0136.5+3906_daily_bin1622.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/140910/ft1_4FGL_J0136.5+3906_daily_bin1622.fits outfile=/scratch/kocevski/140910/ft1_filteredMKT_4FGL_J0136.5+3906_daily_bin1622.fits ra=24.1423 dec=39.1 rad=12.0 tmin=659750401.0 tmax=660009601.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.45
user 2.22
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/140910/ft2_4FGL_J0136.5+3906_daily_bin1622.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/140910/ft1_filteredMKT_4FGL_J0136.5+3906_daily_bin1622.fits evtable="EVENTS" outfile="/scratch/kocevski/140910/ft1_filtered_4FGL_J0136.5+3906_daily_bin1622.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.52
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/140910/ft1_filtered_4FGL_J0136.5+3906_daily_bin1622.fits" evtable="EVENTS" scfile=/scratch/kocevski/140910/ft2_4FGL_J0136.5+3906_daily_bin1622.fits sctable="SC_DATA" outfile=/scratch/kocevski/140910/ltcube_659750401_660009601_4FGL_J0136.5+3906_daily_bin1622.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/140910/ft2_4FGL_J0136.5+3906_daily_bin1622.fits
.....................!
real 18.07
user 17.64
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/140910/ft1_filtered_4FGL_J0136.5+3906_daily_bin1622.fits evtable="EVENTS" scfile=/scratch/kocevski/140910/ft2_4FGL_J0136.5+3906_daily_bin1622.fits sctable="SC_DATA" expcube=/scratch/kocevski/140910/ltcube_659750401_660009601_4FGL_J0136.5+3906_daily_bin1622.fits outfile=/scratch/kocevski/140910/expmap_659750401_660009601_4FGL_J0136.5+3906_daily_bin1622.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/140910/ltcube_659750401_660009601_4FGL_J0136.5+3906_daily_bin1622.fits
.....................!
real 192.37
user 187.53
sys 4.26

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/140910/ft1_filtered_4FGL_J0136.5+3906_daily_bin1622.fits scfile=/scratch/kocevski/140910/ft2_4FGL_J0136.5+3906_daily_bin1622.fits outfile=/scratch/kocevski/140910/cmap_659750401_660009601_4FGL_J0136.5+3906_daily_bin1622.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.53
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/140910/ft1_filtered_4FGL_J0136.5+3906_daily_bin1622.fits scfile=/scratch/kocevski/140910/ft2_4FGL_J0136.5+3906_daily_bin1622.fits outfile=/scratch/kocevski/140910/cmap_HighResolution_659750401_660009601_4FGL_J0136.5+3906_daily_bin1622.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.59
user 0.42
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/140910/ft1_filtered_4FGL_J0136.5+3906_daily_bin1622.fits', '/scratch/kocevski/140910/ft2_4FGL_J0136.5+3906_daily_bin1622.fits', expMap='/scratch/kocevski/140910/expmap_659750401_660009601_4FGL_J0136.5+3906_daily_bin1622.fits', expCube='/scratch/kocevski/140910/ltcube_659750401_660009601_4FGL_J0136.5+3906_daily_bin1622.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/140910/Model_4FGL_J0136.5+3906_daily_bin1622.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/140910/ft1_filtered_4FGL_J0136.5+3906_daily_bin1622.fits
Spacecraft file(s): /scratch/kocevski/140910/ft2_4FGL_J0136.5+3906_daily_bin1622.fits
Exposure map: /scratch/kocevski/140910/expmap_659750401_660009601_4FGL_J0136.5+3906_daily_bin1622.fits
Exposure cube: /scratch/kocevski/140910/ltcube_659750401_660009601_4FGL_J0136.5+3906_daily_bin1622.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/140910/Model_4FGL_J0136.5+3906_daily_bin1622.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) = 1170.16346583

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    10.411       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10192E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    34.878       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    26.899       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .48177E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .23693E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.4192       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .99827E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10545E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10364E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10702E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    877.94       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .22781E-02   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1363       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .77176       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.

 FCN=   1169.868     FROM MIGRAD    STATUS=CONVERGED    706 CALLS     4181 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.692       -.18649E-04** at limit **
   2  norm          10.409        6.1261       -.79092E-07   -.17419E-03
   3  Prefactor     .10000E-03    6.5334        .21541E-08** at limit **
   4  Prefactor     .10000E-03    55.503        .20821E-04** at limit **
   5  Prefactor     34.877        27.648        .28027E-06    .42779E-04
   6  Prefactor     .10000E-03    28.750        .20831E-04** at limit **
   7  Prefactor     .10000E-03    75.172       -.60070E-04** at limit **
   8  norm          .10000E-03    2.8383       -.31530E-07** at limit **
   9  norm          .10000E-03    10.148        .35488E-07** at limit **
  10  Prefactor     26.903        24.485       -.18590E-06   -.67531E-04
  11  Prefactor     .10000E-03    386.83        .18384E-04** at limit **
  12  Prefactor     .10000E-03    532.51       -.39252E-03** at limit **
  13  norm          .10000E-03    2.3211        .25609E-07** at limit **
  14  norm          5.4194        7.9057        .15256E-05    .27361E-03
  15  Prefactor     .10000E-03    37.503       -.24100E-04** at limit **
  16  Prefactor     .10000E-03    16.400        .77425E-05** at limit **
  17  Prefactor     .10000E-03    113.21       -.17992E-05** at limit **
  18  Prefactor     .10001E-03    1902.8       -.37810E-03** at limit **
  19  norm          .10000E-03    16.722       -.83568E-05** at limit **
  20  Prefactor     .10000E-03    57.246        .14136E-04** at limit **
  21  norm          .10000E-03    47.207        .34861E-04** at limit **
  22  Prefactor     .10000E-03    205.58        .17849E-03** at limit **
  23  norm          .10000E-03    13.146       -.79753E-06** at limit **
  24  norm          .10009E-03    64.576       -.13725E-04** at limit **
  25  Prefactor     .10000E-03    113.98        .96195E-06** at limit **
  26  norm          877.60        895.84       -.12137E-03    .34326E-04
  27  Prefactor     .10000E-03    841.86       -.30154E-03** at limit **
  28  Normalizat    1.1360        .57886        .85490E-06   -.61606E-04
  29  Prefactor     .77207        .30494        .34413E-06   -.33711E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 10.4087
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.8769
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 26.903
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 5.41939
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100001
  norm       = 0.00010009
  Prefactor  = 0.0001
  norm       = 877.6
  Prefactor  = 0.0001
  Normalizat = 1.136
  Prefactor  = 0.772072
 **********
 **   18 **HESSE 
 **********

 FCN=   1169.868     FROM HESSE     STATUS=OK           531 CALLS     4712 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          10.409        6.1316        .61910E-04   -1.5063    
   3  Prefactor     .10000E-03    6.5730        .85386E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    55.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     34.877        27.680        .67856E-04   -1.4526    
   6  Prefactor     .10000E-03    28.771        .17921E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    75.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.9284        .11213E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    10.154        .10644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     26.903        24.690        .77241E-04   -1.4670    
  11  Prefactor     .10000E-03    386.90        .21176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    533.39        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.3248        .50899E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.4194        7.8997        .11193E-03   -1.5242    
  15  Prefactor     .10000E-03    37.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    16.411        .13533E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    113.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    1903.9        .20764E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    16.805        .13664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    57.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    47.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    206.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    13.511        .24215E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10009E-03    64.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    113.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          877.60        891.10        .70672E-04   -.96928    
  27  Prefactor     .10000E-03    842.35        .20108E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.1360        .69922        .33059E-03   -.88604    
  29  Prefactor     .77207        .36802        .21318E-03   -1.0077    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76189e-09
Minuit parameter uncertainties:
  1  1.23439e-08
  2  6.13198
  3  3.4975e-06
  4  0.000180739
  5  27.6906
  6  8.67859e-06
  7  1.707e-05
  8  7.00791e-06
  9  2.75259e-06
  10  24.6997
  11  0.000170546
  12  0.00156129
  13  3.84192e-06
  14  7.9012
  15  7.03566e-07
  16  2.26853e-05
  17  7.05568e-05
  18  0.00709918
  19  4.76736e-06
  20  0.000152396
  21  0.000153111
  22  0.00100963
  23  0.000191615
  24  0.00481991
  25  0.000120339
  26  906.526
  27  1.15666e-05
  28  0.705058
  29  0.369199
Done.

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

Extracting fit parameters...

4FGL J0136.5+3906
   Spectrum: LogParabola
252         norm:  1.000e-04  3.842e-06  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:  7.721e-01  3.692e-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.136e+00  7.051e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/140910/likelihoodResults_659750401_660009601_4FGL_J0136.5+3906_daily_bin1622.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): 0
logL (Free Index) = 1169.86969103
delta logL = -0.00131323449841

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1169.86837778
delta logL = 9.3220933195e-09

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     '    1.5641       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1360       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77207       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=   1169.868     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      243 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    472.42        .50923E-03** at limit **
   2  alpha         1.7061        2.8115        .50000       -.97202E-08
   3  Normalizat    1.1360        .32618        .33059E-03   -.10910E-04
   4  Prefactor     .77207        .17807        .21318E-03   -.17772E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.70608
  Normalizat = 1.136
  Prefactor  = 0.772069
 **********
 **   18 **HESSE 
 **********

 FCN=   1169.868     FROM HESSE     STATUS=OK            29 CALLS      272 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.5655        .10185E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7061        3.6820        .50000       -.32316    
   3  Normalizat    1.1360        .66863        .13224E-04   -.88604    
   4  Prefactor     .77207        .36631        .85271E-05   -1.0077    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83677e-12
Minuit parameter uncertainties:
  1  2.0265e-06
  2  176.362
  3  0.673727
  4  0.367467
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/140910': 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) = 1169.86837756
delta logL = 2.32189449889e-07

Extracting fit parameters...

4FGL J0136.5+3906
   Spectrum: LogParabola
252         norm:  1.000e-04  2.027e-06  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  1.706e+00  1.764e+02  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:  7.721e-01  3.675e-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.136e+00  6.737e-01  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/140910/cmap_HighResolution_659750401_660009601_4FGL_J0136.5+3906_daily_bin1622.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.38e-04', job_status='DONE', photon_flux_upper_limit='1.60e-07', time_completed='2021-12-07 12:20:13.408498', job_id='140910', GAL2='0.77', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1638908413.41', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='2.32e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.56' WHERE bin_id='1622' AND source_name='4FGL J0136.5+3906' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 12:20:13 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 140910: <4FGL_J0136.5+3906_daily_bin1622> in cluster <slac> Done

Job <4FGL_J0136.5+3906_daily_bin1622> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Dec  7 12:10:21 2021
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 12:11:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 12:11:38 2021
Terminated at Tue Dec  7 12:20:14 2021
Results reported at Tue Dec  7 12:20:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0136.5+3906_daily_bin1622 24.1423 39.1 659750401 660009601 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 :                                   411.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   515 sec.
    Turnaround time :                            593 sec.

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

