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


Performing analysis on: 4FGL_J1150.6+4154_daily_bin1338
RA = 177.656, Dec = 41.9096
tmin = 586137601, tmax = 586396801
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='113898', job_status='RUN', time_executed='2021-09-04 13:23:51.894709', time_epoch_executed='1630787031.89' WHERE source_name='4FGL J1150.6+4154' and cadence='daily' and bin_id='1338'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/113898

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/113898/ft1_4FGL_J1150.6+4154_daily_bin1338.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/113898/ft2_4FGL_J1150.6+4154_daily_bin1338.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/113898/ft1_4FGL_J1150.6+4154_daily_bin1338.fits outfile=/scratch/kocevski/113898/ft1_filteredMKT_4FGL_J1150.6+4154_daily_bin1338.fits ra=177.656 dec=41.9096 rad=12.0 tmin=586137601.0 tmax=586396801.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.51
user 4.28
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/113898/ft2_4FGL_J1150.6+4154_daily_bin1338.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/113898/ft2_4FGL_J1150.6+4154_daily_bin1338.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/113898/ft1_filteredMKT_4FGL_J1150.6+4154_daily_bin1338.fits evtable="EVENTS" outfile="/scratch/kocevski/113898/ft1_filtered_4FGL_J1150.6+4154_daily_bin1338.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/113898/ft1_filtered_4FGL_J1150.6+4154_daily_bin1338.fits" evtable="EVENTS" scfile=/scratch/kocevski/113898/ft2_4FGL_J1150.6+4154_daily_bin1338.fits sctable="SC_DATA" outfile=/scratch/kocevski/113898/ltcube_586137601_586396801_4FGL_J1150.6+4154_daily_bin1338.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/113898/ft2_4FGL_J1150.6+4154_daily_bin1338.fits
.....................!
real 10.00
user 9.67
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/113898/ft1_filtered_4FGL_J1150.6+4154_daily_bin1338.fits evtable="EVENTS" scfile=/scratch/kocevski/113898/ft2_4FGL_J1150.6+4154_daily_bin1338.fits sctable="SC_DATA" expcube=/scratch/kocevski/113898/ltcube_586137601_586396801_4FGL_J1150.6+4154_daily_bin1338.fits outfile=/scratch/kocevski/113898/expmap_586137601_586396801_4FGL_J1150.6+4154_daily_bin1338.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/113898/ltcube_586137601_586396801_4FGL_J1150.6+4154_daily_bin1338.fits
.....................!
real 191.34
user 185.95
sys 4.86

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

Setting source of interest to:
4FGL J1150.6+4154 @ 177.656 41.9096

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/113898/ft1_filtered_4FGL_J1150.6+4154_daily_bin1338.fits scfile=/scratch/kocevski/113898/ft2_4FGL_J1150.6+4154_daily_bin1338.fits outfile=/scratch/kocevski/113898/cmap_586137601_586396801_4FGL_J1150.6+4154_daily_bin1338.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=177.656 yref=41.9096 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.60
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/113898/ft1_filtered_4FGL_J1150.6+4154_daily_bin1338.fits scfile=/scratch/kocevski/113898/ft2_4FGL_J1150.6+4154_daily_bin1338.fits outfile=/scratch/kocevski/113898/cmap_HighResolution_586137601_586396801_4FGL_J1150.6+4154_daily_bin1338.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=177.656 yref=41.9096 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.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/113898/ft1_filtered_4FGL_J1150.6+4154_daily_bin1338.fits evtable="EVENTS" scfile=/scratch/kocevski/113898/ft2_4FGL_J1150.6+4154_daily_bin1338.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/113898/Model_4FGL_J1150.6+4154_daily_bin1338.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/113898/ft1_filtered_4FGL_J1150.6+4154_daily_bin1338.fits.....................!
real 48.01
user 46.54
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/113898/ft1_filtered_4FGL_J1150.6+4154_daily_bin1338.fits', '/scratch/kocevski/113898/ft2_4FGL_J1150.6+4154_daily_bin1338.fits', expMap='/scratch/kocevski/113898/expmap_586137601_586396801_4FGL_J1150.6+4154_daily_bin1338.fits', expCube='/scratch/kocevski/113898/ltcube_586137601_586396801_4FGL_J1150.6+4154_daily_bin1338.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/113898/Model_4FGL_J1150.6+4154_daily_bin1338.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1150.6+4154'

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  5.203e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
330        alpha:  1.619e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
331         beta:  1.025e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
332           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/113898/ft1_filtered_4FGL_J1150.6+4154_daily_bin1338.fits
Spacecraft file(s): /scratch/kocevski/113898/ft2_4FGL_J1150.6+4154_daily_bin1338.fits
Exposure map: /scratch/kocevski/113898/expmap_586137601_586396801_4FGL_J1150.6+4154_daily_bin1338.fits
Exposure cube: /scratch/kocevski/113898/ltcube_586137601_586396801_4FGL_J1150.6+4154_daily_bin1338.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/113898/Model_4FGL_J1150.6+4154_daily_bin1338.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) = 5240.7591927

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10360E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .52400       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.1494       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    71.508       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.0699       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .22537E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    73.542       1.0000         .10000E-03   10000.    
    13 'norm      '    .10072E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.006       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.0688       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4433       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .87940       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6750E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5240.749     FROM MIGRAD    STATUS=CONVERGED    548 CALLS     2695 TOTAL
                     EDM=   .54E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    70.263       -.20373E-05** at limit **
   2  norm          .52398        .30270       -.14737E-07    .13452E-03
   3  Prefactor     7.1504        23.144       -.58725E-06    .34742E-04
   4  Prefactor     .10000E-03    41.155       -.18524E-06** at limit **
   5  Prefactor     .10000E-03    39.004        .68389E-06** at limit **
   6  norm          .10000E-03    20.517       -.70905E-06** at limit **
   7  norm          71.532        54.018       -.19252E-05    .50855E-04
   8  Prefactor     .10000E-03    1.1189       -.12719E-06** at limit **
   9  Prefactor     .10000E-03    25.835        .46567E-06** at limit **
  10  norm          3.0718        3.6859        .50964E-06    .77211E-04
  11  Prefactor     .10000E-03    5.6556       -.21218E-05** at limit **
  12  Prefactor     73.578        55.075        .10915E-05   -.23507E-05
  13  norm          .10000E-03    .87679        .89304E-06** at limit **
  14  norm          .10000E-03    3.1604       -.28920E-07** at limit **
  15  Prefactor     .10000E-03    12.496       -.59333E-06** at limit **
  16  Prefactor     .10000E-03    1.7342       -.10775E-06** at limit **
  17  Prefactor     23.075        48.260        .12301E-05    .89360E-05
  18  Prefactor     .10000E-03    21.212       -.77498E-06** at limit **
  19  Prefactor     .10000E-03    17.417        .30843E-06** at limit **
  20  Prefactor     .10000E-03    9.2833       -.79340E-07** at limit **
  21  norm          .10000E-03    9.0680       -.10555E-06** at limit **
  22  Prefactor     3.0664        69.826       -.16372E-05   -.39912E-06
  23  Normalizat    1.4433        .20689        .53080E-06    .12101E-03
  24  Prefactor     .87955        .23270        .16192E-05    .12805E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.523984
  Prefactor  = 7.15038
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 71.5317
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.0718
  Prefactor  = 0.000100001
  Prefactor  = 73.5782
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.0749
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.06635
  Normalizat = 1.4433
  Prefactor  = 0.879552
 **********
 **   18 **HESSE 
 **********

 FCN=   5240.749     FROM HESSE     STATUS=OK           391 CALLS     3086 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    70.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .52398        .30066        .28111E-04   -1.5563    
   3  Prefactor     7.1504        23.039        .15002E-03   -1.5173    
   4  Prefactor     .10000E-03    41.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    38.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    20.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          71.532        53.771        .23737E-03   -1.4014    
   8  Prefactor     .10000E-03    1.1262        .74800E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    25.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.0718        3.6552        .13880E-03   -1.5357    
  11  Prefactor     .10000E-03    13.099        .30760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     73.578        55.003        .46817E-04   -1.3990    
  13  norm          .10000E-03    .91321        .10302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.1609        .12569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.7790        .93129E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     23.075        48.242        .83510E-04   -1.4747    
  18  Prefactor     .10000E-03    21.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    17.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.3995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    9.1444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.0664        70.076        .23156E-03   -1.5358    
  23  Normalizat    1.4433        .24885        .22635E-03   -.79384    
  24  Prefactor     .87955        .27940        .32792E-03   -.96859    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69337e-10
Minuit parameter uncertainties:
  1  0.000102974
  2  0.300659
  3  23.0672
  4  5.10065e-05
  5  6.90109e-05
  6  1.63239e-06
  7  53.8072
  8  5.7417e-06
  9  0.000109065
  10  3.65549
  11  0.000243825
  12  55.041
  13  2.49489e-06
  14  9.2777e-07
  15  7.428e-06
  16  8.87264e-06
  17  48.3239
  18  3.7963e-05
  19  3.81855e-05
  20  3.90935e-05
  21  1.26736e-05
  22  29.3557
  23  0.24906
  24  0.279853
Done.

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

Extracting fit parameters...

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  1.000e-04  9.278e-07  1.000e-04  1.000e+04 ( 1.000e-13)
330        alpha:  1.619e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
331         beta:  1.025e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
332           Eb:  1.870e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
672    Prefactor:  8.796e-01  2.799e-01  0.000e+00  1.000e+01 ( 1.000e+00)
673        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
674        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
671   Normalization:  1.443e+00  2.491e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 177.656 41.910
Photon Flux Upper Limit: 2.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.16e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/113898/likelihoodResults_586137601_586396801_4FGL_J1150.6+4154_daily_bin1338.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) = 5240.74986059
delta logL = -0.00124948387656

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5240.74861135
delta logL = -2.41635461862e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6154       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4432       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87968       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6750E+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=   5240.749     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      243 TOTAL
                     EDM=   .75E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    295.84        .12576E-02** at limit **
   2  alpha         1.5097        3.7099        .50000        .74351E-08
   3  Normalizat    1.4433        .54898E-01    .22636E-03   -.25351E-03
   4  Prefactor     .87955        .64220E-01    .32792E-03   -.17210E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.50966
  Normalizat = 1.4433
  Prefactor  = 0.87955
 **********
 **   18 **HESSE 
 **********

 FCN=   5240.749     FROM HESSE     STATUS=OK            29 CALLS      272 TOTAL
                     EDM=   .72E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.937        .25153E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5097        3.3712        .50000       -.40730    
   3  Normalizat    1.4433        .23759        .45271E-04   -.79384    
   4  Prefactor     .87955        .27771        .13117E-04   -.96859    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.16505e-11
Minuit parameter uncertainties:
  1  1.63611e-05
  2  338.705
  3  0.237772
  4  0.27816
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/113898': 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) = 5240.74861097
delta logL = 1.38815266837e-07

Extracting fit parameters...

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  1.000e-04  1.636e-05  1.000e-04  1.000e+04 ( 1.000e-13)
330        alpha:  1.510e+00  3.387e+02  0.000e+00  5.000e+00 ( 1.000e+00)
331         beta:  1.025e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
332           Eb:  1.870e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
672    Prefactor:  8.796e-01  2.782e-01  0.000e+00  1.000e+01 ( 1.000e+00)
673        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
674        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
671   Normalization:  1.443e+00  2.378e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 177.656 41.910

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/113898/cmap_HighResolution_586137601_586396801_4FGL_J1150.6+4154_daily_bin1338.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.16e-05', job_status='DONE', photon_flux_upper_limit='2.35e-08', time_completed='2021-09-04 13:35:07.324979', job_id='113898', GAL2='0.88', fit_tolerance='1e-08', EG2='1.44', EG='1.44', time_epoch_completed='1630787707.33', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='1.39e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='1338' AND source_name='4FGL J1150.6+4154' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:35:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 113898: <4FGL_J1150.6+4154_daily_bin1338> in cluster <slac> Done

Job <4FGL_J1150.6+4154_daily_bin1338> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 13:21:33 2021
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 13:21:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 13:21:34 2021
Terminated at Sat Sep  4 13:35:07 2021
Results reported at Sat Sep  4 13:35:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.6+4154_daily_bin1338 177.656 41.9096 586137601 586396801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1150.6+4154 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   674.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             327.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            814 sec.

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

