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


Performing analysis on: 4FGL_J0136.5+3906_daily_bin1619
RA = 24.1423, Dec = 39.1
tmin = 658972801, tmax = 659232001
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='140906', job_status='RUN', time_executed='2021-12-07 12:13:39.813850', time_epoch_executed='1638908019.81' WHERE source_name='4FGL J0136.5+3906' and cadence='daily' and bin_id='1619'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/140906

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/140906/ft1_4FGL_J0136.5+3906_daily_bin1619.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/140906/ft2_4FGL_J0136.5+3906_daily_bin1619.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/140906/ft1_4FGL_J0136.5+3906_daily_bin1619.fits outfile=/scratch/kocevski/140906/ft1_filteredMKT_4FGL_J0136.5+3906_daily_bin1619.fits ra=24.1423 dec=39.1 rad=12.0 tmin=658972801.0 tmax=659232001.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.76
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/140906/ft2_4FGL_J0136.5+3906_daily_bin1619.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/140906/ft1_filteredMKT_4FGL_J0136.5+3906_daily_bin1619.fits evtable="EVENTS" outfile="/scratch/kocevski/140906/ft1_filtered_4FGL_J0136.5+3906_daily_bin1619.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.53
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/140906/ft1_filtered_4FGL_J0136.5+3906_daily_bin1619.fits" evtable="EVENTS" scfile=/scratch/kocevski/140906/ft2_4FGL_J0136.5+3906_daily_bin1619.fits sctable="SC_DATA" outfile=/scratch/kocevski/140906/ltcube_658972801_659232001_4FGL_J0136.5+3906_daily_bin1619.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/140906/ft2_4FGL_J0136.5+3906_daily_bin1619.fits
.....................!
real 17.62
user 17.12
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/140906/ft1_filtered_4FGL_J0136.5+3906_daily_bin1619.fits evtable="EVENTS" scfile=/scratch/kocevski/140906/ft2_4FGL_J0136.5+3906_daily_bin1619.fits sctable="SC_DATA" expcube=/scratch/kocevski/140906/ltcube_658972801_659232001_4FGL_J0136.5+3906_daily_bin1619.fits outfile=/scratch/kocevski/140906/expmap_658972801_659232001_4FGL_J0136.5+3906_daily_bin1619.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/140906/ltcube_658972801_659232001_4FGL_J0136.5+3906_daily_bin1619.fits
.....................!
real 193.22
user 187.84
sys 4.76

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/140906/ft1_filtered_4FGL_J0136.5+3906_daily_bin1619.fits scfile=/scratch/kocevski/140906/ft2_4FGL_J0136.5+3906_daily_bin1619.fits outfile=/scratch/kocevski/140906/cmap_658972801_659232001_4FGL_J0136.5+3906_daily_bin1619.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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/140906/ft1_filtered_4FGL_J0136.5+3906_daily_bin1619.fits scfile=/scratch/kocevski/140906/ft2_4FGL_J0136.5+3906_daily_bin1619.fits outfile=/scratch/kocevski/140906/cmap_HighResolution_658972801_659232001_4FGL_J0136.5+3906_daily_bin1619.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.57
user 0.37
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.795       1.0000         .10000E-03   10000.    
     2 'norm      '    .43405E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    52.591       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.7121       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11162E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.2995       1.0000         .10000E-03   10000.    
     9 'norm      '    1.1102       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10323E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.024       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    86.281       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11039E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .21832E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10186E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    9.2685       1.0000         .10000E-03   10000.    
    26 'norm      '    80.014       1.0000         .10000E-03   10000.    
    27 'Prefactor '    193.96       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .67797       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0942       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=   2934.899     FROM MIGRAD    STATUS=CONVERGED    743 CALLS     4319 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.793        42.494        .72049E-06    .12027E-04
   2  norm          .11144E-03    2.5819        .85000E-06** at limit **
   3  Prefactor     .10000E-03    4.1677       -.26600E-07** at limit **
   4  Prefactor     52.590        36.600        .49911E-06   -.90088E-04
   5  Prefactor     5.7181        14.677        .57703E-06    .27822E-05
   6  Prefactor     .10000E-03    17.805       -.77135E-08** at limit **
   7  Prefactor     .10000E-03    41.407       -.25661E-07** at limit **
   8  norm          1.3014        2.7455        .32611E-06    .53402E-04
   9  norm          1.1106        2.9372        .17891E-06    .58999E-04
  10  Prefactor     .10000E-03    5.1544        .61775E-07** at limit **
  11  Prefactor     .10000E-03    19.829        .13301E-05** at limit **
  12  Prefactor     .10000E-03    54.362        .27612E-06** at limit **
  13  norm          .10000E-03    1.2751       -.87922E-07** at limit **
  14  norm          .10000E-03    .78851       -.10820E-08** at limit **
  15  Prefactor     10.049        34.593       -.24154E-05   -.32073E-04
  16  Prefactor     .10000E-03    3.4215        .26191E-07** at limit **
  17  Prefactor     86.346        89.354        .25511E-05    .25426E-04
  18  Prefactor     .10000E-03    89.077       -.11198E-05** at limit **
  19  norm          .10010E-03    15.517        .89889E-06** at limit **
  20  Prefactor     .10000E-03    19.668       -.77102E-06** at limit **
  21  norm          .10000E-03    7.5311        .10316E-05** at limit **
  22  Prefactor     .10000E-03    31.989        .24456E-06** at limit **
  23  norm          .10000E-03    1.1488        .58628E-06** at limit **
  24  norm          .10000E-03    .67124       -.22930E-05** at limit **
  25  Prefactor     9.6283        241.83       -.75378E-05    .24639E-04
  26  norm          79.819        132.92       -.20581E-05    .51161E-04
  27  Prefactor     193.85        531.31        .15635E-04    .55540E-05
  28  Normalizat    .67750        .39096       -.56708E-05   -.21787E-04
  29  Prefactor     1.0942        .17635        .21482E-05   -.96024E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.7931
  norm       = 0.000111445
  Prefactor  = 0.0001
  Prefactor  = 52.5896
  Prefactor  = 5.71807
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.30144
  norm       = 1.11064
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 10.0488
  Prefactor  = 0.0001
  Prefactor  = 86.346
  Prefactor  = 0.0001
  norm       = 0.000100102
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 9.62828
  norm       = 79.8191
  Prefactor  = 193.847
  Normalizat = 0.677496
  Prefactor  = 1.09425
 **********
 **   18 **HESSE 
 **********

 FCN=   2934.899     FROM HESSE     STATUS=OK           553 CALLS     4872 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.793        42.493        .80446E-04   -1.4712    
   2  norm          .11144E-03    6.8292        .29169E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.1827        .10799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     52.590        36.349        .55305E-04   -1.4256    
   5  Prefactor     5.7181        14.670        .16806E-03   -1.5230    
   6  Prefactor     .10000E-03    17.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    41.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.3014        2.6767        .11794E-03   -1.5480    
   9  norm          1.1106        2.8767        .14560E-03   -1.5497    
  10  Prefactor     .10000E-03    5.1581        .12011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    19.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    54.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.2975        .59728E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .82215        .93676E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.049        34.659        .12656E-03   -1.5074    
  16  Prefactor     .10000E-03    3.4230        .97848E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     86.346        88.567        .21625E-03   -1.3847    
  18  Prefactor     .10000E-03    89.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10010E-03    111.25        .40870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    19.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    7.5425        .14531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    31.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.1528        .56783E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .66715        .42777E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     9.6283        236.62        .13164E-03   -1.5087    
  26  norm          79.819        132.94        .22449E-03   -1.3919    
  27  Prefactor     193.85        526.47        .14502E-03   -1.2914    
  28  Normalizat    .67750        .42470        .42298E-03   -1.0479    
  29  Prefactor     1.0942        .19428        .17000E-03   -.89651    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.78876e-09
Minuit parameter uncertainties:
  1  42.5444
  2  0.0176832
  3  3.90476e-07
  4  36.3648
  5  14.6788
  6  5.20886e-06
  7  4.65524e-06
  8  2.67699
  9  2.87708
  10  3.07727e-06
  11  7.8031e-05
  12  4.02966e-05
  13  2.72446e-07
  14  1.62914e-06
  15  34.7285
  16  6.79118e-06
  17  88.7033
  18  0.000107689
  19  0.00673816
  20  6.61993e-05
  21  3.39813e-05
  22  1.31183e-05
  23  7.39652e-06
  24  7.54364e-06
  25  95.8885
  26  133.436
  27  540.189
  28  0.426777
  29  0.19441
Done.

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

Extracting fit parameters...

4FGL J0136.5+3906
   Spectrum: LogParabola
252         norm:  1.000e-04  2.724e-07  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.094e+00  1.944e-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:  6.775e-01  4.268e-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: 6.96e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.47e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/140906/likelihoodResults_658972801_659232001_4FGL_J0136.5+3906_daily_bin1619.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) = 2934.90234172
delta logL = -0.00351455827149

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2934.89882704
delta logL = 1.22391156765e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5720       1.0000          .0000       5.0000    
     3 'Normalizat'    .67751       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0943       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=   2934.899     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      240 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    17.016        .59964E-02** at limit **
   2  alpha         1.7664        2.9293        .50000        .39931E-06
   3  Normalizat    .67749        .32083E-01    .42300E-03   -.98610E-04
   4  Prefactor     1.0942        .16189E-01    .17000E-03   -.24354E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.7664
  Normalizat = 0.677495
  Prefactor  = 1.09425
 **********
 **   18 **HESSE 
 **********

 FCN=   2934.899     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .69E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    148.04        .61235E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7664        3.9222        .50000       -.29782    
   3  Normalizat    .67749        .10825        .16920E-04   -1.0479    
   4  Prefactor     1.0942        .54632E-01    .34001E-04   -.89651    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.9074e-08
Minuit parameter uncertainties:
  1  0.000326769
  2  852.824
  3  0.108285
  4  0.0546346
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/140906': 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) = 2934.89882545
delta logL = 1.71144620253e-06

Extracting fit parameters...

4FGL J0136.5+3906
   Spectrum: LogParabola
252         norm:  1.000e-04  3.268e-04  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  1.766e+00  8.528e+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:  1.094e+00  5.463e-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:  6.775e-01  1.083e-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/140906/cmap_HighResolution_658972801_659232001_4FGL_J0136.5+3906_daily_bin1619.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.47e-04', job_status='DONE', photon_flux_upper_limit='6.96e-08', time_completed='2021-12-07 12:23:04.258803', job_id='140906', GAL2='1.09', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1638908584.26', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='1.71e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.56' WHERE bin_id='1619' AND source_name='4FGL J0136.5+3906' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 12:23:04 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 140906: <4FGL_J0136.5+3906_daily_bin1619> in cluster <slac> Done

Job <4FGL_J0136.5+3906_daily_bin1619> 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) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 12:11:36 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:36 2021
Terminated at Tue Dec  7 12:23:05 2021
Results reported at Tue Dec  7 12:23:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0136.5+3906_daily_bin1619 24.1423 39.1 658972801 659232001 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 :                                   564.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             308.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   690 sec.
    Turnaround time :                            764 sec.

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

