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


Performing analysis on: 4FGL_J1150.6+4154_daily_bin37
RA = 177.656, Dec = 41.9096
tmin = 248918401, tmax = 249177601
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='107458', job_status='RUN', time_executed='2021-09-04 13:04:09.538348', time_epoch_executed='1630785849.54' WHERE source_name='4FGL J1150.6+4154' and cadence='daily' and bin_id='37'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/107458

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/107458/ft1_4FGL_J1150.6+4154_daily_bin37.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/107458/ft2_4FGL_J1150.6+4154_daily_bin37.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/107458/ft1_4FGL_J1150.6+4154_daily_bin37.fits outfile=/scratch/kocevski/107458/ft1_filteredMKT_4FGL_J1150.6+4154_daily_bin37.fits ra=177.656 dec=41.9096 rad=12.0 tmin=248918401.0 tmax=249177601.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.94
user 1.74
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/107458/ft2_4FGL_J1150.6+4154_daily_bin37.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/107458/ft1_filteredMKT_4FGL_J1150.6+4154_daily_bin37.fits evtable="EVENTS" outfile="/scratch/kocevski/107458/ft1_filtered_4FGL_J1150.6+4154_daily_bin37.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.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/107458/ft1_filtered_4FGL_J1150.6+4154_daily_bin37.fits evtable="EVENTS" scfile=/scratch/kocevski/107458/ft2_4FGL_J1150.6+4154_daily_bin37.fits sctable="SC_DATA" expcube=/scratch/kocevski/107458/ltcube_248918401_249177601_4FGL_J1150.6+4154_daily_bin37.fits outfile=/scratch/kocevski/107458/expmap_248918401_249177601_4FGL_J1150.6+4154_daily_bin37.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/107458/ltcube_248918401_249177601_4FGL_J1150.6+4154_daily_bin37.fits
.....................!
real 189.95
user 185.52
sys 4.04

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/107458/ft1_filtered_4FGL_J1150.6+4154_daily_bin37.fits scfile=/scratch/kocevski/107458/ft2_4FGL_J1150.6+4154_daily_bin37.fits outfile=/scratch/kocevski/107458/cmap_248918401_249177601_4FGL_J1150.6+4154_daily_bin37.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.59
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/107458/ft1_filtered_4FGL_J1150.6+4154_daily_bin37.fits scfile=/scratch/kocevski/107458/ft2_4FGL_J1150.6+4154_daily_bin37.fits outfile=/scratch/kocevski/107458/cmap_HighResolution_248918401_249177601_4FGL_J1150.6+4154_daily_bin37.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.57
user 0.39
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .62776       1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.802       1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.147       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    6.6675       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.4888       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.9703       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.7186       1.0000         .10000E-03   10000.    
    14 'norm      '    9.1348       1.0000         .10000E-03   10000.    
    15 'Prefactor '    29.993       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10672E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.060       1.0000         .10000E-03   10000.    
    21 'norm      '    5.9245       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.9846       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .79794       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0869       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=   5018.898     FROM MIGRAD    STATUS=CONVERGED    526 CALLS     2652 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.885       -.56003E-05** at limit **
   2  norm          .62776        .27583       -.38473E-08   -.73408E-04
   3  Prefactor     25.804        18.113       -.12616E-06   -.23476E-04
   4  Prefactor     23.146        20.148       -.69774E-06   -.21320E-04
   5  Prefactor     .10000E-03    26.983       -.75514E-05** at limit **
   6  norm          6.6676        7.6308        .37676E-06    .51536E-03
   7  norm          .10000E-03    15.116       -.52143E-05** at limit **
   8  Prefactor     1.4876        1.9250       -.24472E-06   -.76175E-03
   9  Prefactor     .10000E-03    34.272        .14667E-04** at limit **
  10  norm          .10000E-03    .86437       -.37221E-07** at limit **
  11  Prefactor     3.9700        4.6748       -.29360E-06   -.30490E-03
  12  Prefactor     .10000E-03    17.111        .86655E-05** at limit **
  13  norm          2.7185        1.0973       -.48414E-07   -.18703E-03
  14  norm          9.1333        9.0738       -.18176E-06   -.16635E-03
  15  Prefactor     29.992        25.620       -.89885E-06    .22677E-05
  16  Prefactor     .10000E-03    2.8900       -.10813E-08** at limit **
  17  Prefactor     .10000E-03    20.987       -.15252E-05** at limit **
  18  Prefactor     .10000E-03    11.978        .44760E-06** at limit **
  19  Prefactor     .10000E-03    53.642       -.21085E-05** at limit **
  20  Prefactor     13.060        10.087       -.33880E-06   -.55498E-05
  21  norm          5.9316        9.6675        .85084E-05    .93960E-04
  22  Prefactor     7.9587        28.837       -.38596E-04   -.66035E-04
  23  Normalizat    .79774        .17802        .39010E-05   -.13305E-03
  24  Prefactor     1.0872        .21201       -.16982E-05    .11861E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.627758
  Prefactor  = 25.8037
  Prefactor  = 23.1457
  Prefactor  = 0.0001
  norm       = 6.66763
  norm       = 0.0001
  Prefactor  = 1.48763
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.96996
  Prefactor  = 0.0001
  norm       = 2.71852
  norm       = 9.13333
  Prefactor  = 29.9919
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.0598
  norm       = 5.93159
  Prefactor  = 7.95867
  Normalizat = 0.797737
  Prefactor  = 1.08717
 **********
 **   18 **HESSE 
 **********

 FCN=   5018.898     FROM HESSE     STATUS=OK           401 CALLS     3053 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .62776        .27658        .23152E-04   -1.5550    
   3  Prefactor     25.804        18.092        .78864E-04   -1.4692    
   4  Prefactor     23.146        20.157        .83257E-04   -1.4745    
   5  Prefactor     .10000E-03    26.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          6.6676        7.6406        .77701E-03   -1.5191    
   7  norm          .10000E-03    15.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.4876        1.8947        .10686E-03   -1.5464    
   9  Prefactor     .10000E-03    34.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .87250        .64249E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.9700        4.6595        .15846E-03   -1.5309    
  12  Prefactor     .10000E-03    17.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.7185        1.0974        .45255E-04   -1.5378    
  14  norm          9.1333        9.0800        .66303E-03   -1.5103    
  15  Prefactor     29.992        25.618        .73158E-04   -1.4612    
  16  Prefactor     .10000E-03    3.0090        .23491E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    20.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    53.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.060        10.091        .11084E-03   -1.4985    
  21  norm          5.9316        9.5969        .16498E-03   -1.5221    
  22  Prefactor     7.9587        28.803        .14189E-03   -1.5144    
  23  Normalizat    .79774        .20837        .24791E-03   -1.0015    
  24  Prefactor     1.0872        .24904        .26488E-03   -.89878    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.48137e-10
Minuit parameter uncertainties:
  1  1.43151e-05
  2  0.276579
  3  18.0956
  4  20.1632
  5  8.26067e-06
  6  7.64172
  7  1.3886e-06
  8  1.89477
  9  1.54311e-05
  10  2.40272e-06
  11  4.65991
  12  1.75596e-05
  13  1.09739
  14  9.08138
  15  25.6273
  16  4.26557e-06
  17  6.19249e-06
  18  1.06473e-05
  19  5.98249e-05
  20  10.0919
  21  9.59943
  22  28.8534
  23  0.208574
  24  0.249305
Done.

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

Extracting fit parameters...

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  9.133e+00  9.081e+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:  1.087e+00  2.493e-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:  7.977e-01  2.086e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.59
Ra Dec: 177.656 41.910
Photon Index (Fixed Index): 1.62 +/- 0.00
Photon Flux (Fixed Index): 1.16e-08 +/- 1.16e-08
Energy Flux (Fixed Index): 2.06e-05 +/- 2.05e-05

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

Saving results to:
/scratch/kocevski/107458/likelihoodResults_248918401_249177601_4FGL_J1150.6+4154_daily_bin37.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): 0
logL (Free Index) = 5018.87175377
delta logL = 0.0260783429667

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5018.87141134
delta logL = 0.0264207707942

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.9748       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7849       1.0000          .0000       5.0000    
     3 'Normalizat'    .79679       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0862       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=   5018.871     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      276 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.9763        8.9454        .13379E-03    .24728E-04
   2  alpha         1.7848        .71676        .16832E-01    .74384E-04
   3  Normalizat    .79673        .19962        .24803E-03   -.20260E-04
   4  Prefactor     1.0863        .24670        .26494E-03    .16778E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.97625
  alpha      = 1.78484
  Normalizat = 0.796734
  Prefactor  = 1.08627
 **********
 **   18 **HESSE 
 **********

 FCN=   5018.871     FROM HESSE     STATUS=OK            25 CALLS      301 TOTAL
                     EDM=   .83E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.9763        8.8770        .53516E-05   -1.5109    
   2  alpha         1.7848        .71158        .33665E-02   -.29012    
   3  Normalizat    .79673        .19977        .99212E-05   -1.0019    
   4  Prefactor     1.0863        .24692        .10598E-04   -.89907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.33394e-12
Minuit parameter uncertainties:
  1  8.87829
  2  0.722486
  3  0.199959
  4  0.247185
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/107458': 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) = 5018.87141128
delta logL = 0.0264208353128

Extracting fit parameters...

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  8.976e+00  8.878e+00  1.000e-04  1.000e+04 ( 1.000e-13)
330        alpha:  1.785e+00  7.225e-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:  1.086e+00  2.472e-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:  7.967e-01  2.000e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.64
Ra Dec: 177.656 41.910
Photon Index (Free Index): 1.78 +/- 0.72
Photon Flux (Free Index): 1.43e-08 +/- 1.82e-08
Energy Flux (Free Index): 1.70e-05 +/- 2.14e-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/107458/cmap_HighResolution_248918401_249177601_4FGL_J1150.6+4154_daily_bin37.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.01e-05', comment='SUCCESS', photon_flux='1.16e-08', energy_flux2='1.70e-05', photon_flux_error='1.16e-08', dlogl='2.64e-02', energy_flux='2.06e-05', photon_flux2='1.43e-08', job_status='DONE', time_completed='2021-09-04 13:15:07.205475', photon_index_error2='0.72', photon_index2='1.78', ts='2.59', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='4.52e-08', energy_flux_error2='2.14e-05', EG='0.80', time_epoch_completed='1630786507.21', return_code='0', job_id='107458', GAL2='1.09', EG2='0.80', return_code2='0', energy_flux_error='2.05e-05', photon_flux_error2='1.82e-08', ts2='2.64', photon_index='1.62' WHERE bin_id='37' AND source_name='4FGL J1150.6+4154' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:15:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 107458: <4FGL_J1150.6+4154_daily_bin37> in cluster <slac> Done

Job <4FGL_J1150.6+4154_daily_bin37> 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) <bullet0261>, 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:15:07 2021
Results reported at Sat Sep  4 13:15:07 2021

Your job looked like:

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

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

