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


Performing analysis on: 4FGL_J1150.6+4154_daily_bin25
RA = 177.656, Dec = 41.9096
tmin = 245808001, tmax = 246067201
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='107444', job_status='RUN', time_executed='2021-09-04 13:04:27.239014', time_epoch_executed='1630785867.24' WHERE source_name='4FGL J1150.6+4154' and cadence='daily' and bin_id='25'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/107444

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/107444/ft1_4FGL_J1150.6+4154_daily_bin25.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/107444/ft2_4FGL_J1150.6+4154_daily_bin25.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/107444/ft1_4FGL_J1150.6+4154_daily_bin25.fits outfile=/scratch/kocevski/107444/ft1_filteredMKT_4FGL_J1150.6+4154_daily_bin25.fits ra=177.656 dec=41.9096 rad=12.0 tmin=245808001.0 tmax=246067201.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.45
user 1.26
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/107444/ft1_filtered_4FGL_J1150.6+4154_daily_bin25.fits evtable="EVENTS" scfile=/scratch/kocevski/107444/ft2_4FGL_J1150.6+4154_daily_bin25.fits sctable="SC_DATA" expcube=/scratch/kocevski/107444/ltcube_245808001_246067201_4FGL_J1150.6+4154_daily_bin25.fits outfile=/scratch/kocevski/107444/expmap_245808001_246067201_4FGL_J1150.6+4154_daily_bin25.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/107444/ltcube_245808001_246067201_4FGL_J1150.6+4154_daily_bin25.fits
.....................!
real 192.07
user 186.57
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/107444/ft1_filtered_4FGL_J1150.6+4154_daily_bin25.fits scfile=/scratch/kocevski/107444/ft2_4FGL_J1150.6+4154_daily_bin25.fits outfile=/scratch/kocevski/107444/cmap_245808001_246067201_4FGL_J1150.6+4154_daily_bin25.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.60
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/107444/ft1_filtered_4FGL_J1150.6+4154_daily_bin25.fits scfile=/scratch/kocevski/107444/ft2_4FGL_J1150.6+4154_daily_bin25.fits outfile=/scratch/kocevski/107444/cmap_HighResolution_245808001_246067201_4FGL_J1150.6+4154_daily_bin25.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.58
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .74325       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.2484       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1743       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.332       1.0000         .10000E-03   10000.    
     6 'norm      '    8.4090       1.0000         .10000E-03   10000.    
     7 'norm      '    .10593E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .26699E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.519       1.0000         .10000E-03   10000.    
    10 'norm      '    3.7895       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .29403       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    12.433       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.1344       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .14749E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.5775       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    12.180       1.0000         .10000E-03   10000.    
    22 'Prefactor '    19.166       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .77814       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2105       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=   6025.304     FROM MIGRAD    STATUS=CONVERGED    568 CALLS     2767 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.555       -.69761E-06** at limit **
   2  norm          .74330        .27757       -.19479E-07   -.32173E-04
   3  Prefactor     8.2462        11.945        .71662E-06    .34750E-03
   4  Prefactor     1.1648        51.254        .10454E-05    .43272E-04
   5  Prefactor     12.344        45.375       -.82124E-06   -.55681E-05
   6  norm          8.4121        10.224        .10222E-06    .41886E-04
   7  norm          .10000E-03    16.028       -.21461E-06** at limit **
   8  Prefactor     .10000E-03    3.2903        .19664E-05** at limit **
   9  Prefactor     28.621        36.491        .25815E-05    .30308E-04
  10  norm          3.7928        2.8859        .20229E-06    .41673E-03
  11  Prefactor     .27953        2.7947       -.10832E-05    .58439E-04
  12  Prefactor     .10000E-03    48.178        .20740E-05** at limit **
  13  norm          .10000E-03    .61414       -.34172E-06** at limit **
  14  norm          12.434        10.624        .16701E-06    .17572E-03
  15  Prefactor     5.1372        17.042        .13667E-06    .33459E-04
  16  Prefactor     .10000E-03    1.5161       -.50673E-07** at limit **
  17  Prefactor     .10000E-03    58.930       -.34170E-05** at limit **
  18  Prefactor     9.5751        11.216       -.46102E-07    .13171E-04
  19  Prefactor     .10000E-03    18.368        .49666E-06** at limit **
  20  Prefactor     .10000E-03    8.5900       -.23033E-06** at limit **
  21  norm          12.179        8.3086       -.18260E-06   -.29156E-04
  22  Prefactor     19.177        23.323        .18435E-07    .94246E-05
  23  Normalizat    .77818        .16095        .54703E-06    .27597E-03
  24  Prefactor     1.2106        .19944        .80056E-07    .25476E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.743298
  Prefactor  = 8.24619
  Prefactor  = 1.16477
  Prefactor  = 12.3441
  norm       = 8.41214
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 28.6206
  norm       = 3.79277
  Prefactor  = 0.279531
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 12.4344
  Prefactor  = 5.13723
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 9.57509
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.1794
  Prefactor  = 19.1771
  Normalizat = 0.778178
  Prefactor  = 1.21061
 **********
 **   18 **HESSE 
 **********

 FCN=   6025.304     FROM HESSE     STATUS=OK           407 CALLS     3174 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .74330        .27964        .21998E-04   -1.5536    
   3  Prefactor     8.2462        11.789        .69796E-03   -1.5134    
   4  Prefactor     1.1648        50.832        .42287E-03   -1.5492    
   5  Prefactor     12.344        45.414        .11407E-03   -1.5005    
   6  norm          8.4121        10.208        .13824E-03   -1.5128    
   7  norm          .10000E-03    16.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.5417        .18197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     28.621        36.409        .75020E-04   -1.4637    
  10  norm          3.7928        2.8749        .10237E-03   -1.5318    
  11  Prefactor     .27953        14.721        .22883E-02   -1.5602    
  12  Prefactor     .10000E-03    47.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.1562        .11595E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          12.434        10.602        .11360E-03   -1.5003    
  15  Prefactor     5.1372        16.991        .17743E-03   -1.5255    
  16  Prefactor     .10000E-03    1.5495        .93261E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    59.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.5751        11.211        .12949E-03   -1.5089    
  19  Prefactor     .10000E-03    18.384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.7422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          12.179        8.3055        .11478E-03   -1.5010    
  22  Prefactor     19.177        23.315        .91486E-04   -1.4832    
  23  Normalizat    .77818        .19003        .24889E-03   -1.0088    
  24  Prefactor     1.2106        .23748        .25560E-03   -.86005    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.67799e-10
Minuit parameter uncertainties:
  1  6.39297e-05
  2  0.279643
  3  11.7923
  4  15.4026
  5  45.5419
  6  10.2097
  7  1.45322e-05
  8  0.000112056
  9  36.4374
  10  2.87504
  11  4.05738
  12  2.02891e-05
  13  1.52006e-05
  14  10.6032
  15  17.007
  16  3.73327e-06
  17  0.000434791
  18  11.2135
  19  9.58229e-06
  20  3.86851e-05
  21  8.30631
  22  23.3263
  23  0.190192
  24  0.237692
Done.

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

Extracting fit parameters...

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  1.243e+01  1.060e+01  1.000e-04  1.000e+04 ( 1.000e-13)
330        alpha:  1.619e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
331         beta:  1.025e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
332           Eb:  1.870e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
672    Prefactor:  1.211e+00  2.377e-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.782e-01  1.902e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.72
Ra Dec: 177.656 41.910
Photon Index (Fixed Index): 1.62 +/- 0.00
Photon Flux (Fixed Index): 1.58e-08 +/- 1.35e-08
Energy Flux (Fixed Index): 2.80e-05 +/- 2.39e-05

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

Saving results to:
/scratch/kocevski/107444/likelihoodResults_245808001_246067201_4FGL_J1150.6+4154_daily_bin25.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) = 6024.86124109
delta logL = 0.442657642458

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6024.84777945
delta logL = 0.456119282818

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.5417       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6453       1.0000          .0000       5.0000    
     3 'Normalizat'    .74001       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2286       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=   6024.848     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      285 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.5374        131.46        .12437E-03    .16079E-03
   2  alpha         2.6458        3.6692        .94642E-02    .25811E-04
   3  Normalizat    .74000        .28654        .25468E-03    .12347E-02
   4  Prefactor     1.2286        .30019        .25382E-03    .47595E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.53745
  alpha      = 2.64582
  Normalizat = 0.739997
  Prefactor  = 1.22862
 **********
 **   18 **HESSE 
 **********

 FCN=   6024.848     FROM HESSE     STATUS=OK            25 CALLS      310 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.5374        15.598        .49749E-05   -1.5197    
   2  alpha         2.6458        1.3383        .37857E-03    .58360E-01
   3  Normalizat    .74000        .20029        .50935E-04   -1.0233    
   4  Prefactor     1.2286        .24358        .50765E-04   -.85455    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.45003e-09
Minuit parameter uncertainties:
  1  15.6075
  2  1.4125
  3  0.200488
  4  0.243808
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/107444': 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) = 6024.84777932
delta logL = 0.456119416198

Extracting fit parameters...

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  6.537e+00  1.561e+01  1.000e-04  1.000e+04 ( 1.000e-13)
330        alpha:  2.646e+00  1.413e+00  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.229e+00  2.438e-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.400e-01  2.005e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.62
Ra Dec: 177.656 41.910
Photon Index (Free Index): 2.65 +/- 1.41
Photon Flux (Free Index): 5.25e-08 +/- 5.35e-08
Energy Flux (Free Index): 1.61e-05 +/- 1.36e-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/107444/cmap_HighResolution_245808001_246067201_4FGL_J1150.6+4154_daily_bin25.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.83e-05', comment='SUCCESS', photon_flux='1.58e-08', energy_flux2='1.61e-05', photon_flux_error='1.35e-08', dlogl='4.56e-01', energy_flux='2.80e-05', photon_flux2='5.25e-08', job_status='DONE', time_completed='2021-09-04 13:16:42.791582', photon_index_error2='1.41', photon_index2='2.65', ts='2.72', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', photon_flux_upper_limit='4.98e-08', energy_flux_error2='1.36e-05', EG='0.78', time_epoch_completed='1630786602.79', return_code='0', job_id='107444', GAL2='1.23', EG2='0.74', return_code2='0', energy_flux_error='2.39e-05', photon_flux_error2='5.35e-08', ts2='3.62', photon_index='1.62' WHERE bin_id='25' AND source_name='4FGL J1150.6+4154' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:16:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 107444: <4FGL_J1150.6+4154_daily_bin25> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.6+4154_daily_bin25 177.656 41.9096 245808001 246067201 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 :                                   735.16 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             299.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            883 sec.

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

