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


Performing analysis on: 4FGL_J1150.6+4154_daily_bin36
RA = 177.656, Dec = 41.9096
tmin = 248659201, tmax = 248918401
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='107457', job_status='RUN', time_executed='2021-09-04 13:06:05.628254', time_epoch_executed='1630785965.63' WHERE source_name='4FGL J1150.6+4154' and cadence='daily' and bin_id='36'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/107457

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/107457/ft1_4FGL_J1150.6+4154_daily_bin36.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/107457/ft2_4FGL_J1150.6+4154_daily_bin36.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/107457/ft1_4FGL_J1150.6+4154_daily_bin36.fits outfile=/scratch/kocevski/107457/ft1_filteredMKT_4FGL_J1150.6+4154_daily_bin36.fits ra=177.656 dec=41.9096 rad=12.0 tmin=248659201.0 tmax=248918401.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.48
user 1.23
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/107457/ft1_filtered_4FGL_J1150.6+4154_daily_bin36.fits" evtable="EVENTS" scfile=/scratch/kocevski/107457/ft2_4FGL_J1150.6+4154_daily_bin36.fits sctable="SC_DATA" outfile=/scratch/kocevski/107457/ltcube_248659201_248918401_4FGL_J1150.6+4154_daily_bin36.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/107457/ft2_4FGL_J1150.6+4154_daily_bin36.fits
.....................!
real 12.70
user 12.29
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/107457/ft1_filtered_4FGL_J1150.6+4154_daily_bin36.fits evtable="EVENTS" scfile=/scratch/kocevski/107457/ft2_4FGL_J1150.6+4154_daily_bin36.fits sctable="SC_DATA" expcube=/scratch/kocevski/107457/ltcube_248659201_248918401_4FGL_J1150.6+4154_daily_bin36.fits outfile=/scratch/kocevski/107457/expmap_248659201_248918401_4FGL_J1150.6+4154_daily_bin36.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/107457/ltcube_248659201_248918401_4FGL_J1150.6+4154_daily_bin36.fits
.....................!
real 191.79
user 186.63
sys 4.79

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/107457/ft1_filtered_4FGL_J1150.6+4154_daily_bin36.fits scfile=/scratch/kocevski/107457/ft2_4FGL_J1150.6+4154_daily_bin36.fits outfile=/scratch/kocevski/107457/cmap_248659201_248918401_4FGL_J1150.6+4154_daily_bin36.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.62
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.0518       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .17742E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.6442       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    9.8688       1.0000         .10000E-03   10000.    
     7 'norm      '    .17018       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.8010       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .94387       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.9910       1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    12.805       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.9488       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .93362       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10438E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .14388E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    37.849       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.9302       1.0000         .10000E-03   10000.    
    21 'norm      '    .49489E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.244       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1206       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .89071       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=   5829.151     FROM MIGRAD    STATUS=CONVERGED    611 CALLS     3243 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.364       -.23606E-06** at limit **
   2  norm          1.0519        .29591        .46288E-08   -.84726E-03
   3  Prefactor     .10009E-03    13.293        .83088E-06** at limit **
   4  Prefactor     6.6497        11.577       -.60978E-06   -.17558E-03
   5  Prefactor     .10000E-03    26.994        .38040E-06** at limit **
   6  norm          9.8762        13.589        .38087E-06   -.53036E-05
   7  norm          .38680        33.436        .43864E-06   -.34170E-04
   8  Prefactor     1.8014        1.9892        .73499E-07    .10735E-03
   9  Prefactor     .10000E-03    18.769       -.31818E-06** at limit **
  10  norm          .94355        1.9851        .40887E-06    .41766E-03
  11  Prefactor     .10000E-03    2.7107       -.69794E-07** at limit **
  12  Prefactor     4.0234        68.009       -.84107E-05   -.56173E-04
  13  norm          .10000E-03    .53777       -.59131E-06** at limit **
  14  norm          12.811        8.4764        .12173E-06    .89056E-04
  15  Prefactor     6.9537        25.288       -.13886E-06    .70180E-05
  16  Prefactor     .94019        2.9510        .70626E-06    .12916E-03
  17  Prefactor     .10000E-03    15.973       -.34593E-07** at limit **
  18  Prefactor     .10001E-03    104.37       -.43826E-05** at limit **
  19  Prefactor     37.851        38.604       -.22859E-06    .43492E-04
  20  Prefactor     5.9325        6.0266        .14275E-05    .99667E-04
  21  norm          .10001E-03    7.5530       -.21765E-06** at limit **
  22  Prefactor     16.253        28.058       -.46093E-06    .39836E-04
  23  Normalizat    1.1209        .18125        .16674E-05    .21858E-03
  24  Prefactor     .89046        .20859       -.16683E-05    .22522E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.05186
  Prefactor  = 0.000100091
  Prefactor  = 6.64966
  Prefactor  = 0.0001
  norm       = 9.87619
  norm       = 0.386797
  Prefactor  = 1.80141
  Prefactor  = 0.0001
  norm       = 0.943551
  Prefactor  = 0.0001
  Prefactor  = 4.02343
  norm       = 0.0001
  norm       = 12.8107
  Prefactor  = 6.95369
  Prefactor  = 0.94019
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 37.8508
  Prefactor  = 5.93254
  norm       = 0.000100009
  Prefactor  = 16.253
  Normalizat = 1.12092
  Prefactor  = 0.890465
 **********
 **   18 **HESSE 
 **********

 FCN=   5829.151     FROM HESSE     STATUS=OK           419 CALLS     3662 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.0519        .29595        .20634E-04   -1.5503    
   3  Prefactor     .10009E-03    86.803        .48348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.6497        11.382        .15568E-03   -1.5192    
   5  Prefactor     .10000E-03    27.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          9.8762        13.026        .12756E-03   -1.5079    
   7  norm          .38680        34.288        .15666       -1.5584    
   8  Prefactor     1.8014        1.9359        .10548E-03   -1.5440    
   9  Prefactor     .10000E-03    18.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .94355        1.9166        .14430E-03   -1.5514    
  11  Prefactor     .10000E-03    12.053        .23734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.0234        72.998        .20188E-03   -1.5307    
  13  norm          .10000E-03    .64413        .95754E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          12.811        8.4772        .11194E-03   -1.4992    
  15  Prefactor     6.9537        25.100        .15219E-03   -1.5181    
  16  Prefactor     .94019        2.9228        .22018E-03   -1.5514    
  17  Prefactor     .10000E-03    15.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    109.59        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     37.851        38.570        .65147E-04   -1.4477    
  20  Prefactor     5.9325        6.2875        .82450E-03   -1.5221    
  21  norm          .10001E-03    60.063        .32715E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     16.253        23.187        .99373E-04   -1.4901    
  23  Normalizat    1.1209        .20830        .21908E-03   -.89083    
  24  Prefactor     .89046        .24119        .29378E-03   -.96475    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.31988e-09
Minuit parameter uncertainties:
  1  5.00835e-05
  2  0.295951
  3  0.00561909
  4  11.386
  5  5.62599e-05
  6  13.0297
  7  7.28695
  8  1.936
  9  4.42275e-05
  10  1.91668
  11  7.53825e-05
  12  34.3239
  13  3.34543e-05
  14  8.47797
  15  25.1382
  16  2.9232
  17  1.36666e-05
  18  0.00169792
  19  38.5951
  20  6.28819
  21  0.00149802
  22  23.1996
  23  0.208457
  24  0.241475
Done.

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

Extracting fit parameters...

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  1.281e+01  8.478e+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

GAL_V02
   Spectrum: PowerLaw
672    Prefactor:  8.905e-01  2.415e-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.121e+00  2.085e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.04
Ra Dec: 177.656 41.910
Photon Index (Fixed Index): 1.62 +/- 0.00
Photon Flux (Fixed Index): 1.63e-08 +/- 1.08e-08
Energy Flux (Fixed Index): 2.89e-05 +/- 1.91e-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) = 5828.97511578
delta logL = 0.175987387729

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5828.97275701
delta logL = 0.178346155061

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.199       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2974       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1230       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89219       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=   5828.973     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      207 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.199        9.2589        .28673E-02   -.26169E-02
   2  alpha         1.2975        .49545        .38661       -.13966E-04
   3  Normalizat    1.1230        .16703        .37132E-01    .43752E-04
   4  Prefactor     .89219        .20283        .66379E-01    .43550E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.1989
  alpha      = 1.29754
  Normalizat = 1.12302
  Prefactor  = 0.892188
 **********
 **   18 **HESSE 
 **********

 FCN=   5828.973     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.199        8.9698        .11469E-03   -1.5009    
   2  alpha         1.2975        .52804        .15476E-01   -.50178    
   3  Normalizat    1.1230        .19584        .21891E-03   -.89016    
   4  Prefactor     .89219        .23795        .29362E-03   -.96415    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.49214e-09
Minuit parameter uncertainties:
  1  8.97077
  2  0.533291
  3  0.195962
  4  0.238231
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/107457': 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) = 5828.97275699
delta logL = 0.178346174422

Extracting fit parameters...

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  1.220e+01  8.971e+00  1.000e-04  1.000e+04 ( 1.000e-13)
330        alpha:  1.298e+00  5.333e-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:  8.922e-01  2.382e-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.123e+00  1.960e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.40
Ra Dec: 177.656 41.910
Photon Index (Free Index): 1.30 +/- 0.53
Photon Flux (Free Index): 1.16e-08 +/- 1.02e-08
Energy Flux (Free Index): 4.70e-05 +/- 5.10e-05

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/107457/cmap_HighResolution_248659201_248918401_4FGL_J1150.6+4154_daily_bin36.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.63e-08', energy_flux2='4.70e-05', photon_flux_error='1.08e-08', dlogl='1.78e-01', energy_flux='2.89e-05', photon_flux2='1.16e-08', job_status='DONE', time_completed='2021-09-04 13:17:41.417068', photon_index_error2='0.53', photon_index2='1.30', ts='14.04', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='5.10e-05', EG='1.12', time_epoch_completed='1630786661.42', return_code='0', job_id='107457', GAL2='0.89', EG2='1.12', return_code2='0', energy_flux_error='1.91e-05', photon_flux_error2='1.02e-08', ts2='14.40', photon_index='1.62' WHERE bin_id='36' AND source_name='4FGL J1150.6+4154' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:17:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 107457: <4FGL_J1150.6+4154_daily_bin36> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.6+4154_daily_bin36 177.656 41.9096 248659201 248918401 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 :                                   695.53 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             223.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            940 sec.

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

