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


Performing analysis on: 4FGL_J1150.6+4154_daily_bin38
RA = 177.656, Dec = 41.9096
tmin = 249177601, tmax = 249436801
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='107460', job_status='RUN', time_executed='2021-09-04 13:06:00.789660', time_epoch_executed='1630785960.79' WHERE source_name='4FGL J1150.6+4154' and cadence='daily' and bin_id='38'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/107460

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/107460/ft1_4FGL_J1150.6+4154_daily_bin38.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/107460/ft2_4FGL_J1150.6+4154_daily_bin38.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/107460/ft1_4FGL_J1150.6+4154_daily_bin38.fits outfile=/scratch/kocevski/107460/ft1_filteredMKT_4FGL_J1150.6+4154_daily_bin38.fits ra=177.656 dec=41.9096 rad=12.0 tmin=249177601.0 tmax=249436801.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.42
user 1.23
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/107460/ft1_filtered_4FGL_J1150.6+4154_daily_bin38.fits evtable="EVENTS" scfile=/scratch/kocevski/107460/ft2_4FGL_J1150.6+4154_daily_bin38.fits sctable="SC_DATA" expcube=/scratch/kocevski/107460/ltcube_249177601_249436801_4FGL_J1150.6+4154_daily_bin38.fits outfile=/scratch/kocevski/107460/expmap_249177601_249436801_4FGL_J1150.6+4154_daily_bin38.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/107460/ltcube_249177601_249436801_4FGL_J1150.6+4154_daily_bin38.fits
.....................!
real 190.46
user 185.41
sys 4.65

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/107460/ft1_filtered_4FGL_J1150.6+4154_daily_bin38.fits scfile=/scratch/kocevski/107460/ft2_4FGL_J1150.6+4154_daily_bin38.fits outfile=/scratch/kocevski/107460/cmap_249177601_249436801_4FGL_J1150.6+4154_daily_bin38.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/107460/ft1_filtered_4FGL_J1150.6+4154_daily_bin38.fits scfile=/scratch/kocevski/107460/ft2_4FGL_J1150.6+4154_daily_bin38.fits outfile=/scratch/kocevski/107460/cmap_HighResolution_249177601_249436801_4FGL_J1150.6+4154_daily_bin38.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10918E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.9390       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10411E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10826E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10353E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .96771E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10405E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.0049       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10299E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .54749       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.533       1.0000         .10000E-03   10000.    
    13 'norm      '    1.4351       1.0000         .10000E-03   10000.    
    14 'norm      '    .10167E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.9395       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    144.41       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .38492       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10262E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    17.911       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .29592E-02   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .96503       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .89255       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=   4839.087     FROM MIGRAD    STATUS=CONVERGED    554 CALLS     2735 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    67.185        .12502E-05** at limit **
   2  norm          1.9391        .40455        .23601E-07    .12699E-02
   3  Prefactor     .10000E-03    26.685       -.75507E-05** at limit **
   4  Prefactor     .10000E-03    10.164        .43674E-07** at limit **
   5  Prefactor     .10000E-03    25.208        .10125E-04** at limit **
   6  norm          .10001E-03    7.0444       -.14431E-06** at limit **
   7  norm          .10000E-03    17.169        .54128E-06** at limit **
   8  Prefactor     3.0048        2.2368        .36207E-07    .49966E-05
   9  Prefactor     .10000E-03    21.284        .14820E-05** at limit **
  10  norm          .54855        1.4105       -.36422E-06   -.13969E-02
  11  Prefactor     .10000E-03    2.8290       -.40527E-07** at limit **
  12  Prefactor     22.530        22.514        .48502E-06    .16889E-05
  13  norm          1.4351        .95419       -.12697E-06   -.68457E-04
  14  norm          .10000E-03    6.7971       -.56320E-07** at limit **
  15  Prefactor     4.9299        30.206        .44287E-05   -.17271E-04
  16  Prefactor     .10000E-03    2.1699       -.26828E-07** at limit **
  17  Prefactor     144.42        75.192        .40663E-05   -.74595E-05
  18  Prefactor     .39804        26.813        .27392E-05   -.34855E-03
  19  Prefactor     .10000E-03    20.784       -.45881E-05** at limit **
  20  Prefactor     .10000E-03    4.2788       -.11032E-07** at limit **
  21  norm          17.915        11.654       -.21956E-06   -.27370E-03
  22  Prefactor     .10000E-03    34.184        .63276E-06** at limit **
  23  Normalizat    .96493        .18248       -.86396E-06   -.12025E-03
  24  Prefactor     .89268        .20793       -.17480E-06   -.11232E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.93907
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100009
  norm       = 0.0001
  Prefactor  = 3.00478
  Prefactor  = 0.0001
  norm       = 0.548554
  Prefactor  = 0.0001
  Prefactor  = 22.5304
  norm       = 1.43506
  norm       = 0.0001
  Prefactor  = 4.92995
  Prefactor  = 0.0001
  Prefactor  = 144.417
  Prefactor  = 0.39804
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.9149
  Prefactor  = 0.0001
  Normalizat = 0.96493
  Prefactor  = 0.892678
 **********
 **   18 **HESSE 
 **********

 FCN=   4839.087     FROM HESSE     STATUS=OK           409 CALLS     3144 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    67.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.9391        .40455        .19516E-04   -1.5429    
   3  Prefactor     .10000E-03    26.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    24.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10001E-03    34.441        .35597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    17.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.0048        2.2118        .85411E-04   -1.5361    
   9  Prefactor     .10000E-03    21.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .54855        1.2209        .13101E-02   -1.5560    
  11  Prefactor     .10000E-03    2.8649        .11416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     22.530        22.502        .84381E-04   -1.4758    
  13  norm          1.4351        .94983        .51468E-04   -1.5468    
  14  norm          .10000E-03    6.8158        .17709E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.9299        29.879        .18096E-03   -1.5264    
  16  Prefactor     .10000E-03    2.1785        .99618E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     144.42        74.712        .33529E-04   -1.3299    
  18  Prefactor     .39804        33.870        .92257E-01   -1.5582    
  19  Prefactor     .10000E-03    20.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.3094        .14051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          17.915        10.525        .94636E-04   -1.4861    
  22  Prefactor     .10000E-03    190.24        .69673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .96493        .21488        .23022E-03   -.94215    
  24  Prefactor     .89268        .24501        .28550E-03   -.96397    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1897e-09
Minuit parameter uncertainties:
  1  2.49446e-05
  2  0.404555
  3  8.066e-05
  4  6.75388e-06
  5  1.39578e-06
  6  0.00112303
  7  5.48694e-07
  8  2.21189
  9  9.27249e-06
  10  1.22096
  11  2.62433e-06
  12  22.5101
  13  0.94984
  14  2.21751e-05
  15  24.2913
  16  7.94045e-06
  17  74.7614
  18  7.34688
  19  1.26894e-05
  20  2.57015e-06
  21  10.5259
  22  0.000603595
  23  0.215072
  24  0.245311
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
672    Prefactor:  8.927e-01  2.453e-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:  9.649e-01  2.151e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/107460/likelihoodResults_249177601_249436801_4FGL_J1150.6+4154_daily_bin38.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): 102
logL (Free Index) = 4839.08738201
delta logL = -0.000696159126164

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4839.08667654
delta logL = 9.30404894461e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .15174E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1256       1.0000          .0000       5.0000    
     3 'Normalizat'    .96465       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89304       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6750E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4839.085     FROM MIGRAD    STATUS=CONVERGED     72 CALLS      265 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .16724        6.8481        .59294E-01    .40891E-03
   2  alpha         2.9587        3.9412        .42911        .35000E-04
   3  Normalizat    .96313        .99839E-02    .45722E-01   -.46265E-03
   4  Prefactor     .89299        .12019E-01    .64531E-01   -.33832E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.167243
  alpha      = 2.9587
  Normalizat = 0.963125
  Prefactor  = 0.892987
 **********
 **   18 **HESSE 
 **********

 FCN=   4839.085     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      296 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .16724        2227.6        .15923E-02   -1.5626    
   2  alpha         2.9587        3.7513        .60932E-01    .18453    
   3  Normalizat    .96313        .15283        .23039E-03   -.94276    
   4  Prefactor     .89299        .16137        .28542E-03   -.96387    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.33928e-09
Minuit parameter uncertainties:
  1  40.1909
  2  52.1459
  3  0.152898
  4  0.161454
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/107460': 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): 102
logL (Free Index) = 4839.0850819
delta logL = 0.00160394534942

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
672    Prefactor:  8.930e-01  1.615e-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:  9.631e-01  1.529e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 177.656 41.910

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/107460/cmap_HighResolution_249177601_249436801_4FGL_J1150.6+4154_daily_bin38.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.37e-05', job_status='DONE', photon_flux_upper_limit='3.60e-08', time_completed='2021-09-04 13:16:49.031021', job_id='107460', GAL2='0.89', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1630786609.03', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='1.60e-03', ts2='0.00', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='38' AND source_name='4FGL J1150.6+4154' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:16:49 PDT 2021


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

Job <4FGL_J1150.6+4154_daily_bin38> 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) <bullet0124>, 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:16:49 2021
Results reported at Sat Sep  4 13:16:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.6+4154_daily_bin38 177.656 41.9096 249177601 249436801 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 :                                   647.23 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             225.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            887 sec.

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

