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


Performing analysis on: 4FGL_J1150.6+4154_daily_bin1006
RA = 177.656, Dec = 41.9096
tmin = 500083201, tmax = 500342401
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='112470', job_status='RUN', time_executed='2021-09-04 13:20:42.222428', time_epoch_executed='1630786842.22' WHERE source_name='4FGL J1150.6+4154' and cadence='daily' and bin_id='1006'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/112470

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/112470/ft1_4FGL_J1150.6+4154_daily_bin1006.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/112470/ft2_4FGL_J1150.6+4154_daily_bin1006.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/112470/ft1_4FGL_J1150.6+4154_daily_bin1006.fits outfile=/scratch/kocevski/112470/ft1_filteredMKT_4FGL_J1150.6+4154_daily_bin1006.fits ra=177.656 dec=41.9096 rad=12.0 tmin=500083201.0 tmax=500342401.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 5.83
user 5.60
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/112470/ft1_filtered_4FGL_J1150.6+4154_daily_bin1006.fits" evtable="EVENTS" scfile=/scratch/kocevski/112470/ft2_4FGL_J1150.6+4154_daily_bin1006.fits sctable="SC_DATA" outfile=/scratch/kocevski/112470/ltcube_500083201_500342401_4FGL_J1150.6+4154_daily_bin1006.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/112470/ft2_4FGL_J1150.6+4154_daily_bin1006.fits
.....................!
real 11.72
user 11.37
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/112470/ft1_filtered_4FGL_J1150.6+4154_daily_bin1006.fits evtable="EVENTS" scfile=/scratch/kocevski/112470/ft2_4FGL_J1150.6+4154_daily_bin1006.fits sctable="SC_DATA" expcube=/scratch/kocevski/112470/ltcube_500083201_500342401_4FGL_J1150.6+4154_daily_bin1006.fits outfile=/scratch/kocevski/112470/expmap_500083201_500342401_4FGL_J1150.6+4154_daily_bin1006.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/112470/ltcube_500083201_500342401_4FGL_J1150.6+4154_daily_bin1006.fits
.....................!
real 189.63
user 184.52
sys 4.81

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/112470/ft1_filtered_4FGL_J1150.6+4154_daily_bin1006.fits scfile=/scratch/kocevski/112470/ft2_4FGL_J1150.6+4154_daily_bin1006.fits outfile=/scratch/kocevski/112470/cmap_500083201_500342401_4FGL_J1150.6+4154_daily_bin1006.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/112470/ft1_filtered_4FGL_J1150.6+4154_daily_bin1006.fits scfile=/scratch/kocevski/112470/ft2_4FGL_J1150.6+4154_daily_bin1006.fits outfile=/scratch/kocevski/112470/cmap_HighResolution_500083201_500342401_4FGL_J1150.6+4154_daily_bin1006.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.53
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .99517E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .55289       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.532       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    9.8183       1.0000         .10000E-03   10000.    
     7 'norm      '    35.404       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.617       1.0000         .10000E-03   10000.    
    10 'norm      '    .10134E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.966       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    20.934       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .15364E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    55.344       1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.579       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .32642       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.7258       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=   4743.085     FROM MIGRAD    STATUS=CONVERGED    533 CALLS     2730 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    226.95       -.18642E-03** at limit **
   2  norm          .55283        .25881        .28984E-07    .10031E-02
   3  Prefactor     12.530        11.889        .17937E-06    .62288E-04
   4  Prefactor     .10000E-03    9.1351        .13342E-06** at limit **
   5  Prefactor     .10000E-03    30.667       -.15268E-04** at limit **
   6  norm          9.8199        16.084        .27666E-06    .12591E-04
   7  norm          35.406        34.989        .20325E-05    .50997E-05
   8  Prefactor     .10000E-03    1.4345       -.29778E-06** at limit **
   9  Prefactor     15.622        38.871        .90107E-05    .12998E-03
  10  norm          .10000E-03    1.8383       -.77417E-06** at limit **
  11  Prefactor     11.968        6.9899        .23043E-05   -.47991E-04
  12  Prefactor     .10000E-03    16.298       -.67477E-05** at limit **
  13  norm          .10000E-03    .32526        .28772E-07** at limit **
  14  norm          20.935        13.070        .40358E-07    .43774E-05
  15  Prefactor     .10000E-03    59.884        .21996E-04** at limit **
  16  Prefactor     .10000E-03    1.9928       -.38790E-06** at limit **
  17  Prefactor     .10000E-03    25.251        .77365E-05** at limit **
  18  Prefactor     55.361        30.215        .84293E-05    .39123E-04
  19  Prefactor     15.584        28.077        .46367E-05   -.61296E-04
  20  Prefactor     .10000E-03    4.3123        .91455E-07** at limit **
  21  norm          .10000E-03    3.2072        .21999E-07** at limit **
  22  Prefactor     .10000E-03    16.581        .70268E-05** at limit **
  23  Normalizat    .32635        .19393       -.64538E-05    .91707E-04
  24  Prefactor     1.7256        .24631        .44277E-06    .34339E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  norm       = 0.552826
  Prefactor  = 12.5304
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.81987
  norm       = 35.4062
  Prefactor  = 0.0001
  Prefactor  = 15.6222
  norm       = 0.000100002
  Prefactor  = 11.968
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 20.9351
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 55.3615
  Prefactor  = 15.5838
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.326352
  Prefactor  = 1.72564
 **********
 **   18 **HESSE 
 **********

 FCN=   4743.085     FROM HESSE     STATUS=OK           391 CALLS     3121 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    225.84        .20766E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .55283        .25923        .23032E-04   -1.5559    
   3  Prefactor     12.530        11.878        .11316E-03   -1.5000    
   4  Prefactor     .10000E-03    9.1656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    30.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          9.8199        16.074        .12789E-03   -1.5081    
   7  norm          35.406        34.991        .67352E-04   -1.4517    
   8  Prefactor     .10000E-03    1.4480        .80154E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.622        36.772        .10135E-03   -1.4917    
  10  norm          .10000E-03    3.4536        .17072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.968        6.9705        .11581E-03   -1.5016    
  12  Prefactor     .10000E-03    16.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .33202        .38314E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          20.935        13.080        .87541E-04   -1.4793    
  15  Prefactor     .10000E-03    60.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.0071        .94672E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    25.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     55.361        30.041        .53920E-04   -1.4218    
  19  Prefactor     15.584        28.038        .10147E-03   -1.4918    
  20  Prefactor     .10000E-03    4.3276        .13966E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.2187        .12044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    16.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .32635        .20619        .37421E-03   -1.2130    
  24  Prefactor     1.7256        .26678        .22448E-03   -.71401    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30086e-09
Minuit parameter uncertainties:
  1  0.00206556
  2  0.259233
  3  11.8807
  4  1.99934e-06
  5  1.29777e-05
  6  16.0809
  7  35.0116
  8  2.99774e-05
  9  36.8258
  10  0.000158441
  11  6.97096
  12  1.14601e-05
  13  4.32081e-07
  14  13.0815
  15  0.000548596
  16  5.73734e-05
  17  8.73066e-06
  18  30.0491
  19  28.0613
  20  5.34481e-06
  21  7.37388e-06
  22  2.27765e-05
  23  0.206669
  24  0.267003
Done.

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

Extracting fit parameters...

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  2.094e+01  1.308e+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.726e+00  2.670e-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:  3.264e-01  2.067e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.32
Ra Dec: 177.656 41.910
Photon Index (Fixed Index): 1.62 +/- 0.00
Photon Flux (Fixed Index): 2.66e-08 +/- 1.66e-08
Energy Flux (Fixed Index): 4.72e-05 +/- 2.95e-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) = 4742.91018652
delta logL = 0.17496830552

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4742.90810987
delta logL = 0.177044951678

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    20.302       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3547       1.0000          .0000       5.0000    
     3 'Normalizat'    .32735       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.7305       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=   4742.908     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      234 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          20.299        14.077        .88892E-04   -.13940E-04
   2  alpha         1.3545        .44727        .12118E-01    .10083E-04
   3  Normalizat    .32705        .20237        .37382E-03    .19041E-03
   4  Prefactor     1.7307        .26436        .22432E-03    .22409E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 20.299
  alpha      = 1.35447
  Normalizat = 0.327054
  Prefactor  = 1.73068
 **********
 **   18 **HESSE 
 **********

 FCN=   4742.908     FROM HESSE     STATUS=OK            25 CALLS      259 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          20.299        14.184        .35557E-05   -1.4807    
   2  alpha         1.3545        .45068        .48473E-03   -.47598    
   3  Normalizat    .32705        .20242        .14953E-04   -1.2126    
   4  Prefactor     1.7307        .26445        .44864E-04   -.71268    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27985e-10
Minuit parameter uncertainties:
  1  14.186
  2  0.453829
  3  0.20287
  4  0.264669
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/112470': 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) = 4742.90810763
delta logL = 0.177047199507

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
672    Prefactor:  1.731e+00  2.647e-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:  3.271e-01  2.029e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.66
Ra Dec: 177.656 41.910
Photon Index (Free Index): 1.35 +/- 0.45
Photon Flux (Free Index): 2.00e-08 +/- 1.70e-08
Energy Flux (Free Index): 6.99e-05 +/- 6.46e-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/112470/cmap_HighResolution_500083201_500342401_4FGL_J1150.6+4154_daily_bin1006.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.66e-08', energy_flux2='6.99e-05', photon_flux_error='1.66e-08', dlogl='1.77e-01', energy_flux='4.72e-05', photon_flux2='2.00e-08', job_status='DONE', time_completed='2021-09-04 13:30:25.328034', photon_index_error2='0.45', photon_index2='1.35', ts='16.32', fit_tolerance='1e-08', GAL='1.73', photon_index_error='0.00', energy_flux_error2='6.46e-05', EG='0.33', time_epoch_completed='1630787425.33', return_code='0', job_id='112470', GAL2='1.73', EG2='0.33', return_code2='0', energy_flux_error='2.95e-05', photon_flux_error2='1.70e-08', ts2='16.66', photon_index='1.62' WHERE bin_id='1006' AND source_name='4FGL J1150.6+4154' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:30:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 112470: <4FGL_J1150.6+4154_daily_bin1006> in cluster <slac> Done

Job <4FGL_J1150.6+4154_daily_bin1006> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sat Sep  4 13:16:59 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 13:17:01 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:17:01 2021
Terminated at Sat Sep  4 13:30:26 2021
Results reported at Sat Sep  4 13:30:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.6+4154_daily_bin1006 177.656 41.9096 500083201 500342401 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 :                                   582.15 sec.
    Max Memory :                                 1197 MB
    Average Memory :                             224.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   804 sec.
    Turnaround time :                            807 sec.

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

