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


Performing analysis on: 4FGL_J0614.8+6136_daily_bin1202
RA = 93.7213, Dec = 61.6079
tmin = 550886401, tmax = 551145601
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='226430', job_status='RUN', time_executed='2021-08-24 19:08:37.616914', time_epoch_executed='1629857317.62' WHERE source_name='4FGL J0614.8+6136' and cadence='daily' and bin_id='1202'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/226430

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/226430/ft1_4FGL_J0614.8+6136_daily_bin1202.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/226430/ft2_4FGL_J0614.8+6136_daily_bin1202.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/226430/ft1_4FGL_J0614.8+6136_daily_bin1202.fits outfile=/scratch/kocevski/226430/ft1_filteredMKT_4FGL_J0614.8+6136_daily_bin1202.fits ra=93.7213 dec=61.6079 rad=12.0 tmin=550886401.0 tmax=551145601.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 4.13
user 3.51
sys 0.58

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/226430/ft2_4FGL_J0614.8+6136_daily_bin1202.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/226430/ft2_4FGL_J0614.8+6136_daily_bin1202.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/226430/ft1_filteredMKT_4FGL_J0614.8+6136_daily_bin1202.fits evtable="EVENTS" outfile="/scratch/kocevski/226430/ft1_filtered_4FGL_J0614.8+6136_daily_bin1202.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.86
user 0.33
sys 0.51

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/226430/ft1_filtered_4FGL_J0614.8+6136_daily_bin1202.fits" evtable="EVENTS" scfile=/scratch/kocevski/226430/ft2_4FGL_J0614.8+6136_daily_bin1202.fits sctable="SC_DATA" outfile=/scratch/kocevski/226430/ltcube_550886401_551145601_4FGL_J0614.8+6136_daily_bin1202.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/226430/ft2_4FGL_J0614.8+6136_daily_bin1202.fits
.....................!
real 12.16
user 11.37
sys 0.75

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/226430/ft1_filtered_4FGL_J0614.8+6136_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/226430/ft2_4FGL_J0614.8+6136_daily_bin1202.fits sctable="SC_DATA" expcube=/scratch/kocevski/226430/ltcube_550886401_551145601_4FGL_J0614.8+6136_daily_bin1202.fits outfile=/scratch/kocevski/226430/expmap_550886401_551145601_4FGL_J0614.8+6136_daily_bin1202.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/226430/ltcube_550886401_551145601_4FGL_J0614.8+6136_daily_bin1202.fits
.....................!
real 193.24
user 187.45
sys 5.42

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
Extended source G150.3+4.5 in ROI with RadialDisk spatial model.
Extended source HB 9 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/HB9.fits is the correct path to the extended template.
Added 185 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0614.8+6136 @ 93.7213 61.6079

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/226430/ft1_filtered_4FGL_J0614.8+6136_daily_bin1202.fits scfile=/scratch/kocevski/226430/ft2_4FGL_J0614.8+6136_daily_bin1202.fits outfile=/scratch/kocevski/226430/cmap_550886401_551145601_4FGL_J0614.8+6136_daily_bin1202.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=93.7213 yref=61.6079 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.92
user 0.37
sys 0.50

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/226430/ft1_filtered_4FGL_J0614.8+6136_daily_bin1202.fits scfile=/scratch/kocevski/226430/ft2_4FGL_J0614.8+6136_daily_bin1202.fits outfile=/scratch/kocevski/226430/cmap_HighResolution_550886401_551145601_4FGL_J0614.8+6136_daily_bin1202.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=93.7213 yref=61.6079 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.95
user 0.38
sys 0.51

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/226430/ft1_filtered_4FGL_J0614.8+6136_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/226430/ft2_4FGL_J0614.8+6136_daily_bin1202.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/226430/Model_4FGL_J0614.8+6136_daily_bin1202.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 G150.3+4.5
adding source GAL_V02
adding source HB 9
Working on...
/scratch/kocevski/226430/ft1_filtered_4FGL_J0614.8+6136_daily_bin1202.fits.....................!
real 76.15
user 73.73
sys 1.67

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/226430/ft1_filtered_4FGL_J0614.8+6136_daily_bin1202.fits', '/scratch/kocevski/226430/ft2_4FGL_J0614.8+6136_daily_bin1202.fits', expMap='/scratch/kocevski/226430/expmap_550886401_551145601_4FGL_J0614.8+6136_daily_bin1202.fits', expCube='/scratch/kocevski/226430/ltcube_550886401_551145601_4FGL_J0614.8+6136_daily_bin1202.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/226430/Model_4FGL_J0614.8+6136_daily_bin1202.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0614.8+6136'

4FGL J0614.8+6136
   Spectrum: PowerLaw
249    Prefactor:  3.640e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  2.497e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
251        Scale:  8.979e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/226430/ft1_filtered_4FGL_J0614.8+6136_daily_bin1202.fits
Spacecraft file(s): /scratch/kocevski/226430/ft2_4FGL_J0614.8+6136_daily_bin1202.fits
Exposure map: /scratch/kocevski/226430/expmap_550886401_551145601_4FGL_J0614.8+6136_daily_bin1202.fits
Exposure cube: /scratch/kocevski/226430/ltcube_550886401_551145601_4FGL_J0614.8+6136_daily_bin1202.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/226430/Model_4FGL_J0614.8+6136_daily_bin1202.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) = 4038.25714829

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    27.915       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    49.371       1.0000         .10000E-03   10000.    
     5 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10296E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.191       1.0000         .10000E-03   10000.    
    10 'Prefactor '    50.575       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.418       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.5186       1.0000         .10000E-03   10000.    
    17 'Prefactor '    49.827       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.563       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0127       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0905       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=   4038.238     FROM MIGRAD    STATUS=CONVERGED    403 CALLS     2263 TOTAL
                     EDM=   .68E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    14.617        .50313E-07** at limit **
   2  norm          27.944        52.467        .69948E-05   -.17064E-05
   3  Prefactor     .10000E-03    11.155        .33896E-06** at limit **
   4  Prefactor     49.368        50.707       -.39625E-05   -.35502E-05
   5  norm          .10000E-03    97.167        .11698E-03** at limit **
   6  Prefactor     .10000E-03    503.67       -.11482E-03** at limit **
   7  Prefactor     .10000E-03    16.478       -.22798E-06** at limit **
   8  Prefactor     .10000E-03    44.902        .17621E-05** at limit **
   9  Prefactor     12.190        20.043       -.48642E-06    .30675E-04
  10  Prefactor     50.577        44.504        .72460E-06    .39377E-04
  11  Prefactor     .10000E-03    91.136       -.19603E-04** at limit **
  12  Prefactor     10.425        89.562        .92026E-05    .15300E-04
  13  Prefactor     .10000E-03    88.368       -.82403E-04** at limit **
  14  Prefactor     .10000E-03    10.624        .52758E-06** at limit **
  15  Prefactor     .10000E-03    44.855       -.47496E-06** at limit **
  16  norm          5.5187        2.0304       -.45604E-07    .10597E-03
  17  Prefactor     49.831        47.195        .46176E-06    .26151E-05
  18  Prefactor     13.625        536.27        .15255E-03    .18815E-05
  19  Normalizat    1.0126        .32310       -.31232E-05    .15264E-03
  20  Prefactor     1.0905        .11122        .21880E-06    .33236E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 27.9439
  Prefactor  = 0.0001
  Prefactor  = 49.3678
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.1897
  Prefactor  = 50.5772
  Prefactor  = 0.0001
  Prefactor  = 10.4252
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.51868
  Prefactor  = 49.8315
  Prefactor  = 13.6254
  Normalizat = 1.01263
  Prefactor  = 1.09048
 **********
 **   18 **HESSE 
 **********

 FCN=   4038.238     FROM HESSE     STATUS=OK           281 CALLS     2544 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    14.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          27.944        52.538        .75826E-04   -1.4650    
   3  Prefactor     .10000E-03    11.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     49.368        50.709        .57072E-04   -1.4302    
   5  norm          .10000E-03    97.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    507.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    45.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.190        20.035        .11473E-03   -1.5010    
  10  Prefactor     50.577        44.542        .56392E-04   -1.4284    
  11  Prefactor     .10000E-03    91.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.425        90.091        .12414E-03   -1.5062    
  13  Prefactor     .10000E-03    88.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    45.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.5187        2.0330        .53000E-04   -1.5238    
  17  Prefactor     49.831        47.290        .56811E-04   -1.4295    
  18  Prefactor     13.625        533.91        .10876E-03   -1.4970    
  19  Normalizat    1.0126        .34597        .44073E-03   -.92608    
  20  Prefactor     1.0905        .11958        .15232E-03   -.89772    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35813e-10
Minuit parameter uncertainties:
  1  2.02822e-05
  2  52.6254
  3  8.37189e-07
  4  50.7531
  5  1.13449e-06
  6  0.00312778
  7  3.87554e-06
  8  3.25151e-05
  9  20.0465
  10  44.5711
  11  3.09093e-05
  12  61.4178
  13  0.000300096
  14  1.04555e-07
  15  9.15502e-06
  16  2.03305
  17  47.3258
  18  172.261
  19  0.346743
  20  0.11961
Done.

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

Extracting fit parameters...

4FGL J0614.8+6136
   Spectrum: PowerLaw
249    Prefactor:  1.000e-04  3.252e-05  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  2.497e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
251        Scale:  8.979e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
607    Prefactor:  1.090e+00  1.196e-01  0.000e+00  1.000e+01 ( 1.000e+00)
608        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
609        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
602   Normalization:  1.013e+00  3.467e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 93.721 61.608
Photon Flux Upper Limit: 1.57e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.22e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/226430/likelihoodResults_550886401_551145601_4FGL_J0614.8+6136_daily_bin1202.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) = 4038.23799401
delta logL = -0.000105632485884

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4038.23789064
delta logL = -2.2631243155e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18948E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6993       1.0000          .0000       10.000    
     3 'Normalizat'    1.0126       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0905       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4038.238     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      284 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10807E-03    20.286        .18142E-01** at limit **
   2  Index         2.5760        8.0638        .50000        .14793E-04
   3  Normalizat    1.0126        .70300E-02    .44073E-03    .35623E-04
   4  Prefactor     1.0905        .25308E-02    .15232E-03   -.30937E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000108067
  Index      = 2.57597
  Normalizat = 1.01263
  Prefactor  = 1.09048
 **********
 **   18 **HESSE 
 **********

 FCN=   4038.238     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      313 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10807E-03    106.84        .36285E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5760        6.0618        .50000       -.50614    
   3  Normalizat    1.0126        .16070E-01    .17629E-04   -.92608    
   4  Prefactor     1.0905        .57851E-02    .60928E-05   -.89772    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.94801e-09
Minuit parameter uncertainties:
  1  0.0588185
  2  222.598
  3  0.0160701
  4  0.00578509
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/226430': 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) = 4038.2378887
delta logL = -3.26713234244e-07

Extracting fit parameters...

4FGL J0614.8+6136
   Spectrum: PowerLaw
249    Prefactor:  1.081e-04  5.882e-02  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  2.576e+00  2.226e+02  0.000e+00  1.000e+01 (-1.000e+00)
251        Scale:  8.979e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
607    Prefactor:  1.090e+00  5.785e-03  0.000e+00  1.000e+01 ( 1.000e+00)
608        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
609        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
602   Normalization:  1.013e+00  1.607e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 93.721 61.608

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/226430/cmap_HighResolution_550886401_551145601_4FGL_J0614.8+6136_daily_bin1202.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.22e-02', job_status='DONE', photon_flux_upper_limit='1.57e-07', time_completed='2021-08-24 19:18:47.894822', job_id='226430', GAL2='1.09', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1629857927.89', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='-3.27e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='1202' AND source_name='4FGL J0614.8+6136' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 24 19:18:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 226430: <4FGL_J0614.8+6136_daily_bin1202> in cluster <slac> Done

Job <4FGL_J0614.8+6136_daily_bin1202> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Aug 24 19:05:45 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 24 19:05:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 24 19:05:47 2021
Terminated at Tue Aug 24 19:18:48 2021
Results reported at Tue Aug 24 19:18:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0614.8+6136_daily_bin1202 93.7213 61.6079 550886401 551145601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0614.8+6136 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   581.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             240.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            783 sec.

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

