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


Performing analysis on: 4FGL_J1150.6+4154_daily_bin230
RA = 177.656, Dec = 41.9096
tmin = 298944001, tmax = 299203201
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='108781', job_status='RUN', time_executed='2021-09-04 13:06:46.262507', time_epoch_executed='1630786006.26' WHERE source_name='4FGL J1150.6+4154' and cadence='daily' and bin_id='230'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/108781

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/108781/ft1_4FGL_J1150.6+4154_daily_bin230.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/108781/ft2_4FGL_J1150.6+4154_daily_bin230.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/108781/ft1_4FGL_J1150.6+4154_daily_bin230.fits outfile=/scratch/kocevski/108781/ft1_filteredMKT_4FGL_J1150.6+4154_daily_bin230.fits ra=177.656 dec=41.9096 rad=12.0 tmin=298944001.0 tmax=299203201.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.65
user 3.23
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/108781/ft1_filtered_4FGL_J1150.6+4154_daily_bin230.fits evtable="EVENTS" scfile=/scratch/kocevski/108781/ft2_4FGL_J1150.6+4154_daily_bin230.fits sctable="SC_DATA" expcube=/scratch/kocevski/108781/ltcube_298944001_299203201_4FGL_J1150.6+4154_daily_bin230.fits outfile=/scratch/kocevski/108781/expmap_298944001_299203201_4FGL_J1150.6+4154_daily_bin230.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/108781/ltcube_298944001_299203201_4FGL_J1150.6+4154_daily_bin230.fits
.....................!
real 194.85
user 187.33
sys 4.96

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/108781/ft1_filtered_4FGL_J1150.6+4154_daily_bin230.fits scfile=/scratch/kocevski/108781/ft2_4FGL_J1150.6+4154_daily_bin230.fits outfile=/scratch/kocevski/108781/cmap_298944001_299203201_4FGL_J1150.6+4154_daily_bin230.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.34
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/108781/ft1_filtered_4FGL_J1150.6+4154_daily_bin230.fits scfile=/scratch/kocevski/108781/ft2_4FGL_J1150.6+4154_daily_bin230.fits outfile=/scratch/kocevski/108781/cmap_HighResolution_298944001_299203201_4FGL_J1150.6+4154_daily_bin230.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.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15912E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    1.6587       1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.930       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    51.107       1.0000         .10000E-03   10000.    
     6 'norm      '    19.310       1.0000         .10000E-03   10000.    
     7 'norm      '    .10395E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.1770       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    78.325       1.0000         .10000E-03   10000.    
    13 'norm      '    .73478       1.0000         .10000E-03   10000.    
    14 'norm      '    6.8574       1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.933       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.5595       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.564       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.2777       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10318E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    13.053       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .16591E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2290       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .64645       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=   6483.890     FROM MIGRAD    STATUS=CONVERGED    557 CALLS     2791 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    168.46       -.22541E-04** at limit **
   2  norm          1.6587        .37247       -.10972E-07   -.21554E-04
   3  Prefactor     20.932        17.845       -.78299E-08   -.66716E-04
   4  Prefactor     .10000E-03    8.7848       -.97108E-06** at limit **
   5  Prefactor     51.078        66.578       -.29761E-04    .18344E-03
   6  norm          19.313        16.167       -.12283E-07   -.61972E-04
   7  norm          .10000E-03    113.07        .92826E-05** at limit **
   8  Prefactor     1.1769        2.4416       -.83325E-06   -.15803E-02
   9  Prefactor     .10000E-03    20.504        .17284E-05** at limit **
  10  norm          .10000E-03    1.6501        .11357E-05** at limit **
  11  Prefactor     .10000E-03    1.3090        .11572E-06** at limit **
  12  Prefactor     78.295        44.873       -.16033E-04   -.48602E-04
  13  norm          .73600        1.1003        .16932E-05    .17280E-02
  14  norm          6.8534        8.2469        .41480E-06   -.22079E-03
  15  Prefactor     24.941        24.740        .17404E-06   -.16889E-04
  16  Prefactor     5.5601        3.4199        .63239E-07   -.50855E-04
  17  Prefactor     .10000E-03    31.725       -.57942E-06** at limit **
  18  Prefactor     17.577        24.504       -.17481E-05   -.36356E-03
  19  Prefactor     2.2751        118.51       -.11415E-04   -.30947E-04
  20  Prefactor     .10000E-03    9.2523        .30851E-06** at limit **
  21  norm          13.063        8.9103        .21551E-06    .45038E-04
  22  Prefactor     .10000E-03    55.632       -.59300E-05** at limit **
  23  Normalizat    1.2287        .17080        .16693E-05   -.38949E-03
  24  Prefactor     .64669        .19481        .95774E-06   -.10919E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  norm       = 1.65869
  Prefactor  = 20.9319
  Prefactor  = 0.0001
  Prefactor  = 51.0778
  norm       = 19.3131
  norm       = 0.000100001
  Prefactor  = 1.17694
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 78.2952
  norm       = 0.736003
  norm       = 6.85341
  Prefactor  = 24.941
  Prefactor  = 5.56008
  Prefactor  = 0.0001
  Prefactor  = 17.5771
  Prefactor  = 2.27507
  Prefactor  = 0.0001
  norm       = 13.0635
  Prefactor  = 0.0001
  Normalizat = 1.22867
  Prefactor  = 0.646688
 **********
 **   18 **HESSE 
 **********

 FCN=   6483.890     FROM HESSE     STATUS=OK           401 CALLS     3192 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    169.64        .20424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.6587        .37350        .22013E-04   -1.5450    
   3  Prefactor     20.932        17.848        .87549E-04   -1.4793    
   4  Prefactor     .10000E-03    8.8057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     51.078        65.578        .56099E-04   -1.4277    
   6  norm          19.313        16.100        .91146E-04   -1.4829    
   7  norm          .10000E-03    115.92        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.1769        2.3578        .16570E-03   -1.5491    
   9  Prefactor     .10000E-03    20.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.2321        .19311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.3158        .89941E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     78.295        44.166        .45376E-04   -1.3936    
  13  norm          .73600        1.0016        .87117E-03   -1.5536    
  14  norm          6.8534        8.2122        .15321E-03   -1.5184    
  15  Prefactor     24.941        24.586        .80224E-04   -1.4709    
  16  Prefactor     5.5601        3.4108        .10324E-03   -1.5236    
  17  Prefactor     .10000E-03    31.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     17.577        24.647        .47783E-03   -1.4869    
  19  Prefactor     2.2751        117.58        .27207E-03   -1.5406    
  20  Prefactor     .10000E-03    9.6037        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          13.063        8.8816        .11087E-03   -1.4985    
  22  Prefactor     .10000E-03    56.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2287        .20116        .21708E-03   -.85721    
  24  Prefactor     .64669        .22652        .34196E-03   -1.0565    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.74437e-09
Minuit parameter uncertainties:
  1  0.00170537
  2  0.373501
  3  17.8528
  4  1.81238e-05
  5  65.6706
  6  16.1036
  7  0.000682065
  8  2.35796
  9  3.54141e-06
  10  0.000210853
  11  7.40315e-07
  12  44.1847
  13  1.0016
  14  8.21359
  15  24.5962
  16  3.41096
  17  8.90145e-05
  18  24.6611
  19  32.778
  20  2.35476e-05
  21  8.88247
  22  3.98838e-06
  23  0.201286
  24  0.226845
Done.

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

Extracting fit parameters...

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  6.853e+00  8.214e+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:  6.467e-01  2.268e-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.229e+00  2.013e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.20
Ra Dec: 177.656 41.910
Photon Index (Fixed Index): 1.62 +/- 0.00
Photon Flux (Fixed Index): 8.72e-09 +/- 1.05e-08
Energy Flux (Fixed Index): 1.54e-05 +/- 1.85e-05

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

Saving results to:
/scratch/kocevski/108781/likelihoodResults_298944001_299203201_4FGL_J1150.6+4154_daily_bin230.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) = 6483.3774064
delta logL = 0.512330936786

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6483.37643996
delta logL = 0.513297380806

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.4068       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3479       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2207       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64452       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=   6483.376     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      301 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.4056        7.0558        .16179E-03    .15060E-02
   2  alpha         2.3476        .73698        .13218E-01    .17204E-03
   3  Normalizat    1.2208        .19036        .21757E-03   -.41818E-03
   4  Prefactor     .64453        .22438        .34209E-03   -.35672E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.40556
  alpha      = 2.34763
  Normalizat = 1.2208
  Prefactor  = 0.644535
 **********
 **   18 **HESSE 
 **********

 FCN=   6483.376     FROM HESSE     STATUS=OK            25 CALLS      326 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.4056        6.5563        .64715E-05   -1.5243    
   2  alpha         2.3476        .68613        .52873E-03   -.60987E-01
   3  Normalizat    1.2208        .19036        .43514E-04   -.85963    
   4  Prefactor     .64453        .22446        .13684E-04   -1.0574    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64401e-09
Minuit parameter uncertainties:
  1  6.55722
  2  0.695089
  3  0.190466
  4  0.224769
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/108781': 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) = 6483.37643941
delta logL = 0.513297930282

Extracting fit parameters...

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  5.406e+00  6.557e+00  1.000e-04  1.000e+04 ( 1.000e-13)
330        alpha:  2.348e+00  6.951e-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:  6.445e-01  2.248e-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.221e+00  1.905e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.22
Ra Dec: 177.656 41.910
Photon Index (Free Index): 2.35 +/- 0.70
Photon Flux (Free Index): 2.32e-08 +/- 2.46e-08
Energy Flux (Free Index): 9.93e-06 +/- 9.53e-06

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/108781/cmap_HighResolution_298944001_299203201_4FGL_J1150.6+4154_daily_bin230.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.67e-05', comment='SUCCESS', photon_flux='8.72e-09', energy_flux2='9.93e-06', photon_flux_error='1.05e-08', dlogl='5.13e-01', energy_flux='1.54e-05', photon_flux2='2.32e-08', job_status='DONE', time_completed='2021-09-04 13:20:01.565015', photon_index_error2='0.70', photon_index2='2.35', ts='1.20', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', photon_flux_upper_limit='3.76e-08', energy_flux_error2='9.53e-06', EG='1.23', time_epoch_completed='1630786801.57', return_code='0', job_id='108781', GAL2='0.64', EG2='1.22', return_code2='0', energy_flux_error='1.85e-05', photon_flux_error2='2.46e-08', ts2='2.22', photon_index='1.62' WHERE bin_id='230' AND source_name='4FGL J1150.6+4154' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:20:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 108781: <4FGL_J1150.6+4154_daily_bin230> in cluster <slac> Done

Job <4FGL_J1150.6+4154_daily_bin230> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 13:06:31 2021
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 13:06:33 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:06:33 2021
Terminated at Sat Sep  4 13:20:02 2021
Results reported at Sat Sep  4 13:20:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.6+4154_daily_bin230 177.656 41.9096 298944001 299203201 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 :                                   788.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             333.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   808 sec.
    Turnaround time :                            811 sec.

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

