/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 7 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 = 7399
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1150.6+4154_daily_bin1606
RA = 177.656, Dec = 41.9096
tmin = 655603201, tmax = 655862401
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='322766', job_status='RUN', time_executed='2021-12-07 22:36:07.517217', time_epoch_executed='1638945367.52' WHERE source_name='4FGL J1150.6+4154' and cadence='daily' and bin_id='1606'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/322766

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/322766/ft1_4FGL_J1150.6+4154_daily_bin1606.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/322766/ft2_4FGL_J1150.6+4154_daily_bin1606.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/322766/ft1_4FGL_J1150.6+4154_daily_bin1606.fits outfile=/scratch/kocevski/322766/ft1_filteredMKT_4FGL_J1150.6+4154_daily_bin1606.fits ra=177.656 dec=41.9096 rad=12.0 tmin=655603201.0 tmax=655862401.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 4.38
user 4.01
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/322766/ft1_filtered_4FGL_J1150.6+4154_daily_bin1606.fits evtable="EVENTS" scfile=/scratch/kocevski/322766/ft2_4FGL_J1150.6+4154_daily_bin1606.fits sctable="SC_DATA" expcube=/scratch/kocevski/322766/ltcube_655603201_655862401_4FGL_J1150.6+4154_daily_bin1606.fits outfile=/scratch/kocevski/322766/expmap_655603201_655862401_4FGL_J1150.6+4154_daily_bin1606.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/322766/ltcube_655603201_655862401_4FGL_J1150.6+4154_daily_bin1606.fits
.....................!
real 192.66
user 186.38
sys 5.41

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/322766/ft1_filtered_4FGL_J1150.6+4154_daily_bin1606.fits scfile=/scratch/kocevski/322766/ft2_4FGL_J1150.6+4154_daily_bin1606.fits outfile=/scratch/kocevski/322766/cmap_655603201_655862401_4FGL_J1150.6+4154_daily_bin1606.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/322766/ft1_filtered_4FGL_J1150.6+4154_daily_bin1606.fits scfile=/scratch/kocevski/322766/ft2_4FGL_J1150.6+4154_daily_bin1606.fits outfile=/scratch/kocevski/322766/cmap_HighResolution_655603201_655862401_4FGL_J1150.6+4154_daily_bin1606.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.55
user 0.36
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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.6598       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    91.315       1.0000         .10000E-03   10000.    
     6 'norm      '    4.7103       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.0342       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.1847       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.5778       1.0000         .10000E-03   10000.    
    12 'Prefactor '    32.996       1.0000         .10000E-03   10000.    
    13 'norm      '    2.7686       1.0000         .10000E-03   10000.    
    14 'norm      '    14.645       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .15643E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.600       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10967E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.9503       1.0000         .10000E-03   10000.    
    21 'norm      '    3.4705       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.6573       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .37988       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=   8164.909     FROM MIGRAD    STATUS=CONVERGED    527 CALLS     2682 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.550        .49888E-05** at limit **
   2  norm          1.6597        .32454       -.10678E-07    .27626E-03
   3  Prefactor     .10000E-03    5.4809        .66349E-06** at limit **
   4  Prefactor     .10000E-03    3.5561        .58741E-07** at limit **
   5  Prefactor     91.300        76.169       -.14358E-04   -.69098E-05
   6  norm          4.7028        13.165        .62040E-06   -.99268E-04
   7  norm          .10000E-03    11.564       -.46998E-05** at limit **
   8  Prefactor     2.0338        1.9509       -.13337E-06   -.28576E-03
   9  Prefactor     .10000E-03    17.273       -.63376E-05** at limit **
  10  norm          1.1864        1.8951        .38948E-06   -.42832E-03
  11  Prefactor     6.5766        5.4326        .90971E-06   -.19241E-03
  12  Prefactor     32.964        32.344       -.29792E-04   -.10418E-04
  13  norm          2.7685        1.1190        .95797E-06   -.44124E-03
  14  norm          14.644        9.6407       -.98518E-07   -.26507E-03
  15  Prefactor     .10000E-03    17.347       -.67717E-05** at limit **
  16  Prefactor     .10002E-03    1.3451        .92153E-06** at limit **
  17  Prefactor     .10000E-03    21.412        .42595E-05** at limit **
  18  Prefactor     12.646        15.548       -.46282E-05   -.40322E-03
  19  Prefactor     .10000E-03    51.178       -.13085E-05** at limit **
  20  Prefactor     1.9453        7.6773       -.25791E-05   -.47150E-03
  21  norm          3.4718        5.6205       -.27628E-05   -.78143E-03
  22  Prefactor     .10000E-03    12.882        .10677E-04** at limit **
  23  Normalizat    1.6571        .17491        .18747E-05   -.57578E-03
  24  Prefactor     .38025        .19888        .18370E-05   -.88379E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.65969
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 91.2999
  norm       = 4.7028
  norm       = 0.0001
  Prefactor  = 2.03381
  Prefactor  = 0.0001
  norm       = 1.18643
  Prefactor  = 6.57663
  Prefactor  = 32.9641
  norm       = 2.76853
  norm       = 14.6444
  Prefactor  = 0.0001
  Prefactor  = 0.000100024
  Prefactor  = 0.0001
  Prefactor  = 12.6462
  Prefactor  = 0.0001
  Prefactor  = 1.94529
  norm       = 3.4718
  Prefactor  = 0.0001
  Normalizat = 1.65714
  Prefactor  = 0.380245
 **********
 **   18 **HESSE 
 **********

 FCN=   8164.909     FROM HESSE     STATUS=OK           401 CALLS     3083 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.6597        .32472        .22006E-04   -1.5450    
   3  Prefactor     .10000E-03    5.4899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.5573        .16641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     91.300        76.119        .21026E-03   -1.3794    
   6  norm          4.7028        13.132        .18541E-03   -1.5274    
   7  norm          .10000E-03    11.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.0338        1.9226        .11513E-03   -1.5423    
   9  Prefactor     .10000E-03    17.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.1864        1.8404        .14675E-03   -1.5490    
  11  Prefactor     6.5766        5.4179        .15647E-03   -1.5195    
  12  Prefactor     32.964        32.104        .69759E-04   -1.4559    
  13  norm          2.7685        1.1151        .55405E-04   -1.5375    
  14  norm          14.644        9.6352        .52331E-03   -1.4942    
  15  Prefactor     .10000E-03    17.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10002E-03    15.910        .18877E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    21.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.646        14.798        .11285E-03   -1.4997    
  19  Prefactor     .10000E-03    51.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.9453        7.6895        .29716E-03   -1.5429    
  21  norm          3.4718        5.6353        .21707E-03   -1.5335    
  22  Prefactor     .10000E-03    12.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.6571        .18665        .20670E-03   -.73454    
  24  Prefactor     .38025        .20723        .45802E-03   -1.1783    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.25733e-09
Minuit parameter uncertainties:
  1  5.49044e-06
  2  0.324719
  3  8.44231e-06
  4  1.19619e-06
  5  76.2007
  6  13.1405
  7  2.58468e-06
  8  1.92264
  9  1.33508e-05
  10  1.84049
  11  5.41833
  12  32.1211
  13  1.11513
  14  9.63618
  15  4.04978e-05
  16  0.00124317
  17  1.88173e-05
  18  14.8018
  19  0.000113019
  20  7.69339
  21  5.63614
  22  4.72208e-05
  23  0.186733
  24  0.207639
Done.

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

Extracting fit parameters...

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  1.464e+01  9.636e+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:  3.802e-01  2.076e-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.657e+00  1.867e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.53
Ra Dec: 177.656 41.910
Photon Index (Fixed Index): 1.62 +/- 0.00
Photon Flux (Fixed Index): 1.86e-08 +/- 1.23e-08
Energy Flux (Fixed Index): 3.30e-05 +/- 2.17e-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) = 8164.44588486
delta logL = 0.462878057383

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8164.44183933
delta logL = 0.466923586015

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.424       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0566       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6499       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .38048       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=   8164.442     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      296 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.425        9.1018        .11364E-03   -.31842E-03
   2  alpha         2.0565        .46384        .10934E-01   -.80415E-04
   3  Normalizat    1.6501        .18134        .20695E-03    .12586E-03
   4  Prefactor     .38018        .20621        .45765E-03    .39398E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.4247
  alpha      = 2.05652
  Normalizat = 1.65014
  Prefactor  = 0.380176
 **********
 **   18 **HESSE 
 **********

 FCN=   8164.442     FROM HESSE     STATUS=OK            25 CALLS      321 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.425        8.8460        .45458E-05   -1.5003    
   2  alpha         2.0565        .45091        .43736E-03   -.17834    
   3  Normalizat    1.6501        .18132        .82779E-05   -.73642    
   4  Prefactor     .38018        .20622        .18306E-04   -1.1783    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11554e-10
Minuit parameter uncertainties:
  1  8.84689
  2  0.453478
  3  0.181393
  4  0.206626
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/322766': 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) = 8164.44183804
delta logL = 0.466924877435

Extracting fit parameters...

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  1.242e+01  8.847e+00  1.000e-04  1.000e+04 ( 1.000e-13)
330        alpha:  2.057e+00  4.535e-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:  3.802e-01  2.066e-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.650e+00  1.814e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.46
Ra Dec: 177.656 41.910
Photon Index (Free Index): 2.06 +/- 0.45
Photon Flux (Free Index): 3.07e-08 +/- 2.20e-08
Energy Flux (Free Index): 2.08e-05 +/- 1.52e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/322766/cmap_HighResolution_655603201_655862401_4FGL_J1150.6+4154_daily_bin1606.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.86e-08', energy_flux2='2.08e-05', photon_flux_error='1.23e-08', dlogl='4.67e-01', energy_flux='3.30e-05', photon_flux2='3.07e-08', job_status='DONE', time_completed='2021-12-07 22:49:27.196822', photon_index_error2='0.45', photon_index2='2.06', ts='5.53', fit_tolerance='1e-08', GAL='0.38', photon_index_error='0.00', energy_flux_error2='1.52e-05', EG='1.66', time_epoch_completed='1638946167.2', return_code='0', job_id='322766', GAL2='0.38', EG2='1.65', return_code2='0', energy_flux_error='2.17e-05', photon_flux_error2='2.20e-08', ts2='6.46', photon_index='1.62' WHERE bin_id='1606' AND source_name='4FGL J1150.6+4154' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 22:49:27 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 322766: <4FGL_J1150.6+4154_daily_bin1606> in cluster <slac> Done

Job <4FGL_J1150.6+4154_daily_bin1606> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Dec  7 22:35:21 2021
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 22:35:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 22:35:54 2021
Terminated at Tue Dec  7 22:49:27 2021
Results reported at Tue Dec  7 22:49:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.6+4154_daily_bin1606 177.656 41.9096 655603201 655862401 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 :                                   798.11 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             352.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            846 sec.

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

