/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 190 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 = 7467
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1150.6+4154_daily_bin71
RA = 177.656, Dec = 41.9096
tmin = 257731201, tmax = 257990401
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='107514', job_status='RUN', time_executed='2021-09-04 13:05:29.514670', time_epoch_executed='1630785929.51' WHERE source_name='4FGL J1150.6+4154' and cadence='daily' and bin_id='71'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/107514

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/107514/ft1_4FGL_J1150.6+4154_daily_bin71.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/107514/ft2_4FGL_J1150.6+4154_daily_bin71.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/107514/ft1_4FGL_J1150.6+4154_daily_bin71.fits outfile=/scratch/kocevski/107514/ft1_filteredMKT_4FGL_J1150.6+4154_daily_bin71.fits ra=177.656 dec=41.9096 rad=12.0 tmin=257731201.0 tmax=257990401.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 1.74
user 1.22
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/107514/ft1_filtered_4FGL_J1150.6+4154_daily_bin71.fits" evtable="EVENTS" scfile=/scratch/kocevski/107514/ft2_4FGL_J1150.6+4154_daily_bin71.fits sctable="SC_DATA" outfile=/scratch/kocevski/107514/ltcube_257731201_257990401_4FGL_J1150.6+4154_daily_bin71.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/107514/ft2_4FGL_J1150.6+4154_daily_bin71.fits
.....................!
real 12.54
user 12.15
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/107514/ft1_filtered_4FGL_J1150.6+4154_daily_bin71.fits evtable="EVENTS" scfile=/scratch/kocevski/107514/ft2_4FGL_J1150.6+4154_daily_bin71.fits sctable="SC_DATA" expcube=/scratch/kocevski/107514/ltcube_257731201_257990401_4FGL_J1150.6+4154_daily_bin71.fits outfile=/scratch/kocevski/107514/expmap_257731201_257990401_4FGL_J1150.6+4154_daily_bin71.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/107514/ltcube_257731201_257990401_4FGL_J1150.6+4154_daily_bin71.fits
.....................!
real 189.88
user 185.19
sys 4.28

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/107514/ft1_filtered_4FGL_J1150.6+4154_daily_bin71.fits scfile=/scratch/kocevski/107514/ft2_4FGL_J1150.6+4154_daily_bin71.fits outfile=/scratch/kocevski/107514/cmap_257731201_257990401_4FGL_J1150.6+4154_daily_bin71.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 1.13
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/107514/ft1_filtered_4FGL_J1150.6+4154_daily_bin71.fits scfile=/scratch/kocevski/107514/ft2_4FGL_J1150.6+4154_daily_bin71.fits outfile=/scratch/kocevski/107514/cmap_HighResolution_257731201_257990401_4FGL_J1150.6+4154_daily_bin71.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.62
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/107514/ft1_filtered_4FGL_J1150.6+4154_daily_bin71.fits', '/scratch/kocevski/107514/ft2_4FGL_J1150.6+4154_daily_bin71.fits', expMap='/scratch/kocevski/107514/expmap_257731201_257990401_4FGL_J1150.6+4154_daily_bin71.fits', expCube='/scratch/kocevski/107514/ltcube_257731201_257990401_4FGL_J1150.6+4154_daily_bin71.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/107514/Model_4FGL_J1150.6+4154_daily_bin71.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/107514/ft1_filtered_4FGL_J1150.6+4154_daily_bin71.fits
Spacecraft file(s): /scratch/kocevski/107514/ft2_4FGL_J1150.6+4154_daily_bin71.fits
Exposure map: /scratch/kocevski/107514/expmap_257731201_257990401_4FGL_J1150.6+4154_daily_bin71.fits
Exposure cube: /scratch/kocevski/107514/ltcube_257731201_257990401_4FGL_J1150.6+4154_daily_bin71.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/107514/Model_4FGL_J1150.6+4154_daily_bin71.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) = 6104.83376504

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    73.066       1.0000         .10000E-03   10000.    
     2 'norm      '    1.6472       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    9.8150       1.0000         .10000E-03   10000.    
     7 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13861E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.4701       1.0000         .10000E-03   10000.    
    10 'norm      '    .12065E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.239       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .15382E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.388       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    14.722       1.0000         .10000E-03   10000.    
    22 'Prefactor '    20.672       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0600       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .97494       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=   6104.807     FROM MIGRAD    STATUS=CONVERGED    562 CALLS     2739 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     72.950        90.674       -.71991E-05   -.85798E-04
   2  norm          1.6471        .34952        .18387E-08    .14252E-02
   3  Prefactor     .10000E-03    6.1820       -.14543E-08** at limit **
   4  Prefactor     .10000E-03    8.1360        .42249E-08** at limit **
   5  Prefactor     .10000E-03    35.962        .17132E-05** at limit **
   6  norm          9.8159        8.7710        .10243E-07    .10260E-03
   7  norm          .10000E-03    34.837        .32035E-06** at limit **
   8  Prefactor     .10000E-03    1.1149       -.16980E-05** at limit **
   9  Prefactor     2.5785        86.945        .33669E-04   -.41041E-04
  10  norm          .10000E-03    1.2105       -.13955E-05** at limit **
  11  Prefactor     .10000E-03    2.3342        .28454E-07** at limit **
  12  Prefactor     .10000E-03    32.767       -.20185E-05** at limit **
  13  norm          .10000E-03    .29945        .30430E-07** at limit **
  14  norm          .10000E-03    7.9764       -.15403E-07** at limit **
  15  Prefactor     22.238        20.965        .12425E-07    .60505E-04
  16  Prefactor     .10001E-03    1.4978        .20184E-06** at limit **
  17  Prefactor     .10000E-03    13.017       -.10293E-06** at limit **
  18  Prefactor     18.383        14.496        .97571E-08    .14448E-04
  19  Prefactor     .10000E-03    17.939        .33387E-06** at limit **
  20  Prefactor     .10000E-03    3.1532        .59902E-07** at limit **
  21  norm          14.721        8.6789       -.52680E-07   -.56150E-05
  22  Prefactor     20.665        25.488        .20923E-06    .18600E-04
  23  Normalizat    1.0603        .17116        .89887E-06    .33691E-03
  24  Prefactor     .97466        .20609       -.10129E-05    .43410E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 72.9502
  norm       = 1.64714
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.81585
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.57845
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 22.2378
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 18.3831
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.7213
  Prefactor  = 20.6647
  Normalizat = 1.06031
  Prefactor  = 0.974658
 **********
 **   18 **HESSE 
 **********

 FCN=   6104.807     FROM HESSE     STATUS=OK           399 CALLS     3138 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     72.950        92.588        .23484E-03   -1.3998    
   2  norm          1.6471        .34990        .20599E-04   -1.5451    
   3  Prefactor     .10000E-03    6.2021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.1669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    36.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          9.8159        8.7676        .12791E-03   -1.5081    
   7  norm          .10000E-03    34.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.5447        .14529E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.5785        94.468        .13009E-02   -1.5387    
  10  norm          .10000E-03    2.1381        .16460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.3583        .11651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    33.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .43187        .82942E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    8.0949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     22.238        20.967        .84938E-04   -1.4764    
  16  Prefactor     .10001E-03    8.7411        .18546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     18.383        14.479        .93402E-04   -1.4850    
  19  Prefactor     .10000E-03    17.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.1703        .13549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          14.721        8.6733        .10439E-03   -1.4940    
  22  Prefactor     20.665        25.480        .88095E-04   -1.4798    
  23  Normalizat    1.0603        .19766        .22951E-03   -.91036    
  24  Prefactor     .97466        .23757        .28958E-03   -.93579    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74582e-09
Minuit parameter uncertainties:
  1  92.7719
  2  0.349902
  3  4.31324e-06
  4  4.35775e-06
  5  0.000160543
  6  8.76872
  7  1.00627e-06
  8  0.000119412
  9  31.267
  10  5.61671e-05
  11  1.04332e-05
  12  0.00017411
  13  4.95016e-06
  14  1.43804e-05
  15  20.9739
  16  0.000516446
  17  1.44984e-05
  18  14.4818
  19  2.10375e-05
  20  8.37411e-06
  21  8.67401
  22  25.4932
  23  0.197798
  24  0.237824
Done.

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

Extracting fit parameters...

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  1.000e-04  1.438e-05  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:  9.747e-01  2.378e-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.060e+00  1.978e-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.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.07e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/107514/likelihoodResults_257731201_257990401_4FGL_J1150.6+4154_daily_bin71.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) = 6104.80769396
delta logL = -0.000588544921811

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6104.79513351
delta logL = 0.0119719093291

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .32864       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7895       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0583       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97363       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.

 FCN=   6104.795     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      291 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .32867        22.491        .34876E-01   -.92013E-03
   2  alpha         2.7892        3.8486        .41506        .23308E-04
   3  Normalizat    1.0583        .14978E-01    .40032E-01    .78630E-05
   4  Prefactor     .97362        .18292E-01    .45937E-01    .12933E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.32867
  alpha      = 2.78923
  Normalizat = 1.05832
  Prefactor  = 0.973624
 **********
 **   18 **HESSE 
 **********

 FCN=   6104.795     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      326 TOTAL
                     EDM=   .85E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .32867        693.89        .20181E-02   -1.5593    
   2  alpha         2.7892        3.6812        .41665E-01    .11595    
   3  Normalizat    1.0583        .11409        .22972E-03   -.91102    
   4  Prefactor     .97362        .15820        .28974E-03   -.93614    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.54677e-07
Minuit parameter uncertainties:
  1  30.56
  2  33.9208
  3  0.114113
  4  0.158277
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/107514': 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) = 6104.7951335
delta logL = 0.0119719158192

Extracting fit parameters...

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  3.287e-01  3.056e+01  1.000e-04  1.000e+04 ( 1.000e-13)
330        alpha:  2.789e+00  3.392e+01  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:  9.736e-01  1.583e-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.058e+00  1.141e-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/107514/cmap_HighResolution_257731201_257990401_4FGL_J1150.6+4154_daily_bin71.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.07e-05', job_status='DONE', photon_flux_upper_limit='2.86e-08', time_completed='2021-09-04 13:17:51.085466', job_id='107514', GAL2='0.97', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1630786671.09', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.20e-02', ts2='0.02', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='71' AND source_name='4FGL J1150.6+4154' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:17:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0126>
Subject: Job 107514: <4FGL_J1150.6+4154_daily_bin71> in cluster <slac> Done

Job <4FGL_J1150.6+4154_daily_bin71> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 13:02:07 2021
Job was executed on host(s) <bullet0126>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 13:02:09 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:02:09 2021
Terminated at Sat Sep  4 13:17:51 2021
Results reported at Sat Sep  4 13:17:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.6+4154_daily_bin71 177.656 41.9096 257731201 257990401 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 :                                   740.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             275.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   942 sec.
    Turnaround time :                            944 sec.

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

