/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 8 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 = 7416
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1150.6+4154_daily_bin419
RA = 177.656, Dec = 41.9096
tmin = 347932801, tmax = 348192001
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='110506', job_status='RUN', time_executed='2021-09-04 13:11:40.509955', time_epoch_executed='1630786300.51' WHERE source_name='4FGL J1150.6+4154' and cadence='daily' and bin_id='419'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/110506

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/110506/ft1_4FGL_J1150.6+4154_daily_bin419.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/110506/ft2_4FGL_J1150.6+4154_daily_bin419.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/110506/ft1_4FGL_J1150.6+4154_daily_bin419.fits outfile=/scratch/kocevski/110506/ft1_filteredMKT_4FGL_J1150.6+4154_daily_bin419.fits ra=177.656 dec=41.9096 rad=12.0 tmin=347932801.0 tmax=348192001.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 3.42
user 3.19
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/110506/ft2_4FGL_J1150.6+4154_daily_bin419.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/110506/ft1_filteredMKT_4FGL_J1150.6+4154_daily_bin419.fits evtable="EVENTS" outfile="/scratch/kocevski/110506/ft1_filtered_4FGL_J1150.6+4154_daily_bin419.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/110506/ft1_filtered_4FGL_J1150.6+4154_daily_bin419.fits" evtable="EVENTS" scfile=/scratch/kocevski/110506/ft2_4FGL_J1150.6+4154_daily_bin419.fits sctable="SC_DATA" outfile=/scratch/kocevski/110506/ltcube_347932801_348192001_4FGL_J1150.6+4154_daily_bin419.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/110506/ft2_4FGL_J1150.6+4154_daily_bin419.fits
.....................!
real 12.07
user 11.67
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/110506/ft1_filtered_4FGL_J1150.6+4154_daily_bin419.fits evtable="EVENTS" scfile=/scratch/kocevski/110506/ft2_4FGL_J1150.6+4154_daily_bin419.fits sctable="SC_DATA" expcube=/scratch/kocevski/110506/ltcube_347932801_348192001_4FGL_J1150.6+4154_daily_bin419.fits outfile=/scratch/kocevski/110506/expmap_347932801_348192001_4FGL_J1150.6+4154_daily_bin419.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/110506/ltcube_347932801_348192001_4FGL_J1150.6+4154_daily_bin419.fits
.....................!
real 189.92
user 185.03
sys 4.49

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/110506/ft1_filtered_4FGL_J1150.6+4154_daily_bin419.fits scfile=/scratch/kocevski/110506/ft2_4FGL_J1150.6+4154_daily_bin419.fits outfile=/scratch/kocevski/110506/cmap_347932801_348192001_4FGL_J1150.6+4154_daily_bin419.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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/110506/ft1_filtered_4FGL_J1150.6+4154_daily_bin419.fits scfile=/scratch/kocevski/110506/ft2_4FGL_J1150.6+4154_daily_bin419.fits outfile=/scratch/kocevski/110506/cmap_HighResolution_347932801_348192001_4FGL_J1150.6+4154_daily_bin419.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.54
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.2921       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.9090       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    18.620       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10431E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    96.981       1.0000         .10000E-03   10000.    
    10 'norm      '    .83620       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.348       1.0000         .10000E-03   10000.    
    13 'norm      '    .40583       1.0000         .10000E-03   10000.    
    14 'norm      '    20.546       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.4390       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.0367       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.762       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0298       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .97644       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=   6780.895     FROM MIGRAD    STATUS=CONVERGED    538 CALLS     2325 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    117.60       -.90975E-05** at limit **
   2  norm          1.2922        .33382       -.93878E-07   -.30791E-03
   3  Prefactor     1.9124        27.533        .11900E-04   -.18318E-03
   4  Prefactor     .10000E-03    6.6925       -.22279E-06** at limit **
   5  Prefactor     .10000E-03    91.341        .15099E-04** at limit **
   6  norm          18.621        15.691        .19187E-05   -.11002E-03
   7  norm          .10000E-03    16.715        .33198E-06** at limit **
   8  Prefactor     .10000E-03    1.0375       -.60734E-07** at limit **
   9  Prefactor     96.984        46.559        .20848E-05    .44835E-04
  10  norm          .83562        1.9286       -.59784E-06   -.16642E-02
  11  Prefactor     .10000E-03    1.2031       -.25657E-07** at limit **
  12  Prefactor     10.327        30.730       -.91159E-05   -.14872E-05
  13  norm          .40629        .64047        .21784E-06    .15346E-02
  14  norm          20.548        10.833        .12458E-05    .36547E-04
  15  Prefactor     5.4376        20.829       -.75811E-06   -.32095E-04
  16  Prefactor     2.0365        2.3023       -.31783E-07   -.29255E-03
  17  Prefactor     .10000E-03    83.796       -.66569E-05** at limit **
  18  Prefactor     .10000E-03    8.2584       -.42132E-08** at limit **
  19  Prefactor     .10000E-03    15.075       -.28758E-06** at limit **
  20  Prefactor     .10000E-03    2.8147        .10912E-07** at limit **
  21  norm          .10000E-03    1.7654        .15085E-07** at limit **
  22  Prefactor     16.762        15.893       -.13909E-06   -.15066E-04
  23  Normalizat    1.0298        .16178        .21873E-07   -.34307E-04
  24  Prefactor     .97650        .19050       -.47887E-06   -.24014E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.29216
  Prefactor  = 1.91241
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.621
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 96.9835
  norm       = 0.835618
  Prefactor  = 0.0001
  Prefactor  = 10.3268
  norm       = 0.406286
  norm       = 20.548
  Prefactor  = 5.43756
  Prefactor  = 2.03649
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.7618
  Normalizat = 1.02982
  Prefactor  = 0.9765
 **********
 **   18 **HESSE 
 **********

 FCN=   6780.895     FROM HESSE     STATUS=OK           401 CALLS     2726 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    117.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.2922        .33236        .22658E-04   -1.5481    
   3  Prefactor     1.9124        24.826        .30090E-03   -1.5431    
   4  Prefactor     .10000E-03    6.7091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    91.134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          18.621        15.567        .92818E-04   -1.4845    
   7  norm          .10000E-03    16.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.0463        .81672E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     96.984        45.424        .40817E-04   -1.3735    
  10  norm          .83562        1.6599        .15660E-02   -1.5525    
  11  Prefactor     .10000E-03    1.2055        .88195E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.327        29.699        .12456E-03   -1.5065    
  13  norm          .40629        .51996        .77779E-03   -1.5580    
  14  norm          20.548        10.807        .88363E-04   -1.4801    
  15  Prefactor     5.4376        20.842        .17230E-03   -1.5242    
  16  Prefactor     2.0365        2.2919        .12784E-03   -1.5423    
  17  Prefactor     .10000E-03    84.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.2906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    15.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.8326        .13491E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.7685        .10680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     16.762        15.889        .97825E-04   -1.4889    
  23  Normalizat    1.0298        .18698        .23176E-03   -.92038    
  24  Prefactor     .97650        .22061        .28455E-03   -.93517    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3003e-09
Minuit parameter uncertainties:
  1  3.82205e-05
  2  0.332363
  3  13.7875
  4  4.76453e-05
  5  2.50925e-06
  6  15.5706
  7  4.68558e-07
  8  8.83317e-06
  9  45.4405
  10  1.66004
  11  1.53901e-06
  12  29.741
  13  0.519964
  14  10.8083
  15  20.8698
  16  2.29201
  17  1.22695e-05
  18  4.82108e-06
  19  7.99701e-06
  20  1.16735e-06
  21  8.94657e-07
  22  15.8932
  23  0.187102
  24  0.220818
Done.

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

Extracting fit parameters...

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  2.055e+01  1.081e+01  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.765e-01  2.208e-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.030e+00  1.871e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.82
Ra Dec: 177.656 41.910
Photon Index (Fixed Index): 1.62 +/- 0.00
Photon Flux (Fixed Index): 2.61e-08 +/- 1.38e-08
Energy Flux (Fixed Index): 4.63e-05 +/- 2.44e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6780.75490769
delta logL = 0.140562852461

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6780.75379798
delta logL = 0.141672566987

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    20.352       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3990       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0339       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97613       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=   6780.754     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      215 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          20.352        12.570        .22196E-02    .43284E-02
   2  alpha         1.3990        .41881        .32146       -.42399E-04
   3  Normalizat    1.0338        .15842        .41791E-01   -.15083E-03
   4  Prefactor     .97618        .19036        .45968E-01    .22561E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 20.3524
  alpha      = 1.39896
  Normalizat = 1.03381
  Prefactor  = 0.976175
 **********
 **   18 **HESSE 
 **********

 FCN=   6780.754     FROM HESSE     STATUS=OK            31 CALLS      246 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          20.352        11.070        .88782E-04   -1.4805    
   2  alpha         1.3990        .40243        .12963E-01   -.45606    
   3  Normalizat    1.0338        .18292        .23138E-03   -.91906    
   4  Prefactor     .97618        .22058        .28464E-03   -.93528    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1528e-08
Minuit parameter uncertainties:
  1  11.0712
  2  0.404623
  3  0.183029
  4  0.220782
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/110506': 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) = 6780.75379722
delta logL = 0.141673326543

Extracting fit parameters...

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  2.035e+01  1.107e+01  1.000e-04  1.000e+04 ( 1.000e-13)
330        alpha:  1.399e+00  4.046e-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.762e-01  2.208e-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.034e+00  1.830e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.10
Ra Dec: 177.656 41.910
Photon Index (Free Index): 1.40 +/- 0.40
Photon Flux (Free Index): 2.08e-08 +/- 1.41e-08
Energy Flux (Free Index): 6.45e-05 +/- 5.35e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/110506/cmap_HighResolution_347932801_348192001_4FGL_J1150.6+4154_daily_bin419.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.61e-08', energy_flux2='6.45e-05', photon_flux_error='1.38e-08', dlogl='1.42e-01', energy_flux='4.63e-05', photon_flux2='2.08e-08', job_status='DONE', time_completed='2021-09-04 13:22:41.396738', photon_index_error2='0.40', photon_index2='1.40', ts='15.82', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='5.35e-05', EG='1.03', time_epoch_completed='1630786961.4', return_code='0', job_id='110506', GAL2='0.98', EG2='1.03', return_code2='0', energy_flux_error='2.44e-05', photon_flux_error2='1.41e-08', ts2='16.10', photon_index='1.62' WHERE bin_id='419' AND source_name='4FGL J1150.6+4154' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:22:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 110506: <4FGL_J1150.6+4154_daily_bin419> in cluster <slac> Done

Job <4FGL_J1150.6+4154_daily_bin419> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 13:11:20 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 13:11:21 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:11:21 2021
Terminated at Sat Sep  4 13:22:42 2021
Results reported at Sat Sep  4 13:22:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.6+4154_daily_bin419 177.656 41.9096 347932801 348192001 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 :                                   656.09 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             338.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   680 sec.
    Turnaround time :                            682 sec.

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

